patches/strace/4.5.15/110-dont-use-REG_SYSCALL-for-sh.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Oct 08 23:37:12 2010 +0200 (2010-10-08)
branch1.8
changeset 2150 f97a8ad2b172
parent 746 b150d6f590fc
permissions -rw-r--r--
cc/gcc: fix C++ headers location

In case we build the C++ compiler, we have to tell gcc where to put the C++
headers, or else it will try to # put it in prefix/tuple/include, which we
make a symlink to sysroot/usr/include during the build, and that we delete
(the symlink!) after the build, but gcc will not look in sysroot/usr/inlcude
for C++ headers by default.

Implements a fix suggested by: Bryan Hundven <bryanhundven@gmail.com>

Reported-by: Anthony Foiani <anthony.foiani@gmail.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from a0924619112015bdaa81a0a2313d21ef38607bc2)
     1 diff -dur strace-4.5.15.orig/process.c strace-4.5.15/process.c
     2 --- strace-4.5.15.orig/process.c	2007-01-11 23:08:38.000000000 +0100
     3 +++ strace-4.5.15/process.c	2007-07-14 19:19:58.000000000 +0200
     4 @@ -2679,7 +2679,6 @@
     5         { 4*REG_GBR,            "4*REG_GBR"                             },
     6         { 4*REG_MACH,           "4*REG_MACH"                            },
     7         { 4*REG_MACL,           "4*REG_MACL"                            },
     8 -       { 4*REG_SYSCALL,        "4*REG_SYSCALL"                         },
     9         { 4*REG_FPUL,           "4*REG_FPUL"                            },
    10         { 4*REG_FPREG0,         "4*REG_FPREG0"                          },
    11         { 4*(REG_FPREG0+1),     "4*REG_FPREG1"                          },