From 4136fdd244ae908cbfccea8c38a1971182f6bbca Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Mon, 19 Apr 2010 22:06:17 +0000 Subject: [PATCH] 2010-04-19 Stan Shebs Vladimir Prus * 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. --- gdb/ChangeLog | 8 ++++++++ gdb/target.c | 2 +- gdb/tracepoint.c | 6 ++++-- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 690878b2946..0eed99854e1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2010-04-19 Stan Shebs + Vladimir Prus + + * 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. + 2010-04-19 Mike Frysinger * objc-lang.c (find_methods): Move symname check up. diff --git a/gdb/target.c b/gdb/target.c index 08b42a08887..3d47cc417ae 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -832,7 +832,7 @@ update_current_target (void) tcomplain); de_fault (to_trace_find, (int (*) (enum trace_find_type, int, ULONGEST, ULONGEST, int *)) - return_zero); + return_minus_one); de_fault (to_get_trace_state_variable_value, (int (*) (int, LONGEST *)) return_zero); diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 2771ee7795c..93c120e12f8 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 -- 2.30.2