aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-09-19 20:38:11 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-10-23 10:57:14 +0100
commit5399db93c53472a9b41ce6c8df00791b1ca31247 (patch)
tree5b98feb4eaf80be9a004429171038fa4dab208bf /gdb/language.c
parent4b2f86ef2a3962fdf86b9b0f266ce7180a43a6c8 (diff)
downloadbinutils-5399db93c53472a9b41ce6c8df00791b1ca31247.zip
binutils-5399db93c53472a9b41ce6c8df00791b1ca31247.tar.gz
binutils-5399db93c53472a9b41ce6c8df00791b1ca31247.tar.bz2
gdb: Rename language_defn::demangle
GDB already has a global symbol `demangle` (a boolean), having a language method called `demangle` is not a good idea as we often want to reference `demangle` the control variable inside `demangle` the member function. This commit renames `demangle` the member function to `demangle_symbol`. There should be no user visible changes after this commit. gdb/ChangeLog: * ada-lang.c (ada_language::demangle): Rename to... (ada_language::demangle_symbol): ...this. * c-lang.c (cplus_language::demangle): Rename to... (cplus_language::demangle_symbol): ...this. * d-lang.c (d_language::demangle): Rename to... (d_language::demangle_symbol): ...this. * f-lang.c (f_language::demangle): Rename to... (f_language::demangle_symbol): ...this. * go-lang.c (go_language::demangle): Rename to... (go_language::demangle_symbol): ...this. * language.c (language_demangle): Update call to demangle_symbol. (auto_or_unknown_language::demangle): Rename to... (auto_or_unknown_language::demangle_symbol): ...this. * language.h (language_defn::demangle): Rename to... (language_defn::demangle_symbol): ...this. * objc-lang.c (objc_language::demangle): Rename to... (objc_language::demangle_symbol): ...this. * rust-lang.c (rust_language::demangle): Rename to... (rust_language::demangle_symbol): ...this.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 4053cb7..fe09378 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -589,7 +589,7 @@ language_demangle (const struct language_defn *current_language,
const char *mangled, int options)
{
if (current_language != NULL)
- return current_language->demangle (mangled, options);
+ return current_language->demangle_symbol (mangled, options);
return NULL;
}
@@ -815,7 +815,7 @@ public:
/* See language.h. */
- char *demangle (const char *mangled, int options) const override
+ char *demangle_symbol (const char *mangled, int options) const override
{
/* The auto language just uses the C++ demangler. */
return gdb_demangle (mangled, options);