This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: RFC : Handling breakpoints on archs. with imprecise exceptions.
- From: Paul Gilliam <pgilliam at us dot ibm dot com>
- To: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>
- Cc: gdb at sources dot redhat dot com, Daniel Jacobowitz <drow at false dot org>, amit bhor <amit dot bhor at codito dot com>
- Date: Thu, 24 Mar 2005 13:41:39 -0800
- Subject: Re: RFC : Handling breakpoints on archs. with imprecise exceptions.
- References: <42431904.7010708@codito.com> <200503241153.01472.pgilliam@us.ibm.com> <424321B8.1080004@codito.com>
- Reply-to: pgilliam at us dot ibm dot com
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