diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/valops.c | 9 |
2 files changed, 5 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5704d43..b672dc3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2014-12-17 Doug Evans <xdje42@gmail.com> + * valops.c (value_maybe_namespace_elt): Remove redundant call to + lookup_static_symbol. + +2014-12-17 Doug Evans <xdje42@gmail.com> + New parameter "debug symbol-lookup". * NEWS: Mention it. * cp-namespace.c (cp_lookup_symbol_imports_or_template): Add debug diff --git a/gdb/valops.c b/gdb/valops.c index 4d3059e..2f81a59f 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -3570,15 +3570,6 @@ value_maybe_namespace_elt (const struct type *curtype, 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) && (SYMBOL_CLASS (sym) == LOC_TYPEDEF)) |