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


Nick Roberts wrote:
 > 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))
        {
          ...
        }

You're right, my patch do much more printing than I expected.
I don't want to modify behavior of too much commands.

According to last discussion it seems to be hard to cache information returned by -stack-list-frame, may be we could print this frame id information
when the program stop only if stop reason is step or next.
Then it's up to the front end to be clever not refreshing the stack frame.


Denis


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