From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Jacobowitz To: Andrew Cagney Cc: "Maciej W. Rozycki" , gdb-patches@sources.redhat.com Subject: Re: 6.1: Use cconfig.h instead of config.h in sim/common [resend] Date: Mon, 10 May 2004 20:48:00 -0000 Message-id: <20040510203928.GA22067@nevyn.them.org> References: <20040510161830.GB25838@nevyn.them.org> <409FE4A0.3000504@gnu.org> X-SW-Source: 2004-05/msg00301.html On Mon, May 10, 2004 at 04:22:56PM -0400, Andrew Cagney wrote: > >On Tue, Apr 20, 2004 at 05:00:21PM +0200, Maciej W. Rozycki wrote: > > > >>>Hello, > >>> > >>> Despite: > >>> > >>> http://sources.redhat.com/ml/gdb-patches/2003-12/msg00057.html > >>> > >>>the following patch hasn't been applied. What's wrong with it? > >>> > >>>2004-04-20 Maciej W. Rozycki > >>> > >>> * callback.c: Include cconfig.h instead of config.h. > >>> * run.c: Likewise. > >>> * sim-basics.h: Likewise. > >>> * sim-load.c: Likewise. > >>> * syscall.c: Likewise. > > > > > >Nothing, it just got forgotten. I've checked in this. > > Did the cross targets build? I can't build powerpc as either a native > or cross. > > /home/cygnus/cagney/GDB/src/sim/common/callback.c:26:21: cconfig.h: No > such file or directory > In file included from /home/cygnus/cagney/GDB/src/sim/common/sim-fpu.c:47: > /home/cygnus/cagney/GDB/src/sim/common/sim-basics.h:32:21: cconfig.h: No > such file or directory This is specific to PPC. It uses files from sim/common/, but doesn't use Make-common.in. I'm testing this patch. Index: configure =================================================================== RCS file: /cvs/src/src/sim/ppc/configure,v retrieving revision 1.5 diff -u -p -r1.5 configure --- configure 22 Jun 2003 16:48:10 -0000 1.5 +++ configure 10 May 2004 20:37:42 -0000 @@ -4675,7 +4675,7 @@ echo $ac_n "checking for common simulato echo "configure:4676: checking for common simulator directory fpu implementation" >&5 if test -f "${srcdir}/../common/sim-fpu.c"; then echo "$ac_t""yes" 1>&6 - sim_fpu_cflags="-DHAVE_COMMON_FPU -I${srcdir}/../common" + sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common" sim_fpu="sim-fpu.o" else echo "$ac_t""no" 1>&6 Index: configure.in =================================================================== RCS file: /cvs/src/src/sim/ppc/configure.in,v retrieving revision 1.4 diff -u -p -r1.4 configure.in --- configure.in 22 Jun 2003 16:48:12 -0000 1.4 +++ configure.in 10 May 2004 20:37:42 -0000 @@ -700,7 +700,7 @@ fi AC_MSG_CHECKING(for common simulator directory fpu implementation) if test -f "${srcdir}/../common/sim-fpu.c"; then AC_MSG_RESULT(yes) - sim_fpu_cflags="-DHAVE_COMMON_FPU -I${srcdir}/../common" + sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common" sim_fpu="sim-fpu.o" else AC_MSG_RESULT(no) -- Daniel Jacobowitz