old-cross-binutils/sim/common
Joel Brobecker 96987c2b7f Work around Solaris bourne shell limitation when building the sim
Building the sim on a sparc-solaris 2.8 machine fails when configured
with no extra sim hardware:

> for hw in  ; do \
>         echo "extern const struct hw_descriptor
>         dv_${hw}_descriptor[];" ; \
>       done >> tmp-hw.h
> echo 'const char version[] = "'"`sed q
> /[...]/../../gdb/version.in`"'";'
> >> version.c-tmp
> /bin/sh: -c: line 1: syntax error near unexpected token `;'
> /bin/sh: -c: line 1: `for hw in  ; do \'
> make[3]: *** [hw-config.h] Error 2

The same thing happens with the version of bash that we got from
Sun as well (which is very old: 2.03.0(1)-release).

The problems comes from the fact that both shells are buggy, and
reject the following script:

    for hw in ; do
      [...]
    done

The above is what sim/common/Makefile.in tries to execute when
generating hw-config.h.

In order to allow users to build out of the box on these machines,
this patch works around this bug.  It does rely on the fact that
none of the tokens in SIM_HW contain whitespaces.

sim/common/ChangeLog:

        * Make-common.in (hw-config.h): Work around bug in Solaris 2.8
        system bourne shell.
2011-12-19 04:33:39 +00:00
..
acinclude.m4 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
aclocal.m4 sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
callback.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
cgen-accfp.c common/ 2010-01-25 04:08:52 +00:00
cgen-cpu.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-defs.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-engine.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
cgen-fpu.c import gdb-1999-07-05 snapshot 1999-07-06 00:58:41 +00:00
cgen-fpu.h common/ 2010-01-25 04:08:52 +00:00
cgen-mem.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-ops.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-par.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-par.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-run.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-scache.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-scache.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-sim.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-trace.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-trace.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-types.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen-utils.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
cgen.sh * Make-common.in (CGEN_CPU_EXTR,CGEN_CPU_READ): Pass canonical 2009-07-07 08:09:19 +00:00
ChangeLog Work around Solaris bourne shell limitation when building the sim 2011-12-19 04:33:39 +00:00
config.in sim: dv-cfi: check for posix_fallocate 2011-11-07 16:28:52 +00:00
configure sim: generate build dependencies on the fly 2011-12-03 18:23:51 +00:00
configure.ac sim: dv-cfi: check for posix_fallocate 2011-11-07 16:28:52 +00:00
dv-cfi.c sim: dv-cfi: check for posix_fallocate 2011-11-07 16:28:52 +00:00
dv-cfi.h sim: cfi: new flash device simulation 2011-03-29 17:57:21 +00:00
dv-core.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
dv-glue.c sim: glue: allow bitwise devices to only glue ints 2011-05-23 23:00:35 +00:00
dv-pal.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
dv-sockser.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
dv-sockser.h sim: dv-sockser: add a write buffer variant 2010-11-16 19:10:29 +00:00
gdbinit.in * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break 2004-12-07 23:37:35 +00:00
genmloop.sh run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
gennltvals.sh * gennltvals.sh: Search sys/_default_fcntl.h, in addition to 2011-03-21 22:06:55 +00:00
gentmap.c * gentmap.c: Fix compile time warning. 2006-11-07 19:29:59 +00:00
gentvals.sh Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
hw-alloc.c sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-alloc.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
hw-base.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
hw-base.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
hw-device.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
hw-device.h sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-events.c sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-events.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
hw-handles.c sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-handles.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
hw-instances.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
hw-instances.h sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-main.h sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-ports.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
hw-ports.h sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-properties.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
hw-properties.h sim: fix up style a bit 2011-04-02 05:30:16 +00:00
hw-tree.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
hw-tree.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
Make-common.in Work around Solaris bourne shell limitation when building the sim 2011-12-19 04:33:39 +00:00
Makefile.in run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
nltvals.def sim: common: add back Blackfin syscalls 2011-05-26 18:20:13 +00:00
nrun.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
run-sim.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
run.1 Update the copyright year for most remaining files in GDB 2011-01-05 05:09:55 +00:00
run.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-abort.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-alu.h 2011-10-14 Alexey Makhalov <makhaloff@gmail.com> 2011-10-14 19:31:46 +00:00
sim-arange.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-arange.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-assert.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-base.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-basics.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-bits.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-bits.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-command.c sim: include sim-options.h for command prototype 2011-07-12 20:21:28 +00:00
sim-config.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-config.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-core.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-core.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-cpu.c sim: punt zfree() 2011-02-14 05:14:28 +00:00
sim-cpu.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-endian.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-endian.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-engine.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-engine.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-events.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-events.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-fpu.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-fpu.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-hload.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-hrw.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-hw.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-hw.h sim: add noreturn markings to more hw abort/halt funcs 2011-01-10 21:52:08 +00:00
sim-info.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-inline.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-inline.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-io.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-io.h * gennltvals.sh: Search sys/_default_fcntl.h, in addition to 2011-03-21 22:06:55 +00:00
sim-load.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-memopt.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-memopt.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-model.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-model.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-module.c sim: punt zfree() 2011-02-14 05:14:28 +00:00
sim-module.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-n-bits.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-n-core.h sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-n-endian.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-options.c sim: fix minor --sysroot mem leak 2011-05-27 18:05:16 +00:00
sim-options.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-profile.c [sim]: Only print the profile info title once. 2011-10-19 00:54:03 +00:00
sim-profile.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-reason.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-reg.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-resume.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-run.c run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-signal.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-signal.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-stop.c sim: fix func call style (space before paren) 2011-05-11 20:02:42 +00:00
sim-trace.c sim: add syscall tracing level 2011-05-26 00:09:59 +00:00
sim-trace.h sim: add syscall tracing level 2011-05-26 00:09:59 +00:00
sim-types.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
sim-utils.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-utils.h sim: punt zfree() 2011-02-14 05:14:28 +00:00
sim-watch.c sim: common: trim trailing whitespace 2011-03-15 03:16:17 +00:00
sim-watch.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00
syscall.c sim: export cb_get_string for people to use 2011-12-03 18:39:43 +00:00
tconfig.in Initial creation of sourceware repository 1999-04-16 01:35:26 +00:00
version.h run copyright.sh for 2011. 2011-01-01 15:34:07 +00:00