This is the mail archive of the
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: <firstname.lastname@example.org> <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.