Skip to content

Commit f693f26

Browse files
debuginfo: Try to get minimal version of LLDB autotest framework running without crash with old LLDB version: Add a timeout so listener thread can do its stuff in time ...
1 parent cc3c186 commit f693f26

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/etc/lldb_batchmode.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import threading
3131
import re
3232
import atexit
33+
import time
3334

3435
# Set this to True for additional output
3536
DEBUG_OUTPUT = True
@@ -81,6 +82,8 @@ def execute_command(command_interpreter, command):
8182
if res.HasResult():
8283
print(normalize_whitespace(res.GetOutput()), end = '\n')
8384

85+
time.sleep(0.2)
86+
8487
# If the command introduced any breakpoints, make sure to register them with the breakpoint
8588
# callback
8689
while len(new_breakpoints) > 0:
@@ -92,7 +95,7 @@ def execute_command(command_interpreter, command):
9295
else:
9396
print_debug("registering breakpoint callback, id = " + str(breakpoint_id))
9497
callback_command = "breakpoint command add -F breakpoint_callback " + str(breakpoint_id)
95-
# command_interpreter.HandleCommand(callback_command, res)
98+
command_interpreter.HandleCommand(callback_command, res)
9699
if res.Succeeded():
97100
print_debug("successfully registered breakpoint callback, id = " + str(breakpoint_id))
98101
registered_breakpoints.add(breakpoint_id)
@@ -121,7 +124,7 @@ def listen():
121124
global new_breakpoints
122125
breakpoint = lldb.SBBreakpoint.GetBreakpointFromEvent(event)
123126
print_debug("breakpoint added (not really...), id = " + str(breakpoint.id))
124-
new_breakpoints.append(breakpoint.id)
127+
# new_breakpoints.append(breakpoint.id)
125128
wait_count += 1
126129
except:
127130
print_debug("breakpoint listener shutting down")

0 commit comments

Comments
 (0)