http://www.gnu.org/software/gdb/
文章目录
下载gdb
将gdb压缩包拷贝到arm-linux系统的/userdata/arnold_software路径下
原文是拷贝到/usr/local路径下,我用xftp拷不进去,报错,查看磁盘空间发现空间不足了,所以只能拷贝到/userdata/arnold_software/路径下
解压gdb压缩包
tar -zxvf gdb-10.2
编译arm-linux-gdb
进入解压后的gdb目录
在上级目录新建gdb_build文件夹
mkdir ../arm-gdb_build
执行(target指明编译生成的GDB用于调试ARM-LINUX程序,prefix指明安装目录【注意要用绝对路径,相对路径不行】)
./configure --target=arm-linux --prefix=/userdata/arnold_software/gdb10.2/arm-gdb_build -v
然后报错:
[root@RV1126_RV1109 /userdata/arnold_software/gdb10.2/gdb-10.2]# ./configure --target=arm-linux --prefix=/userdata/arnold_software/gdb10.2/arm-gdb_build -v
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking target system type... arm-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for gdbserver support... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/userdata/arnold_software/gdb10.2/gdb-10.2':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
貌似在摄像头arm-linux系统上好多东西都没装,甚至没有安装编译器,导致gdb安装不了
我是不是思路错了,应该把核心转储文件拷贝出来,然后在pc-linux下分析?