This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
internal-error: find_size_for_pointer_math: Assertion `TYPE_CODE (ptr_type) == TYPE_CODE_PTR' failed.
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: gdb <gdb at sourceware dot org>
- Cc: Tom Tromey <tromey at redhat dot com>
- Date: Fri, 11 Sep 2009 13:51:12 -0700
- Subject: internal-error: find_size_for_pointer_math: Assertion `TYPE_CODE (ptr_type) == TYPE_CODE_PTR' failed.
Greetings,
Should we have a 'python' component in bugzilla?
I just stumbled on above assert in current CVS Head.
To reproduce:
$ gdb64-cvs
GNU gdb (GDB) 6.8.50.20090911-cvs
Copyright (C) 2009 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-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
(gdb) print 1
$1 = 1
(gdb) print $1[0]
cannot subscript something of type `int'
(gdb) py one = gdb.history(0)
(gdb) py print one
1
(gdb) py print one[0]
../../src/gdb/valarith.c:58: internal-error:
find_size_for_pointer_math: Assertion `TYPE_CODE (ptr_type) ==
TYPE_CODE_PTR' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Aborted (core dumped)
--
Paul Pluzhnikov