Remove uses of fprintf_symbol_filtered
authorTom Tromey <tromey@adacore.com>
Thu, 8 Jul 2021 17:45:55 +0000 (11:45 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 2 Aug 2021 16:48:29 +0000 (10:48 -0600)
commit9698f7141065f5eaea44a17331b3f29ae712a79e
tree1682e3ac88d8901feaab0815899c56f7b3e312dc
parentba8694b650b60c29126fd958575ffa1ca4f6c415
Remove uses of fprintf_symbol_filtered

I believe that many calls to fprintf_symbol_filtered are incorrect.
In particular, there are some that pass a symbol's print name, like:

  fprintf_symbol_filtered (gdb_stdout, sym->print_name (),
   current_language->la_language, DMGL_ANSI);

fprintf_symbol_filtered uses the "demangle" global to decide whether
or not to demangle -- but print_name does this as well.  This can lead
to double-demangling.  Normally this could be innocuous, except I also
plan to change Ada demangling in a way that causes this to fail.
gdb/printcmd.c
gdb/python/py-framefilter.c
gdb/stack.c