Use the -g option while building it so as to include the debug symbols.
This will help to put breakpoints on line numbers and/or function names while using grub debugger (gdb)
gcc -g cFile.c
This will help to put breakpoints on line numbers and/or function names while using grub debugger (gdb)
gcc -g cFile.c
g++ -g cppFile.cpp
Comments
Post a Comment
Please post your comment