0

Suppose I'm in gdb memcached,but want to run it as memcached -d -u root -m 50 -c 1024 -p 11051.

How to do this?

2 Answers 2

1

On the gdb prompt, juste type

run -d -u root -m 50 -c 1024 -p 11051

1

Alternativerly, you can also use the args parameter:

(gdb) help set args
Set argument list to give program being debugged when it is started.
Follow this command with any number of args, to be passed to the program.

so in your case:

set args -d -u root -m 50 -c 1024 -p 11051
run (or) start

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.