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

Side by Side Diff: src/common/linux/dump_symbols.cc

Issue 1884283002: Add debug fission support. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Add debug fission support. Created 4 years, 7 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/dwarf/elf_reader.cc ('k') | src/common/mac/dump_syms.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) 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 assert(debug_info_section.first); 281 assert(debug_info_section.first);
282 uint64 debug_info_length = debug_info_section.second; 282 uint64 debug_info_length = debug_info_section.second;
283 for (uint64 offset = 0; offset < debug_info_length;) { 283 for (uint64 offset = 0; offset < debug_info_length;) {
284 // Make a handler for the root DIE that populates MODULE with the 284 // Make a handler for the root DIE that populates MODULE with the
285 // data that was found. 285 // data that was found.
286 DwarfCUToModule::WarningReporter reporter(dwarf_filename, offset); 286 DwarfCUToModule::WarningReporter reporter(dwarf_filename, offset);
287 DwarfCUToModule root_handler(&file_context, &line_to_module, &reporter); 287 DwarfCUToModule root_handler(&file_context, &line_to_module, &reporter);
288 // Make a Dwarf2Handler that drives the DIEHandler. 288 // Make a Dwarf2Handler that drives the DIEHandler.
289 dwarf2reader::DIEDispatcher die_dispatcher(&root_handler); 289 dwarf2reader::DIEDispatcher die_dispatcher(&root_handler);
290 // Make a DWARF parser for the compilation unit at OFFSET. 290 // Make a DWARF parser for the compilation unit at OFFSET.
291 dwarf2reader::CompilationUnit reader(file_context.section_map(), 291 dwarf2reader::CompilationUnit reader(dwarf_filename,
292 file_context.section_map(),
292 offset, 293 offset,
293 &byte_reader, 294 &byte_reader,
294 &die_dispatcher); 295 &die_dispatcher);
295 // Process the entire compilation unit; get the offset of the next. 296 // Process the entire compilation unit; get the offset of the next.
296 offset += reader.Start(); 297 offset += reader.Start();
297 } 298 }
298 return true; 299 return true;
299 } 300 }
300 301
301 // Fill REGISTER_NAMES with the register names appropriate to the 302 // Fill REGISTER_NAMES with the register names appropriate to the
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 MmapWrapper map_wrapper; 1073 MmapWrapper map_wrapper;
1073 void* elf_header = NULL; 1074 void* elf_header = NULL;
1074 if (!LoadELF(obj_file, &map_wrapper, &elf_header)) 1075 if (!LoadELF(obj_file, &map_wrapper, &elf_header))
1075 return false; 1076 return false;
1076 1077
1077 return ReadSymbolDataInternal(reinterpret_cast<uint8_t*>(elf_header), 1078 return ReadSymbolDataInternal(reinterpret_cast<uint8_t*>(elf_header),
1078 obj_file, debug_dirs, options, module); 1079 obj_file, debug_dirs, options, module);
1079 } 1080 }
1080 1081
1081 } // namespace google_breakpad 1082 } // namespace google_breakpad
OLDNEW
« no previous file with comments | « src/common/dwarf/elf_reader.cc ('k') | src/common/mac/dump_syms.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698