-
Notifications
You must be signed in to change notification settings - Fork 11
调试器功能
luzhlon edited this page Aug 8, 2017
·
2 revisions
- addopts(options:int) -> success
- 添加选项调试器选项,参考AddOptions
- prompt() -> prompt
- 获取调试器的提示文本,相当于WinDbg输入框左边的文字
- disasm(offset, count = 1) -> asm_text
- 反汇编offset处的代码。若count > 1,返回由count条汇编代码组成的列表。参考Disassemble
- exec(command:str) -> debug_status | nil
- 执行(WinDbg)命令,
- eval(expr:str) -> value
- 评估表达式expr
- addbp(offset:int, {type = DEBUG_BREAKPOINT_CODE, id = DEBUG_ANY_ID, command = nil, enable = true}) -> breakpoint:int
- 在offset处添加断点,成功返回断点的ID
- 参数type可为DEBUG_BREAKPOINT_CODE或者DEBUG_BREAKPOINT_DATA,分别对应代码断点和数据断点(硬件断点)
- rmbp(bpid)
- 删除断点,bpid为addbp返回的断点id值
- asmopts([options]) -> options:int | success:bool | nil
- 设置或获取汇编(反汇编)选项,参考SetAssemblyOptions
- setoutput(handler:str)
- 设置调试器输出数据时回调的RPC函数,handler接受两个参数:当前的RPC会话、GBK编码的输出数据
- setevent(type:int, handler:str)
- 设置事件回调函数,type为事件类型,handler为事件发生时要调用的RPC函数
- 不同的类型接受的参数不同:...