From: Daniel Jacobowitz <drow@false.org>
To: Jim Blandy <jimb@codesourcery.com>, gdb-patches@sourceware.org
Subject: Now I know why we used to swap builtin_type_void.
Date: Wed, 06 Dec 2006 19:52:00 -0000 [thread overview]
Message-ID: <20061206195227.GA9228@nevyn.them.org> (raw)
(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
next reply other threads:[~2006-12-06 19:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-06 19:52 Daniel Jacobowitz [this message]
2006-12-06 20:04 ` Jim Blandy
2006-12-06 20:07 ` Daniel Jacobowitz
2006-12-06 20:15 ` Jim Blandy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061206195227.GA9228@nevyn.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=jimb@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox