[Bug tdep/24104] New: amd64_push_arguments assert running C++ version of gdb.base/infcall-nested-structs
alahay01 at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Fri Jan 18 13:08:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=24104
Bug ID: 24104
Summary: amd64_push_arguments assert running C++ version of
gdb.base/infcall-nested-structs
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: tdep
Assignee: unassigned at sourceware dot org
Reporter: alahay01 at gcc dot gnu.org
Target Milestone: ---
The C++ variant of gdb.base/infcall-nested-structs.exp produces many assert
failures.
Running one of them manually:
$ ../gdb
./outputs/gdb.base/infcall-nested-structs/c++/infcall-nested-structs-td
GNU gdb (GDB) 8.2.50.20190118-git
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from
./outputs/gdb.base/infcall-nested-structs/c++/infcall-nested-structs-td...
(gdb) b main
Breakpoint 1 at 0x4017ad: file
/work/alahay01/gdb-HEAD/build-x86/gdb/testsuite/../../../src/binutils-gdb/gdb/testsuite/gdb.base/infcall-nested-structs.c,
line 230.
(gdb) r
Starting program:
/work/alahay01/gdb-HEAD/build-x86/gdb/testsuite/outputs/gdb.base/infcall-nested-structs/c++/infcall-nested-structs-td
Breakpoint 1, main () at
/work/alahay01/gdb-HEAD/build-x86/gdb/testsuite/../../../src/binutils-gdb/gdb/testsu
ite/gdb.base/infcall-nested-structs.c:230
230 res = call_all ();
(gdb) p/d check_arg_struct_01_01 (ref_val_struct_01_01)
../../src/binutils-gdb/gdb/amd64-tdep.c:958: internal-error: CORE_ADDR
amd64_push_arguments(regcache*, int, value**, CORE_ADDR,
function_call_return_method): Assertion `!"Unexpected register class."' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y
This is a bug, please report it. For instructions, see:
<http://www.gnu.org/software/gdb/bugs/>.
../../src/binutils-gdb/gdb/amd64-tdep.c:958: internal-error: CORE_ADDR
amd64_push_arguments(regcache*, int, value**, CORE_ADDR,
function_call_return_method): Assertion `!"Unexpected register class."' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Create a core file of GDB? (y or n)
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list