2010-03-29 Stan Shebs <stan@codesourcery.com>
authorStan Shebs <shebs@codesourcery.com>
Mon, 29 Mar 2010 17:58:17 +0000 (17:58 +0000)
committerStan Shebs <shebs@codesourcery.com>
Mon, 29 Mar 2010 17:58:17 +0000 (17:58 +0000)
* tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
expression handler.

gdb/ChangeLog
gdb/tracepoint.c

index 528b8d9..a75db4d 100644 (file)
@@ -1,5 +1,8 @@
 2010-03-29  Stan Shebs  <stan@codesourcery.com>
 
+       * 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.
 
index 498c18e..44b8c2b 100644 (file)
@@ -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));