2012年5月30日

shell 调试

摘要: test.sh 1 #! /bin/sh 2 A=0 3 if [ ! -e test.bin ] 4 then 5 make 6 A=1 7 fi 8 9 mipsel-linux-objdump -D -m mips -b binary -EL -M no-aliases -z test.bin >my.dump 10 11 if [ $A = 1 ] 12 then 13 rm sramboot.o *bin *exe 14 fish -e 如果一个命令失败就立即退出sh -n 读入命令但是不执行它们sh -u 置换时把未设置的变量看作出错sh -v 当读入shell输入行时把他们 阅读全文

posted @ 2012-05-30 19:14 阿加 阅读(158) 评论(0) 推荐(0) 编辑

.previous

摘要: 摘自百度文库:linux源代码中汇编语言部分总是有.previous、.section、.long,这是一个ELF段堆栈操作命令。其他的段堆栈操作命令还有.section、.subsection、.pushsection、.popsection,本命令交换当前段(及其子段)和最近访问过的段(及其子段... 阅读全文

posted @ 2012-05-30 17:15 阿加 阅读(2869) 评论(0) 推荐(0) 编辑

导航