This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: breakpoint for avr?



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]