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] Prints the frame id when target stops


 > Also it looks like you can't use ui_out_field_string as it prints CLI output
 > also (when execeution stop, "info threads" etc).  Perhaps ui_out_field_stream
 > does what you need.

Or, more likely, wrap it in:

      if (ui_out_is_mi_like_p (uiout))
        {
          ...
        }

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