summaryrefslogtreecommitdiff
path: root/config/debug/gdb.in
blob: 70d2ebfc35cde026ec95d9db67267c6e38360096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# GDB menu

## help gdb is the GNU debugger

source "config/debug/gdb.in.cross"
source "config/debug/gdb.in.native"
source "config/debug/gdb.in.gdbserver"

if GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER

comment "gdb version"

config GDB_CUSTOM
    bool
    prompt "Custom gdb"
    depends on EXPERIMENTAL
    select GDB_7_2_or_later
    help
      The choosen gdb version shall be not downloaded. Instead use
      a custom location to get the source.

if GDB_CUSTOM

config GDB_CUSTOM_LOCATION
    string
    prompt "Full path to custom gdb source"
    help
      Enter the path to the directory or tarball of your source for gcc.

      If the path is a tarball, it should extract to: <name>-<version>/
      where the name is this component, gcc, and the version is set
      below in the custom version string.

config GDB_CUSTOM_VERSION
    string
    prompt "Custom GDB version"
    help
      Enter the version number for your custom gdb.

config GDB_VERSION
    string
    default GDB_CUSTOM_VERSION

endif # GDB_CUSTOM

if ! GDB_CUSTOM

config DEBUG_GDB_SHOW_LINARO
    bool
    prompt "Show Linaro versions"
    help
      Linaro is maintaining some advanced/more stable/experimental versions
      of gdb, especially for the ARM architecture.

      Those versions have not been blessed by the gdb community (nor have they
      been cursed either!), but they look to be pretty much stable, and even
      more stable than the upstream versions. YMMV...

      If you do not know what this Linaro stuff is, then simply say 'n' here,
      and rest in peace. OTOH, if you know what you are doing, you will be
      able to use and enjoy :-) the Linaro versions by saying 'y' here.

      Linaro: http://www.linaro.org/

choice
    bool
    prompt "gdb version"
# Don't remove next line
# CT_INSERT_VERSION_BELOW

config GDB_V_7_10
    bool
    prompt "7.10"
    select GDB_7_2_or_later

config GDB_V_7_9_1
    bool
    prompt "7.9.1"
    select GDB_7_2_or_later

config GDB_V_7_9
    bool
    prompt "7.9"
    select GDB_7_2_or_later

config GDB_V_linaro_7_8
    bool
    prompt "linaro-7.8-2014.09"
    depends on DEBUG_GDB_SHOW_LINARO
    select GDB_7_2_or_later

config GDB_V_7_8_2
    bool
    prompt "7.8.2"
    select GDB_7_2_or_later


config GDB_V_7_8_1
    bool
    prompt "7.8.1"
    select GDB_7_2_or_later

config GDB_V_7_8
    bool
    prompt "7.8"
    select GDB_7_2_or_later

config GDB_V_7_7_1
    bool
    prompt "7.7.1"
    select GDB_7_2_or_later

config GDB_V_7_7
    bool
    prompt "7.7"
    select GDB_7_2_or_later

config GDB_V_linaro_7_6
    bool
    prompt "linaro-7.6.1-2013.10"
    depends on DEBUG_GDB_SHOW_LINARO
    select GDB_7_2_or_later

config GDB_V_7_6_1
    bool
    prompt "7.6.1"
    select GDB_7_2_or_later

config GDB_V_linaro_7_5
    bool
    prompt "linaro-7.5-2012.12-1"
    depends on DEBUG_GDB_SHOW_LINARO
    select GDB_7_2_or_later

config GDB_V_7_5_1
    bool
    prompt "7.5.1"
    select GDB_7_2_or_later

config GDB_V_linaro_7_4
    bool
    prompt "linaro-7.4-2012.06"
    depends on DEBUG_GDB_SHOW_LINARO
    select GDB_7_2_or_later

config GDB_V_7_4_1
    bool
    prompt "7.4.1"
    select GDB_7_2_or_later

config GDB_V_7_4
    bool
    prompt "7.4"
    select GDB_7_2_or_later

config GDB_V_linaro_7_3
    bool
    prompt "linaro-7.3-2011.12"
    depends on DEBUG_GDB_SHOW_LINARO
    select GDB_7_2_or_later

config GDB_V_7_3_1
    bool
    prompt "7.3.1"
    select GDB_7_2_or_later

config GDB_V_7_3a
    bool
    prompt "7.3a"
    select GDB_7_2_or_later

config GDB_V_linaro_7_2
    bool
    prompt "linaro-7.2-2011.05-0"
    depends on DEBUG_GDB_SHOW_LINARO
    select GDB_7_2_or_later

config GDB_V_7_2a
    bool
    prompt "7.2a"
    select GDB_7_2_or_later

config GDB_V_7_1a
    bool
    prompt "7.1a"
    select GDB_7_0_or_later

config GDB_V_7_0_1a
    bool
    prompt "7.0.1a"
    select GDB_7_0_or_later

config GDB_V_7_0a
    bool
    prompt "7.0a"
    select GDB_7_0_or_later

config GDB_V_6_8a
    bool
    prompt "6.8a"

endchoice

endif # ! GDB_CUSTOM

config GDB_7_2_or_later
    bool
    select GDB_7_0_or_later

config GDB_7_0_or_later
    bool
    select GDB_HAS_PKGVERSION_BUGURL
    select GDB_HAS_PYTHON
    select GDB_INSTALL_GDBINIT

config GDB_HAS_PKGVERSION_BUGURL
    bool

config GDB_HAS_PYTHON
    bool

config GDB_INSTALL_GDBINIT
    bool

if ! GDB_CUSTOM

config GDB_VERSION
    string
# Don't remove next line
# CT_INSERT_VERSION_STRING_BELOW
    default "7.10" if GDB_V_7_10
    default "7.9.1" if GDB_V_7_9_1
    default "7.9" if GDB_V_7_9
    default "7.8.2" if GDB_V_7_8_2
    default "linaro-7.8-2014.09" if GDB_V_linaro_7_8
    default "7.8.1" if GDB_V_7_8_1
    default "7.8" if GDB_V_7_8
    default "7.7.1" if GDB_V_7_7_1
    default "7.7" if GDB_V_7_7
    default "linaro-7.6.1-2013.10" if GDB_V_linaro_7_6
    default "7.6.1" if GDB_V_7_6_1
    default "linaro-7.5-2012.12-1" if GDB_V_linaro_7_5
    default "7.5.1" if GDB_V_7_5_1
    default "linaro-7.4-2012.06" if GDB_V_linaro_7_4
    default "7.4.1" if GDB_V_7_4_1
    default "7.4" if GDB_V_7_4
    default "linaro-7.3-2011.12" if GDB_V_linaro_7_3
    default "7.3.1" if GDB_V_7_3_1
    default "7.3a" if GDB_V_7_3a
    default "linaro-7.2-2011.05-0" if GDB_V_linaro_7_2_2011_05_0
    default "7.2a" if GDB_V_7_2a
    default "7.1a" if GDB_V_7_1a
    default "7.0.1a" if GDB_V_7_0_1a
    default "7.0a" if GDB_V_7_0a
    default "6.8a" if GDB_V_6_8a

endif # ! GDB_CUSTOM

endif # GDB_CROSS || GDB_NATIVE || GDB_GDBSERVER