diff options
author | Pedro Alves <pedro@codesourcery.com> | 2007-12-03 01:34:09 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2007-12-03 01:34:09 +0000 |
commit | a67ab8a7000e64078f05750f0da75db0595e2101 (patch) | |
tree | a8009d364c604138ae9683d4fb1f7d34d1182ee7 /gdb/gdbserver | |
parent | 8713b4589e08650c3d8775f742dda4f871fa1b1c (diff) | |
download | gdb-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/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 2 |
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') { ; |