This is the mail archive of the
gdb-prs@sources.redhat.com
mailing list for the GDB project.
Re: threads/1655: Undocumented feature: how to build gdb for threads
- From: Daniel Jacobowitz <drow at false dot org>
- To: nobody at sources dot redhat dot com
- Cc: gdb-prs at sources dot redhat dot com,
- Date: 24 May 2004 02:28:00 -0000
- Subject: Re: threads/1655: Undocumented feature: how to build gdb for threads
- Reply-to: Daniel Jacobowitz <drow at false dot org>
The following reply was made to PR threads/1655; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: rtrask@earthlink.net
Cc: gdb-gnats@sources.redhat.com
Subject: Re: threads/1655: Undocumented feature: how to build gdb for threads
Date: Sun, 23 May 2004 22:05:51 -0400
On Thu, May 20, 2004 at 01:05:10AM -0000, rtrask@earthlink.net wrote:
> We wanted to build gdb for debugging threaded programs. How should gdb be configured to do this? There is nothing in the documentation, nothing in the --help, nothing ....
> We wasted plenty of time before we stumbled on the answer:
> add the field --enable-threads as an argument to configure.
> My memory is failing sometimes but I'm sure this wasn't required in earlier releases. Now it's required for sure but you can't find this out anywhere easily.
> Worse: when you query an existing gdb executable (i.e. ./gdb --version) it reports other args supplied when it was configured but does NOT report the --enable-threads arg.
>
> This makes building and maintaining gdb the stuff of magic and folklore!
What target platform are you talking about? Are you using unmodified
GDB sources? GDB doesn't have an --enable-threads option and should
not need any specific options to support threads.
--
Daniel Jacobowitz