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: Daniel Jacobowitz <drow at false dot org>
- To: "Decker, Paul" <Paul dot Decker at analog dot com>
- Cc: Ramana Radhakrishnan <ramana dot radhakrishnan at codito dot com>,gdb at sources dot redhat dot com, amit bhor <amit dot bhor at codito dot com>
- Date: Thu, 24 Mar 2005 18:32:31 -0500
- Subject: Re: RFC : Handling breakpoints on archs. with imprecise exceptions.
- References: <E21A9A52FF03B249B20F0DC563DEBB311729688A@nwd2exm3.ad.analog.com>
On Thu, Mar 24, 2005 at 05:52:07PM -0500, Decker, Paul wrote:
> Hi all,
>
> Could you just save and restore 4 instructions for each breakpoint, and
> have a jump back to the original breakpoint address minus 1?
No. For instance, you will now hit the breakpoint if an instruction
two later in the stream is a branch target. Using more than one
instruction for a breakpoint is a real losing proposition.
--
Daniel Jacobowitz
CodeSourcery, LLC