Commit c7f80c2c authored by hjk's avatar hjk

Debugger: Fix reaction to unsupported types of breakpoint.

Task-number: QTCREATORBUG-11434

Change-Id: I5b295df0db85063146ed9dc09351844924e22bdc
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent f8b7b984
......@@ -1334,6 +1334,8 @@ class Dumper(DumperBase):
elif bpType == BreakpointAtMain:
bpNew = self.target.BreakpointCreateByName(
"main", self.target.GetExecutable().GetFilename())
elif bpType == BreakpointByFunction:
bpNew = self.target.BreakpointCreateByName(args["function"])
elif bpType == BreakpointAtThrow:
bpNew = self.target.BreakpointCreateForException(
lldb.eLanguageTypeC_plus_plus, False, True)
......@@ -1354,10 +1356,11 @@ class Dumper(DumperBase):
bpNew = self.target.WatchAddress(value.GetLoadAddress(),
value.GetByteSize(), False, True, error)
except:
return
return self.target.BreakpointCreateByName(None)
else:
warn("UNKNOWN BREAKPOINT TYPE: %s" % bpType)
return
# This leaves the unhandled breakpoint in a (harmless)
# "pending" state.
return self.target.BreakpointCreateByName(None)
bpNew.SetIgnoreCount(int(args["ignorecount"]))
if hasattr(bpNew, 'SetCondition'):
bpNew.SetCondition(self.hexdecode(args["condition"]))
......
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