2013-06-18 37 views
2

我曾嘗試調試本地C在Android上,的Android/JAVA/src目錄/ PCF:沒有這樣的文件或目錄

但出現以下錯誤:

There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "--host=x86_64-apple-darwin --target=arm-linux-android". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Warning: /Users/eladb/MyWorkspace/Client/src/android/java/src/pcf: No such file or directory. Remote debugging from host 225.89.3.0 warning: while parsing target library list (at line 2): No segment defined for ..

Warning: /Users/eladb/MyWorkspace/Client/src/src/pcf: No such file or directory. Reading symbols from /Users/eladb/MyWorkspace/Client/src/android/java/obj/local/armeabi/app_process...done.

WARNING: no debugging symbols found in /Users/eladb/MyWorkspace/Client/src/android/java/obj/local/armeabi/app_process. Either the binary was compiled without debugging information or the debugging information was removed (e.g., with strip or strip -g). Debugger capabilities will be very limited.

怎麼能我解決這個問題?

+0

你究竟是怎麼試着「在Android上調試native c」的?你輸入了什麼工具/命令? – BoD

回答

1

我相信你應該嘗試使用「gcc -g」或其變體重新編譯你的代碼,然後再調試一次。

0

你實際上沒有收到任何錯誤(或者至少,你沒有發佈)。你分享的都是警告。這意味着你可以做任何你想做的事情,只要意識到事情可能無法順利進行。

第一條消息的前半部分僅僅是一條無保修通知。這對gdb來說是正常的。

以下是缺少的文件警告。我不知道該文件是什麼或它做了什麼。手動檢查它是否存在,如果不存在,則可能需要重新安裝。在這種情況下,檢查gdb是否有足夠的權限來訪問該文件。 (請記住,這只是一條警告消息,因此修復它並不重要。)

最後一個警告是關於缺少調試符號。調試符號僅用於協助調試,主要用於確定哪些二進制指令對應於源代碼的哪些部分。在gcc(和g ++)中,這些可以通過在編譯時使用-g標誌來包含。大多數IDE都會爲此設置一個地方。

相關問題