gdb 5.1 with shared libraries
David Relson
relson@osagesoftware.com
Sun Dec 9 07:42:00 GMT 2001
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
More information about the Gdb
mailing list