This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: not able to debug threads - gcc configuration problem?
- From: Ian Lance Taylor <iant at google dot com>
- To: lidar <lidar at trego dot co dot il>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 08 Jun 2009 04:26:01 -0700
- Subject: Re: not able to debug threads - gcc configuration problem?
- References: <4A2CF101.8030204@trego.co.il>
lidar <lidar@trego.co.il> writes:
> The trouble is, i haven't been able to debug threads with GDB:
I doubt this is a gcc issue. You will probably get better help by
asking on a gdb mailing list.
> the toolchain configuration i used is:
>
> TARGET=powerpc-603e-linux-gnu
> TARGET_CFLAGS="-O -mcpu=603e"
> GCC_EXTRA_CONFIG="--with-cpu=603e --enable-cxx-flags=-mcpu=603e"
>
> BINUTILS_DIR=binutils-2.16.1
> GCC_CORE_DIR=gcc-3.3.6
> GCC_DIR=gcc-4.1.0
> GLIBC_DIR=glibc-2.3.6
> LINUX_DIR=linux-2.6.15.4
> LINUX_SANITIZED_HEADER_DIR=linux-libc-headers-2.6.12.0
> GLIBCTHREADS_FILENAME=glibc-linuxthreads-2.3.6
> GDB_DIR=gdb-6.5
Does your MontaVista installation use NPTL or Linuxthreads?
Linuxthreads is pretty out of date these days.
It sounds like your problem is some sort of miscommunication between gdb
and your libthread_db. gcc has essentially nothing to do with thread
debugging.
Ian