diff options
author | Stan Shebs <shebs@codesourcery.com> | 2010-04-19 22:06:17 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2010-04-19 22:06:17 +0000 |
commit | 4136fdd244ae908cbfccea8c38a1971182f6bbca (patch) | |
tree | 52894cb3fe8d7ed1c238c331c8875910c9791ff0 /gdb/tracepoint.c | |
parent | 0c4b2e63934787e61a17fcefbe6054286d853a06 (diff) | |
download | gdb-4136fdd244ae908cbfccea8c38a1971182f6bbca.zip gdb-4136fdd244ae908cbfccea8c38a1971182f6bbca.tar.gz gdb-4136fdd244ae908cbfccea8c38a1971182f6bbca.tar.bz2 |
2010-04-19 Stan Shebs <stan@codesourcery.com>
Vladimir Prus <vladimir@codesourcery.com>
* tracepoint.c (tfind_1): Add missing newline, report exit from
tfind mode as such.
* target.c (update_current_target): Make default
to_trace_find return -1.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 2771ee7..93c120e 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1949,8 +1949,10 @@ tfind_1 (enum trace_find_type type, int num, { if (ui_out_is_mi_like_p (uiout)) ui_out_field_string (uiout, "found", "0"); - else - printf_unfiltered (_("No trace frame found")); + else if (type == tfind_number && num == -1) + printf_unfiltered (_("No longer looking at any trace frame\n")); + else /* this case may never occur, check */ + printf_unfiltered (_("No trace frame found\n")); } /* If we're in nonstop mode and getting out of looking at trace |