diff options
author | hjk <qtc-committer@nokia.com> | 2012-04-26 15:24:47 +0200 |
---|---|---|
committer | hjk <qthjk@ovi.com> | 2012-04-26 15:47:20 +0200 |
commit | 0ce93f0059057f9f6c2668b370e93a6467585e41 (patch) | |
tree | aad141db35208f3da78536f3bcbbaf018ff9609a | |
parent | cf2445d1af94d589f327f141159dbd1defeb51bf (diff) |
debugger: prevent crash on mac
Task-number: QTCREATORBUG-7333
Change-Id: I5e2a40f06babf3143d3d0109eae5e65393ffe012
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
-rw-r--r-- | src/plugins/debugger/gdb/gdbengine.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index a899c23f81..460de991f4 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -2998,20 +2998,22 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id) QVariant vid = QVariant::fromValue(id); if (type == WatchpointAtAddress) { postCommand("watch " + addressSpec(handler->address(id)), - NeedsStop | RebuildBreakpointModel, + NeedsStop | RebuildBreakpointModel | ConsoleCommand, CB(handleWatchInsert), vid); return; } if (type == WatchpointAtExpression) { postCommand("watch " + handler->expression(id).toLocal8Bit(), - NeedsStop | RebuildBreakpointModel, + NeedsStop | RebuildBreakpointModel | ConsoleCommand, CB(handleWatchInsert), vid); return; } if (type == BreakpointAtFork) { - postCommand("catch fork", NeedsStop | RebuildBreakpointModel, + postCommand("catch fork", + NeedsStop | RebuildBreakpointModel | ConsoleCommand, CB(handleCatchInsert), vid); - postCommand("catch vfork", NeedsStop | RebuildBreakpointModel, + postCommand("catch vfork", + NeedsStop | RebuildBreakpointModel | ConsoleCommand, CB(handleCatchInsert), vid); return; } @@ -3021,12 +3023,14 @@ void GdbEngine::insertBreakpoint(BreakpointModelId id) // return; //} if (type == BreakpointAtExec) { - postCommand("catch exec", NeedsStop | RebuildBreakpointModel, + postCommand("catch exec", + NeedsStop | RebuildBreakpointModel | ConsoleCommand, CB(handleCatchInsert), vid); return; } if (type == BreakpointAtSysCall) { - postCommand("catch syscall", NeedsStop | RebuildBreakpointModel, + postCommand("catch syscall", + NeedsStop | RebuildBreakpointModel | ConsoleCommand, CB(handleCatchInsert), vid); return; } |