Skip to content
Snippets Groups Projects
Commit dcf3ba50 authored by hjk's avatar hjk
Browse files

Debugger: Explicitly report chars as integer values with LLDB


This brings it into line with GDB output and is needed in
the frontend to provide normal integral value base changes.

Change-Id: I17adc7730419648d45c0d5866311de33bf01a7f0
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent f7d794dc
No related branches found
No related tags found
No related merge requests found
...@@ -1082,6 +1082,20 @@ class Dumper(DumperBase): ...@@ -1082,6 +1082,20 @@ class Dumper(DumperBase):
self.putFormattedPointer(value) self.putFormattedPointer(value)
return return
# Chars
if typeClass == lldb.eTypeClassBuiltin:
basicType = value.GetType().GetBasicType()
if basicType == lldb.eBasicTypeChar:
self.putValue(value.GetValueAsUnsigned())
self.putType(typeName)
self.putNumChild(0)
return
if basicType == lldb.eBasicTypeSignedChar:
self.putValue(value.GetValueAsSigned())
self.putType(typeName)
self.putNumChild(0)
return
#warn("VALUE: %s" % value) #warn("VALUE: %s" % value)
#warn("FANCY: %s" % self.useFancy) #warn("FANCY: %s" % self.useFancy)
if self.tryPutPrettyItem(typeName, value): if self.tryPutPrettyItem(typeName, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment