bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ask a question about the bug


From: Chuan-jun He
Subject: ask a question about the bug
Date: Wed, 15 Jun 2011 14:40:10 -0400

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]