diff --git a/uppsrc/ide/Debuggers/Pdb.cpp b/uppsrc/ide/Debuggers/Pdb.cpp index 82fabad52..a9fa8b6e2 100644 --- a/uppsrc/ide/Debuggers/Pdb.cpp +++ b/uppsrc/ide/Debuggers/Pdb.cpp @@ -125,6 +125,11 @@ bool Pdb::Create(One local, const String& exefile, const String& cmdline) #else win64 = false; #endif + + if(win64) + memory.SetTotal(I64(0xffffffffffff)); + else + memory.SetTotal(0x80000000); CloseHandle(pi.hThread); diff --git a/uppsrc/ide/Debuggers/Pdb.h b/uppsrc/ide/Debuggers/Pdb.h index f4efcd7db..1ba33a072 100644 --- a/uppsrc/ide/Debuggers/Pdb.h +++ b/uppsrc/ide/Debuggers/Pdb.h @@ -58,7 +58,7 @@ struct Pdb : Debugger, ParentCtrl { virtual int Byte(int64 addr) { return pdb ? pdb->Byte((adr_t)addr) : 0; } - PdbHexView() { pdb = NULL; SetTotal(0x80000000); } + PdbHexView() { pdb = NULL; } } memory;