Re: [rfc] Options for "info mappings" etc. (Re: [PATCH] Implement new `info core mappings' command)

Jan Kratochvil
2011-12-21T22:01:52Z

On Tue, 20 Dec 2011 23:15:46 +0100, Ulrich Weigand wrote:
> protocol, for one simple reason: I cannot open /proc/PID/... because
> I do not even know the PID to use. With the remote target, the "PID"
> used within GDB may have no relationship whatsoever to the actual PID
> on a Linux remote target; in fact, it usually is the "magic" 42000 ...
>
> While in some cases, the (a) remote PID may be encoded into the GDB
> TID field, I cannot use this in -tdep code either, because when used
> with the native target, the TID is never a PID/LWP.
>
> Any suggestions?

It nicely proves the filenames should be abstracted by the target gdbserver.

Regards,
Jan