This is the mail archive of the
mailing list for the Archer project.
Re: gdbstub initial code, v7
On Fri, 03 Sep 2010 21:59:06 +0200, Roland McGrath wrote:
> > Currently GDB does not do anything special, that is if there is siginfo for
> > signal SIGUSR1 but one does $C0B (SIGSEGV) does ptrace reset the siginfo or is
> > left the SIGUSR1 siginfo for SIGSEGV?
> The kernel considers this sloppy behavior on the debugger's part. If
> you inject a different signal, we expect you should PTRACE_SETSIGINFO
> to something appropriate, or else that you really didn't care about
> the bits being accurate. If the resumption signal does not match the
> siginfo_t.si_signo, then the kernel resets the siginfo as if the
> debugger had just used kill with the new signal (i.e. si_pid, si_uid
> point to the ptracer).
OK, that seems to me as the best choice. Sorry I did not test/read it.