调试armv4架构上的内存泄漏的程序

时间:2013-07-12 15:59:39

标签: c linux debugging arm valgrind

我有一个拥有armv4 CPU的linux设备,并在其上开发C代码。我想通过valgrind调试我的代码。但是,我收到一条消息,说valgrind不支持armv4l。我想知道是否有办法来抑制错误或者可能是另一种调试包以分析内存泄漏?

以下是我尝试安装valgrind

的方法
ts7500:/home# tar -xjf valgrind-3.8.1.tar.bz2
ts7500:/home# cd valgrind-3.8.1
ts7500:/home/valgrind-3.8.1# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for ar... /usr/bin/ar
checking for perl... /usr/bin/perl
checking for gdb... /usr/bin/gdb
checking dependency style of gcc... gcc3
checking for diff -u... yes
checking for a supported version of gcc... ok (4.3.2)
checking build system type... armv4l-unknown-linux-gnu
checking host system type... armv4l-unknown-linux-gnu
checking for a supported CPU... no (armv4l)
configure: error: Unsupported host architecture. Sorry
ts7500:/home/valgrind-3.8.1# 

0 个答案:

没有答案