diff options
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/value.c b/gdb/value.c index 8d635c7..09ab1bb 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -2773,18 +2773,18 @@ value_fn_field (struct value **arg1p, struct fn_field *f, struct type *ftype = TYPE_FN_FIELD_TYPE (f, j); const char *physname = TYPE_FN_FIELD_PHYSNAME (f, j); struct symbol *sym; - struct minimal_symbol *msym; + struct bound_minimal_symbol msym; sym = lookup_symbol (physname, 0, VAR_DOMAIN, 0); if (sym != NULL) { - msym = NULL; + memset (&msym, 0, sizeof (msym)); } else { gdb_assert (sym == NULL); - msym = lookup_minimal_symbol (physname, NULL, NULL); - if (msym == NULL) + msym = lookup_bound_minimal_symbol (physname); + if (msym.minsym == NULL) return NULL; } @@ -2797,12 +2797,12 @@ value_fn_field (struct value **arg1p, struct fn_field *f, { /* The minimal symbol might point to a function descriptor; resolve it to the actual code address instead. */ - struct objfile *objfile = msymbol_objfile (msym); + struct objfile *objfile = msym.objfile; struct gdbarch *gdbarch = get_objfile_arch (objfile); set_value_address (v, gdbarch_convert_from_func_ptr_addr - (gdbarch, SYMBOL_VALUE_ADDRESS (msym), ¤t_target)); + (gdbarch, SYMBOL_VALUE_ADDRESS (msym.minsym), ¤t_target)); } if (arg1p) |