]> granicus.if.org Git - strace/commitdiff
mips: fix stub files
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 29 Jul 2015 21:32:35 +0000 (21:32 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 29 Jul 2015 22:54:11 +0000 (22:54 +0000)
This complements commit 140ecf876686d49085c6eb3a2306e2ea6ea641bc.

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

Reported-by: Elliott Hughes <enh@google.com>
linux/mips/genstub.sh

index ffcbfdf5a33fc9e7772c550dbd375fc9d849246f..5ebb1d44386f624b7fc2606be375a74f55edd77a 100755 (executable)
@@ -6,5 +6,5 @@ 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:]]*"\([^"]\+".*\)/\1printargs, "'$n'_\2/; s/^\[.*/&/p}' < "$in" > "$out"
+       sed -n '/^#if/,/^#else/ {s/^\([^{]*{[^,]*,[^,]*,[[:space:]]*\)[^,[:space:]]\+,[[:space:]]*"\([^"]\+".*\)/\1SEN(printargs), "'$n'_\2/; s/^\[.*/&/p}' < "$in" > "$out"
 done