Can dbx debugger pass command line options when dbx starts?

I use both GDB and DBX depending on the platform I am debugging. I need to debug a tool that has 20 command line options that need to be passed. GDB has an option where you can pass these parameters when gdb starts:

gdb --args ...

I am looking for a similar way to do this in DBX. I hope to save time, not cut and paste all the time. I read parts of the manual, and I could not figure out how to do this.

+6
source share
2 answers

you can run runargs command at startup

dbx -c "runargs --all --your --flags" a.out 
+7
source

If you need to run an application called yourApp using dbx for debugging. For example: yourApp param1 param2

You can do this using the run from dbx command:

 > dbx yourApp Type 'help' for help. reading symbolic information ... (dbx) run param1 param2 //some output made by yourApp (dbx) 
+1
source

All Articles