• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1345
  • Last Modified:

asm int 3

Does anyone knows what the exact meaning is of next statement.

asm _int 3
0
dataman
Asked:
dataman
  • 2
1 Solution
 
nietodCommented:
Yes it places a software interrupt instruction for interrupt vector 3 in the source code.
0
 
nietodCommented:
On intel processors (x86) This interrupt is the "debugger interrupt".  Most debuggers (all probably) will "hook in" to this interrupt and when they detect it they will stop the running program.  This if you have a debugger running, the program will stop and the debugger will come up when the int 3 is run.  This can be very handy for debugging.  because you can place these statements throughout your code at lots of error locations and you don't have to set (and keep updated breakpoints at these locations.  

if there is no debugger on the system, this interrupt will return without doing anything and the program will continue running.

Let me know if you have questions.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now