summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-11-18 08:22:52 (GMT)
committerZhenqiang Chen <zhenqiang.chen@linaro.org>2011-11-18 08:22:52 (GMT)
commit145d048e582d2ea41a56e63141ac6c7b74443c75 (patch)
tree97e1c0fe733da0de49e99b2c17ecde07f84281b8
parent067467bb18fad62a1adc3386d4716ea27762edcc (diff)
debug/gdb: --disable-sim for CT_GDB_CROSS.
sim was already disabled for CT_GDB_NATIVE. Reviewed-by: Michael Hope Signed-off-by: Zhenqiang Chen <zhenqiang.chen@linaro.org> [yann.morin.1998@anciens.enib.fr: make it a config option] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
-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=