diff options
Diffstat (limited to 'gdb/p-valprint.c')
-rw-r--r-- | gdb/p-valprint.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 6d53586..933dbfb 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -246,15 +246,17 @@ pascal_val_print (struct type *type, struct symbol *wsym = NULL; struct type *wtype; struct block *block = NULL; - struct field_of_this_result is_this_fld; if (want_space) fputs_filtered (" ", stream); if (msymbol.minsym != NULL) - wsym = lookup_symbol (MSYMBOL_LINKAGE_NAME (msymbol.minsym), - block, - VAR_DOMAIN, &is_this_fld).symbol; + { + const char *search_name + = MSYMBOL_SEARCH_NAME (msymbol.minsym); + wsym = lookup_symbol_search_name (search_name, block, + VAR_DOMAIN).symbol; + } if (wsym) { |