diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5704d4388f..b672dc3eec 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2014-12-17 Doug Evans + + * valops.c (value_maybe_namespace_elt): Remove redundant call to + lookup_static_symbol. + 2014-12-17 Doug Evans New parameter "debug symbol-lookup". diff --git a/gdb/valops.c b/gdb/valops.c index 4d3059eaf6..2f81a59fa0 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3569,15 +3569,6 @@ value_maybe_namespace_elt (const struct type *curtype, sym = cp_lookup_symbol_namespace (namespace_name, name, get_selected_block (0), VAR_DOMAIN); - if (sym == NULL) - { - char *concatenated_name = alloca (strlen (namespace_name) + 2 - + strlen (name) + 1); - - sprintf (concatenated_name, "%s::%s", namespace_name, name); - sym = lookup_static_symbol (concatenated_name, VAR_DOMAIN); - } - if (sym == NULL) return NULL; else if ((noside == EVAL_AVOID_SIDE_EFFECTS)