[RFA] Implement -thread-info.

Nick Roberts nickrob@snap.net.nz
Wed Feb 20 19:38:00 GMT 2008


 > > Also do you want to 
 > > catch errors in print_stack_frame?
 > 
 > Yes, why not? A typical error is when we have a char* parameter pointing to
 > something not very accessible, in which case I'd prefer print_stack_frame
 > to catch this error, as opposed to -thread-info outright dying. 

If there is an error then presumably you want MI to catch (and report) it.
I don't know if this is a problem, in practice, because I don't know how to
get print_stack_frame to fail.

 > >  > I don't know what problem of return type you refer to -- can you
 > >  > clarify?
 > > 
 > > That, in Denis' patch, gdb_thread_info returns type enum gdb_rc but
 > > catch_exceptions_with_msg returns type int.  (just like gdb_breakpoint and
 > > break_command_really did for a while).
 > 
 > This problem does not exist in my patch, as catch_exceptions_with_msg is
 > just not used.

You misunderstand.  The problem you were asking about was in Denis' patch.
I never said it was in yours.

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



More information about the Gdb-patches mailing list