This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Multithreaded remote debug question
On Tue, Jun 17, 2003 at 03:52:44PM -0600, imburton@micron.com wrote:
> Hi, (My second attempt, the first one was horribly spaced)
Still got your margins a bit wide.
> I have been unsuccessful in consistently remote debugging a multithreaded Linux application,
> and I am looking for advice. I am using gdb 5.3 (with patches for supporting glib 2.3) on both the host
> and target systems. I am not having troubles when debugging locally with gdb, only with gdbserver.
> The majority of problems occur when trying to step or next after a breakpoint from within a thread, I
> either get an unexpected SIGSEGV or a SIGTRAP in usleep().
>
> Looking through this mailing list, and I see others have had problems quite similar to mine. Does anyone
> have advice?
>
> Looking at this, http://sources.redhat.com/ml/gdb/2003-04/msg00068.html, message,
> fixing this problem requires a change to the gdbserver protocol. Is there a patch planned for this?
> If not, will it be addressed in version 6.
There's no way to tell from this if you're talking about the right
problem. Can you make a small test case which shows the problem, and
show us the commands you gave?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer