This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch/doc] Tweak "info inferiors" output.
> From: Pedro Alves <pedro@codesourcery.com>
> Date: Fri, 14 Aug 2009 20:15:59 +0100
>
> > . Does "ID" and the numbers below it really fail to align, as the
> > example shows? If so, perhaps we should align them.
>
> It's a single column called "Target ID". The target can put there
> whatever it wants, though "process foo" will be the most common.
Then I suggest to drop the "ID" part and just say "Target". Or maybe
"Inferior", this being "info inferiors".
> (gdb) info inferiors
> Id Target ID
> * 1 process 309954
> 4 capsule 2342
> 2 process 109
> 3 process 56
> 5 foo 1234
> 6 remote target
What can appear there beyond "process NNN" and "remote rarget"? Are
the other examples above real or just hypothetical?
For processes, I'd prefer "process (PID NNN)". Just "process NNN" is
not enough to unequivocally indicate what the number is, IMO.
> The target decides what to print here.
Well, I rather hope that the programmer, i.e. the GDB developers,
decide what to print there ;-)
> > . I'd prefer to explain what can appear under "Target".
>
> Okay, I can do that.
Thanks.