diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-06 09:38:26 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-06 09:38:26 -0700 |
commit | 01573d7360cdd9660fdc6bf48b0b7f2180f5c40c (patch) | |
tree | 13bb1e08d1a71e9ad309d0daa76b7bc1a249e8ea /gdb/ada-lang.c | |
parent | 9938d15a01031e0aded4159adaa77d5b2b2319f6 (diff) | |
download | gdb-01573d7360cdd9660fdc6bf48b0b7f2180f5c40c.zip gdb-01573d7360cdd9660fdc6bf48b0b7f2180f5c40c.tar.gz gdb-01573d7360cdd9660fdc6bf48b0b7f2180f5c40c.tar.bz2 |
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.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index bb50222..8f27f3c 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -944,10 +944,10 @@ ada_fold_name (gdb::string_view name) static std::string fold_storage; 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 { - fold_storage = to_string (name); + fold_storage = gdb::to_string (name); for (int i = 0; i < name.size (); i += 1) fold_storage[i] = tolower (fold_storage[i]); } |