dancks macrumors regular Original poster Nov 8, 2009 100 0 Jan 10, 2011 #1 with a file that requires input? I tried running it and it just says reading source from library with trailing "..."
with a file that requires input? I tried running it and it just says reading source from library with trailing "..."
jared_kipe macrumors 68030 Dec 8, 2003 2,967 1 Seattle Jan 11, 2011 #2 I'm not sure, maybe remove the input file bit and hard code in a test file?
K kpua macrumors 6502 Jul 25, 2006 294 0 Jan 11, 2011 #3 This is how I do it from the command line: Code: $ gdb /path/to/my/program license and loading info (gdb) run /path/to/my/inputfile You can even attach the file to standard input by doing Code: (gdb) run < /path/to/my/inputfile like you normally would from the command line. If you're using Xcode, you get info on your executable and set the arguments in there.
This is how I do it from the command line: Code: $ gdb /path/to/my/program license and loading info (gdb) run /path/to/my/inputfile You can even attach the file to standard input by doing Code: (gdb) run < /path/to/my/inputfile like you normally would from the command line. If you're using Xcode, you get info on your executable and set the arguments in there.