This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] PID cmdline argument should be whole from digits
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 13 Feb 2010 19:44:54 +0200
- Subject: Re: [patch] PID cmdline argument should be whole from digits
- References: <20100213152044.GA6115@host0.dyn.jankratochvil.net>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Sat, 13 Feb 2010 16:20:44 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
>
> + if (pid_or_core_arg[0] != 0
> + && strspn (pid_or_core_arg, "0123456789") == strlen (pid_or_core_arg))
Should we disallow PIDs in hex?