config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jun 20 09:56:46 2008 +0000 (2008-06-20)
changeset 596 d1651a3f42a3
parent 583 44b87fb3f0d3
child 602 1968d150a34f
permissions -rw-r--r--
Don't force building a gdbserver when only native gdb is selected.

/trunk/config/debug/gdb.in | 1 0 1 0 -
/trunk/scripts/build/debug/300-gdb.sh | 1 0 1 0 -
2 files changed, 2 deletions(-)
     1 # GDB menu
     2 
     3 menuconfig GDB
     4     bool
     5     prompt "gdb"
     6     default n
     7     help
     8       Enable gdb for the target
     9 
    10 if GDB
    11 
    12 config GDB_CROSS
    13     bool
    14     prompt "Cross-gdb"
    15     default y
    16     select GDB_GDBSERVER
    17     help
    18       Build and install a cross-gdb for the target, to run on host.
    19 
    20 config GDB_CROSS_STATIC
    21     bool
    22     prompt "Build a static cross gdb"
    23     default n
    24     depends on GDB_CROSS
    25     help
    26       A static cross gdb can be usefull if you debug on a machine that is
    27       not the one that is used to compile the toolchain.
    28 
    29       That way, you can share the cross-gdb without installing a toolchain
    30       on every machine that will be used to debug target programs.
    31 
    32 config GDB_NATIVE
    33     bool
    34     prompt "Native gdb"
    35     default n
    36     help
    37       Build and install a native gdb for the target, to run on the target.
    38 
    39 config GDB_NATIVE_STATIC
    40     bool
    41     prompt "Build a static native gdb"
    42     default n
    43     depends on GDB_NATIVE
    44     help
    45       In case you have trouble with dynamic loading of shared libraries,
    46       you will find that a static gdb comes in handy.
    47 
    48 config GDB_GDBSERVER
    49     bool
    50     prompt "gdbserver"
    51     default n
    52     help
    53       Build and install a gdbserver for the target, to run on the target.
    54 
    55 config GDB_GDBSERVER_STATIC
    56     bool
    57     prompt "Build a static gdbserver"
    58     default n
    59     depends on GDB_GDBSERVER
    60     help
    61       In case you have trouble with dynamic loading of shared libraries,
    62       you will find that a static gdbserver comes in handy.
    63 
    64 choice
    65     bool
    66     prompt "gdb version"
    67     depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
    68 
    69 config GDB_V_snapshot
    70     bool
    71     prompt "snapshot (EXPERIMENTAL)"
    72     depends on EXPERIMENTAL
    73 
    74 config GDB_V_6_4
    75     bool
    76     prompt "6.4 (OBSOLETE)"
    77     depends on OBSOLETE
    78 
    79 config GDB_V_6_5
    80     bool
    81     prompt "6.5"
    82 
    83 config GDB_V_6_6
    84     bool
    85     prompt "6.6"
    86 
    87 config GDB_V_6_7
    88     bool
    89     prompt "6.7 (EXPERIMENTAL)"
    90     depends on EXPERIMENTAL
    91 
    92 config GDB_V_6_7_1
    93     bool
    94     prompt "6.7.1 (EXPERIMENTAL)"
    95     depends on EXPERIMENTAL
    96 
    97 config GDB_V_6_8
    98     bool
    99     prompt "6.8 (EXPERIMENTAL)"
   100     depends on EXPERIMENTAL
   101 
   102 # CT_INSERT_VERSION_ABOVE
   103 # Don't remove above line!
   104 endchoice
   105 
   106 config GDB_VERSION
   107     string
   108     default "snapshot" if GDB_V_snapshot
   109     default "6.4" if GDB_V_6_4
   110     default "6.5" if GDB_V_6_5
   111     default "6.6" if GDB_V_6_6
   112     default "6.7" if GDB_V_6_7
   113     default "6.7.1" if GDB_V_6_7_1
   114     default "6.8" if GDB_V_6_8
   115 # CT_INSERT_VERSION_STRING_ABOVE
   116 # Don't remove above line!
   117 
   118 if GDB_NATIVE
   119 
   120 comment "Native gdb needs the ncurses library on the target"
   121 
   122 choice
   123     bool
   124     prompt "ncurses version"
   125 
   126 config NCURSES_V_4_2
   127     bool
   128     prompt "4.2"
   129 
   130 config NCURSES_V_5_6
   131     bool
   132     prompt "5.6"
   133 
   134 endchoice
   135 
   136 config NCURSES_VERSION
   137     string
   138     default "4.2" if NCURSES_V_4_2
   139     default "5.6" if NCURSES_V_5_6
   140 
   141 endif # GDB_NATIVE --> ncurses
   142 
   143 endif