public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12776] New: GDB is unable to do inf-call of vararg of type _Complex
@ 2011-05-18 7:49 qiyao at gcc dot gnu.org
2011-05-23 14:34 ` [Bug tdep/12776] " qiyao at gcc dot gnu.org
2012-10-25 8:10 ` kettenis at gnu dot org
0 siblings, 2 replies; 3+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-18 7:49 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12776
Summary: GDB is unable to do inf-call of vararg of 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 5732
--> http://sourceware.org/bugzilla/attachment.cgi?id=5732
test case
GDB can't do inf-all of vararg functions if parameters' type is double _Complex
and long double _Complex.
Here are the steps to reproduce this problem on x86-linux
$ gcc -g complex.c -o complex
$./gdb complex
...
Breakpoint 1, main () at complex.c:19
19 return 0;
(gdb) print find_max_double_real(4, dc1, dc2, dc3, dc4)
During symbol reading, incomplete CFI data; unspecified registers (e.g., eax)
at 0x80483b7.
Program received signal SIGSEGV, Segmentation fault.
0x08048423 in find_max_double_real (num_vals=0) at complex.c:37
37 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.
We can get similar error if parameter's type is long double _Complex. However,
gdb works well when parameter's type is float _Complex.
--
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/12776] GDB is unable to do inf-call of vararg of type _Complex
2011-05-18 7:49 [Bug gdb/12776] New: GDB is unable to do inf-call of vararg of type _Complex qiyao at gcc dot gnu.org
@ 2011-05-23 14:34 ` qiyao at gcc dot gnu.org
2012-10-25 8:10 ` kettenis at gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-23 14:34 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12776
Yao Qi <qiyao at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |i686-pc-linux-gnu
Component|gdb |tdep
Host| |i686-pc-linux-gnu
Build| |i686-pc-linux-gnu
--
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/12776] GDB is unable to do inf-call of vararg of type _Complex
2011-05-18 7:49 [Bug gdb/12776] New: GDB is unable to do inf-call of vararg of type _Complex qiyao at gcc dot gnu.org
2011-05-23 14:34 ` [Bug tdep/12776] " qiyao at gcc dot gnu.org
@ 2012-10-25 8:10 ` kettenis at gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: kettenis at gnu dot org @ 2012-10-25 8:10 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=12776
Mark Kettenis <kettenis at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |kettenis at gnu dot org
Resolution| |FIXED
--- Comment #1 from Mark Kettenis <kettenis at gnu dot org> 2012-10-25 08:10:44 UTC ---
See PR gdb/12783.
--
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
end of thread, other threads:[~2012-10-25 8:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18 7:49 [Bug gdb/12776] New: GDB is unable to do inf-call of vararg of type _Complex qiyao at gcc dot gnu.org
2011-05-23 14:34 ` [Bug tdep/12776] " qiyao at gcc dot gnu.org
2012-10-25 8:10 ` kettenis at gnu dot org
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).