From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24158 invoked by alias); 24 Mar 2005 20:23:40 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24138 invoked from network); 24 Mar 2005 20:23:34 -0000 Received: from unknown (HELO calvin.codito.co.in) (220.225.32.98) by sourceware.org with SMTP; 24 Mar 2005 20:23:34 -0000 Received: from [192.168.100.52] (arnor.codito.co.in [192.168.100.52]) by calvin.codito.co.in (8.12.10/8.12.10) with ESMTP id j2OKNR89023266; Fri, 25 Mar 2005 01:53:27 +0530 Message-ID: <424321B8.1080004@codito.com> Date: Thu, 24 Mar 2005 20:23:00 -0000 From: Ramana Radhakrishnan User-Agent: Mozilla Thunderbird 0.8 (X11/20040926) MIME-Version: 1.0 To: pgilliam@us.ibm.com CC: gdb@sources.redhat.com, Daniel Jacobowitz , amit bhor Subject: Re: RFC : Handling breakpoints on archs. with imprecise exceptions. References: <42431904.7010708@codito.com> <200503241153.01472.pgilliam@us.ibm.com> In-Reply-To: <200503241153.01472.pgilliam@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-03/txt/msg00216.txt.bz2 Hi, > Isn't this usually handled by the kernel? How could this be handled by the kernel ? The point is that one needs to insert 4 instructions in the place of one for a software breakpoint and the mechanism mentioned in my earlier mail is possibly one of the methods . (The point is one cannot ignore the next 3 instructions in the pipeline since one of them could be a branch to some location , so a simple DECR_PC_AFTER_BREAK would not necessarily work always ) Addr to set breakpoint: someinsn b bar Having said that, could you point me to any kernel that does this ? cheers Ramana -- Ramana Radhakrishnan GNU Tools codito ergo sum (www.codito.com)