insight 6 8除錯工具安裝

2021-05-26 20:26:23 字數 2186 閱讀 4631

錯誤資訊:

qiang@linuxsir:~$ sudo arm-elf-insight 

tk_init failed: can't find a usable tk.tcl in the following directories: 

/usr/local/share/tk8.4 /usr/local/lib/tk8.4 /usr/lib/tk8.4 /usr/local/library /usr/library /usr/tk8.4.1/library /tk8.4.1/library

/usr/local/share/tk8.4/tk.tcl: no event type or button # or keysym

no event type or button # or keysym

while executing

"bind listbox ] units

}"(file "/usr/local/share/tk8.4/listbox.tcl" line 182)

invoked from within

"source /usr/local/share/tk8.4/listbox.tcl"

(in namespace eval "::" script line 1)

invoked from within

"namespace eval :: [list source [file join $::tk_library $file.tcl]]"

(procedure "sourcelibfile" line 2)

invoked from within

"sourcelibfile listbox"

(in namespace eval "::tk" script line 4)

invoked from within

"namespace eval ::tk {

if {[catch {

namesp..."

(file "/usr/local/share/tk8.4/tk.tcl" line 393)

invoked from within

"source /usr/local/share/tk8.4/tk.tcl"

("uplevel" body line 1)

invoked from within

"uplevel #0 [list source $file]"

this probably means that tk wasn't installed properly.

錯誤:cc1: warnings being treated as errors

.././gdb/cli/cli-cmds.c: in function 『pwd_command』:

.././gdb/cli/cli-cmds.c:323: error: ignoring return value of 『getcwd』, declared with attribute warn_unused_result

make[2]: *** [cli-cmds.o] 錯誤 1

make[2]:正在離開目錄 `/home/qiang/tools/insight-6.8-1/gdb'

make[1]: *** [all-gdb] 錯誤 2

make[1]:正在離開目錄 `/home/qiang/tools/insight-6.8-1'

make: *** [all] 錯誤 2

解決方案:

方法1.修改源**,

linux-nat.c:2879:error:ignoring return value of 'fgets',declared with attribute warn_unused_result

老**fgets(buffer, maxpathlen, procfile);

解決的方法是

char* temp_p = fgets(buffer, maxpathlen, procfile);

類似的問題還有幾個,基本上都是gdb的問題,照著解決就行了,我就不乙個個說了。

方法2.進入insight-6.8-1/gdb目錄,開啟makefile檔案搜尋-werror

老** 

werror_cflags = -werror

新**werror_cflags = #-werror

這2個辦法都可以通過編譯,就可以使用insight了。

insight 6 8除錯工具安裝

錯誤資訊 qiang linuxsir sudo arm elf insight tk init failed can t find a usable tk.tcl in the following directories usr local share tk8.4 usr local lib tk...

PHP安裝Xdebug除錯工具

安裝xdebug 2.將它重新命名為php xdebug.dll,並複製到c php5.3 ext目錄下 3.更改php.ini檔案 把下面的內容加入到檔案最後就可以了。xdebug zend extension c php5.3 ext php xdebug.dll xdebug.profiler...

PHP安裝Xdebug除錯工具

安裝xdebug 2.將它重新命名為php xdebug.dll,並複製到c php5.3 ext目錄下 3.更改php.ini檔案 把下面的內容加入到檔案最後就可以了。xdebug zend extension c php5.3 ext php xdebug.dll xdebug.profiler...