This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: single-step breakpoints
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: drow at false dot org
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 1 May 2006 18:42:37 +0200 (CEST)
- Subject: Re: single-step breakpoints
- References: <200604252039.k3PKdaZ5020227@elgar.sibelius.xs4all.nl> <20060425210200.GA1153@nevyn.them.org> <200604252154.k3PLscQe005675@elgar.sibelius.xs4all.nl> <200604292314.k3TNE3uH012648@elgar.sibelius.xs4all.nl> <20060501135452.GA1677@nevyn.them.org>
> Date: Mon, 1 May 2006 09:54:52 -0400
> From: Daniel Jacobowitz <drow@false.org>
>
> > Index: ChangeLog
> > from Mark Kettenis <kettenis@gnu.org>
> >
> > * breakpoint.c (insert_single_step_breakpoint): Make a failure to
> > insert a single-step breakpoint an error instead of a warning.
> >
> > * breakpoint.c (remove_single_step_breakpoints): Bail out early if
> > no breakpoints are inserted.
>
> Yeah, I think this is OK.
Thanks, committed.
> Ideally, of course, we wouldn't error here. But I'm not sure what
> would be more sensible to do. We could quietly finish instead, but
> that would go more than one instruction - quite bad.
Actually the error is not too bad. It warns you that single-stepping
is not possible and allows you to find another way of continuing.
Mark