awtk/tools/fdb/awplc.py

15 lines
407 B
Python
Raw Normal View History

2024-03-07 18:10:25 +08:00
import os
import lldb
class StopHook:
def __init__(self, target, extra_args1, extra_args2):
self.target = target
def handle_stop(self, exe_ctx, stream):
name = exe_ctx.GetFrame().GetFunctionName()
2024-05-08 16:49:10 +08:00
if name != None :
print('stop in: ' + name);
if name.find('AWPLC_APP::') != -1:
return True
2024-03-07 18:10:25 +08:00
return False
2024-05-08 16:49:10 +08:00
print('load awplc.py');