From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12389 invoked by alias); 30 Oct 2006 17:07:56 -0000 Received: (qmail 12345 invoked by uid 22791); 30 Oct 2006 17:07:55 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Mon, 30 Oct 2006 17:07:49 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Geabz-0003UL-3v for gdb@sourceware.org; Mon, 30 Oct 2006 12:07:47 -0500 Date: Mon, 30 Oct 2006 17:07:00 -0000 From: Daniel Jacobowitz To: gdb@sourceware.org Subject: Re: Problem with breakpoint addresses Message-ID: <20061030170747.GA13193@nevyn.them.org> Mail-Followup-To: gdb@sourceware.org References: <452E8150.5090209@st.com> <1160682611.14535.191.camel@localhost.localdomain> <452F4C03.2010608@st.com> <20061013131900.GA9025@nevyn.them.org> <4546257E.50207@st.com> <20061030164414.GA11764@nevyn.them.org> <45462E5B.1020207@st.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45462E5B.1020207@st.com> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00303.txt.bz2 On Mon, Oct 30, 2006 at 04:54:51PM +0000, Andrew STUBBS wrote: > Daniel Jacobowitz wrote: > >Some day, I think we're going to need to do as Mark and Michael > >suggested; stop using CORE_ADDR so indiscriminately as a convenient > >integer type. In the mean time, perhaps everywhere that doesn't > >define integer_to_address should get a better default, or the fallback > >case in value_as_address should be changed, so that this is fixed > >equally on other platforms. > > Hmmm, well some of those platforms, such as sh64, like the current > default behaviour as it is. They should explicitly have a sign extending method set then. See MIPS. Now it depends if your register has type "int" or "uint", which really shouldn't matter. > Perhaps the correct fix is to define a default address width for each > target variant, but that seems like more work than is really necessary. > > Should I post my patch or work up something else? Dunno. Fixing SH is better than fixing nothing. -- Daniel Jacobowitz CodeSourcery