@@ -58,19 +58,19 @@ def test_stop_hooks_scripted_no_entry(self):
58
58
59
59
def test_stop_hooks_scripted_right_func (self ):
60
60
"""Test that a scripted stop hook fires when there is a function match"""
61
- self .stop_hooks_scripted (5 , "-n step_out_of_me" )
61
+ self .stop_hooks_scripted (5 , "-I 0 - n step_out_of_me" )
62
62
63
63
def test_stop_hooks_scripted_wrong_func (self ):
64
64
"""Test that a scripted stop hook doesn't fire when the function does not match"""
65
- self .stop_hooks_scripted (0 , "-n main" )
65
+ self .stop_hooks_scripted (0 , "-I 0 - n main" )
66
66
67
67
def test_stop_hooks_scripted_right_lines (self ):
68
68
"""Test that a scripted stop hook fires when there is a function match"""
69
- self .stop_hooks_scripted (5 , "-f main.c -l 1 -e %d" % (self .main_start_line ))
69
+ self .stop_hooks_scripted (5 , "-I 0 - f main.c -l 1 -e %d" % (self .main_start_line ))
70
70
71
71
def test_stop_hooks_scripted_wrong_lines (self ):
72
72
"""Test that a scripted stop hook doesn't fire when the function does not match"""
73
- self .stop_hooks_scripted (0 , "-f main.c -l %d -e 100" % (self .main_start_line ))
73
+ self .stop_hooks_scripted (0 , "-I 0 - f main.c -l %d -e 100" % (self .main_start_line ))
74
74
75
75
def test_stop_hooks_scripted_auto_continue (self ):
76
76
"""Test that the --auto-continue flag works"""
@@ -89,9 +89,9 @@ def do_test_auto_continue(self, return_true):
89
89
result = lldb .SBCommandReturnObject ()
90
90
91
91
if return_true :
92
- command = "target stop-hook add -P stop_hook.stop_handler -k increment -v 5 -k return_false -v 1 -n step_out_of_me"
92
+ command = "target stop-hook add -I 0 - P stop_hook.stop_handler -k increment -v 5 -k return_false -v 1 -n step_out_of_me"
93
93
else :
94
- command = "target stop-hook add -G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me"
94
+ command = "target stop-hook add -I 0 - G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me"
95
95
96
96
self .interp .HandleCommand (command , result )
97
97
self .assertTrue (result .Succeeded (), "Set the target stop hook" )
0 commit comments