Previous Thread
Next Thread
Print Thread
#76222 01/17/12 05:32 AM
Joined: Apr 2010
Posts: 57
H
Happy Offline OP
Member
OP Offline
Member
H
Joined: Apr 2010
Posts: 57
I was wondering if anyone knew if the following was possible:

Can you make a conditional statement?

i.e.

if (condition)
----action
else
----other action

I'm aware that bpset allows you to test a condition, so would the following work?

bpset PC, condition, action
bpset same PC, different condition, different action

Would this cause any issues as long as condition and different condition are mutually exclusive?

Essentially, I would like to create a switch statement to print the names of different threads (in the emulated program) when the context switch function is called.

I would also find if helpful if the debugger's printf could print null-terminated strings (%s).

Happy #76254 01/17/12 06:56 PM
Joined: Apr 2010
Posts: 57
H
Happy Offline OP
Member
OP Offline
Member
H
Joined: Apr 2010
Posts: 57
I seem to be having success with setting multiple breakpoints at the same address.

Happy #76256 01/17/12 07:04 PM
Joined: Mar 2001
Posts: 16,911
Likes: 56
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,911
Likes: 56
Yeah, that should just work, Aaron would've had to add special support to make it *not* work.


Link Copied to Clipboard
Who's Online Now
2 members (Pernod, 1 invisible), 21 guests, and 2 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,086
Posts119,088
Members5,014
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com