use bound_minsym as result for lookup_minimal_symbol et al
[deliverable/binutils-gdb.git] / gdb / ax-gdb.c
index a57d573db27736f1ebd3a3d3c005790ee19e05f7..f2bcefab7d37534f95dc439300b56b484d490f9b 100644 (file)
@@ -712,14 +712,14 @@ gen_var_ref (struct gdbarch *gdbarch, struct agent_expr *ax,
 
     case LOC_UNRESOLVED:
       {
-       struct minimal_symbol *msym
+       struct bound_minimal_symbol msym
          = lookup_minimal_symbol (SYMBOL_LINKAGE_NAME (var), NULL, NULL);
 
-       if (!msym)
+       if (!msym.minsym)
          error (_("Couldn't resolve symbol `%s'."), SYMBOL_PRINT_NAME (var));
 
        /* Push the address of the variable.  */
-       ax_const_l (ax, MSYMBOL_VALUE_ADDRESS (msym));
+       ax_const_l (ax, MSYMBOL_VALUE_ADDRESS (msym.minsym));
        value->kind = axs_lvalue_memory;
       }
       break;
This page took 0.029468 seconds and 4 git commands to generate.