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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // Shouldn't this be a Label? | 222 // Shouldn't this be a Label? |
223 uint64_t address_; | 223 uint64_t address_; |
224 }; | 224 }; |
225 | 225 |
226 class Context: public Section { | 226 class Context: public Section { |
227 public: | 227 public: |
228 // Create a context belonging to DUMP whose contents are a copy of CONTEXT. | 228 // Create a context belonging to DUMP whose contents are a copy of CONTEXT. |
229 Context(const Dump &dump, const MDRawContextX86 &context); | 229 Context(const Dump &dump, const MDRawContextX86 &context); |
230 Context(const Dump &dump, const MDRawContextARM &context); | 230 Context(const Dump &dump, const MDRawContextARM &context); |
231 Context(const Dump &dump, const MDRawContextMIPS &context); | 231 Context(const Dump &dump, const MDRawContextMIPS &context); |
| 232 Context(const Dump &dump, const MDRawContextSH4 &context); |
232 // Add an empty context to the dump. | 233 // Add an empty context to the dump. |
233 Context(const Dump &dump) : Section(dump) {} | 234 Context(const Dump &dump) : Section(dump) {} |
234 // Add constructors for other architectures here. Remember to byteswap. | 235 // Add constructors for other architectures here. Remember to byteswap. |
235 }; | 236 }; |
236 | 237 |
237 class Thread: public Section { | 238 class Thread: public Section { |
238 public: | 239 public: |
239 // Create a thread belonging to DUMP with the given values, citing | 240 // Create a thread belonging to DUMP with the given values, citing |
240 // STACK and CONTEXT (which you must Add to the dump separately). | 241 // STACK and CONTEXT (which you must Add to the dump separately). |
241 Thread(const Dump &dump, | 242 Thread(const Dump &dump, |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
363 // Add(Memory *) calls. This is actually a list of MDMemoryDescriptors, | 364 // Add(Memory *) calls. This is actually a list of MDMemoryDescriptors, |
364 // not memory ranges --- thus the odd type. | 365 // not memory ranges --- thus the odd type. |
365 List<SynthMinidump::Section> memory_list_; | 366 List<SynthMinidump::Section> memory_list_; |
366 }; | 367 }; |
367 | 368 |
368 } // namespace SynthMinidump | 369 } // namespace SynthMinidump |
369 | 370 |
370 } // namespace google_breakpad | 371 } // namespace google_breakpad |
371 | 372 |
372 #endif // PROCESSOR_SYNTH_MINIDUMP_H_ | 373 #endif // PROCESSOR_SYNTH_MINIDUMP_H_ |
OLD | NEW |