config/debug/gdb.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Feb 17 23:47:47 2010 +0100 (2010-02-17)
changeset 1808 a1370757e6a1
parent 1743 f9145ebb4fbc
child 1809 b488b4815f9b
permissions -rw-r--r--
complibs: split-up selection for individual libs
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@96
     7
config GDB_CROSS
yann@96
     8
    bool
yann@96
     9
    prompt "Cross-gdb"
yann@96
    10
    default y
yann@850
    11
    select GDB_GDBSERVER if ! BARE_METAL
yann@96
    12
    help
yann@583
    13
      Build and install a cross-gdb for the target, to run on host.
yann@96
    14
yann@583
    15
config GDB_CROSS_STATIC
yann@457
    16
    bool
yann@457
    17
    prompt "Build a static cross gdb"
yann@457
    18
    default n
yann@457
    19
    depends on GDB_CROSS
yann@457
    20
    help
yann@457
    21
      A static cross gdb can be usefull if you debug on a machine that is
yann@583
    22
      not the one that is used to compile the toolchain.
yann@1390
    23
      
yann@583
    24
      That way, you can share the cross-gdb without installing a toolchain
yann@583
    25
      on every machine that will be used to debug target programs.
yann@583
    26
yann@821
    27
config GDB_CROSS_INSIGHT
yann@821
    28
    bool
yann@821
    29
    prompt "Use Insight instead (EXPERIMENTAL)"
yann@821
    30
    default n
yann@821
    31
    depends on GDB_CROSS
yann@821
    32
    depends on EXPERIMENTAL
yann@821
    33
    help
yann@821
    34
      If you say 'Y' here, then Insight will be used to build the cross
yann@821
    35
      debugger, instead of the plain gdb.
yann@821
    36
      
yann@821
    37
      Insight is gdb plus a TCL/TK GUI: http://sourceware.org/insight/
yann@821
    38
yann@583
    39
config GDB_NATIVE
yann@583
    40
    bool
yann@583
    41
    prompt "Native gdb"
yann@583
    42
    default n
yann@850
    43
    depends on ! BARE_METAL
yann@583
    44
    help
yann@583
    45
      Build and install a native gdb for the target, to run on the target.
yann@583
    46
yann@583
    47
config GDB_NATIVE_STATIC
yann@583
    48
    bool
yann@583
    49
    prompt "Build a static native gdb"
yann@583
    50
    default n
yann@583
    51
    depends on GDB_NATIVE
yann@583
    52
    help
yann@583
    53
      In case you have trouble with dynamic loading of shared libraries,
yann@583
    54
      you will find that a static gdb comes in handy.
yann@583
    55
yann@622
    56
config GDB_NATIVE_USE_GMP_MPFR
yann@622
    57
    bool
yann@824
    58
    prompt "Use GMP and MPFR"
yann@622
    59
    default n
yann@622
    60
    depends on GDB_NATIVE
yann@1808
    61
    select GMP
yann@1808
    62
    select MPFR
yann@1390
    63
    select COMP_LIBS_TARGET
yann@622
    64
    help
yann@622
    65
      gdb can make use of the GMP and MPFR libraries.
yann@1390
    66
      
yann@622
    67
      While the cross-gdb (above) can use the libraries compiled for the
yann@622
    68
      host, the native gdb needs the libraries for the target (where it will
yann@622
    69
      eventually run).
yann@1390
    70
      
yann@622
    71
      Setting this option will force building the GMP and MPFR libraries for
yann@622
    72
      the target, and configure the native gdb to use them.
yann@622
    73
yann@583
    74
config GDB_GDBSERVER
yann@583
    75
    bool
yann@583
    76
    prompt "gdbserver"
yann@583
    77
    default n
yann@850
    78
    depends on ! BARE_METAL
yann@583
    79
    help
yann@583
    80
      Build and install a gdbserver for the target, to run on the target.
yann@583
    81
yann@583
    82
config GDB_GDBSERVER_STATIC
yann@175
    83
    bool
yann@175
    84
    prompt "Build a static gdbserver"
yann@622
    85
    default y
yann@583
    86
    depends on GDB_GDBSERVER
yann@175
    87
    help
yann@175
    88
      In case you have trouble with dynamic loading of shared libraries,
yann@175
    89
      you will find that a static gdbserver comes in handy.
yann@175
    90
yann@1269
    91
if BARE_METAL
yann@1269
    92
comment "In bare-metal, you'll need to   "
yann@1269
    93
comment "provide your own gdbserver stub."
yann@1269
    94
endif # BARE_METAL
yann@1269
    95
yann@96
    96
choice
yann@96
    97
    bool
yann@96
    98
    prompt "gdb version"
yann@583
    99
    depends on GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER
yann@1535
   100
# Don't remove next line
yann@1535
   101
# CT_INSERT_VERSION_BELOW
yann@1534
   102
jocke@1705
   103
config GDB_V_7_0_1
jocke@1705
   104
    bool
jocke@1705
   105
    prompt "7.0.1 (EXPERIMENTAL)"
jocke@1705
   106
    depends on EXPERIMENTAL
jocke@1705
   107
yann@1612
   108
config GDB_V_7_0
yann@1612
   109
    bool
yann@1612
   110
    prompt "7.0 (EXPERIMENTAL)"
yann@1612
   111
    depends on EXPERIMENTAL
yann@1612
   112
yann@1534
   113
config GDB_V_6_8
yann@1534
   114
    bool
yann@1534
   115
    prompt "6.8"
yann@1534
   116
yann@1535
   117
config GDB_V_snapshot
yann@1535
   118
    bool
yann@1535
   119
    prompt "snapshot (EXPERIMENTAL)"
yann@1535
   120
    depends on EXPERIMENTAL
yann@1535
   121
    depends on ! GDB_CROSS_INSIGHT
yann@865
   122
yann@96
   123
endchoice
yann@96
   124
yann@96
   125
config GDB_VERSION
yann@96
   126
    string
yann@1535
   127
# Don't remove next line
yann@1535
   128
# CT_INSERT_VERSION_STRING_BELOW
jocke@1705
   129
    default "7.0.1" if GDB_V_7_0_1
yann@1612
   130
    default "7.0" if GDB_V_7_0
yann@1534
   131
    default "6.8" if GDB_V_6_8
yann@1535
   132
    default "snapshot" if GDB_V_snapshot