How to pass arguments to my application that include the - symbol on gdb?
c, command-line-arguments, gdb
Solution
- `gdb -q a.out` inside gdb:
- `run -foo baa` Tip: -q option for gdb suppresses the introductory copyright messages.
Problem
I need to pass some arguments to my application,that include the - symbol. The problem is if I pass `gdb a.out -foo baa`, the gdb understand that the arguments are for it, and not to my application. How to fix this?