2007-03-27 Mat Hostetter <mat@lcs.mit.edu>
authorDaniel Jacobowitz <drow@false.org>
Tue, 27 Mar 2007 19:10:16 +0000 (19:10 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 27 Mar 2007 19:10:16 +0000 (19:10 +0000)
* server.c (main): Correct strtoul check.

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

index 126dd318fa5bd181008534c70cccdabadba1e5c4..7385a20130dbde9eedb264c71d5e9884d3806791 100644 (file)
@@ -1,3 +1,7 @@
+2007-03-27  Mat Hostetter  <mat@lcs.mit.edu>
+
+       * server.c (main): Correct strtoul check.
+
 2007-03-27  Jon Ringle  <jon@ringle.org>
 
        * linux-low.c: Check __ARCH_HAS_MMU__ also.
index 70ecd53cb80731d190a2fb68c4823b3447c502d1..04b62654a038e07e52c5068b48973ab6c51a6012 100644 (file)
@@ -727,7 +727,7 @@ main (int argc, char *argv[])
   if (argc >= 3 && strcmp (argv[2], "--attach") == 0)
     {
       if (argc == 4
-         && argv[3] != '\0'
+         && argv[3][0] != '\0'
          && (pid = strtoul (argv[3], &arg_end, 10)) != 0
          && *arg_end == '\0')
        {