debugger: Merge 'fork' and 'vfork' breakpoints

Reviewed-by: Friedemann Kleint
This commit is contained in:
hjk
2011-03-29 09:58:21 +02:00
parent bfcdd9c700
commit 7f6b529a48
7 changed files with 27 additions and 20 deletions

View File

@@ -2685,13 +2685,15 @@ void GdbEngine::insertBreakpoint(BreakpointId id)
if (type == BreakpointAtFork) {
postCommand("catch fork", NeedsStop | RebuildBreakpointModel,
CB(handleCatchInsert), id);
return;
}
if (type == BreakpointAtVFork) {
postCommand("catch vfork", NeedsStop | RebuildBreakpointModel,
CB(handleCatchInsert), id);
return;
}
//if (type == BreakpointAtVFork) {
// postCommand("catch vfork", NeedsStop | RebuildBreakpointModel,
// CB(handleCatchInsert), id);
// return;
//}
if (type == BreakpointAtExec) {
postCommand("catch exec", NeedsStop | RebuildBreakpointModel,
CB(handleCatchInsert), id);