Re: [hatari-devel] Debugger question

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


Hi,

Thanks a lot Eero, but my question was about the 68030 registers : d0 in my case.

Regs shows all the registers, but I'd like to see only one register each time I arrive at a certain address (to see how this register changes).

I'll have a closer look at your answear anyway.

Regards

Laurent



Le 09/12/2015 19:13, Eero Tamminen a écrit :
Hi,

(Sorry for late reply, my ISP SMTP server has some problems.)

On 12/04/2015 12:12 PM, laurent.sallafranque@xxxxxxx wrote:
I'd like to see the content of a specific register into the console without breaking while my code runs.

I mean something like :

b pc=$xxxxxx : trace : lock

with lock = something like

lock reg d0

Is there a way to do this ?

You can print all registers with:
    lock dspregs
    b <condition> :lock

(lock option implicitly enables tracing.)


But I actually prefer just putting into file anything
I want to get done on breakpoint, and then using:
    b <condition> :trace :file <filename>

As to showing just a single register value, while
CPU "r" (registers) command supports that, DSP "dr"
(dspregs) command currently supports just setting
value to given register or showing all registers'
values.


If you just want to see when register value changes,
use:
    b r0 ! r0 :trace :quiet


    - Eero






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/