From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10797 invoked by alias); 13 Sep 2002 07:36:31 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10781 invoked from network); 13 Sep 2002 07:36:28 -0000 Received: from unknown (HELO delta.ds2.pg.gda.pl) (213.192.72.1) by sources.redhat.com with SMTP; 13 Sep 2002 07:36:28 -0000 Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id JAA21804; Fri, 13 Sep 2002 09:36:47 +0200 (MET DST) Date: Fri, 13 Sep 2002 00:36:00 -0000 From: "Maciej W. Rozycki" Reply-To: "Maciej W. Rozycki" To: Daniel Jacobowitz cc: Andrew Cagney , Fred Fish , binutils@sources.redhat.com, gdb@sources.redhat.com Subject: Re: MIPS sign extension of addresses In-Reply-To: <20020912153000.GA11343@nevyn.them.org> Message-ID: Organization: Technical University of Gdansk MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-09/txt/msg00148.txt.bz2 On Thu, 12 Sep 2002, Daniel Jacobowitz wrote: > > >I've not yet checked, but are there fundamental reasons why bfd_vma > > >or CORE_ADDR have to be unsigned? > > > > I don't think it will help. I think it will also hinder the situtation > > where BFD/GDB are supporting multiple architectures - one signed and one > > unsigned. > > Oh, Andrew's right. Signed CORE_ADDR isn't viable because other > architectures have and assume an unsigned address space. Because MIPS is a minority? Well, I can see some reason here, but care has to be taken not to lose a sign with casts when operating on MIPS addresses. Fortunately the positive and the negative ranges of addresses are distinct on MIPS so you won't find normal code or data crossing a boundary (that might lead to wrong results of compare operations). -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available +