From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26899 invoked by alias); 6 Feb 2002 22:12:24 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26802 invoked from network); 6 Feb 2002 22:12:22 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 6 Feb 2002 22:12:22 -0000 Received: from drow by nevyn.them.org with local (Exim 3.34 #1 (Debian)) id 16YaIW-0003ut-00; Wed, 06 Feb 2002 17:12:12 -0500 Date: Wed, 06 Feb 2002 14:12:00 -0000 From: Daniel Jacobowitz To: Jim Blandy Cc: Andrew Cagney , Kevin Buettner , gdb-patches@sources.redhat.com Subject: Re: RFA: Do solib address arithmetic with appropriate truncation Message-ID: <20020206171212.A14876@nevyn.them.org> Mail-Followup-To: Jim Blandy , Andrew Cagney , Kevin Buettner , gdb-patches@sources.redhat.com References: <20020203013131.C26295E9DE@zwingli.cygnus.com> <3C5D755D.4030201@cygnus.com> <1020204161424.ZM16473@localhost.localdomain> <3C5EBE78.1020500@cygnus.com> <3C607B29.7060306@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2002-02/txt/msg00182.txt.bz2 On Wed, Feb 06, 2002 at 02:28:59PM -0500, Jim Blandy wrote: > > Andrew Cagney 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? Just to provide an alternate wording of Andrew's answer - one of the quirks of MIPS is that it can use a 32-bit data space, and a 32-bit ELF format, and yet have 64-bit GPRs. Another is that those 64-bit GPRs may be usable in 64-bit mode from user programs, and may not be - and might be readable by the stub in 64-bit mode or not. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer