From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24361 invoked by alias); 6 Aug 2007 01:51:29 -0000 Received: (qmail 23792 invoked by uid 22791); 6 Aug 2007 01:51:28 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 06 Aug 2007 01:51:26 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id B6443982AD; Mon, 6 Aug 2007 01:51:25 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8C1D098101; Mon, 6 Aug 2007 01:51:25 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IHrkg-0007et-AN; Sun, 05 Aug 2007 21:51:22 -0400 Date: Mon, 06 Aug 2007 01:51:00 -0000 From: Daniel Jacobowitz To: Vinod pandarinathan Cc: gdb@sourceware.org Subject: Re: MIPS 64 bit addressing query Message-ID: <20070806015122.GA29212@caradoc.them.org> Mail-Followup-To: Vinod pandarinathan , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00051.txt.bz2 On Sun, Aug 05, 2007 at 05:57:36PM -0700, Vinod pandarinathan wrote: > We are using MIPS 3 ISA and since breakpoint is set at an address > where the 32nd bit is set to 1 the 64 bit sign extended values does > not compare with the unsigned > break point address. > > Can you please explain how we can fix the problem? Should I sign > extend the break point address too ? Wherever you got the zero extended address, there's the bug. All addresses should be sign extended when working with the MIPS target, even most of the ones from the command line. As David said, I suggest you upgrade before you try modifying GDB. -- Daniel Jacobowitz CodeSourcery