forked from Imagelibrary/binutils-gdb
Fix build bug in ada-lang.c
An earlier patch of mine introduced a build failure in ada-lang.c. A couple of "to_string" calls were not namespace-qualified. In the failing setup, the std string_view is being used, and so (apparently) ADL doesn't find gdb::to_string. This patch, from the bug, fixes the problem. gdb/ChangeLog 2021-03-06 Chernov Sergey <klen_s@mail.ru> PR gdb/27528: * ada-lang.c (ada_fold_name): Use gdb::to_string.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2021-03-06 Chernov Sergey <klen_s@mail.ru>
|
||||||
|
|
||||||
|
PR gdb/27528:
|
||||||
|
* ada-lang.c (ada_fold_name): Use gdb::to_string.
|
||||||
|
|
||||||
2021-03-06 Tom Tromey <tom@tromey.com>
|
2021-03-06 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* dwarf2/sect-names.h (dwarf2_elf_names): Declare.
|
* dwarf2/sect-names.h (dwarf2_elf_names): Declare.
|
||||||
|
|||||||
@@ -944,10 +944,10 @@ ada_fold_name (gdb::string_view name)
|
|||||||
static std::string fold_storage;
|
static std::string fold_storage;
|
||||||
|
|
||||||
if (!name.empty () && name[0] == '\'')
|
if (!name.empty () && name[0] == '\'')
|
||||||
fold_storage = to_string (name.substr (1, name.size () - 2));
|
fold_storage = gdb::to_string (name.substr (1, name.size () - 2));
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fold_storage = to_string (name);
|
fold_storage = gdb::to_string (name);
|
||||||
for (int i = 0; i < name.size (); i += 1)
|
for (int i = 0; i < name.size (); i += 1)
|
||||||
fold_storage[i] = tolower (fold_storage[i]);
|
fold_storage[i] = tolower (fold_storage[i]);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user