GDB tips

프로그래밍/linux 2012. 6. 27. 17:48

In this article, I want to share all my findings and gathered information to help debugging with GDB.


1. How to set program arguments when debugging a program.

   ex) If you want to execute following command, 'progname -o outdir inputfilename'

        Then you can provide program's arguments to gdb like this

        $ gdb -ex 'set args -o outdir inputfilename' progname



Posted by kevino
,