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 <tromey@adacore.com> * ada-lang.c (ada_lookup_encoded_symbol): Use add_angle_brackets.
This commit is contained in:
parent
5cde1d8222
commit
12932e2ca1
2 changed files with 5 additions and 1 deletions
|
@ -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"
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue