OLD | NEW |
1 // Copyright (c) 2006, Google Inc. | 1 // Copyright (c) 2006, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 | 29 |
30 // code_modules.h: Contains all of the CodeModule objects that were loaded | 30 // code_modules.h: Contains all of the CodeModule objects that were loaded |
31 // into a single process. | 31 // into a single process. |
32 // | 32 // |
33 // Author: Mark Mentovai | 33 // Author: Mark Mentovai |
34 | 34 |
35 #ifndef GOOGLE_BREAKPAD_PROCESSOR_CODE_MODULES_H__ | 35 #ifndef GOOGLE_BREAKPAD_PROCESSOR_CODE_MODULES_H__ |
36 #define GOOGLE_BREAKPAD_PROCESSOR_CODE_MODULES_H__ | 36 #define GOOGLE_BREAKPAD_PROCESSOR_CODE_MODULES_H__ |
37 | 37 |
| 38 #include <stddef.h> |
| 39 |
| 40 #include <vector> |
| 41 |
38 #include "google_breakpad/common/breakpad_types.h" | 42 #include "google_breakpad/common/breakpad_types.h" |
| 43 #include "processor/linked_ptr.h" |
39 | 44 |
40 namespace google_breakpad { | 45 namespace google_breakpad { |
41 | 46 |
42 class CodeModule; | 47 class CodeModule; |
43 | 48 |
44 class CodeModules { | 49 class CodeModules { |
45 public: | 50 public: |
46 virtual ~CodeModules() {} | 51 virtual ~CodeModules() {} |
47 | 52 |
48 // The number of contained CodeModule objects. | 53 // The number of contained CodeModule objects. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 | 89 |
85 // Creates a new copy of this CodeModules object, which the caller takes | 90 // Creates a new copy of this CodeModules object, which the caller takes |
86 // ownership of. The new object will also contain copies of the existing | 91 // ownership of. The new object will also contain copies of the existing |
87 // object's child CodeModule objects. The new CodeModules object may be of | 92 // object's child CodeModule objects. The new CodeModules object may be of |
88 // a different concrete class than the object being copied, but will behave | 93 // a different concrete class than the object being copied, but will behave |
89 // identically to the copied object as far as the CodeModules and CodeModule | 94 // identically to the copied object as far as the CodeModules and CodeModule |
90 // interfaces are concerned, except that the order that GetModuleAtIndex | 95 // interfaces are concerned, except that the order that GetModuleAtIndex |
91 // returns objects in may differ between a copy and the original CodeModules | 96 // returns objects in may differ between a copy and the original CodeModules |
92 // object. | 97 // object. |
93 virtual const CodeModules* Copy() const = 0; | 98 virtual const CodeModules* Copy() const = 0; |
| 99 |
| 100 // Returns a vector of all modules which address ranges needed to be shrunk |
| 101 // down due to address range conflicts with other modules. |
| 102 virtual std::vector<linked_ptr<const CodeModule> > |
| 103 GetShrunkRangeModules() const = 0; |
| 104 |
| 105 // Returns true, if module address range shrink is enabled. |
| 106 virtual bool IsModuleShrinkEnabled() const = 0; |
94 }; | 107 }; |
95 | 108 |
96 } // namespace google_breakpad | 109 } // namespace google_breakpad |
97 | 110 |
98 #endif // GOOGLE_BREAKPAD_PROCESSOR_CODE_MODULES_H__ | 111 #endif // GOOGLE_BREAKPAD_PROCESSOR_CODE_MODULES_H__ |
OLD | NEW |