This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Single-stepping through INT nn instructions


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]