This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: Do solib address arithmetic with appropriate truncation
> Andrew Cagney <ac131313@cygnus.com> writes:
>
>> Assuming a 32 bit MIPS section header and offset:
>>
>> 0x70000000
>> 0x20000000
>> ----------
>> 0x90000000 -> 0xffffffff90000000
>
>
> Okay, thanks.
>
> Now, on such a system --- 32 bit MIPS section headers and 32-bit
> pointers --- where will a value like 0xffffffff90000000 ever actually
> appear *on the target*? That is, why isn't this sign extension just a
> figment of GDB's imagination?
It will appear in the target's 64 bit registers.
Andrew