From a040585484dfbff0ff6eaa413b5db33d6c1477ed Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Mon, 29 Mar 2010 17:58:17 +0000 Subject: [PATCH] 2010-03-29 Stan Shebs * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to expression handler. --- gdb/ChangeLog | 3 +++ gdb/tracepoint.c | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 528b8d94949..a75db4da040 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2010-03-29 Stan Shebs + * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to + expression handler. + * tracepoint.c (start_tracing): Check tracepoints before sending commands to target, don't start if all tracepoints disabled. diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 498c18e791c..44b8c2b6dc4 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -922,10 +922,11 @@ collect_symbol (struct collection_list *collect, } add_memrange (collect, reg, offset, len); break; + case LOC_UNRESOLVED: - printf_filtered ("Don't know LOC_UNRESOLVED %s\n", - SYMBOL_PRINT_NAME (sym)); + treat_as_expr = 1; break; + case LOC_OPTIMIZED_OUT: printf_filtered ("%s has been optimized out of existence.\n", SYMBOL_PRINT_NAME (sym)); -- 2.30.2