Use all_non_exited_inferiors in infrun.c
[deliverable/binutils-gdb.git] / gdb / cp-namespace.c
index 2b3f014253aca950be53ae2bb36d4e9b0820fa3b..ad7e3bcc3b74406943066c393474fa7d9babeab9 100644 (file)
@@ -1,5 +1,5 @@
 /* Helper routines for C++ support in GDB.
-   Copyright (C) 2003-2019 Free Software Foundation, Inc.
+   Copyright (C) 2003-2020 Free Software Foundation, Inc.
 
    Contributed by David Carlton and by Kealia, Inc.
 
@@ -516,7 +516,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
                          domain_name (domain));
     }
 
-  if (function != NULL && SYMBOL_LANGUAGE (function) == language_cplus)
+  if (function != NULL && function->language () == language_cplus)
     {
       /* Search the function's template parameters.  */
       if (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION (function))
@@ -547,7 +547,6 @@ cp_lookup_symbol_imports_or_template (const char *scope,
          struct type *context;
          std::string name_copy (function->natural_name ());
          const struct language_defn *lang = language_def (language_cplus);
-         struct gdbarch *arch = symbol_arch (function);
          const struct block *parent = BLOCK_SUPERBLOCK (block);
          struct symbol *sym;
 
@@ -561,7 +560,7 @@ cp_lookup_symbol_imports_or_template (const char *scope,
              else
                {
                  name_copy.erase (prefix_len);
-                 context = lookup_typename (lang, arch,
+                 context = lookup_typename (lang,
                                             name_copy.c_str (),
                                             parent, 1);
                }
This page took 0.026213 seconds and 4 git commands to generate.