최신 버전 gdb
에 문제가있어 이전 버전을 사용하고 싶습니다. gdb
보관 파일 here을 찾았지만 어떻게 사용할 수 있습니까? 그 중 하나를 컴파일/설치하려면 어떻게합니까? manual에 따르면이전 버전의 gdb 설치
먼저 configure
:
$ make
make[1]: Entering directory '/root/Desktop/gdb-7.7'
Configuring in ./libiberty
configure: creating cache ./config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... /root/Desktop/gdb-7.7/missing makeinfo --split-size=5000000
[...]
하지만 오류가 발생합니다 : 다음 make
$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
[...]
configure: creating ./config.status
config.status: creating Makefile
remote-utils.c:436:19: error: ‘hexchars’ defined but not used [-Werror=unused-const-variable=]
static const char hexchars[] = "abcdef";
^~~~~~~~
cc1: all warnings being treated as errors
Makefile:238: recipe for target 'remote-utils.o' failed
make[4]: *** [remote-utils.o] Error 1
make[4]: Leaving directory '/root/Desktop/gdb-7.7/gdb/gdbserver'
Makefile:1345: recipe for target 'subdir_do' failed
make[3]: *** [subdir_do] Error 1
make[3]: Leaving directory '/root/Desktop/gdb-7.7/gdb'
Makefile:1018: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/root/Desktop/gdb-7.7/gdb'
Makefile:8611: recipe for target 'all-gdb' failed
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory '/root/Desktop/gdb-7.7'
Makefile:832: recipe for target 'all' failed
make: *** [all] Error 2
는 다운 그레이드 프로그램에 대한 가이드는 here 발견 또한 도움이되지 않았다. 항상 "버전을 찾을 수 없음"오류가 발생했습니다 :
$ sudo apt-get install gdb="7.8.1"
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Version '7.8.1' for 'gdb' was not found