From bf7a021d0e1e0758b8f8a5535a3efca47d46de42 Mon Sep 17 00:00:00 2001 From: Walnut <39544927+Walnut356@users.noreply.github.com> Date: Mon, 25 May 2026 01:32:05 -0500 Subject: [PATCH] fix breakpoint callback registration --- src/etc/lldb_batchmode.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/etc/lldb_batchmode.py b/src/etc/lldb_batchmode.py index 8728ddec8e6a..54e796bb2bb7 100644 --- a/src/etc/lldb_batchmode.py +++ b/src/etc/lldb_batchmode.py @@ -97,10 +97,9 @@ def execute_command(command_interpreter, command): print_debug( "registering breakpoint callback, id = " + str(breakpoint_id) ) - callback_command = ( - "breakpoint command add -F breakpoint_callback " - + str(breakpoint_id) - ) + callback_command = f"breakpoint command add -s python {str(breakpoint_id)} -o \ + 'import lldb_batchmode; lldb_batchmode.breakpoint_callback'" + command_interpreter.HandleCommand(callback_command, res) if res.Succeeded(): print_debug(