Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77985
b: refs/heads/master
c: fa220d8
h: refs/heads/master
i:
  77983: 04f2b31
v: v3
  • Loading branch information
Randy Dunlap authored and Sam Ravnborg committed Jan 28, 2008
1 parent 497b40c commit 8969303
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 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: 80daa56008dad44f08d0b47670cf2513aa98ab53
refs/heads/master: fa220d89ad050cf5d970c0418ded019a80efedfb
17 changes: 15 additions & 2 deletions trunk/scripts/decodecode
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,19 @@
# e.g., to decode an i386 oops on an x86_64 system, use:
# AFLAGS=--32 decodecode < 386.oops

T=`mktemp`
cleanup() {
rm -f $T $T.s $T.o
exit 1
}

die() {
echo "$@"
exit 1
}

trap cleanup EXIT

T=`mktemp` || die "cannot create temp file"
code=

while read i ; do
Expand All @@ -20,6 +32,7 @@ esac
done

if [ -z "$code" ]; then
rm $T
exit
fi

Expand Down Expand Up @@ -48,4 +61,4 @@ echo -n " .byte 0x" > $T.s
echo $code >> $T.s
as $AFLAGS -o $T.o $T.s
objdump -S $T.o
rm $T.o $T.s
rm $T $T.s $T.o

0 comments on commit 8969303

Please sign in to comment.