Debugger improved: Register editor added

How to use the register editor:
1. Load an .ELF file
2. Select any instruction from a thread. (This is a workaround to
activate the appropriate event listener. This will be changed in the
future).
3. Press 'R' key and modify any register you want.

Note:
The register editor only works with PPU and SPU threads.

Additional changes:
* Fixed the filesize problem caused by the instruction editor dialog.
* Instruction Editor: Fixed small issue in SPU threads
This commit is contained in:
Alexandro Sánchez Bach 2013-09-22 13:34:54 +02:00
parent bf293ebbfc
commit 9c6ae554fa
9 changed files with 226 additions and 32 deletions

View file

@ -1,6 +1,8 @@
#include "stdafx.h"
#include "InterpreterDisAsm.h"
#include "InstructionEditor.h"
#include "InstructionEditor.cpp"
#include "RegisterEditor.cpp"
//static const int show_lines = 30;
@ -458,6 +460,10 @@ void InterpreterDisAsmFrame::InstrKey(wxListEvent& event)
InstructionEditorDialog(this, pc, CPU, decoder, disasm);
DoUpdate();
return;
case 'R':
RegisterEditorDialog(this, pc, CPU, decoder, disasm);
DoUpdate();
return;
}
}