This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]