Windbg: How to set breakpoint on one of the overloads of a C++ function?

user15071 picture user15071 · Oct 2, 2008 · Viewed 11.3k times · Source

I have two overloads of a c++ function and I would like to set a breakpoint on one of them:

0:000> bu myexe!displayerror
Matched: 00000000`ff3c6100 myexe!displayError (int, HRESULT, wchar_t *)
Matched: 00000000`ff3c60d0 myexe!displayError (int, HRESULT)
Ambiguous symbol error at 'myexe!displayerror'

Heck I would be fine with setting breakpoints on all overloads, but can't seem to figure out how:

0:000> bu myexe!displayerror*
Matched: 00000000`ff3c6100 myexe!displayError (int, HRESULT, wchar_t *)
Matched: 00000000`ff3c60d0 myexe!displayError (int, HRESULT)
Ambiguous symbol error at 'myexe!displayerror*'

Answer

Chris Jester-Young picture Chris Jester-Young · Oct 2, 2008

Try:

bu 0xff3c6100

If I remember right, WinDbg allows setting breakpoints by address too.