Solved

asm int 3

Posted on 1998-09-24
2
1,316 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
What is the real difference between C++ and Visual C++.NET? 7 120
C++ mouse_event mouse look 7 95
Copy output image from TWindowsMediaPlayer 6 48
Need some help with mailto 16 20
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
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.

808 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