This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] early abort if child spawning failed
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mike Frysinger <vapier at gentoo dot org>, Mike Frysinger <vapier at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 21 Sep 2007 23:58:42 -0400
- Subject: Re: [patch] early abort if child spawning failed
- References: <200709212231.11507.vapier@gentoo.org>
On Fri, Sep 21, 2007 at 10:31:11PM -0400, Mike Frysinger wrote:
> if you use gdbserver to listen on a port and the specified program fails to
> launch properly, the server process will continue on to the accept() call and
> sit there forever ... you cant control+c the process as the signals are taken
> over which means you have to connect with gdb to force the server to re-check
> itself and then abort ... all in all, a pita for a simple typo.
>
> the attached patch checks the status field immediately after launch rather
> than falling down into the main loop and waiting for the remote debugger to
> connect for the status to get properly checked.
> -mike
Did you port this from an earlier version? It shouldn't be necessary
any more - Michael fixed this 2007-07-27.
--
Daniel Jacobowitz
CodeSourcery