@@ -58,19 +58,23 @@ 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 (
70
+ 5 , "-I 0 -f main.c -l 1 -e %d" % (self .main_start_line )
71
+ )
70
72
71
73
def test_stop_hooks_scripted_wrong_lines (self ):
72
74
"""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 ))
75
+ self .stop_hooks_scripted (
76
+ 0 , "-I 0 -f main.c -l %d -e 100" % (self .main_start_line )
77
+ )
74
78
75
79
def test_stop_hooks_scripted_auto_continue (self ):
76
80
"""Test that the --auto-continue flag works"""
@@ -89,9 +93,9 @@ def do_test_auto_continue(self, return_true):
89
93
result = lldb .SBCommandReturnObject ()
90
94
91
95
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"
96
+ 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
97
else :
94
- command = "target stop-hook add -G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me"
98
+ command = "target stop-hook add -I 0 - G 1 -P stop_hook.stop_handler -k increment -v 5 -n step_out_of_me"
95
99
96
100
self .interp .HandleCommand (command , result )
97
101
self .assertTrue (result .Succeeded (), "Set the target stop hook" )
0 commit comments