From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23038 invoked by alias); 20 Oct 2006 08:51:46 -0000 Received: (qmail 23027 invoked by uid 22791); 20 Oct 2006 08:51:45 -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; Fri, 20 Oct 2006 08:51:43 +0000 Received: from fra-out-03.spheriq.net (fra-out-03.spheriq.net [195.46.51.131]) by fra-del-02.spheriq.net with ESMTP id k9K8pfkV003249 for ; Fri, 20 Oct 2006 08:51:41 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-03.spheriq.net with ESMTP id k9K8pek3029814 for ; Fri, 20 Oct 2006 08:51:40 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 k9K8pduL015222 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 20 Oct 2006 08:51:40 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 2CAE0DA43 for ; Fri, 20 Oct 2006 08:51:39 +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 190F0472E7 for ; Fri, 20 Oct 2006 08:51:37 +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 CIC90254 (AUTH stubbsa); Fri, 20 Oct 2006 09:51:31 +0100 (BST) Message-ID: <45388E13.6000408@st.com> Date: Fri, 20 Oct 2006 08:51:00 -0000 From: Andrew STUBBS User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: GDB List Subject: Re: Breakpoints in delay slots References: <453608FC.2040201@st.com> In-Reply-To: <453608FC.2040201@st.com> 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/msg00154.txt.bz2 In reply to the message from Daniel that I never got, but appears in the web archive. (Now that I look I never got my own message back either.) > This is a remarkable mess. Unsurprisingly you aren't the first person > to have this sort of problem, so GDB has a certain amount of support > for delay slots, but MIPS at least is much friendlier: you can use the > same breakpoint instruction, and there's a bit in the cause register > that lets you know you were in a delay slot. > > When you have a symbol file, does that suffice to let you know what > is code and what is data? Unfortunately not. At least, the only way I can think of is to check whether it has a line number or not, and the answer is that even the data has a line number - that of the instruction immediately preceding it. Andrew