4
我調試一個C++程序:gdb「啓動程序在代碼126退出期間」。
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.
有人有想法嗎?
是。當我嘗試運行'gdb simplesearch'時(simplesearch是一個可運行爲./simplesearch的可執行文件)。然後gdb報告:「」/ home/zwx/workspace/xapian/examples/simplesearch「:不是可執行格式:文件格式無法識別。」 @geekosaur – stackunderflow 2012-04-16 01:47:38
'文件simplesearch'報告是什麼? – geekosaur 2012-04-16 01:53:15
仍然是「」/ home/zwx/workspace/xapian/examples/simplesearch「:不是可執行格式:文件格式無法識別。」 – stackunderflow 2012-04-16 01:54:31