I want to debug the Win32 event pumping loop. Thus, I need to put a breakpoint at GetMessage and GetMessageW call. I am using gdb as an asm disassembler on a file with no symbol table.

Thus, how to make gdb break every time that a certain function is called?

  • 2
    How are you using gdb on Windows? gdbserver? Or are you using gdb on Wine? – user464014 Oct 10 at 5:35
  • @user464014 I'm using it in as a MinGW package on W10 – Lovy Oct 11 at 7:10
  • I'm not sure that is the best approach. Maybe you should use a native Windows debugger like x64dbg, OllyDbg (32bit), or WinDbg. – user464014 Oct 11 at 17:39

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.