This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix Linux attach to signalled/stopped processes
- From: Roland McGrath <roland at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Doug Evans <dje at google dot com>, GDB Patches <gdb-patches at sourceware dot org>, mark dot kettenis at xs4all dot nl
- Date: Tue, 1 Apr 2008 15:49:36 -0700 (PDT)
- Subject: Re: [patch] Fix Linux attach to signalled/stopped processes
- References: <e394668d0803311218x35c802c1g7dba5f3b48b38bc8@mail.gmail.com> <20080401223012.GA14076@host0.dyn.jankratochvil.net>
I'm not sure if there was any question for me about kernel behavior in there.
As a gdb user, I have long been annoyed by the behavior on attaching to a
stopped process. What I want is for attach to complete immediately and let
me examine the process. If I then "cont", the process should go back to
what it was doing--sitting in job control stop. Then fg or otherwise
sending SIGCONT will wake it up normally, and gdb should stop and tell me
about the SIGCONT like normal.
Thanks,
Roland