gdb ./foo gdb> set args -i somearg gdb> the rest of your session
On Fri, May 21, 2010 at 6:56 PM, Brian Lavender <br...@brie.com> wrote: > 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 > _______________________________________________ > vox-tech mailing list > vox-tech@lists.lugod.org > http://lists.lugod.org/mailman/listinfo/vox-tech > _______________________________________________ vox-tech mailing list vox-tech@lists.lugod.org http://lists.lugod.org/mailman/listinfo/vox-tech