debug: Fixed debugger value passed to boxfort
This commit is contained in:
parent
66556c8cdb
commit
56c5fea2fc
1 changed files with 6 additions and 1 deletions
|
@ -311,7 +311,12 @@ static bxf_instance *run_test(struct run_next_context *ctx,
|
|||
default: break;
|
||||
}
|
||||
} else {
|
||||
debugger = (enum bxf_debugger) (criterion_options.debug - 1);
|
||||
switch (criterion_options.debug) {
|
||||
case CR_DBG_GDB: debugger = BXF_DBG_GDB; break;
|
||||
case CR_DBG_LLDB: debugger = BXF_DBG_LLDB; break;
|
||||
case CR_DBG_WINDBG: debugger = BXF_DBG_WINDBG; break;
|
||||
default: break;
|
||||
}
|
||||
}
|
||||
if (!debugger)
|
||||
cr_panic("Could not choose the debugger server for an "
|
||||
|
|
Loading…
Add table
Reference in a new issue