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: [RFA] Implement -thread-info.


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


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