diff --git a/uppsrc/ide/Debuggers/Pdb.cpp b/uppsrc/ide/Debuggers/Pdb.cpp index 46cee296b..a430f4401 100644 --- a/uppsrc/ide/Debuggers/Pdb.cpp +++ b/uppsrc/ide/Debuggers/Pdb.cpp @@ -268,7 +268,7 @@ Pdb::Pdb() cpu.ItemHeight(Courier(Ctrl::HorzLayoutZoom(12)).GetCy()); cpu.SetDisplay(Single()); - memory.cdb = this; + memory.pdb = this; dlock = " Running.."; dlock.SetFrame(BlackFrame()); diff --git a/uppsrc/ide/Debuggers/Pdb.h b/uppsrc/ide/Debuggers/Pdb.h index 058780d93..213fec0ca 100644 --- a/uppsrc/ide/Debuggers/Pdb.h +++ b/uppsrc/ide/Debuggers/Pdb.h @@ -53,12 +53,12 @@ struct Pdb : Debugger, ParentCtrl { char data[1024]; }; - struct CdbHexView : HexView { - Pdb *cdb; + struct PdbHexView : HexView { + Pdb *pdb; - virtual int Byte(int64 addr) { return cdb->Byte((adr_t)addr); } + virtual int Byte(int64 addr) { return pdb ? pdb->Byte((adr_t)addr) : 0; } - CdbHexView() { SetTotal(0x80000000); } + PdbHexView() { pdb = NULL; SetTotal(0x80000000); } } memory;