From d16d455171458352cb804ddef4e23097b47bbe9d Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 3 Jul 2016 15:49:18 +0000 Subject: [PATCH] ide: Pdb: Fixed memory pane issue in win64 debugging git-svn-id: svn://ultimatepp.org/upp/trunk@10004 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/ide/Debuggers/Pdb.cpp | 5 +++++ uppsrc/ide/Debuggers/Pdb.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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;