This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/21549] New: c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: "grasshopper at vollbio dot de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 05 Jun 2017 15:04:19 +0000
- Subject: [Bug gdb/21549] New: c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=21549
Bug ID: 21549
Summary: c-typeprint.c:262: internal-error: void
cp_type_print_method_args(type*, const char*, const
char*, int, ui_file*, const type_print_options*):
Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR'
failed.
Product: gdb
Version: 7.12.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: grasshopper at vollbio dot de
Target Milestone: ---
GDB exits with exit code 0 and error message (copied from Eclipse console
view):
&"../../../gdb-7.12.1/gdb/c-typeprint.c:262: internal-error: void
cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const
type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR'
failed.\nA problem internal to GDB has been detected,\nfurther debugging may
prove unreliable.\n"
&"\nThis is a bug, please report it."
&" For instructions, see:\n<http://www.gnu.org/software/gdb/bugs/>."
&"\n\n"
717-gdb-exit
GDB is connect to the gdb-server of openocd and thru this to my ARM target.
Stepping through the startup code (assembler code) of my target works, entering
the C++ part (main() routine) leads to the error above.
The error renders the debug session unusable.
I have archive all the sources and the relevant binary, so further tests or
provision of them are possible.
Host OS:
Gentoo Linux
# uname -a
Linux Ghost 4.4.21-gentoo-native-Ghost #3 SMP Sun Mar 19 18:12:33 CET 2017 i686
Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz GenuineIntel GNU/Linux
# arm-none-eabi-gdb --version
GNU gdb (GDB) 7.12.1
Copyright (C) 2017 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 "--host=i686-pc-linux-gnu --target=arm-none-eabi".
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".
# arm-none-eabi-gdb --configuration
This GDB was configured as follows:
configure --host=i686-pc-linux-gnu --target=arm-none-eabi
--with-auto-load-dir=$debugdir:$datadir/auto-load
--with-auto-load-safe-path=$debugdir:$datadir/auto-load
--with-expat
--with-gdb-datadir=/home/lode/e_workspace/Stm32-Universal-Blinky+Shell/Toolchain/src/../arm-mcu-tools/share/gdb
(relocatable)
--with-jit-reader-dir=/home/lode/e_workspace/Stm32-Universal-Blinky+Shell/Toolchain/src/../arm-mcu-tools/lib/gdb
(relocatable)
--without-libunwind-ia64
--with-lzma
--with-python=/usr
--without-guile
--with-separate-debug-dir=/home/lode/e_workspace/Stm32-Universal-Blinky+Shell/Toolchain/src/../arm-mcu-tools/lib/debug
(relocatable)
--without-babeltrace
("Relocatable" means the directory can be moved with the GDB installation
tree, and GDB will still find it.)
--
You are receiving this mail because:
You are on the CC list for the bug.
- Follow-Ups:
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: grasshopper at vollbio dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: grasshopper at vollbio dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: keiths at redhat dot com
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: keiths at redhat dot com
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: keiths at redhat dot com
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: keiths at redhat dot com
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: palves at redhat dot com
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de
- [Bug gdb/21549] c-typeprint.c:262: internal-error: void cp_type_print_method_args(type*, const char*, const char*, int, ui_file*, const type_print_options*): Assertion `TYPE_CODE (args[0].type) == TYPE_CODE_PTR' failed.
- From: linuxer at quantentunnel dot de