From: Jim Blandy Date: Tue, 5 Feb 2008 16:05:56 +0000 (+0000) Subject: 2008-02-05 Andrzej Zaborowski X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d844e34bca5ee23fcda39c8808633a97a330cbd5;p=binutils-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 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)