patches/strace/4.5.17/110-dont-use-REG_SYSCALL-for-sh.patch
author "Horst Kronstorfer" <horst.kronstorfer@aon.at>
Sat Jan 08 18:07:02 2011 +0100 (2011-01-08)
branch1.9
changeset 2258 587e1dd6d423
parent 747 d3e603e7c17c
permissions -rw-r--r--
debug/ltrace: fix building for mips

ltrace 0.5.3 currently fails to build for target mips because MY_TARGET
(introduced by patches/ltrace/0.5.3/150-allow-configurable-arch.patch)
is set to 'mips' via CT_ARCH, while the mips specific stuff in ltrace
(0.5.3) is stored under sysdeps/linux-gnu/mipsel:

result: *** No rule to make target `mips/arch.h', needed by `sysdep.h'.
Stop.

The following patch fixes this issue

Signed-off-by: "Horst Kronstorfer" <horst.kronstorfer@aon.at>
[yann.morin.1998@anciens.enib.fr: reformat commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 2115901c7f07181d92ddbd7dd7ebeaa72e4fb176)
yann@974
     1
Original patch from gentoo: ../../dev/crosstool-NG/ct-ng.trunk/patches/strace/4.5.17/110-dont-use-REG_SYSCALL-for-sh.patch
yann@974
     2
-= BEGIN original header =-
yann@428
     3
diff -dur strace-4.5.16.orig/process.c strace-4.5.16/process.c
yann@974
     4
-= END original header =-
yann@974
     5
diff -durN strace-4.5.17.orig/process.c strace-4.5.17/process.c
yann@974
     6
--- strace-4.5.17.orig/process.c	2008-07-18 04:16:47.000000000 +0200
yann@974
     7
+++ strace-4.5.17/process.c	2008-10-24 21:30:13.000000000 +0200
yann@974
     8
@@ -2726,7 +2726,6 @@
yann@428
     9
        { 4*REG_GBR,            "4*REG_GBR"                             },
yann@428
    10
        { 4*REG_MACH,           "4*REG_MACH"                            },
yann@428
    11
        { 4*REG_MACL,           "4*REG_MACL"                            },
yann@428
    12
-       { 4*REG_SYSCALL,        "4*REG_SYSCALL"                         },
yann@428
    13
        { 4*REG_FPUL,           "4*REG_FPUL"                            },
yann@428
    14
        { 4*REG_FPREG0,         "4*REG_FPREG0"                          },
yann@428
    15
        { 4*(REG_FPREG0+1),     "4*REG_FPREG1"                          },