mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
lldb: step-over __select before execution in threads
This commit is contained in:
@@ -27,15 +27,22 @@ def __lldb_init_module(debugger, internal_dict):
|
||||
if not thread.IsStopped():
|
||||
# thread.Suspend()
|
||||
error = process.Stop()
|
||||
frame = thread.GetSelectedFrame()
|
||||
if frame:
|
||||
print('Will settrace in: %s' % (frame,))
|
||||
|
||||
res = frame.EvaluateExpression("(int) SetSysTraceFunc(%s, %s)" % (
|
||||
show_debug_info, is_debug), options)
|
||||
error = res.GetError()
|
||||
if error:
|
||||
print(error)
|
||||
frame = thread.GetSelectedFrame()
|
||||
|
||||
if frame.GetFunctionName() == '__select':
|
||||
# print('We are in __select')
|
||||
# Step over select, otherwise evaluating expression there can terminate thread
|
||||
thread.StepOver()
|
||||
frame = thread.GetSelectedFrame()
|
||||
|
||||
print('Will settrace in: %s' % (frame,))
|
||||
|
||||
res = frame.EvaluateExpression("(int) SetSysTraceFunc(%s, %s)" % (
|
||||
show_debug_info, is_debug), options)
|
||||
error = res.GetError()
|
||||
if error:
|
||||
print(error)
|
||||
|
||||
thread.Resume()
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user