This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb 5.1 with shared libraries
- From: David Relson <relson at osagesoftware dot com>
- To: brendan at gentrack dot com
- Cc: gdb at sources dot redhat dot com
- Date: Sun, 09 Dec 2001 10:41:44 -0500
- Subject: Re: gdb 5.1 with shared libraries
Brendan,
There's a bug in 5.1 having to do with the floating point registers and
threaded programs. Here's a pointer to the patch:
http://sources.redhat.com/ml/gdb-patches/2001-12/msg00183.html
and also a small program that exhibits the behavior fixed by the patch:
/* Build using "gcc -g -lpthread test.c"; debug using "gdb a.out" */
#include <stdlib.h>
int main() {
char *t="1.0";
double d=0;
d=strtod(t,(char **)NULL);
printf( "%f\n", d );
return 0;
}
Hope this helps a bit.
David