This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Options for "info mappings" etc. (Re: [PATCH] Implement new `info core mappings' command)
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: mark dot kettenis at xs4all dot nl (Mark Kettenis)
- Cc: alves dot ped at gmail dot com, gdb-patches at sourceware dot org, jan dot kratochvil at redhat dot com, sergiodj at redhat dot com
- Date: Thu, 5 Jan 2012 20:35:19 +0100 (CET)
- Subject: Re: [rfc] Options for "info mappings" etc. (Re: [PATCH] Implement new `info core mappings' command)
Mark Kettenis wrote:
> > Date: Thu, 5 Jan 2012 19:02:35 +0100 (CET)
> > From: "Ulrich Weigand" <uweigand@de.ibm.com>
> >
> > I'm wondering: How can I distinguish the "magic 42000" from
> > a regular PID 42000 ?
>
> Traditionally on Unix, process IDs would wrap at 32767. I believe
> Linux still does this as well.
Ah, indeed. But on Linux this is not a fixed limit any more,
but a configurable parameter (/proc/sys/kernel/pid_max) which
only still *defaults* to 32767.
So it could be easily possible to have Linux systems with
process IDs larger than 32767, it just needs the sysadmin
to change that default ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com