config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 22 23:49:23 2010 +0200 (2010-06-22)
changeset 1992 eebcaff6626f
parent 1874 712cdb6504aa
child 2168 974179cae714
permissions -rw-r--r--
scripts/wrapper: fix wrong test when checking access to the reall tool

In C, the proper syntax for a bit-wise OR is a single '|', not two.

It worked so far because all was well:
- X_OK == 1
- R_OK||X_OK == 1
- the file we searched for had the x-bit set
-> access( file, R_OK||X_OK ) worked
- inicidentally, the file we searched for also had the r-bit set,
but we were not testing that in fact.
yann@96
     1
# GDB menu
yann@96
     2
yann@916
     3
config DEBUG_gdb
yann@96
     4
    help
yann@96
     5
      Enable gdb for the target
yann@96
     6
yann@1849
     7
source "config/debug/gdb.in.cross"
yann@1849
     8
source "config/debug/gdb.in.native"
yann@1849
     9
source "config/debug/gdb.in.gdbserver"
yann@1269
    10
yann@96
    11
choice
yann@96
    12
    bool
yann@96
    13
    prompt "gdb version"
yann@583
    14
    depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
yann@1535
    15
# Don't remove next line
yann@1535
    16
# CT_INSERT_VERSION_BELOW
yann@1534
    17
yann@1874
    18
config GDB_V_7_1
yann@1874
    19
    bool
yann@1874
    20
    prompt "7.1 (EXPERIMENTAL)"
yann@1874
    21
    depends on EXPERIMENTAL
yann@1874
    22
    select GDB_7_0_or_later
yann@1874
    23
jocke@1705
    24
config GDB_V_7_0_1
jocke@1705
    25
    bool
jocke@1705
    26
    prompt "7.0.1 (EXPERIMENTAL)"
jocke@1705
    27
    depends on EXPERIMENTAL
yann@1852
    28
    select GDB_7_0_or_later
jocke@1705
    29
yann@1612
    30
config GDB_V_7_0
yann@1612
    31
    bool
yann@1612
    32
    prompt "7.0 (EXPERIMENTAL)"
yann@1612
    33
    depends on EXPERIMENTAL
yann@1852
    34
    select GDB_7_0_or_later
yann@1612
    35
yann@1534
    36
config GDB_V_6_8
yann@1534
    37
    bool
yann@1534
    38
    prompt "6.8"
yann@1534
    39
yann@96
    40
endchoice
yann@96
    41
yann@1852
    42
config GDB_7_0_or_later
yann@1852
    43
    bool
yann@1852
    44
yann@96
    45
config GDB_VERSION
yann@96
    46
    string
yann@1535
    47
# Don't remove next line
yann@1535
    48
# CT_INSERT_VERSION_STRING_BELOW
yann@1874
    49
    default "7.1" if GDB_V_7_1
jocke@1705
    50
    default "7.0.1" if GDB_V_7_0_1
yann@1612
    51
    default "7.0" if GDB_V_7_0
yann@1534
    52
    default "6.8" if GDB_V_6_8