Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Side by Side Diff: src/google_breakpad/processor/microdump.h

Issue 1704243002: Support processing microdumps for x86 architecture. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Add the testdata file. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/processor/microdump.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }; 61 };
62 62
63 // MicrodumpContext carries a CPU-specific context. 63 // MicrodumpContext carries a CPU-specific context.
64 // See dump_context.h for documentation. 64 // See dump_context.h for documentation.
65 class MicrodumpContext : public DumpContext { 65 class MicrodumpContext : public DumpContext {
66 public: 66 public:
67 virtual void SetContextARM(MDRawContextARM* arm); 67 virtual void SetContextARM(MDRawContextARM* arm);
68 virtual void SetContextARM64(MDRawContextARM64* arm64); 68 virtual void SetContextARM64(MDRawContextARM64* arm64);
69 virtual void SetContextX86(MDRawContextX86* x86);
69 }; 70 };
70 71
71 // This class provides access to microdump memory regions. 72 // This class provides access to microdump memory regions.
72 // See memory_region.h for documentation. 73 // See memory_region.h for documentation.
73 class MicrodumpMemoryRegion : public MemoryRegion { 74 class MicrodumpMemoryRegion : public MemoryRegion {
74 public: 75 public:
75 MicrodumpMemoryRegion(); 76 MicrodumpMemoryRegion();
76 virtual ~MicrodumpMemoryRegion() {} 77 virtual ~MicrodumpMemoryRegion() {}
77 78
78 // Set this region's address and contents. If we have placed an 79 // Set this region's address and contents. If we have placed an
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 scoped_ptr<MicrodumpContext> context_; 118 scoped_ptr<MicrodumpContext> context_;
118 scoped_ptr<MicrodumpMemoryRegion> stack_region_; 119 scoped_ptr<MicrodumpMemoryRegion> stack_region_;
119 scoped_ptr<MicrodumpModules> modules_; 120 scoped_ptr<MicrodumpModules> modules_;
120 scoped_ptr<SystemInfo> system_info_; 121 scoped_ptr<SystemInfo> system_info_;
121 }; 122 };
122 123
123 } // namespace google_breakpad 124 } // namespace google_breakpad
124 125
125 #endif // GOOGLE_BREAKPAD_PROCESSOR_MICRODUMP_H__ 126 #endif // GOOGLE_BREAKPAD_PROCESSOR_MICRODUMP_H__
126 127
OLDNEW
« no previous file with comments | « no previous file | src/processor/microdump.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698