Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Trying to track a sleeping CGI request with gdb

by Chady (Priest)
on Oct 10, 2006 at 20:22 UTC ( #577487=note: print w/ replies, xml ) Need Help??


in reply to Re: Trying to track a sleeping CGI request with gdb
in thread Trying to track a sleeping CGI request with gdb

Yes, but gdb expects after the program name, a core dump file, or a pid.

So to pass arguments to the executable, you need to run it from within gdb as such:

$ gdb /usr/bin/perl ... .. (gdb) run /path/to/cgi-bin/script.cgi

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady | http://chady.net/
Are you a Linux user in Lebanon? join the Lebanese GNU/Linux User Group.


Comment on Re^2: Trying to track a sleeping CGI request with gdb
Download Code
Replies are listed 'Best First'.
Re^3: Trying to track a sleeping CGI request with gdb
by nagakiran (Initiate) on Apr 20, 2010 at 19:53 UTC
    "--args" gdb option allows to pass arguments to the executable given a program X and list of parameters a b c: %gdb --args X a b c

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://577487]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2015-07-29 20:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (268 votes), past polls