OLD | NEW |
1 // -*- mode: c++ -*- | 1 // -*- mode: c++ -*- |
2 | 2 |
3 // Copyright (c) 2010 Google Inc. | 3 // Copyright (c) 2010 Google Inc. |
4 // All rights reserved. | 4 // All rights reserved. |
5 // | 5 // |
6 // Redistribution and use in source and binary forms, with or without | 6 // Redistribution and use in source and binary forms, with or without |
7 // modification, are permitted provided that the following conditions are | 7 // modification, are permitted provided that the following conditions are |
8 // met: | 8 // met: |
9 // | 9 // |
10 // * Redistributions of source code must retain the above copyright | 10 // * Redistributions of source code must retain the above copyright |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 using std::vector; | 53 using std::vector; |
54 using std::map; | 54 using std::map; |
55 | 55 |
56 // A Module represents the contents of a module, and supports methods | 56 // A Module represents the contents of a module, and supports methods |
57 // for adding information produced by parsing STABS or DWARF data | 57 // for adding information produced by parsing STABS or DWARF data |
58 // --- possibly both from the same file --- and then writing out the | 58 // --- possibly both from the same file --- and then writing out the |
59 // unified contents as a Breakpad-format symbol file. | 59 // unified contents as a Breakpad-format symbol file. |
60 class Module { | 60 class Module { |
61 public: | 61 public: |
62 // The type of addresses and sizes in a symbol table. | 62 // The type of addresses and sizes in a symbol table. |
63 typedef u_int64_t Address; | 63 typedef uint64_t Address; |
64 struct File; | 64 struct File; |
65 struct Function; | 65 struct Function; |
66 struct Line; | 66 struct Line; |
67 struct Extern; | 67 struct Extern; |
68 | 68 |
69 // Addresses appearing in File, Function, and Line structures are | 69 // Addresses appearing in File, Function, and Line structures are |
70 // absolute, not relative to the the module's load address. That | 70 // absolute, not relative to the the module's load address. That |
71 // is, if the module were loaded at its nominal load address, the | 71 // is, if the module were loaded at its nominal load address, the |
72 // addresses would be correct. | 72 // addresses would be correct. |
73 | 73 |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 vector<StackFrameEntry *> stack_frame_entries_; | 312 vector<StackFrameEntry *> stack_frame_entries_; |
313 | 313 |
314 // The module owns all the externs that have been added to it; | 314 // The module owns all the externs that have been added to it; |
315 // destroying the module frees the Externs these point to. | 315 // destroying the module frees the Externs these point to. |
316 ExternSet externs_; | 316 ExternSet externs_; |
317 }; | 317 }; |
318 | 318 |
319 } // namespace google_breakpad | 319 } // namespace google_breakpad |
320 | 320 |
321 #endif // COMMON_LINUX_MODULE_H__ | 321 #endif // COMMON_LINUX_MODULE_H__ |
OLD | NEW |