Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Interrupt 3 on OS X?

Interrupt 3 on OS X?
Thread Tools
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Sep 10, 2004, 02:19 AM
 
Hi,
Apparently, if your program is running inside of a debugger under Windows, the debugger especially looks out for the assembly call "Interrupt 3" which diverts control to the debugger, breaks, and then lets the program continue.

Is there any such call for OS X? I need to implement a debugBreak macro that lets the program continue running. I'm sortof at a loss as to how to do this.

Thanks so much for your help,
gabe
     
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status: Offline
Reply With Quote
Sep 10, 2004, 07:31 AM
 
What do you mean by "breaks, and continues"? Do you want to make it continue, or have it continue on its own? If it goes on its own, then what good is the debug information - it's stale as soon as the program continues.

If you mean, have it stop, you look at the info, and tell it to go again when you are ready, then yes, pretty much every Mac debugger can do this. They're called breakpoints, not Interrupt 3.
     
Zimwy  (op)
Dedicated MacNNer
Join Date: May 2002
Location: Brooklyn, NY
Status: Offline
Reply With Quote
Sep 10, 2004, 09:39 AM
 
Originally posted by hayesk:
If you mean, have it stop, you look at the info, and tell it to go again when you are ready, then yes, pretty much every Mac debugger can do this. They're called breakpoints, not Interrupt 3.
Yes, I do mean this. Unfortunately it's not quite that simple. I have to write my own break point. I was hoping that someone here would know the specific command that a break point introduces to the debugger to make it listen up.

gabe
     
Mac Elite
Join Date: Oct 1999
Location: San Jose, Ca
Status: Offline
Reply With Quote
Sep 10, 2004, 04:17 PM
 
You are looking for the program in question to call out a breakpoint (at runtime) for the debugger? I don't know that it has this feature, but if you really want a good answer to this question, then you need to go to the right place: the MacOSX-dev list over at omnigroup. That is where the real experts on this sort of thing hang out.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:14 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2