調試問題:
Can't find a source file at "/tmp/TI_MKLIB6sLCzz/SRC/exit.c"
Locate the file or edit the source lookup path to include its location
解決:來自ECLIPSE的WIKI:
http://wiki.eclipse.org/CDT/User/FAQ#Debugging_C.2FC.2B.2B_Projects
DETAIL:
I'm using cygwin and when launching the debugger, it complains that it can't find the source file
You must provide a mapping from /cygdrive/c to c:/ (or whatever your drive letter is).
To do this,
From the editor error page, select the "Edit Source Lookup Path..." button and select the "Add..." button Or, in the eclipse IDE, go to menu Window -> Preferences -> C/C++ -> Debug-> Common Source Lookup Path -> Add. From the list of lookup containers, choose Path Mapping and OK. You get a New Mapping in the list. Select the mapping and then Edit. In the Modify the path mappings dialog, select Add, and then enter: /cygdrive/c as the compilation path and c:/ as the local file system path. Select OK, OK, OK to finish the dialogs. Terminate the debug session and restart; it should find your source files now. This setting will apply to any debug sessions launched from this workspace.
You can also modify the settings in each individual launch configuration. --------------------- 作者:XiaoyuLin 來源:CSDN 原文:https://blog.csdn.net/xiaoyulin/article/details/3747384 版權聲明:本文為博主原創文章,轉載請附上博文鏈接!
C6678調試以及運行時報錯Can't find a source file
秀才 331 points Muhua Chen Muhua Chen
我在跑自己寫的helloworld以及CCS自帶的6678的例子時
可以進行單步調試,但過程中多次出現
Can't find a source file at "/db/rtree/library/trees/xdcprod/xdcprod-q45/product/Linux/xdctools_3_24_05_45_eng/packages/xdc/runtime/Core-params.c" Locate the file or edit the source lookup path to include its location.
這類問題
並且點擊運行,也會報錯
Can't find a source file at "/tmp/TI_MKLIB6sLCzz/SRC/exit.c" Locate the file or edit the source lookup path to include its location.
我按照網上說的http://blog.csdn.net/xiaoyulin/article/details/3747384 1.From the editor error page, select the "Edit Source Lookup Path..." button and select the "Add..." button •Or, in the eclipse IDE, go to menu Window -> Preferences -> C/C++ -> Debug-> Common Source Lookup Path -> Add.
2.From the list of lookup containers, choose Path Mapping and OK. You get a New Mapping in the list. 3.Select the mapping and then Edit. In the Modify the path mappings dialog, select Add, and then enter: •/cygdrive/c as the compilation path and •c:/ as the local file system path.
4.Select OK, OK, OK to finish the dialogs. 5.Terminate the debug session and restart; it should find your source files now 設置了映射路徑,錯誤依然存在,請大家幫幫忙,非常感謝
秀才 331 points Muhua Chen Muhua Chen
2013-1-10 16:00 回復
4 個回復
榜眼 26965 points Allen Yin Allen Yin
2013-1-11 16:11
如圖 edit source lookup路徑
上述內容如果回答了您的問題,請點擊標簽欄“是”按鈕。您的輕輕一點,會幫助我們更好的管理論壇內容,謝謝!
回復
秀才 331 points Muhua Chen Muhua Chen
2013-1-13 14:06
回復 Allen Yin:
您好,非常感謝您的回答。
點擊Edit Source Lookup 進入后有多個添加選項,不知道該選哪一種,另外我並沒有/tmp/TI_MKLIB6sLCzz/SRC/exit.c這個路徑以及文件,該怎么處理?
回復
榜眼 26965 points Allen Yin Allen Yin
2013-1-14 9:50
回復 Muhua Chen:
exit函數式標准庫自帶的,你可以不用關注
上述內容如果回答了您的問題,請點擊標簽欄“是”按鈕。您的輕輕一點,會幫助我們更好的管理論壇內容,謝謝!