forked from qt-creator/qt-creator
Debugger: Make use of {S,G}etCondition optional with LLDB
Some older versions don't have it. Change-Id: Ie6e73e0bd13e7aa5a1cae8f6d1647d4695a315a8 Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -1228,10 +1228,11 @@ class Dumper:
|
||||
result += ',threadid="%s"' % bp.GetThreadID()
|
||||
if hasattr(bp, 'IsOneShot'):
|
||||
result += ',oneshot="%s"' % (1 if bp.IsOneShot() else 0)
|
||||
if hasattr(bp, 'GetCondition'):
|
||||
cond = bp.GetCondition()
|
||||
result += ',condition="%s"' % binascii.hexlify("" if cond is None else cond)
|
||||
result += ',enabled="%s"' % (1 if bp.IsEnabled() else 0)
|
||||
result += ',valid="%s"' % (1 if bp.IsValid() else 0)
|
||||
result += ',condition="%s"' % binascii.hexlify("" if cond is None else cond)
|
||||
result += ',ignorecount="%s"' % bp.GetIgnoreCount()
|
||||
result += ',locations=['
|
||||
if hasattr(bp, 'GetNumLocations'):
|
||||
@@ -1285,6 +1286,7 @@ class Dumper:
|
||||
warn("UNKNOWN BREAKPOINT TYPE: %s" % bpType)
|
||||
return
|
||||
bpNew.SetIgnoreCount(int(args["ignorecount"]))
|
||||
if hasattr(bpNew, 'SetCondition'):
|
||||
bpNew.SetCondition(binascii.unhexlify(args["condition"]))
|
||||
bpNew.SetEnabled(int(args["enabled"]))
|
||||
if hasattr(bpNew, 'SetOneShot'):
|
||||
|
Reference in New Issue
Block a user