config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jul 12 23:52:24 2011 +0200 (2011-07-12)
branch1.11
changeset 2558 b7317d2fe0e9
parent 2418 f530baf5098e
child 2444 896cb0d36c1a
permissions -rw-r--r--
scripts, cc/gcc: do not fail on existing symlinks or build.log

If the user builds a toolchain over an existing one, so, without removing
CT_PREFIX_DIR, the build fails as the symlinks already exist, as does the
build.log.

This can also happen (for build.log) if the user first ran in download-
or extract-only.

Patch (with no SoB) originally from:
Phil Wilshire <phil.wilshire@overturenetworks.com>

Modified by me as it did not apply cleanly.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 1ebc2248cc60230cd53ff94ae8f8f1e3261461a3)
     1 # GDB menu
     2 
     3 config DEBUG_gdb
     4     help
     5       Enable gdb for the target
     6 
     7 source "config/debug/gdb.in.cross"
     8 source "config/debug/gdb.in.native"
     9 source "config/debug/gdb.in.gdbserver"
    10 
    11 if GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    12 
    13 comment "gdb version"
    14 
    15 config DEBUG_GDB_SHOW_LINARO
    16     bool
    17     prompt "Show Linaro versions (EXPERIMENTAL)"
    18     depends on EXPERIMENTAL
    19     help
    20       Linaro is maintaining some advanced/more stable/experimental versions
    21       of gdb, especially for the ARM architecture.
    22 
    23       Those versions have not been blessed by the gdb community (nor have they
    24       been cursed either!), but they look to be pretty much stable, and even
    25       more stable than the upstream versions. YMMV...
    26 
    27       If you do not know what this Linaro stuff is, then simply say 'n' here,
    28       and rest in peace. OTOH, if you know what you are doing, you will be
    29       able to use and enjoy :-) the Linaro versions by saying 'y' here.
    30 
    31       Linaro: http://www.linaro.org/
    32 
    33 choice
    34     bool
    35     prompt "gdb version"
    36 # Don't remove next line
    37 # CT_INSERT_VERSION_BELOW
    38 
    39 config GDB_V_linaro_7_2_2011_04_0
    40     bool
    41     prompt "linaro-7.2-2011.04-0 (EXPERIMENTAL)"
    42     depends on DEBUG_GDB_SHOW_LINARO
    43     select GDB_7_0_or_later
    44 
    45 config GDB_V_7_2
    46     bool
    47     prompt "7.2 (EXPERIMENTAL)"
    48     depends on EXPERIMENTAL
    49     select GDB_7_0_or_later
    50 
    51 config GDB_V_7_1
    52     bool
    53     prompt "7.1 (EXPERIMENTAL)"
    54     depends on EXPERIMENTAL
    55     select GDB_7_0_or_later
    56 
    57 config GDB_V_7_0_1
    58     bool
    59     prompt "7.0.1 (EXPERIMENTAL)"
    60     depends on EXPERIMENTAL
    61     select GDB_7_0_or_later
    62 
    63 config GDB_V_7_0
    64     bool
    65     prompt "7.0 (EXPERIMENTAL)"
    66     depends on EXPERIMENTAL
    67     select GDB_7_0_or_later
    68 
    69 config GDB_V_6_8
    70     bool
    71     prompt "6.8"
    72 
    73 endchoice
    74 
    75 config GDB_7_0_or_later
    76     bool
    77 
    78 config GDB_VERSION
    79     string
    80 # Don't remove next line
    81 # CT_INSERT_VERSION_STRING_BELOW
    82     default "linaro-7.2-2011.04-0" if GDB_V_linaro_7_2_2011_04_0
    83     default "7.2" if GDB_V_7_2
    84     default "7.1" if GDB_V_7_1
    85     default "7.0.1" if GDB_V_7_0_1
    86     default "7.0" if GDB_V_7_0
    87     default "6.8" if GDB_V_6_8
    88 
    89 endif