aboutsummaryrefslogtreecommitdiff
path: root/sim/common/aclocal.m4
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2004-12-07 23:37:35 +0000
committerHans-Peter Nilsson <hp@axis.com>2004-12-07 23:37:35 +0000
commit119860e5112d7f826a9b64532dec4aad72edf17b (patch)
tree28ecdecb44dd9cf3df35187f5eba0e3286b1da0b /sim/common/aclocal.m4
parent18b05eb7a5fcb2ad724535f1a14c089030530c0d (diff)
downloadgdb-119860e5112d7f826a9b64532dec4aad72edf17b.zip
gdb-119860e5112d7f826a9b64532dec4aad72edf17b.tar.gz
gdb-119860e5112d7f826a9b64532dec4aad72edf17b.tar.bz2
* 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.
Diffstat (limited to 'sim/common/aclocal.m4')
-rw-r--r--sim/common/aclocal.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/sim/common/aclocal.m4 b/sim/common/aclocal.m4
index 20c72ff..578658c 100644
--- a/sim/common/aclocal.m4
+++ b/sim/common/aclocal.m4
@@ -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*)