aboutsummaryrefslogtreecommitdiff
path: root/sim/h8300
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2021-06-06 20:35:02 -0400
committerMike Frysinger <vapier@gentoo.org>2021-06-12 20:07:57 -0400
commit04381273a9ea0cf30575d58983287cd950b3e166 (patch)
treec58e24e6afe011ffca7403f18ff41f9740dcf4a4 /sim/h8300
parent497a20bd3b7f7bffac5cdc7ae03e768cf92a04fd (diff)
downloadgdb-04381273a9ea0cf30575d58983287cd950b3e166.zip
gdb-04381273a9ea0cf30575d58983287cd950b3e166.tar.gz
gdb-04381273a9ea0cf30575d58983287cd950b3e166.tar.bz2
sim: unify debug/stdio/trace/profile build settings
Move these options up to the common dir so we only test & export them once across all ports. The ppc code needs a little extra care with its trace settings as it's not exactly the same API as the common code. The other knobs are the same though.
Diffstat (limited to 'sim/h8300')
-rw-r--r--sim/h8300/config.in18
-rwxr-xr-xsim/h8300/configure134
2 files changed, 2 insertions, 150 deletions
diff --git a/sim/h8300/config.in b/sim/h8300/config.in
index b21bf7c..29d1fe2 100644
--- a/sim/h8300/config.in
+++ b/sim/h8300/config.in
@@ -3,9 +3,6 @@
/* Define if building universal (internal helper macro) */
#undef AC_APPLE_UNIVERSAL_BUILD
-/* Sim debug setting */
-#undef DEBUG
-
/* Define to 1 if translation of program messages to the user's native
language is requested. */
#undef ENABLE_NLS
@@ -83,9 +80,6 @@
/* Additional package description */
#undef PKGVERSION
-/* Sim profile settings */
-#undef PROFILE
-
/* Bug reporting address */
#undef REPORT_BUGS_TO
@@ -114,18 +108,6 @@
#endif
-/* Sim debug setting */
-#undef WITH_DEBUG
-
-/* Sim profile settings */
-#undef WITH_PROFILE
-
-/* How to route I/O */
-#undef WITH_STDIO
-
-/* Sim trace settings */
-#undef WITH_TRACE
-
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
diff --git a/sim/h8300/configure b/sim/h8300/configure
index 17b0435..9caaf0a 100755
--- a/sim/h8300/configure
+++ b/sim/h8300/configure
@@ -771,10 +771,6 @@ enable_fast_install
with_gnu_ld
enable_libtool_lock
enable_maintainer_mode
-enable_sim_debug
-enable_sim_stdio
-enable_sim_trace
-enable_sim_profile
enable_sim_inline
with_pkgversion
with_bugurl
@@ -1420,13 +1416,6 @@ Optional Features:
--enable-maintainer-mode
enable make rules and dependencies not useful (and
sometimes confusing) to the casual installer
- --enable-sim-debug=opts Enable debugging flags (for developers of the sim
- itself)
- --enable-sim-stdio Specify whether to use stdio for console
- input/output
- --enable-sim-trace=opts Enable tracing of simulated programs
- --enable-sim-profile=opts
- Enable profiling flags
--enable-sim-inline=inlines
Specify which functions should be inlined
--enable-sim-endian=endian
@@ -10778,7 +10767,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10781 "configure"
+#line 10770 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -10884,7 +10873,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF
-#line 10887 "configure"
+#line 10876 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
@@ -11124,8 +11113,6 @@ CC="$lt_save_CC"
-
-
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
# Check whether --enable-maintainer-mode was given.
@@ -11150,123 +11137,6 @@ fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
-$as_echo_n "checking for sim debug setting... " >&6; }
-sim_debug="0"
-# Check whether --enable-sim-debug was given.
-if test "${enable_sim_debug+set}" = set; then :
- enableval=$enable_sim_debug; case "${enableval}" in
- yes) sim_debug="7";;
- no) sim_debug="0";;
- *) sim_debug="($enableval)";;
-esac
-fi
-if test "$sim_debug" != "0"; then
-
-cat >>confdefs.h <<_ACEOF
-#define DEBUG $sim_debug
-_ACEOF
-
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define WITH_DEBUG $sim_debug
-_ACEOF
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
-$as_echo "$sim_debug" >&6; }
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
-$as_echo_n "checking for sim stdio debug behavior... " >&6; }
-sim_stdio="0"
-# Check whether --enable-sim-stdio was given.
-if test "${enable_sim_stdio+set}" = set; then :
- enableval=$enable_sim_stdio; case "${enableval}" in
- yes) sim_stdio="DO_USE_STDIO";;
- no) sim_stdio="DONT_USE_STDIO";;
- *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
-esac
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define WITH_STDIO $sim_stdio
-_ACEOF
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
-$as_echo "$sim_stdio" >&6; }
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
-$as_echo_n "checking for sim trace settings... " >&6; }
-sim_trace="~TRACE_debug"
-# Check whether --enable-sim-trace was given.
-if test "${enable_sim_trace+set}" = set; then :
- enableval=$enable_sim_trace; case "${enableval}" in
- yes) sim_trace="-1";;
- no) sim_trace="0";;
- [-0-9]*)
- sim_trace="'(${enableval})'";;
- [[:lower:]]*)
- sim_trace=""
- for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
- if test x"$sim_trace" = x; then
- sim_trace="(TRACE_$x"
- else
- sim_trace="${sim_trace}|TRACE_$x"
- fi
- done
- sim_trace="$sim_trace)" ;;
-esac
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define WITH_TRACE $sim_trace
-_ACEOF
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
-$as_echo "$sim_trace" >&6; }
-
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
-$as_echo_n "checking for sim profile settings... " >&6; }
-profile="1"
-sim_profile="-1"
-# Check whether --enable-sim-profile was given.
-if test "${enable_sim_profile+set}" = set; then :
- enableval=$enable_sim_profile; case "${enableval}" in
- yes) profile="1" sim_profile="-1";;
- no) profile="0" sim_profile="0";;
- [-0-9]*)
- profile="(${enableval})" sim_profile="(${enableval})";;
- [a-z]*)
- profile="1"
- sim_profile=""
- for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
- if test x"$sim_profile" = x; then
- sim_profile="(PROFILE_$x"
- else
- sim_profile="${sim_profile}|PROFILE_$x"
- fi
- done
- sim_profile="$sim_profile)" ;;
-esac
-fi
-
-cat >>confdefs.h <<_ACEOF
-#define PROFILE $profile
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define WITH_PROFILE $sim_profile
-_ACEOF
-
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
-$as_echo "$sim_profile" >&6; }
-
-
-
sim_inline="-DDEFAULT_INLINE=0"
# Check whether --enable-sim-inline was given.
if test "${enable_sim_inline+set}" = set; then :