This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: MIPS: Handle manual calls of MIPS16 functions with a call stub
On Feb 8, 2008 6:23 AM, Maciej W. Rozycki <macro@mips.com> wrote:
> It is much more than that, but I think it can be done with some
> adjustments to pointer_to_address(), address_to_pointer() and
> integer_to_address() methods. If DWARF-2 records could be treated as
> pointers (which they are given how the linker processes them) rather than
> addresses then such a setup should work. That should be done above the
> level of the DWARF-2 interpreter, as losing the LSB from relative data
> often contained in records would result in an accumulative error.
[that was weird; sorry]
If you're suggesting that we run the values in DWARF data through
pointer_to_address, I don't think that's right, either. DWARF
specifies that those attributes' values are byte addresses of code.
Putting ISA information in low bits of DWARF attribute values isn't
the way we've decided to do things.