From: Tom Tromey Date: Wed, 9 Dec 2020 21:17:15 +0000 (-0700) Subject: Use add_angle_brackets in ada_lookup_encoded_symbol X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12932e2ca1649af5882424baba842b0ba59e4e41;p=binutils-gdb.git Use add_angle_brackets in ada_lookup_encoded_symbol Joel recently pointed out add_angle_brackets to me. This patch changes one spot in ada-lang.c to use this function rather than doing it on its own. gdb/ChangeLog 2020-12-09 Tom Tromey * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4236e8c7e3b..1f98f5f46dc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-12-09 Tom Tromey + + * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets. + 2020-12-09 Tom Tromey * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator" diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 5e2f1ece965..3351b95fce1 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -5808,7 +5808,7 @@ ada_lookup_encoded_symbol (const char *name, const struct block *block, ada_lookup_name_info would re-encode/fold it again, and that would e.g., incorrectly lowercase object renaming names like "R28b" -> "r28b". */ - std::string verbatim = std::string ("<") + name + '>'; + std::string verbatim = add_angle_brackets (name); gdb_assert (info != NULL); *info = ada_lookup_symbol (verbatim.c_str (), block, domain);