public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/12798] New: Failed to pass _Complex args in value
@ 2011-05-23 15:43 qiyao at gcc dot gnu.org
  2012-10-23 18:17 ` [Bug tdep/12798] " cvs-commit at gcc dot gnu.org
  2012-10-24 13:40 ` jan.kratochvil at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-23 15:43 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12798

           Summary: Failed to pass _Complex args in value
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tdep
        AssignedTo: unassigned@sourceware.org
        ReportedBy: qiyao@gcc.gnu.org
              Host: x86_64-linux
            Target: x86_64-linux
             Build: x86_64-linux


Created attachment 5748
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5748
test case

GDB doesn't pass _Complex args in value in a correct way.

Here are the steps to reproduce it,

$ gcc -g complex-value.c -o complex-value
$ ./gdb ./complex-value
(gdb) b main
Breakpoint 1 at 0x4008b5: file /scratch/yao/complex-value.c, line 58.
(gdb) run
Starting program: /scratch/yao/gdb_cvs/build-x86_64/gdb/compllex-value

Breakpoint 1, main () at /scratch/yao/complex-value.c:58
58        return 0;
(gdb) p t_float_complex_values(fc1, fc2)
During symbol reading, incomplete CFI data; unspecified registers (e.g., rax)
at 0x4008b5.
$1 = 0  // <-- wrong.  1 is expected here.
(gdb) p t_double_complex_values(dc1, dc2)
$2 = 0  // <-- wrong.  1 is expected here.
(gdb) p t_long_double_complex_values(ldc1, ldc2)
$3 = 1  // <-- correct.

-- 
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-24 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 15:43 [Bug tdep/12798] New: Failed to pass _Complex args in value qiyao at gcc dot gnu.org
2012-10-23 18:17 ` [Bug tdep/12798] " cvs-commit at gcc dot gnu.org
2012-10-24 13:40 ` jan.kratochvil at redhat 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).