[gdb/testsuite] Fix gdb.dwarf2/locexpr-data-member-location.exp with nopie
[binutils-gdb.git] / gdb / c-valprint.c
index 9a860bfc94a15645cbf59a2257e39dc6be210b25..bd445588ca08e8d10472c5781e6d5c2d0cb9381e 100644 (file)
@@ -182,7 +182,7 @@ print_unpacked_pointer (struct type *type, struct type *elttype,
       /* If 'symbol_print' is set, we did the work above.  */
       if (!options->symbol_print
          && (msymbol.minsym != NULL)
-         && (vt_address == BMSYMBOL_VALUE_ADDRESS (msymbol)))
+         && (vt_address == msymbol.value_address ()))
        {
          if (want_space)
            gdb_puts (" ", stream);
@@ -222,7 +222,7 @@ print_unpacked_pointer (struct type *type, struct type *elttype,
          if (options->prettyformat)
            {
              gdb_printf (stream, "\n");
-             print_spaces_filtered (2 + 2 * recurse, stream);
+             print_spaces (2 + 2 * recurse, stream);
            }
        }
     }