This is the mail archive of the gdb-patches@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] |
Hi, On Wed, 27 Sep 2006 21:01:11 +0200, Mark Kettenis wrote: ... > This should almost certainly be handled in value.c:value_as_address(). > You could add an i386-specific integer_to_address(), that would > truncate the address to 32 bits. But in fact, I can't think of a > reason why truncating to the size of a pointer shouldn't be the > default behaviour. Made the default way, I also do not see the reason to keep larger addresses. There is some note about `ADDR_BITS_REMOVE' but I believe it is only about the lowest (0-2 or so) bits and the high bits should not hurt anyone. On Wed, 27 Sep 2006 21:24:27 +0200, Jim Blandy wrote: ... > Just as a sanity check: what does 'show architecture' say when you're > debugging an i386 inferior on gdb/amd64? as expected: The target architecture is set automatically (currently i386) ... > Is there some code there assuming that host == target? I do not believe so, it is handled everything by `LONGEST' / `unpack_long'. Regards, Jan
Attachment:
gdb-6.5-memory-address-width-v2.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |