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: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>
- To: pgilliam at us dot ibm 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: Fri, 25 Mar 2005 01:53:20 +0530
- Subject: Re: RFC : Handling breakpoints on archs. with imprecise exceptions.
- References: <42431904.7010708@codito.com> <200503241153.01472.pgilliam@us.ibm.com>
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)