This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/12796] New: GDB is unable to do inf-call of return type_Complex on x86_64-linux


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]