summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/debug/gdb.in.cross9
-rw-r--r--scripts/build/debug/300-gdb.sh5
2 files changed, 14 insertions, 0 deletions
diff --git a/config/debug/gdb.in.cross b/config/debug/gdb.in.cross
index dc5a131..7e1fe75 100644
--- a/config/debug/gdb.in.cross
+++ b/config/debug/gdb.in.cross
@@ -24,6 +24,15 @@ config GDB_CROSS_STATIC
That way, you can share the cross-gdb without installing a toolchain
on every machine that will be used to debug target programs.
+config GDB_CROSS_SIM
+ bool
+ prompt "Enable 'sim'"
+ depends on EXPERIMENTAL
+ help
+ Say 'y' here if you want to build the 'sim' emulator.
+ You probably don't want it, unless you are building for bare-metal.
+ The default is 'n'.
+
config GDB_CROSS_PYTHON
bool
prompt "Enable python scripting"
diff --git a/scripts/build/debug/300-gdb.sh b/scripts/build/debug/300-gdb.sh
index 23f20dd..d0f532f 100644
--- a/scripts/build/debug/300-gdb.sh
+++ b/scripts/build/debug/300-gdb.sh
@@ -123,6 +123,11 @@ do_debug_gdb_build() {
else
cross_extra_config+=( "--with-python=no" )
fi
+ if [ "${CT_GDB_CROSS_SIM}" = "y" ]; then
+ cross_extra_config+=( "--enable-sim" )
+ else
+ cross_extra_config+=( "--disable-sim" )
+ fi
CC_for_gdb=
LD_for_gdb=