strace/linux/mips/genstub.sh
Dmitry V. Levin 0e4b1f2eb3 mips: fix stub files
This complements commit 140ecf8766.

* linux/mips/genstub.sh: Output SEN(printargs) instead of printargs.

Reported-by: Elliott Hughes <enh@google.com>
2015-07-29 22:54:11 +00:00

11 lines
313 B
Bash
Executable File

#!/bin/sh -e
srcdir="${0%/*}"
dstdir="$1"; shift
for n in n32 n64 o32; do
in="$srcdir/syscallent-$n.h"
out="$dstdir/syscallent-$n-stub.h"
sed -n '/^#if/,/^#else/ {s/^\([^{]*{[^,]*,[^,]*,[[:space:]]*\)[^,[:space:]]\+,[[:space:]]*"\([^"]\+".*\)/\1SEN(printargs), "'$n'_\2/; s/^\[.*/&/p}' < "$in" > "$out"
done