Now I know why we used to swap builtin_type_void.
Daniel Jacobowitz
drow@false.org
Wed Dec 6 19:52:00 GMT 2006
(top-gdb) p *builtin_type_void_data_ptr
$24 = {pointer_type = 0x0, reference_type = 0x0, chain = 0x7b50d0,
instance_flags = 0, length = 8, main_type = 0x7b5100}
(top-gdb) p current_gdbarch.ptr_bit
$25 = 32
Because we didn't swap out "void", we followed the cached pointer link
in builtin_type_void when we tried to create a pointer to void. My
initial default gdbarch was 64-bit, because I built a 64-bit GDB
binary. So the cached pointer type is 64-bit.
This is a mess. I think we may need to revert the builtin_type_void
patch unless you have a better idea.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb-patches
mailing list