Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In windbg, How to set breakpoint on all functions in kernel32.dll?

Tags:

c++

windbg

I want figure out the call sequence and functions to kernel32.dll in a function example() in example.DLL.

In windbg, how to set breakpoint on all functions in kernel32.dll?

I tried bm kernel32!* , but seems not work.

like image 874
whunmr Avatar asked Dec 04 '09 17:12

whunmr


1 Answers

I would not do just as stated. Of course it is possible, but if done with bm /a kernel32!* you inadvertently set bps also on data symbols (as opposed to actual functions). In your case wt - trace and watch data (you can look it up in the debugger.chm provided with your windbg package) might be what you're after.

like image 145
deemok Avatar answered Nov 15 '22 07:11

deemok