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

Side by Side Diff: src/common/linux/elf_core_dump.h

Issue 1726163002: Fix building on musl libc. Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: 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 | « src/common/linux/dump_symbols.cc ('k') | src/common/stabs_reader.h » ('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) 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
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
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_
OLDNEW
« no previous file with comments | « src/common/linux/dump_symbols.cc ('k') | src/common/stabs_reader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698