How do I run a GDB command line argument program?

Minh Phượng

New member
How do I run a GDB command line argument program?
Answer
Optionally you can run with -batch mode. -ex=r is short for -ex=run and tells gdb to run your program immediately, rather than wait for you to type “run” at the prompt. Then –args says that everything that follows is the command and arguments, just as you’d normally type them at the commandline prompt.
 

Tìm kiếm

Back
Top