Single-stepping through INT nn instructions

Eli Zaretskii eliz@delorie.com
Wed Jul 14 01:03:00 GMT 1999


I'm not sure if this is the right forum to discuss the above; if not,
please tell me where to post.

The INT nn and INTO instructions reset the trace bit on x86.  So if
you are single-stepping through a function that issues these
instructions, the single-step mode is effectively turned off when you
step over one of them.

My question is: how do other x86-based platforms handle this case?  I
don't see anything in the GDB sources that would show me how it is
solved, so either I'm missing something or it is solved outside GDB.

In the latter case, this is a platform-dependent problem that should
be solved (in the case in point) in go32-nat.c.  I have already seen
code that fixes this, but I wonder whether this really is a
DJGPP-specific problem.

Thanks in advance.


More information about the Gdb-patches mailing list