public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug tdep/12800] New: Failed to pass many _Complex args in value
@ 2011-05-24  1:13 qiyao at gcc dot gnu.org
  2012-10-23 18:17 ` [Bug tdep/12800] " 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-24  1:13 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: Failed to pass many _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


Similar to Bug 12798, GDB is unable to pass many _Complex args in value
correctly.

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

Breakpoint 1, main () at /scratch/yao/complex-many.c:57
57        return 0;
(gdb) p t_float_complex_many_args(fc1, fc2, fc3, fc4, fc1, fc2, fc3, fc4, fc1,
fc2, fc3, fc4, fc1, fc2, fc3, fc4)
During symbol reading, incomplete CFI data; unspecified registers (e.g., rax)
at 0x402553.
$1 = 0  // <- wrong. 1 is expected.
(gdb) p t_double_complex_many_args(dc1, dc2, dc3, dc4, dc1, dc2, dc3, dc4, dc1,
dc2, dc3, dc4, dc1, dc2, dc3, dc4)
$2 = 0  // <- wrong. 1 is expected.
(gdb) p t_long_double_complex_many_args(ldc1, ldc2, ldc3, ldc4, ldc1, ldc2,
ldc3, ldc4, ldc1, ldc2, ldc3, ldc4, ldc1, ldc2, ldc3, ldc4)
$3 = 1  // right.

-- 
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/12800] Failed to pass many _Complex args in value
  2011-05-24  1:13 [Bug tdep/12800] New: Failed to pass many _Complex args in value qiyao at gcc dot gnu.org
@ 2012-10-23 18:17 ` cvs-commit at gcc dot gnu.org
  2012-10-24 13:40 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-10-23 18:17 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-23 18:17:01 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kettenis@sourceware.org    2012-10-23 18:16:55

Modified files:
    gdb            : ChangeLog amd64-tdep.c amd64-tdep.h 

Log message:
    PR gdb/12796
    PR gdb/12798
    PR gdb/12800
    * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
    AMD64_FTAG_REGNUM.
    * amd64-tdep.c (amd64_classify): Classify complex types.
    (amd64_return_value): Handle the COMPLEX_X87 class.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14750&r2=1.14751
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/amd64-tdep.c.diff?cvsroot=src&r1=1.113&r2=1.114
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/amd64-tdep.h.diff?cvsroot=src&r1=1.22&r2=1.23

-- 
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/12800] Failed to pass many _Complex args in value
  2011-05-24  1:13 [Bug tdep/12800] New: Failed to pass many _Complex args in value qiyao at gcc dot gnu.org
  2012-10-23 18:17 ` [Bug tdep/12800] " cvs-commit at gcc dot gnu.org
@ 2012-10-24 13:40 ` jan.kratochvil at redhat dot com
  1 sibling, 0 replies; 3+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-10-24 13:40 UTC (permalink / raw)
  To: gdb-prs

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

Jan Kratochvil <jan.kratochvil at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jan.kratochvil at redhat
                   |                            |dot com
         Resolution|                            |FIXED
         AssignedTo|unassigned at sourceware    |kettenis at sourceware dot
                   |dot org                     |org

--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-10-24 13:40:09 UTC ---
Patch is checked in and KFAIL has been removed from the testsuite.

-- 
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-24  1:13 [Bug tdep/12800] New: Failed to pass many _Complex args in value qiyao at gcc dot gnu.org
2012-10-23 18:17 ` [Bug tdep/12800] " 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).