invoking GNU debugger for C program
I've used GNU before on C programs, but not on a C program that takes in command line parameters. I have a program that takes as input an IP address as well as another integer, and I tried to invoke it like this:
gdb ./prog XXX.XXX.XXX.XXX 5
but the parameters weren't recognized. I looked at the 'man' page for gdb, but none of the switches looked like they would have anything to do with this. Thanks in advance.
|