Solved

asm int 3

Posted on 1998-09-24
2
1,306 Views
Last Modified: 2008-03-03
Does anyone knows what the exact meaning is of next statement.

asm _int 3
0
Comment
Question by:dataman
  • 2
2 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 50 total points
ID: 1173594
Yes it places a software interrupt instruction for interrupt vector 3 in the source code.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1173595
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now