Commit 0ce93f00 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: prevent crash on mac



Task-number: QTCREATORBUG-7333
Change-Id: I5e2a40f06babf3143d3d0109eae5e65393ffe012
Reviewed-by: default avatarChristian Stenger <christian.stenger@nokia.com>
parent cf2445d1
...@@ -2998,20 +2998,22 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id) ...@@ -2998,20 +2998,22 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id)
QVariant vid = QVariant::fromValue(id); QVariant vid = QVariant::fromValue(id);
if (type == WatchpointAtAddress) { if (type == WatchpointAtAddress) {
postCommand("watch " + addressSpec(handler->address(id)), postCommand("watch " + addressSpec(handler->address(id)),
NeedsStop | RebuildBreakpointModel, NeedsStop | RebuildBreakpointModel | ConsoleCommand,
CB(handleWatchInsert), vid); CB(handleWatchInsert), vid);
return; return;
} }
if (type == WatchpointAtExpression) { if (type == WatchpointAtExpression) {
postCommand("watch " + handler->expression(id).toLocal8Bit(), postCommand("watch " + handler->expression(id).toLocal8Bit(),
NeedsStop | RebuildBreakpointModel, NeedsStop | RebuildBreakpointModel | ConsoleCommand,
CB(handleWatchInsert), vid); CB(handleWatchInsert), vid);
return; return;
} }
if (type == BreakpointAtFork) { if (type == BreakpointAtFork) {
postCommand("catch fork", NeedsStop | RebuildBreakpointModel, postCommand("catch fork",
NeedsStop | RebuildBreakpointModel | ConsoleCommand,
CB(handleCatchInsert), vid); CB(handleCatchInsert), vid);
postCommand("catch vfork", NeedsStop | RebuildBreakpointModel, postCommand("catch vfork",
NeedsStop | RebuildBreakpointModel | ConsoleCommand,
CB(handleCatchInsert), vid); CB(handleCatchInsert), vid);
return; return;
} }
...@@ -3021,12 +3023,14 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id) ...@@ -3021,12 +3023,14 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id)
// return; // return;
//} //}
if (type == BreakpointAtExec) { if (type == BreakpointAtExec) {
postCommand("catch exec", NeedsStop | RebuildBreakpointModel, postCommand("catch exec",
NeedsStop | RebuildBreakpointModel | ConsoleCommand,
CB(handleCatchInsert), vid); CB(handleCatchInsert), vid);
return; return;
} }
if (type == BreakpointAtSysCall) { if (type == BreakpointAtSysCall) {
postCommand("catch syscall", NeedsStop | RebuildBreakpointModel, postCommand("catch syscall",
NeedsStop | RebuildBreakpointModel | ConsoleCommand,
CB(handleCatchInsert), vid); CB(handleCatchInsert), vid);
return; return;
} }
......
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