public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/12796] New: GDB is unable to do inf-call of return type _Complex on x86_64-linux
@ 2011-05-23 14:18 qiyao at gcc dot gnu.org
  2011-05-23 14:19 ` [Bug gdb/12796] " qiyao at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-23 14:18 UTC (permalink / raw)
  To: gdb-prs

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

           Summary: GDB is unable to do inf-call of return type _Complex
                    on x86_64-linux
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
        AssignedTo: unassigned@sourceware.org
        ReportedBy: qiyao@gcc.gnu.org


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

Test case is attached.  Here are the steps to reproduce it.

$ gcc -g complex-ret.c -o complex-ret
$ ./gdb complex-ret
(gdb) b main
Breakpoint 1 at 0x40044c: file /scratch/yao/complex-ret.c, line 9.
(gdb) run
Breakpoint 1, main () at /scratch/yao/complex-ret.c:9
9         return 0;
(gdb) p return_float_complex (fc)
During symbol reading, incomplete CFI data; unspecified registers (e.g., rax)
at 0x40044c.
$1 = 0 + 0 * I  // <-- return value is wrong.

(gdb) p return_double_complex (dc)
$2 = 0 + 0 * I  // <-- return value is wrong.

(gdb) p return_long_double_complex (ldc)
../../src/gdb/amd64-tdep.c:622: internal-error: amd64_return_value: Assertion
`len <= 16' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n)

-- 
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] 6+ messages in thread

* [Bug gdb/12796] GDB is unable to do inf-call of return type _Complex on x86_64-linux
  2011-05-23 14:18 [Bug gdb/12796] New: GDB is unable to do inf-call of return type _Complex on x86_64-linux qiyao at gcc dot gnu.org
@ 2011-05-23 14:19 ` qiyao at gcc dot gnu.org
  2011-05-23 14:32 ` [Bug tdep/12796] " qiyao at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: qiyao at gcc dot gnu.org @ 2011-05-23 14:19 UTC (permalink / raw)
  To: gdb-prs

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

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|                            |x86_64-linux
               Host|                            |x86_64-linux
              Build|                            |x86_64-linux

-- 
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] 6+ messages in thread

* [Bug tdep/12796] GDB is unable to do inf-call of return type _Complex on x86_64-linux
  2011-05-23 14:18 [Bug gdb/12796] New: GDB is unable to do inf-call of return type _Complex on x86_64-linux qiyao at gcc dot gnu.org
  2011-05-23 14:19 ` [Bug gdb/12796] " qiyao at gcc dot gnu.org
@ 2011-05-23 14:32 ` qiyao at gcc dot gnu.org
  2012-10-23 18:17 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ 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=12796

Yao Qi <qiyao at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |tdep

-- 
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] 6+ messages in thread

* [Bug tdep/12796] GDB is unable to do inf-call of return type _Complex on x86_64-linux
  2011-05-23 14:18 [Bug gdb/12796] New: GDB is unable to do inf-call of return type _Complex on x86_64-linux qiyao at gcc dot gnu.org
  2011-05-23 14:19 ` [Bug gdb/12796] " qiyao at gcc dot gnu.org
  2011-05-23 14:32 ` [Bug tdep/12796] " qiyao at gcc dot gnu.org
@ 2012-10-23 18:17 ` cvs-commit at gcc dot gnu.org
  2012-10-23 18:25 ` cvs-commit at gcc dot gnu.org
  2012-10-24 13:39 ` jan.kratochvil at redhat dot com
  4 siblings, 0 replies; 6+ 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=12796

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-23 18:16:59 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] 6+ messages in thread

* [Bug tdep/12796] GDB is unable to do inf-call of return type _Complex on x86_64-linux
  2011-05-23 14:18 [Bug gdb/12796] New: GDB is unable to do inf-call of return type _Complex on x86_64-linux qiyao at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-10-23 18:17 ` cvs-commit at gcc dot gnu.org
@ 2012-10-23 18:25 ` cvs-commit at gcc dot gnu.org
  2012-10-24 13:39 ` jan.kratochvil at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2012-10-23 18:25 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-10-23 18:25:36 UTC ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    kettenis@sourceware.org    2012-10-23 18:25:26

Modified files:
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.base: callfuncs.exp 

Log message:
    * gdb.base/callfuncs.exp: PR gdb/12796, gdb/12798 and gdb/12800
    are now fixed.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3422&r2=1.3423
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/callfuncs.exp.diff?cvsroot=src&r1=1.53&r2=1.54

-- 
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] 6+ messages in thread

* [Bug tdep/12796] GDB is unable to do inf-call of return type _Complex on x86_64-linux
  2011-05-23 14:18 [Bug gdb/12796] New: GDB is unable to do inf-call of return type _Complex on x86_64-linux qiyao at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-10-23 18:25 ` cvs-commit at gcc dot gnu.org
@ 2012-10-24 13:39 ` jan.kratochvil at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: jan.kratochvil at redhat dot com @ 2012-10-24 13:39 UTC (permalink / raw)
  To: gdb-prs

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

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 #3 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2012-10-24 13:39:22 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] 6+ messages in thread

end of thread, other threads:[~2012-10-24 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-23 14:18 [Bug gdb/12796] New: GDB is unable to do inf-call of return type _Complex on x86_64-linux qiyao at gcc dot gnu.org
2011-05-23 14:19 ` [Bug gdb/12796] " qiyao at gcc dot gnu.org
2011-05-23 14:32 ` [Bug tdep/12796] " qiyao at gcc dot gnu.org
2012-10-23 18:17 ` cvs-commit at gcc dot gnu.org
2012-10-23 18:25 ` cvs-commit at gcc dot gnu.org
2012-10-24 13:39 ` 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).