ide: Fixed PDB debugger

git-svn-id: svn://ultimatepp.org/upp/trunk@9216 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-11-23 08:51:08 +00:00
parent 28f406cfab
commit b259c8fac5
2 changed files with 5 additions and 5 deletions

View file

@ -268,7 +268,7 @@ Pdb::Pdb()
cpu.ItemHeight(Courier(Ctrl::HorzLayoutZoom(12)).GetCy());
cpu.SetDisplay(Single<CpuRegisterDisplay>());
memory.cdb = this;
memory.pdb = this;
dlock = " Running..";
dlock.SetFrame(BlackFrame());

View file

@ -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;