aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-02-22 18:53:45 +0000
committerTom Tromey <tromey@redhat.com>2011-02-22 18:53:45 +0000
commit79b97fa8ff1d827712174972da56d3936ef54cb7 (patch)
tree78046062a94b247f33acb87552e1ac6d5c716fde /gdb/language.c
parent79ba84ca24a60b4efaed18665f71e8ba022d48b4 (diff)
downloadgdb-79b97fa8ff1d827712174972da56d3936ef54cb7.zip
gdb-79b97fa8ff1d827712174972da56d3936ef54cb7.tar.gz
gdb-79b97fa8ff1d827712174972da56d3936ef54cb7.tar.bz2
* language.c (language_class_name_from_physname): Rename
'curr_language' argument to 'lang'; use in body.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 2ff77f5..825c02d 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -1014,12 +1014,11 @@ language_demangle (const struct language_defn *current_language,
/* Return class name from physname or NULL. */
char *
-language_class_name_from_physname (const struct language_defn *curr_language,
+language_class_name_from_physname (const struct language_defn *lang,
const char *physname)
{
- if (current_language != NULL
- && current_language->la_class_name_from_physname)
- return current_language->la_class_name_from_physname (physname);
+ if (lang != NULL && lang->la_class_name_from_physname)
+ return lang->la_class_name_from_physname (physname);
return NULL;
}