This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: breakpoint for avr?
- From: "Theodore A. Roth" <troth at openavr dot org>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 14 May 2003 10:43:49 -0700 (PDT)
- Subject: Re: breakpoint for avr?
- References: <3EC26895.4090407@redhat.com>
On Wed, 14 May 2003, Andrew Cagney wrote:
:) Theodore,
:)
:) Just noticed that the AVR target doesn't provide the BREAKPOINT_FROM_PC
:) method.
:)
:) Up until now the architecture vector providing a default
:) breakpoint_from_pc (it would internal error for the AVR case). I
:) suspect, up until now, this hasn't been a problem because the AVR was
:) always remote.
:)
:) Anyway, I've just posted a patch to always require breakpoint-from-pc
:) and this is causing the AVR grief.
Can you give me a reference to that patch so I can try it?
:)
:) So, is there a breakpoint instruction, or should GDB allow targets that
:) have no breakpoint at all?
There is a BREAK instruction for some avr devices (acts as a NOP for
devices that don't have it). Since the avr is always remote, I use the
'Z' packets for setting breakpoints. I'm not sure how useful the BREAK
insn would be for gdb though. I guess the remote monitor could
intercept it some how.
How does the BREAKPOINT_FROM_PC method relate to 'Z' packets from the
remote protocol?
Ted Roth