aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2008-02-05 16:05:56 +0000
committerJim Blandy <jimb@codesourcery.com>2008-02-05 16:05:56 +0000
commitd844e34bca5ee23fcda39c8808633a97a330cbd5 (patch)
tree72271333e18ebabc04d127f23b2d296da91f4d92 /gdb
parent85ecb32b7a1b91d10b9047a76751252a8b2e8af4 (diff)
downloadgdb-d844e34bca5ee23fcda39c8808633a97a330cbd5.zip
gdb-d844e34bca5ee23fcda39c8808633a97a330cbd5.tar.gz
gdb-d844e34bca5ee23fcda39c8808633a97a330cbd5.tar.bz2
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)
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tracepoint.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1dc39d5..fd8974f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 2d744ae..fbb1b27 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -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)