This is the mail archive of the gdb@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]

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


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