Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Now I know why we used to swap builtin_type_void.
@ 2006-12-06 19:52 Daniel Jacobowitz
  2006-12-06 20:04 ` Jim Blandy
  2006-12-06 20:15 ` Jim Blandy
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2006-12-06 19:52 UTC (permalink / raw)
  To: Jim Blandy, gdb-patches

(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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-12-06 20:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-06 19:52 Now I know why we used to swap builtin_type_void Daniel Jacobowitz
2006-12-06 20:04 ` Jim Blandy
2006-12-06 20:07   ` Daniel Jacobowitz
2006-12-06 20:15 ` Jim Blandy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox