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 12:49 PM, Brad Oliver wrote:

On Jan 30, 2006, at 10:19 AM, Eric Albert wrote:

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.

Is there some condition whereby using another mechanism would be better, for example running directly from gdb instead of the IDE? I ask only because I've never had a reason to not use Debugger().

I think -- though the debugger folks might correct me on this -- that trap/int3 is what gdb itself uses for breakpoints, so in theory it might be "better" somehow. But as long as you're debugging a program that doesn't have its own SIGINT handler, I think they'll have the same effect.


-Eric

_______________________________________________
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
References: 
 >Re: x86 inline assembler to stop in debugger (From: Brad Oliver <email@hidden>)
 >Re: x86 inline assembler to stop in debugger (From: Eric Albert <email@hidden>)
 >Re: x86 inline assembler to stop in debugger (From: Brad Oliver <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.