config/debug/gdb.in
author Cody Schafer <dev@codyps.com>
Fri May 09 19:08:00 2014 -0700 (2014-05-09)
changeset 3309 06b78d44d1a0
parent 3286 daf6ef6eef4d
permissions -rw-r--r--
debug/gdb: simplify the dependency logic

Signed-off-by: Cody P Schafer <dev@codyps.com>
Message-Id: <1d9659fcf6a9c7694ad2.1399687691@localhost>
Patchwork-Id: 347583
     1 # GDB menu
     2 
     3 ## help gdb is the GNU debugger
     4 
     5 source "config/debug/gdb.in.cross"
     6 source "config/debug/gdb.in.native"
     7 source "config/debug/gdb.in.gdbserver"
     8 
     9 if GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    10 
    11 comment "gdb version"
    12 
    13 config DEBUG_GDB_SHOW_LINARO
    14     bool
    15     prompt "Show Linaro versions"
    16     help
    17       Linaro is maintaining some advanced/more stable/experimental versions
    18       of gdb, especially for the ARM architecture.
    19 
    20       Those versions have not been blessed by the gdb community (nor have they
    21       been cursed either!), but they look to be pretty much stable, and even
    22       more stable than the upstream versions. YMMV...
    23 
    24       If you do not know what this Linaro stuff is, then simply say 'n' here,
    25       and rest in peace. OTOH, if you know what you are doing, you will be
    26       able to use and enjoy :-) the Linaro versions by saying 'y' here.
    27 
    28       Linaro: http://www.linaro.org/
    29 
    30 choice
    31     bool
    32     prompt "gdb version"
    33 # Don't remove next line
    34 # CT_INSERT_VERSION_BELOW
    35 
    36 config GDB_V_7_7
    37     bool
    38     prompt "7.7"
    39     select GDB_7_0_or_later
    40     select GDB_7_2_or_later
    41 
    42 config GDB_V_7_6_1
    43     bool
    44     prompt "7.6.1"
    45     select GDB_7_2_or_later
    46 
    47 config GDB_V_linaro_7_6_2013_05
    48     bool
    49     prompt "linaro-7.6-2013.05"
    50     depends on DEBUG_GDB_SHOW_LINARO
    51     select GDB_7_2_or_later
    52 
    53 config GDB_V_7_5_1
    54     bool
    55     prompt "7.5.1"
    56     select GDB_7_2_or_later
    57 
    58 config GDB_V_linaro_7_5_2012_12_1
    59     bool
    60     prompt "linaro-7.5-2012.12-1"
    61     depends on DEBUG_GDB_SHOW_LINARO
    62     select GDB_7_2_or_later
    63 
    64 config GDB_V_linaro_7_4_2012_06
    65     bool
    66     prompt "linaro-7.4-2012.06"
    67     depends on DEBUG_GDB_SHOW_LINARO
    68     select GDB_7_2_or_later
    69 
    70 config GDB_V_7_4_1
    71     bool
    72     prompt "7.4.1"
    73     select GDB_7_2_or_later
    74 
    75 config GDB_V_7_4
    76     bool
    77     prompt "7.4"
    78     select GDB_7_2_or_later
    79 
    80 config GDB_V_linaro_7_3_2011_12
    81     bool
    82     prompt "linaro-7.3-2011.12"
    83     depends on DEBUG_GDB_SHOW_LINARO
    84     select GDB_7_2_or_later
    85 
    86 config GDB_V_7_3_1
    87     bool
    88     prompt "7.3.1"
    89     select GDB_7_2_or_later
    90 
    91 config GDB_V_7_3a
    92     bool
    93     prompt "7.3a"
    94     select GDB_7_2_or_later
    95 
    96 config GDB_V_linaro_7_2_2011_05_0
    97     bool
    98     prompt "linaro-7.2-2011.05-0"
    99     depends on DEBUG_GDB_SHOW_LINARO
   100     select GDB_7_2_or_later
   101 
   102 config GDB_V_7_2a
   103     bool
   104     prompt "7.2a"
   105     select GDB_7_2_or_later
   106 
   107 config GDB_V_7_1a
   108     bool
   109     prompt "7.1a"
   110     select GDB_7_0_or_later
   111 
   112 config GDB_V_7_0_1a
   113     bool
   114     prompt "7.0.1a"
   115     select GDB_7_0_or_later
   116 
   117 config GDB_V_7_0a
   118     bool
   119     prompt "7.0a"
   120     select GDB_7_0_or_later
   121 
   122 config GDB_V_6_8a
   123     bool
   124     prompt "6.8a"
   125 
   126 config GDB_CUSTOM
   127     bool
   128     prompt "Custom gdb"
   129     depends on EXPERIMENTAL
   130     select GDB_7_2_or_later
   131 
   132 endchoice
   133 
   134 config GDB_7_2_or_later
   135     bool
   136     select GDB_7_0_or_later
   137 
   138 config GDB_7_0_or_later
   139     bool
   140     select GDB_HAS_PKGVERSION_BUGURL
   141     select GDB_INSTALL_GDBINIT
   142 
   143 config GDB_HAS_PKGVERSION_BUGURL
   144     bool
   145 
   146 config GDB_INSTALL_GDBINIT
   147     bool
   148 
   149 config GDB_VERSION
   150     string
   151 # Don't remove next line
   152 # CT_INSERT_VERSION_STRING_BELOW
   153     default "7.7" if GDB_V_7_7
   154     default "7.6.1" if GDB_V_7_6_1
   155     default "linaro-7.6-2013.05" if GDB_V_linaro_7_6_2013_05
   156     default "7.5.1" if GDB_V_7_5_1
   157     default "linaro-7.5-2012.12-1" if GDB_V_linaro_7_5_2012_12_1
   158     default "linaro-7.4-2012.06" if GDB_V_linaro_7_4_2012_06
   159     default "7.4.1" if GDB_V_7_4_1
   160     default "7.4" if GDB_V_7_4
   161     default "linaro-7.3-2011.12" if GDB_V_linaro_7_3_2011_12
   162     default "7.3.1" if GDB_V_7_3_1
   163     default "7.3a" if GDB_V_7_3a
   164     default "linaro-7.2-2011.05-0" if GDB_V_linaro_7_2_2011_05_0
   165     default "7.2a" if GDB_V_7_2a
   166     default "7.1a" if GDB_V_7_1a
   167     default "7.0.1a" if GDB_V_7_0_1a
   168     default "7.0a" if GDB_V_7_0a
   169     default "6.8a" if GDB_V_6_8a
   170     default "custom" if GDB_CUSTOM
   171 
   172 if GDB_CUSTOM
   173 
   174 config GDB_CUSTOM_LOCATION
   175     string
   176     prompt "Full path to custom gdb source"
   177     default ""
   178     help
   179       Enter the path to the directory (or tarball) of your source for gdb,
   180       or leave blank to use default CT_CUSTOM_LOCATION_ROOT_DIR/gdb
   181 
   182 endif # GDB_CUSTOM
   183 
   184 endif
   185