This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Single-stepping through INT nn instructions
- To: gdb-patches@sourceware.cygnus.com
- Subject: Single-stepping through INT nn instructions
- From: Eli Zaretskii <eliz@delorie.com>
- Date: Wed, 14 Jul 1999 03:47:09 -0400 (EDT)
- CC: DJ Delorie <dj@delorie.com>
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.