summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/debug/dvdisasm.c
diff options
context:
space:
mode:
author Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-04-20 16:36:14 +0000
committer Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-04-20 16:36:14 +0000
commitdd8d9b00440e42e9603091cac33a228cdd9b49f5 (patch)
tree5471d7d558a7e2bc7007e8428371cec3cbd6c890 /src/emu/debug/dvdisasm.c
parent09a76b33cdcad17cfad260adacf5a158d381cb9d (diff)
QT Debugger: Adds trackpc command, allowing for a visual display of where the
program counter has visited in the dasm windows. Run "help trackpc" in the debugger to see the options. [Andrew Gardner] Out of whatsnew: This isn't enabled by default because of how sloooow it is to disassemble each opcode when you want to compute its crc32. That can be sped up with lookup tables and the like. There's a good chance I should pull the 'clear tracks' argument into its own command, but it functions as-is. This can be added to the windows debugger with a simple change to the osd display code.
Diffstat (limited to 'src/emu/debug/dvdisasm.c')
-rw-r--r--src/emu/debug/dvdisasm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/emu/debug/dvdisasm.c b/src/emu/debug/dvdisasm.c
index aefb95dee78..f2d4cbbc0b9 100644
--- a/src/emu/debug/dvdisasm.c
+++ b/src/emu/debug/dvdisasm.c
@@ -609,6 +609,10 @@ recompute:
if (m_cursor_visible && effrow == m_cursor.y)
attrib |= DCA_SELECTED;
+ // if we've visited this pc, mark it as such
+ if (source.m_device.debug()->track_pc_visited(m_byteaddress[effrow]))
+ attrib |= DCA_VISITED;
+
// get the effective string
const char *data = &m_dasm[effrow * m_allocated.x];
UINT32 len = (UINT32)strlen(data);