[Lldb-commits] [PATCH] D116136: [lldb] Add UTF-8 char basic type

Luís Ferreira via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 21 17:44:55 PST 2021


ljmf00 created this revision.
ljmf00 requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

A UTF-8 Basic type should be exposed the same way we have UTF-16 and UTF-32 basic types


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D116136

Files:
  lldb/bindings/python/python-extensions.swig
  lldb/docs/python_api_enums.rst
  lldb/include/lldb/lldb-enumerations.h


Index: lldb/include/lldb/lldb-enumerations.h
===================================================================
--- lldb/include/lldb/lldb-enumerations.h
+++ lldb/include/lldb/lldb-enumerations.h
@@ -747,6 +747,7 @@
   eBasicTypeWChar,
   eBasicTypeSignedWChar,
   eBasicTypeUnsignedWChar,
+  eBasicTypeChar8,
   eBasicTypeChar16,
   eBasicTypeChar32,
   eBasicTypeShort,
Index: lldb/docs/python_api_enums.rst
===================================================================
--- lldb/docs/python_api_enums.rst
+++ lldb/docs/python_api_enums.rst
@@ -1017,6 +1017,7 @@
 .. py:data:: eBasicTypeWChar
 .. py:data:: eBasicTypeSignedWChar
 .. py:data:: eBasicTypeUnsignedWChar
+.. py:data:: eBasicTypeChar8
 .. py:data:: eBasicTypeChar16
 .. py:data:: eBasicTypeChar32
 .. py:data:: eBasicTypeShort
Index: lldb/bindings/python/python-extensions.swig
===================================================================
--- lldb/bindings/python/python-extensions.swig
+++ lldb/bindings/python/python-extensions.swig
@@ -563,6 +563,7 @@
     if basic_type == eBasicTypeWChar: return (True,False)
     if basic_type == eBasicTypeSignedWChar: return (True,True)
     if basic_type == eBasicTypeUnsignedWChar: return (True,False)
+    if basic_type == eBasicTypeChar8: return (True,False)
     if basic_type == eBasicTypeChar16: return (True,False)
     if basic_type == eBasicTypeChar32: return (True,False)
     if basic_type == eBasicTypeShort: return (True,True)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116136.395779.patch
Type: text/x-patch
Size: 1459 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20211222/e4df7f85/attachment.bin>


More information about the lldb-commits mailing list