2011-06-28 67 views
0

我試圖在調試時構建binutils 2.21源代碼。我的主要目標是實際調試objdump。但爲了構建它,我認爲我必須構建整個包裝。使用調試模式構建binutils

不幸的是,在配置文件上沒有調試選項。在配置之前,我嘗試在CFLAGS中添加-g和-ggdb。然而,錯誤是:

Configuring in ./intl 
configure: loading cache ./config.cache 
configure: error: `CFLAGS' has changed since the previous run: 
configure: former value: `-g -O2 -D__USE_MINGW_ACCESS' 
configure: current value: `-g -D__USE_MINGW_ACCESS' 
configure: error: in `/c/binutils-2.21/intl': 
configure: error: changes in the environment can compromise the build 
configure: error: run `make distclean' and/or `rm ./config.cache' and start over 

make[1]: *** [configure-intl] Error 1 
make[1]: Leaving directory `/c/binutils-2.21' 
make: *** [all] Error 2 

我試過「make clean」和「make distclean」,但我收到了同樣的錯誤。其實根據以往CFLAGS它有之前-g選項,但是當我嘗試在gdb打開objdump.exe它說

Reading symbols from c:\binutils-2.21\binutils/objdump.exe... 
(no debugging symbols found)...done. 

預先感謝您。

回答

0

是的我試了很多。正如我所說的-g標籤是gcc。但是,makefile將所有啓用調試的二進制文件保存到binutils.libs \目錄。所以當我在gdb下運行binutils.libs \ objdump.exe時,它很好。儘管感謝您的回答。

0

您是否嘗試重新運行配置腳本?