]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use add_angle_brackets in ada_lookup_encoded_symbol
authorTom Tromey <tromey@adacore.com>
Wed, 9 Dec 2020 21:17:15 +0000 (14:17 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 9 Dec 2020 21:17:15 +0000 (14:17 -0700)
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  <tromey@adacore.com>

* ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.

gdb/ChangeLog
gdb/ada-lang.c

index 4236e8c7e3b344fefaa2c87707a1500eb5a894d7..1f98f5f46dcc736011ac532c3928cd2bde4e1d60 100644 (file)
@@ -1,3 +1,7 @@
+2020-12-09  Tom Tromey  <tromey@adacore.com>
+
+       * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
+
 2020-12-09  Tom Tromey  <tromey@adacore.com>
 
        * dwarf2/read.c (get_dwarf2_rational_constant): Change "numerator"
index 5e2f1ece9654513bdc2218578c79f674d77c8048..3351b95fce111120fa999badda80ea5da1478d70 100644 (file)
@@ -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);