From 8bad18f4f982c888b820035570f8dca9aec0cd99 Mon Sep 17 00:00:00 2001 From: Rabin Vincent Date: Thu, 3 Jun 2010 22:48:12 +0530 Subject: [PATCH] --- yaml --- r: 204867 b: refs/heads/master c: b396aa03084b51f6822052a8070703287f198360 h: refs/heads/master i: 204865: 5903e1c7104d18ddaa57550a363466cf79d3d661 204863: a56e24aeab4dbd1ac8fd1d855bbc8c4c306c4a43 v: v3 --- [refs] | 2 +- trunk/scripts/decodecode | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/[refs] b/[refs] index 4133613142e7..2b5f8d2e003d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c8447161470d0292cc96b4f28f03a8eedb7806e9 +refs/heads/master: b396aa03084b51f6822052a8070703287f198360 diff --git a/trunk/scripts/decodecode b/trunk/scripts/decodecode index 8b30cc36744f..18ba881c3415 100755 --- a/trunk/scripts/decodecode +++ b/trunk/scripts/decodecode @@ -40,7 +40,7 @@ echo $code code=`echo $code | sed -e 's/.*Code: //'` width=`expr index "$code" ' '` -width=$[($width-1)/2] +width=$((($width-1)/2)) case $width in 1) type=byte ;; 2) type=2byte ;; @@ -48,10 +48,10 @@ case $width in esac disas() { - ${CROSS_COMPILE}as $AFLAGS -o $1.o $1.s &> /dev/null + ${CROSS_COMPILE}as $AFLAGS -o $1.o $1.s > /dev/null 2>&1 - if [ "$ARCH" == "arm" ]; then - if [ $width == 2 ]; then + if [ "$ARCH" = "arm" ]; then + if [ $width -eq 2 ]; then OBJDUMPFLAGS="-M force-thumb" fi @@ -59,7 +59,7 @@ disas() { fi ${CROSS_COMPILE}objdump $OBJDUMPFLAGS -S $1.o | \ - grep -v "/tmp\|Disassembly\|\.text\|^$" &> $1.dis + grep -v "/tmp\|Disassembly\|\.text\|^$" > $1.dis 2>&1 } marker=`expr index "$code" "\<"`