From: Tom Honermann Date: Fri, 22 Feb 2019 01:16:11 +0000 (+0000) Subject: P0482R5 char8_t: Updates to gdb pretty printing support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5940bb028b3758c160374e1fd72987128c254ad7;p=gcc.git 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 * python/libstdcxx/v6/printers.py (register_type_printers): Add type printers for u8string and u8string_view. From-SVN: r269090 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index b94e30f12a8..3980774df93 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2019-02-22 Tom Honermann + + * python/libstdcxx/v6/printers.py (register_type_printers): Add type + printers for u8string and u8string_view. + 2019-02-22 Tom Honermann * testsuite/18_support/byte/ops.cc: Validate diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py b/libstdc++-v3/python/libstdcxx/v6/printers.py index 967d03a43c7..8f16b53c953 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')