2008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
authorJim Blandy <jimb@codesourcery.com>
Tue, 5 Feb 2008 16:05:56 +0000 (16:05 +0000)
committerJim Blandy <jimb@codesourcery.com>
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 1dc39d5d6d40e46d1a5f2571cd3b02cc4d93daab..fd8974f0b2ececfa11b64196ac401a56510bc6fa 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 2d744aedb81f7e1ea1d2cbe48d0558baa56e723f..fbb1b27304894ba0bcb67977acf8935f0f892108 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)