This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug tdep/12797] New: GDB is unable to do inf-call of return type_Complex on armv7l-unknown-linux-gnueabi
- From: "qiyao at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 23 May 2011 14:30:32 +0000
- Subject: [Bug tdep/12797] New: GDB is unable to do inf-call of return type_Complex on armv7l-unknown-linux-gnueabi
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12797
Summary: GDB is unable to do inf-call of return type _Complex
on armv7l-unknown-linux-gnueabi
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: tdep
AssignedTo: unassigned@sourceware.org
ReportedBy: qiyao@gcc.gnu.org
Host: armv7l-unknown-linux-gnueabi
Target: armv7l-unknown-linux-gnueabi
Build: armv7l-unknown-linux-gnueabi
Created attachment 5747
--> http://sourceware.org/bugzilla/attachment.cgi?id=5747
test case
inferior gets SEGV when gdb does inf-call of returning _Complex
{float|double|long double}.
$ gcc -marm -g ~/complex-ret.c -o complex-ret
$ ./gdb ./complex-ret
(gdb) b main
Breakpoint 1 at 0x8368: file /home/yao/complex-ret.c, line 9.
(gdb) run
Starting program: /home/yao/gdb/gdb-fsf-git/build/gdb/complex-ret
Breakpoint 1, main () at /home/yao/complex-ret.c:9
9 return 0;
(gdb) p return_double_complex (dc)
During symbol reading, incomplete CFI data; unspecified registers (e.g., r0) at
0x8368.
Program received signal SIGSEGV, Segmentation fault.
0x000083d0 in return_double_complex (dc=4 + 1.146232298351692e-321 * I) at
/home/yao/complex-ret.c:21
21 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_float_complex (fc)
Program received signal SIGSEGV, Segmentation fault.
0x00008398 in return_float_complex (fc=2 + 0 * I) at /home/yao/complex-ret.c:15
15 return fc;
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_float_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.
0x0000840c in return_long_double_complex (ldc=6 + 4.2991634724961358e-311 * I)
at /home/yao/complex-ret.c:27
27 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.