Skip to content

Commit d1b330e

Browse files
committed
Fix typos, add execlog helper script
1 parent eca5b1e commit d1b330e

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You can also use the helper shell script:
6262
> It will produce a standard frame without any logged post register state.
6363
> Any completed memory read/write might still be logged.
6464
>
65-
> If you suspect this, execute the binary with the `execlog` plugin (see `gen-trace.sh`)
65+
> If you suspect this, execute the binary with the `execlog` plugin (see `gen-trace.sh` or `gen-execlog.sh`)
6666
> to check of the execution stops earlier than expected.
6767
6868

gen-execlog.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/sh
2+
3+
if [ "$#" -lt 2 ]; then
4+
echo "$0 <build_dir> <arch> <bin_path> [args...]"
5+
echo "<arch> is appended to qemu-<arch>"
6+
exit 1
7+
fi
8+
9+
BUILDIR=$1
10+
ARCH=$2
11+
BIN=$3
12+
13+
$BUILDIR/qemu-$ARCH -plugin file="$BUILDIR/contrib/plugins/libexeclog.so",reg=* -d plugin "$BIN"
14+

gen-trace.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
#!/bin/sh -x
1+
#!/bin/sh
22

33
if [ "$#" -lt 4 ]; then
44
echo "$0 <build_dir> <arch> <endianess=[b/l]> <bin_path> [args...]"
5-
echo "<arch> is attached to qemu-<arch>"
5+
echo "<arch> is appended to qemu-<arch>"
66
exit 1
77
fi
88

0 commit comments

Comments
 (0)