Re: Enhancement - show old and new thread info when switching during debugging

pfee
2011-07-30T11:39:50Z

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

I'll look into convenience variables. Since it saves translating LWPs into GDB
thread IDs and avoids output "noise", I think it's the better than my patch.

I'll warn you in advance it might be a week until I develop something as I may
be without Internet access for a while.

Thanks for the tips on where to look next.

--
Paul