debug/gdb: --disable-sim for CT_GDB_CROSS.
authorZhenqiang Chen <zhenqiang.chen@linaro.org>
Fri Nov 18 16:22:52 2011 +0800 (2011-11-18)
changeset 28567723b8457efa
parent 2855 6a7dfa57d63a
child 2857 e974315d1e4c
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>
config/debug/gdb.in.cross
scripts/build/debug/300-gdb.sh
     1.1 --- a/config/debug/gdb.in.cross	Sun Jan 29 11:42:30 2012 +0100
     1.2 +++ b/config/debug/gdb.in.cross	Fri Nov 18 16:22:52 2011 +0800
     1.3 @@ -24,6 +24,15 @@
     1.4        That way, you can share the cross-gdb without installing a toolchain
     1.5        on every machine that will be used to debug target programs.
     1.6  
     1.7 +config GDB_CROSS_SIM
     1.8 +    bool
     1.9 +    prompt "Enable 'sim'"
    1.10 +    depends on EXPERIMENTAL
    1.11 +    help
    1.12 +      Say 'y' here if you want to build the 'sim' emulator.
    1.13 +      You probably don't want it, unless you are building for bare-metal.
    1.14 +      The default is 'n'.
    1.15 +
    1.16  config GDB_CROSS_PYTHON
    1.17      bool
    1.18      prompt "Enable python scripting"
     2.1 --- a/scripts/build/debug/300-gdb.sh	Sun Jan 29 11:42:30 2012 +0100
     2.2 +++ b/scripts/build/debug/300-gdb.sh	Fri Nov 18 16:22:52 2011 +0800
     2.3 @@ -123,6 +123,11 @@
     2.4          else
     2.5              cross_extra_config+=( "--with-python=no" )
     2.6          fi
     2.7 +        if [ "${CT_GDB_CROSS_SIM}" = "y" ]; then
     2.8 +            cross_extra_config+=( "--enable-sim" )
     2.9 +        else
    2.10 +            cross_extra_config+=( "--disable-sim" )
    2.11 +        fi
    2.12  
    2.13          CC_for_gdb=
    2.14          LD_for_gdb=