diff options
author | Jim Blandy <jimb@codesourcery.com> | 2008-02-05 16:05:56 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2008-02-05 16:05:56 +0000 |
commit | c6ee1b52c66b32e4abb6073714c251185f1158b4 (patch) | |
tree | 9525922883d811ef995250fbe95bbe7812dbf007 /gdb/tracepoint.c | |
parent | 2e624bc09c3b0b3c8aa529245de0ce492a55410f (diff) | |
download | gdb-c6ee1b52c66b32e4abb6073714c251185f1158b4.tar.gz |
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/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 5 |
1 files changed, 4 insertions, 1 deletions
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) |