OSDN Git Service

2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
authorjimb <jimb>
Tue, 5 Feb 2008 16:05:56 +0000 (16:05 +0000)
committerjimb <jimb>
Tue, 5 Feb 2008 16:05:56 +0000 (16:05 +0000)
* tracepoint.c (read_actions): Handle end-of-text indicator
in action list properly.  (Committed by Jim Blandy)

gdb/ChangeLog
gdb/tracepoint.c

index 1dc39d5..fd8974f 100644 (file)
@@ -1,3 +1,8 @@
+2008-02-05  Andrzej Zaborowski  <balrogg@gmail.com>
+
+       * tracepoint.c (read_actions): Handle end-of-text indicator
+       in action list properly.  (Committed by Jim Blandy)
+
 2008-02-05  Jim Blandy  <jimb@red-bean.com>
 
        * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
index 2d744ae..fbb1b27 100644 (file)
@@ -862,7 +862,10 @@ read_actions (struct tracepoint *t)
        line = gdb_readline (0);
 
       if (!line)
-       line = "end";
+        {
+          line = xstrdup ("end");
+          printf_filtered ("end\n");
+        }
       
       linetype = validate_actionline (&line, t);
       if (linetype == BADLINE)