This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: MI: performance of getting stack arguments
> From: Nick Roberts <nickrob@snap.net.nz>
> Date: Wed, 19 Apr 2006 09:37:13 +1200
> Cc: Robert Dewar <dewar@adacore.com>, Vladimir Prus <ghost@cs.msu.su>, gdb@sources.redhat.com
>
> I agree. The requirements are different: with CLI the user will generally type
> bt at a specific point in the session, while with MI the command
> "-stack-list-frames" gets sent every time the UI needs to update.
These are not _requirements_, these are _use_cases_. The requirements
are the same: to be fast enough for most uses. E.g., nothing prevents
me from including "bt" in the commands list of a breakpoint, which
would force GDB to produce the backtrace on each stop.