2
现在我不能设置WinMain
基点,虽然我可以看到它的拆卸,而我不能列出源WinMain
之一:如何在我的函数上设置断点并列出其来源?
0:000> u WinMain
00401040 55 push ebp
00401041 8bec mov ebp,esp
00401043 6a00 push 0
00401045 e87e0e0000 call monitormt!g_thread_init (00401ec8)
0040104a 83c404 add esp,4
0040104d e8700e0000 call monitormt!gdk_threads_init (00401ec2)
00401052 e8650e0000 call monitormt!gdk_threads_enter (00401ebc)
00401057 e8d4040000 call monitormt!select_device (00401530)
0:000> ba WinMain
^Unable to set breakpoint error
The system resets thread contexts after the process
breakpoint so hardware breakpoints cannot be set.
Go to the executable's entry point and set it then.
'ba WinMain'
如何做到这一点在WinDbg中?
UPDATE
看来bp
作品,但为什么ba
不?
如何列出“WinMain”的来源? – 2011-05-08 06:08:40
我试过'ls WinMain',但它不起作用。 – 2011-05-08 10:24:23
这是完全不同的问题。如果您提出新问题,您将获得更好的机会。你有什么样的符号信息?我知道WinDbg可以从PDB符号中提取行号信息,不确定其他符号类型。 – 2011-05-08 18:27:44