|
发表于 2007-5-29 19:27:56
|
显示全部楼层
manl了一把gdb,发现run不能这样用,下面是run的解析:
run [arglist]
Start your program (with arglist, if specified).
上面可以看到,run后面只是带参数,不能带可执行文件路径的,可执行文件需要在gdb启动参数中指出:
You can run gdb with no arguments or options; but the most usual way to
start GDB is with one argument or two, specifying an executable program
as the argument:
gdb program
You can also start with both an executable program and a core file
specified:
gdb program core
You can, instead, specify a process ID as a second argument, if you
want to debug a running process:
gdb program 1234
would attach GDB to process 1234 (unless you also have a file named
‘1234’; GDB does check for a core file first).
你这种情况请试试:
$ gdb ./mdord.exe
启动gdb
然后执行 run <in.dip > out.out |
|