2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
authorMichael Snyder <msnyder@vmware.com>
Wed, 7 Jan 2004 19:14:45 +0000 (19:14 +0000)
committerMichael Snyder <msnyder@vmware.com>
Wed, 7 Jan 2004 19:14:45 +0000 (19:14 +0000)
        * tracepoint.c (validate_actionline): Fix segv at EOF

gdb/ChangeLog
gdb/tracepoint.c

index 5a4b719b35dac158e0163432e3978531e9c1a704..a1442f962905b536c93389fb44b435b18d64e95e 100644 (file)
@@ -1,3 +1,7 @@
+2004-01-02  Pawel Ostrowski  <pasza@zodiac.mimuw.edu.pl>
+
+       * tracepoint.c (validate_actionline): Fix segv at EOF
+
 2004-01-07  Michael Chastain  <mec.gnu@mindspring.com>
 
        * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
index 6e33841824fd712ec09e8886fecf231b873804e4..713bf14f2cc3932aae29900055fcc5af906d8b34 100644 (file)
@@ -914,6 +914,10 @@ validate_actionline (char **line, struct tracepoint *t)
   struct cleanup *old_chain = NULL;
   char *p;
 
+  /* if EOF is typed, *line is NULL */
+  if (*line == NULL)
+    return END;
+
   for (p = *line; isspace ((int) *p);)
     p++;
 
This page took 0.02986 seconds and 4 git commands to generate.