This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix Linux attach to signalled/stopped processes
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: gdb at sourceware dot org
- Date: Thu, 28 Jun 2007 00:06:18 +0200
- Subject: Re: [patch] Fix Linux attach to signalled/stopped processes
- References: <20070606143432.GA11555@host0.dyn.jankratochvil.net> <200706151801.l5FI1xH6022843@brahms.sibelius.xs4all.nl> <20070626210341.GA1406@host0.dyn.jankratochvil.net> <200706262254.l5QMsrPn007445@brahms.sibelius.xs4all.nl> <20070627065203.GA9427@host0.dyn.jankratochvil.net> <200706271601.l5RG1KoT030784@brahms.sibelius.xs4all.nl>
On Wed, 27 Jun 2007 18:01:20 +0200, Mark Kettenis wrote:
...
> So it seems that Linux completely ignores SIGSTOP if a process is
> already stopped. That's the right thing to do for "normal" processes,
> but not ok for traced processes. Looks like fixing that would solve a
> lot of problems.
Unfortunately it would break compatibility. This is what the UTRACE code from
Roland McGrath is going to do, so far it provides only the backward compatible
utrace(2) interface.
Jan