aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/language.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2451004..79fd478 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-22 Tom Tromey <tromey@redhat.com>
+
+ * language.c (language_class_name_from_physname): Rename
+ 'curr_language' argument to 'lang'; use in body.
+
2011-02-22 Michael Snyder <msnyder@vmware.com>
* cli/cli-utils.c (number_is_in_list): Check for zero return.
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;
}