From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6131 invoked by alias); 24 Mar 2005 21:46:25 -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 6103 invoked from network); 24 Mar 2005 21:46:21 -0000 Received: from unknown (HELO e35.co.us.ibm.com) (32.97.110.133) by sourceware.org with SMTP; 24 Mar 2005 21:46:21 -0000 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by e35.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j2OLkKLg310768 for ; Thu, 24 Mar 2005 16:46:20 -0500 Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j2OLkKqa203242 for ; Thu, 24 Mar 2005 14:46:20 -0700 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j2OLkJS5010324 for ; Thu, 24 Mar 2005 14:46:20 -0700 Received: from dyn9047022123.beaverton.ibm.com (dyn9047022123.beaverton.ibm.com [9.47.22.123]) by d03av01.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j2OLkJbS010301; Thu, 24 Mar 2005 14:46:19 -0700 From: Paul Gilliam Reply-To: pgilliam@us.ibm.com To: Ramana Radhakrishnan Subject: Re: RFC : Handling breakpoints on archs. with imprecise exceptions. Date: Thu, 24 Mar 2005 21:46:00 -0000 User-Agent: KMail/1.6.2 Cc: gdb@sources.redhat.com, Daniel Jacobowitz , amit bhor References: <42431904.7010708@codito.com> <200503241153.01472.pgilliam@us.ibm.com> <424321B8.1080004@codito.com> In-Reply-To: <424321B8.1080004@codito.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200503241341.39948.pgilliam@us.ibm.com> X-SW-Source: 2005-03/txt/msg00219.txt.bz2 IIRC, Unix SysV on an MC88000 did this. The kerenl would field an inprecise interrupt and 'clean it up' so the the messeyness was not passed on to user level code. It's been a while, though, so I might be mis-remembering. -=# Paul #=- On Thursday 24 March 2005 12:23, Ramana Radhakrishnan wrote: > 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