This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI query questions
On Tue, May 30, 2006 at 03:22:11PM +1200, Nick Roberts wrote:
> > This is from MI interp:
> > (gdb)
> > -break-insert A::func
> > ~"[0] cancel\n[1] all\n"
> > ~"[2] A::func(float) at overloaded.cpp:8\n"
> > ~"[3] A::func(int) at overloaded.cpp:7\n"
> > >
>
> This isn't really a query in the GDB sense of the word i.e it's not a yes/no
> question and it doesn't call the function query. We've discussed queries in
> MI on this mailing list before and the current behaviour is to take a default
> value e.g "no" for pending breakpoints.
>
> I suggest, for the moment, at least, that we make MI select "[1] all"
> automatically in this case.
Nick,
I don't think this solves the problem though. As Daniel pointed out,
-interpreter-exec console "b A::func"
will cause the same problem, and needs to be addressed. I haven't
thought this through well enough though.
Bob Rossi