[hatari-devel] Hatari debugger immediately showing regs & memdump?

Thomas Huth th.huth at gmx.de
Sun Apr 5 10:36:40 CEST 2009


On Sun, 5 Apr 2009 00:28:22 +0300
Eero Tamminen <eerot at users.berlios.de> wrote:

> On Saturday 04 April 2009, npomarede at corp.free.fr wrote:
> > What about a flag to tell what to do when we're in debug mode and
> > the pause key is pressed ? For example --debug-start = none or
> > dump_reg or dump_code or dump_all or ... ?
> 
> That should be pretty easy to do.  Maybe just:
>   --debug-start <r|d> Show at debugger start: r=registers,
> d=disassembly.
> 
> And if one gives "d" multiple times, it will disassemble more
> (call the disassembling function multiple times).
> 
> Does this sound useful?

It's still not clear to me what this should really be good for. What's
the real purpose for dumping registers/memory/disassembly as soon as
you enter the debugger?
I guess it's about monitoring the running program, right? But you can
never press the debugger key fast enough to intercept the program at
the very right place this way. So instead of implementing this feature,
we should focus our energy on implementing proper breakpoint and
single-stepping support, I think.

 Thomas



More information about the hatari-devel mailing list