aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Honermann <tom@honermann.net>2019-02-22 01:16:11 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-02-22 01:16:11 +0000
commit5940bb028b3758c160374e1fd72987128c254ad7 (patch)
treee3d2e63dca89813b30b2a8d4c8b78721504fdaaf
parent59019b4223633066d86d46147bc2c01de8d9da22 (diff)
downloadgcc-5940bb028b3758c160374e1fd72987128c254ad7.zip
gcc-5940bb028b3758c160374e1fd72987128c254ad7.tar.gz
gcc-5940bb028b3758c160374e1fd72987128c254ad7.tar.bz2
P0482R5 char8_t: Updates to gdb pretty printing support
This patch adds recognition of the u8string and u8string_view type aliases to the gdb pretty printer extension. 2019-02-22 Tom Honermann <tom@honermann.net> * python/libstdcxx/v6/printers.py (register_type_printers): Add type printers for u8string and u8string_view. From-SVN: r269090
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/python/libstdcxx/v6/printers.py4
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index b94e30f..3980774 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,10 @@
2019-02-22 Tom Honermann <tom@honermann.net>
+ * python/libstdcxx/v6/printers.py (register_type_printers): Add type
+ printers for u8string and u8string_view.
+
+2019-02-22 Tom Honermann <tom@honermann.net>
+
* testsuite/18_support/byte/ops.cc: Validate
std::to_integer<char8_t>, std::to_integer<char16_t>, and
std::to_integer<char32_t>.
diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py
index 967d03a..8f16b53 100644
--- a/libstdc++-v3/python/libstdcxx/v6/printers.py
+++ b/libstdc++-v3/python/libstdcxx/v6/printers.py
@@ -1640,7 +1640,7 @@ def register_type_printers(obj):
return
# Add type printers for typedefs std::string, std::wstring etc.
- for ch in ('', 'w', 'u16', 'u32'):
+ for ch in ('', 'w', 'u8', 'u16', 'u32'):
add_one_type_printer(obj, 'basic_string', ch + 'string')
add_one_type_printer(obj, '__cxx11::basic_string', ch + 'string')
# Typedefs for __cxx11::basic_string used to be in namespace __cxx11:
@@ -1690,7 +1690,7 @@ def register_type_printers(obj):
# Add type printers for experimental::basic_string_view typedefs.
ns = 'experimental::fundamentals_v1::'
- for ch in ('', 'w', 'u16', 'u32'):
+ for ch in ('', 'w', 'u8', 'u16', 'u32'):
add_one_type_printer(obj, ns + 'basic_string_view',
ns + ch + 'string_view')