This is the mail archive of the gdb-prs@sourceware.org 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: c++/2412: gdb crashes with complex data


The following reply was made to PR c++/2412; it has been noted by GNATS.

From: "Jim Blandy" <jimb@red-bean.com>
To: jacob@jacob.remcomp.fr
Cc: gdb-gnats@sources.redhat.com
Subject: Re: c++/2412: gdb crashes with complex data
Date: Wed, 6 Feb 2008 17:20:48 -0800

 This seems to be fixed in the current sources.  Would you like to try
 building from CVS and see if the problem still occurs?
 
 If it does, please provide a specific test program we can use.
 There's no reason to provide hints when exact instructions are not
 much more trouble.
 
 $ cat complex.c
 cat: complex.c: No such file or directory
 $ cd ~/play
 $ cat complex.c
 #include <stdio.h>
 
 long double _Complex foo = 4.8;
 
 int
 main (int argc, char **argv)
 {
   puts ("Hello, world!");
   return 0;
 }
 $ gcc -g complex.c -o complex
 $ ~/gdb/pub/nat/gdb/gdb ~/play/complex
 GNU gdb 6.7.50.20080111-cvs
 Copyright (C) 2008 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 "i686-pc-linux-gnu"...
 (gdb) start
 Breakpoint 1 at 0x8048395: file complex.c, line 8.
 Starting program: /home/jimb/play/complex
 main () at complex.c:8
 8         puts ("Hello, world!");
 (gdb) print foo
 $1 = 4.7999999999999998223643160599749535 + 0 * I
 (gdb)


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