Skip to content

Commit bf7a021

Browse files
committed
fix breakpoint callback registration
1 parent 5b686bc commit bf7a021

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/etc/lldb_batchmode.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,9 @@ def execute_command(command_interpreter, command):
9797
print_debug(
9898
"registering breakpoint callback, id = " + str(breakpoint_id)
9999
)
100-
callback_command = (
101-
"breakpoint command add -F breakpoint_callback "
102-
+ str(breakpoint_id)
103-
)
100+
callback_command = f"breakpoint command add -s python {str(breakpoint_id)} -o \
101+
'import lldb_batchmode; lldb_batchmode.breakpoint_callback'"
102+
104103
command_interpreter.HandleCommand(callback_command, res)
105104
if res.Succeeded():
106105
print_debug(

0 commit comments

Comments
 (0)