| OLD | NEW |
| 1 // Copyright (c) 2014 Google Inc. | 1 // Copyright (c) 2014 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 namespace google_breakpad { | 52 namespace google_breakpad { |
| 53 | 53 |
| 54 // MicrodumpModuleList contains all of the loaded code modules for a process | 54 // MicrodumpModuleList contains all of the loaded code modules for a process |
| 55 // in the form of MicrodumpModules. It maintains a vector of these modules | 55 // in the form of MicrodumpModules. It maintains a vector of these modules |
| 56 // and provides access to a code module corresponding to a specific address. | 56 // and provides access to a code module corresponding to a specific address. |
| 57 class MicrodumpModules : public BasicCodeModules { | 57 class MicrodumpModules : public BasicCodeModules { |
| 58 public: | 58 public: |
| 59 // Takes over ownership of |module|. | 59 // Takes over ownership of |module|. |
| 60 void Add(const CodeModule* module); | 60 void Add(const CodeModule* module); |
| 61 |
| 62 // Enables/disables module address range shrink. |
| 63 void SetEnableModuleShrink(bool is_enabled); |
| 61 }; | 64 }; |
| 62 | 65 |
| 63 // MicrodumpContext carries a CPU-specific context. | 66 // MicrodumpContext carries a CPU-specific context. |
| 64 // See dump_context.h for documentation. | 67 // See dump_context.h for documentation. |
| 65 class MicrodumpContext : public DumpContext { | 68 class MicrodumpContext : public DumpContext { |
| 66 public: | 69 public: |
| 67 virtual void SetContextARM(MDRawContextARM* arm); | 70 virtual void SetContextARM(MDRawContextARM* arm); |
| 68 virtual void SetContextARM64(MDRawContextARM64* arm64); | 71 virtual void SetContextARM64(MDRawContextARM64* arm64); |
| 69 virtual void SetContextX86(MDRawContextX86* x86); | 72 virtual void SetContextX86(MDRawContextX86* x86); |
| 70 virtual void SetContextMIPS(MDRawContextMIPS* mips32); | 73 virtual void SetContextMIPS(MDRawContextMIPS* mips32); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 scoped_ptr<MicrodumpContext> context_; | 123 scoped_ptr<MicrodumpContext> context_; |
| 121 scoped_ptr<MicrodumpMemoryRegion> stack_region_; | 124 scoped_ptr<MicrodumpMemoryRegion> stack_region_; |
| 122 scoped_ptr<MicrodumpModules> modules_; | 125 scoped_ptr<MicrodumpModules> modules_; |
| 123 scoped_ptr<SystemInfo> system_info_; | 126 scoped_ptr<SystemInfo> system_info_; |
| 124 }; | 127 }; |
| 125 | 128 |
| 126 } // namespace google_breakpad | 129 } // namespace google_breakpad |
| 127 | 130 |
| 128 #endif // GOOGLE_BREAKPAD_PROCESSOR_MICRODUMP_H__ | 131 #endif // GOOGLE_BREAKPAD_PROCESSOR_MICRODUMP_H__ |
| 129 | 132 |
| OLD | NEW |