This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [gdbserver] Problems trying to resume dead threads
On Tue, Aug 05, 2008 at 11:05:15PM +0200, Ulrich Weigand wrote:
> Daniel Jacobowitz wrote:
> > On Mon, Aug 04, 2008 at 09:45:46PM +0200, Ulrich Weigand wrote:
> > > I'd propose to just silently ignore ESRCH errors while writing registers
> > > (in addition to your patch). What do you think?
> >
> > I think that's acceptable, though not ideal. ESRCH can mean "the
> > program is gone", or for ptrace it can mean "the program is not
> > stopped". So there are a class of bugs in gdbserver which can lead to
> > the ESRCH error path. But distinguishing them from this case is quite
> > difficult.
>
> The following patch implements this approach, fixing the problem for me.
> Tested on powerpc-linux in local gdbserver mode. OK?
Yes, this is OK. Thanks!
--
Daniel Jacobowitz
CodeSourcery