* aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
authorHans-Peter Nilsson <hp@axis.com>
Tue, 7 Dec 2004 23:37:35 +0000 (23:37 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Tue, 7 Dec 2004 23:37:35 +0000 (23:37 +0000)
cgen_rtx_error" in a CGEN-generated simulator.
* gdbinit.in: Break on sim_core_signal too.  Have autoconf
replacement for CGEN-related breakpoints.

sim/common/ChangeLog
sim/common/aclocal.m4
sim/common/gdbinit.in

index 418fa109989b8ebf5d8d7c509e3eccf96c9e4d80..a046a96631e4e47e0443f6baab61d41fa8dc22d4 100644 (file)
@@ -1,3 +1,10 @@
+2004-12-08  Hans-Peter Nilsson  <hp@axis.com>
+
+       * aclocal.m4 (SIM_AC_OUTPUT): Substitute @cgen_breaks@ for "break
+       cgen_rtx_error" in a CGEN-generated simulator.
+       * gdbinit.in: Break on sim_core_signal too.  Have autoconf
+       replacement for CGEN-related breakpoints.
+
 2004-12-07  Hans-Peter Nilsson  <hp@axis.com>
 
        * Make-common.in (sim-basics_h): Add $(callback_h).
index 20c72ffe156b6cb48a855ecca3767c756640f3a2..578658ccaf5af09e8cd4145e35199f8e2af0c43c 100644 (file)
@@ -861,6 +861,12 @@ dnl the target's fragment at the appropriate points.
 AC_DEFUN(SIM_AC_OUTPUT,
 [
 AC_LINK_FILES($sim_link_files, $sim_link_links)
+dnl Make @cgen_breaks@ non-null only if the sim uses CGEN.
+cgen_breaks=""
+if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
+cgen_breaks="break cgen_rtx_error";
+fi
+AC_SUBST(cgen_breaks)
 AC_OUTPUT(Makefile.sim:Makefile.in Make-common.sim:../common/Make-common.in .gdbinit:../common/gdbinit.in,
 [case "x$CONFIG_FILES" in
  xMakefile*)
index ddda344a2e3777f7f51b6ce94f7ebc1e94a4744f..ab9d7b3d548117e2e13cea62a376a7b52d0b1df5 100644 (file)
@@ -1,4 +1,6 @@
 break sim_io_error
+break sim_core_signal
+@cgen_breaks@
 
 define dump
 set sim_debug_dump ()
This page took 0.029894 seconds and 4 git commands to generate.