Hi, Dear Sir I have a very simple program below, gdb can't print the value of fabs(1.0+3.5). Is it a bug?
Really appreciate. GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html > This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /home/chuanchun/Bureau/a.out...done. (gdb) list 1 #include "stdio.h" 2 #include <stdlib.h> 3 #include <math.h> 4 5 6 void main() 7 { 8 printf( "%lf.\n", fabs(1.0+3.5)); 9 } (gdb) b 8 Breakpoint 1 at 0x400538: file a.c, line 8. (gdb) r Starting program: /home/chuanchun/Bureau/a.out Breakpoint 1, main () at a.c:8 8 printf( "%lf.\n", fabs(1.0+3.5)); (gdb) p fabs(1.0+3.5) $1 = 1 Regards, Chuanjun HE
_______________________________________________ bug-gdb mailing list bug-gdb@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gdb