我正在调试一个 c++ 程序:
gdb simplesearch.o
然后 gdb 启动成功:
(gdb) Reading symbols from /home/zwx/workspace/xapian/examples/simplesearch.o...done.
但是当我尝试运行时:
(gdb) run
gdb 报告:
Starting program: /home/zwx/workspace/xapian/examples/simplesearch.o
/bin/bash: /home/zwx/workspace/xapian/examples/simplesearch.o: cannot execute binary file
/bin/bash: /home/zwx/workspace/xapian/examples/simplesearch.o: Success
During startup program exited with code 126.
有人有想法吗?