From 6c2d16d2d37c2207624bc040b4705ee87f8a3c72 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Mon, 3 Dec 2007 01:34:09 +0000 Subject: [PATCH] * server.c (main): Relax numerical bases supported for the pid of the --attach command line argument. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/server.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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') { ; -- 2.30.2