config/debug/gdb.in
author "Benoît THÉBAUDEAU" <benoit.thebaudeau@advansee.com>
Wed Jun 08 15:47:43 2011 +0200 (2011-06-08)
changeset 2508 9e2761e59a75
parent 2478 91fb35743a44
child 2575 b0cc1bf3e851
permissions -rw-r--r--
debug/cross-gdb: check host dependencies

Cross-gdb depends on expat and python. If either is missing, cross-gdb will
build successfully, but lacking some features.

Especially, if expat is missing, cross-gdb will be unable to parse the target
description, which may lead to runtime malfunctions and the following GDB
warning:
"Can not parse XML target description; XML support was disabled at compile time"

Hence, expat should be considered mandatory.

On the other hand, the features missing without python are not critical, so
python should not be considered mandatory.

This patch does the following:
- At configure time, warn the user if either expat or python is missing.
- In menuconfig, disable the static build options regarding cross-gdb if no
static version of expat is available, and disable cross-gdb if expat is
missing.

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