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 528b8d94949f5bada8932f0cf0702bb931676bb9..a75db4da0409903be3bb1044900ff93d9ade6517 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 498c18e791c3ad92b820aebebe996051a793cbcb..44b8c2b6dc438e4893602bcaabd2ed65d9733298 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));