This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Enhancement - show old and new thread info when switching during debugging
> Joel> Isn't that information already present in the previous "[Switching to
> Joel> thread ...]" message?
>
> We can always add an option, like "set print thread previous on" to
> control the output.
Generally speaking, I prefer to avoid introducing options unless
really necessary. In this particular case, it sounds like the most
convenient way of solving the problem is to have a convenience
variable. And it sounds like the only reason why Paul hasn't looked
at the implementation yet is due to lack of familiarity with this
code?
% grep '"bpnum"' *.c
breakpoint.c: set_internalvar_integer (lookup_internalvar ("bpnum"), num);
So, I would think that adding something similar in
thread.c:switch_to_thread would do the job.
--
Joel