Solved

asm int 3

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

707 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