Commit 39df03ab authored by Jack Andersen's avatar Jack Andersen Committed by hjk
Browse files

Debugger: LLDB strictly requires bool values for breakpoint API



Change-Id: Ia4b3cfb2ef41df8c76800eb4da597f7cb5f770c4
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 588b3336
...@@ -1473,9 +1473,9 @@ class Dumper(DumperBase): ...@@ -1473,9 +1473,9 @@ class Dumper(DumperBase):
bp.SetIgnoreCount(int(args["ignorecount"])) bp.SetIgnoreCount(int(args["ignorecount"]))
if hasattr(bp, 'SetCondition'): if hasattr(bp, 'SetCondition'):
bp.SetCondition(self.hexdecode(args["condition"])) bp.SetCondition(self.hexdecode(args["condition"]))
bp.SetEnabled(int(args["enabled"])) bp.SetEnabled(bool(args["enabled"]))
if hasattr(bp, 'SetOneShot'): if hasattr(bp, 'SetOneShot'):
bp.SetOneShot(int(args["oneshot"])) bp.SetOneShot(bool(args["oneshot"]))
self.report('breakpoint-added={%s,modelid="%s"}' % (self.describeBreakpoint(bp), modelId)) self.report('breakpoint-added={%s,modelid="%s"}' % (self.describeBreakpoint(bp), modelId))
def changeBreakpoint(self, args): def changeBreakpoint(self, args):
...@@ -1487,9 +1487,9 @@ class Dumper(DumperBase): ...@@ -1487,9 +1487,9 @@ class Dumper(DumperBase):
bp = self.target.FindBreakpointByID(lldbId) bp = self.target.FindBreakpointByID(lldbId)
bp.SetIgnoreCount(int(args["ignorecount"])) bp.SetIgnoreCount(int(args["ignorecount"]))
bp.SetCondition(self.hexdecode(args["condition"])) bp.SetCondition(self.hexdecode(args["condition"]))
bp.SetEnabled(int(args["enabled"])) bp.SetEnabled(bool(args["enabled"]))
if hasattr(bp, 'SetOneShot'): if hasattr(bp, 'SetOneShot'):
bp.SetOneShot(int(args["oneshot"])) bp.SetOneShot(bool(args["oneshot"]))
self.report('breakpoint-changed={%s,modelid="%s"}' self.report('breakpoint-changed={%s,modelid="%s"}'
% (self.describeBreakpoint(bp), modelId)) % (self.describeBreakpoint(bp), modelId))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment