This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFA: print addresses that are longer than pointers, take two
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: RFA: print addresses that are longer than pointers, take two
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 01 May 2000 16:08:17 -0500
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <200004270025.TAA03409@zwingli.cygnus.com><npem7rjudn.fsf@zwingli.cygnus.com> <3908DD11.1FB8CD25@cygnus.com><np3do4ilfj.fsf@zwingli.cygnus.com> <390D12BB.A7978D8E@cygnus.com>
> Now consider a mips32 program (in elf32) running on a mips64 target
> (another would be sparc32/sparc64). ADDRESS_TO_POINTER et.al. would
> handle the translation required by ``void* <=> CORE_ADDR''. However,
> what about the address information contained in the symtab and debug
> sections. Wouldn't that also need to be converted to a cannonical form?
Those addresses should be in canonical form already, as provided by
BFD. As I said in the paragraph after the one you quoted:
> Symbol addresses are always byte addresses, so CORE_ADDRs and symbol
> addresses are the same thing.
So, Dwarf 2 info should hold byte addresses, BFD should provide byte
addresses, and so on.
Can you find a specific instance where the wrong thing happens?