From: Jim Blandy Date: Tue, 5 Feb 2008 16:05:56 +0000 (+0000) Subject: 2008-02-05 Andrzej Zaborowski X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d844e34bca5ee23fcda39c8808633a97a330cbd5;p=deliverable%2Fbinutils-gdb.git 2008-02-05 Andrzej Zaborowski * tracepoint.c (read_actions): Handle end-of-text indicator in action list properly. (Committed by Jim Blandy) --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1dc39d5d6d..fd8974f0b2 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 2d744aedb8..fbb1b27304 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)