This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/RFC] Report the original location specification for a breakpoint.
> > It's used by "info breakpoints".
>
> What's "it" above?
ui_out_field_string always outputs to both MI and CLI, and this part of the
code is traversed by "info breakpoints" (and "-break-list"). By comparison,
it's also traversed by "-break-insert" but _not_ by "break".
> Anyway, it appears that the field indeed gets output in CLI mode, so I'll
> adjust my patch not to do that.
>
> >
> > > > This definitely needs documentation to go in. I can't say this
> > > > enough. Undocumented fields in the MI output might as well not exist.
> >
> > There are already many other fields that aren't documented, e.g.,
> > pending, what, cond, ignore etc. In fact the MI output of -break-insert
> > is very variable.
>
> Are you volunteering to document that?
No, I'm just doing a reality check.
--
Nick http://www.inet.net.nz/~nickrob