* server.c (main): Relax numerical bases supported for the pid of
authorPedro Alves <palves@redhat.com>
Mon, 3 Dec 2007 01:34:09 +0000 (01:34 +0000)
committerPedro Alves <palves@redhat.com>
Mon, 3 Dec 2007 01:34:09 +0000 (01:34 +0000)
the --attach command line argument.

gdb/gdbserver/ChangeLog
gdb/gdbserver/server.c

index 645db3076b43855ed2588f45a7ee14cb1fae83e6..0114466d1b520d170fb80ee23204a14de075c3c7 100644 (file)
@@ -1,3 +1,8 @@
+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
index 0261e6bdf3a1e1a0feb6b3331426bd11aba5023a..b445faa5deea85fb84707bd17c61003fa74ac68b 100644 (file)
@@ -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')
        {
          ;