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 tdep/12800] New: Failed to pass many _Complex args in value


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.


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