* Makefile.in (autoconf-common autoheader-common): Pass `-l
authorTom Tromey <tromey@redhat.com>
Fri, 24 Apr 1998 21:00:29 +0000 (21:00 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 24 Apr 1998 21:00:29 +0000 (21:00 +0000)
../common' to autoconf and autoheader.  Unconditionally run
autoconf in every subdir.
(autoconf-changelog autoheader-changelog): Unconditionally run
commands in every subdir.
(autoconf-install autoheader-install): Likewise.

sim/ChangeLog
sim/Makefile.in
sim/README-HACKING

index aaa5af928604420b12d5596c40ffd0fd1a96b3dd..3a44a63744daaa499b3a77428679edbe89b8f14a 100644 (file)
@@ -1,3 +1,19 @@
+Fri Apr 24 11:14:13 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * Makefile.in (autoconf-common autoheader-common): Pass `-l
+       ../common' to autoconf and autoheader.  Unconditionally run
+       autoconf in every subdir.
+       (autoconf-changelog autoheader-changelog): Unconditionally run
+       commands in every subdir.
+       (autoconf-install autoheader-install): Likewise.
+
+Tue Mar 24 17:12:43 1998  Stu Grossman  <grossman@bhuna.cygnus.co.uk>
+
+       * Makefile.in:  Get SHELL from configure.
+       * (FLAGS_TO_PASS):  Pass down SHELL.
+       * configure:  Regenerate with autoconf 2.12.1 to fix shell issues for
+       NT native builds.
+
 Tue Mar 24 11::18:00 1998  Joyce Janczyn  <janczyn@cygnus.com>
 
        * configure.in (extra_subdirs): Enable igen for mn10300.
index c70355c1f2ec5d63704ee35ce840590c3c9d5537..2098d39e8bfd17a07fc0e36a76935a545402acc5 100644 (file)
@@ -1,5 +1,5 @@
 #    Makefile template for Configure for the sim library.
-#    Copyright (C) 1993, 1995, 1997 Free Software Foundation, Inc.
+#    Copyright (C) 1993, 1995, 1997, 1998 Free Software Foundation, Inc.
 #    Written by Cygnus Support.
 # 
 # This file is part of BFD, the Binary File Descriptor library.
@@ -45,7 +45,7 @@ man9dir = $(mandir)/man9
 infodir = @infodir@
 includedir = @includedir@
 
-SHELL = /bin/sh
+SHELL = @SHELL@
 
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
@@ -93,7 +93,8 @@ FLAGS_TO_PASS = \
        "INSTALL_DATA=$(INSTALL_DATA)" \
        "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
        "RUNTEST=$(RUNTEST)" \
-       "RUNTESTFLAGS=$(RUNTESTFLAGS)"
+       "RUNTESTFLAGS=$(RUNTESTFLAGS)" \
+       "SHELL=$(SHELL)"
 
 # The use of $$(x_FOR_TARGET) reduces the command line length by not
 # duplicating the lengthy definition.
@@ -210,16 +211,13 @@ autoconf-common autoheader-common:
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
-               then \
-                   echo "Running autoconf in $$d ..." ; \
-                   (cd $$d && autoconf) ; \
-                   if [ $* = autoheader-common ] ; \
-                   then \
-                     echo "Running autoheader in $$d ..." ; \
-                     (cd $$d && autoheader) ; \
-                   fi ; \
-               fi ; \
+                echo "Running autoconf in $$d ..." ; \
+                (cd $$d && autoconf -l ../common) ; \
+                if [ $@ = autoheader-common ] ; \
+                then \
+                  echo "Running autoheader in $$d ..." ; \
+                  (cd $$d && autoheader -l ../common) ; \
+                fi ; \
            fi ; \
        done
 
@@ -233,20 +231,17 @@ autoconf-changelog autoheader-changelog:
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
-               then \
-                   echo "Creating new-ChangeLog in $$d ..." ; \
-                   ( echo "$$date  $$name  <$$id@$$host>" ; \
-                     echo "" ; \
-                     echo "    * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
-                     if [ $* = autoheader-changelog ] ; \
-                     then \
-                       echo "  * config.in: Ditto." ; \
-                     fi ; \
-                     echo "" ; \
-                     cat $$d/ChangeLog \
-                   ) > $$d/new-ChangeLog ; \
-               fi ; \
+                echo "Creating new-ChangeLog in $$d ..." ; \
+                ( echo "$$date  $$name  <$$id@$$host>" ; \
+                  echo "" ; \
+                  echo "       * configure: Regenerated to track ../common/aclocal.m4 changes." ; \
+                  if [ $@ = autoheader-changelog ] ; \
+                  then \
+                    echo "     * config.in: Ditto." ; \
+                  fi ; \
+                  echo "" ; \
+                  cat $$d/ChangeLog \
+                ) > $$d/new-ChangeLog ; \
            fi ; \
        done
 
@@ -255,10 +250,7 @@ autoconf-install autoheader-install:
        do \
            if [ -d $$d -a -f $$d/configure.in ] ; \
            then \
-               if grep SIM_AC_COMMON $$d/configure.in >/dev/null ; \
-               then \
-                   echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
-                   mv $$d/new-ChangeLog $$d/ChangeLog ; \
-               fi ; \
+                echo "Moving $$d/new-ChangeLog to $$d/ChangeLog ..." ; \
+                mv $$d/new-ChangeLog $$d/ChangeLog ; \
            fi ; \
        done
index fd6aae19f91f284a35208760c4cbaef1a9ded173..6f4cb2dcbb485de9df6492936a564c65d8ec921e 100644 (file)
@@ -8,6 +8,8 @@ Contents
 - TAGS support
 - Generating "configure" files
 - tconfig.in
+- C Language Assumptions
+- "dump" commands under gdb
 \f
 The "common" directory
 ======================
@@ -37,7 +39,6 @@ The configure.in of a simulator using the common framework should look like:
 
 --- snip ---
 dnl Process this file with autoconf to produce a configure script.
-sinclude(../common/aclocal.m4)
 AC_PREREQ(2.5)dnl
 AC_INIT(Makefile.in)
 
@@ -128,30 +129,30 @@ Generating "configure" files
 ============================
 
 For target's using the common framework, "configure" can be generated
-by running autoconf.  This works because configure.in contains
-"sinclude(../common/aclocal.m4)".
+by running `autoconf -l ../common'.  This will ensure that the
+qaclocal.m4 from the `common' directory is found.
 
 To regenerate the configure files for all targets using the common framework:
 
        $  cd devo/sim
-       $  make -f Makefile.in autoconf-common
+       $  make -f Makefile.in SHELL=/bin/sh autoconf-common
 
 To add a change-log entry to the ChangeLog file for each updated
 directory (WARNING - check the modified new-ChangeLog files before
 renaming):
 
-       $  make -f Makefile.in autoconf-changelog
+       $  make -f Makefile.in SHELL=/bin/sh autoconf-changelog
        $  more */new-ChangeLog
-       $  make -f Makefile.in autoconf-install
+       $  make -f Makefile.in SHELL=/bin/sh autoconf-install
 
 In a similar vein, both the configure and config.in files can be
 updated using the sequence:
 
        $  cd devo/sim
-       $  make -f Makefile.in autoheader-common
-       $  make -f Makefile.in autoheader-changelog
+       $  make -f Makefile.in SHELL=/bin/sh autoheader-common
+       $  make -f Makefile.in SHELL=/bin/sh autoheader-changelog
        $  more */new-ChangeLog
-       $  make -f Makefile.in autoheader-install
+       $  make -f Makefile.in SHELL=/bin/sh autoheader-install
 \f
 tconfig.in
 ==========
@@ -179,10 +180,47 @@ ANSI C compiler that supports a 64 bit data type.  Consequently:
 
        o       The type `unsigned' is valid.
 
-However, the user should not assume:
+However, the user should be aware of the following:
 
-       o       `<number>LL' is acceptable.  Microsoft-C
-               doesn't reconize it.
+       o       GCC's `<number>LL' is NOT acceptable.
+               Microsoft-C doesn't reconize it.
 
-       o       `long long' or `_int64' provides a 64 bit
-               integer data type.
+       o       MSC's `<number>i64' is NOT acceptable.
+               GCC doesn't reconize it.
+
+       o       GCC's `long long' MSC's `_int64' can
+               NOT be used to define 64 bit integer data
+               types.
+
+       o       An empty array (eg int a[0]) is not valid.
+
+When building with GCC it is effectivly a requirement that
+--enable-sim-warnings be specified during configuration.
+\f
+"dump" commands under gdb
+=========================
+
+gdbinit.in contains the following
+
+define dump
+set sim_debug_dump ()
+end
+
+Simulators that define the sim_debug_dump function can then have their
+internal state pretty printed from gdb.
+
+FIXME: This can obviously be made more elaborate.  As needed it will be.
+\f
+"dump" commands under gdb
+=========================
+
+gdbinit.in contains the following
+
+define dump
+set sim_debug_dump ()
+end
+
+Simulators that define the sim_debug_dump function can then have their
+internal state pretty printed from gdb.
+
+FIXME: This can obviously be made more elaborate.  As needed it will be.
This page took 0.029097 seconds and 4 git commands to generate.