【发布时间】:2019-04-10 02:31:53
【问题描述】:
我想获取 comctl32.dll 中的函数调用跟踪,从在树控件项上按下鼠标左键并按住鼠标按钮开始。
我可以在comctl32!TV_ButtonDown 上设置一个断点,然后在遇到断点时使用wt,但这需要我释放鼠标按钮并与WinDbg 交互。当我尝试为我的断点使用命令字符串时:bp comctl32!TV_ButtonDown "wt -m comctl32",跟踪在到达断点后立即停止:
Tracing COMCTL32!TV_ButtonDown to return address 00007ffd`57a48f1d
0 instructions were executed in 0 events (0 from other threads)
Function Name Invocations MinInst MaxInst AvgInst
0 system calls were executed
COMCTL32!TV_ButtonDown+0x5:
00007ffd`57b03bd9 48896c2418 mov qword ptr [rsp+18h],rbp ss:000000b7`746f8b00=0000000000000201
我正在尝试的可能吗?有其他选择吗?
【问题讨论】:
-
@ThomasWeller TV_ButtonDown 调用 TV_CheckForDragBegin 来泵送消息。当我必须与 windbg 交互时,我不想排队的 WM_LBUTTONUP。
-
@ThomasWeller,我需要在此期间和之后观察消息处理,其他发布的消息和 wm_timers 可能正在处理。
标签: windbg