public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12791] New: GDB is unable to do inf-call of vararg of type _Complex on arm-linux-gnu-eabi
@ 2011-05-20 14:43 qiyao at gcc dot gnu.org
2011-05-23 14:32 ` [Bug tdep/12791] " qiyao at gcc dot gnu.org
2014-07-19 15:57 ` will.newton at gmail dot com
0 siblings, 2 replies; 3+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-20 14:43 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12791
Summary: GDB is unable to do inf-call of vararg of type
_Complex on arm-linux-gnu-eabi
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: gdb
AssignedTo: unassigned@sourceware.org
ReportedBy: qiyao@gcc.gnu.org
Created attachment 5742
--> http://sourceware.org/bugzilla/attachment.cgi?id=5742
test case
Native gdb configured as armv7l-linux-gnu-eabi can't handle varargs of type
_Complex {float, double, long double}.
Here are the steps to reproduce,
$ gcc -marm complex.c -g -o complex
$ ./gdb complex
(gdb) b main
Breakpoint 1 at 0x8368: file /home/yao/complex.c, line 25.
(gdb) run
Starting program: /home/yao/gdb/gdb-fsf-git/build/gdb/complex
Breakpoint 1, main () at /home/yao/complex.c:25
25 return 0;
(gdb) print find_max_float_real(4, fc1, fc2, fc3, fc4)
Program received signal SIGSEGV, Segmentation fault.
0x000083c8 in find_max_float_real (num_vals=1065353216) at
/home/yao/complex.c:39
39 x = va_arg (argp, float _Complex);
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
(find_max_float_real) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) print find_max_double_real(4, dc1, dc2, dc3, dc4)
Program received signal SIGSEGV, Segmentation fault.
0x00008504 in find_max_double_real (num_vals=-1098616824) at
/home/yao/complex.c:62
62 return max;
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
(find_max_double_real) will be abandoned.
When the function is done executing, GDB will silently stop.
(gdb) print find_max_long_double_real(4, ldc1, ldc2, ldc3, ldc4)
Program received signal SIGSEGV, Segmentation fault.
0x000085dc in find_max_long_double_real (num_vals=0) at /home/yao/complex.c:80
80 return max;
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
(find_max_long_double_real) 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tdep/12791] GDB is unable to do inf-call of vararg of type _Complex on arm-linux-gnu-eabi
2011-05-20 14:43 [Bug gdb/12791] New: GDB is unable to do inf-call of vararg of type _Complex on arm-linux-gnu-eabi qiyao at gcc dot gnu.org
@ 2011-05-23 14:32 ` qiyao at gcc dot gnu.org
2014-07-19 15:57 ` will.newton at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-23 14:32 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12791
Yao Qi <qiyao at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |armv7l-linux-gnu-eabi
Component|gdb |tdep
Host| |armv7l-linux-gnu-eabi
Build| |armv7l-linux-gnu-eabi
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tdep/12791] GDB is unable to do inf-call of vararg of type _Complex on arm-linux-gnu-eabi
2011-05-20 14:43 [Bug gdb/12791] New: GDB is unable to do inf-call of vararg of type _Complex on arm-linux-gnu-eabi qiyao at gcc dot gnu.org
2011-05-23 14:32 ` [Bug tdep/12791] " qiyao at gcc dot gnu.org
@ 2014-07-19 15:57 ` will.newton at gmail dot com
1 sibling, 0 replies; 3+ messages in thread
From: will.newton at gmail dot com @ 2014-07-19 15:57 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=12791
Will Newton <will.newton at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |will.newton at gmail dot com
Resolution|--- |FIXED
--- Comment #1 from Will Newton <will.newton at gmail dot com> ---
This appears to be fixed on master.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-19 15:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-20 14:43 [Bug gdb/12791] New: GDB is unable to do inf-call of vararg of type _Complex on arm-linux-gnu-eabi qiyao at gcc dot gnu.org
2011-05-23 14:32 ` [Bug tdep/12791] " qiyao at gcc dot gnu.org
2014-07-19 15:57 ` will.newton at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).