summaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2007-12-03 01:34:09 +0000
committerPedro Alves <pedro@codesourcery.com>2007-12-03 01:34:09 +0000
commita67ab8a7000e64078f05750f0da75db0595e2101 (patch)
treea8009d364c604138ae9683d4fb1f7d34d1182ee7 /gdb/gdbserver
parent8713b4589e08650c3d8775f742dda4f871fa1b1c (diff)
downloadgdb-a67ab8a7000e64078f05750f0da75db0595e2101.tar.gz
* server.c (main): Relax numerical bases supported for the pid of
the --attach command line argument.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 645db3076b4..0114466d1b5 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
+ * server.c (main): Relax numerical bases supported for the pid of
+ the --attach command line argument.
+
+2007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
+
* win32-low.c (win32_attach): Call OpenProcess before
DebugActiveProcess, not after. Add last error output to error
call.
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')
{
;