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
This commit is contained in:
parent
59019b4223
commit
5940bb028b
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user