Previous Thread
Next Thread
Print Thread
#119995 11/11/21 06:53 PM
Joined: Nov 2003
Posts: 186
Likes: 1
P
PhillHS Offline OP
Senior Member
OP Offline
Senior Member
P
Joined: Nov 2003
Posts: 186
Likes: 1
Hi all,

With the built in debugger, is there a way to trace code, but exclude an area from the trace.

For example if you have code loaded into RAM that makes ROM calls that you want to trace, but you don't want to trace the code in ROM?

Cheers.

Phill.

Joined: Mar 2001
Posts: 16,841
Likes: 45
R
Very Senior Member
Offline
Very Senior Member
R
Joined: Mar 2001
Posts: 16,841
Likes: 45
There isn't that I know of, but that's an interesting feature idea.

Joined: Apr 2010
Posts: 53
H
Member
Offline
Member
H
Joined: Apr 2010
Posts: 53
You can use breakpoints on the ROM calls with logerror to get a serialized list of calls, but it's not exactly a trace.

i.e.
Code
 bpset address, 1, {logerror "bp at address %08X\n", pc; g}; 

You can put them all in a text file and use the 'source' command to load them into the debugger at the beginning of execution.

Joined: Dec 2015
Posts: 143
Likes: 2
A
AJR Offline
Senior Member
Offline
Senior Member
A
Joined: Dec 2015
Posts: 143
Likes: 2
This is perhaps not quite the same thing, but one feature I did a trial implementation of was "exception points", which lets you conditionally trap any case where the debugger exception callback is invoked. These cases potentially includes software traps, and I already updated the x86 and 68K CPU cores so that INT XXh and $AXXX instructions can be trapped. (The currently-existing gex command behaves similarly, but is a one-shot deal.) A secondary intention behind this proposed feature of mine was to simultaneously retire the special per-instruction debugging hook which is now used exclusively by the rmnimbus driver.


Link Copied to Clipboard
Who's Online Now
4 members (Vas Crabb, Cpt. Pugwash, Heihachi_73, 1 invisible), 24 guests, and 6 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics8,993
Posts118,152
Members5,005
Most Online890
Jan 17th, 2020
Forum Host
These forums are hosted by www.retrogamesformac.com
Forum hosted by www.retrogamesformac.com