Mail Archives: djgpp-workers/1999/05/25/04:11:47
On Mon, 24 May 1999, Eli Zaretskii wrote:
> > Of course. GDB gets TARGET_WAITKIND_SIGNALLED that is
> > command to kill debugee. We should have
> > TARGET_WAITKIND_STOPPED to avoid that.
>
> But the v2.03 branch already returns TARGET_WAITKIND_STOPPED. And that
> causes GDB to report SIGTRAP on every breakpoint instead of recognizing
> the breakpoint as such.
Okay, it turned out this was due to a stupid typo, entirely my fault.
Sorry I wasted everybody's time.
The binary built with the v2.03 branch of go32-nat.c enabled does
allow to resume the debuggee after a signal. But I have another
problem: SIGQUIT (generated by pressing Ctrl-\) is reported as SIGINT,
even though I fixed go32-nat.c to know about fake exception 0x7a
generated by SIGQUIT.
It appears that this is somehow connected to this fragment from
dbgcom.c (in `dbgsig' function):
/* I still have no idea how to get the exception number back */
/* just keep the fake exception value */
signum=0x1B;
__djgpp_exception_state->__signum=signum;
Can someone please explain what's the story behind this snippet? Why
is it a problem to get the original exception at that point, and what
are the implications of this? Does it mean, for example, that SIGALRM
will also be reported as SIGINT?
- Raw text -