Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Debugging with program parameters using gdb

Status
Not open for further replies.

Ezequiel

Programmer
Apr 4, 2001
30
CA
Hi!
I'm trying to debug a program that I execute WITH parameters.
When trying to do a

gdb programname -par1 -par2

The gdb thinks that -par1 -par2 are parameters for debugging, instead of using them with my program.

How can I solve this?
Thanks!
Eze. ---
Ezequiel Glinsky
eze@bumeran.com
Buenos Aires, Argentina
 
It has bee a while since I was on a unix system but if i remember correctly, gdb has a &quot;run&quot; command. If you type &quot;run <args>&quot; instead I think this accomplishes what you need.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top