From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9212 invoked by alias); 30 Oct 2006 16:18:36 -0000 Received: (qmail 9203 invoked by uid 22791); 30 Oct 2006 16:18:36 -0000 X-Spam-Check-By: sourceware.org Received: from fra-del-02.spheriq.net (HELO fra-del-02.spheriq.net) (195.46.51.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 30 Oct 2006 16:18:20 +0000 Received: from fra-out-01.spheriq.net (fra-out-01.spheriq.net [195.46.51.129]) by fra-del-02.spheriq.net with ESMTP id k9UGIDJ1023486 for ; Mon, 30 Oct 2006 16:18:13 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-01.spheriq.net with ESMTP id k9UGIB8A002817 for ; Mon, 30 Oct 2006 16:18:12 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-02.spheriq.net with ESMTP id k9UGI7OC023313 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 30 Oct 2006 16:18:11 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D954FDA46; Mon, 30 Oct 2006 16:17:42 +0000 (GMT) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0C4C8477B5; Mon, 30 Oct 2006 16:17:08 +0000 (GMT) Received: from [164.129.15.13] (bri1043.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CID62975 (AUTH stubbsa); Mon, 30 Oct 2006 16:17:03 GMT Message-ID: <4546257E.50207@st.com> Date: Mon, 30 Oct 2006 16:18:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Michael Snyder , GDB List Subject: Re: Problem with breakpoint addresses References: <452E8150.5090209@st.com> <1160682611.14535.191.camel@localhost.localdomain> <452F4C03.2010608@st.com> <20061013131900.GA9025@nevyn.them.org> In-Reply-To: <20061013131900.GA9025@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00300.txt.bz2 Sorry it's taken me a little while to get back to this. Daniel Jacobowitz wrote: > Secondly, this is just our use of CORE_ADDR as a native arithmetic type > coming home to byte us. We knew it would someday. I think you should > figure out where the sign extended CORE_ADDR was created, and why. > I hope it was in value_as_address. This isn't a right final fix, but > could you see if setting gdbarch_integer_to_address to a function that > always uses extract_unsigned_integer helps? This fix does indeed solve the problem. Thanks. Why do you think this isn't the right final fix? I can't think of an example of why this wouldn't always work until SH5, but the fix need not affect that. Andrew