diff options
author | Pedro Alves <palves@redhat.com> | 2007-12-03 01:34:09 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-12-03 01:34:09 +0000 |
commit | 6c2d16d2d37c2207624bc040b4705ee87f8a3c72 (patch) | |
tree | c7fe79c46e3a149cc6e59a61f0ca44f7b7e684ea /gdb | |
parent | 5ca906e670f32a201fa670a56705a3284659a206 (diff) | |
download | gdb-6c2d16d2d37c2207624bc040b4705ee87f8a3c72.zip gdb-6c2d16d2d37c2207624bc040b4705ee87f8a3c72.tar.gz gdb-6c2d16d2d37c2207624bc040b4705ee87f8a3c72.tar.bz2 |
* server.c (main): Relax numerical bases supported for the pid of
the --attach command line argument.
Diffstat (limited to 'gdb')
-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 645db30..0114466 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 0261e6b..b445faa 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') { ; |