mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
Remove language_demangle
I noticed that language_demangle shadows the global "current_language". When I went to fix this, though, I then saw that language_demangle is only called in two places, and has a comment saying it should be removed. This patch removes it. Note that the NULL check in language_demangle is not needed by either of the existing callers. Regression tested on x86-64 Fedora 36. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -1909,7 +1909,7 @@ fprintf_symbol (struct ui_file *stream, const char *name,
|
||||
else
|
||||
{
|
||||
gdb::unique_xmalloc_ptr<char> demangled
|
||||
= language_demangle (language_def (lang), name, arg_mode);
|
||||
= language_def (lang)->demangle_symbol (name, arg_mode);
|
||||
gdb_puts (demangled ? demangled.get () : name, stream);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user