views:

339

answers:

1

Hello! I have some project consisting of a couple of DLL's which have been compiled with MinGW with debug information, and another project with EXE target which uses these DLLs (compiled with MinGW too).

The problem is, I need to put breakpoints on functions inside those DLLs, but GDB, although sets them, just silently ignores them at runtime. Stepping into them (with 's' key) just skips them over (like with an 'n' key). How can I get inside those DLLs? Maybe there's some option I should specify to GDB? Thanks in advance.

+1  A: 

Make sure you are compiling with gcc optimization level flag setted to 0 ( -O0 ).

fnieto
Well, this seemed to have desired effect. Though it showed some new unexpected crashes inside VLC :(
Andy
That has nothing to do with the question. At least, now you can debug them.
fnieto