#!/bin/bash
#对于arm平台要打下边的补丁syscall.c
#download source from http://sourceforge.net/projects/strace/files/strace/4.6/
./configure --host=arm-linux CC=arm-none-linux-gnueabi-gcc LD=arm-none-linux-gnueabi-ld
make CFLAGS+="-static"
arm-none-linux-gnueabi-strip strace
strace工具是一个非常强大的工具,是调试程序的好工具。要移植到arm平台,就需要使用交叉编译工具编译生成静态链接的可执行文件。具体步骤如下:
strace的使用介绍可以参考以下两篇文章:
1.http://www.ibm.com/developerworks/cn/aix/library/au-unix-strace.html。
2.http://blog.chinaunix.net/u1/38279/showart_367248.html
|