Re: [hatari-devel] Debugger 'n' command |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Le 09/04/2016 16:15, Vincent Rivière a écrit :
Hello.
The debugger 'n' command is nice: it allows to run a subroutine
(bsr/jsr/trap) and break after it has returned.
It would be useful to extend the 'n' command to have the same behaviour
after loop instructions (dbra, maybe also beq/bne/...). That would help
when tracing programs.
IIRC, Devpac MonST did that on Ctrl+A.
Hi
monst has ctr+t which handle bsr/jsr/trap/..., but not ctrl+n (according
to devpac3 doc).
This could be possible to add, the logic would be similar to 'n' command
: runs until pc reaches the next instruction after the current "DBcc"
instruction.
So if current instruction is not bsr/jsr/trap/dbcc, run for just 1
instruction, else run until pc points just after the current branch
instruction (so having 'n' handles dbcc like othe bsr/jsr/trap should
not require too much code).
Now, if someone feels like adding this, don't hesitate :)
Nicolas