This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Support temporary breakpoints in runto_main.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 22 May 2013 08:46:46 +0400
- Subject: Re: [RFC] Support temporary breakpoints in runto_main.
- References: <yjt2obc3c06n dot fsf at ruffy2 dot mtv dot corp dot google dot com>
> If I imagine I'm new to gdb and see the name runto_main I can well
> imagine not expecting the implementation of that command to leave the
> breakpoint behind. Leaving the breakpoint behind is not something I
> would expect from that name.
FWIW, the AdaCore's gdb-testsuite framework defines a "runto" method,
and it does set a temporary breakpoint by default (with the option
of making it permanent). Same reasoning as yours went into the "design"
of this method's interface.
Not sure if it's worth spending time changing this, but I would
welcome the change...
--
Joel