This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: utils.c: Sign-extend addresses if required by the target
- From: Daniel Jacobowitz <drow at false dot org>
- To: "Maciej W. Rozycki" <macro at mips dot com>
- Cc: gdb-patches at sourceware dot org, Nigel Stephens <nigel at mips dot com>, "Maciej W. Rozycki" <macro at linux-mips dot org>
- Date: Sun, 16 Dec 2007 16:33:24 -0500
- Subject: Re: utils.c: Sign-extend addresses if required by the target
- References: <Pine.LNX.4.61.0711221606400.15819@perivale.mips.com>
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
CodeSourcery