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

Side by Side Diff: src/client/linux/microdump_writer/microdump_writer.cc

Issue 1761023002: Add an optional root prefix to Linux dumpers (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Remove assertions Created 4 years, 9 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 | « no previous file | src/client/linux/minidump_writer/linux_core_dumper.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) 2014, Google Inc. 1 // Copyright (c) 2014, 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 } else { 343 } else {
344 dumper_->ElfFileIdentifierForMapping( 344 dumper_->ElfFileIdentifierForMapping(
345 mapping, 345 mapping,
346 member, 346 member,
347 mapping_id, 347 mapping_id,
348 reinterpret_cast<uint8_t*>(&module_identifier)); 348 reinterpret_cast<uint8_t*>(&module_identifier));
349 } 349 }
350 350
351 char file_name[NAME_MAX]; 351 char file_name[NAME_MAX];
352 char file_path[NAME_MAX]; 352 char file_path[NAME_MAX];
353 LinuxDumper::GetMappingEffectiveNameAndPath( 353 dumper_->GetMappingEffectiveNameAndPath(
354 mapping, file_path, sizeof(file_path), file_name, sizeof(file_name)); 354 mapping, file_path, sizeof(file_path), file_name, sizeof(file_name));
355 355
356 LogAppend("M "); 356 LogAppend("M ");
357 LogAppend(static_cast<uintptr_t>(mapping.start_addr)); 357 LogAppend(static_cast<uintptr_t>(mapping.start_addr));
358 LogAppend(" "); 358 LogAppend(" ");
359 LogAppend(mapping.offset); 359 LogAppend(mapping.offset);
360 LogAppend(" "); 360 LogAppend(" ");
361 LogAppend(mapping.size); 361 LogAppend(mapping.size);
362 LogAppend(" "); 362 LogAppend(" ");
363 LogAppend(module_identifier.data1); 363 LogAppend(module_identifier.data1);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 dumper.set_crash_signal(context->siginfo.si_signo); 430 dumper.set_crash_signal(context->siginfo.si_signo);
431 dumper.set_crash_thread(context->tid); 431 dumper.set_crash_thread(context->tid);
432 } 432 }
433 MicrodumpWriter writer(context, mappings, microdump_extra_info, &dumper); 433 MicrodumpWriter writer(context, mappings, microdump_extra_info, &dumper);
434 if (!writer.Init()) 434 if (!writer.Init())
435 return false; 435 return false;
436 return writer.Dump(); 436 return writer.Dump();
437 } 437 }
438 438
439 } // namespace google_breakpad 439 } // namespace google_breakpad
OLDNEW
« no previous file with comments | « no previous file | src/client/linux/minidump_writer/linux_core_dumper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698