From d844e34bca5ee23fcda39c8808633a97a330cbd5 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 5 Feb 2008 16:05:56 +0000 Subject: [PATCH] 2008-02-05 Andrzej Zaborowski * tracepoint.c (read_actions): Handle end-of-text indicator in action list properly. (Committed by Jim Blandy) --- gdb/ChangeLog | 5 +++++ gdb/tracepoint.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1dc39d5d6d4..fd8974f0b2e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-02-05 Andrzej Zaborowski + + * tracepoint.c (read_actions): Handle end-of-text indicator + in action list properly. (Committed by Jim Blandy) + 2008-02-05 Jim Blandy * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 2d744aedb81..fbb1b273048 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) -- 2.30.2