This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/12783] New: GDB is unable to do inf-call of return type_Complex
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 19 May 2011 03:16:02 +0000
- Subject: [Bug gdb/12783] New: GDB is unable to do inf-call of return type_Complex
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12783
Summary: GDB is unable to do inf-call of return type _Complex
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: qiyao@gcc.gnu.org
Created attachment 5737
--> http://sourceware.org/bugzilla/attachment.cgi?id=5737
test case
GDB is unable to do inf-call of return type double _Complex and long double
_Complex. GDB works well with float _Complex. Test case complex.c is
attached.
$ gcc -g complex.c -o complex
$ ./gdb complex
(gdb) b main
Breakpoint 1 at 0x80483b7: file complex.c, line 10.
(gdb) run
Starting program: /home/yao/SourceCode/gnu/gdb/build/gdb/complex
Breakpoint 1, main () at complex.c:10
10 return 0;
(gdb) p return_float_complex (fc)
During symbol reading, incomplete CFI data; unspecified registers (e.g., eax)
at 0x80483b7.
$1 = 1 + 2 * I
[As we can see, gdb works well with float _Complex.]
(gdb) p return_double_complex (dc)
Program received signal SIGSEGV, Segmentation fault.
0x080483f7 in return_double_complex (
dc=5.3075798043064489e-315 + -1.9970629217568785 * I) at complex.c:22
22 return dc;
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(return_double_complex) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) p return_long_double_complex (ldc)
Program received signal SIGSEGV, Segmentation fault.
0x08048413 in return_long_double_complex (
ldc=2.5653355435634077134800790907094601e-4937 +
2.565355113579378750652245853337455e-4937 * I) at complex.c:28
28 return ldc;
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on".
Evaluation of the expression containing the function
(return_long_double_complex) will be abandoned.
When the function is done executing, GDB will silently stop.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.