Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204867
b: refs/heads/master
c: b396aa0
h: refs/heads/master
i:
  204865: 5903e1c
  204863: a56e24a
v: v3
  • Loading branch information
Rabin Vincent authored and Michal Marek committed Jun 4, 2010
1 parent 47abcee commit 8bad18f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c8447161470d0292cc96b4f28f03a8eedb7806e9
refs/heads/master: b396aa03084b51f6822052a8070703287f198360
10 changes: 5 additions & 5 deletions trunk/scripts/decodecode
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,26 @@ 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 ;;
4) type=4byte ;;
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

${CROSS_COMPILE}strip $1.o
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" "\<"`
Expand Down

0 comments on commit 8bad18f

Please sign in to comment.