This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: Breakpoints
- To: David Williams <davidwilliams at ozemail dot com dot au>
- Subject: Re: Breakpoints
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 04 Jan 2000 12:52:18 +1100
- CC: William Gatliff <gatliff at haulpak dot com>, "gdb at sourceware dot cygnus dot com" <gdb at sourceware dot cygnus dot com>
- Organization: Cygnus Solutions
- References: <01BF4D1C.4AD8ABC0.davidwilliams@ozemail.com.au> <3870B8E0.B4BB4034@haulpak.com> <38711A49.C239221D@ozemail.com.au>
David Williams wrote:
>
> I have seen gdb use breakpoints when steping at the source level. It mostly uses
> multiple 's' packets but occasionally uses a break point. Of course when stepping
> over a function (next) it always uses a breakpoint. No one has given me a
> definitive answer on this, but from my experience so far it would seem that gdb
> does not set multiple breakpoints when stepping (using either step or next). If
> anyone has had a different experience I would love to hear from you.
It's target dependant. Some architectures don't know how to single step
and instead are forced to set multiple breakpoints.
Of hand the old RS6000 (pre PowerPC) would be an example.
Andrew