From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7721 invoked by alias); 13 Oct 2006 08:29:31 -0000 Received: (qmail 7711 invoked by uid 22791); 13 Oct 2006 08:29:31 -0000 X-Spam-Check-By: sourceware.org Received: from lon-del-02.spheriq.net (HELO lon-del-02.spheriq.net) (195.46.50.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Oct 2006 08:29:28 +0000 Received: from lon-out-01.spheriq.net ([195.46.50.129]) by lon-del-02.spheriq.net with ESMTP id k9D8T7lM020487 for ; Fri, 13 Oct 2006 08:29:08 GMT Received: from lon-cus-01.spheriq.net (lon-cus-01.spheriq.net [195.46.50.37]) by lon-out-01.spheriq.net with ESMTP id k9D8T2Ct011948 for ; Fri, 13 Oct 2006 08:29:06 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by lon-cus-01.spheriq.net with ESMTP id k9D8SsIh025825 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Fri, 13 Oct 2006 08:28:56 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 BC87EDB39; Fri, 13 Oct 2006 08:25:48 +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 4E4734731B; Fri, 13 Oct 2006 08:19:17 +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 CIC38988 (AUTH stubbsa); Fri, 13 Oct 2006 09:19:15 +0100 (BST) Message-ID: <452F4C03.2010608@st.com> Date: Fri, 13 Oct 2006 08:29:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Michael Snyder Cc: GDB List Subject: Re: Problem with breakpoint addresses References: <452E8150.5090209@st.com> <1160682611.14535.191.camel@localhost.localdomain> In-Reply-To: <1160682611.14535.191.camel@localhost.localdomain> 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/msg00086.txt.bz2 Michael Snyder wrote: > What's the size of $r1, and what's the size of an address? > By converting $r1 to an address, you're applying an implied cast. > If that doesn't give the expected result (eg. because $r1 is signed), > then you need to use an explicit cast. Registers are 32 bit, addresses are 32 bit. It's just something in GDB that uses 64 bit. It might be because sh-elf also supports sh64. In any case, it is successfully setting the breakpoint and then failing to recognise it when it is hit. That isn't the behaviour I would like. If it totally failed to set it then giving the cast might be fair enough, if the user thought addresses were 64 bit. Andrew