This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] -thread-info new command


 > 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.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]