linux-mips
[Top] [All Lists]

Re: cannot debug multi-threaded programs with gdb/gdbserver

To: Stuart Hughes <seh@zee2.com>
Subject: Re: cannot debug multi-threaded programs with gdb/gdbserver
From: "Steven J. Hill" <sjhill@realitydiluted.com>
Date: Tue, 17 Sep 2002 12:24:14 -0500
Cc: Linux-MIPS <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <3D876053.C2CD1D8C@zee2.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020913 Debian/1.1-1
Stuart Hughes wrote:

Does anyone know whether there is some special setup needed on
gdb/gdbserver to use the multi-threaded gdbserver ??

Wow, there are so many things to tell you...where to start...

My environment is as follows:

CPU:            NEC VR5432
kernel:         linux-2.4.18 + patches
glibc:          2.2.3 + patches
gdb:            5.2/3 from CVS
>
Has to be the gdb-5.3 branch...go look at http://sources.redhat.com/gdb

gcc:            3.1
binutils:       Version 2.11.90.0.25

Don't use H.J. Lu's binutils, use the released one. Use gcc-3.2 and
binutils-2.13 as they have fixes for the MIPS debugging symbols with
regards to DWARF.

cross-gdb configured using:
configure --prefix=/usr --target=mipsel-linux --disable-sim
--disable-tcl --enable-threads --enable-shared

Use '--target=mips-linux' and you'll be better off. Don't worry, it
will support both endians.

gdbserver configured using:

configure --prefix=/usr --host=mipsel-linux --target=mipsel-linux
--enable-threads --enable-shared

I would also try 'CC=mipsel-linux-gcc configure <...>'.

-Steve


<Prev in Thread] Current Thread [Next in Thread>