Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: x86 inline assembler to stop in debugger



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?


--
Brad Oliver
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.