Re: Move the multi-forks support to the generic multi-inferiors support.

Pedro Alves
2009-06-08T23:22:26Z

On Monday 08 June 2009 23:40:59, Tom Tromey wrote:
> >>>>> "Marc" == Marc Khouzam <marc.khouzam@ericsson.com> writes:
>
> Marc> Just a note that up to GDB 6.8, we used the output of "info threads"
> Marc> in the DSF-GDB Eclipse frontend. With GDB 7.0 we moved to
> Marc> "-thread-info"
> Marc> So, I'm not affected by a change of output
>
> Unfortunately both -thread-info and "info threads" just amount to a
> call to print_thread_info. So, if we fix that to use a table, it will
> change the MI output, IIUC.

Yeah, one of the advantages (or not!) of using uiout is that it
allows sharing that code. But that could be worked around
just by making a special version of that function for MI, but...

Marc is right... -thread-info is too recent --- it's post-6.8
even. It's likely that current frontends would get confused with the
column headers, probably mistaking it for a thread entry (my guess, atoi
on the thread num, and calling it thread 0) :-(

This probably includes emacs, so should be easy to try just for fun. :-)

--
Pedro Alves