diff options
-rw-r--r-- | gdb/testsuite/gdb.cp/break-f-std-string.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/break-f-std-string.cc b/gdb/testsuite/gdb.cp/break-f-std-string.cc index 454ab4c..0c36123 100644 --- a/gdb/testsuite/gdb.cp/break-f-std-string.cc +++ b/gdb/testsuite/gdb.cp/break-f-std-string.cc @@ -17,6 +17,19 @@ #include <string> +#if _GLIBCXX_USE_CXX11_ABI == 1 +#if defined (__GNUC__) && (__GNUC__ >= 5) && (__GNUC__ <= 8) + +/* Work around missing std::string typedef before gcc commit + "Define std::string and related typedefs outside __cxx11 namespace". */ + +namespace std { +typedef __cxx11::string string; +} + +#endif +#endif + void f (std::string s) { |