This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix watchthreads-reorder.exp fails in linux gdbserver
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Pedro Alves <pedro at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 14 Mar 2010 17:50:06 -0700
- Subject: Re: Fix watchthreads-reorder.exp fails in linux gdbserver
- References: <201003141850.49563.pedro@codesourcery.com>
> I've applied the patch below, to address in linux gdbserver the problem
> watchthreads-reorder.exp uncovers, similarly to how it was fixed
> in linux-nat.c.
This is a bit off topic, and even maybe a dream-that-will-never-come-true,
but I've been wondering about sharing the wait loop between GDB and gdbserver.
Sounds like a big job at the very least (in order to extract the code
from GDB for the platform currently supported), but do you think that
it's actually doable / worth the effort? It's just that we're (actually,
mostly you!) are very regularly fixing the same problem twice; once
in GDB, and then once in gdbserver. Given the complexity of this code
on some platforms, it's a real shame.
--
Joel