utils.c: Sign-extend addresses if required by the target

Daniel Jacobowitz drow@false.org
Sun Dec 16 21:43:00 GMT 2007

On Thu, Nov 22, 2007 at 04:25:18PM +0000, Maciej W. Rozycki wrote:
> 2007-11-22  Nigel Stephens  <nigel@mips.com>
>             Maciej W. Rozycki  <macro@mips.com>
> 	* utils.c (string_to_core_addr): If executable format indicates
> 	that addresses should be sign-extended and there are only 8 hex
> 	digits in the address, then do so.
> 	* Makefile.in (utils.o): Depend on $(gdbcore_h).
>  OK to apply?

OK.  This routine is used by MI, but should not be - a long term TODO
item is to change the way we present frame IDs to MI frontends to not
be based on the stack pointer, and then its use will go away.  But
that's not going to happen too soon.

Daniel Jacobowitz

More information about the Gdb-patches mailing list