[vox-tech] debug process with command line args

Bill Kendrick nbs at sonic.net
Fri May 21 19:17:04 PDT 2010


I do, e.g.,

$ gdb ./tuxpaint
...
(gdb) run --windowed --nosound

IIRC...

-bill!
(via touchscreen phone, chasing toddler at a park ;) )


On Fri, May 21, 2010 at 06:56:58PM -0700, Brian Lavender 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 at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

-- 
-bill!
Sent from my computer


More information about the vox-tech mailing list