# HG changeset patch # User Zhenqiang Chen # Date 1321604572 -28800 # Node ID 7723b8457efaaecc95bfc205fd007a221739d539 # Parent 6a7dfa57d63ab9e4aaf77a5d5eec16ed0d7a5d43 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 [yann.morin.1998@anciens.enib.fr: make it a config option] Signed-off-by: "Yann E. MORIN" diff -r 6a7dfa57d63a -r 7723b8457efa config/debug/gdb.in.cross --- a/config/debug/gdb.in.cross Sun Jan 29 11:42:30 2012 +0100 +++ b/config/debug/gdb.in.cross Fri Nov 18 16:22:52 2011 +0800 @@ -24,6 +24,15 @@ 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 -r 6a7dfa57d63a -r 7723b8457efa scripts/build/debug/300-gdb.sh --- a/scripts/build/debug/300-gdb.sh Sun Jan 29 11:42:30 2012 +0100 +++ b/scripts/build/debug/300-gdb.sh Fri Nov 18 16:22:52 2011 +0800 @@ -123,6 +123,11 @@ 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=