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 Thu, 15 May 2003, Andrew Cagney wrote:

:)
:) > Ok, I added the BREAKPOINT_FROM_PC method for the avr and as I
:) > suspected it doesn't interfere with remote targets (unless I am over
:) > looking something):
:)
:) Right.  If the remote target doesn't support the Z packet, GDB will use
:) BREAKPOINT_FROM_PC and then insert breakpoints in memory.  Try
:) > (gdb) b main
:) > Breakpoint 1 at 0x104: file tst.c, line 34.
:)
:) Do a:
:)
:) (gdb) set remote Z-packet off
:)
:) here.  You'll then see GDB doing memory writes.

Ok. Thanks for the explanation. I assume that "remote Z-packet" is on
by default.

Strictly speaking it should start out with ``auto-detect'' mode. It probes the target to see if Z works. The above is an override.


Ok. I'll verify that and then commit my patch.

Thanks!


Andrew



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