From: Pedro Alves Date: Mon, 3 Dec 2007 01:34:09 +0000 (+0000) Subject: * server.c (main): Relax numerical bases supported for the pid of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c2d16d2d37c2207624bc040b4705ee87f8a3c72;p=binutils-gdb.git * server.c (main): Relax numerical bases supported for the pid of the --attach command line argument. --- diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 645db3076b4..0114466d1b5 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2007-12-03 Pedro Alves + + * server.c (main): Relax numerical bases supported for the pid of + the --attach command line argument. + 2007-12-03 Pedro Alves * win32-low.c (win32_attach): Call OpenProcess before diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 0261e6bdf3a..b445faa5dee 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -880,7 +880,7 @@ main (int argc, char *argv[]) { if (argc == 4 && argv[3][0] != '\0' - && (pid = strtoul (argv[3], &arg_end, 10)) != 0 + && (pid = strtoul (argv[3], &arg_end, 0)) != 0 && *arg_end == '\0') { ;