diff --git a/gdb_testing/native_gdb.py b/gdb_testing/native_gdb.py index 020cdaea78b714689551764ca27fcadbf11a8edf..34475860066906cb440e2c49ca953f7d09fbbaae 100644 --- a/gdb_testing/native_gdb.py +++ b/gdb_testing/native_gdb.py @@ -152,7 +152,9 @@ def benchmark(_gdb, what=None, at_init=None): global gdb gdb = _gdb - what = [version, nominal_time, gdb_py_breakpoint, gdb_py_breakpoint_sleep_for_ref] + #what = [version, nominal_time, gdb_py_breakpoint, gdb_py_breakpoint_sleep_for_ref] + what = list(map(lambda x: gdb_py_breakpoint_parameter(x), (0b0, 0b1, 0b10, 0b11))) + if what is None: what = [version, do_nothing, set_breakpoints, nominal_time, gdb_breakpoint, gdb_watchpoint] + \ list(map(lambda x: gdb_py_breakpoint_parameter(x), (0b0, 0b1, 0b10, 0b11))) @@ -163,3 +165,7 @@ def benchmark(_gdb, what=None, at_init=None): gdb.reset(hard=(at_init is not None)) gdb.quit() + + + +