| OLD | NEW |
| 1 // Copyright (c) 2011, Google Inc. | 1 // Copyright (c) 2011, 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 // elf_core_dump.h: Define the google_breakpad::ElfCoreDump class, which | 30 // elf_core_dump.h: Define the google_breakpad::ElfCoreDump class, which |
| 31 // encapsulates an ELF core dump file mapped into memory. | 31 // encapsulates an ELF core dump file mapped into memory. |
| 32 | 32 |
| 33 #ifndef COMMON_LINUX_ELF_CORE_DUMP_H_ | 33 #ifndef COMMON_LINUX_ELF_CORE_DUMP_H_ |
| 34 #define COMMON_LINUX_ELF_CORE_DUMP_H_ | 34 #define COMMON_LINUX_ELF_CORE_DUMP_H_ |
| 35 | 35 |
| 36 #include <elf.h> | 36 #include <elf.h> |
| 37 #include <link.h> | 37 #include <link.h> |
| 38 #include <stddef.h> | 38 #include <stddef.h> |
| 39 #include <sys/reg.h> |
| 39 | 40 |
| 40 #include "common/memory_range.h" | 41 #include "common/memory_range.h" |
| 41 | 42 |
| 42 namespace google_breakpad { | 43 namespace google_breakpad { |
| 43 | 44 |
| 44 // A class encapsulating an ELF core dump file mapped into memory, which | 45 // A class encapsulating an ELF core dump file mapped into memory, which |
| 45 // provides methods for accessing program headers and the note section. | 46 // provides methods for accessing program headers and the note section. |
| 46 class ElfCoreDump { | 47 class ElfCoreDump { |
| 47 public: | 48 public: |
| 48 // ELF types based on the value of __WORDSIZE. | 49 // ELF types based on the value of __WORDSIZE. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 Note GetFirstNote() const; | 140 Note GetFirstNote() const; |
| 140 | 141 |
| 141 private: | 142 private: |
| 142 // Core dump content. | 143 // Core dump content. |
| 143 MemoryRange content_; | 144 MemoryRange content_; |
| 144 }; | 145 }; |
| 145 | 146 |
| 146 } // namespace google_breakpad | 147 } // namespace google_breakpad |
| 147 | 148 |
| 148 #endif // COMMON_LINUX_ELF_CORE_DUMP_H_ | 149 #endif // COMMON_LINUX_ELF_CORE_DUMP_H_ |
| OLD | NEW |