OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |