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

Unified Diff: src/common/linux/elfutils.h

Issue 2052263002: Dump INFO CODE_ID containing Build ID in Linux dump_syms (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Oops, it's supposed to be INFO CODE_ID Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/common/linux/dump_symbols_unittest.cc ('k') | src/common/linux/file_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/common/linux/elfutils.h
diff --git a/src/common/linux/elfutils.h b/src/common/linux/elfutils.h
index dccdc235e29086eae6b3c4174ffe4c9c6950aaa3..f34ba83142d34a7d5ab96f4de02ae402eb153a0d 100644
--- a/src/common/linux/elfutils.h
+++ b/src/common/linux/elfutils.h
@@ -49,9 +49,13 @@ struct ElfClass32 {
typedef Elf32_Shdr Shdr;
typedef Elf32_Half Half;
typedef Elf32_Off Off;
+ typedef Elf32_Sym Sym;
typedef Elf32_Word Word;
+
static const int kClass = ELFCLASS32;
+ static const uint16_t kMachine = EM_386;
static const size_t kAddrSize = sizeof(Elf32_Addr);
+ static constexpr const char* kMachineName = "x86";
};
struct ElfClass64 {
@@ -62,9 +66,13 @@ struct ElfClass64 {
typedef Elf64_Shdr Shdr;
typedef Elf64_Half Half;
typedef Elf64_Off Off;
+ typedef Elf64_Sym Sym;
typedef Elf64_Word Word;
+
static const int kClass = ELFCLASS64;
+ static const uint16_t kMachine = EM_X86_64;
static const size_t kAddrSize = sizeof(Elf64_Addr);
+ static constexpr const char* kMachineName = "x86_64";
};
bool IsValidElf(const void* elf_header);
« no previous file with comments | « src/common/linux/dump_symbols_unittest.cc ('k') | src/common/linux/file_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698