mirror of
https://github.com/yuzu-emu/breakpad.git
synced 2025-01-22 11:31:12 +00:00
minidump_dump: fix up init paths
Fix some build & test failures in the previous minidump_dump code. BUG=chromium:598947 Change-Id: Ia8fce453265167368de96747a8a92af930e78245 Reviewed-on: https://chromium-review.googlesource.com/458881 Reviewed-by: Mike Frysinger <vapier@chromium.org>
This commit is contained in:
parent
e1b3620ec7
commit
7a8374fc4c
|
@ -1202,7 +1202,7 @@ MinidumpMemoryRegion::MinidumpMemoryRegion(Minidump* minidump)
|
|||
: MinidumpObject(minidump),
|
||||
descriptor_(NULL),
|
||||
memory_(NULL) {
|
||||
hexdump_width_ = minidump->HexdumpMode();
|
||||
hexdump_width_ = minidump_ ? minidump_->HexdumpMode() : 0;
|
||||
hexdump_ = hexdump_width_ != 0;
|
||||
}
|
||||
|
||||
|
@ -4773,7 +4773,9 @@ Minidump::Minidump(istream& stream)
|
|||
path_(),
|
||||
stream_(&stream),
|
||||
swap_(false),
|
||||
valid_(false) {
|
||||
valid_(false),
|
||||
hexdump_(false),
|
||||
hexdump_width_(0) {
|
||||
}
|
||||
|
||||
Minidump::~Minidump() {
|
||||
|
|
|
@ -55,7 +55,7 @@ using google_breakpad::MinidumpBreakpadInfo;
|
|||
|
||||
struct Options {
|
||||
Options()
|
||||
: minidumpPath(), hexdump(false), hexdump_width(hexdump_width) {}
|
||||
: minidumpPath(), hexdump(false), hexdump_width(16) {}
|
||||
|
||||
string minidumpPath;
|
||||
bool hexdump;
|
||||
|
|
Loading…
Reference in a new issue