Re: x86 inline assembler to stop in debugger
Re: x86 inline assembler to stop in debugger
- Subject: Re: x86 inline assembler to stop in debugger
- From: Eric Albert <email@hidden>
- Date: Mon, 30 Jan 2006 09:19:55 -0800
On Jan 30, 2006, at 9:04 AM, Brad Oliver wrote:
On Jan 30, 2006, at 9:57 AM, email@hidden wrote:
Sorry; I ignored the PPC side of your code earlier. :) On PPC, you'll
want this:
#define DebugBreak() if (AmIBeingDebugged()) { __asm__ volatile
("trap"); }
OK, I have a dumb question. :-) Why wouldn't calling Debugger() work
for these cases instead of using inline assembler targeting a specific
CPU?
As far as I can tell -- I haven't tested it -- Debugger() only breaks
if the USERBREAK environment variable is set to 1. In that case it
sends a SIGINT to the current thread. That's not quite the same as a
SIGTRAP.
-Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden