About MinGW64 debugging

Learning computer room can be old, are xp system. After you install the DEV C ++ found to MinGW64.

And I used to compile the debug command:

g++ -g *.cpp -o a

gdb a

Compile the program can not be debugged.

Always thought, simply can not debug, but recently I discovered the above command you can change it a little debugging.

g++ -g *.cpp -o a -m32

gdb32 a

 

Guess you like

Origin www.cnblogs.com/gryzy/p/11198652.html