Re: [RFC] -thread-info new command

Nick Roberts
2007-04-11T01:16:41Z

> This is the bit I was talking about, since catch_excepions_with_msg
> requires it be "int" and not "enum gdb_rc".
>
> > do_captured_list_thread_ids (struct ui_out *uiout, void *arg)
> > {
> > ...
> > do_cleanups (cleanup_chain);
> > ui_out_field_int (uiout, "number-of-threads", num);
> > return GDB_RC_OK;
> > }

OK I see now. There still seems to be some kind of mismatch. Perhaps
(sometime) enum return_reason and enum gdb_rc can be harmonised.

>...
> > It would also help stop bugs in front ends from being reported on the gdb
> > mailing list.
>
> Maybe - not if the front end didn't handle it...

Sure. If poeple elect not to use a feature, it won't provide any benefit.