[vox-tech] debug process with command line args

Brian Lavender brian at brie.com
Fri May 21 18:56:58 PDT 2010


How do I add arguments to a program I am debugging with gdb?

The following doesn't seem to work.

gdb ./foo -i somearg

brian
-- 
Brian Lavender
http://www.brie.com/brian/

the Ethereal version 0.99 source code contains more than 8,000 instances
of incrementing or decrementing by a hard-coded numeric constant, the
vast majority of which are adjusting a pointer or a length while stepping
through a buffer. Any instance of an incorrect constant can of course
result in an incorrect parsing of a protocol, but is not detectable at
compile-time since using the wrong numeric constant still type-checks.

Pang et al. on binpac
http://www.icir.org/vern/papers/binpac.IMC06.pdf


More information about the vox-tech mailing list