gdb: Convert language skip_trampoline field to a method
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language_data): Delete skip_trampoline
4 initializer.
5 * c-lang.c (c_language_data): Likewise.
6 (cplus_language_data): Likewise.
7 (cplus_language::skip_trampoline): New member function.
8 (asm_language_data): Delete skip_trampoline initializer.
9 (minimal_language_data): Likewise.
10 * d-lang.c (d_language_data): Likewise.
11 * f-lang.c (f_language_data): Likewise.
12 * go-lang.c (go_language_data): Likewise.
13 * language.c (unk_lang_trampoline): Delete function.
14 (skip_language_trampoline): Update.
15 (unknown_language_data): Delete skip_trampoline initializer.
16 (auto_language_data): Likewise.
17 * language.h (language_data): Delete skip_trampoline field.
18 (language_defn::skip_trampoline): New function.
19 * m2-lang.c (m2_language_data): Delete skip_trampoline
20 initializer.
21 * objc-lang.c (objc_skip_trampoline): Delete function, move
22 implementation to objc_language::skip_trampoline.
23 (objc_language_data): Delete skip_trampoline initializer.
24 (objc_language::skip_trampoline): New member function with
25 implementation from objc_skip_trampoline.
26 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
27 initializer.
28 * p-lang.c (pascal_language_data): Likewise.
29 * rust-lang.c (rust_language_data): Likewise.
30
31 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
32
33 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
34 (ada_language::demangle): New member function.
35 * c-lang.c (c_language_data): Delete la_demangle initializer.
36 (cplus_language_data): Delete la_demangle initializer.
37 (cplus_language::demangle): New member function.
38 (asm_language_data): Delete la_demangle initializer.
39 (minimal_language_data): Delete la_demangle initializer.
40 * d-lang.c (d_language_data): Delete la_demangle initializer.
41 (d_language::demangle): New member function.
42 * f-lang.c (f_language_data): Delete la_demangle initializer.
43 (f_language::demangle): New member function.
44 * go-lang.c (go_language_data): Delete la_demangle initializer.
45 (go_language::demangle): New member function.
46 * language.c (language_demangle): Update.
47 (unk_lang_demangle): Delete.
48 (unknown_language_data): Delete la_demangle initializer.
49 (unknown_language::demangle): New member function.
50 (auto_language_data): Delete la_demangle initializer.
51 (auto_language::demangle): New member function.
52 * language.h (language_data): Delete la_demangle field.
53 (language_defn::demangle): New function.
54 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
55 * objc-lang.c (objc_language_data): Delete la_demangle
56 initializer.
57 (objc_language::demangle): New member function.
58 * opencl-lang.c (opencl_language_data): Delete la_demangle
59 initializer.
60 * p-lang.c (pascal_language_data): Likewise.
61 * rust-lang.c (rust_language_data): Likewise.
62 (rust_language::demangle): New member function.
63
64 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * ada-lang.c (ada_language_data): Delete la_print_type
67 initializer.
68 (ada_language::print_type): New member function.
69 * c-lang.c (c_language_data): Delete la_print_type initializer.
70 (c_language::print_type): New member function.
71 (cplus_language_data): Delete la_print_type initializer.
72 (cplus_language::print_type): New member function.
73 (asm_language_data): Delete la_print_type initializer.
74 (asm_language::print_type): New member function.
75 (minimal_language_data): Delete la_print_type initializer.
76 (minimal_language::print_type): New member function.
77 * d-lang.c (d_language_data): Delete la_print_type initializer.
78 (d_language::print_type): New member function.
79 * f-lang.c (f_language_data): Delete la_print_type initializer.
80 (f_language::print_type): New member function.
81 * go-lang.c (go_language_data): Delete la_print_type initializer.
82 (go_language::print_type): New member function.
83 * language.c (unk_lang_print_type): Delete.
84 (unknown_language_data): Delete la_print_type initializer.
85 (unknown_language::print_type): New member function.
86 (auto_language_data): Delete la_print_type initializer.
87 (auto_language::print_type): New member function.
88 * language.h (language_data): Delete la_print_type field.
89 (language_defn::print_type): New function.
90 (LA_PRINT_TYPE): Update.
91 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
92 (m2_language::print_type): New member function.
93 * objc-lang.c (objc_language_data): Delete la_print_type
94 initializer.
95 (objc_language::print_type): New member function.
96 * opencl-lang.c (opencl_print_type): Delete, implementation moved
97 to opencl_language::print_type.
98 (opencl_language_data): Delete la_print_type initializer.
99 (opencl_language::print_type): New member function, implementation
100 from opencl_print_type.
101 * p-lang.c (pascal_language_data): Delete la_print_type
102 initializer.
103 (pascal_language::print_type): New member function.
104 * rust-lang.c (rust_print_type): Delete, implementation moved to
105 rust_language::print_type.
106 (rust_language_data): Delete la_print_type initializer.
107 (rust_language::print_type): New member function, implementation
108 from rust_print_type.
109
110 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
113 implementation moves to...
114 (ada_language::sniff_from_mangled_name): ...here. Update return
115 type.
116 (ada_language_data): Delete la_sniff_from_mangled_name
117 initializer.
118 * c-lang.c (c_language_data): Likewise.
119 (cplus_language_data): Likewise.
120 (cplus_language::sniff_from_mangled_name): New member function,
121 implementation taken from gdb_sniff_from_mangled_name.
122 (asm_language_data): Delete la_sniff_from_mangled_name
123 initializer.
124 (minimal_language_data): Likewise.
125 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
126 implementation moves to cplus_language::sniff_from_mangled_name.
127 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
128 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
129 moves to...
130 (d_language::sniff_from_mangled_name): ...here.
131 (d_language_data): Delete la_sniff_from_mangled_name initializer.
132 * f-lang.c (f_language_data): Likewise.
133 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
134 moves to...
135 (go_language::sniff_from_mangled_name): ...here.
136 (go_language_data): Delete la_sniff_from_mangled_name initializer.
137 * language.c (language_sniff_from_mangled_name): Delete.
138 (unknown_language_data): Delete la_sniff_from_mangled_name
139 initializer.
140 (auto_language_data): Likewise.
141 * language.h (language_data): Delete la_sniff_from_mangled_name
142 field.
143 (language_defn::sniff_from_mangled_name): New function.
144 (language_sniff_from_mangled_name): Delete declaration.
145 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
146 field.
147 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
148 implementation moves to...
149 (objc_language::sniff_from_mangled_name): ...here.
150 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
151 * opencl-lang.c (opencl_language_data): Likewise.
152 * p-lang.c (pascal_language_data): Likewise.
153 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
154 implementation moves to...
155 (rust_language::sniff_from_mangled_name): ...here.
156 (rust_language_data): Delete la_sniff_from_mangled_name
157 initializer.
158 * symtab.c (symbol_find_demangled_name): Call
159 sniff_from_mangled_name member function.
160
161 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
162
163 * ada-lang.c (ada_language_data): Delete la_search_name_hash
164 initializer.
165 * c-lang.c (c_language_data): Likewise.
166 (cplus_language_data): Likewise.
167 (cplus_language::search_name_hash): New member function.
168 (asm_language_data): Delete la_search_name_hash initializer.
169 (minimal_language_data): Likewise.
170 * d-lang.c (d_language_data): Likewise.
171 * dictionary.c (default_search_name_hash): Rename to...
172 (language_defn::search_name_hash): ...this.
173 * f-lang.c (f_language_data): Likewise.
174 (f_language::search_name_hash): New member function.
175 * go-lang.c (go_language_data): Delete la_search_name_hash
176 initializer.
177 * language.c (unknown_language_data): Likewise.
178 (auto_language_data): Likewise.
179 * language.h (struct language_data): Delete la_search_name_hash
180 field.
181 (language_defn::search_name_hash): Declare new member function.
182 (default_search_name_hash): Delete declaration.
183 * m2-lang.c (m2_language_data): Delete la_search_name_hash
184 initializer.
185 * objc-lang.c (objc_language_data): Likewise.
186 * opencl-lang.c (opencl_language_data): Likewise.
187 * p-lang.c (pascal_language_data): Likewise.
188 * rust-lang.c (rust_language_data): Likewise.
189 * symtab.c (search_name_hash): Update call.
190
191 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
192
193 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
194 initializer.
195 * c-lang.c (class compile_instance): Declare.
196 (c_language_data): Delete la_get_compile_instance initializer.
197 (c_language::get_compile_instance): New member function.
198 (cplus_language_data): Delete la_get_compile_instance initializer.
199 (cplus_language::get_compile_instance): New member function.
200 (asm_language_data): Delete la_get_compile_instance initializer.
201 (minimal_language_data): Likewise.
202 * c-lang.h (c_get_compile_context): Update comment.
203 (cplus_get_compile_context): Update comment.
204 * compile/compile.c (compile_to_object): Update calls, don't rely
205 on function pointer being NULL.
206 * d-lang.c (d_language_data): Delete la_get_compile_instance
207 initializer.
208 * f-lang.c (f_language_data): Likewise.
209 * go-lang.c (go_language_data): Likewise.
210 * language.c (unknown_language_data): Likewise.
211 (auto_language_data): Likewise.
212 * language.h (language_data): Delete la_get_compile_instance field.
213 (language_defn::get_compile_instance): New member function.
214 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
215 initializer.
216 * objc-lang.c (objc_language_data): Likewise.
217 * opencl-lang.c (opencl_language_data): Likewise.
218 * p-lang.c (pascal_language_data): Likewise.
219 * rust-lang.c (rust_language_data): Likewise.
220
221 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
222
223 * ada-lang.c (ada_add_all_symbols): Update comment.
224 (ada_iterate_over_symbols): Delete, move implementation to...
225 (ada_language::iterate_over_symbols): ...here, a new member
226 function, rewrite to use range based for loop.
227 (ada_language_data): Delete la_iterate_over_symbols initializer.
228 * c-lang.c (c_language_data): Likewise.
229 (cplus_language_data): Likewise.
230 (asm_language_data): Likewise.
231 (minimal_language_data): Likewise.
232 * d-lang.c (d_language_data): Likewise.
233 * f-lang.c (f_language_data): Likewise.
234 * go-lang.c (go_language_data): Likewise.
235 * language.c (unknown_language_data): Likewise.
236 (auto_language_data): Likewise.
237 * language.h (language_data): Delete la_iterate_over_symbols field.
238 (language_defn::iterate_over_symbols): New member function.
239 (LA_ITERATE_OVER_SYMBOLS): Update.
240 * linespec.c (iterate_over_all_matching_symtabs): Update.
241 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
242 initializer.
243 * objc-lang.c (objc_language_data): Likewise.
244 * opencl-lang.c (opencl_language_data): Likewise.
245 * p-lang.c (pascal_language_data): Likewise.
246 * rust-lang.c (rust_language_data): Likewise.
247
248 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
249
250 * ada-lang.c (ada_language_data): Delete
251 la_lookup_transparent_type initializer.
252 * c-lang.c (c_language_data): Likewise.
253 (cplus_language_data): Likewise.
254 (cplus_language::lookup_transparent_type): New member function.
255 (asm_language_data): Delete la_lookup_transparent_type
256 initializer.
257 (minimal_language_data): Likewise.
258 * d-lang.c (d_language_data): Likewise.
259 * f-lang.c (f_language_data): Likewise.
260 * go-lang.c (go_language_data): Likewise.
261 * language.c (unknown_language_data): Likewise.
262 (auto_language_data): Likewise.
263 * language.h (struct language_data): Delete
264 la_lookup_transparent_type field.
265 (language_defn::lookup_transparent_type): New member function.
266 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
267 initializer.
268 * objc-lang.c (objc_language_data): Likewise.
269 * opencl-lang.c (opencl_language_data): Likewise.
270 * p-lang.c (pascal_language_data): Likewise.
271 * rust-lang.c (rust_language_data): Likewise.
272 * symtab.c (symbol_matches_domain): Update call.
273
274 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
275
276 * ada-lang.c (ada_language_arch_info): Delete function, move
277 implementation to...
278 (ada_language::language_arch_info): ...here, a new member
279 function.
280 (ada_language_data): Delete la_language_arch_info.
281 * c-lang.c (c_language_data): Likewise.
282 (c_language::language_arch_info): New member function.
283 (cplus_language_arch_info): Delete function, move
284 implementation to...
285 (cplus_language::language_arch_info): ...here, a new member
286 function.
287 (cplus_language_data): Delete la_language_arch_info.
288 (asm_language_data): Likewise.
289 (asm_language::language_arch_info): New member function.
290 (minimal_language_data): Delete la_language_arch_info.
291 (minimal_language::language_arch_info): New member function.
292 * d-lang.c (d_language_arch_info): Delete function, move
293 implementation to...
294 (d_language::language_arch_info): ...here, a new member
295 function.
296 (d_language_data): Delete la_language_arch_info.
297 * f-lang.c (f_language_arch_info): Delete function, move
298 implementation to...
299 (f_language::language_arch_info): ...here, a new member
300 function.
301 (f_language_data): Delete la_language_arch_info.
302 * go-lang.c (go_language_arch_info): Delete function, move
303 implementation to...
304 (go_language::language_arch_info): ...here, a new member
305 function.
306 (go_language_data): Delete la_language_arch_info.
307 * language.c (unknown_language_data): Likewise.
308 (unknown_language::language_arch_info): New member function.
309 (auto_language_data): Delete la_language_arch_info.
310 (auto_language::language_arch_info): New member function.
311 (language_gdbarch_post_init): Update call to
312 la_language_arch_info.
313 * language.h (language_data): Delete la_language_arch_info
314 function pointer.
315 (language_defn::language_arch_info): New function.
316 * m2-lang.c (m2_language_arch_info): Delete function, move
317 implementation to...
318 (m2_language::language_arch_info): ...here, a new member
319 function.
320 (m2_language_data): Delete la_language_arch_info.
321 * objc-lang.c (objc_language_arch_info): Delete function, move
322 implementation to...
323 (objc_language::language_arch_info): ...here, a new member
324 function.
325 (objc_language_data): Delete la_language_arch_info.
326 * opencl-lang.c (opencl_language_arch_info): Delete function, move
327 implementation to...
328 (opencl_language::language_arch_info): ...here, a new member
329 function.
330 (opencl_language_data): Delete la_language_arch_info.
331 * p-lang.c (pascal_language_arch_info): Delete function, move
332 implementation to...
333 (pascal_language::language_arch_info): ...here, a new member
334 function.
335 (pascal_language_data): Delete la_language_arch_info.
336 * rust-lang.c (rust_language_arch_info): Delete function, move
337 implementation to...
338 (rust_language::language_arch_info): ...here, a new member
339 function.
340 (rust_language_data): Delete la_language_arch_info.
341
342 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
343
344 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
345 initializer.
346 * c-lang.c (c_language_data): Likewise.
347 (cplus_language_data): Likewise.
348 (cplus_language::pass_by_reference_info): New method.
349 (asm_language_data): Delete la_pass_by_reference initializer.
350 (minimal_language_data): Likewise.
351 * cp-abi.c (cp_pass_by_reference): Remove use of
352 default_pass_by_reference.
353 * d-lang.c (d_language_data): Likewise.
354 * f-lang.c (f_language_data): Likewise.
355 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
356 default_pass_by_reference.
357 * go-lang.c (go_language_data): Likewise.
358 * language.c (language_pass_by_reference): Update.
359 (default_pass_by_reference): Delete.
360 (unknown_language_data): Delete la_pass_by_reference
361 initializer.
362 (auto_language_data): Likewise.
363 * language.h (struct language_data): Delete la_pass_by_reference
364 field.
365 (language_defn::pass_by_reference_info): New member function.
366 (default_pass_by_reference): Delete declaration.
367 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
368 initializer.
369 * objc-lang.c (objc_language_data): Likewise.
370 * opencl-lang.c (opencl_language_data): Likewise.
371 * p-lang.c (pascal_language_data): Likewise.
372 * rust-lang.c (rust_language_data): Likewise.
373
374 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * ada-lang.c (ada_read_var_value): Delete function, move
377 implementation to...
378 (ada_language::read_var_value): ...here.
379 (ada_language_data): Delete la_read_var_value initializer.
380 * c-lang.c (c_language_data): Likewise.
381 (cplus_language_data): Likewise.
382 (minimal_language_data): Likewise.
383 * d-lang.c (d_language_data): Likewise.
384 * f-lang.c (f_language_data): Likewise.
385 * findvar.c (default_read_var_value): Rename to...
386 (language_defn::read_var_value): ...this.
387 * findvar.c (read_var_value): Update header comment, and change to
388 call member function instead of function pointer.
389 * go-lang.c (go_language_data): Likewise.
390 * language.c (unknown_language_data): Delete la_read_var_value
391 initializer.
392 (auto_language_data): Likewise.
393 * language.h (struct language_data): Delete la_read_var_value
394 field.
395 (language_defn::read_var_value): New member function.
396 (default_read_var_value): Delete declaration.
397 * m2-lang.c (m2_language_data): Delete la_read_var_value
398 initializer.
399 * objc-lang.c (objc_language_data): Likewise.
400 * opencl-lang.c (opencl_language_data): Likewise.
401 * p-lang.c (pascal_language_data): Likewise.
402 * rust-lang.c (rust_language_data): Likewise.
403 * value.h (default_read_var_value): Delete declaration.
404
405 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * ada-lang.c (ada_print_array_index): Delete function, move
408 implementation to...
409 (ada_language::print_array_index): ...here.
410 (ada_language_data): Delete la_print_array_index initializer.
411 * c-lang.c (c_language_data): Likewise.
412 (cplus_language_data): Likewise.
413 (minimal_language_data): Likewise.
414 * d-lang.c (d_language_data): Likewise.
415 * f-lang.c (f_language_data): Likewise.
416 * go-lang.c (go_language_data): Likewise.
417 * language.c (default_print_array_index): Delete function, move
418 implementation to...
419 (language_defn::print_array_index): ...here.
420 (unknown_language_data): Delete la_print_array_index initializer.
421 (auto_language_data): Likewise.
422 * language.h (struct language_data): Delete la_print_array_index
423 field.
424 (language_defn::print_array_index): New member function.
425 (LA_PRINT_ARRAY_INDEX): Update.
426 (default_print_array_index): Delete declaration.
427 * m2-lang.c (m2_language_data): Delete la_print_array_index
428 initializer.
429 * objc-lang.c (objc_language_data): Likewise.
430 * opencl-lang.c (opencl_language_data): Likewise.
431 * p-lang.c (pascal_language_data): Likewise.
432 * rust-lang.c (rust_language_data): Likewise.
433
434 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
435
436 * gdb/ada-lang.c (ada_language_defn): Convert to...
437 (ada_language_data): ...this.
438 (class ada_language): New class.
439 (ada_language_defn): New static global.
440 * gdb/c-lang.c (c_language_defn): Convert to...
441 (c_language_data): ...this.
442 (class c_language): New class.
443 (c_language_defn): New static global.
444 (cplus_language_defn): Convert to...
445 (cplus_language_data): ...this.
446 (class cplus_language): New class.
447 (cplus_language_defn): New static global.
448 (asm_language_defn): Convert to...
449 (asm_language_data): ...this.
450 (class asm_language): New class.
451 (asm_language_defn): New static global.
452 (minimal_language_defn): Convert to...
453 (minimal_language_data): ...this.
454 (class minimal_language): New class.
455 (minimal_language_defn): New static global.
456 * gdb/d-lang.c (d_language_defn): Convert to...
457 (d_language_data): ...this.
458 (class d_language): New class.
459 (d_language_defn): New static global.
460 * gdb/f-lang.c (f_language_defn): Convert to...
461 (f_language_data): ...this.
462 (class f_language): New class.
463 (f_language_defn): New static global.
464 * gdb/go-lang.c (go_language_defn): Convert to...
465 (go_language_data): ...this.
466 (class go_language): New class.
467 (go_language_defn): New static global.
468 * gdb/language.c (unknown_language_defn): Remove declaration.
469 (current_language): Initialize to nullptr, real initialization is
470 moved to _initialize_language.
471 (languages): Delete global.
472 (language_defn::languages): Define.
473 (set_language_command): Use language_defn::languages.
474 (set_language): Likewise.
475 (range_error): Likewise.
476 (language_enum): Likewise.
477 (language_def): Likewise.
478 (add_set_language_command): Use language_def::languages for the
479 language list, and language_def to lookup language pointers.
480 (skip_language_trampoline): Use language_defn::languages.
481 (unknown_language_defn): Convert to...
482 (unknown_language_data): ...this.
483 (class unknown_language): New class.
484 (unknown_language_defn): New static global.
485 (auto_language_defn): Convert to...
486 (auto_language_data): ...this.
487 (class auto_language): New class.
488 (auto_language_defn): New static global.
489 (language_gdbarch_post_init): Use language_defn::languages.
490 (_initialize_language): Initialize current_language.
491 * gdb/language.h (struct language_defn): Rename to...
492 (struct language_data): ...this.
493 (struct language_defn): New.
494 (auto_language_defn): Delete.
495 (unknown_language_defn): Delete.
496 (minimal_language_defn): Delete.
497 (ada_language_defn): Delete.
498 (asm_language_defn): Delete.
499 (c_language_defn): Delete.
500 (cplus_language_defn): Delete.
501 (d_language_defn): Delete.
502 (f_language_defn): Delete.
503 (go_language_defn): Delete.
504 (m2_language_defn): Delete.
505 (objc_language_defn): Delete.
506 (opencl_language_defn): Delete.
507 (pascal_language_defn): Delete.
508 (rust_language_defn): Delete.
509 * gdb/m2-lang.c (m2_language_defn): Convert to...
510 (m2_language_data): ...this.
511 (class m2_language): New class.
512 (m2_language_defn): New static global.
513 * gdb/objc-lang.c (objc_language_defn): Convert to...
514 (objc_language_data): ...this.
515 (class objc_language): New class.
516 (objc_language_defn): New static global.
517 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
518 (opencl_language_data): ...this.
519 (class opencl_language): New class.
520 (opencl_language_defn): New static global.
521 * gdb/p-lang.c (pascal_language_defn): Convert to...
522 (pascal_language_data): ...this.
523 (class pascal_language): New class.
524 (pascal_language_defn): New static global.
525 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
526 language pointer, update comment format.
527 * gdb/rust-lang.c (rust_language_defn): Convert to...
528 (rust_language_data): ...this.
529 (class rust_language): New class.
530 (rust_language_defn): New static global.
531
532 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
535 member variable.
536 <m_stmt_at_address>: New member variable.
537 (lnp_state_machine::record_line): Don't record some lines, update
538 tracking of is_stmt at the same address.
539 (lnp_state_machine::lnp_state_machine): Initialise new member
540 variables.
541
542 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
543
544 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
545 "-include gnu-nat-mig.h".
546 * gnu-nat-mig.h: New file.
547 * gnu-nat.c: Include "gnu-nat-mig.h".
548 (exc_server, msg_reply_server, notify_server,
549 process_reply_server): Remove declarations.
550
551 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
552
553 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
554 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
555 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
556 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
557 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
558 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
559 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
560 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
561 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
562 to gnu_nat_target class.
563 * gnu-nat.c: Likewise.
564 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
565 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
566 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
567 object.
568 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
569 instead of `gnu_target'.
570
571 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
572
573 * i386-gnu-tdep.c: Include "gdbcore.h"
574 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
575 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
576 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
577 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
578 i386_gnu_sigcontext_addr): New functions
579 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
580 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
581 tdep.
582
583 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
584
585 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
586 before fork_inferior call. Avoid calling it if target_is_pushed returns
587 true.
588
589 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
590
591 * gnu-nat.h (gnu_target): New variable declaration.
592 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
593 gnu_target.
594 * gnu-nat.c (gnu_target): New variable.
595 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
596 add_thread_silent, and add_thread calls.
597 (gnu_nat_target::create_inferior): Pass gnu_target to
598 add_thread_silent, thread_change_ptid call.
599 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
600 call.
601
602 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
603
604 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
605 (gnu_nat_target::find_memory_regions): Remove unused
606 `old_address' variable.
607
608 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
609
610 * gnu-nat.c: Include "gdbarch.h".
611
612 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
613
614 * reply_mig_hack.awk (Error return): Cast function through
615 void *, to bypass compiler function call check.
616
617 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
618
619 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
620 $(srcdir)/reply_mig_hack.awk.
621
622 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
623
624 * gnu-nat.h (gnu_debug_flag): Set type to bool.
625
626 2020-05-30 Jonny Grant <jg@jguk.org>
627
628 * configure.ac (ACX_BUGURL): change bug URL to https.
629
630 2020-05-30 Pedro Alves <palves@redhat.com>
631
632 * cp-support.c (replace_typedefs_template): New.
633 (replace_typedefs_qualified_name): Handle
634 DEMANGLE_COMPONENT_TEMPLATE.
635
636 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
637
638 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
639 dwarf2/index-cache.h, dwarf2/index-write.c,
640 dwarf2/index-write.h, dwarf2/line-header.c,
641 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
642 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
643 variables and fields from `dwarf2_per_objfile` to just
644 `per_objfile` throughout.
645
646 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
647
648 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
649 <push_dwarf_reg_entry_value>: Add comment.
650
651 2020-05-28 Kevin Buettner <kevinb@redhat.com>
652 Keith Seitz <keiths@redhat.com>
653
654 * python/python.c (do_start_initialization): Call PyEval_SaveThread
655 instead of PyEval_ReleaseLock.
656 (class gdbpy_gil): Move to earlier in file.
657 (finalize_python): Set gdb_python_initialized.
658 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
659 when not initialized.
660
661 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
662
663 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
664 <push_dwarf_reg_entry_value>: Remove assert. Override
665 per_objfile with caller_per_objfile.
666
667 2020-05-28 Tom de Vries <tdevries@suse.de>
668
669 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
670 PR gold/15646 workaround to symbol kind "type".
671
672 2020-05-27 Tom Tromey <tromey@adacore.com>
673
674 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
675
676 2020-05-27 Tom Tromey <tromey@adacore.com>
677
678 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
679 Use htab_find_with_hash.
680 <add_abbrev>: Remove "abbrev_number" parameter.
681 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
682 "abbrev_number" parameter. Use htab_find_slot_with_hash.
683 (hash_abbrev): Add comment.
684 (abbrev_table::lookup_abbrev): Move to header file.
685 (abbrev_table::read): Update.
686
687 2020-05-27 Tom Tromey <tromey@adacore.com>
688
689 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
690 method.
691 <canonical_name>: New member.
692 <raw_name>: Rename from "name".
693 (partial_die_info): Initialize canonical_name.
694 (scan_partial_symbols): Check raw_name.
695 (partial_die_parent_scope, partial_die_full_name)
696 (add_partial_symbol, add_partial_subprogram)
697 (add_partial_enumeration, load_partial_dies): Use "name" method.
698 (partial_die_info::name): New method.
699 (partial_die_info::read, guess_partial_die_structure_name)
700 (partial_die_info::fixup): Update.
701
702 2020-05-27 Tom Tromey <tromey@adacore.com>
703
704 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
705 <get_ref_die_offset>: Inline.
706 <get_ref_die_offset_complaint>: New method.
707 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
708 (attribute::get_ref_die_offset_complaint): Rename from
709 get_ref_die_offset. Just issue complaint.
710
711 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
712
713 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
714
715 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
716
717 * exec.c (exec_file_attach): Use errno value of first openp failure.
718
719 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
720
721 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
722 Don't close thread handle.
723
724 2020-05-27 Tom Tromey <tom@tromey.com>
725 Simon Marchi <simon.marchi@efficios.com>
726
727 * objfiles.h (struct objfile) <partial_symtabs>: Now a
728 shared_ptr.
729 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
730 member.
731 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
732 dwarf2_per_bfd_objfile_data_key>: New globals.
733 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
734 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
735 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
736 shared.
737 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
738 short-circuit when sharing.
739 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
740 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
741
742 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
743
744 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
745 to...
746 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
747 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
748
749 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
750
751 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
752 build_name_components, find_name_components_bounds>:
753 Add per_objfile parameter.
754 (struct mapped_index) <symbol_name_at>: Likewise.
755 (struct mapped_debug_names): Remove constructor.
756 <dwarf2_per_objfile>: Remove field.
757 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
758 (mapped_index_base::find_name_components_bounds,
759 mapped_index_base::build_name_components,
760 dw2_expand_symtabs_matching_symbol): Likewise.
761 (class mock_mapped_index) <symbol_name_at>: Likewise.
762 (check_match): Likewise.
763 (check_find_bounds_finds): Likewise.
764 (test_mapped_index_find_name_component_bounds): Update.
765 (CHECK_MATCH): Update.
766 (dw2_expand_symtabs_matching): Update.
767 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
768 per_objfile parameter.
769 <find_vec_in_debug_names>: Likewise.
770 <m_per_objfile>: New field.
771 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
772 parameter.
773 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
774 (dw2_debug_names_iterator::next): Update.
775 (dw2_debug_names_lookup_symbol): Update.
776 (dw2_debug_names_expand_symtabs_for_function): Update.
777 (dw2_debug_names_map_matching_symbols): Update.
778 (dw2_debug_names_expand_symtabs_matching): Update.
779 (dwarf2_read_debug_names): Update.
780
781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
782
783 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
784 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
785 move to dwarf2_per_objfile.
786 <read_in_chain>: Remove.
787 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
788 remove_all_cus, age_comp_units>: New methods.
789 <m_dwarf2_cus>: New member.
790 (struct dwarf2_per_cu_data) <cu>: Remove.
791 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
792 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
793 moved to methods of dwarf2_per_objfile.
794 (dwarf2_clear_marks): Remove.
795 (dwarf2_queue_item::~dwarf2_queue_item): Update.
796 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
797 (dwarf2_per_bfd::free_cached_comp_units): Remove.
798 (dwarf2_per_objfile::remove_all_cus): New.
799 (class free_cached_comp_units) <~free_cached_comp_units>:
800 Update.
801 (load_cu): Update.
802 (dw2_do_instantiate_symtab): Adjust.
803 (fill_in_sig_entry_from_dwo_entry): Adjust.
804 (cutu_reader::init_tu_and_read_dwo_dies): Update.
805 (cutu_reader::cutu_reader): Likewise.
806 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
807 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
808 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
809 and dwarf2_per_objfile::age_comp_units.
810 (load_partial_comp_unit): Update.
811 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
812 (process_queue): Likewise.
813 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
814 backlink.
815 (dwarf2_read_addr_index): Likewise.
816 (follow_die_offset): Likewise.
817 (dwarf2_fetch_die_loc_sect_off): Likewise.
818 (dwarf2_fetch_constant_bytes): Likewise.
819 (dwarf2_fetch_die_type_sect_off): Likewise.
820 (follow_die_sig_1): Likewise.
821 (load_full_type_unit): Likewise.
822 (read_signatured_type): Likewise.
823 (dwarf2_cu::dwarf2_cu): Don't set cu field.
824 (dwarf2_cu::~dwarf2_cu): Remove.
825 (dwarf2_per_objfile::get_cu): New.
826 (dwarf2_per_objfile::set_cu): New.
827 (age_cached_comp_units): Rename to...
828 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
829 to std::unordered_map.
830 (free_one_cached_comp_unit): Rename to...
831 (dwarf2_per_objfile::remove_cu): ... this. Adjust
832 to std::unordered_map.
833 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
834 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
835 a dwarf2_per_objfile in data.
836 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
837 (dwarf2_clear_marks): Remove.
838
839 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
840
841 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
842 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
843 (init_tu_and_read_dwo_dies): Likewise.
844 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
845 (cutu_reader::cutu_reader): Likewise.
846 (load_partial_comp_unit): Likewise.
847 (process_psymtab_comp_unit): Update.
848 (build_type_psymtabs_1): Update.
849 (process_skeletonless_type_unit): Update.
850 (load_full_comp_unit): Update.
851 (find_partial_die): Update.
852 (dwarf2_read_addr_index): Update.
853 (read_signatured_type): Update.
854
855 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
856
857 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
858 m_header_read_in>: New fields.
859 <get_header>: New method.
860 * dwarf2/read.c (per_cu_header_read_in): Remove.
861 (dwarf2_per_cu_data::get_header): New.
862 (dwarf2_per_cu_data::addr_size): Update.
863 (dwarf2_per_cu_data::offset_size): Update.
864 (dwarf2_per_cu_data::ref_addr_size): Update.
865
866 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
867
868 * dwarf2/read.c (load_cu): Return dwarf2_cu.
869 (dw2_do_instantiate_symtab): Update.
870 (queue_and_load_all_dwo_tus): Change parameter from
871 dwarf2_per_cu_data to dwarf2_cu.
872 (dwarf2_fetch_die_loc_sect_off): Update.
873 (dwarf2_fetch_constant_bytes): Update.
874 (dwarf2_fetch_die_type_sect_off): Update.
875
876 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
877
878 * dwarf2/read.c (process_full_comp_unit,
879 process_full_type_unit): Remove per_cu, per_objfile paramters.
880 Add dwarf2_cu parameter.
881 (process_queue): Update.
882
883 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
884
885 * dwarf2/read.c (create_cu_from_index_list): Replace
886 dwarf2_per_objfile parameter with dwarf2_per_bfd.
887 (create_cus_from_index_list): Likewise.
888 (create_cus_from_index): Likewise.
889 (create_signatured_type_table_from_index): Likewise.
890 (create_cus_from_debug_names_list): Likewise.
891 (create_cus_from_debug_names): Likewise.
892 (dwarf2_read_gdb_index): Update.
893 (dwarf2_read_debug_names): Update.
894
895 2020-05-27 Tom Tromey <tom@tromey.com>
896 Simon Marchi <simon.marchi@efficios.com>
897
898 * dwarf2/read.h (struct dwarf2_per_objfile)
899 <get_type_for_signatured_type, set_type_for_signatured_type>:
900 New methods.
901 <m_type_map>: New member.
902 (struct signatured_type) <type>: Remove.
903 * dwarf2/read.c
904 (dwarf2_per_objfile::get_type_for_signatured_type,
905 dwarf2_per_objfile::set_type_for_signatured_type): New.
906 (get_signatured_type): Use new methods.
907
908 2020-05-27 Tom Tromey <tom@tromey.com>
909 Simon Marchi <simon.marchi@efficios.com>
910
911 * dwarf2/read.h (struct type_unit_group_unshareable): New.
912 (struct dwarf2_per_objfile) <type_units>: New member.
913 <get_type_unit_group_unshareable>: New method.
914 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
915 num_symtabs, symtabs>: Remove; move to
916 type_unit_group_unshareable.
917 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
918 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
919 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
920
921 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
922
923 * dwarf2/read.h (struct dwarf2_per_cu_data):
924 <dwarf2_per_objfile>: Remove.
925 * dwarf2/read.c (create_cu_from_index_list): Don't assign
926 dwarf2_per_objfile.
927 (create_signatured_type_table_from_index): Likewise.
928 (create_signatured_type_table_from_debug_names): Likewise.
929 (create_debug_type_hash_table): Likewise.
930 (fill_in_sig_entry_from_dwo_entry): Likewise.
931 (create_type_unit_group): Likewise.
932 (read_comp_units_from_section): Likewise.
933 (create_cus_hash_table): Likewise.
934
935 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
936
937 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
938 dwarf2_per_cu_data::dwarf2_per_objfile.
939 (compute_compunit_symtab_includes): Likewise.
940 (dwarf2_cu::start_symtab): Likewise.
941
942 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
943
944 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
945 parameter.
946 * dwarf2/read.c (get_die_type_at_offset): Likewise.
947 (read_namespace_alias): Update.
948 (lookup_die_type): Update.
949 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
950 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
951 Update.
952 (disassemble_dwarf_expression): Update.
953
954 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
955
956 * dwarf2/read.h (struct dwarf2_queue_item): Add
957 dwarf2_per_objfile parameter, assign new parameter.
958 <per_objfile>: New field.
959 * dwarf2/read.c (free_one_cached_comp_unit): Add
960 dwarf2_per_objfile parameter.
961 (queue_comp_unit): Likewise.
962 (dw2_do_instantiate_symtab): Update.
963 (process_psymtab_comp_unit): Update.
964 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
965 (process_imported_unit_die): Update.
966 (queue_and_load_dwo_tu): Update.
967 (follow_die_offset): Update.
968 (follow_die_sig_1): Update.
969
970 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
971
972 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
973 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
974 (read_call_site_scope): Assign per_objfile.
975 (dwarf2_per_cu_data::objfile): Remove.
976 * gdbtypes.h (struct call_site) <per_objfile>: New member.
977 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
978 dwarf2_per_objfile parameter.
979 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
980 dwarf2_per_objfile parameter.
981 (dwarf_expr_reg_to_entry_parameter): Add output
982 dwarf2_per_objfile parameter.
983 (locexpr_get_frame_base): Update.
984 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
985 <push_dwarf_reg_entry_value>: Update.
986 <call_site_to_target_addr>: Update.
987 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
988 parameter.
989 (value_of_dwarf_reg_entry): Update.
990 (rw_pieced_value): Update.
991 (indirect_synthetic_pointer): Update.
992 (dwarf2_evaluate_property): Update.
993 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
994 parameter.
995 (locexpr_read_variable): Update.
996 (locexpr_get_symbol_read_needs): Update.
997 (loclist_read_variable): Update.
998
999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1000
1001 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
1002 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1003 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1004 parameter.
1005 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
1006 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
1007 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
1008 parameter.
1009 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
1010 sect_variable_value): Add dwarf2_per_objfile parameter.
1011 (class dwarf_evaluate_loc_desc) <dwarf_call,
1012 dwarf_variable_value>: Update.
1013 (fetch_const_value_from_synthetic_pointer): Add
1014 dwarf2_per_objfile parameter.
1015 (fetch_const_value_from_synthetic_pointer): Update.
1016 (coerced_pieced_ref): Update.
1017 (class symbol_needs_eval_context) <dwarf_call,
1018 dwarf_variable_value>: Update.
1019 (dwarf2_compile_expr_to_ax): Update.
1020
1021 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1022
1023 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
1024 parameter.
1025 (dwarf2_evaluate_loc_desc_full): Update.
1026
1027 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
1030 parameter.
1031 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
1032 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
1033 dwarf2_per_objfile parameter.
1034 (decode_debug_loc_dwo_addresses): Likewise.
1035 (dwarf2_find_location_expression): Update.
1036 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
1037 (locexpr_describe_location_piece): Add dwarf2_per_objfile
1038 parameter.
1039 (disassemble_dwarf_expression): Add dwarf2_per_objfile
1040 parameter.
1041 (locexpr_describe_location_1): Likewise.
1042 (locexpr_describe_location): Update.
1043
1044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1045
1046 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
1047 Remove.
1048 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
1049 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
1050 (dwarf2_compile_property_to_c): Update.
1051 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
1052 use text offset from objfile.
1053 (locexpr_tracepoint_var_ref): Update.
1054 (locexpr_generate_c_location): Update.
1055 (loclist_describe_location): Update.
1056 (loclist_tracepoint_var_ref): Update.
1057 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
1058 dwarf2_per_objfile parameter.
1059 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
1060 use text offset from objfile.
1061 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
1062
1063 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1064
1065 * dwarf2/expr.h (struct dwarf_expr_context)
1066 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
1067 <offset>: Remove.
1068 <per_objfile>: New member.
1069 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
1070 dwarf2_per_objfile parameter. Don't set offset, set
1071 per_objfile.
1072 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
1073 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
1074 a dwarf2_per_objfile object instead of an offset.
1075 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
1076 constructor.
1077 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
1078 to dwarf2_expr_executor constructor. Don't set offset.
1079 (dwarf2_fetch_cfa_info): Update.
1080 (struct dwarf2_frame_cache) <text_offset>: Remove.
1081 <per_objfile>: New field.
1082 (dwarf2_frame_cache): Update.
1083 (dwarf2_frame_prev_register): Update.
1084 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
1085 <dwarf_evaluate_loc_desc>: Add constructor.
1086 (dwarf2_evaluate_loc_desc_full): Update.
1087 (dwarf2_locexpr_baton_eval): Update.
1088 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
1089 Add constructor.
1090 (dwarf2_loc_desc_get_symbol_read_needs): Update.
1091
1092 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1093
1094 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
1095 addr_sized_int_type>: Move to dwarf2_cu.
1096 <int_type>: Move to dwarf2_per_objfile.
1097 (struct dwarf2_per_objfile) <int_type>: Move here.
1098 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
1099 addr_sized_int_type>: Move here.
1100 (read_func_scope): Update.
1101 (read_array_type): Update.
1102 (read_tag_string_type): Update.
1103 (attr_to_dynamic_prop): Update.
1104 (dwarf2_per_cu_data::int_type): Rename to...
1105 (dwarf2_per_objfile::int_type): ... this.
1106 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
1107 (dwarf2_cu::addr_sized_int_type): ... this.
1108 (read_subrange_type): Update.
1109 (dwarf2_per_cu_data::addr_type): Rename to...
1110 (dwarf2_cu::addr_type): ... this.
1111 (set_die_type): Update.
1112
1113 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1114
1115 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
1116 data through per_cu->cu.
1117
1118 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1119
1120 * dwarf2/read.c (lookup_dwo_comp_unit): Change
1121 dwarf2_per_cu_data parameter fo dwarf2_cu.
1122 (lookup_dwo_type_unit): Likewise.
1123 (read_cutu_die_from_dwo): Likewise.
1124 (lookup_dwo_unit): Likewise.
1125 (open_and_init_dwo_file): Likewise.
1126 (lookup_dwo_cutu): Likewise.
1127 (lookup_dwo_comp_unit): Likewise.
1128 (lookup_dwo_type_unit): Likewise.
1129 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1130 (cutu_reader::cutu_reader): Update.
1131
1132 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1133
1134 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
1135 parameter.
1136 (process_full_type_unit): Likewise.
1137 (process_queue): Update.
1138
1139 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1140
1141 * dwarf2/read.c (recursively_compute_inclusions): Add
1142 dwarf2_per_objfile parameter.
1143 (compute_compunit_symtab_includes): Likewise.
1144 (process_cu_includes): Update.
1145
1146 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1147
1148 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
1149 parameter.
1150 (create_type_unit_group): Update.
1151 (process_psymtab_comp_unit_reader): Update.
1152 (build_type_psymtabs_reader): Update.
1153
1154 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
1157 object through m_this_cu->cu.
1158
1159 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
1162 the info parameter.
1163 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
1164
1165 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1166
1167 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
1168 per_objfile parameter.
1169 (load_full_type_unit): Add per_objfile parameter.
1170 (read_signatured_type): Likewise.
1171 (load_full_comp_unit): Likewise.
1172 (load_cu): Likewise.
1173 (dw2_do_instantiate_symtab): Likewise.
1174 (dw2_get_file_names): Likewise.
1175 (dw2_map_symtabs_matching_filename): Update.
1176 (dw_expand_symtabs_matching_file_matcher): Update.
1177 (dw2_map_symbol_filenames): Update.
1178 (process_psymtab_comp_unit): Add per_objfile parameter.
1179 (build_type_psymtabs_1): Update.
1180 (process_skeletonless_type_unit): Update.
1181 (dwarf2_build_psymtabs_hard): Update.
1182 (load_partial_comp_unit): Add per_objfile parameter.
1183 (scan_partial_symbols): Update.
1184 (load_full_comp_unit): Add per_objfile parameter.
1185 (process_imported_unit_die): Update.
1186 (create_cus_hash_table): Update.
1187 (find_partial_die): Update.
1188 (dwarf2_read_addr_index): Update.
1189 (follow_die_offset): Update.
1190 (dwarf2_fetch_die_loc_sect_off): Update.
1191 (dwarf2_fetch_constant_bytes): Update.
1192 (dwarf2_fetch_die_type_sect_off): Update.
1193 (follow_die_sig_1): Update.
1194 (load_full_type_unit): Add per_objfile parameter.
1195 (read_signatured_type): Likewise.
1196
1197 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1198
1199 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
1200 of objfile_name.
1201
1202 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1203
1204 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
1205 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
1206 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
1207 field.
1208 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
1209 (create_cus_from_index): Update.
1210 (dwarf2_read_gdb_index): Update.
1211 (create_cus_from_debug_names): Update.
1212 (dwarf2_read_debug_names): Update.
1213 (get_abbrev_section_for_cu): Update.
1214 (create_all_comp_units): Update.
1215 (read_attribute_value): Update.
1216 (get_debug_line_section): Update.
1217 * dwarf2/index-cache.c (index_cache::store): Update.
1218 * dwarf2/index-write.c (save_gdb_index_command): Update.
1219 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1220
1221 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1222
1223 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
1224 member.
1225 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
1226 dwarf2_per_cu_data::per_bfd.
1227 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
1228 (create_type_unit_group): Likewise.
1229 (queue_comp_unit): Remove reference to
1230 per_cu->dwarf2_per_objfile.
1231 (maybe_queue_comp_unit): Likewise.
1232 (fill_in_sig_entry_from_dwo_entry): Assign new field.
1233 (create_cus_hash_table): Assign new field.
1234
1235 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1236
1237 * dwarf2/read.c: Replace
1238 dwarf2_cu->per_cu->dwarf2_per_objfile references with
1239 dwarf2_cu->per_objfile throughout.
1240
1241 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1242
1243 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
1244 parameter, don't use per_cu->dwarf2_per_objfile.
1245 (dw2_instantiate_symtab): Likewise.
1246 (dw2_find_last_source_symtab): Update.
1247 (dw2_map_expand_apply): Update.
1248 (dw2_lookup_symbol): Update.
1249 (dw2_expand_symtabs_for_function): Update.
1250 (dw2_expand_all_symtabs): Update.
1251 (dw2_expand_symtabs_with_fullname): Update.
1252 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
1253 don't use per_cu->dwarf2_per_objfile.
1254 (dw2_expand_marked_cus): Update.
1255 (dw2_find_pc_sect_compunit_symtab): Update.
1256 (dw2_debug_names_lookup_symbol): Update.
1257 (dw2_debug_names_expand_symtabs_for_function): Update.
1258 (dw2_debug_names_map_matching_symbols): Update.
1259 (dwarf2_psymtab::expand_psymtab): Update.
1260
1261 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1262
1263 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
1264 <per_objfile>: New member.
1265 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
1266 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
1267 call to dwarf2_cu.
1268 (cutu_reader::cutu_reader): Update.
1269 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
1270
1271 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
1272
1273 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
1274 struct dwarf2_per_objfile.
1275 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
1276 dwarf2_per_bfd.
1277 * dwarf2/read.c (set_die_type): Update.
1278 (get_die_type_at_offset): Update.
1279
1280 2020-05-27 Tom Tromey <tom@tromey.com>
1281 Simon Marchi <simon.marchi@efficios.com>
1282
1283 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
1284 method.
1285 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
1286 get_symtab, set_symtab>: New methods.
1287 <m_symtabs>: New field.
1288 (struct dwarf2_psymtab): Derive from partial_symtab.
1289 <readin_p, get_compunit_symtab>: Declare methods.
1290 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
1291 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
1292 New methods.
1293 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
1294 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
1295 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
1296 (dw2_symtab_iter_next, dw2_print_stats)
1297 (dw2_expand_symtabs_with_fullname)
1298 (dw2_expand_symtabs_matching_one)
1299 (dw_expand_symtabs_matching_file_matcher)
1300 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
1301 (dw2_debug_names_iterator::next)
1302 (dw2_debug_names_map_matching_symbols)
1303 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
1304 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
1305 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
1306 New methods.
1307 (get_compunit_symtab, process_full_comp_unit)
1308 (process_full_type_unit): Update.
1309 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
1310
1311 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1312
1313 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
1314 then introduce a new dwarf2_per_objfile type.
1315 <read_line_string>: Move to the new dwarf2_per_objfile type.
1316 <objfile>: Likewise.
1317 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
1318 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
1319 dwarf2_per_objfile->per_bfd.
1320 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
1321 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
1322 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
1323 (dwarf2_per_bfd::free_cached_comp_units): ... this.
1324 (dwarf2_has_info): Allocate dwarf2_per_bfd.
1325 (dwarf2_per_objfile::locate_sections): Rename to...
1326 (dwarf2_per_bfd::locate_sections): ... this.
1327 (dwarf2_per_objfile::get_cutu): Rename to...
1328 (dwarf2_per_bfd::get_cutu): ... this.
1329 (dwarf2_per_objfile::get_cu): Rename to...
1330 (dwarf2_per_bfd::get_cu): ... this.
1331 (dwarf2_per_objfile::get_tu): Rename to...
1332 (dwarf2_per_bfd::get_tu): ... this.
1333 (dwarf2_per_objfile::allocate_per_cu): Rename to...
1334 (dwarf2_per_bfd::allocate_per_cu): ... this.
1335 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
1336 (dwarf2_per_bfd::allocate_signatured_type): ... this.
1337 (get_gdb_index_contents_ftype): Change parameter from
1338 dwarf2_per_objfile to dwarf2_per_bfd.
1339 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
1340 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
1341
1342 2020-05-27 Tom Tromey <tom@tromey.com>
1343 Simon Marchi <simon.marchi@efficios.com>
1344
1345 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
1346 (allocate_piece_closure): Set "per_objfile" member.
1347 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
1348 (locexpr_describe_location, loclist_describe_location): Use new
1349 member.
1350 * dwarf2/read.c (read_call_site_scope)
1351 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1352 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
1353 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
1354 handle_data_member_location): Set per_objfile member.
1355 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
1356 member.
1357 (struct dwarf2_loclist_baton) <per_objfile>: New member.
1358
1359 2020-05-27 Tom Tromey <tom@tromey.com>
1360
1361 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
1362 allocate_signatured_type>: Declare new methods.
1363 <m_num_psymtabs>: New member.
1364 (struct dwarf2_per_cu_data) <index>: New member.
1365 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
1366 (dwarf2_per_objfile::allocate_signatured_type): New methods.
1367 (create_cu_from_index_list): Use allocate_per_cu.
1368 (create_signatured_type_table_from_index)
1369 (create_signatured_type_table_from_debug_names)
1370 (create_debug_type_hash_table, add_type_unit)
1371 (read_comp_units_from_section): Use allocate_signatured_type.
1372
1373 2020-05-27 Tom Tromey <tom@tromey.com>
1374
1375 * psymtab.c (partial_map_expand_apply)
1376 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
1377 (psym_lookup_global_symbol_language)
1378 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
1379 (psym_print_stats, psym_expand_symtabs_for_function)
1380 (psym_map_symbol_filenames, psym_map_matching_symbols)
1381 (psym_expand_symtabs_matching)
1382 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
1383 (maintenance_check_psymtabs): Update.
1384 * psympriv.h (struct partial_symtab) <readin_p,
1385 get_compunit_symtab>: Add objfile parameter.
1386 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
1387 Likewise.
1388 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
1389 get_compunit_symtab>: Likewise.
1390 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
1391
1392 2020-05-27 Tom Tromey <tom@tromey.com>
1393
1394 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
1395 member.
1396 * dwarf2/read.c (delete_file_name_entry): Fix comment.
1397 (create_cu_from_index_list)
1398 (create_signatured_type_table_from_index)
1399 (create_signatured_type_table_from_debug_names)
1400 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
1401 (dwarf2_create_include_psymtab)
1402 (create_debug_type_hash_table, add_type_unit)
1403 (create_type_unit_group, read_comp_units_from_section)
1404 (dwarf2_compute_name, create_cus_hash_table)
1405 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
1406 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
1407 obstack.
1408 (dw2_get_real_path): Likewise. Change argument to
1409 dwarf2_per_objfile.
1410
1411 2020-05-27 Luis Machado <luis.machado@linaro.org>
1412
1413 PR tdep/26000
1414 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
1415 for ldrd (immediate).
1416
1417 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1418
1419 * command.h: Add comment giving the name of class_tui.
1420 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
1421 create the fake command for the help for class_tui.
1422
1423 2020-05-26 Tom Tromey <tromey@adacore.com>
1424
1425 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
1426 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
1427 (val_atr): New function.
1428 (value_val_atr): Use it.
1429 * ada-valprint.c (print_optional_low_bound): Change low bound
1430 handling for enums.
1431 (val_print_packed_array_elements): Don't call discrete_position.
1432 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
1433 discrete_position for enum types.
1434 * language.c (default_print_array_index): Change type.
1435 * language.h (struct language_defn) <la_print_array_index>: Add
1436 index_type parameter, change type of index_value.
1437 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
1438 (default_print_array_index): Update.
1439 * valprint.c (maybe_print_array_index): Don't call
1440 value_from_longest. Update.
1441 (value_print_array_elements): Don't call discrete_position.
1442
1443 2020-05-26 Tom Tromey <tromey@adacore.com>
1444
1445 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
1446 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
1447
1448 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
1449
1450 PR gdb/13519
1451 * avr-tdep.c (avr_integer_to_address): Return data or code
1452 address accordingly to the second 'type' argument of the
1453 function.
1454
1455 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
1456
1457 * infcmd.c, inferior.h: (construct_inferior_arguments):
1458 Moved function from here to gdbsupport/common-inferior.{h,cc}
1459
1460 2020-05-23 Tom Tromey <tom@tromey.com>
1461
1462 Revert commit eca1f90c:
1463 * NEWS: Remove entry for completion styling.
1464 * completer.c (_rl_completion_prefix_display_length): Move
1465 declaration later.
1466 (gdb_fnprint): Revert.
1467 (gdb_display_match_list_1): Likewise.
1468 * cli/cli-style.c (completion_prefix_style)
1469 (completion_difference_style, completion_suffix_style): Remove.
1470 (_initialize_cli_style): Revert.
1471 * cli/cli-style.h (completion_prefix_style)
1472 (completion_difference_style, completion_suffix_style): Don't
1473 declare.
1474
1475 2020-05-24 Pedro Alves <palves@redhat.com>
1476
1477 * symtab.c (completion_list_add_name): Return boolean indication
1478 of whether the symbol matched.
1479 (completion_list_add_symbol): Don't try to remove C++ aliases if
1480 the symbol didn't match in the first place.
1481 * symtab.h (completion_list_add_name): Return bool.
1482
1483 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
1484
1485 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
1486 type::field.
1487
1488 2020-05-23 Joel Brobecker <brobecker@adacore.com>
1489
1490 GDB 9.2 released.
1491
1492 2020-05-23 Tom Tromey <tom@tromey.com>
1493
1494 * NEWS: Add entry for completion styling.
1495 * completer.c (_rl_completion_prefix_display_length): Move
1496 declaration earlier.
1497 (gdb_fnprint): Use completion_style.
1498 (gdb_display_match_list_1): Likewise.
1499 * cli/cli-style.c (completion_prefix_style)
1500 (completion_difference_style, completion_suffix_style): New
1501 globals.
1502 (_initialize_cli_style): Register new globals.
1503 * cli/cli-style.h (completion_prefix_style)
1504 (completion_difference_style, completion_suffix_style): Declare.
1505
1506 2020-05-23 Pedro Alves <palves@redhat.com>
1507
1508 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
1509 (parse_escape): Use ISDIGIT instead of isdigit.
1510 (puts_debug): Use gdb_isprint instead of isprint.
1511 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
1512 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
1513 ISSPACE instead of isspace.
1514 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
1515 instead of isspace.
1516 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
1517 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
1518 instead of isxdigit and ISDIGIT instead of isdigit.
1519
1520 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
1521
1522 * gdbtypes.h (struct type) <field>: New method.
1523 (TYPE_FIELDS): Remove, replace all uses with either type::fields
1524 or type::field.
1525
1526 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
1527
1528 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
1529 (TYPE_FIELDS): Use type::fields. Change all call sites that
1530 modify the propery to use type::set_fields instead.
1531
1532 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
1533
1534 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
1535 type::num_fields instead.
1536
1537 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
1538
1539 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
1540 methods.
1541 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
1542 that modify the number of fields to use type::set_num_fields
1543 instead.
1544
1545 2020-05-22 Tom Tromey <tromey@adacore.com>
1546
1547 * compile/compile-object-load.h (munmap_list_free): Don't
1548 declare.
1549
1550 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * annotate.c (annotate_source_line): Update return type, add call
1553 to update current symtab and line.
1554 * annotate.h (annotate_source_line): Update return type, and
1555 extend header comment.
1556 * source.c (info_line_command): Check annotation_level before
1557 calling annotate_source_line.
1558 * stack.c (print_frame_info): If calling annotate_source_line
1559 returns true, then don't print any other source line information.
1560
1561 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
1562
1563 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
1564
1565 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
1566
1567 * coffread.c (patch_type): Remove NULL check before xfree.
1568 * corefile.c (set_gnutarget): Likewise.
1569 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
1570 * exec.c (build_section_table): Likewise.
1571 * remote.c (remote_target::pass_signals): Likewise.
1572 * utils.c (n_spaces): Likewise.
1573 * cli/cli-script.c (document_command): Likewise.
1574 * i386-windows-tdep.c (core_process_module_section): Likewise.
1575 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
1576
1577 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
1578
1579 * symfile.c (reread_symbols): Clear objfile's section_offsets
1580 vector and section indices, re-compute them by calling
1581 sym_offsets.
1582
1583 2020-05-20 Tom Tromey <tromey@adacore.com>
1584
1585 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
1586 (desc_one_bound, desc_index_type): Compute field name.
1587
1588 2020-05-20 Tom de Vries <tdevries@suse.de>
1589
1590 PR symtab/25833
1591 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
1592
1593 2020-05-20 Alan Modra <amodra@gmail.com>
1594
1595 PR 25993
1596 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
1597 bfd_set_filename.
1598 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
1599 passed to bfd_set_filename.
1600 * symfile-mem.c (add_vsyscall_page): Likewise for string
1601 passed to symbol_file_add_from_memory.
1602 (symbol_file_add_from_memory): Make name param a const char* and
1603 don't strdup.
1604
1605 2020-05-20 Alan Modra <amodra@gmail.com>
1606
1607 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
1608 rather than accessing bfd->filename directly.
1609 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
1610 and use bfd_section_name.
1611 * dwarf2/frame.c (decode_frame_entry): Likewise.
1612 * exec.c (exec_set_section_address): Likewise.
1613 * solib-aix.c (solib_aix_bfd_open): Likewise.
1614 * stap-probe.c (get_stap_base_address): Likewise.
1615 * symfile.c (reread_symbols): Likewise.
1616
1617 2020-05-19 Tom Tromey <tromey@adacore.com>
1618
1619 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
1620
1621 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1622
1623 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
1624
1625 2020-05-19 Pedro Alves <palves@redhat.com>
1626
1627 * NEWS (set exec-file-mismatch): Adjust entry.
1628 * exec.c: Include "build-id.h".
1629 (validate_exec_file): Try to match build IDs instead of filenames.
1630 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
1631 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
1632 and pass down 'warn_if_slow'.
1633 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
1634 gdb_bfd_open_closure to pass it down.
1635 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
1636
1637 2020-05-19 Pedro Alves <palves@redhat.com>
1638
1639 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
1640 * target.c (target_fileio_open_1): Rename to target_fileio_open
1641 and make extern. Use bool.
1642 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
1643 (target_fileio_read_alloc_1): Adjust.
1644 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
1645 (target_fileio_open_warn_if_slow): Delete declaration.
1646
1647 2020-05-19 Pedro Alves <palves@redhat.com>
1648
1649 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
1650 Adjust all callers.
1651
1652 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
1653
1654 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
1655 whether disp is negative.
1656
1657 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1658
1659 * symfile.h (struct symfile_segment_data)
1660 <~symfile_segment_data>: Remove.
1661 <segment_info>: Change to std::vector.
1662 * symfile.c (default_symfile_segments): Update.
1663 * elfread.c (elf_symfile_segments): Update.
1664
1665 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1666
1667 * symfile.h (struct symfile_segment_data) <struct segment>: New.
1668 <segments>: New.
1669 <segment_bases, segment_sizes>: Remove.
1670 * symfile.c (default_symfile_segments): Update.
1671 * elfread.c (elf_symfile_segments): Update.
1672 * remote.c (remote_target::get_offsets): Update.
1673 * solib-target.c (solib_target_relocate_section_addresses):
1674 Update.
1675
1676 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * symfile.h (struct symfile_segment_data): Initialize fields.
1679 <~symfile_segment_data>: Add.
1680 (symfile_segment_data_up): New.
1681 (struct sym_fns) <sym_segments>: Return a
1682 symfile_segment_data_up.
1683 (default_symfile_segments): Return a symfile_segment_data_up.
1684 (free_symfile_segment_data): Remove.
1685 (get_symfile_segment_data): Return a symfile_segment_data_up.
1686 * symfile.c (default_symfile_segments): Likewise.
1687 (get_symfile_segment_data): Likewise.
1688 (free_symfile_segment_data): Remove.
1689 (symfile_find_segment_sections): Update.
1690 * elfread.c (elf_symfile_segments): Return a
1691 symfile_segment_data_up.
1692 * remote.c (remote_target::get_offsets): Update.
1693 * solib-target.c (solib_target_relocate_section_addresses):
1694 Update.
1695 * symfile-debug.c (debug_sym_segments): Return a
1696 symfile_segment_data_up.
1697
1698 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1699
1700 PR build/25981
1701 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
1702 Hardcode register numbers.
1703
1704 PR build/25981
1705 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
1706 procfs_find_LDT_entry): Remove.
1707 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
1708 procfs_find_LDT_entry): Remove.
1709 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
1710 Remove.
1711
1712 2020-05-17 Pedro Alves <palves@redhat.com>
1713 Andrew Burgess <andrew.burgess@embecosm.com>
1714 Keno Fischer <keno@juliacomputing.com>
1715
1716 PR gdb/25741
1717 * breakpoint.c (build_target_condition_list): Update comments.
1718 (build_target_command_list): Update comments and skip matching
1719 locations.
1720 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
1721 a separate function. Simplify "set breakpoint auto-hw off"
1722 handling.
1723 (insert_breakpoints): Update comment.
1724 (tracepoint_locations_match): New parameter. For breakpoints,
1725 compare location types too, if the caller wants to.
1726 (handle_automatic_hardware_breakpoints): New functions.
1727 (bp_location_is_less_than): Also sort by location type and
1728 hardware breakpoint length.
1729 (update_global_location_list): Handle "set breakpoint auto-hw on"
1730 here.
1731 (update_breakpoint_locations): Ask breakpoint_locations_match to
1732 ignore location types.
1733
1734 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
1735
1736 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
1737 type::name instead.
1738
1739 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
1740
1741 * gdbtypes.h (struct type) <name, set_name>: New methods.
1742 (TYPE_CODE): Use type::name. Change all call sites used to set
1743 the name to use type::set_name instead.
1744
1745 2020-05-16 Tom Tromey <tom@tromey.com>
1746
1747 * top.c (quit_force): Update.
1748 * infrun.c (handle_no_resumed): Update.
1749 * top.h (all_uis): New function.
1750 (ALL_UIS): Remove.
1751
1752 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
1755
1756 2020-05-16 Pedro Alves <palves@redhat.com>
1757
1758 * ia64-linux-nat.c
1759 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
1760 Declare method.
1761 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
1762
1763 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
1764
1765 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
1766 (sparc64_adi_info): Likewise.
1767
1768 2020-05-15 Tom Tromey <tom@tromey.com>
1769
1770 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
1771 block_objfile.
1772 (lookup_objfile_from_block): Remove.
1773 (lookup_symbol_in_block, lookup_symbol_in_static_block)
1774 (lookup_global_symbol): Use block_objfile.
1775 * symtab.h (lookup_objfile_from_block): Don't declare.
1776 * printcmd.c (clear_dangling_display_expressions): Use
1777 block_objfile.
1778 * parse.c (operator_check_standard): Use block_objfile.
1779
1780 2020-05-15 Tom Tromey <tom@tromey.com>
1781
1782 * language.c (language_alloc_type_symbol): Set
1783 SYMBOL_SECTION.
1784 * symtab.c (initialize_objfile_symbol): Remove.
1785 (allocate_symbol): Remove.
1786 (allocate_template_symbol): Remove.
1787 * dwarf2/read.c (fixup_go_packaging): Use "new".
1788 (new_symbol): Use "new".
1789 (read_variable): Don't call initialize_objfile_symbol. Use
1790 "new".
1791 (read_func_scope): Use "new".
1792 * xcoffread.c (process_xcoff_symbol): Don't call
1793 initialize_objfile_symbol.
1794 (SYMBOL_DUP): Remove.
1795 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
1796 "new".
1797 * symtab.h (allocate_symbol, initialize_objfile_symbol)
1798 (allocate_template_symbol): Don't declare.
1799 (struct symbol): Add copy constructor. Change defaults.
1800 * jit.c (finalize_symtab): Use "new".
1801 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
1802 Use "new".
1803 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1804 (common_block_end): Use "new".
1805 * mdebugread.c (parse_symbol): Use "new".
1806 (new_symbol): Likewise.
1807
1808 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1809
1810 * NEWS: Mention changes to help and apropos.
1811
1812 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1813
1814 * command.h (enum command_class): Improve comments, document
1815 that class_alias is for user-defined aliases, give the class
1816 name for each class, remove unused class_xdb.
1817 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
1818 * breakpoint.c (_initialize_breakpoint): Replace class_alias
1819 by a precise class.
1820 * infcmd.c (_initialize_infcmd): Likewise.
1821 * reverse.c (_initialize_reverse): Likewise.
1822 * stack.c (_initialize_stack): Likewise.
1823 * symfile.c (_initialize_symfile): Likewise.
1824 * tracepoint.c (_initialize_tracepoint): Likewise.
1825
1826 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1827
1828 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
1829 when their aliased command is traversed.
1830 (help_cmd): Add fput_command_names_styled call to
1831 output command name and aliases when command has an alias.
1832
1833 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1834
1835 * cli/cli-decode.h (help_cmd_list): Remove declaration.
1836 * cli/cli-decode.c (help_cmd_list): Declare as static,
1837 remove prefix argument, use bool for recurse arg, rework to show the aliases of
1838 a command together with the command.
1839 (fput_command_name_styled, fput_command_names_styled): New functions.
1840 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
1841 fput_command_name_styled.
1842 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
1843 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
1844
1845 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1846
1847 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
1848 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
1849 * command.h (cmd_show_list): Likewise.
1850 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
1851 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
1852
1853 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1854
1855 * unittests/command-def-selftests.c (traverse_command_structure):
1856 Verify all commands of a list have the same prefix command and
1857 that only the top cmdlist commands have a null prefix.
1858
1859 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1860
1861 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
1862 as prefix, not one of its aliases.
1863 (set_cmd_prefix): Remove.
1864 (do_add_cmd): Centralize the setting of the prefix of a command, when
1865 command is defined after its full chain of prefix commands.
1866 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
1867 (add_setshow_cmd_full): Likewise.
1868 (update_prefix_field_of_prefixed_commands): New function.
1869 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
1870 update_prefix_field_of_prefixed_commands.
1871 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
1872 addresses of remote_set_cmdlist and remote_show_cmdlist given
1873 as argument, not the address of an argument.
1874 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
1875 * gdb/remote.c (_initialize_remote): Likewise.
1876
1877 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1878
1879 * cli/cli-cmds.c (alias_command): Check for an existing alias
1880 using lookup_cmd_composition, as valid_command_p is too strict
1881 and forbids aliases that are the prefix of an existing alias
1882 or command.
1883 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
1884 command is properly recognised as a valid command.
1885
1886 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1887
1888 * unittests/help-doc-selftests.c: Rename to
1889 unittests/command-def-selftests.c
1890 * unittests/command-def-selftests.c (help_doc_tests): Update some
1891 comments.
1892 (command_structure_tests, traverse_command_structure): New namespace
1893 and function.
1894 (command_structure_invariants_tests): New function.
1895 (_initialize_command_def_selftests) Renamed from
1896 _initialize_help_doc_selftests, register command_structure_invariants
1897 selftest.
1898
1899 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1900
1901 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
1902 an alias of 'show'.
1903
1904 2020-05-15 Joel Brobecker <brobecker@adacore.com>
1905
1906 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
1907 ada_is_fixed_point_type. Update all callers.
1908 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
1909 all callers.
1910 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
1911 Update all callers.
1912 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
1913 print_fixed_point_type. Update all callers.
1914 * ada-valprint.c (ada_value_print_num): Replace call to
1915 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
1916
1917 2020-05-14 Kevin Buettner <kevinb@redhat.com>
1918
1919 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
1920 processors.
1921 (cpu_supports_bts): Add CV_AMD case.
1922
1923 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
1924 Simon Marchi <simon.marchi@efficios.com>
1925
1926 * infrun.c (stop_all_threads): Collect multiple wait events at
1927 each pass.
1928
1929 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
1930
1931 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
1932 type::code instead.
1933
1934 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * gdbtypes.h (struct type) <code, set_code>: New methods.
1937 (TYPE_CODE): Use type::code. Change all call sites used to set
1938 the code to use type::set_code instead.
1939
1940 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1941 Tom de Vries <tdevries@suse.de>
1942 Pedro Alves <palves@redhat.com>
1943
1944 PR threads/25478
1945 * infrun.c (stop_all_threads): Do NOT ignore
1946 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
1947 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
1948 received.
1949 (handle_no_resumed): Remove code handling a live inferior with no
1950 threads.
1951 * remote.c (has_single_non_exited_thread): New.
1952 (remote_target::update_thread_list): Do not delete a thread if is
1953 the last thread of the process.
1954 * thread.c (thread_select): Call delete_exited_threads instead of
1955 prune_threads.
1956
1957 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1958
1959 * infrun.c (stop_all_threads): Enable/disable thread events of all
1960 targets. Move a debug message denoting the end of the function
1961 into the SCOPED_EXIT block.
1962
1963 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1964
1965 * process-stratum-target.h: Include <set>.
1966 (all_non_exited_process_targets, switch_to_target_no_thread): New
1967 function declarations.
1968 * process-stratum-target.c (all_non_exited_process_targets)
1969 (switch_to_target_no_thread): New function implementations.
1970
1971 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1972
1973 * infrun.c (handle_inferior_event): Extract out a piece of code
1974 into...
1975 (mark_non_executing_threads): ...this new function.
1976
1977 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978
1979 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
1980 use.
1981
1982 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1983
1984 * regcache.c (regcache_read_pc_protected): New function
1985 implementation that returns 0 if the PC cannot read via
1986 'regcache_read_pc'.
1987 * infrun.c (proceed): Call 'regcache_read_pc_protected'
1988 instead of 'regcache_read_pc'.
1989 (keep_going_pass_signal): Ditto.
1990
1991 2020-05-13 Tom Tromey <tromey@adacore.com>
1992
1993 * ada-lang.c (align_value): Remove.
1994 (ada_template_to_fixed_record_type_1): Use align_up.
1995
1996 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1997
1998 * async-event.c: Update the copyright year.
1999 * async-event.h: Update the copyright year.
2000
2001 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * objfiles.h (is_addr_in_objfile,
2004 shared_objfile_contains_address_p): Return bool.
2005 * objfile.c (is_addr_in_objfile,
2006 shared_objfile_contains_address_p): Return bool.
2007
2008 2020-05-11 Tom Tromey <tromey@adacore.com>
2009
2010 * cli/cli-cmds.c (info_command): Restore.
2011 (_initialize_cli_cmds): Use add_prefix_command for "info".
2012 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
2013
2014 2020-05-11 Tom Tromey <tromey@adacore.com>
2015
2016 * ada-lang.c (ada_value_primitive_field): Now public.
2017 * ada-lang.h (ada_value_primitive_field): Declare.
2018 * ada-valprint.c (print_field_values): Use
2019 ada_value_primitive_field for wrapper fields.
2020
2021 2020-05-11 Tom de Vries <tdevries@suse.de>
2022
2023 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
2024 MODULE_DOMAIN.
2025
2026 2020-05-11 Tom de Vries <tdevries@suse.de>
2027
2028 PR symtab/25941
2029 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
2030 with length 0, if not gdb-produced.
2031 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
2032
2033 2020-05-09 Tom de Vries <tdevries@suse.de>
2034
2035 PR gdb/25955
2036 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
2037 calculation.
2038
2039 2020-05-09 Tom Tromey <tom@tromey.com>
2040
2041 * top.c (server_command): Now bool.
2042 * top.h (server_command): Now bool.
2043
2044 2020-05-08 Tom Tromey <tromey@adacore.com>
2045
2046 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
2047 already being processed.
2048
2049 2020-05-08 Tom Tromey <tom@tromey.com>
2050
2051 * printcmd.c (struct display) <next>: Remove.
2052 <display>: New constructor.
2053 <exp_string>: Now a std::string.
2054 <enabled_p>: Now a bool.
2055 (display_number): Move definition earlier.
2056 (displays): Rename from display_chain. Now a std::vector.
2057 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
2058 (display_command): Update.
2059 (do_one_display, disable_display)
2060 (enable_disable_display_command, do_enable_disable_display):
2061 Update.
2062 (free_display): Remove.
2063 (clear_displays): Rewrite.
2064 (delete_display): Update.
2065 (map_display_numbers): Use function_view. Remove "data"
2066 parameter. Update.
2067 (do_delete_display): Remove.
2068 (undisplay_command): Update.
2069 (do_one_display, do_displays, disable_display)
2070 (info_display_command): Update.
2071 (do_enable_disable_display): Remove.
2072 (enable_disable_display_command)
2073 (clear_dangling_display_expressions): Update.
2074
2075 2020-05-08 Tom Tromey <tom@tromey.com>
2076
2077 * symtab.c (set_symbol_cache_size)
2078 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
2079 (maintenance_print_symbol_cache_statistics): Update.
2080 * symmisc.c (print_symbol_bcache_statistics)
2081 (print_objfile_statistics, maintenance_print_objfiles)
2082 (maintenance_info_symtabs, maintenance_check_symtabs)
2083 (maintenance_expand_symtabs, maintenance_info_line_tables):
2084 Update.
2085 * symfile-debug.c (set_debug_symfile): Update.
2086 * source.c (forget_cached_source_info): Update.
2087 * python/python.c (gdbpy_progspaces): Update.
2088 * psymtab.c (maintenance_info_psymtabs): Update.
2089 * probe.c (parse_probes): Update.
2090 * linespec.c (iterate_over_all_matching_symtabs)
2091 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
2092 * guile/scm-progspace.c (gdbscm_progspaces): Update.
2093 * exec.c (exec_target::close): Update.
2094 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
2095 * breakpoint.c (print_one_breakpoint_location)
2096 (create_longjmp_master_breakpoint)
2097 (create_std_terminate_master_breakpoint): Update.
2098 * progspace.c (program_spaces): Now a std::vector.
2099 (maybe_new_address_space): Update.
2100 (add_program_space): Remove.
2101 (program_space::program_space): Update.
2102 (remove_program_space): Update.
2103 (number_of_program_spaces): Remove.
2104 (print_program_space, update_address_spaces): Update.
2105 * progspace.h (program_spaces): Change type.
2106 (ALL_PSPACES): Remove.
2107 (number_of_program_spaces): Don't declare.
2108 (struct program_space) <next>: Remove.
2109
2110 2020-05-08 Tom Tromey <tom@tromey.com>
2111
2112 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
2113 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
2114 (enable_break): Update.
2115 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
2116 (frv_fdpic_find_canonical_descriptor): Update.
2117 (frv_fetch_objfile_link_map): Update.
2118 * progspace.c (program_space::free_all_objfiles): Update.
2119 (program_space::solibs): New method.
2120 * progspace.h (struct program_space) <solibs>: New method.
2121 * solist.h (master_so_list): Don't declare.
2122 (ALL_SO_LIBS): Remove.
2123 * solib.h (so_list_head): Remove.
2124 (update_solib_list): Update comment.
2125 * solib.c (master_so_list): Remove.
2126 (solib_used, update_solib_list, solib_add)
2127 (info_sharedlibrary_command, clear_solib)
2128 (reload_shared_libraries_1, remove_user_added_objfile): Update.
2129
2130 2020-05-08 Tom Tromey <tom@tromey.com>
2131
2132 * extension.c (extension_languages): Now a std::array.
2133 (ALL_EXTENSION_LANGUAGES): Remove.
2134 (get_ext_lang_defn, get_ext_lang_of_file)
2135 (eval_ext_lang_from_control_command): Update.
2136 (finish_ext_lang_initialization)
2137 (auto_load_ext_lang_scripts_for_objfile)
2138 (ext_lang_type_printers::ext_lang_type_printers)
2139 (apply_ext_lang_type_printers)
2140 (ext_lang_type_printers::~ext_lang_type_printers)
2141 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
2142 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
2143 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
2144 (get_matching_xmethod_workers, ext_lang_colorize)
2145 (ext_lang_before_prompt): Update.
2146 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
2147
2148 2020-05-08 Tom Tromey <tom@tromey.com>
2149
2150 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
2151 overload.
2152 <swap_string, m_string>: Remove.
2153 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
2154 Update.
2155 * stabsread.c (define_symbol, read_type): Update.
2156 * linespec.c (find_linespec_symbols): Update.
2157 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
2158 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
2159 * dbxread.c (read_dbx_symtab): Update.
2160 * cp-support.h (cp_canonicalize_string_full)
2161 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
2162 Return unique_xmalloc_ptr.
2163 * cp-support.c (inspect_type): Update.
2164 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
2165 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
2166 Likewise.
2167 * c-typeprint.c (print_name_maybe_canonical): Update.
2168 * break-catch-throw.c (check_status_exception_catchpoint):
2169 Update.
2170
2171 2020-05-08 Tom de Vries <tdevries@suse.de>
2172
2173 * infrun.c (follow_fork): Copy current_line and current_symtab to
2174 child thread.
2175
2176 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
2177
2178 * async-event.c (struct async_signal_handler, struct
2179 async_event_handler): Reformat, remove typedef.
2180
2181 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
2182
2183 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
2184 access thistype->main_type->dyn_prop_list directly.
2185
2186 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
2187
2188 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
2189 (remove_dyn_prop): Remove. Update all users to use
2190 type::remove_dyn_prop.
2191 * gdbtypes.c (remove_dyn_prop): Rename to...
2192 (type::remove_dyn_prop): ... this.
2193
2194 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
2195
2196 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
2197 (add_dyn_prop): Remove. Update all users to use
2198 type::add_dyn_prop.
2199 * gdbtypes.c (add_dyn_prop): Rename to...
2200 (type::add_dyn_prop): ... this.
2201
2202 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
2203
2204 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
2205 (get_dyn_prop): Remove. Update all users to use
2206 type::dyn_prop.
2207 * gdbtypes.c (get_dyn_prop): Rename to...
2208 (type::dyn_prop): ... this.
2209
2210 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
2211
2212 * gdbtypes.h (struct main_type) <flag_static>: Remove.
2213
2214 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
2215
2216 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
2217 instruction, skip it if it's there.
2218
2219 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
2220
2221 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
2222
2223 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
2224
2225 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
2226 * gdbtypes.c (recursive_dump_type): Remove use of
2227 TYPE_INCOMPLETE.
2228
2229 2020-05-03 Tom Tromey <tom@tromey.com>
2230
2231 * breakpoint.c (catch_command, tcatch_command): Remove.
2232 (_initialize_breakpoint): Use add_basic_prefix_cmd,
2233 add_show_prefix_cmd.
2234 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
2235 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
2236 Remove.
2237 (add_internal_problem_command): Use add_basic_prefix_cmd,
2238 add_show_prefix_cmd.
2239 * mips-tdep.c (set_mipsfpu_command): Remove.
2240 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
2241 * dwarf2/index-cache.c (set_index_cache_command): Remove.
2242 (_initialize_index_cache): Use add_basic_prefix_cmd.
2243 * memattr.c (dummy_cmd): Remove.
2244 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
2245 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
2246 (_initialize_tui_win): Use add_basic_prefix_cmd,
2247 add_show_prefix_cmd.
2248 * cli/cli-logging.c (set_logging_command): Remove.
2249 (_initialize_cli_logging): Use add_basic_prefix_cmd,
2250 add_show_prefix_cmd.
2251 (show_logging_command): Remove.
2252 * target.c (target_command): Remove.
2253 (add_target): Use add_basic_prefix_cmd.
2254
2255 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
2256
2257 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
2258
2259 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2260
2261 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
2262 info_command.
2263
2264 2020-04-30 Kamil Rytarowski <n54@gmx.com>
2265
2266 * nbsd-nat.c (nbsd_enable_proc_events)
2267 (nbsd_nat_target::post_startup_inferior): Add.
2268 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
2269 (nbsd_nat_target::update_thread_list): Rewrite.
2270 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
2271 "PTRACE_LWP_CREATE".
2272 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
2273
2274 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2275
2276 * stack.c (_initialize_stack): Remove duplicated creation
2277 of "frame" command and "f" alias.
2278
2279 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
2280
2281 PR gdb/18706
2282 * gdbtypes.c (check_typedef): Calculate size of array of
2283 stubbed type.
2284
2285 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
2286
2287 PR gdb/15559
2288 * i386-tdep.c (i386_push_dummy_call): Call
2289 i386_thiscall_push_dummy_call.
2290 (i386_thiscall_push_dummy_call): New function.
2291 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
2292 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
2293 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
2294
2295 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
2296
2297 * gdbarch.sh (do_read): Add shellcheck disable directive for
2298 warning SC2162.
2299
2300 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
2301
2302 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
2303 "referenced but not assigned" warning.
2304
2305 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
2306
2307 * gdbarch.sh: Remove code that sets fallbackdefault.
2308
2309 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
2310
2311 * gdbarch.sh: Use shell operators && and || instead of
2312 -a and -o.
2313
2314 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
2315
2316 * gdbarch.sh: Use $(...) instead of `...`.
2317
2318 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * gdbarch.sh: Use double quotes around variables.
2321
2322 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
2323
2324 * gdbarch.sh: Use %s with printf, instead of variables in the
2325 format string.
2326
2327 2020-04-29 Tom Tromey <tromey@adacore.com>
2328
2329 PR ada/25875:
2330 * dwarf2/read.c (update_enumeration_type_from_children): Compute
2331 type fields here.
2332 (read_enumeration_type): Call
2333 update_enumeration_type_from_children later. Update comments.
2334 (process_enumeration_scope): Don't create type fields.
2335
2336 2020-04-29 Kamil Rytarowski <n54@gmx.com>
2337
2338 * nbsd-tdep.c: Include "xml-syscall.h".
2339 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
2340
2341 2020-04-29 Kamil Rytarowski <n54@gmx.com>
2342
2343 * nbsd-nat.c: Include "sys/wait.h".
2344 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
2345 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
2346 (nbsd_nat_target::remove_exec_catchpoint)
2347 (nbsd_nat_target::set_syscall_catchpoint): Add.
2348 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
2349 (nbsd_nat_target::insert_exec_catchpoint)
2350 (nbsd_nat_target::remove_exec_catchpoint)
2351 (nbsd_nat_target::set_syscall_catchpoint): Add.
2352 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
2353 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
2354 `nbsd_get_syscall_number'.
2355
2356 2020-04-29 Tom Tromey <tom@tromey.com>
2357
2358 * stack.c (print_block_frame_labels): Remove.
2359
2360 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
2361
2362 PR gdb/17320
2363 * ada-valprint.c (val_print_packed_array_elements): Move array
2364 end bracket to new line.
2365 (ada_val_print_string): Remove extra spaces before first array
2366 element.
2367 * c-valprint.c (c_value_print_array): Likewise.
2368 * m2-valprint.c (m2_print_array_contents): Likewise.
2369 (m2_value_print_inner): Likewise.
2370 * p-valprint.c (pascal_value_print_inner): Likewise.
2371 * valprint.c (generic_val_print_array): Likewise.
2372 (value_print_array_elements): Move first array element and array
2373 end bracket to new line.
2374
2375 2020-04-29 Tom de Vries <tdevries@suse.de>
2376
2377 PR symtab/25889
2378 * linespec.c (find_method): Fix ix calculation.
2379
2380 2020-04-28 Kamil Rytarowski <n54@gmx.com>
2381
2382 * syscalls/update-netbsd.sh: New file.
2383 * syscalls/netbsd.xml: Regenerate.
2384 * data-directory/Makefile.in: Register `netbsd.xml' in
2385 `SYSCALLS_FILES'.
2386
2387 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
2388
2389 * syscalls/update-freebsd.sh: Add double quotes.
2390
2391 2020-04-28 Tom Tromey <tom@tromey.com>
2392
2393 * NEWS: Update.
2394 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
2395 (cmdpy_init): Allow class_tui.
2396
2397 2020-04-28 Mark Williams <mark@myosotissp.com>
2398
2399 PR gdb/24480
2400 * dwarf2read.c: Add missing assingments to list_in_scope when
2401 start_symtab was already called.
2402
2403 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
2404
2405 PR gdb/25881
2406 * dwarf2/read.c (offset_map_type): Use
2407 gdb:hash_enum<sect_offset> as hash function.
2408
2409 2020-04-28 Tom de Vries <tdevries@suse.de>
2410
2411 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
2412 with DW_AT_signature.
2413
2414 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
2415
2416 * configure.ac: Remove check for fs_base/gs_base in
2417 user_regs_struct.
2418 * configure: Re-generate.
2419 * config.in: Re-generate.
2420 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
2421 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
2422 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
2423
2424 2020-04-27 Luis Machado <luis.machado@linaro.org>
2425
2426 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
2427 problematic inline frame unwinding situation.
2428 * frame.c (frame_id_computed_p): New function.
2429 * frame.h (frame_id_computed_p): New prototype.
2430
2431 2020-04-26 Tom Tromey <tom@tromey.com>
2432
2433 * command.h (enum command_class) <class_pseudo>: Remove.
2434
2435 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2436
2437 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
2438 and whitespace.
2439
2440 2020-04-25 Kamil Rytarowski <n54@gmx.com>
2441
2442 * inf-ptrace.c (inf_ptrace_target::wait): Remove
2443 `PT_GET_PROCESS_STATE' block.
2444
2445 2020-04-24 Tom Tromey <tom@tromey.com>
2446
2447 * symtab.h (symbol_get_demangled_name): Don't declare.
2448 * symtab.c (symbol_get_demangled_name): Remove.
2449 (general_symbol_info::natural_name)
2450 (general_symbol_info::demangled_name): Update.
2451
2452 2020-04-24 Tom Tromey <tom@tromey.com>
2453
2454 PR rust/25025:
2455 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
2456
2457 2020-04-24 Tom Tromey <tom@tromey.com>
2458
2459 PR symtab/12707:
2460 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
2461 exists.
2462 (new_symbol): Likewise.
2463 * compile/compile-object-load.c (get_out_value_type): Use
2464 symbol_matches_search_name.
2465
2466 2020-04-24 Tom Tromey <tom@tromey.com>
2467
2468 * dwarf2/read.c (add_partial_symbol): Do not call
2469 compute_and_set_names.
2470
2471 2020-04-24 Tom Tromey <tom@tromey.com>
2472
2473 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
2474 overload.
2475
2476 2020-04-24 Tom Tromey <tom@tromey.com>
2477
2478 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
2479 (add_psymbol_to_list): New overload. Make old overload call new
2480 one.
2481 * psympriv.h (add_psymbol_to_list): New overload.
2482
2483 2020-04-24 Tom Tromey <tom@tromey.com>
2484
2485 * dwarf2/read.c (partial_die_info::read) <case
2486 DW_AT_linkage_name>: Use value_as_string.
2487 (dwarf2_string_attr): Use value_as_string.
2488 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2489 method.
2490 * dwarf2/attribute.c (attribute::value_as_string): New method.
2491
2492 2020-04-24 Tom Tromey <tom@tromey.com>
2493
2494 * symtab.c (general_symbol_info::natural_name)
2495 (general_symbol_info::demangled_name): Check for language_rust.
2496
2497 2020-04-24 Tom Tromey <tom@tromey.com>
2498
2499 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
2500 (dwarf2_physname): ... from here.
2501 (partial_die_info::read): Add Rust "{" hack.
2502
2503 2020-04-24 Tom Tromey <tom@tromey.com>
2504
2505 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
2506 method.
2507 (symbol_set_demangled_name): Don't declare.
2508 * symtab.c (general_symbol_info::set_demangled_name): Rename from
2509 symbol_set_demangled_name.
2510 (general_symbol_info::set_language)
2511 (general_symbol_info::compute_and_set_names): Update.
2512 * minsyms.c (minimal_symbol_reader::install): Update.
2513 * dwarf2/read.c (new_symbol): Update.
2514
2515 2020-04-24 Tom Tromey <tromey@adacore.com>
2516
2517 PR python/23662:
2518 * python/py-type.c (convert_field): Handle
2519 FIELD_LOC_KIND_DWARF_BLOCK.
2520 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
2521 (typy_get_dynamic): Nw function.
2522 (type_object_getset): Add "dynamic".
2523 * NEWS: Add entry.
2524
2525 2020-04-24 Tom Tromey <tromey@adacore.com>
2526
2527 * ada-typeprint.c (print_choices, print_variant_part)
2528 (print_record_field_types_dynamic): New functions.
2529 (print_record_field_types): Use print_record_field_types_dynamic.
2530
2531 2020-04-24 Tom Tromey <tromey@adacore.com>
2532
2533 * dwarf2/read.c (handle_data_member_location): New overload.
2534 (dwarf2_add_field): Use it.
2535 (decode_locdesc): Add "computed" parameter. Update comment.
2536 * gdbtypes.c (is_dynamic_type_internal): Also look for
2537 FIELD_LOC_KIND_DWARF_BLOCK.
2538 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
2539 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
2540 virtual base classes.
2541 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
2542 FIELD_LOC_KIND_DWARF_BLOCK.
2543
2544 2020-04-24 Tom Tromey <tromey@adacore.com>
2545
2546 * dwarf2/read.c (read_structure_type): Handle dynamic length.
2547 * gdbtypes.c (is_dynamic_type_internal): Check
2548 TYPE_HAS_DYNAMIC_LENGTH.
2549 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
2550 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
2551 New macros.
2552 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
2553 constant.
2554
2555 2020-04-24 Tom Tromey <tromey@adacore.com>
2556
2557 * dwarf2/read.c (struct variant_field): Rewrite.
2558 (struct variant_part_builder): New.
2559 (struct nextfield): Remove "variant" field. Add "offset".
2560 (struct field_info): Add "current_variant_part" and
2561 "variant_parts".
2562 (alloc_discriminant_info): Remove.
2563 (alloc_rust_variant): New function.
2564 (quirk_rust_enum): Update.
2565 (dwarf2_add_field): Set "offset" member. Don't handle
2566 DW_TAG_variant_part.
2567 (offset_map_type): New typedef.
2568 (convert_variant_range, create_one_variant)
2569 (create_one_variant_part, create_variant_parts)
2570 (add_variant_property): New functions.
2571 (dwarf2_attach_fields_to_type): Call add_variant_property.
2572 (read_structure_type): Don't handle DW_TAG_variant_part.
2573 (handle_variant_part, handle_variant): New functions.
2574 (handle_struct_member_die): Use them.
2575 (process_structure_scope): Don't handle variant parts.
2576 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
2577 (struct discriminant_info): Remove.
2578 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
2579 (struct main_type) <flag_discriminated_union>: Remove.
2580 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
2581 (rust_enum_variant): Return int. Remove "contents". Rewrite.
2582 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
2583 Update.
2584 * valops.c (value_union_variant): Remove.
2585 * value.h (value_union_variant): Don't declare.
2586
2587 2020-04-24 Tom Tromey <tromey@adacore.com>
2588
2589 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
2590 (ada_value_primitive_packed_val): Update.
2591 * ada-valprint.c (ada_value_print_1): Update.
2592 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
2593 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
2594 just an address. Use evaluate_for_locexpr_baton.
2595 (dwarf2_evaluate_property): Update.
2596 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
2597 array_view.
2598 * findvar.c (default_read_var_value): Update.
2599 * gdbtypes.c (compute_variant_fields_inner)
2600 (resolve_dynamic_type_internal): Update.
2601 (resolve_dynamic_type): Change type of valaddr parameter.
2602 * gdbtypes.h (resolve_dynamic_type): Update.
2603 * valarith.c (value_subscripted_rvalue): Update.
2604 * value.c (value_from_contents_and_address): Update.
2605
2606 2020-04-24 Tom Tromey <tromey@adacore.com>
2607
2608 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
2609 "push_initial_value" parameter.
2610 (dwarf2_evaluate_property): Likewise.
2611 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
2612
2613 2020-04-24 Tom Tromey <tromey@adacore.com>
2614
2615 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
2616 (variant::matches, compute_variant_fields_recurse)
2617 (compute_variant_fields_inner, compute_variant_fields): New
2618 functions.
2619 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
2620 Use resolved_type after type is made.
2621 (operator==): Add new cases.
2622 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
2623 (struct discriminant_range, struct variant, struct variant_part):
2624 New.
2625 (union dynamic_prop_data) <variant_parts, original_type>: New
2626 members.
2627 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
2628 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
2629 constants.
2630 * value.c (unpack_bits_as_long): Now public.
2631 * value.h (unpack_bits_as_long): Declare.
2632
2633 2020-04-24 Tom Tromey <tromey@adacore.com>
2634
2635 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
2636 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
2637
2638 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
2639
2640 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
2641
2642 2020-04-24 Kamil Rytarowski <n54@gmx.com>
2643
2644 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
2645 (remove_fork_catchpoint, post_startup_inferior)
2646 (post_attach): Move...
2647 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
2648 (remove_fork_catchpoint, post_startup_inferior)
2649 (post_attach): ...here.
2650 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
2651 (remove_fork_catchpoint, post_startup_inferior)
2652 (post_attach): Move...
2653 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
2654 (remove_fork_catchpoint, post_startup_inferior)
2655 (post_attach): ...here.
2656
2657 2020-04-24 Tom Tromey <tromey@adacore.com>
2658
2659 * nat/windows-nat.h (struct windows_thread_info)
2660 <pc_adjusted>: New member.
2661 * windows-nat.c (windows_fetch_one_register): Check
2662 pc_adjusted.
2663 (windows_nat_target::get_windows_debug_event)
2664 (windows_nat_target::wait): Set pc_adjusted.
2665
2666 2020-04-24 Tom de Vries <tdevries@suse.de>
2667
2668 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
2669 Run gdb-add-index inside temp dir.
2670
2671 2020-04-23 Tom Tromey <tromey@adacore.com>
2672
2673 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
2674 in loop.
2675
2676 2020-04-23 Luis Machado <luis.machado@linaro.org>
2677
2678 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2679 get_frame_register instead of gdbarch_unwind_pc.
2680
2681 2020-04-23 Tom de Vries <tdevries@suse.de>
2682
2683 * symtab.c (lookup_global_symbol): Prefer def over decl.
2684
2685 2020-04-23 Tom de Vries <tdevries@suse.de>
2686
2687 PR symtab/25807
2688 * block.c (best_symbol, better_symbol): Promote to external.
2689 * block.h (best_symbol, better_symbol): Declare.
2690 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
2691 decl.
2692
2693 2020-04-23 Tom Tromey <tromey@adacore.com>
2694
2695 PR ada/25837:
2696 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
2697 "const char *", not a "const std::string &".
2698 <name_and_matcher::operator==>: Update.
2699 * unittests/lookup_name_info-selftests.c: Change type of
2700 "result".
2701
2702 2020-04-23 Tom Tromey <tom@tromey.com>
2703
2704 * inferior.h (iterate_over_inferiors): Don't declare.
2705 * inferior.c (iterate_over_inferiors): Remove.
2706 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
2707 Remove.
2708 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
2709 use iterate_over_inferiors.
2710 (darwin_resume_inferior_it)
2711 (struct resume_inferior_threads_param)
2712 (darwin_resume_inferior_threads_it): Remove.
2713 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
2714
2715 2020-04-23 Tom de Vries <tdevries@suse.de>
2716
2717 * blockframe.c (find_pc_partial_function): Use
2718 find_pc_sect_compunit_symtab rather than
2719 objfile->sf->qf->find_pc_sect_compunit_symtab.
2720
2721 2020-04-22 Tom de Vries <tdevries@suse.de>
2722
2723 PR symtab/25764
2724 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
2725 in psymtabs.
2726
2727 2020-04-22 Tom de Vries <tdevries@suse.de>
2728
2729 PR symtab/25801
2730 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
2731 symtabs.
2732
2733 2020-04-22 Tom de Vries <tdevries@suse.de>
2734
2735 PR symtab/25700
2736 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
2737 CU if already created.
2738
2739 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2740
2741 * infrun.c (displaced_step_fixup): Switch to the event_thread
2742 before calling displaced_step_restore, not after.
2743
2744 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2745
2746 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
2747 its inferior is not recorded by us.
2748 (record_btrace_target_open): Replace call to
2749 all_non_exited_threads () with call to current_inferior
2750 ()->non_exited_threads ().
2751 (record_btrace_target::stop_recording): Likewise.
2752 (record_btrace_target::close): Likewise.
2753 (record_btrace_target::wait): Likewise.
2754 (record_btrace_target::record_stop_replaying): Likewise.
2755
2756 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2757
2758 * btrace.c (btrace_enable): Throw an error on double enables and
2759 when enabling recording fails.
2760 (btrace_disable): Throw an error if the thread is not recorded.
2761
2762 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
2763
2764 * record-btrace.c (record_btrace_target::fetch_registers): Forward
2765 request if we do not have a thread_info.
2766
2767 2020-04-21 Tom de Vries <tdevries@suse.de>
2768
2769 PR gdb/25471
2770 * thread.c
2771 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
2772 exception in get_frame_id.
2773
2774 2020-04-20 Tom Tromey <tromey@adacore.com>
2775
2776 * python/python.c (struct gdbpy_event): Mark move constructor as
2777 noexcept.
2778 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
2779 constructor as noexcept.
2780 * completer.h (struct completion_result): Mark move constructor as
2781 noexcept.
2782 * completer.c (completion_result::completion_result): Use
2783 initialization style. Don't call reset_match_list.
2784
2785 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
2786
2787 * MAINTAINERS (Write After Approval): Add myself.
2788
2789 2020-04-18 Tom Tromey <tom@tromey.com>
2790
2791 * windows-tdep.c (init_w32_command_list)
2792 (w32_prefix_command_valid): Restore.
2793 (_initialize_windows_tdep): Call init_w32_command_list.
2794
2795 2020-04-18 Tom Tromey <tom@tromey.com>
2796
2797 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
2798 * value.c (value_fn_field): Update.
2799 * valops.c (find_function_in_inferior)
2800 (value_allocate_space_in_inferior): Update.
2801 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2802 Update.
2803 * tui/tui-source.c (tui_source_window::set_contents): Update.
2804 * symtab.c (lookup_global_or_static_symbol)
2805 (find_function_start_sal_1, skip_prologue_sal)
2806 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
2807 * symmisc.c (dump_msymbols, dump_symtab_1)
2808 (maintenance_print_one_line_table): Update.
2809 * symfile.c (init_entry_point_info, section_is_mapped)
2810 (list_overlays_command, simple_read_overlay_table)
2811 (simple_overlay_update_1): Update.
2812 * stap-probe.c (handle_stap_probe): Update.
2813 * stabsread.c (dbx_init_float_type, define_symbol)
2814 (read_one_struct_field, read_enum_type, read_range_type): Update.
2815 * source.c (info_line_command): Update.
2816 * python/python.c (gdbpy_source_objfile_script)
2817 (gdbpy_execute_objfile_script): Update.
2818 * python/py-type.c (save_objfile_types): Update.
2819 * python/py-objfile.c (py_free_objfile): Update.
2820 * python/py-inferior.c (python_new_objfile): Update.
2821 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
2822 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
2823 (maintenance_check_psymtabs): Update.
2824 * printcmd.c (info_address_command): Update.
2825 * objfiles.h (struct objfile) <arch>: New method, from
2826 get_objfile_arch.
2827 (get_objfile_arch): Don't declare.
2828 * objfiles.c (get_objfile_arch): Remove.
2829 (filter_overlapping_sections): Update.
2830 * minsyms.c (msymbol_is_function): Update.
2831 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
2832 (output_nondebug_symbol): Update.
2833 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
2834 (mdebug_expand_psymtab): Update.
2835 * machoread.c (macho_add_oso_symfile): Update.
2836 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
2837 Update.
2838 * linux-fork.c (checkpoint_command): Update.
2839 * linespec.c (convert_linespec_to_sals): Update.
2840 * jit.c (finalize_symtab): Update.
2841 * infrun.c (insert_exception_resume_from_probe): Update.
2842 * ia64-tdep.c (ia64_find_unwind_table): Update.
2843 * hppa-tdep.c (internalize_unwinds): Update.
2844 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
2845 Update.
2846 * gcore.c (call_target_sbrk): Update.
2847 * elfread.c (record_minimal_symbol, elf_symtab_read)
2848 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2849 (elf_gnu_ifunc_resolve_by_got): Update.
2850 * dwarf2/read.c (create_addrmap_from_index)
2851 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
2852 (read_debug_names_from_section)
2853 (process_psymtab_comp_unit_reader, add_partial_symbol)
2854 (add_partial_subprogram, process_full_comp_unit)
2855 (read_file_scope, read_func_scope, read_lexical_block_scope)
2856 (read_call_site_scope, dwarf2_ranges_read)
2857 (dwarf2_record_block_ranges, dwarf2_add_field)
2858 (mark_common_block_symbol_computed, read_tag_pointer_type)
2859 (read_tag_string_type, dwarf2_init_float_type)
2860 (dwarf2_init_complex_target_type, read_base_type)
2861 (partial_die_info::read, partial_die_info::read)
2862 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
2863 (dwarf2_fetch_die_loc_sect_off): Update.
2864 * dwarf2/loc.c (dwarf2_find_location_expression)
2865 (class dwarf_evaluate_loc_desc, rw_pieced_value)
2866 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
2867 (dwarf2_loc_desc_get_symbol_read_needs)
2868 (locexpr_describe_location_piece, locexpr_describe_location_1)
2869 (loclist_describe_location): Update.
2870 * dwarf2/index-write.c (write_debug_names): Update.
2871 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
2872 * dtrace-probe.c (dtrace_process_dof): Update.
2873 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
2874 (process_one_symbol): Update.
2875 * ctfread.c (ctf_init_float_type, read_base_type): Update.
2876 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
2877 (coff_read_enum_type): Update.
2878 * cli/cli-cmds.c (edit_command, list_command): Update.
2879 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
2880 * breakpoint.c (create_overlay_event_breakpoint)
2881 (create_longjmp_master_breakpoint)
2882 (create_std_terminate_master_breakpoint)
2883 (create_exception_master_breakpoint, get_sal_arch): Update.
2884 * block.c (block_gdbarch): Update.
2885 * annotate.c (annotate_source_line): Update.
2886
2887 2020-04-17 Tom Tromey <tromey@adacore.com>
2888
2889 * auto-load.c (show_auto_load_cmd): Remove.
2890 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
2891 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
2892 (maintenance_print_arc_command): Remove.
2893 * tui/tui-win.c (tui_command): Remove.
2894 (tui_get_cmd_list): Use add_basic_prefix_cmd.
2895 * tui/tui-layout.c (tui_layout_command): Remove.
2896 (_initialize_tui_layout): Use add_basic_prefix_cmd.
2897 * python/python.c (user_set_python, user_show_python): Remove.
2898 (_initialize_python): Use add_basic_prefix_cmd,
2899 add_show_prefix_cmd.
2900 * guile/guile.c (set_guile_command, show_guile_command): Remove.
2901 (install_gdb_commands): Use add_basic_prefix_cmd,
2902 add_show_prefix_cmd.
2903 (info_guile_command): Remove.
2904 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
2905 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
2906 add_show_prefix_cmd.
2907 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
2908 Remove do_set and do_show parameters.
2909 * cli/cli-style.c (set_style, show_style): Remove.
2910 (_initialize_cli_style): Use add_basic_prefix_cmd,
2911 add_show_prefix_cmd.
2912 (cli_style_option::add_setshow_commands): Remove do_set and
2913 do_show parameters.
2914 (cli_style_option::add_setshow_commands): Use
2915 add_basic_prefix_cmd, add_show_prefix_cmd.
2916 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
2917 (set_style_name): Remove.
2918 * cli/cli-dump.c (dump_command, append_command): Remove.
2919 (srec_dump_command, ihex_dump_command, verilog_dump_command)
2920 (tekhex_dump_command, binary_dump_command)
2921 (binary_append_command): Remove.
2922 (_initialize_cli_dump): Use add_basic_prefix_cmd.
2923 * windows-tdep.c (w32_prefix_command_valid): Remove global.
2924 (init_w32_command_list): Remove; move into ...
2925 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
2926 * valprint.c (set_print, show_print, set_print_raw)
2927 (show_print_raw): Remove.
2928 (_initialize_valprint): Use add_basic_prefix_cmd,
2929 add_show_prefix_cmd.
2930 * typeprint.c (set_print_type, show_print_type): Remove.
2931 (_initialize_typeprint): Use add_basic_prefix_cmd,
2932 add_show_prefix_cmd.
2933 * record.c (set_record_command, show_record_command): Remove.
2934 (_initialize_record): Use add_basic_prefix_cmd,
2935 add_show_prefix_cmd.
2936 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
2937 add_show_prefix_cmd.
2938 (info_command, show_command, set_debug, show_debug): Remove.
2939 * top.h (set_history, show_history): Don't declare.
2940 * top.c (set_history, show_history): Remove.
2941 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
2942 (unset_tdesc_cmd): Remove.
2943 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
2944 add_show_prefix_cmd.
2945 * symtab.c (info_module_command): Remove.
2946 (_initialize_symtab): Use add_basic_prefix_cmd.
2947 * symfile.c (overlay_command): Remove.
2948 (_initialize_symfile): Use add_basic_prefix_cmd.
2949 * sparc64-tdep.c (info_adi_command): Remove.
2950 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
2951 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
2952 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
2953 add_show_prefix_cmd.
2954 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
2955 (_initialize_serial): Use add_basic_prefix_cmd,
2956 add_show_prefix_cmd.
2957 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
2958 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
2959 add_show_prefix_cmd.
2960 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
2961 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
2962 add_show_prefix_cmd.
2963 * riscv-tdep.c (show_riscv_command, set_riscv_command)
2964 (show_debug_riscv_command, set_debug_riscv_command): Remove.
2965 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
2966 add_show_prefix_cmd.
2967 * remote.c (remote_command, set_remote_cmd): Remove.
2968 (_initialize_remote): Use add_basic_prefix_cmd.
2969 * record-full.c (set_record_full_command)
2970 (show_record_full_command): Remove.
2971 (_initialize_record_full): Use add_basic_prefix_cmd,
2972 add_show_prefix_cmd.
2973 * record-btrace.c (cmd_set_record_btrace)
2974 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
2975 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
2976 (cmd_show_record_btrace_pt): Remove.
2977 (_initialize_record_btrace): Use add_basic_prefix_cmd,
2978 add_show_prefix_cmd.
2979 * ravenscar-thread.c (set_ravenscar_command)
2980 (show_ravenscar_command): Remove.
2981 (_initialize_ravenscar): Use add_basic_prefix_cmd,
2982 add_show_prefix_cmd.
2983 * mips-tdep.c (show_mips_command, set_mips_command)
2984 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
2985 add_show_prefix_cmd.
2986 * maint.c (maintenance_command, maintenance_info_command)
2987 (maintenance_check_command, maintenance_print_command)
2988 (maintenance_set_cmd, maintenance_show_cmd): Remove.
2989 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
2990 add_show_prefix_cmd.
2991 (show_per_command_cmd): Remove.
2992 * maint-test-settings.c (maintenance_set_test_settings_cmd):
2993 Remove.
2994 (maintenance_show_test_settings_cmd): Remove.
2995 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
2996 add_show_prefix_cmd.
2997 * maint-test-options.c (maintenance_test_options_command):
2998 Remove.
2999 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
3000 * macrocmd.c (macro_command): Remove
3001 (_initialize_macrocmd): Use add_basic_prefix_cmd.
3002 * language.c (set_check, show_check): Remove.
3003 (_initialize_language): Use add_basic_prefix_cmd,
3004 add_show_prefix_cmd.
3005 * infcmd.c (unset_command): Remove.
3006 (_initialize_infcmd): Use add_basic_prefix_cmd.
3007 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
3008 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
3009 add_show_prefix_cmd.
3010 * go32-nat.c (go32_info_dos_command): Remove.
3011 (_initialize_go32_nat): Use add_basic_prefix_cmd.
3012 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
3013 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
3014 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
3015 (_initialize_frame): Use add_basic_prefix_cmd,
3016 add_show_prefix_cmd.
3017 * dcache.c (set_dcache_command, show_dcache_command): Remove.
3018 (_initialize_dcache): Use add_basic_prefix_cmd,
3019 add_show_prefix_cmd.
3020 * cp-support.c (maint_cplus_command): Remove.
3021 (_initialize_cp_support): Use add_basic_prefix_cmd.
3022 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
3023 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
3024 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
3025 add_basic_prefix_cmd, add_show_prefix_cmd.
3026 * breakpoint.c (save_command): Remove.
3027 (_initialize_breakpoint): Use add_basic_prefix_cmd.
3028 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
3029 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
3030 add_show_prefix_cmd.
3031 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
3032 (set_ada_command, show_ada_command): Remove.
3033 (_initialize_ada_language): Use add_basic_prefix_cmd,
3034 add_show_prefix_cmd.
3035 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
3036
3037 2020-04-16 Kamil Rytarowski <n54@gmx.com>
3038
3039 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
3040 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
3041
3042 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3043
3044 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
3045 warning messages.
3046
3047 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
3048
3049 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
3050 import table is not at beginning of .idata section.
3051
3052 2020-04-16 Pedro Alves <palves@redhat.com>
3053
3054 * inferior.c (delete_inferior): Use delete operator directly
3055 instead of delete_program_space.
3056 * progspace.c (add_program_space): New, factored out from
3057 program_space::program_space.
3058 (remove_program_space): New, factored out from
3059 delete_program_space.
3060 (program_space::program_space): Remove intro comment. Rewrite.
3061 (program_space::~program_space): Remove intro comment. Call
3062 remove_program_space.
3063 (delete_program_space): Delete.
3064 * progspace.h (program_space::program_space): Make explicit. Move
3065 intro comment here, adjusted.
3066 (program_space::~program_space): Move intro comment here,
3067 adjusted.
3068 (delete_program_space): Remove.
3069
3070 2020-04-16 Tom Tromey <tromey@adacore.com>
3071
3072 * windows-nat.c (windows_nat::handle_access_violation): New
3073 function.
3074 * nat/windows-nat.h (handle_access_violation): Declare.
3075 * nat/windows-nat.c (handle_exception): Move Cygwin code to
3076 windows-nat.c. Call handle_access_violation.
3077
3078 2020-04-16 Tom de Vries <tdevries@suse.de>
3079
3080 PR symtab/25791
3081 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
3082 CUs without psymtab.
3083
3084 2020-04-16 Kevin Buettner <kevinb@redhat.com>
3085
3086 * python/python.c (do_start_initialization): Don't call
3087 PyEval_InitThreads for Python 3.9 and beyond.
3088
3089 2020-04-15 Kamil Rytarowski <n54@gmx.com>
3090
3091 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
3092 thread functions.
3093 (obsd_nat_target::wait): Likewise.
3094
3095 2020-04-15 Tom Tromey <tromey@adacore.com>
3096
3097 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3098 (DEBUG_EXCEPT): Use debug_printf.
3099
3100 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
3101
3102 * completer.c (class completion_tracker::completion_hash_entry)
3103 <hash_name>: New member function.
3104 (completion_tracker::discard_completions): New callback to hash a
3105 completion_hash_entry, pass this to htab_create_alloc.
3106
3107 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
3108
3109 * windows-nat.c (windows_make_so): Warn rather than stopping with
3110 an error if realpath() fails.
3111
3112 2020-04-14 Kamil Rytarowski <n54@gmx.com>
3113
3114 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
3115 (nbsd_nat_target::info_proc): Add do_status.
3116
3117 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
3118 Tom de Vries <tdevries@suse.de>
3119
3120 PR symtab/25718
3121 * psympriv.h (struct partial_symtab::read_symtab)
3122 (struct partial_symtab::expand_psymtab)
3123 (struct partial_symtab::read_dependencies): Update comments.
3124 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
3125 read_symtab for includer.
3126 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
3127 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
3128 (struct dwarf2_include_psymtab::m_readin): Remove.
3129 (struct dwarf2_include_psymtab::includer): New member function.
3130 (dwarf2_psymtab::expand_psymtab): Assert !readin.
3131
3132 2020-04-14 Tom de Vries <tdevries@suse.de>
3133
3134 PR symtab/25720
3135 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
3136 with NULL symbol_matcher and lookup_name.
3137 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
3138 and lookup_name.
3139 * dwarf2/read.c (dw2_expand_symtabs_matching)
3140 (dw2_debug_names_expand_symtabs_matching): Same.
3141 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
3142 Make lookup_name a pointer. Update comment.
3143 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
3144 lookup_name being a pointer.
3145 * symfile.c (expand_symtabs_matching): Same.
3146 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
3147 * linespec.c (iterate_over_all_matching_symtabs): Same.
3148
3149 2020-04-13 Tom Tromey <tom@tromey.com>
3150
3151 * run-on-main-thread.c: Update include.
3152 * unittests/main-thread-selftests.c: Update include.
3153 * tui/tui-win.c: Update include.
3154 * tui/tui-io.c: Update include.
3155 * tui/tui-interp.c: Update include.
3156 * tui/tui-hooks.c: Update include.
3157 * top.h: Update include.
3158 * top.c: Update include.
3159 * ser-base.c: Update include.
3160 * remote.c: Update include.
3161 * remote-notif.c: Update include.
3162 * remote-fileio.c: Update include.
3163 * record-full.c: Update include.
3164 * record-btrace.c: Update include.
3165 * python/python.c: Update include.
3166 * posix-hdep.c: Update include.
3167 * mingw-hdep.c: Update include.
3168 * mi/mi-main.c: Update include.
3169 * mi/mi-interp.c: Update include.
3170 * main.c: Update include.
3171 * linux-nat.c: Update include.
3172 * interps.c: Update include.
3173 * infrun.c: Update include.
3174 * inf-loop.c: Update include.
3175 * event-top.c: Update include.
3176 * event-loop.c: Move to ../gdbsupport/.
3177 * event-loop.h: Move to ../gdbsupport/.
3178 * async-event.h: Update include.
3179 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
3180
3181 2020-04-13 Tom Tromey <tom@tromey.com>
3182
3183 * tui/tui-win.c: Include async-event.h.
3184 * remote.c: Include async-event.h.
3185 * remote-notif.c: Include async-event.h.
3186 * record-full.c: Include async-event.h.
3187 * record-btrace.c: Include async-event.h.
3188 * infrun.c: Include async-event.h.
3189 * event-top.c: Include async-event.h.
3190 * event-loop.h: Move some declarations to async-event.h.
3191 * event-loop.c: Don't include ser-event.h or top.h. Move some
3192 code to async-event.c.
3193 * async-event.h: New file.
3194 * async-event.c: New file.
3195 * Makefile.in (COMMON_SFILES): Add async-event.c.
3196 (HFILES_NO_SRCDIR): Add async-event.h.
3197
3198 2020-04-13 Tom Tromey <tom@tromey.com>
3199
3200 * utils.c (flush_streams): New function.
3201 * event-loop.c (gdb_wait_for_event): Call flush_streams.
3202
3203 2020-04-13 Tom Tromey <tom@tromey.com>
3204
3205 * event-loop.c (handle_file_event): Use warning, not
3206 printf_unfiltered.
3207
3208 2020-04-13 Tom Tromey <tom@tromey.com>
3209
3210 * event-loop.c: Include <chrono>.
3211
3212 2020-04-13 Tom Tromey <tom@tromey.com>
3213
3214 * gdb_select.h: Move to ../gdbsupport/.
3215 * event-loop.c: Update include path.
3216 * top.c: Update include path.
3217 * ser-base.c: Update include path.
3218 * ui-file.c: Update include path.
3219 * ser-tcp.c: Update include path.
3220 * guile/scm-ports.c: Update include path.
3221 * posix-hdep.c: Update include path.
3222 * ser-unix.c: Update include path.
3223 * gdb_usleep.c: Update include path.
3224 * mingw-hdep.c: Update include path.
3225 * inflow.c: Update include path.
3226 * infrun.c: Update include path.
3227 * event-top.c: Update include path.
3228
3229 2020-04-13 Tom Tromey <tom@tromey.com>
3230
3231 * configure: Rebuild.
3232 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
3233
3234 2020-04-13 Tom Tromey <tom@tromey.com>
3235
3236 * event-loop.h (start_event_loop): Don't declare.
3237 * event-loop.c (start_event_loop): Move...
3238 * main.c (start_event_loop): ...here. Now static.
3239
3240 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
3241
3242 * MAINTAINERS: Update my email address.
3243
3244 2020-04-12 Kamil Rytarowski <n54@gmx.com>
3245
3246 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
3247 IP_ALL.
3248
3249 2020-04-12 Kamil Rytarowski <n54@gmx.com>
3250
3251 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
3252 (nbsd_nat_target::info_proc): Add do_cmdline.
3253
3254 2020-04-12 Kamil Rytarowski <n54@gmx.com>
3255
3256 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
3257 (nbsd_nat_target::info_proc): Add do_cwd.
3258
3259 2020-04-12 Kamil Rytarowski <n54@gmx.com>
3260
3261 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
3262
3263 2020-04-11 Kamil Rytarowski <n54@gmx.com>
3264
3265 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
3266 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
3267 (nbsd_nat_target::info_proc): New functions.
3268 * nbsd-nat.c (kinfo_get_vmmap): New function.
3269 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
3270 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
3271 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
3272 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
3273 functions.
3274 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
3275 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
3276 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
3277 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
3278 (KINFO_VME_FLAG_GROWS_DOWN): New.
3279
3280 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
3281
3282 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
3283 bit shift.
3284
3285 2020-04-10 Tom Tromey <tromey@adacore.com>
3286
3287 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
3288
3289 2020-04-10 Tom Tromey <tromey@adacore.com>
3290
3291 * symtab.c (get_symbol_address, get_msymbol_address): Skip
3292 separate debug files.
3293
3294 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
3295
3296 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
3297 Move to...
3298 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
3299 ... here.
3300 * windows-nat.c (windows_nat_target::get_windows_debug_event):
3301 Check for STATUS_WX86_BREAKPOINT.
3302 (windows_nat_target::wait): Same.
3303
3304 2020-04-10 Tom de Vries <tdevries@suse.de>
3305
3306 PR cli/25808
3307 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
3308
3309 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
3310
3311 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
3312 (Write After Approval): Remove Tom de Vries.
3313
3314 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
3315
3316 revert partially:
3317 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3318
3319 * buildsym.c (record_line): Fix undefined behavior and preserve
3320 lines at eof.
3321
3322 2020-04-09 Kamil Rytarowski <n54@gmx.com>
3323
3324 * auxv.h (svr4_auxv_parse): New.
3325 * auxv.c (default_auxv_parse): Split into default_auxv_parse
3326 and generic_auxv_parse.
3327 (svr4_auxv_parse): Add.
3328 * obsd-tdep.c: Include "auxv.h".
3329 (obsd_auxv_parse): Remove.
3330 (obsd_init_abi): Remove comment.
3331 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
3332 from `obsd_auxv_parse' to `svr4_auxv_parse'.
3333 * nbsd-tdep.c: Include "auxv.h".
3334 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
3335
3336 2020-04-08 Tom Tromey <tromey@adacore.com>
3337
3338 * nat/windows-nat.h (last_wait_event): Don't declare.
3339 (wait_for_debug_event): Update comment.
3340 * nat/windows-nat.c (last_wait_event): Now static.
3341
3342 2020-04-08 Tom Tromey <tromey@adacore.com>
3343
3344 * windows-nat.c (wait_for_debug_event): Move to
3345 nat/windows-nat.c.
3346 * nat/windows-nat.h (wait_for_debug_event): Declare.
3347 * nat/windows-nat.c (wait_for_debug_event): Move from
3348 windows-nat.c. No longer static.
3349
3350 2020-04-08 Tom Tromey <tromey@adacore.com>
3351
3352 * windows-nat.c (get_windows_debug_event): Use
3353 fetch_pending_stop.
3354 * nat/windows-nat.h (fetch_pending_stop): Declare.
3355 * nat/windows-nat.c (fetch_pending_stop): New function.
3356
3357 2020-04-08 Tom Tromey <tromey@adacore.com>
3358
3359 * windows-nat.c (windows_continue): Use matching_pending_stop and
3360 continue_last_debug_event.
3361 * nat/windows-nat.h (matching_pending_stop)
3362 (continue_last_debug_event): Declare.
3363 * nat/windows-nat.c (DEBUG_EVENTS): New define.
3364 (matching_pending_stop, continue_last_debug_event): New
3365 functions.
3366
3367 2020-04-08 Tom Tromey <tromey@adacore.com>
3368
3369 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
3370 (handle_exception_result): Move to nat/windows-nat.h.
3371 (DEBUG_EXCEPTION_SIMPLE): Remove.
3372 (windows_nat::handle_ms_vc_exception): New function.
3373 (handle_exception): Move to nat/windows-nat.c.
3374 (get_windows_debug_event): Update.
3375 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
3376 nat/windows-nat.c.
3377 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
3378 (handle_exception_result): Move from windows-nat.c.
3379 (handle_exception): Declare.
3380 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
3381 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
3382 windows-nat.c.
3383
3384 2020-04-08 Tom Tromey <tromey@adacore.com>
3385
3386 * windows-nat.c (exception_count, event_count): Remove.
3387 (handle_exception, get_windows_debug_event)
3388 (do_initial_windows_stuff): Update.
3389
3390 2020-04-08 Tom Tromey <tromey@adacore.com>
3391
3392 * windows-nat.c (windows_nat::handle_load_dll)
3393 (windows_nat::handle_unload_dll): Rename. No longer static.
3394 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
3395 Declare.
3396
3397 2020-04-08 Tom Tromey <tromey@adacore.com>
3398
3399 * complaints.h (stop_whining): Declare at top-level.
3400 (complaint): Don't declare stop_whining.
3401
3402 2020-04-08 Tom Tromey <tromey@adacore.com>
3403
3404 * windows-nat.c (windows_nat::handle_output_debug_string):
3405 Rename. No longer static.
3406 * nat/windows-nat.h (handle_output_debug_string): Declare.
3407
3408 2020-04-08 Tom Tromey <tromey@adacore.com>
3409
3410 * windows-nat.c (current_process_handle, current_process_id)
3411 (main_thread_id, last_sig, current_event, last_wait_event)
3412 (current_windows_thread, desired_stop_thread_id, pending_stops)
3413 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
3414 (display_selectors, fake_create_process)
3415 (get_windows_debug_event): Update.
3416 * nat/windows-nat.h (current_process_handle, current_process_id)
3417 (main_thread_id, last_sig, current_event, last_wait_event)
3418 (current_windows_thread, desired_stop_thread_id, pending_stops)
3419 (struct pending_stop, siginfo_er): Move from windows-nat.c.
3420 * nat/windows-nat.c (current_process_handle, current_process_id)
3421 (main_thread_id, last_sig, current_event, last_wait_event)
3422 (current_windows_thread, desired_stop_thread_id, pending_stops)
3423 (siginfo_er): New globals. Move from windows-nat.c.
3424
3425 2020-04-08 Tom Tromey <tromey@adacore.com>
3426
3427 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
3428 (handle_load_dll): Update.
3429 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
3430
3431 2020-04-08 Tom Tromey <tromey@adacore.com>
3432
3433 * windows-nat.c (enum thread_disposition_type): Move to
3434 nat/windows-nat.h.
3435 (windows_nat::thread_rec): Rename from thread_rec. No longer
3436 static.
3437 (windows_add_thread, windows_nat_target::fetch_registers)
3438 (windows_nat_target::store_registers, handle_exception)
3439 (windows_nat_target::resume, get_windows_debug_event)
3440 (windows_nat_target::get_tib_address)
3441 (windows_nat_target::thread_name)
3442 (windows_nat_target::thread_alive): Update.
3443 * nat/windows-nat.h (enum thread_disposition_type): Move from
3444 windows-nat.c.
3445 (thread_rec): Declare.
3446
3447 2020-04-08 Tom Tromey <tromey@adacore.com>
3448
3449 * windows-nat.c: Add "using namespace".
3450 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
3451 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
3452
3453 2020-04-08 Tom Tromey <tromey@adacore.com>
3454
3455 * nat/windows-nat.h (struct windows_thread_info): Declare
3456 destructor.
3457 * nat/windows-nat.c (~windows_thread_info): New.
3458
3459 2020-04-08 Tom Tromey <tromey@adacore.com>
3460
3461 PR gdb/22992
3462 * windows-nat.c (current_event): Update comment.
3463 (last_wait_event, desired_stop_thread_id): New globals.
3464 (struct pending_stop): New.
3465 (pending_stops): New global.
3466 (windows_nat_target) <stopped_by_sw_breakpoint>
3467 <supports_stopped_by_sw_breakpoint>: New methods.
3468 (windows_fetch_one_register): Add assertions. Adjust PC.
3469 (windows_continue): Handle pending stops. Suspend other threads
3470 when stepping. Use last_wait_event
3471 (wait_for_debug_event): New function.
3472 (get_windows_debug_event): Use wait_for_debug_event. Handle
3473 pending stops. Queue spurious stops.
3474 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
3475 (windows_nat_target::kill): Use wait_for_debug_event.
3476 * nat/windows-nat.h (struct windows_thread_info)
3477 <stopped_at_software_breakpoint>: New field.
3478 * nat/windows-nat.c (windows_thread_info::resume): Clear
3479 stopped_at_software_breakpoint.
3480
3481 2020-04-08 Tom Tromey <tromey@adacore.com>
3482
3483 * windows-nat.c (enum thread_disposition_type): New.
3484 (thread_rec): Replace "get_context" parameter with "disposition";
3485 change type.
3486 (windows_add_thread, windows_nat_target::fetch_registers)
3487 (windows_nat_target::store_registers, handle_exception)
3488 (windows_nat_target::resume, get_windows_debug_event)
3489 (windows_nat_target::get_tib_address)
3490 (windows_nat_target::thread_name)
3491 (windows_nat_target::thread_alive): Update.
3492
3493 2020-04-08 Tom Tromey <tromey@adacore.com>
3494
3495 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
3496 (windows_continue): Use windows_continue::resume.
3497 * nat/windows-nat.h (struct windows_thread_info) <suspend,
3498 resume>: Declare new methods.
3499 * nat/windows-nat.c: New file.
3500 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
3501
3502 2020-04-08 Tom Tromey <tromey@adacore.com>
3503
3504 * windows-nat.c (windows_add_thread, windows_delete_thread)
3505 (windows_nat_target::fetch_registers)
3506 (windows_nat_target::store_registers, fake_create_process)
3507 (windows_nat_target::resume, windows_nat_target::resume)
3508 (get_windows_debug_event, windows_nat_target::wait)
3509 (windows_nat_target::pid_to_str)
3510 (windows_nat_target::get_tib_address)
3511 (windows_nat_target::get_ada_task_ptid)
3512 (windows_nat_target::thread_name)
3513 (windows_nat_target::thread_alive): Use lwp, not tid.
3514
3515 2020-04-08 Tom Tromey <tromey@adacore.com>
3516
3517 * windows-nat.c (handle_exception)
3518 (windows_nat_target::thread_name): Update.
3519 * nat/windows-nat.h (windows_thread_info): Remove destructor.
3520 <name>: Now unique_xmalloc_ptr.
3521
3522 2020-04-08 Tom Tromey <tromey@adacore.com>
3523
3524 * windows-nat.c (thread_rec)
3525 (windows_nat_target::fetch_registers): Update.
3526 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
3527 Update comment.
3528 <debug_registers_changed, reload_context>: Now bool.
3529
3530 2020-04-08 Tom Tromey <tromey@adacore.com>
3531
3532 * windows-nat.c (windows_add_thread): Use new.
3533 (windows_init_thread_list, windows_delete_thread): Use delete.
3534 (get_windows_debug_event): Update.
3535 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
3536 destructor, and initializers.
3537
3538 2020-04-08 Tom Tromey <tromey@adacore.com>
3539
3540 * windows-nat.c (struct windows_thread_info): Remove.
3541 * nat/windows-nat.h: New file.
3542
3543 2020-04-08 Tom Tromey <tromey@adacore.com>
3544
3545 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
3546 (thread_rec, windows_add_thread, windows_delete_thread)
3547 (windows_continue): Update.
3548
3549 2020-04-08 Tom Tromey <tromey@adacore.com>
3550
3551 * windows-nat.c (struct windows_thread_info): Remove typedef.
3552 (thread_head): Remove.
3553 (thread_list): New global.
3554 (thread_rec, windows_add_thread, windows_init_thread_list)
3555 (windows_delete_thread, windows_continue): Update.
3556
3557 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3558
3559 * windows-tdep.h (windows_init_abi): Add comment.
3560 (cygwin_init_abi): New declaration.
3561 * windows-tdep.c: Split signal enumeration in two, one for
3562 Windows and one for Cygwin.
3563 (windows_gdb_signal_to_target): Only deal with signal of the
3564 Windows OS ABI.
3565 (cygwin_gdb_signal_to_target): New function.
3566 (windows_init_abi): Rename to windows_init_abi_common, don't set
3567 gdb_signal_to_target gdbarch method. Add new new function with
3568 this name.
3569 (cygwin_init_abi): New function.
3570 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
3571 comment. Don't call windows_init_abi.
3572 (amd64_windows_init_abi): Add comment, call windows_init_abi.
3573 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
3574 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
3575 i386_windows_init_abi_common, don't call windows_init_abi. Add
3576 a new function of this name.
3577 (i386_cygwin_init_abi): New function.
3578 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
3579 OS ABI Cygwin.
3580
3581 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
3582
3583 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
3584 parameter.c.
3585 (dwarf2_read_gdb_index): Update.
3586
3587 2020-04-07 Kamil Rytarowski <n54@gmx.com>
3588
3589 * nbsd-tdep.c: Include "objfiles.h".
3590 (nbsd_skip_solib_resolver): New.
3591 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
3592
3593 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3594
3595 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
3596 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
3597 with DW_LLE_base_addressx are being emitted in DWARFv5.
3598 Add the newly added kind DW_LOC_OFFSET_PAIR also.
3599 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
3600 unsigned integer.
3601
3602 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3603
3604 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
3605 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
3606 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
3607 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
3608 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
3609 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
3610 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
3611
3612
3613 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
3614
3615 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
3616 (read_loclist_index): New function definition.
3617 (lookup_loclist_base): New function definition.
3618 (read_loclist_header): New function definition.
3619 (dwarf2_cu): Add loclist_base and loclist_header field.
3620 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
3621 (read_full_die_1): Read the value of DW_AT_loclists_base.
3622 (read_attribute_reprocess): Handle DW_FORM_loclistx.
3623 (read_attribute_value): Handle DW_FORM_loclistx.
3624 (skip_one_die): Handle DW_FORM_loclistx.
3625 (loclist_header): New structure declaration.
3626 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
3627
3628 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
3629
3630 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
3631 constructor. Remove `addr` parameter from other constructor and
3632 add `per_cu` parameter.
3633 * dwarf2/read.c (create_partial_symtab): Update.
3634
3635 2020-04-07 Tom de Vries <tdevries@suse.de>
3636
3637 PR symtab/25796
3638 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
3639 (partial_die_info::fixup): Inherit has_const_value.
3640
3641 2020-04-07 Tom de Vries <tdevries@suse.de>
3642
3643 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
3644 symbols without address.
3645
3646 2020-04-06 Kamil Rytarowski <n54@gmx.com>
3647
3648 * nbsd-nat.h (struct thread_info): Add forward declaration.
3649 (nbsd_nat_target::thread_alive): Add.
3650 (nbsd_nat_target::thread_name): Likewise.
3651 (nbsd_nat_target::update_thread_list): Likewise.
3652 (update_thread_list::post_attach): Likewise.
3653 (post_attach::pid_to_str): Likewise.
3654 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
3655 (nbsd_thread_lister): Add.
3656 (nbsd_nat_target::thread_alive): Likewise.
3657 (nbsd_nat_target::thread_name): Likewise.
3658 (nbsd_add_threads): Likewise.
3659 (update_thread_list::post_attach): Likewise.
3660 (nbsd_nat_target::update_thread_list): Likewise.
3661 (post_attach::pid_to_str): Likewise.
3662
3663 2020-04-06 Tom Tromey <tromey@adacore.com>
3664
3665 * ada-valprint.c (print_variant_part): Extract the variant field.
3666 (print_field_values): Use the field as the outer value when
3667 recursing.
3668
3669 2020-04-06 Tom Tromey <tromey@adacore.com>
3670
3671 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
3672 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
3673 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
3674 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
3675 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
3676
3677 2020-04-06 Tom Tromey <tromey@adacore.com>
3678
3679 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
3680 TYPE_CODE_ERROR.
3681
3682 2020-04-06 Kamil Rytarowski <n54@gmx.com>
3683
3684 * nbsd-tdep.c: Include "gdbarch.h".
3685 Define enum with NetBSD signal numbers.
3686 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
3687 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
3688 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
3689 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
3690 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
3691 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
3692 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
3693 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3694 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
3695 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
3696 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
3697 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
3698
3699 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
3700
3701 PR gdb/25325
3702 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
3703
3704 2020-04-03 Tom Tromey <tromey@adacore.com>
3705
3706 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
3707 Read constant block.
3708
3709 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3710
3711 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
3712 (gdb_bfd_get_full_section_contents): New declaration.
3713 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
3714 * windows-tdep.c (is_linked_with_cygwin_dll): Use
3715 gdb_bfd_get_full_section_contents.
3716
3717 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
3718
3719 * exec.c (build_section_table): Replace internal_error with
3720 gdb_assert.
3721 (section_table_xfer_memory_partial): Likewise.
3722 * mdebugread.c (parse_partial_symbols): Likewise.
3723 * psymtab.c (lookup_partial_symbol): Likewise.
3724 * utils.c (wrap_here): Likewise.
3725
3726 2020-04-02 Tom Tromey <tromey@adacore.com>
3727
3728 * f-lang.c (build_fortran_types): Use arch_type to initialize
3729 builtin_complex_s32 in the TYPE_CODE_ERROR case.
3730
3731 2020-04-02 Tom Tromey <tromey@adacore.com>
3732
3733 * dwarf2/read.c (partial_die_info::read): Do not create a vector
3734 of attributes.
3735
3736 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
3737 Bernd Edlinger <bernd.edlinger@hotmail.de>
3738 Tom Tromey <tromey@adacore.com>
3739
3740 * buildsym.c (buildsym_compunit::record_line): Remove
3741 deduplication code.
3742
3743 2020-04-02 Tom de Vries <tdevries@suse.de>
3744
3745 PR ada/24671
3746 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
3747
3748 2020-04-02 Tom de Vries <tdevries@suse.de>
3749
3750 * dwarf2/read.c (dwarf2_gdb_index_functions,
3751 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
3752 NULL.
3753 * psymtab.c (psym_lookup_global_symbol_language): New function.
3754 (psym_functions): Init psym_lookup_global_symbol_language with
3755 psym_lookup_global_symbol_language.
3756 * symfile-debug.c (debug_sym_quick_functions): Init
3757 lookup_global_symbol_language with NULL.
3758 * symfile.c (set_initial_language): Remove fixme comment.
3759 * symfile.h (struct quick_symbol_functions): Add
3760 lookup_global_symbol_language.
3761 * symtab.c (find_quick_global_symbol_language): New function.
3762 (find_main_name): Use find_quick_global_symbol_language.
3763
3764 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
3765
3766 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
3767
3768 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3769
3770 * buildsym.c (record_line): Fix undefined behavior and preserve
3771 lines at eof.
3772
3773 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
3774
3775 * buildsym.c (record_line): Fix the resizing condition.
3776
3777 2020-04-01 Tom Tromey <tom@tromey.com>
3778
3779 * value.h (value_literal_complex): Add comment.
3780 * valops.c (value_literal_complex): Refer to value.h.
3781
3782 2020-04-01 Tom Tromey <tom@tromey.com>
3783
3784 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
3785 (scalar_type): New rule, from typebase.
3786 (typebase): Use scalar_type. Recognize complex types.
3787 (field_name): Handle FLOAT_KEYWORD.
3788 (ident_tokens): Add _Complex and __complex__.
3789
3790 2020-04-01 Tom Tromey <tom@tromey.com>
3791
3792 PR exp/25299:
3793 * valarith.c (promotion_type, complex_binop): New functions.
3794 (scalar_binop): Handle complex numbers. Use promotion_type.
3795 (value_pos, value_neg, value_complement): Handle complex numbers.
3796
3797 2020-04-01 Tom Tromey <tom@tromey.com>
3798
3799 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
3800 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
3801 (parse_number): Handle complex numbers.
3802
3803 2020-04-01 Tom Tromey <tom@tromey.com>
3804
3805 * c-valprint.c (c_decorations): Change complex suffix to "i".
3806
3807 2020-04-01 Tom Tromey <tom@tromey.com>
3808
3809 * valprint.c (generic_value_print_complex): Use accessors.
3810 * value.h (value_real_part, value_imaginary_part): Declare.
3811 * valops.c (value_real_part, value_imaginary_part): New
3812 functions.
3813 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
3814
3815 2020-04-01 Tom Tromey <tom@tromey.com>
3816
3817 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
3818 (read_range_type): Update.
3819 * mdebugread.c (basic_type): Update.
3820 * go-lang.c (build_go_types): Use init_complex_type.
3821 * gdbtypes.h (struct main_type) <complex_type>: New member.
3822 (init_complex_type): Update.
3823 (arch_complex_type): Don't declare.
3824 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
3825 Make name if none given. Use alloc_type_copy. Look for cached
3826 complex type.
3827 (arch_complex_type): Remove.
3828 (gdbtypes_post_init): Use init_complex_type.
3829 * f-lang.c (build_fortran_types): Use init_complex_type.
3830 * dwarf2/read.c (read_base_type): Update.
3831 * d-lang.c (build_d_types): Use init_complex_type.
3832 * ctfread.c (read_base_type): Update.
3833
3834 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3835
3836 * infrun.c (stop_all_threads): Update assertion, plus when
3837 stopping threads, take into account that we might be trying
3838 to stop an all-stop target.
3839 (stop_waiting): Call 'stop_all_threads' if there exists a
3840 non-stop target.
3841
3842 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3843
3844 * target.h (exists_non_stop_target): New function declaration.
3845 * target.c (exists_non_stop_target): New function.
3846
3847 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
3848
3849 PR gdb/24789
3850 * eval.c (is_integral_or_integral_reference): New function.
3851 (evaluate_subexp_standard): Allow integer references in
3852 pointer arithmetic.
3853
3854 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3855
3856 * remote.c (remote_target::remote_parse_stop_reply): Remove the
3857 check for no ptid in the stop reply when the target is non-stop.
3858
3859 2020-04-01 Tom Tromey <tromey@adacore.com>
3860
3861 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
3862 "name" parameter to rvalue reference. Initialize m_name_holder.
3863 <lookup_name_info>: New overloads.
3864 <name>: Return gdb::string_view.
3865 <c_str>: New method.
3866 <make_ignore_params>: Update.
3867 <search_name_hash>: Update.
3868 <language_lookup_name>: Return const char *.
3869 <m_name>: Change type.
3870 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
3871 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
3872 (lookup_name_info::match_any): Update.
3873 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
3874 Update.
3875 * minsyms.c (linkage_name_str): Update.
3876 * language.c (default_symbol_name_matcher): Update.
3877 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
3878 Update.
3879 * ada-lang.c (ada_fold_name): Change parameter to string_view.
3880 (ada_lookup_name_info::ada_lookup_name_info): Update.
3881 (literal_symbol_name_matcher): Update.
3882
3883 2020-04-01 Tom Tromey <tromey@adacore.com>
3884
3885 * psymtab.c (psymtab_search_name): Remove function.
3886 (psym_lookup_symbol): Create search name and lookup name here.
3887 (lookup_partial_symbol): Remove "name" parameter; add
3888 lookup_name.
3889 (psym_expand_symtabs_for_function): Update.
3890
3891 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
3892
3893 PR tui/25597:
3894 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
3895
3896 2020-03-31 Tom Tromey <tromey@adacore.com>
3897
3898 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
3899 memcpy.
3900
3901 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
3902
3903 * features/riscv/32bit-csr.xml: Regenerated.
3904 * features/riscv/64bit-csr.xml: Regenerated.
3905
3906 2020-03-30 Tom Tromey <tromey@adacore.com>
3907
3908 * ada-valprint.c (print_variant_part): Update.
3909 * ada-lang.h (ada_which_variant_applies): Update.
3910 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
3911 outer_valaddr parameters; replace with "outer" value parameter.
3912 (to_fixed_variant_branch_type): Update.
3913
3914 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3915
3916 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
3917 <list>. Remove inclusion of observable.h.
3918 (PPC_DEBUG_CURRENT_VERSION): Move up define.
3919 (struct arch_lwp_info): New struct.
3920 (class ppc_linux_dreg_interface): New class.
3921 (struct ppc_linux_process_info): New struct.
3922 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
3923 <low_new_clone, low_forget_process, low_prepare_to_resume>
3924 <copy_thread_dreg_state, mark_thread_stale>
3925 <mark_debug_registers_changed, register_hw_breakpoint>
3926 <clear_hw_breakpoint, register_wp, clear_wp>
3927 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
3928 <num_memory_accesses, get_trigger_type>
3929 <create_watchpoint_request, hwdebug_point_cmp>
3930 <init_arch_lwp_info, get_arch_lwp_info>
3931 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
3932 methods.
3933 <struct ptid_hash>: New inner struct.
3934 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
3935 members.
3936 (saved_dabr_value, hwdebug_info, max_slots_number)
3937 (struct hw_break_tuple, struct thread_points, ppc_threads)
3938 (have_ptrace_hwdebug_interface)
3939 (hwdebug_find_thread_points_by_tid)
3940 (hwdebug_insert_point, hwdebug_remove_point): Remove.
3941 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
3942 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
3943 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
3944 use m_dreg_interface.
3945 (hwdebug_point_cmp): Change to...
3946 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
3947 reference arguments instead of pointers.
3948 (ppc_linux_nat_target::ranged_break_num_registers): Use
3949 m_dreg_interface.
3950 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
3951 m_dreg_interface. Call register_hw_breakpoint.
3952 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
3953 m_dreg_interface. Call clear_hw_breakpoint.
3954 (get_trigger_type): Change to...
3955 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
3956 comment.
3957 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
3958 use m_dreg_interface. Call register_hw_breakpoint.
3959 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
3960 use m_dreg_interface. Call clear_hw_breakpoint.
3961 (can_use_watchpoint_cond_accel): Change to...
3962 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
3963 method. Update comment, use m_dreg_interface and
3964 m_process_info.
3965 (calculate_dvc): Change to...
3966 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
3967 m_dreg_interface.
3968 (num_memory_accesses): Change to...
3969 (ppc_linux_nat_target::num_memory_accesses): ...this method.
3970 (check_condition): Change to...
3971 (ppc_linux_nat_target::check_condition): ...this method.
3972 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
3973 comment, use m_dreg_interface.
3974 (create_watchpoint_request): Change to...
3975 (ppc_linux_nat_target::create_watchpoint_request): ...this
3976 method. Use m_dreg_interface.
3977 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
3978 m_dreg_interface. Call register_hw_breakpoint or register_wp.
3979 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
3980 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
3981 (ppc_linux_nat_target::low_forget_process)
3982 (ppc_linux_nat_target::low_new_fork)
3983 (ppc_linux_nat_target::low_new_clone)
3984 (ppc_linux_nat_target::low_delete_thread)
3985 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
3986 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
3987 only call mark_thread_stale.
3988 (ppc_linux_thread_exit): Remove.
3989 (ppc_linux_nat_target::stopped_data_address): Change to...
3990 (ppc_linux_nat_target::low_stopped_data_address): This. Add
3991 comment, use m_dreg_interface and m_thread_hw_breakpoints.
3992 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
3993 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
3994 comment. Call low_stopped_data_address.
3995 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
3996 m_dreg_interface.
3997 (ppc_linux_nat_target::masked_watch_num_registers): Use
3998 m_dreg_interface.
3999 (ppc_linux_nat_target::copy_thread_dreg_state)
4000 (ppc_linux_nat_target::mark_thread_stale)
4001 (ppc_linux_nat_target::mark_debug_registers_changed)
4002 (ppc_linux_nat_target::register_hw_breakpoint)
4003 (ppc_linux_nat_target::clear_hw_breakpoint)
4004 (ppc_linux_nat_target::register_wp)
4005 (ppc_linux_nat_target::clear_wp)
4006 (ppc_linux_nat_target::init_arch_lwp_info)
4007 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
4008 (_initialize_ppc_linux_nat): Remove observer callback.
4009
4010 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4011
4012 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
4013 (ppc_linux_nat_target::auxv_parse)
4014 (ppc_linux_nat_target::read_description)
4015 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
4016 Move up.
4017
4018 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
4019
4020 * linux-nat.h (low_new_clone): New method.
4021 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
4022
4023 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4024
4025 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
4026 (dbx_expand_psymtab): ... this.
4027 (start_psymtab): Update.
4028 * mdebugread.c (psymtab_to_symtab_1): Rename to...
4029 (mdebug_expand_psymtab): ... this.
4030 (parse_partial_symbols): Update.
4031 (new_psymtab): Update.
4032 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
4033 (xcoff_expand_psymtab): ... this.
4034 (xcoff_start_psymtab): Update.
4035
4036 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4037
4038 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
4039 <expand_dependencies>: ... this.
4040 * psymtab.c (partial_symtab::read_dependencies): Rename to...
4041 (partial_symtab::expand_dependencies): ... this.
4042 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
4043 Update.
4044 (dwarf2_psymtab::expand_psymtab): Update.
4045 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4046 * mdebugread.c (psymtab_to_symtab_1): Update.
4047 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4048
4049 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
4050
4051 * psympriv.h (discard_psymtab): Remove.
4052 * dbxread.c (dbx_end_psymtab): Update.
4053 * xcoffread.c (xcoff_end_psymtab): Update.
4054
4055 2020-03-28 Tom Tromey <tom@tromey.com>
4056
4057 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
4058 comment.
4059
4060 2020-03-28 Tom Tromey <tom@tromey.com>
4061
4062 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
4063
4064 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
4065
4066 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4067
4068 2020-03-26 John Baldwin <jhb@FreeBSD.org>
4069
4070 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
4071
4072 2020-03-26 Tom Tromey <tom@tromey.com>
4073
4074 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
4075 (mark_common_block_symbol_computed, read_tag_string_type)
4076 (attr_to_dynamic_prop, read_subrange_type): Update.
4077 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
4078 to be methods on struct attribute.
4079 (skip_one_die, process_imported_unit_die, read_namespace_alias)
4080 (read_call_site_scope, partial_die_info::read)
4081 (partial_die_info::read, lookup_die_type, follow_die_ref):
4082 Update.
4083 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
4084 from dwarf2_get_ref_die_offset.
4085 (attribute::constant_value): New method, from
4086 dwarf2_get_attr_constant_value.
4087 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
4088 Declare method.
4089 <constant_value>: New method.
4090
4091 2020-03-26 Tom Tromey <tom@tromey.com>
4092
4093 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
4094 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
4095 (dwarf_type_encoding_name): Move to stringify.c.
4096 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
4097 * dwarf2/stringify.c: New file.
4098 * dwarf2/stringify.h: New file.
4099
4100 2020-03-26 Tom Tromey <tom@tromey.com>
4101
4102 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
4103 Rewrite.
4104
4105 2020-03-26 Tom Tromey <tom@tromey.com>
4106
4107 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
4108 methods.
4109 * dwarf2/read.c (lookup_addr_base): Move to die.h.
4110 (lookup_ranges_base): Likewise.
4111 (read_cutu_die_from_dwo, read_full_die_1): Update.
4112
4113 2020-03-26 Tom Tromey <tom@tromey.com>
4114
4115 * dwarf2/read.c (read_import_statement, read_file_scope)
4116 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
4117 (read_lexical_block_scope, read_call_site_scope)
4118 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
4119 (handle_struct_member_die, process_structure_scope)
4120 (update_enumeration_type_from_children)
4121 (process_enumeration_scope, read_array_type, read_common_block)
4122 (read_namespace, read_module, read_subroutine_type): Update.
4123 (sibling_die): Remove.
4124
4125 2020-03-26 Tom Tromey <tom@tromey.com>
4126
4127 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
4128 (build_type_psymtabs_reader, read_structure_type)
4129 (read_enumeration_type, read_full_die_1): Update.
4130 (dwarf2_attr_no_follow): Move to die.h.
4131 * dwarf2/die.h (struct die_info) <attr>: New method.
4132
4133 2020-03-26 Tom Tromey <tom@tromey.com>
4134
4135 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
4136 <base_address>: Now an optional.
4137 (dwarf2_find_base_address, dwarf2_rnglists_process)
4138 (dwarf2_ranges_process, fill_in_loclist_baton)
4139 (dwarf2_symbol_mark_computed): Update.
4140
4141 2020-03-26 Tom Tromey <tom@tromey.com>
4142
4143 * dwarf2/read.c (struct die_info): Move to die.h.
4144 * dwarf2/die.h: New file.
4145
4146 2020-03-26 Tom Tromey <tom@tromey.com>
4147
4148 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
4149 * dwarf2/read.c
4150 (dwarf2_statement_list_fits_in_line_number_section_complaint):
4151 Move to line-header.c.
4152 (read_checked_initial_length_and_offset, read_formatted_entries):
4153 Likewise.
4154 (dwarf_decode_line_header): Split into two.
4155 * dwarf2/line-header.c
4156 (dwarf2_statement_list_fits_in_line_number_section_complaint):
4157 Move from read.c.
4158 (read_checked_initial_length_and_offset, read_formatted_entries):
4159 Likewise.
4160 (dwarf_decode_line_header): New function, split from read.c.
4161
4162 2020-03-26 Tom Tromey <tom@tromey.com>
4163
4164 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
4165 Declare method.
4166 * dwarf2/read.c (read_attribute_value): Update.
4167 (dwarf2_per_objfile::read_line_string): Rename from
4168 read_indirect_line_string.
4169 (read_formatted_entries): Update.
4170
4171 2020-03-26 Tom Tromey <tom@tromey.com>
4172
4173 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
4174 variable.
4175
4176 2020-03-26 Tom Tromey <tom@tromey.com>
4177
4178 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
4179 const.
4180 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
4181 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
4182 parameter const.
4183
4184 2020-03-26 Tom Tromey <tom@tromey.com>
4185
4186 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
4187 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
4188 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
4189 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
4190
4191 2020-03-26 Tom Tromey <tom@tromey.com>
4192
4193 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
4194 file_names_size, file_full_name, file_file_name>: Use const.
4195 <file_name_at, file_names>: Add const overload.
4196 * dwarf2/line-header.c (line_header::file_file_name)
4197 (line_header::file_full_name): Update.
4198
4199 2020-03-26 Tom Tromey <tom@tromey.com>
4200
4201 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
4202 (macro_start_file, consume_improper_spaces)
4203 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
4204 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
4205 (dwarf_decode_macros): Move to macro.c.
4206 * dwarf2/macro.c: New file.
4207 * dwarf2/macro.h: New file.
4208 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
4209
4210 2020-03-26 Tom Tromey <tom@tromey.com>
4211
4212 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
4213 method.
4214 * dwarf2/section.c: New method. From
4215 read_indirect_string_at_offset_from.
4216 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
4217 (read_indirect_string_at_offset_from): Move to section.c.
4218 (read_indirect_string_at_offset): Rewrite.
4219 (read_indirect_line_string_at_offset): Remove.
4220 (read_indirect_string, read_indirect_line_string)
4221 (dwarf_decode_macro_bytes): Update.
4222
4223 2020-03-26 Tom Tromey <tom@tromey.com>
4224
4225 * dwarf2/section.h (struct dwarf2_section_info)
4226 <overload_complaint>: Declare.
4227 (dwarf2_section_buffer_overflow_complaint): Don't declare.
4228 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
4229 Rename from dwarf2_section_buffer_overflow_complaint.
4230 * dwarf2/read.c (skip_one_die, partial_die_info::read)
4231 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
4232
4233 2020-03-26 Tom Tromey <tom@tromey.com>
4234
4235 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
4236 Declare.
4237 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
4238 Move from read.c.
4239 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
4240 to section.c.
4241
4242 2020-03-26 Tom Tromey <tom@tromey.com>
4243
4244 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
4245
4246 2020-03-26 Tom Tromey <tom@tromey.com>
4247
4248 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
4249 "builder".
4250 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
4251 parameter.
4252 (dwarf_decode_macros): Update.
4253
4254 2020-03-26 Tom Tromey <tom@tromey.com>
4255
4256 * dwarf2/read.c (read_attribute_value): Update.
4257 (read_indirect_string_from_dwz): Move to dwz.c; change into
4258 method.
4259 (dwarf_decode_macro_bytes): Update.
4260 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
4261 * dwarf2/dwz.c: New file.
4262 * Makefile.in (COMMON_SFILES): Add dwz.c.
4263
4264 2020-03-26 Tom Tromey <tom@tromey.com>
4265
4266 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
4267 * dwarf2/read.c: Add include.
4268 * dwarf2/index-write.c: Add include.
4269 * dwarf2/index-cache.c: Add include.
4270 * dwarf2/dwz.h: New file.
4271
4272 2020-03-25 Tom Tromey <tom@tromey.com>
4273
4274 * compile/compile-object-load.c (get_out_value_type): Mention
4275 correct symbol name in error message.
4276
4277 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
4278
4279 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
4280
4281 2020-03-25 Tom de Vries <tdevries@suse.de>
4282
4283 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
4284 * symmisc.c (dump_symtab_1): Print user and includes fields.
4285 (maintenance_info_symtabs): Same.
4286
4287 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
4288
4289 PR gdb/25534
4290 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
4291 (riscv_regcache_cooked_write): New function.
4292 (riscv_push_dummy_call): Use new function.
4293 (riscv_return_value): Likewise.
4294
4295 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
4296
4297 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
4298 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
4299 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
4300 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
4301 * infrun.c (follow_fork): Likewise.
4302 (follow_fork_inferior): Likewise.
4303 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
4304 * linux-nat.h (class linux_nat_target): Likewise.
4305 * remote.c (class remote_target) <follow_fork>: Likewise.
4306 (remote_target::follow_fork): Likewise.
4307 * target-delegates.c: Re-generate.
4308 * target.c (default_follow_fork): Likewise.
4309 (target_follow_fork): Likewise.
4310 * target.h (struct target_ops) <follow_fork>: Likewise.
4311 (target_follow_fork): Likewise.
4312
4313 2020-03-24 Tom de Vries <tdevries@suse.de>
4314
4315 * psymtab.c (maintenance_info_psymtabs): Print user field.
4316
4317 2020-03-20 Tom Tromey <tromey@adacore.com>
4318
4319 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
4320 const.
4321 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
4322 const.
4323
4324 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * ptrace.m4: Don't check for ptrace declaration.
4327 * config.in: Re-generate.
4328 * configure: Re-generate.
4329 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
4330 not defined.
4331
4332 2020-03-20 Kamil Rytarowski <n54@gmx.com>
4333
4334 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
4335 `PTRACE_TYPE_RET'.
4336 * i386-bsd-nat.c (gdb_ptrace): Likewise.
4337 * sparc-nat.c (gdb_ptrace): Likewise.
4338 * x86-bsd-nat.c (gdb_ptrace): Likewise.
4339
4340 2020-03-20 Tom Tromey <tromey@adacore.com>
4341
4342 * c-exp.y (lex_one_token): Fix assert.
4343
4344 2020-03-20 Tom Tromey <tromey@adacore.com>
4345
4346 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
4347 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
4348 strncpy call.
4349
4350 2020-03-20 Tom Tromey <tromey@adacore.com>
4351
4352 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
4353
4354 2020-03-20 Tom Tromey <tromey@adacore.com>
4355
4356 * ada-valprint.c (print_variant_part): Remove parameters; switch
4357 to value-based API.
4358 (print_field_values): Likewise.
4359 (ada_val_print_struct_union): Likewise.
4360 (ada_value_print_1): Update.
4361
4362 2020-03-20 Kamil Rytarowski <n54@gmx.com>
4363
4364 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
4365 nbsd_nat_target instead of inf_ptrace_target.
4366 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4367 nbsd_nat_target.
4368
4369 2020-03-20 Kamil Rytarowski <n54@gmx.com>
4370
4371 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
4372 it to the ptrace call.
4373 * (store_registers): Likewise.
4374
4375 2020-03-20 Kamil Rytarowski <n54@gmx.com>
4376
4377 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
4378 it to the ptrace call.
4379 * (store_registers): Likewise.
4380
4381 2020-03-19 Luis Machado <luis.machado@linaro.org>
4382
4383 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
4384 valid, fetch vg value from ptrace.
4385
4386 2020-03-19 Kamil Rytarowski <n54@gmx.com>
4387 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
4388 * inf-ptrace.c: Likewise.
4389 * (gdb_ptrace): Add.
4390 * (inf_ptrace_target::resume): Update.
4391 * (inf_ptrace_target::xfer_partial): Likewise.
4392 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
4393 * (inf_ptrace_peek_poke): Update.
4394
4395 2020-03-19 Kamil Rytarowski <n54@gmx.com>
4396
4397 * x86-bsd-nat.c (gdb_ptrace): New.
4398 * (x86bsd_dr_set): Add new argument `ptid'.
4399 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
4400 x86bsd_dr_set_addr): Update.
4401
4402 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
4403
4404 * remote.c (remote_target::process_stop_reply): Handle events for
4405 all threads differently.
4406
4407 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
4408
4409 * completer.c (completion_tracker::remove_completion): Define new
4410 function.
4411 * completer.h (completion_tracker::remove_completion): Declare new
4412 function.
4413 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
4414 when adding a C++ function symbol.
4415
4416 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
4417
4418 * completer.c (completion_tracker::completion_hash_entry): Define
4419 new class.
4420 (advance_to_filename_complete_word_point): Call
4421 recompute_lowest_common_denominator.
4422 (completion_tracker::completion_tracker): Call discard_completions
4423 to setup the hash table.
4424 (completion_tracker::discard_completions): Allow for being called
4425 from the constructor, pass new equal function, and element deleter
4426 when constructing the hash table. Initialise new class member
4427 variables.
4428 (completion_tracker::maybe_add_completion): Remove use of
4429 m_entries_vec, and store more information into m_entries_hash.
4430 (completion_tracker::recompute_lcd_visitor): New function, most
4431 content taken from...
4432 (completion_tracker::recompute_lowest_common_denominator):
4433 ...here, this now just visits each item in the hash calling the
4434 above visitor.
4435 (completion_tracker::build_completion_result): Remove use of
4436 m_entries_vec, call recompute_lowest_common_denominator.
4437 * completer.h (completion_tracker::have_completions): Remove use
4438 of m_entries_vec.
4439 (completion_tracker::completion_hash_entry): Declare new class.
4440 (completion_tracker::recompute_lowest_common_denominator): Change
4441 function signature.
4442 (completion_tracker::recompute_lcd_visitor): Declare new function.
4443 (completion_tracker::m_entries_vec): Delete.
4444 (completion_tracker::m_entries_hash): Initialize to NULL.
4445 (completion_tracker::m_lowest_common_denominator_valid): New
4446 member variable.
4447 (completion_tracker::m_lowest_common_denominator_max_length): New
4448 member variable.
4449
4450 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4451
4452 * regformats/regdef.h: Put reg in gdb namespace.
4453
4454 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4455
4456 * i386-bsd-nat.c (gdb_ptrace): New.
4457 * (i386bsd_fetch_inferior_registers,
4458 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
4459 * (i386bsd_fetch_inferior_registers,
4460 i386bsd_store_inferior_registers) Use gdb_ptrace.
4461
4462 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4463
4464 * amd64-bsd-nat.c (gdb_ptrace): New.
4465 * (amd64bsd_fetch_inferior_registers,
4466 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
4467 * (amd64bsd_fetch_inferior_registers,
4468 amd64bsd_store_inferior_registers) Use gdb_ptrace.
4469
4470 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4471
4472 * user-regs.c (user_reg::read): Rename to...
4473 (user_reg::xread): ...this.
4474 * (append_user_reg): Rename argument `read' to `xread'.
4475 * (user_reg_add_builtin): Likewise.
4476 * (user_reg_add): Likewise.
4477 * (value_of_user_reg): Likewise.
4478
4479 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4480
4481 * sparc-nat.c (gdb_ptrace): New.
4482 * sparc-nat.c (sparc_fetch_inferior_registers)
4483 (sparc_store_inferior_registers) Remove obsolete comment.
4484 * sparc-nat.c (sparc_fetch_inferior_registers)
4485 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
4486 * sparc-nat.c (sparc_fetch_inferior_registers)
4487 (sparc_store_inferior_registers) Use gdb_ptrace.
4488
4489 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4490
4491 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
4492 it to the ptrace call.
4493 * sh-nbsd-nat.c (store_registers): Likewise.
4494
4495 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4496
4497 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
4498 nbsd_nat_target instead of inf_ptrace_target.
4499 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4500 nbsd_nat_target.
4501
4502 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4503
4504 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
4505
4506 2020-03-17 Kamil Rytarowski <n54@gmx.com>
4507
4508 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
4509 <sys/sysctl.h>.
4510 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
4511
4512 2020-03-17 Tom de Vries <tdevries@suse.de>
4513
4514 PR gdb/23710
4515 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
4516 fields.
4517 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
4518 fields.
4519 (process_imported_unit_die): Skip import of c++ CUs.
4520
4521 2020-03-16 Tom Tromey <tom@tromey.com>
4522
4523 * p-valprint.c (pascal_object_print_value): Initialize
4524 base_value.
4525
4526 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
4527 Shahab Vahedi <shahab@synopsys.com>
4528
4529 * Makefile.in: Add arch/arc.o
4530 * configure.tgt: Likewise.
4531 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
4532 (_initialize_arc_tdep): Don't initialize old target descriptions.
4533 (arc_read_description): New function to cache target descriptions.
4534 * arc-tdep.h (arc_read_description): Add proto type.
4535 * arch/arc.c: New file.
4536 * arch/arc.h: Likewise.
4537 * features/Makefile: Replace old target descriptions with new.
4538 * features/arc-arcompact.c: Remove.
4539 * features/arc-arcompact.xml: Likewise.
4540 * features/arc-v2.c: Likewise
4541 * features/arc-v2.xml: Likewise
4542 * features/arc/aux-arcompact.xml: New file.
4543 * features/arc/aux-v2.xml: Likewise.
4544 * features/arc/core-arcompact.xml: Likewise.
4545 * features/arc/core-v2.xml: Likewise.
4546 * features/arc/aux-arcompact.c: Generate.
4547 * features/arc/aux-v2.c: Likewise.
4548 * features/arc/core-arcompact.c: Likewise.
4549 * features/arc/core-v2.c: Likewise.
4550 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
4551
4552 2020-03-16 Tom Tromey <tromey@adacore.com>
4553
4554 PR gdb/25663:
4555 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
4556 putting value into bcache.
4557
4558 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4559
4560 PR gdb/21500
4561 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
4562 to...
4563 (amd64_windows_init_abi_common): ... this. Don't set size of
4564 long type.
4565 (amd64_windows_init_abi): New function.
4566 (amd64_cygwin_init_abi): New function.
4567 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
4568 the Cygwin OS ABI.
4569 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
4570 comment.
4571
4572 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4573
4574 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
4575 * windows-tdep.c (CYGWIN_DLL_NAME): New.
4576 (pe_import_directory_entry): New struct type.
4577 (is_linked_with_cygwin_dll): New function.
4578 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
4579 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
4580 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
4581
4582 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
4585 i386_cygwin_core_osabi_sniffer.
4586
4587 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * i386-cygwin-tdep.c: Rename to...
4590 * i386-windows-tdep.c: ... this.
4591 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
4592 i386-windows-tdep.c.
4593 * configure.tgt: Likewise.
4594
4595 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
4598 * osabi.c (gdb_osabi_names): Add "Windows".
4599 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
4600 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
4601 (i386_cygwin_core_osabi_sniffer): New function, extracted from
4602 i386_cygwin_osabi_sniffer.
4603 (_initialize_i386_cygwin_tdep): Register OS ABI
4604 GDB_OSABI_WINDOWS for i386.
4605 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
4606 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
4607 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
4608 for x86-64.
4609 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
4610 when the target matches '*-*-mingw*'.
4611
4612 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4613
4614 * defs.h (enum gdb_osabi): Move to...
4615 * osabi.h (enum gdb_osabi): ... here.
4616 * gdbarch.sh: Include osabi.h in gdbarch.h.
4617 * gdbarch.h: Re-generate.
4618
4619 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
4622 function.
4623 (_initialize_amd64_windows_tdep): Register osabi sniffer.
4624
4625 2020-03-14 Tom Tromey <tom@tromey.com>
4626
4627 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
4628 for C++.
4629 (c_type_print_modifier): Likewise. Add "language" parameter.
4630 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
4631 (c_type_print_base_1): Update.
4632 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
4633 constants.
4634 * type-stack.c (type_stack::insert): Handle tp_atomic and
4635 tp_restrict.
4636 (type_stack::follow_type_instance_flags): Likewise.
4637 (type_stack::follow_types): Likewise. Merge type-following code.
4638 * c-exp.y (RESTRICT, ATOMIC): New tokens.
4639 (space_identifier, cv_with_space_id)
4640 (const_or_volatile_or_space_identifier_noopt)
4641 (const_or_volatile_or_space_identifier): Remove.
4642 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
4643 rules.
4644 (ptr_operator, typebase): Update.
4645 (enum token_flag) <FLAG_C>: New constant.
4646 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
4647 "_Atomic".
4648 (lex_one_token): Handle FLAG_C.
4649
4650 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4651
4652 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
4653 it to the ptrace call.
4654 * m68k-bsd-nat.c (store_registers): Likewise.
4655
4656 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4657
4658 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
4659 gdb_byte *.
4660 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
4661 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
4662 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
4663
4664 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4665
4666 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
4667 nbsd_nat_target instead of inf_ptrace_target.
4668 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4669 nbsd_nat_target.
4670
4671 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4672
4673 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
4674 register_t.
4675
4676 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4677
4678 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
4679 it to the ptrace call.
4680 * alpha-bsd-nat.c (store_registers): Likewise.
4681
4682 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4683
4684 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
4685 includes.
4686 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
4687 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
4688 fill_fpregset): Likewise.
4689
4690 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4691
4692 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
4693 nbsd_nat_target instead of inf_ptrace_target.
4694 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4695 nbsd_nat_target.
4696
4697 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4698
4699 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
4700 register_t.
4701
4702 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4703
4704 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
4705 it to the ptrace call.
4706 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
4707 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
4708 * arm-nbsd-nat.c (store_register): Likewise.
4709 * arm-nbsd-nat.c (store_regs): Likewise.
4710 * arm-nbsd-nat.c (store_fp_register): Likewise.
4711 * arm-nbsd-nat.c (store_fp_regs): Likewise.
4712
4713 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4714
4715 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
4716 nbsd_nat_target instead of inf_ptrace_target.
4717 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
4718 nbsd_nat_target.
4719
4720 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4721
4722 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
4723 it to the ptrace call.
4724 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
4725
4726 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4727
4728 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
4729 it to the ptrace call.
4730 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
4731
4732 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4733
4734 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
4735 gdb_byte *.
4736 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
4737
4738 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4739
4740 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
4741 instead of inf_ptrace_target.
4742 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
4743 nbsd_nat_target.
4744
4745 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4746
4747 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4748 register_t.
4749
4750 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4751
4752 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4753 register_t.
4754
4755 2020-03-14 Kamil Rytarowski <n54@gmx.com>
4756
4757 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
4758 register_t.
4759
4760 2020-03-13 Tom Tromey <tom@tromey.com>
4761
4762 * value.h (val_print): Don't declare.
4763 * valprint.h (val_print_array_elements)
4764 (val_print_scalar_formatted, generic_val_print): Don't declare.
4765 * valprint.c (generic_val_print_array): Take a struct value.
4766 (generic_val_print_ptr, generic_val_print_memberptr)
4767 (generic_val_print_bool, generic_val_print_int)
4768 (generic_val_print_char, generic_val_print_complex)
4769 (generic_val_print): Remove.
4770 (generic_value_print): Update.
4771 (do_val_print): Remove unused parameters. Don't call
4772 la_val_print.
4773 (val_print): Remove.
4774 (common_val_print): Update. Don't call value_check_printable.
4775 (val_print_scalar_formatted, val_print_array_elements): Remove.
4776 * rust-lang.c (rust_val_print): Remove.
4777 (rust_language_defn): Update.
4778 * p-valprint.c (pascal_val_print): Remove.
4779 (pascal_value_print_inner): Update.
4780 (pascal_object_print_val_fields, pascal_object_print_val):
4781 Remove.
4782 (pascal_object_print_static_field): Update.
4783 * p-lang.h (pascal_val_print): Don't declare.
4784 * p-lang.c (pascal_language_defn): Update.
4785 * opencl-lang.c (opencl_language_defn): Update.
4786 * objc-lang.c (objc_language_defn): Update.
4787 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
4788 * m2-lang.h (m2_val_print): Don't declare.
4789 * m2-lang.c (m2_language_defn): Update.
4790 * language.h (struct language_defn) <la_val_print>: Remove.
4791 * language.c (unk_lang_value_print_inner): Rename. Change
4792 argument types.
4793 (unknown_language_defn, auto_language_defn): Update.
4794 * go-valprint.c (go_val_print): Remove.
4795 * go-lang.h (go_val_print): Don't declare.
4796 * go-lang.c (go_language_defn): Update.
4797 * f-valprint.c (f_val_print): Remove.
4798 * f-lang.h (f_value_print): Don't declare.
4799 * f-lang.c (f_language_defn): Update.
4800 * d-valprint.c (d_val_print): Remove.
4801 * d-lang.h (d_value_print): Don't declare.
4802 * d-lang.c (d_language_defn): Update.
4803 * cp-valprint.c (cp_print_value_fields)
4804 (cp_print_value_fields_rtti, cp_print_value): Remove.
4805 (cp_print_static_field): Update.
4806 * c-valprint.c (c_val_print_array, c_val_print_ptr)
4807 (c_val_print_struct, c_val_print_union, c_val_print_int)
4808 (c_val_print_memberptr, c_val_print): Remove.
4809 * c-lang.h (c_val_print_array, cp_print_value_fields)
4810 (cp_print_value_fields_rtti): Don't declare.
4811 * c-lang.c (c_language_defn, cplus_language_defn)
4812 (asm_language_defn, minimal_language_defn): Update.
4813 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
4814 (ada_val_print_enum): Take a struct value.
4815 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
4816 (ada_val_print): Remove.
4817 (ada_value_print_1): Update.
4818 (printable_val_type): Remove.
4819 * ada-lang.h (ada_val_print): Don't declare.
4820 * ada-lang.c (ada_language_defn): Update.
4821
4822 2020-03-13 Tom Tromey <tom@tromey.com>
4823
4824 * valprint.c (do_val_print): Update.
4825 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
4826 a struct value.
4827 (value_to_value_object_no_release): Declare.
4828 * python/py-value.c (value_to_value_object_no_release): New
4829 function.
4830 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
4831 struct value.
4832 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
4833 function.
4834 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
4835 a struct value.
4836 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
4837 Declare.
4838 (gdbscm_apply_val_pretty_printer): Take a struct value.
4839 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
4840 value.
4841 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
4842 value.
4843 * extension-priv.h (struct extension_language_ops)
4844 <apply_val_pretty_printer>: Take a struct value.
4845 * cp-valprint.c (cp_print_value): Create a struct value.
4846 (cp_print_value): Update.
4847
4848 2020-03-13 Tom Tromey <tom@tromey.com>
4849
4850 * ada-valprint.c (print_field_values): Call common_val_print.
4851
4852 2020-03-13 Tom Tromey <tom@tromey.com>
4853
4854 * ada-valprint.c (val_print_packed_array_elements): Remove
4855 bitoffset and val parameters. Call common_val_print.
4856 (ada_val_print_string): Remove offset, address, and original_value
4857 parameters.
4858 (ada_val_print_array): Update.
4859 (ada_value_print_array): New function.
4860 (ada_value_print_1): Call it.
4861
4862 2020-03-13 Tom Tromey <tom@tromey.com>
4863
4864 * ada-valprint.c (ada_value_print): Use common_val_print.
4865
4866 2020-03-13 Tom Tromey <tom@tromey.com>
4867
4868 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
4869
4870 2020-03-13 Tom Tromey <tom@tromey.com>
4871
4872 * ada-valprint.c (ada_value_print_num): New function.
4873 (ada_value_print_1): Use it.
4874
4875 2020-03-13 Tom Tromey <tom@tromey.com>
4876
4877 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
4878
4879 2020-03-13 Tom Tromey <tom@tromey.com>
4880
4881 * ada-valprint.c (ada_value_print_ptr): New function.
4882 (ada_value_print_1): Use it.
4883
4884 2020-03-13 Tom Tromey <tom@tromey.com>
4885
4886 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
4887 call common_val_print.
4888 (ada_val_print_1): Update.
4889 (ada_value_print_1): New function.
4890 (ada_value_print_inner): Rewrite.
4891
4892 2020-03-13 Tom Tromey <tom@tromey.com>
4893
4894 * cp-valprint.c (cp_print_value_fields): Update.
4895 (cp_print_value): New function.
4896
4897 2020-03-13 Tom Tromey <tom@tromey.com>
4898
4899 * m2-valprint.c (m2_value_print_inner): Use
4900 cp_print_value_fields.
4901 * cp-valprint.c (cp_print_value_fields): New function.
4902 * c-valprint.c (c_value_print_struct): New function.
4903 (c_value_print_inner): Use c_value_print_struct.
4904 * c-lang.h (cp_print_value_fields): Declare.
4905
4906 2020-03-13 Tom Tromey <tom@tromey.com>
4907
4908 * c-valprint.c (c_value_print_array): New function.
4909 (c_value_print_inner): Use it.
4910
4911 2020-03-13 Tom Tromey <tom@tromey.com>
4912
4913 * c-valprint.c (c_value_print_memberptr): New function.
4914 (c_value_print_inner): Use it.
4915
4916 2020-03-13 Tom Tromey <tom@tromey.com>
4917
4918 * c-valprint.c (c_value_print_int): New function.
4919 (c_value_print_inner): Use it.
4920
4921 2020-03-13 Tom Tromey <tom@tromey.com>
4922
4923 * c-valprint.c (c_value_print_ptr): New function.
4924 (c_value_print_inner): Use it.
4925
4926 2020-03-13 Tom Tromey <tom@tromey.com>
4927
4928 * c-valprint.c (c_value_print_inner): Rewrite.
4929
4930 2020-03-13 Tom Tromey <tom@tromey.com>
4931
4932 * valprint.c (generic_value_print_complex): New function.
4933 (generic_value_print): Use it.
4934
4935 2020-03-13 Tom Tromey <tom@tromey.com>
4936
4937 * valprint.c (generic_val_print_float): Don't call
4938 val_print_scalar_formatted.
4939 (generic_val_print, generic_value_print): Update.
4940
4941 2020-03-13 Tom Tromey <tom@tromey.com>
4942
4943 * valprint.c (generic_value_print_char): New function
4944 (generic_value_print): Use it.
4945
4946 2020-03-13 Tom Tromey <tom@tromey.com>
4947
4948 * valprint.c (generic_value_print_int): New function.
4949 (generic_value_print): Use it.
4950
4951 2020-03-13 Tom Tromey <tom@tromey.com>
4952
4953 * valprint.c (generic_value_print_bool): New function.
4954 (generic_value_print): Use it.
4955
4956 2020-03-13 Tom Tromey <tom@tromey.com>
4957
4958 * valprint.c (generic_val_print_func): Simplify.
4959 (generic_val_print, generic_value_print): Update.
4960
4961 2020-03-13 Tom Tromey <tom@tromey.com>
4962
4963 * valprint.c (generic_val_print_flags): Remove.
4964 (generic_val_print, generic_value_print): Update.
4965 (val_print_type_code_flags): Add original_value parameter.
4966
4967 2020-03-13 Tom Tromey <tom@tromey.com>
4968
4969 * valprint.c (generic_val_print): Update.
4970 (generic_value_print): Update.
4971 * valprint.c (generic_val_print_enum): Don't call
4972 val_print_scalar_formatted.
4973
4974 2020-03-13 Tom Tromey <tom@tromey.com>
4975
4976 * valprint.c (generic_value_print): Call generic_value_print_ptr.
4977 * valprint.c (generic_value_print_ptr): New function.
4978
4979 2020-03-13 Tom Tromey <tom@tromey.com>
4980
4981 * valprint.c (generic_value_print): Rewrite.
4982
4983 2020-03-13 Tom Tromey <tom@tromey.com>
4984
4985 * p-valprint.c (pascal_object_print_value_fields)
4986 (pascal_object_print_value): New functions.
4987
4988 2020-03-13 Tom Tromey <tom@tromey.com>
4989
4990 * p-valprint.c (pascal_value_print_inner): Rewrite.
4991
4992 2020-03-13 Tom Tromey <tom@tromey.com>
4993
4994 * f-valprint.c (f_value_print_innner): Rewrite.
4995
4996 2020-03-13 Tom Tromey <tom@tromey.com>
4997
4998 * m2-valprint.c (m2_print_unbounded_array): New overload.
4999 (m2_print_unbounded_array): Update.
5000 (m2_print_array_contents): Take a struct value.
5001 (m2_value_print_inner): Rewrite.
5002
5003 2020-03-13 Tom Tromey <tom@tromey.com>
5004
5005 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
5006 (d_value_print_inner): New function.
5007 * d-lang.h (d_value_print_inner): Declare.
5008 * d-lang.c (d_language_defn): Use d_value_print_inner.
5009
5010 2020-03-13 Tom Tromey <tom@tromey.com>
5011
5012 * go-valprint.c (go_value_print_inner): New function.
5013 * go-lang.h (go_value_print_inner): Declare.
5014 * go-lang.c (go_language_defn): Use go_value_print_inner.
5015
5016 2020-03-13 Tom Tromey <tom@tromey.com>
5017
5018 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
5019 API.
5020 (rust_val_print): Rewrite.
5021 (rust_value_print_inner): New function, from rust_val_print.
5022 (rust_language_defn): Use rust_value_print_inner.
5023
5024 2020-03-13 Tom Tromey <tom@tromey.com>
5025
5026 * ada-valprint.c (ada_value_print_inner): New function.
5027 * ada-lang.h (ada_value_print_inner): Declare.
5028 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
5029
5030 2020-03-13 Tom Tromey <tom@tromey.com>
5031
5032 * f-valprint.c (f_value_print_innner): New function.
5033 * f-lang.h (f_value_print_innner): Declare.
5034 * f-lang.c (f_language_defn): Use f_value_print_innner.
5035
5036 2020-03-13 Tom Tromey <tom@tromey.com>
5037
5038 * p-valprint.c (pascal_value_print_inner): New function.
5039 * p-lang.h (pascal_value_print_inner): Declare.
5040 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
5041
5042 2020-03-13 Tom Tromey <tom@tromey.com>
5043
5044 * m2-valprint.c (m2_value_print_inner): New function.
5045 * m2-lang.h (m2_value_print_inner): Declare.
5046 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
5047
5048 2020-03-13 Tom Tromey <tom@tromey.com>
5049
5050 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
5051 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
5052 * c-valprint.c (c_value_print_inner): New function.
5053 * c-lang.h (c_value_print_inner): Declare.
5054 * c-lang.c (c_language_defn, cplus_language_defn)
5055 (asm_language_defn, minimal_language_defn): Use
5056 c_value_print_inner.
5057
5058 2020-03-13 Tom Tromey <tom@tromey.com>
5059
5060 * p-valprint.c (pascal_object_print_value_fields): Now static.
5061 * p-lang.h (pascal_object_print_value_fields): Don't declare.
5062
5063 2020-03-13 Tom Tromey <tom@tromey.com>
5064
5065 * c-valprint.c (c_val_print_array): Simplify.
5066
5067 2020-03-13 Tom Tromey <tom@tromey.com>
5068
5069 * valprint.c (value_print_array_elements): New function.
5070 * valprint.h (value_print_array_elements): Declare.
5071
5072 2020-03-13 Tom Tromey <tom@tromey.com>
5073
5074 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
5075 * mips-tdep.c (mips_print_register): Use
5076 value_print_scalar_formatted.
5077
5078 2020-03-13 Tom Tromey <tom@tromey.com>
5079
5080 * valprint.h (value_print_scalar_formatted): Declare.
5081 * valprint.c (value_print_scalar_formatted): New function.
5082
5083 2020-03-13 Tom Tromey <tom@tromey.com>
5084
5085 * valprint.h (generic_value_print): Declare.
5086 * valprint.c (generic_value_print): New function.
5087
5088 2020-03-13 Tom Tromey <tom@tromey.com>
5089
5090 * valprint.c (do_val_print): Call la_value_print_inner, if
5091 available.
5092 * rust-lang.c (rust_language_defn): Update.
5093 * p-lang.c (pascal_language_defn): Update.
5094 * opencl-lang.c (opencl_language_defn): Update.
5095 * objc-lang.c (objc_language_defn): Update.
5096 * m2-lang.c (m2_language_defn): Update.
5097 * language.h (struct language_defn) <la_value_print_inner>: New
5098 member.
5099 * language.c (unknown_language_defn, auto_language_defn): Update.
5100 * go-lang.c (go_language_defn): Update.
5101 * f-lang.c (f_language_defn): Update.
5102 * d-lang.c (d_language_defn): Update.
5103 * c-lang.c (c_language_defn, cplus_language_defn)
5104 (asm_language_defn, minimal_language_defn): Update.
5105 * ada-lang.c (ada_language_defn): Update.
5106
5107 2020-03-13 Tom Tromey <tom@tromey.com>
5108
5109 * c-valprint.c (c_value_print): Use common_val_print.
5110
5111 2020-03-13 Tom Tromey <tom@tromey.com>
5112
5113 * cp-valprint.c (cp_print_static_field): Use common_val_print.
5114
5115 2020-03-13 Tom Tromey <tom@tromey.com>
5116
5117 * f-valprint.c (f77_print_array_1, f_val_print): Use
5118 common_val_print.
5119
5120 2020-03-13 Tom Tromey <tom@tromey.com>
5121
5122 * riscv-tdep.c (riscv_print_one_register_info): Use
5123 common_val_print.
5124
5125 2020-03-13 Tom Tromey <tom@tromey.com>
5126
5127 * mi/mi-main.c (output_register): Use common_val_print.
5128
5129 2020-03-13 Tom Tromey <tom@tromey.com>
5130
5131 * infcmd.c (default_print_one_register_info): Use
5132 common_val_print.
5133
5134 2020-03-13 Tom Tromey <tom@tromey.com>
5135
5136 * valprint.h (common_val_print_checked): Declare.
5137 * valprint.c (common_val_print_checked): New function.
5138 * stack.c (print_frame_arg): Use common_val_print_checked.
5139
5140 2020-03-13 Tom Tromey <tom@tromey.com>
5141
5142 * valprint.c (do_val_print): New function, from val_print.
5143 (val_print): Use do_val_print.
5144 (common_val_print): Use do_val_print.
5145
5146 2020-03-13 Tom Tromey <tom@tromey.com>
5147
5148 * valprint.c (value_print): Use scoped_value_mark.
5149
5150 2020-03-13 Tom de Vries <tdevries@suse.de>
5151
5152 PR symtab/25646
5153 * psymtab.c (partial_symtab::partial_symtab): Don't set
5154 globals_offset and statics_offset. Push element onto
5155 current_global_psymbols and current_static_psymbols stacks.
5156 (concat): New function.
5157 (end_psymtab_common): Set globals_offset and statics_offset. Pop
5158 element from current_global_psymbols and current_static_psymbols
5159 stacks. Concat popped elements to global_psymbols and
5160 static_symbols.
5161 (add_psymbol_to_list): Use current_global_psymbols and
5162 current_static_psymbols stacks.
5163 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
5164 current_static_psymbols fields.
5165
5166 2020-03-12 Christian Biesinger <cbiesinger@google.com>
5167
5168 * corelow.c (sniff_core_bfd): Remove.
5169 (class core_target) <m_core_vec>: Remove.
5170 (core_target::core_target): Update.
5171 (core_file_fns): Remove.
5172 (deprecated_add_core_fns): Remove.
5173 (default_core_sniffer): Remove.
5174 (sniff_core_bfd): Remove.
5175 (default_check_format): Remove.
5176 (gdb_check_format): Remove.
5177 (core_target_open): Update.
5178 (core_target::get_core_register_section): Update.
5179 (get_core_registers_cb): Update.
5180 (core_target::fetch_registers): Update.
5181 * gdbcore.h (struct core_fns): Remove.
5182 (deprecated_add_core_fns): Remove.
5183 (default_core_sniffer): Remove.
5184 (default_check_format): Remove.
5185
5186 2020-03-12 Tom Tromey <tom@tromey.com>
5187
5188 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
5189 CORE_ADDR.
5190 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
5191
5192 2020-03-12 Tom Tromey <tom@tromey.com>
5193
5194 * remote.c (remote_target::download_tracepoint)
5195 (remote_target::enable_tracepoint)
5196 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
5197 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
5198 sprintf_vma.
5199
5200 2020-03-12 Tom Tromey <tom@tromey.com>
5201
5202 * symfile-mem.c: Update CORE_ADDR size assert.
5203
5204 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
5205
5206 * selftest.m4: Move to gdbsupport/.
5207 * acinclude.m4: Update path to selftest.m4.
5208
5209 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
5212 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
5213 gdbarch-selfselftests.c and selftest-arch.c.
5214 (SUBDIR_UNITTESTS_OBS): Rename to...
5215 (SELFTESTS_OBS): ... this.
5216 (COMMON_SFILES): Remove disasm-selftests.c and
5217 gdbarch-selftests.c.
5218 * configure.ac: Don't add selftest-arch.{c,o} to
5219 CONFIG_{SRCS,OBS}.
5220 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
5221 preprocessor conditions.
5222
5223 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * configure.ac: Don't source bfd/development.sh.
5226 * selftest.m4: Modify comment.
5227 * configure: Re-generate.
5228
5229 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
5230
5231 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
5232 not "true" or "false".
5233 * configure: Re-generate.
5234
5235 2020-03-12 Christian Biesinger <cbiesinger@google.com>
5236
5237 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
5238 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
5239 renamed to arm_nbsd_supply_gregset.
5240 (fetch_register): Update to call arm_nbsd_supply_gregset.
5241 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
5242 (arm_netbsd_nat_target::fetch_registers): Update.
5243 (fetch_elfcore_registers): Removed.
5244 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
5245 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
5246 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
5247 not require NetBSD system headers.
5248 (arm_nbsd_regset): New struct.
5249 (arm_nbsd_iterate_over_regset_sections): New function.
5250 (arm_netbsd_init_abi_common): Updated to call
5251 set_gdbarch_iterate_over_regset_sections.
5252 * arm-nbsd-tdep.h: New file.
5253
5254 2020-03-11 Kevin Buettner <kevinb@redhat.com>
5255
5256 * symtab.c (find_pc_sect_line): Add check which prevents infinite
5257 recursion.
5258
5259 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * configure: Re-generate.
5262
5263 2020-03-11 Tom Tromey <tromey@adacore.com>
5264
5265 * ada-typeprint.c (print_choices): Fix comment.
5266
5267 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
5268
5269 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
5270 previous item in the list, when the list has no items.
5271
5272 2020-03-11 Tom de Vries <tdevries@suse.de>
5273
5274 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
5275 PROP_LOCLIST handling code.
5276
5277 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
5278
5279 * buildsym-legacy.c (record_line): Pass extra parameter to
5280 record_line.
5281 * buildsym.c (buildsym_compunit::record_line): Take an extra
5282 parameter, reduce duplication in the line table, and record the
5283 is_stmt flag in the line table.
5284 * buildsym.h (buildsym_compunit::record_line): Add extra
5285 parameter.
5286 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
5287 non-statement lines.
5288 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
5289 this to the symtab builder.
5290 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
5291 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
5292 through to dwarf_record_line_1.
5293 * infrun.c (process_event_stop_test): When stepping, don't stop at
5294 a non-statement instruction, and only refresh the step info when
5295 we land in the middle of a line's range. Also add an extra
5296 comment.
5297 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
5298 field.
5299 * record-btrace.c (btrace_find_line_range): Only record lines
5300 marked as is-statement.
5301 * stack.c (frame_show_address): Show the frame address if we are
5302 in a non-statement sal.
5303 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
5304 (maintenance_print_one_line_table): Print a header for the is_stmt
5305 column, and include is_stmt information in the output.
5306 * symtab.c (find_pc_sect_line): Find lines marked as statements in
5307 preference to non-statements.
5308 (find_pcs_for_symtab_line): Prefer is-statement entries.
5309 (find_line_common): Likewise.
5310 * symtab.h (struct linetable_entry): Add is_stmt field.
5311 (struct symtab_and_line): Likewise.
5312 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
5313 arranging the line table.
5314
5315 2020-03-07 Tom de Vries <tdevries@suse.de>
5316
5317 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
5318 DIE.
5319
5320 2020-03-07 Tom Tromey <tom@tromey.com>
5321
5322 * valops.c (value_literal_complex): Remove obsolete comment.
5323 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
5324 comment.
5325
5326 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * infrun.h: Forward-declare thread_info.
5329 (set_step_info): Add thread_info parameter, add doc.
5330 * infrun.c (set_step_info): Add thread_info parameter, move doc
5331 to header.
5332 * infrun.c (process_event_stop_test): Pass thread to
5333 set_step_info call.
5334 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
5335 set_step_info.
5336 (prepare_one_step): Add thread_info parameter, pass it to
5337 set_step_frame and prepare_one_step (recursive) call.
5338 (step_1): Pass thread to prepare_one_step call.
5339 (step_command_fsm::should_stop): Pass thread to
5340 prepare_one_step.
5341 (until_next_fsm): Pass thread to set_step_frame call.
5342 (finish_command): Pass thread to set_step_info call.
5343
5344 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
5345
5346 * windows-tdep.c (windows_solib_create_inferior_hook):
5347 Check if inferior is running.
5348
5349 2020-03-06 Tom de Vries <tdevries@suse.de>
5350
5351 * NEWS: Fix "the the".
5352 * ctfread.c: Same.
5353
5354 2020-03-06 Tom de Vries <tdevries@suse.de>
5355
5356 * psymtab.c (psymtab_to_symtab): Don't print "done.".
5357
5358 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
5359
5360 * .dir-locals.el: Add a comment referencing the other copies of
5361 this file.
5362
5363 2020-03-05 John Baldwin <jhb@FreeBSD.org>
5364
5365 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
5366 psargs.
5367
5368 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5369
5370 * .gitattributes: New file.
5371
5372 2020-03-04 Tom Tromey <tom@tromey.com>
5373
5374 * symmisc.c (print_symbol_bcache_statistics)
5375 (print_objfile_statistics): Update.
5376 * symfile.c (allocate_symtab): Use intern.
5377 * psymtab.c (partial_symtab::partial_symtab): Use intern.
5378 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
5379 macro_cache>: Remove.
5380 <string_cache>: New member.
5381 (struct objfile) <intern>: New methods.
5382 * elfread.c (elf_symtab_read): Use intern.
5383 * dwarf2/read.c (fixup_go_packaging): Intern package name.
5384 (dwarf2_compute_name, dwarf2_physname)
5385 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
5386 names.
5387 (guess_partial_die_structure_name): Update.
5388 (partial_die_info::fixup): Intern name.
5389 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
5390 name.
5391 (dwarf2_name): Intern name. Update.
5392 * buildsym.c (buildsym_compunit::get_macro_table): Use
5393 string_cache.
5394
5395 2020-03-04 Tom Tromey <tom@tromey.com>
5396
5397 * jit.c (bfd_open_from_target_memory): Make "target" const.
5398 * corefile.c (gnutarget): Now const.
5399 * gdbcore.h (gnutarget): Now const.
5400
5401 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
5402
5403 * NEWS: Mention support for WOW64 processes.
5404 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
5405 (amd64_windows_segment_register_p): Remove static.
5406 (_initialize_amd64_windows_nat): Update.
5407 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
5408 * i386-windows-nat.c (context_offset): Update.
5409 (i386_mappings): Rename and remove static.
5410 (i386_windows_segment_register_p): Remove static.
5411 (_initialize_i386_windows_nat): Update.
5412 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
5413 (STATUS_WX86_SINGLE_STEP): New macro.
5414 (EnumProcessModulesEx): New macro.
5415 (Wow64SuspendThread): New macro.
5416 (Wow64GetThreadContext): New macro.
5417 (Wow64SetThreadContext): New macro.
5418 (Wow64GetThreadSelectorEntry): New macro.
5419 (windows_set_context_register_offsets): Add static.
5420 (windows_set_segment_register_p): Likewise.
5421 (windows_add_thread): Adapt for WOW64 processes.
5422 (windows_fetch_one_register): Likewise.
5423 (windows_nat_target::fetch_registers): Likewise.
5424 (windows_store_one_register): Likewise.
5425 (display_selector): Likewise.
5426 (display_selectors): Likewise.
5427 (handle_exception): Likewise.
5428 (windows_continue): Likewise.
5429 (windows_nat_target::resume): Likewise.
5430 (windows_add_all_dlls): Likewise.
5431 (do_initial_windows_stuff): Likewise.
5432 (windows_nat_target::attach): Likewise.
5433 (windows_get_exec_module_filename): Likewise.
5434 (windows_nat_target::create_inferior): Likewise.
5435 (windows_xfer_siginfo): Likewise.
5436 (_initialize_loadable): Initialize Wow64SuspendThread,
5437 Wow64GetThreadContext, Wow64SetThreadContext,
5438 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
5439 * windows-nat.h (windows_set_context_register_offsets):
5440 Remove declaration.
5441 (windows_set_segment_register_p): Likewise.
5442 (i386_windows_segment_register_p): Add declaration.
5443 (amd64_windows_segment_register_p): Likewise.
5444
5445 2020-03-04 Luis Machado <luis.machado@linaro.org>
5446
5447 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
5448 in "info registers" for AArch64/ARM.
5449
5450 The change caused "info registers" to not print GPR's.
5451
5452 gdb/ChangeLog:
5453
5454 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
5455
5456 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
5457 when reg->group is empty and reggroup is not.
5458
5459 2020-03-03 Tom Tromey <tromey@adacore.com>
5460
5461 * dwarf2/frame.c (struct dwarf2_frame_cache)
5462 <checked_tailcall_bottom, entry_cfa_sp_offset,
5463 entry_cfa_sp_offset_p>: Remove members.
5464 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
5465 (dwarf2_frame_prev_register): Don't call
5466 dwarf2_tailcall_sniffer_first.
5467 (dwarf2_append_unwinders): Don't append tailcall unwinder.
5468 * frame-unwind.c (add_unwinder): New fuction.
5469 (frame_unwind_init): Use it. Add tailcall unwinder.
5470
5471 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
5472 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5473
5474 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
5475 value should be printed as true.
5476
5477 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
5478
5479 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
5480 (windows_init_abi): Set and use windows_so_ops.
5481
5482 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
5483
5484 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
5485 when verifying if dealing with a convenience variable.
5486
5487 2020-03-03 Luis Machado <luis.machado@linaro.org>
5488
5489 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
5490
5491 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
5492
5493 * infrun.c (gdbarch_supports_displaced_stepping): New.
5494 (use_displaced_stepping): Break up conditions in smaller pieces.
5495 Use gdbarch_supports_displaced_stepping.
5496 (displaced_step_prepare_throw): Use
5497 gdbarch_supports_displaced_stepping.
5498
5499 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
5500
5501 * NEWS: Mention new behaviour of the history filename.
5502 * top.c (write_history_p): Add comment.
5503 (show_write_history_p): Add header comment, give a different
5504 message when history writing is on, but the history filename is
5505 empty.
5506 (history_filename): Add comment.
5507 (history_filename_empty): New function.
5508 (show_history_filename): Add header comment, give a different
5509 message when the filename is empty.
5510 (init_history): Compare history_filename against nullptr, and only
5511 read history if the filename is not empty.
5512 (set_history_filename): Add header comment, and only make
5513 non-empty filenames absolute.
5514 (init_main): Make the filename argument to 'set history filename'
5515 optional.
5516
5517 2020-03-02 Christian Biesinger <cbiesinger@google.com>
5518
5519 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
5520 (arm_supply_vfpregset): ...this, and update to use VFP registers.
5521 (fetch_fp_register): Update.
5522 (fetch_fp_regs): Update.
5523 (store_fp_register): Update.
5524 (store_fp_regs): Update.
5525 (arm_netbsd_nat_target::read_description): New function.
5526 (fetch_elfcore_registers): Update.
5527
5528 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
5529
5530 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
5531 general_thread if the stop reply is missing a thread-id.
5532 (remote_target::process_stop_reply): Use the first non-exited
5533 thread if the target didn't pass a thread-id.
5534 * infrun.c (do_target_wait): Move call to
5535 switch_to_inferior_no_thread to ....
5536 (do_target_wait_1): ... here.
5537
5538 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
5539
5540 * debuginfod-support.c: Include defs.h first.
5541
5542 2020-02-28 Tom de Vries <tdevries@suse.de>
5543
5544 * symfile.c (set_initial_language): Use default language for lookup.
5545
5546 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
5547
5548 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
5549 reader variable, pass `this` to read_cutu_die_from_dwo.
5550
5551 2020-02-27 Aaron Merey <amerey@redhat.com>
5552
5553 * source.c (open_source_file): Check for nullptr when computing
5554 srcpath.
5555
5556 2020-02-27 Tom Tromey <tromey@adacore.com>
5557
5558 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
5559 member.
5560 (dwarf2_add_field): Don't update nfields.
5561 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
5562
5563 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
5564
5565 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
5566 abs.
5567
5568 2020-02-26 Tom Tromey <tom@tromey.com>
5569
5570 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
5571 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
5572 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
5573 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
5574 per_cu_data.
5575
5576 2020-02-26 Tom Tromey <tom@tromey.com>
5577
5578 * dwarf2/index-write.c (psym_index_map): Change type.
5579 (add_address_entry_worker, write_one_signatured_type)
5580 (recursively_count_psymbols, recursively_write_psymbols)
5581 (class debug_names, psyms_seen_size, write_gdbindex)
5582 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
5583
5584 2020-02-26 Aaron Merey <amerey@redhat.com>
5585
5586 * Makefile.in: Handle optional debuginfod support.
5587 * NEWS: Update.
5588 * README: Add --with-debuginfod summary.
5589 * config.in: Regenerate.
5590 * configure: Regenerate.
5591 * configure.ac: Handle optional debuginfod support.
5592 * debuginfod-support.c: debuginfod helper functions.
5593 * debuginfod-support.h: Ditto.
5594 * doc/gdb.texinfo: Add --with-debuginfod to configure options
5595 summary.
5596 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
5597 when a dwz file cannot be found.
5598 * elfread.c (elf_symfile_read): Query debuginfod servers when a
5599 debuginfo file cannot be found.
5600 * source.c (open_source_file): Query debuginfod servers when a
5601 source file cannot be found.
5602 * top.c (print_gdb_configuration): Include
5603 --{with,without}-debuginfod in the output.
5604
5605 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5606
5607 * thread.c (thr_try_catch_cmd): Print thread name.
5608
5609 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
5610
5611 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
5612 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5613 dwarf2_fetch_die_type_sect_off): Move to...
5614 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5615 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5616 dwarf2_fetch_die_type_sect_off): ... here.
5617 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5618 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5619 dwarf2_fetch_die_type_sect_off): Move doc to header file.
5620
5621 2020-02-26 Tom de Vries <tdevries@suse.de>
5622
5623 PR gdb/25603
5624 * symfile.c (set_initial_language): Exit-early if
5625 language_mode == language_mode_manual.
5626
5627 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5628
5629 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
5630 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
5631 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
5632
5633 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5634
5635 * gdbtypes.c (create_array_type_with_stride): Handle negative
5636 array strides.
5637 * valarith.c (value_subscripted_rvalue): Likewise.
5638
5639 2020-02-25 Luis Machado <luis.machado@linaro.org>
5640
5641 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
5642
5643 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5644
5645 * loc.h (dwarf2_get_die_type): Move to...
5646 * read.h (dwarf2_get_die_type): ... here.
5647 * read.c (dwarf2_get_die_type): Move doc to header.
5648
5649 2020-02-25 Joel Brobecker <brobecker@adacore.com>
5650
5651 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
5652 'gnulib/Makefile.in' to the list.
5653
5654 2020-02-24 Tom Tromey <tom@tromey.com>
5655
5656 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
5657 Remove.
5658 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
5659 XOBNEWVEC.
5660
5661 2020-02-24 Tom Tromey <tom@tromey.com>
5662
5663 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
5664 New method.
5665 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
5666 (dw2_do_instantiate_symtab, dw2_get_file_names)
5667 (build_type_psymtab_dependencies, load_full_type_unit): Update.
5668
5669 2020-02-24 Tom Tromey <tom@tromey.com>
5670
5671 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
5672 make_scoped_restore.
5673 (dwarf2_psymtab::read_symtab): Don't clear
5674 reading_partial_symbols.
5675
5676 2020-02-24 Tom de Vries <tdevries@suse.de>
5677
5678 PR gdb/25592
5679 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
5680
5681 2020-02-24 Tom de Vries <tdevries@suse.de>
5682
5683 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
5684 commands layout next/prev/regs.
5685
5686 2020-02-22 Tom Tromey <tom@tromey.com>
5687
5688 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
5689 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
5690
5691 2020-02-22 Tom Tromey <tom@tromey.com>
5692
5693 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
5694
5695 2020-02-22 Tom Tromey <tom@tromey.com>
5696
5697 * tui/tui-win.c (_initialize_tui_win): Add usage text.
5698 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
5699 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
5700 * tui/tui.c (_initialize_tui): Add usage text.
5701
5702 2020-02-22 Tom Tromey <tom@tromey.com>
5703
5704 * tui/tui-win.c (tui_set_focus_command)
5705 (tui_set_win_height_command): Use error_no_arg.
5706 (_initialize_tui_win): Update help text.
5707 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
5708
5709 2020-02-22 Tom Tromey <tom@tromey.com>
5710
5711 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
5712 * tui/tui-disasm.h (struct tui_disasm_window)
5713 <display_start_addr>: Declare.
5714 * tui/tui-source.h (struct tui_source_window)
5715 <display_start_addr>: Declare.
5716 * tui/tui-winsource.h (struct tui_source_window_base)
5717 <show_source_line, display_start_addr>: New methods.
5718 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
5719 Rename and move to protected section.
5720 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
5721 (tui_source_window_base::do_erase_source_content): Update.
5722 (tui_source_window_base::show_source_line): Now a method.
5723 (tui_source_window_base::show_source_content)
5724 (tui_source_window_base::tui_source_window_base)
5725 (tui_source_window_base::rerender)
5726 (tui_source_window_base::refill)
5727 (tui_source_window_base::do_scroll_horizontal)
5728 (tui_source_window_base::set_is_exec_point_at)
5729 (tui_source_window_base::update_breakpoint_info)
5730 (tui_source_window_base::update_exec_info): Update.
5731 * tui/tui-source.c (tui_source_window::set_contents)
5732 (tui_source_window::showing_source_p)
5733 (tui_source_window::do_scroll_vertical)
5734 (tui_source_window::location_matches_p)
5735 (tui_source_window::line_is_displayed): Update.
5736 (tui_source_window::display_start_addr): New method.
5737 * tui/tui-disasm.c (tui_disasm_window::set_contents)
5738 (tui_disasm_window::do_scroll_vertical)
5739 (tui_disasm_window::location_matches_p): Update.
5740 (tui_disasm_window::display_start_addr): New method.
5741
5742 2020-02-22 Tom Tromey <tom@tromey.com>
5743
5744 * NEWS: Add entry for gdb.register_window_type.
5745 * tui/tui-layout.h (window_factory): New typedef.
5746 (tui_register_window): Declare.
5747 * tui/tui-layout.c (saved_tui_windows): New global.
5748 (tui_apply_current_layout): Use it.
5749 (tui_register_window): New function.
5750 * python/python.c (do_start_initialization): Call
5751 gdbpy_initialize_tui.
5752 (python_GdbMethods): Add "register_window_type" function.
5753 * python/python-internal.h (gdbpy_register_tui_window)
5754 (gdbpy_initialize_tui): Declare.
5755 * python/py-tui.c: New file.
5756 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
5757
5758 2020-02-22 Tom Tromey <tom@tromey.com>
5759
5760 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
5761
5762 2020-02-22 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
5765 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
5766 * tui/tui-data.c (tui_set_win_with_focus): Remove.
5767 (tui_set_win_focus_to): Move from tui-win.c.
5768
5769 2020-02-22 Tom Tromey <tom@tromey.com>
5770
5771 * tui/tui-layout.c (make_standard_window, get_locator_window): New
5772 functions.
5773 (known_window_types): New global.
5774 (tui_get_window_by_name): Reimplement.
5775 (initialize_known_windows): New function.
5776 (validate_window_name): Rewrite.
5777 (_initialize_tui_layout): Call initialize_known_windows.
5778
5779 2020-02-22 Tom Tromey <tom@tromey.com>
5780
5781 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
5782 Remove constants.
5783 * tui/tui-winsource.h (struct tui_source_window_base)
5784 <tui_source_window_base>: Remove parameter.
5785 * tui/tui-winsource.c
5786 (tui_source_window_base::tui_source_window_base): Remove
5787 parameter.
5788 (tui_source_window_base::refill): Update.
5789 * tui/tui-stack.h (struct tui_locator_window)
5790 <tui_locator_window>: Update.
5791 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
5792 Default the constructor.
5793 * tui/tui-regs.h (struct tui_data_item_window)
5794 <tui_data_item_window>: Default the constructor.
5795 (struct tui_data_window) <tui_data_window>: Likewise.
5796 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
5797 Default the constructor.
5798 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
5799 Default the constructor.
5800 <type>: Remove.
5801 (struct tui_win_info) <tui_win_info>: Default the constructor.
5802 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
5803 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
5804 Default the constructor.
5805
5806 2020-02-22 Tom Tromey <tom@tromey.com>
5807
5808 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
5809 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
5810 * tui/tui-win.c (tui_resize_all): Don't call
5811 tui_delete_invisible_windows.
5812 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
5813 done.
5814 (tui_set_layout): Update.
5815 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
5816 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
5817 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
5818
5819 2020-02-22 Tom Tromey <tom@tromey.com>
5820
5821 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
5822 correctly.
5823
5824 2020-02-22 Tom Tromey <tom@tromey.com>
5825
5826 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
5827
5828 2020-02-22 Tom Tromey <tom@tromey.com>
5829
5830 * tui/tui-winsource.h (struct tui_source_window_iterator)
5831 <inner_iterator>: New etytypedef.
5832 <tui_source_window_iterator>: Take "end" parameter.
5833 <tui_source_window_iterator>: Take iterator.
5834 <operator*, advance>: Update.
5835 <m_iter>: Change type.
5836 <m_end>: New field.
5837 (struct tui_source_windows) <begin, end>: Update.
5838 * tui/tui-layout.c (tui_windows): New global.
5839 (tui_apply_current_layout): Clear tui_windows.
5840 (tui_layout_window::apply): Update tui_windows.
5841 * tui/tui-data.h (tui_windows): Declare.
5842 (all_tui_windows): Now inline function.
5843 (class tui_window_iterator, struct all_tui_windows): Remove.
5844
5845 2020-02-22 Tom Tromey <tom@tromey.com>
5846
5847 PR tui/17850:
5848 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
5849 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
5850 "height" argument.
5851 (class tui_layout_window) <get_sizes>: Likewise.
5852 (class tui_layout_split) <tui_layout_split>: Add "vertical"
5853 argument.
5854 <get_sizes>: Add "height" argument.
5855 <m_vertical>: New field.
5856 * tui/tui-layout.c (tui_layout_split::clone): Update.
5857 (tui_layout_split::get_sizes): Add "height" argument.
5858 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
5859 (tui_new_layout_command): Parse "-horizontal".
5860 (_initialize_tui_layout): Update help string.
5861 (tui_layout_split::specification): Add "-horizontal" when needed.
5862 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
5863 argument.
5864 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
5865 New methods.
5866
5867 2020-02-22 Tom Tromey <tom@tromey.com>
5868
5869 * tui/tui-layout.h (enum tui_adjust_result): New.
5870 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
5871 (class tui_layout_window) <adjust_size>: Return
5872 tui_adjust_result. Rewrite.
5873 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
5874 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
5875
5876 2020-02-22 Tom Tromey <tom@tromey.com>
5877
5878 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
5879 parameter and return types.
5880 (class tui_layout_base) <specification>: Add "depth".
5881 (class tui_layout_window) <specification>: Add "depth".
5882 (class tui_layout_split) <specification>: Add "depth".
5883 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
5884 and return types.
5885 (tui_new_layout_command): Parse sub-layouts.
5886 (_initialize_tui_layout): Update help string.
5887 (tui_layout_window::specification): Add "depth".
5888 (add_layout_command): Update.
5889
5890 2020-02-22 Tom Tromey <tom@tromey.com>
5891
5892 * NEWS: Add "tui new-layout" item.
5893 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
5894 Add new-layout command to help text.
5895 (validate_window_name): New function.
5896 (tui_new_layout_command): New function.
5897 (_initialize_tui_layout): Register "new-layout".
5898 (tui_layout_window::specification): New method.
5899 (tui_layout_window::specification): New method.
5900 * tui/tui-layout.h (class tui_layout_base) <specification>: New
5901 method.
5902 (class tui_layout_window) <specification>: New method.
5903 (class tui_layout_split) <specification>: New method.
5904
5905 2020-02-22 Tom Tromey <tom@tromey.com>
5906
5907 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
5908 * tui/tui-win.c (window_name_completer): Update comment.
5909 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
5910 Declare method.
5911 (class tui_layout_window) <replace_window>: Likewise.
5912 (class tui_layout_split) <replace_window>: Likewise.
5913 (tui_set_layout): Don't declare.
5914 (tui_set_initial_layout): Declare function.
5915 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
5916 (asm_regs_layout): New globals.
5917 (tui_current_layout, show_layout): Remove.
5918 (tui_set_layout, tui_add_win_to_layout): Rewrite.
5919 (find_layout, tui_apply_layout): New function.
5920 (layout_completer): Remove.
5921 (tui_next_layout): Reimplement.
5922 (tui_next_layout_command): New function.
5923 (tui_set_initial_layout, tui_prev_layout_command): New functions.
5924 (tui_regs_layout): Reimplement.
5925 (tui_regs_layout_command): New function.
5926 (extract_display_start_addr): Rewrite.
5927 (next_layout, prev_layout): Remove.
5928 (tui_layout_window::replace_window): New method.
5929 (tui_layout_split::replace_window): New method.
5930 (destroy_layout): New function.
5931 (layout_list): New global.
5932 (add_layout_command): New function.
5933 (initialize_layouts): Update.
5934 (tui_layout_command): New function.
5935 (_initialize_tui_layout): Install "layout" commands.
5936 * tui/tui-data.h (enum tui_layout_type): Remove.
5937 (tui_current_layout): Don't declare.
5938
5939 2020-02-22 Tom Tromey <tom@tromey.com>
5940
5941 * tui/tui-regs.c (tui_reg_layout): Remove.
5942 (tui_reg_command): Use tui_regs_layout.
5943 * tui/tui-layout.h (tui_reg_command): Declare.
5944 * tui/tui-layout.c (tui_reg_command): New function.
5945
5946 2020-02-22 Tom Tromey <tom@tromey.com>
5947
5948 * tui/tui.c (tui_rl_delete_other_windows): Call
5949 tui_remove_some_windows.
5950 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
5951 Declare method.
5952 (class tui_layout_window) <remove_windows>: New method.
5953 (class tui_layout_split) <remove_windows>: Declare.
5954 (tui_remove_some_windows): Declare.
5955 * tui/tui-layout.c (tui_remove_some_windows): New function.
5956 (tui_layout_split::remove_windows): New method.
5957
5958 2020-02-22 Tom Tromey <tom@tromey.com>
5959
5960 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
5961 * tui/tui-layout.h (tui_next_layout): Declare.
5962 * tui/tui-layout.c (tui_next_layout): New function.
5963
5964 2020-02-22 Tom Tromey <tom@tromey.com>
5965
5966 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
5967 correct coordinates.
5968
5969 2020-02-22 Tom Tromey <tom@tromey.com>
5970
5971 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
5972 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
5973 DATA_WIN case.
5974
5975 2020-02-22 Tom Tromey <tom@tromey.com>
5976
5977 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
5978 TUI_DISASM_WIN, not tui_win_list.
5979
5980 2020-02-22 Tom Tromey <tom@tromey.com>
5981
5982 * valprint.c (generic_val_print_enum_1)
5983 (val_print_type_code_flags): Style member names.
5984 * rust-lang.c (val_print_struct, rust_print_enum)
5985 (rust_print_struct_def, rust_internal_print_type): Style member
5986 names.
5987 * p-valprint.c (pascal_object_print_value_fields): Style member
5988 names. Only call fprintf_symbol_filtered for static members.
5989 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
5990 * f-valprint.c (f_val_print): Style member names.
5991 * f-typeprint.c (f_type_print_base): Style member names.
5992 * cp-valprint.c (cp_print_value_fields): Style member names. Only
5993 call fprintf_symbol_filtered for static members.
5994 (cp_print_class_member): Style member names.
5995 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
5996 member names.
5997 * ada-valprint.c (ada_print_scalar): Style enum names.
5998 (ada_val_print_enum): Likewise.
5999 * ada-typeprint.c (print_enum_type): Style enum names.
6000
6001 2020-02-21 Tom Tromey <tom@tromey.com>
6002
6003 * psympriv.h (struct partial_symtab): Update comment.
6004
6005 2020-02-21 Tom Tromey <tromey@adacore.com>
6006
6007 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
6008 type is CORE_ADDR.
6009
6010 2020-02-21 Tom de Vries <tdevries@suse.de>
6011
6012 PR gdb/25534
6013 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
6014 if dependencies[i]->user != NULL.
6015
6016 2020-02-21 Ali Tamur <tamur@google.com>
6017
6018 * dwarf2/read.c (dwarf2_name): Add null check.
6019
6020 2020-02-20 Tom Tromey <tom@tromey.com>
6021
6022 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
6023 ">=", in binary search.
6024 (dwarf2_find_containing_comp_unit): New overload.
6025 (run_test): New self-test.
6026 (_initialize_dwarf2_read): Register new test.
6027
6028 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
6029
6030 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
6031 * riscv-tdep.h: Likewise.
6032 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
6033 rv32-only CSR.
6034 * features/riscv/64bit-csr.xml: Regenerated.
6035
6036 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6037 Tom Tromey <tom@tromey.com>
6038
6039 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
6040 of 'fputc_unfiltered'.
6041 (putchar_unfiltered): Call 'fputc_unfiltered'.
6042 (fputc_unfiltered): Call 'fputs_unfiltered'.
6043
6044 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
6045
6046 * config.in: Regenerate.
6047 * configure: Regenerate.
6048 * configure.ac: Add --with-python-libdir option.
6049 * main.c: Use WITH_PYTHON_LIBDIR.
6050
6051 2020-02-19 Tom Tromey <tom@tromey.com>
6052
6053 * symtab.c (general_symbol_info::compute_and_set_names): Use
6054 obstack_strndup. Simplify call to symbol_set_demangled_name.
6055
6056 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
6057
6058 * dwarf2/read.c (allocate_signatured_type_table,
6059 allocate_dwo_unit_table, allocate_type_unit_groups_table,
6060 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
6061 Remove objfile parameter, update all callers.
6062
6063 2020-02-19 Doug Evans <dje@google.com>
6064
6065 PR rust/25535
6066 * rust-lang.c (rust_print_enum): Apply embedded_offset to
6067 rust_enum_variant calculation.
6068
6069 2020-02-19 Tom Tromey <tromey@adacore.com>
6070
6071 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
6072
6073 2020-02-19 Tom Tromey <tromey@adacore.com>
6074
6075 * ada-lang.c (cache_symbol): Use obstack_strdup.
6076
6077 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 * configure: Regenerate.
6080
6081 2020-02-19 Tom Tromey <tromey@adacore.com>
6082
6083 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
6084 NULL check.
6085
6086 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
6087
6088 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
6089
6090 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
6091
6092 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
6093 if GDBSERVER is not defined.
6094 (riscv_tdesc_cache): Likewise, also store const target_desc.
6095 (STATIC_IN_GDB): Define.
6096 (riscv_create_target_description): Update declaration with
6097 STATIC_IN_GDB.
6098 (riscv_lookup_target_description): New function, only define if
6099 GDBSERVER is not defined.
6100 * arch/riscv.h (riscv_create_target_description): Declare only
6101 when GDBSERVER is defined.
6102 (riscv_lookup_target_description): New declaration when GDBSERVER
6103 is not defined.
6104 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
6105 (riscv_linux_read_features): ...this, and return
6106 riscv_gdbarch_features instead of target_desc.
6107 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
6108 (riscv_linux_read_description): Rename to...
6109 (riscv_linux_read_features): ...this.
6110 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
6111 Update to use riscv_gdbarch_features and
6112 riscv_lookup_target_description.
6113 * riscv-tdep.c (riscv_find_default_target_description): Use
6114 riscv_lookup_target_description instead of
6115 riscv_create_target_description.
6116
6117 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
6118
6119 * valprint.c (generic_val_print_enum_1): When printing a flag
6120 enum with value 0 and there is no enumerator with value 0, print
6121 just "0" instead of "(unknown: 0x0)".
6122
6123 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * valprint.c (generic_val_print_enum_1): Print unknown part of
6126 flag enum in hex.
6127
6128 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
6129
6130 * dwarf2/read.c (update_enumeration_type_from_children): Allow
6131 flag enums to contain duplicate enumerators.
6132 * valprint.c (generic_val_print_enum_1): Update comment.
6133
6134 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
6135
6136 * dwarf2/read.c: Include "count-one-bits.h".
6137 (update_enumeration_type_from_children): If an enumerator has
6138 multiple bits set, don't treat the enumeration as a "flag enum".
6139 * valprint.c (generic_val_print_enum_1): Assert that enumerators
6140 of flag enums have 0 or 1 bit set.
6141
6142 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
6143
6144 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
6145 conversion.
6146 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6147 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
6148 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6149 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
6150 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6151
6152 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
6153
6154 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
6155
6156 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
6157
6158 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
6159 displaced_step_closure_up.
6160 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
6161 (struct displaced_step_closure_up):
6162 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6163 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
6164 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
6165 Likewise.
6166 * gdbarch.sh (displaced_step_copy_insn): Likewise.
6167 * gdbarch.c, gdbarch.h: Re-generate.
6168 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
6169 displaced_step_closure_up.
6170 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6171 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
6172 * infrun.h (displaced_step_closure_up): New type alias.
6173 (struct displaced_step_inferior_state) <step_closure>: Change
6174 type to displaced_step_closure_up.
6175 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
6176 displaced_step_closure_up.
6177 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6178
6179 2020-02-14 Tom Tromey <tom@tromey.com>
6180
6181 * minidebug.c (gnu_debug_key): New global.
6182 (find_separate_debug_file_in_section): Use it.
6183
6184 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
6185
6186 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
6187 std::unique_ptr.
6188 * gdbarch.c: Re-generate.
6189 * gdbarch.h: Re-generate.
6190 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
6191 change.
6192 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
6193 type to std::unique_ptr.
6194 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
6195 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
6196 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
6197 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
6198 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
6199 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
6200 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
6201 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
6202 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
6203
6204 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
6205
6206 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
6207 std::unique_ptr.
6208 (displaced_step_clear): Rename to...
6209 (displaced_step_reset): ... this. Just call displaced->reset ().
6210 (displaced_step_clear_cleanup): Rename to...
6211 (displaced_step_reset_cleanup): ... this.
6212 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
6213 (displaced_step_fixup): Likewise.
6214 (resume_1): Likewise.
6215 (handle_inferior_event): Restore child's memory before calling
6216 displaced_step_fixup on the parent.
6217 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
6218 to std::unique_ptr.
6219 <step_closure>: Change type to std::unique_ptr.
6220
6221 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
6222
6223 * arm-tdep.c: Include count-one-bits.h.
6224 (cleanup_block_store_pc): Use count_one_bits.
6225 (cleanup_block_load_pc): Use count_one_bits.
6226 (arm_copy_block_xfer): Use count_one_bits.
6227 (thumb2_copy_block_xfer): Use count_one_bits.
6228 (thumb_copy_pop_pc_16bit): Use count_one_bits.
6229 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
6230 (thumb_get_next_pcs_raw): Use count_one_bits.
6231 (arm_get_next_pcs_raw): Use count_one_bits_l.
6232 * arch/arm.c (bitcount): Remove.
6233 * arch/arm.h (bitcount): Remove.
6234
6235 2020-02-14 Tom Tromey <tromey@adacore.com>
6236
6237 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
6238 Update.
6239 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
6240 * dwarf2/loc.c (call_site_find_chain_1): Return
6241 unique_xmalloc_ptr.
6242 (call_site_find_chain): Likewise.
6243
6244 2020-02-14 Richard Biener <rguenther@suse.de>
6245
6246 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
6247 on expression with division operators.
6248
6249 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6250
6251 * MAINTAINERS (Write After Approval): Adding myself.
6252
6253 2020-02-12 Tom Tromey <tom@tromey.com>
6254
6255 * event-loop.c (event_data, gdb_event, event_handler_func):
6256 Remove.
6257
6258 2020-02-12 Tom Tromey <tom@tromey.com>
6259
6260 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
6261 (dwarf2_frame_objfile_data): Add comment.
6262 (find_comp_unit, set_comp_unit): New functions.
6263 (dwarf2_frame_find_fde): Use find_comp_unit.
6264 (dwarf2_build_frame_info): Use set_comp_unit.
6265
6266 2020-02-12 Tom Tromey <tom@tromey.com>
6267
6268 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
6269 (comp_unit): Don't initialize objfile.
6270 (execute_cfa_program): Add text_offset parameter.
6271 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
6272 (dwarf2_frame_cache): Update.
6273 (dwarf2_build_frame_info): Don't set "objfile" member.
6274
6275 2020-02-12 Tom Tromey <tom@tromey.com>
6276
6277 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
6278 (decode_frame_entry): Likewise.
6279 (dwarf2_build_frame_info): Update.
6280
6281 2020-02-12 Tom Tromey <tom@tromey.com>
6282
6283 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
6284 (decode_frame_entry_1): Use the comp_unit obstack.
6285
6286 2020-02-12 Tom Tromey <tom@tromey.com>
6287
6288 * dwarf2/frame.c (struct comp_unit): Add initializers and
6289 constructor.
6290 (dwarf2_frame_objfile_data): Store a comp_unit.
6291 (dwarf2_frame_find_fde): Update.
6292 (dwarf2_build_frame_info): Use "new".
6293
6294 2020-02-12 Tom Tromey <tom@tromey.com>
6295
6296 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
6297 (dwarf2_fde_table): Typedef for std::vector.
6298 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
6299 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
6300 (decode_frame_entry): Update.
6301 (dwarf2_build_frame_info): Use "new".
6302
6303 2020-02-12 Christian Biesinger <cbiesinger@google.com>
6304
6305 * arm-tdep.c (arm_gdbarch_init): Update.
6306 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
6307 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
6308 have_neon, is_m>: Change to bool.
6309
6310 2020-02-12 Christian Biesinger <cbiesinger@google.com>
6311
6312 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
6313
6314 2020-02-12 Tom Tromey <tom@tromey.com>
6315
6316 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
6317
6318 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
6319
6320 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
6321 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
6322
6323 2020-02-11 Tom Tromey <tom@tromey.com>
6324
6325 * psymtab.h: Update comment.
6326
6327 2020-02-11 Tom Tromey <tom@tromey.com>
6328
6329 * gdb_obstack.h (struct auto_obstack): Use
6330 DISABLE_COPY_AND_ASSIGN.
6331
6332 2020-02-11 Tom Tromey <tom@tromey.com>
6333
6334 * dwarf2/frame.h (struct objfile): Don't forward declare.
6335
6336 2020-02-11 Christian Biesinger <cbiesinger@google.com>
6337
6338 * cris-tdep.c (cris_supply_gregset): Change signature to match
6339 what struct regset expects.
6340 (cris_regset): New struct.
6341 (fetch_core_registers): Remove.
6342 (cris_iterate_over_regset_sections): New function.
6343 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
6344 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
6345
6346 2020-02-11 Christian Biesinger <cbiesinger@google.com>
6347
6348 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
6349 registers.
6350
6351 2020-02-11 Christian Biesinger <cbiesinger@google.com>
6352
6353 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
6354
6355 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
6356
6357 * configure: Re-generate.
6358
6359 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
6360
6361 * configure: Re-generate.
6362
6363 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * acinclude: Update warning.m4 path.
6366 * warning.m4: Move to gdbsupport.
6367
6368 2020-02-11 Tom Tromey <tromey@adacore.com>
6369
6370 * remote.c (remote_console_output): Update.
6371 * printcmd.c (printf_command): Update.
6372 * event-loop.c (gdb_wait_for_event): Update.
6373 * linux-nat.c (sigchld_handler): Update.
6374 * remote-sim.c (gdb_os_write_stdout): Update.
6375 (gdb_os_flush_stdout): Update.
6376 (gdb_os_flush_stderr): Update.
6377 (gdb_os_write_stderr): Update.
6378 * exceptions.c (print_exception): Update.
6379 * remote-fileio.c (remote_fileio_func_read): Update.
6380 (remote_fileio_func_write): Update.
6381 * tui/tui.c (tui_enable): Update.
6382 * tui/tui-interp.c (tui_interp::init): Update.
6383 * utils.c (init_page_info): Update.
6384 (putchar_unfiltered, fputc_unfiltered): Update.
6385 (gdb_flush): Update.
6386 (emit_style_escape): Update.
6387 (flush_wrap_buffer, fputs_maybe_filtered): Update.
6388 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
6389 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
6390 (stderr_file::write): Update.
6391 (stderr_file::puts): Update.
6392 * ui-file.h (ui_file_isatty, ui_file_write)
6393 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
6394 (ui_file_puts): Don't declare.
6395
6396 2020-02-10 Tom de Vries <tdevries@suse.de>
6397
6398 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
6399 sentinel to char *.
6400
6401 2020-02-09 Tom de Vries <tdevries@suse.de>
6402
6403 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
6404 filename if it matches "<artificial>".
6405
6406 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
6407
6408 * windows-tdep.c (struct enum_value_name): New struct.
6409 (create_enum): New function.
6410 (windows_get_siginfo_type): Create and use enum types.
6411
6412 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
6413
6414 * NEWS: Mention $_siginfo support for Windows.
6415 * windows-nat.c (handle_exception): Set siginfo_er.
6416 (windows_nat_target::mourn_inferior): Reset siginfo_er.
6417 (windows_xfer_siginfo): New function.
6418 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
6419 * windows-tdep.c (struct windows_gdbarch_data): New struct.
6420 (init_windows_gdbarch_data): New function.
6421 (get_windows_gdbarch_data): New function.
6422 (windows_get_siginfo_type): New function.
6423 (windows_init_abi): Register windows_get_siginfo_type.
6424 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
6425
6426 2020-02-08 Tom Tromey <tom@tromey.com>
6427
6428 * dwarf2/read.c (class cutu_reader) <cutu_reader,
6429 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
6430 <keep>: Declare method.
6431 <m_keep>: Remove member.
6432 <~cutu_reader>: Remove.
6433 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6434 (cutu_reader::cutu_reader): Update.
6435 (cutu_reader::keep): Rename from ~cutu_reader.
6436 (process_psymtab_comp_unit, build_type_psymtabs_1)
6437 (process_skeletonless_type_unit, load_partial_comp_unit)
6438 (load_full_comp_unit, dwarf2_read_addr_index)
6439 (read_signatured_type): Update.
6440
6441 2020-02-08 Tom Tromey <tom@tromey.com>
6442
6443 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
6444 "want_partial_unit" parameter.
6445 (process_psymtab_comp_unit): Change want_partial_unit to bool.
6446 Inline check for DW_TAG_partial_unit.
6447 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
6448
6449 2020-02-08 Tom Tromey <tom@tromey.com>
6450
6451 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
6452 read.c.
6453 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
6454 read.c.
6455
6456 2020-02-08 Tom Tromey <tom@tromey.com>
6457
6458 * dwarf2/read.c (read_address): Move to comp-unit.c.
6459 (dwarf2_rnglists_process, dwarf2_ranges_process)
6460 (read_attribute_value, dwarf_decode_lines_1)
6461 (var_decode_location, decode_locdesc): Update.
6462 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
6463 read.c. Remove "cu" parameter.
6464 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
6465 method.
6466
6467 2020-02-08 Tom Tromey <tom@tromey.com>
6468
6469 * dwarf2/read.c (read_attribute_value, read_indirect_string)
6470 (read_indirect_line_string): Update.
6471 * dwarf2/comp-unit.c (read_offset): Remove.
6472 (read_comp_unit_head): Update.
6473 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
6474 method.
6475 (read_offset): Don't declare.
6476
6477 2020-02-08 Tom Tromey <tom@tromey.com>
6478
6479 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
6480 * dwarf2/read.c (struct comp_unit_head): Move to
6481 dwarf2/comp-unit.h.
6482 (enum class rcuh_kind): Move to comp-unit.h.
6483 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
6484 (read_comp_unit_head, error_check_comp_unit_head)
6485 (read_and_check_comp_unit_head): Move to comp-unit.c.
6486 (read_offset, dwarf_unit_type_name): Likewise.
6487 (create_debug_type_hash_table, read_cutu_die_from_dwo)
6488 (cutu_reader::cutu_reader, read_call_site_scope)
6489 (find_partial_die, follow_die_offset): Update.
6490 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
6491
6492 2020-02-08 Tom Tromey <tom@tromey.com>
6493
6494 * dwarf2/read.c (read_offset_1): Move to leb.c.
6495 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
6496 (dwarf_decode_macro_bytes): Update.
6497 * dwarf2/leb.c (read_offset): Rename; move from read.c.
6498 * dwarf2/leb.h (read_offset): Declare.
6499
6500 2020-02-08 Tom Tromey <tom@tromey.com>
6501
6502 * dwarf2/read.c (dwarf2_section_size): Remove.
6503 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
6504 Update.
6505 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
6506
6507 2020-02-08 Tom Tromey <tom@tromey.com>
6508
6509 * dwarf2/read.c (read_initial_length): Move to leb.c.
6510 * dwarf2/leb.h (read_initial_length): Declare.
6511 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
6512 handle_nonstd parameter.
6513 * dwarf2/frame.c (read_initial_length): Remove.
6514 (decode_frame_entry_1): Update.
6515
6516 2020-02-08 Tom Tromey <tom@tromey.com>
6517
6518 * dwarf2/loc.c (dwarf2_find_location_expression)
6519 (dwarf_evaluate_loc_desc::get_tls_address)
6520 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
6521 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
6522 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
6523 (dwarf2_compile_property_to_c)
6524 (dwarf2_loc_desc_get_symbol_read_needs)
6525 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
6526 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
6527 (loclist_describe_location, loclist_tracepoint_var_ref)
6528 (loclist_generate_c_location): Update.
6529 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
6530 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
6531 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
6532 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
6533 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
6534 (dwarf2_per_cu_data::addr_size)
6535 (dwarf2_per_cu_data::ref_addr_size)
6536 (dwarf2_per_cu_data::text_offset)
6537 (dwarf2_per_cu_data::addr_type): Now methods.
6538 (per_cu_header_read_in): Make per_cu "const".
6539 (dwarf2_version): Remove.
6540 (dwarf2_per_cu_data::int_type): Now a method.
6541 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
6542 (set_die_type, read_array_type, read_subrange_index_type)
6543 (read_tag_string_type, read_subrange_type): Update.
6544 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
6545 offset_size, ref_addr_size, text_offset, addr_type, version,
6546 objfile, int_type, addr_sized_int_type>: Declare methods.
6547
6548 2020-02-08 Tom Tromey <tom@tromey.com>
6549
6550 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
6551 Move earlier.
6552
6553 2020-02-08 Tom Tromey <tom@tromey.com>
6554
6555 * dwarf2/read.h (dwarf_line_debug): Declare.
6556 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
6557 * dwarf2/read.c: Move line_header code to new files.
6558 (dwarf_line_debug): No longer static.
6559 * dwarf2/line-header.c: New file.
6560 * dwarf2/line-header.h: New file.
6561
6562 2020-02-08 Tom Tromey <tom@tromey.com>
6563
6564 * dwarf2/read.c (struct line_header) <file_full_name,
6565 file_file_name>: Return unique_xmalloc_ptr.
6566 (line_header::file_file_name): Update.
6567 (line_header::file_full_name): Update.
6568 (dw2_get_file_names_reader): Update.
6569 (macro_start_file): Update.
6570
6571 2020-02-08 Tom Tromey <tom@tromey.com>
6572
6573 * dwarf2/read.c (struct line_header) <file_full_name,
6574 file_file_name>: Declare methods.
6575 (dw2_get_file_names_reader): Update.
6576 (file_file_name): Now a method.
6577 (file_full_name): Likewise.
6578 (macro_start_file): Update.
6579
6580 2020-02-08 Tom Tromey <tom@tromey.com>
6581
6582 * dwarf2/read.c (dwarf_always_disassemble)
6583 (show_dwarf_always_disassemble): Move to loc.c.
6584 (_initialize_dwarf2_read): Move "always-disassemble" registration
6585 to loc.c.
6586 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
6587 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
6588 static.
6589 (show_dwarf_always_disassemble): Move from read.c.
6590 (_initialize_dwarf2loc): Move always-disassemble from read.c.
6591
6592 2020-02-08 Tom Tromey <tom@tromey.com>
6593
6594 * dwarf2/read.c (~dwarf2_per_objfile): Update.
6595 (create_quick_file_names_table): Return htab_up.
6596 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
6597 Update.
6598 * dwarf2/read.h (struct dwarf2_per_objfile)
6599 <quick_file_names_table>: Now htab_up.
6600
6601 2020-02-08 Tom Tromey <tom@tromey.com>
6602
6603 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
6604
6605 2020-02-08 Tom Tromey <tom@tromey.com>
6606
6607 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
6608 Rewrite.
6609 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
6610 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
6611 (abbrev_table::abbrev_table): No longer inline.
6612 (ABBREV_HASH_SIZE): Remove.
6613 (abbrev_table::m_abbrevs): Now an htab_up.
6614
6615 2020-02-08 Tom Tromey <tom@tromey.com>
6616
6617 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
6618 (cutu_reader): Update.
6619 (build_type_psymtabs_1): Update.
6620 * dwarf2/abbrev.c (abbrev_table::read): Rename.
6621 (abbrev_table::alloc_abbrev): Update.
6622 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
6623 (abbrev_table::read): New static method, renamed from
6624 abbrev_table_read_table.
6625 (abbrev_table::alloc_abbrev)
6626 (abbrev_table::add_abbrev): Now private.
6627 (abbrev_table::abbrev_table): Now private.
6628 (abbrev_table::m_abbrev_obstack): Now private. Rename.
6629
6630 2020-02-08 Tom Tromey <tom@tromey.com>
6631
6632 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
6633 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
6634 htab_up.
6635
6636 2020-02-08 Tom Tromey <tom@tromey.com>
6637
6638 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
6639 htab_up.
6640 (lookup_dwo_unit_in_dwp): Update.
6641 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
6642 on obstack.
6643
6644 2020-02-08 Tom Tromey <tom@tromey.com>
6645
6646 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
6647 obstack.
6648
6649 2020-02-08 Tom Tromey <tom@tromey.com>
6650
6651 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
6652 line_header_hash.
6653 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
6654 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
6655 Change type to htab_up.
6656
6657 2020-02-08 Tom Tromey <tom@tromey.com>
6658
6659 * dwarf2/read.c (allocate_type_unit_groups_table): Return
6660 htab_up. Don't allocate on obstack.
6661 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
6662 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
6663 Change type to htab_up.
6664
6665 2020-02-08 Tom Tromey <tom@tromey.com>
6666
6667 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
6668 Change type to htab_up.
6669 * dwarf2/read.c (create_signatured_type_table_from_index)
6670 (create_signatured_type_table_from_debug_names)
6671 (create_all_type_units, add_type_unit)
6672 (lookup_dwo_signatured_type, lookup_signatured_type)
6673 (process_skeletonless_type_unit): Update.
6674 (create_debug_type_hash_table, create_debug_types_hash_table):
6675 Change type of types_htab.
6676 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
6677 htab_up. Don't allocate on obstack.
6678 (create_cus_hash_table): Change type of cus_htab parameter.
6679 (struct dwo_file) <cus, tus>: Now htab_up.
6680 (lookup_dwo_signatured_type, lookup_dwo_cutu)
6681 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
6682 (queue_and_load_all_dwo_tus): Update.
6683 * dwarf2/index-write.c (write_gdbindex): Update.
6684 (write_debug_names): Update.
6685
6686 2020-02-08 Tom Tromey <tom@tromey.com>
6687
6688 * dwarf2/read.h (struct dwarf2_queue_item): Move from
6689 dwarf2/read.c. Remove "next" member. Add constructor ntad
6690 destructor.
6691 (struct dwarf2_per_objfile) <queue>: New member.
6692 * dwarf2/read.c (struct dwarf2_queue_item): Move to
6693 dwarf2/read.h.
6694 (dwarf2_queue, dwarf2_queue_tail): Remove.
6695 (class dwarf2_queue_guard): Add parameter to constructor. Use
6696 DISABLE_COPY_AND_ASSIGN.
6697 <m_per_objfile>: New member.
6698 <~dwarf2_queue_guard>: Rewrite.
6699 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
6700 Update.
6701 (~dwarf2_queue_item): New.
6702
6703 2020-02-08 Tom Tromey <tom@tromey.com>
6704
6705 * dwarf2/read.c (struct die_info) <has_children>: New member.
6706 (dw2_get_file_names_reader): Remove has_children.
6707 (dw2_get_file_names): Update.
6708 (read_cutu_die_from_dwo): Remove has_children.
6709 (cutu_reader::init_tu_and_read_dwo_dies)
6710 (cutu_reader::cutu_reader): Update.
6711 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
6712 Remove has_children.
6713 (build_type_psymtabs_1, process_skeletonless_type_unit)
6714 (load_partial_comp_unit, load_full_comp_unit): Update.
6715 (create_dwo_cu_reader): Remove has_children.
6716 (create_cus_hash_table, read_die_and_children): Update.
6717 (read_full_die_1,read_full_die): Remove has_children.
6718 (read_signatured_type): Update.
6719 (class cutu_reader) <has_children>: Remove.
6720
6721 2020-02-08 Tom Tromey <tom@tromey.com>
6722
6723 * dwarf2/expr.c: Rename from dwarf2expr.c.
6724 * dwarf2/expr.h: Rename from dwarf2expr.h.
6725 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
6726 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
6727 * dwarf2/frame.c: Rename from dwarf2-frame.c.
6728 * dwarf2/frame.h: Rename from dwarf2-frame.h.
6729 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
6730 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
6731 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
6732 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
6733 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
6734 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
6735 * dwarf2/loc.c: Rename from dwarf2loc.c.
6736 * dwarf2/loc.h: Rename from dwarf2loc.h.
6737 * dwarf2/read.c: Rename from dwarf2read.c.
6738 * dwarf2/read.h: Rename from dwarf2read.h.
6739 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
6740 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
6741 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
6742 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
6743 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
6744 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
6745 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
6746 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
6747 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
6748 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
6749 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
6750 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
6751 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
6752 Update.
6753 * Makefile.in (COMMON_SFILES): Update.
6754 (HFILES_NO_SRCDIR): Update.
6755
6756 2020-02-08 Tom Tromey <tom@tromey.com>
6757
6758 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
6759 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
6760
6761 2020-02-08 Tom Tromey <tom@tromey.com>
6762
6763 * dwarf2read.h (struct die_info): Don't declare.
6764
6765 2020-02-08 Tom Tromey <tom@tromey.com>
6766
6767 * dwarf2read.h (die_info_ptr): Remove typedef.
6768
6769 2020-02-08 Tom Tromey <tom@tromey.com>
6770
6771 * dwarf2read.c (read_call_site_scope)
6772 (handle_data_member_location, dwarf2_add_member_fn)
6773 (mark_common_block_symbol_computed, read_common_block)
6774 (attr_to_dynamic_prop, partial_die_info::read)
6775 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
6776 (dwarf2_symbol_mark_computed, set_die_type): Update.
6777 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
6778 method.
6779 (attr_form_is_block): Don't declare.
6780 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
6781
6782 2020-02-08 Tom Tromey <tom@tromey.com>
6783
6784 * dwarf2read.c (dwarf2_find_base_address, )
6785 (read_call_site_scope, rust_containing_type)
6786 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
6787 (handle_data_member_location, dwarf2_add_member_fn)
6788 (get_alignment, read_structure_type, process_structure_scope)
6789 (mark_common_block_symbol_computed, read_common_block)
6790 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
6791 (partial_die_info::read, read_attribute_value, new_symbol)
6792 (lookup_die_type, dwarf2_get_ref_die_offset)
6793 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
6794 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
6795 (dwarf2_symbol_mark_computed): Update.
6796 * dwarf2/attribute.h (struct attribute) <value_as_address,
6797 form_is_section_offset, form_is_constant, form_is_ref>: Declare
6798 methods.
6799 (value_as_address, attr_form_is_section_offset)
6800 (attr_form_is_constant, attr_form_is_ref): Don't declare.
6801 * dwarf2/attribute.c (attribute::value_as_address)
6802 (attribute::form_is_section_offset, attribute::form_is_constant)
6803 (attribute::form_is_ref): Now methods.
6804
6805 2020-02-08 Tom Tromey <tom@tromey.com>
6806
6807 * dwarf2read.c (struct attribute, DW_STRING)
6808 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
6809 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
6810 (attr_form_is_block, attr_form_is_section_offset)
6811 (attr_form_is_constant, attr_form_is_ref): Move.
6812 * dwarf2/attribute.h: New file.
6813 * dwarf2/attribute.c: New file, from dwarf2read.c.
6814 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
6815
6816 2020-02-08 Tom Tromey <tom@tromey.com>
6817
6818 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
6819 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
6820 Move.
6821 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
6822 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
6823 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
6824 abbrev.c.
6825 * dwarf2/abbrev.h: New file.
6826 * dwarf2/abbrev.c: New file, from dwarf2read.c.
6827 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
6828
6829 2020-02-08 Tom Tromey <tom@tromey.com>
6830
6831 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
6832 (dwarf2_section_size, dwarf2_get_section_info)
6833 (create_signatured_type_table_from_debug_names)
6834 (create_addrmap_from_aranges, read_debug_names_from_section)
6835 (get_gdb_index_contents_from_section, read_comp_unit_head)
6836 (error_check_comp_unit_head, read_abbrev_offset)
6837 (create_debug_type_hash_table, init_cu_die_reader)
6838 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
6839 (read_comp_units_from_section, create_cus_hash_table)
6840 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6841 (create_dwp_v2_section, dwarf2_rnglists_process)
6842 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
6843 (abbrev_table_read_table, read_indirect_string_at_offset_from)
6844 (read_indirect_string_from_dwz, read_addr_index_1)
6845 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
6846 (dwarf_decode_macro_bytes, dwarf_decode_macros)
6847 (fill_in_loclist_baton): Update.
6848 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
6849 get_containing_section, get_bfd_owner, get_bfd_section,
6850 get_file_name, get_id, get_flags, empty, read>: Declare methods.
6851 (dwarf2_read_section, get_section_name, get_section_file_name)
6852 (get_containing_section, get_section_bfd_owner)
6853 (get_section_bfd_section, get_section_name, get_section_file_name)
6854 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
6855 declare.
6856 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
6857 (dwarf2_section_info::get_bfd_owner)
6858 (dwarf2_section_info::get_bfd_section)
6859 (dwarf2_section_info::get_name)
6860 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
6861 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
6862 (dwarf2_section_info::read): Now methods.
6863 * dwarf-index-write.c (class debug_names): Update.
6864
6865 2020-02-08 Tom Tromey <tom@tromey.com>
6866
6867 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
6868 Move to dwarf2/section.h.
6869 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
6870 (get_section_bfd_section, get_section_name)
6871 (get_section_file_name, get_section_id, get_section_flags)
6872 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
6873 dwarf2/section.c.
6874 * dwarf2/section.h: New file.
6875 * dwarf2/section.c: New file, from dwarf2read.c.
6876 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
6877
6878 2020-02-08 Tom Tromey <tom@tromey.com>
6879
6880 * dwarf2read.h (read_unsigned_leb128): Don't declare.
6881 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
6882 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
6883 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
6884 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
6885 * dwarf2/leb.h: New file, from dwarf2read.c.
6886 * dwarf2/leb.c: New file, from dwarf2read.c.
6887 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
6888 Remove.
6889 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
6890 (COMMON_SFILES): Add dwarf2/leb.c.
6891
6892 2020-02-08 Joel Brobecker <brobecker@adacore.com>
6893
6894 GDB 9.1 released.
6895
6896 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
6897
6898 PR gdb/25190:
6899 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
6900 * gdb/remote.c (remote_console_output): Update.
6901 * gdb/ui-file.c (fputs_unfiltered): Rename to...
6902 (ui_file_puts): ...this.
6903 * gdb/ui-file.h (ui_file_puts): Add declaration.
6904 * gdb/utils.c (emit_style_escape): Update.
6905 (flush_wrap_buffer): Update.
6906 (fputs_maybe_filtered): Update.
6907 (fputs_unfiltered): Add function.
6908
6909 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
6910
6911 * gdb/event-loop.c (gdb_wait_for_event): Update.
6912 * gdb/printcmd.c (printf_command): Update.
6913 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
6914 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
6915 (gdb_os_flush_stderr): Update.
6916 * gdb/remote.c (remote_console_output): Update.
6917 * gdb/ui-file.c (gdb_flush): Rename to...
6918 (ui_file_flush): ...this.
6919 (stderr_file::write): Update.
6920 (stderr_file::puts): Update.
6921 * gdb/ui-file.h (gdb_flush): Rename to...
6922 (ui_file_flush): ...this.
6923 * gdb/utils.c (gdb_flush): Add function.
6924 * gdb/utils.h (gdb_flush): Add declaration.
6925
6926 2020-02-07 Tom Tromey <tromey@adacore.com>
6927
6928 PR breakpoints/24915:
6929 * source.c (find_and_open_source): Do not check basenames_may_differ.
6930
6931 2020-02-07 Tom Tromey <tom@tromey.com>
6932
6933 * README: Update gdbserver documentation.
6934 * gdbserver: Move to top level.
6935 * configure.tgt (build_gdbserver): Remove.
6936 * configure.ac: Remove --enable-gdbserver.
6937 * configure: Rebuild.
6938 * Makefile.in (distclean): Don't mention gdbserver.
6939
6940 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
6941
6942 * source-cache.c (source_cache::ensure): Surround
6943 get_plain_source_lines with a try/catch.
6944 (source_cache::get_line_charpos): Get rid of try/catch
6945 and only check for the return value of "ensure".
6946 * tui/tui-source.c (tui_source_window::set_contents):
6947 Simplify "nlines" calculation.
6948
6949 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
6950
6951 * MAINTAINERS (Write After Approval): Add myself.
6952
6953 2020-02-05 Christian Biesinger <cbiesinger@google.com>
6954
6955 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
6956 function call.
6957
6958 2020-02-05 Christian Biesinger <cbiesinger@google.com>
6959
6960 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
6961
6962 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
6963
6964 * nat/riscv-linux-tdesc.h: New file.
6965 * nat/riscv-linux-tdesc.c: New file, taking code from...
6966 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
6967 ... here.
6968 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
6969 NATDEPFILES.
6970
6971 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
6972
6973 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
6974 we don't set the fake simulator ptid to the null_ptid.
6975
6976 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
6977
6978 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
6979 * gdbthread.h (class thread_info) <resumed>: Likewise.
6980 * infrun.c (resume_1): Likewise.
6981 (proceed): Likewise.
6982 (infrun_thread_stop_requested): Likewise.
6983 (stop_all_threads): Likewise.
6984 (handle_inferior_event): Likewise.
6985 (restart_threads): Likewise.
6986 (finish_step_over): Likewise.
6987 (keep_going_stepped_thread): Likewise.
6988 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
6989 (linux_handle_extended_wait): Likewise.
6990 * record-btrace.c (get_thread_current_frame_id): Likewise.
6991 * record-full.c (record_full_wait_1): Likewise.
6992 * remote.c (remote_target::process_initial_stop_replies): Likewise.
6993 * target.c (target_resume): Likewise.
6994 * thread.c (set_running_thread): Likewise.
6995
6996 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6997
6998 * f-valprint.c (f77_print_array_1): Changed datatype of index
6999 variable to LONGEST from int to enable it to contain bound
7000 values correctly.
7001
7002 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
7003
7004 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
7005 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
7006 offsets according to FLEN determined.
7007 (riscv_linux_nat_target::read_description): Determine FLEN
7008 dynamically.
7009 (riscv_linux_nat_target::fetch_registers): Size regset buffer
7010 according to FLEN determined.
7011 (riscv_linux_nat_target::store_registers): Likewise.
7012
7013 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7014
7015 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7016 when reg->group is empty and reggroup is not.
7017
7018 2020-01-31 Tom Tromey <tromey@adacore.com>
7019
7020 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
7021 Call beneath target's mourn_inferior after unpushing.
7022
7023 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7024
7025 PR tui/9765
7026 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
7027 have enough lines to fill the screen, still return the lowest
7028 address we found.
7029
7030 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
7033 '-', '<', and '>' commands.
7034
7035 2020-01-29 Pedro Alves <palves@redhat.com>
7036 Sergio Durigan Junior <sergiodj@redhat.com>
7037
7038 * infcmd.c (construct_inferior_arguments): Assert that
7039 'argc' is greater than 0.
7040
7041 2020-01-29 Luis Machado <luis.machado@linaro.org>
7042
7043 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
7044 (BRK_INSN_MASK): Define to 0xd4200000.
7045 (aarch64_program_breakpoint_here_p): New function.
7046 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
7047 * arch-utils.c (default_program_breakpoint_here_p): Moved from
7048 breakpoint.c.
7049 * arch-utils.h (default_program_breakpoint_here_p): Moved from
7050 breakpoint.h
7051 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
7052 call gdbarch_program_breakpoint_here_p.
7053 (program_breakpoint_here): Moved to arch-utils.c, renamed to
7054 default_program_breakpoint_here_p, changed return type to bool and
7055 simplified.
7056 * breakpoint.h (program_breakpoint_here): Moved prototype to
7057 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
7058 return type to bool.
7059 * gdbarch.c: Regenerate.
7060 * gdbarch.h: Regenerate.
7061 * gdbarch.sh (program_breakpoint_here_p): New method.
7062 * infrun.c (handle_signal_stop): Call
7063 gdbarch_program_breakpoint_here_p.
7064
7065 2020-01-26 Tom Tromey <tom@tromey.com>
7066
7067 * ctfread.c (struct ctf_fp_info): Reindent.
7068 (_initialize_ctfread): Remove.
7069
7070 2020-01-26 Tom Tromey <tom@tromey.com>
7071
7072 * psymtab.c (partial_map_expand_apply)
7073 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7074 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7075 (psym_print_stats, psym_expand_symtabs_for_function)
7076 (psym_map_symbol_filenames, psym_map_matching_symbols)
7077 (psym_expand_symtabs_matching)
7078 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7079 (maintenance_check_psymtabs): Use new methods.
7080 * psympriv.h (struct partial_symtab) <readin_p,
7081 get_compunit_symtab>: New methods.
7082 <readin, compunit_symtab>: Remove members.
7083 (struct standard_psymtab): New.
7084 (struct legacy_psymtab): Derive from standard_psymtab.
7085 * dwarf2read.h (struct dwarf2_psymtab): Derive from
7086 standard_psymtab.
7087 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
7088
7089 2020-01-26 Tom Tromey <tom@tromey.com>
7090
7091 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
7092 read_dependencies. Add assert.
7093 * psymtab.c (partial_symtab::read_dependencies): New method.
7094 * psympriv.h (struct partial_symtab) <read_dependencies>: New
7095 method.
7096 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
7097 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
7098 read_dependencies.
7099 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
7100 Add assert.
7101
7102 2020-01-26 Tom Tromey <tom@tromey.com>
7103
7104 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
7105 Call expand_psymtab.
7106 (xcoff_read_symtab): Call expand_psymtab.
7107 (xcoff_start_psymtab, xcoff_end_psymtab): Set
7108 legacy_expand_psymtab.
7109 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
7110 method.
7111 (struct legacy_psymtab) <expand_psymtab>: Implement.
7112 <legacy_expand_psymtab>: New member.
7113 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
7114 (parse_partial_symbols): Set legacy_expand_psymtab.
7115 (psymtab_to_symtab_1): Change argument order. Call
7116 expand_psymtab.
7117 (new_psymtab): Set legacy_expand_psymtab.
7118 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
7119 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
7120 expand_psymtab.
7121 (dwarf2_psymtab::expand_psymtab): Rename from
7122 psymtab_to_symtab_1. Call expand_psymtab.
7123 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
7124 (dbx_end_psymtab): Likewise.
7125 (dbx_psymtab_to_symtab_1): Change argument order. Call
7126 expand_psymtab.
7127 (dbx_read_symtab): Call expand_psymtab.
7128 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
7129 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
7130 (ctf_psymtab::read_symtab): Call expand_psymtab.
7131
7132 2020-01-26 Tom Tromey <tom@tromey.com>
7133
7134 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
7135 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
7136 messages.
7137 * mdebugread.c (mdebug_read_symtab): Remove prints.
7138 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
7139 assert.
7140 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
7141
7142 2020-01-26 Tom Tromey <tom@tromey.com>
7143
7144 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
7145 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
7146 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
7147 legacy_symtab.
7148 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
7149 * psymtab.c (psymtab_to_symtab): Call method.
7150 (dump_psymtab): Update.
7151 * psympriv.h (struct partial_symtab): Add virtual destructor.
7152 <read_symtab>: New method.
7153 (struct legacy_symtab): New.
7154 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
7155 (struct pst_map) <pst>: Now a legacy_psymtab.
7156 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
7157 (new_psymtab): Use legacy_psymtab.
7158 * dwarf2read.h (struct dwarf2_psymtab): New.
7159 (struct dwarf2_per_cu_data) <psymtab>: Use it.
7160 * dwarf2read.c (dwarf2_create_include_psymtab)
7161 (dwarf2_build_include_psymtabs, create_type_unit_group)
7162 (create_partial_symtab, process_psymtab_comp_unit_reader)
7163 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
7164 (set_partial_user): Use dwarf2_psymtab.
7165 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
7166 (psymtab_to_symtab_1, process_full_comp_unit)
7167 (process_full_type_unit, dwarf2_ranges_read)
7168 (dwarf2_get_pc_bounds, psymtab_include_file_name)
7169 (dwarf_decode_lines): Use dwarf2_psymtab.
7170 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
7171 (add_address_entry_worker, write_one_signatured_type)
7172 (recursively_count_psymbols, recursively_write_psymbols)
7173 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
7174 (write_debug_names): Likewise.
7175 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
7176 <pst>: Now a legacy_psymtab.
7177 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
7178 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
7179 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
7180 * ctfread.c (struct ctf_psymtab): New.
7181 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
7182 ctf_psymtab.
7183 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
7184 (create_partial_symtab): Return a ctf_psymtab.
7185 (scan_partial_symbols): Update.
7186
7187 2020-01-26 Tom Tromey <tom@tromey.com>
7188
7189 * xcoffread.c (xcoff_start_psymtab): Use new.
7190 * psymtab.c (partial_symtab::partial_symtab): New constructor,
7191 renamed from start_psymtab_common.
7192 * psympriv.h (struct partial_symtab): Add new constructor.
7193 (start_psymtab_common): Don't declare.
7194 * mdebugread.c (parse_partial_symbols): Use new.
7195 * dwarf2read.c (create_partial_symtab): Use new.
7196 * dbxread.c (start_psymtab): Use new.
7197 * ctfread.c (create_partial_symtab): Use new.
7198
7199 2020-01-26 Tom Tromey <tom@tromey.com>
7200
7201 * xcoffread.c (xcoff_end_psymtab): Use new.
7202 * psymtab.c (start_psymtab_common): Use new.
7203 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
7204 Update.
7205 * psympriv.h (struct partial_symtab): Add parameters to
7206 constructor. Don't inline.
7207 (allocate_psymtab): Don't declare.
7208 * mdebugread.c (new_psymtab): Use new.
7209 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
7210 * dbxread.c (dbx_end_psymtab): Use new.
7211
7212 2020-01-26 Tom Tromey <tom@tromey.com>
7213
7214 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
7215 allocate_psymtab. Update documentation.
7216 * psymtab.c (psymtab_storage::install_psymtab): Rename from
7217 allocate_psymtab. Do not use new.
7218 (allocate_psymtab): Use new. Update.
7219
7220 2020-01-26 Tom Tromey <tom@tromey.com>
7221
7222 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
7223 * psymtab.c (psym_print_stats): Update.
7224 * psympriv.h (struct partial_symtab) <readin,
7225 psymtabs_addrmap_supported, anonymous>: Now bool.
7226 * mdebugread.c (psymtab_to_symtab_1): Update.
7227 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
7228 (build_type_psymtabs_reader, psymtab_to_symtab_1)
7229 (process_full_comp_unit, process_full_type_unit): Update.
7230 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
7231 * ctfread.c (psymtab_to_symtab): Update.
7232
7233 2020-01-26 Tom Tromey <tom@tromey.com>
7234
7235 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
7236 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
7237 * psymtab.c (psymtab_storage): Delete psymtabs.
7238 (psymtab_storage::allocate_psymtab): Use new.
7239 (psymtab_storage::discard_psymtab): Use delete.
7240 * psympriv.h (struct partial_symtab): Add constructor and
7241 initializers.
7242
7243 2020-01-26 Tom Tromey <tom@tromey.com>
7244
7245 * machoread.c: Do not include psympriv.h.
7246
7247 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7248
7249 * NEWS: Mention the new option and the set/show commands.
7250
7251 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7252
7253 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
7254 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
7255 (validate_exec_file): New variables, enums, functions.
7256 (exec_file_locate_attach, print_section_info): Style the filenames.
7257 (_initialize_exec): Install show_exec_file_mismatch_command and
7258 set_exec_file_mismatch_command.
7259 * gdbcore.h (validate_exec_file): Declare.
7260 * infcmd.c (attach_command): Call validate_exec_file.
7261 * remote.c ( remote_target::remote_add_inferior): Likewise.
7262
7263 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7264
7265 * frame.c (find_frame_sal): Move call to get_next_frame into more
7266 inner scope.
7267 * inline-frame.c (inilne_state) <inline_state>: Update argument
7268 types.
7269 (inilne_state) <skipped_symbol>: Rename to...
7270 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
7271 (skip_inline_frames): Build vector of skipped symbols and use this
7272 to reate the inline_state.
7273 (inline_skipped_symbol): Add a comment and some assertions, fetch
7274 skipped symbol from the list.
7275
7276 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7277
7278 * buildsym.c (lte_is_less_than): Delete.
7279 (buildsym_compunit::end_symtab_with_blockvector): Create local
7280 lambda function to sort line table entries, and use
7281 std::stable_sort instead of std::sort.
7282 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
7283 markers when looking for a previous line.
7284
7285 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7286
7287 * dwarf2read.c (lnp_state_machine::record_line): Include
7288 end_sequence parameter in debug print out. Record the line if we
7289 are at an end_sequence marker even if it's not the start of a
7290 statement.
7291 * symmisc.c (maintenance_print_one_line_table): Print end of
7292 sequence markers with 'END' not '0'.
7293
7294 2020-01-24 Pedro Alves <palves@redhat.com>
7295
7296 PR gdb/25410
7297 * thread.c (scoped_restore_current_thread::restore): Use
7298 switch_to_inferior_no_thread.
7299 * exec.c: Include "progspace-and-thread.h".
7300 (add_target_sections, remove_target_sections):
7301 scoped_restore_current_pspace_and_thread instead of
7302 scoped_restore_current_thread.
7303 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
7304 and aspace to the inferior before calling clone_program_space.
7305 Remove stale comment.
7306
7307 2020-01-24 Christian Biesinger <cbiesinger@google.com>
7308
7309 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
7310 (arm_netbsd_nat_target::fetch_registers): ...this.
7311 (arm_nbsd_nat_target::store_registers): Rename to...
7312 (arm_netbsd_nat_target::store_registers): ...this.
7313
7314 2020-01-24 Christian Biesinger <cbiesinger@google.com>
7315
7316 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7317 register_t.
7318
7319 2020-01-24 Christian Biesinger <cbiesinger@google.com>
7320
7321 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
7322 Update comment.
7323 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
7324 Likewise.
7325 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
7326 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
7327 the correct replacement (iterate_over_regset_sections).
7328 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
7329 Update comment.
7330
7331 2020-01-24 Graham Markall <graham.markall@embecosm.com>
7332
7333 PR gdb/23718
7334 * gdb/python/python.c (execute_gdb_command): Call
7335 async_enable_stdin in catch block.
7336
7337 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7338
7339 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
7340 SWITCH_THRU_ALL_UIS.
7341
7342 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
7343
7344 PR tui/9765
7345 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
7346 comment, add extra parameter, and update to store previous symbol
7347 when appropriate.
7348 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
7349 add extra parameter.
7350 * tui/tui-disasm.c (tui_disassemble): Update header comment,
7351 remove unneeded parameter, add try/catch around gdb_print_insn,
7352 rewrite to add items to asm_lines vector.
7353 (tui_find_backward_disassembly_start_address): New function.
7354 (tui_find_disassembly_address): Updated throughout.
7355 (tui_disasm_window::set_contents): Update for changes to
7356 tui_disassemble.
7357 (tui_disasm_window::do_scroll_vertical): No need to adjust the
7358 number of lines to scroll.
7359
7360 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
7361
7362 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
7363 (SECT_OFF_DATA): Likewise.
7364 (SECT_OFF_RODATA): Likewise.
7365 (SECT_OFF_TEXT): Likewise.
7366 (SECT_OFF_BSS): Likewise.
7367 (struct objfile) <text_section_offset, data_section_offset>: New
7368 methods.
7369 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
7370 objfile::text_section_offset.
7371 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
7372 * coffread.c (coff_symtab_read): Likewise.
7373 (enter_linenos): Likewise.
7374 (process_coff_symbol): Likewise.
7375 * ctfread.c (get_objfile_text_range): Likewise.
7376 * dtrace-probe.c (dtrace_probe::get_relocated_address):
7377 Use objfile::data_section_offset.
7378 * dwarf2-frame.c (execute_cfa_program): Use
7379 objfile::text_section_offset.
7380 (dwarf2_frame_find_fde): Likewise.
7381 * dwarf2read.c (create_addrmap_from_index): Likewise.
7382 (create_addrmap_from_aranges): Likewise.
7383 (dw2_find_pc_sect_compunit_symtab): Likewise.
7384 (process_psymtab_comp_unit_reader): Likewise.
7385 (add_partial_symbol): Likewise.
7386 (add_partial_subprogram): Likewise.
7387 (process_full_comp_unit): Likewise.
7388 (read_file_scope): Likewise.
7389 (read_func_scope): Likewise.
7390 (read_lexical_block_scope): Likewise.
7391 (read_call_site_scope): Likewise.
7392 (dwarf2_rnglists_process): Likewise.
7393 (dwarf2_ranges_process): Likewise.
7394 (dwarf2_ranges_read): Likewise.
7395 (dwarf_decode_lines_1): Likewise.
7396 (new_symbol): Likewise.
7397 (dwarf2_fetch_die_loc_sect_off): Likewise.
7398 (dwarf2_per_cu_text_offset): Likewise.
7399 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
7400 * hppa-tdep.c (read_unwind_info): Likewise.
7401 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
7402 * psympriv.h (struct partial_symtab): Likewise.
7403 * psymtab.c (find_pc_sect_psymtab): Likewise.
7404 * solib-svr4.c (enable_break): Likewise.
7405 * stap-probe.c (relocate_address): Use
7406 objfile::data_section_offset.
7407 * xcoffread.c (enter_line_range): Use
7408 objfile::text_section_offset.
7409 (read_xcoff_symtab): Likewise.
7410
7411 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
7412
7413 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
7414 declaration to narrower scopes.
7415
7416 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
7417
7418 * darwin-nat.h (struct darwin_exception_msg, enum
7419 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
7420 Move up.
7421 (class darwin_nat_target) <wait_1, check_new_threads,
7422 decode_exception_message, decode_message, stop_inferior,
7423 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
7424 * darwin-nat.c (darwin_check_new_threads): Rename to...
7425 (darwin_nat_target::check_new_threads): ... this.
7426 (darwin_suspend_inferior_it): Remove.
7427 (darwin_decode_exception_message): Rename to...
7428 (darwin_nat_target::decode_exception_message): ... this.
7429 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
7430 (darwin_decode_message): Rename to...
7431 (darwin_nat_target::decode_message): ... this.
7432 (cancel_breakpoint): Rename to...
7433 (darwin_nat_target::cancel_breakpoint): ... this.
7434 (darwin_wait): Rename to...
7435 (darwin_nat_target::wait_1): ... this. Use range-based for loop
7436 instead of iterate_over_inferiors.
7437 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
7438 (darwin_stop_inferior): Rename to...
7439 (darwin_nat_target::stop_inferior): ... this.
7440 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
7441 (darwin_init_thread_list): Rename to...
7442 (darwin_nat_target::init_thread_list): ... this.
7443 (darwin_ptrace_him): Rename to...
7444 (darwin_nat_target::ptrace_him): ... this.
7445 (darwin_nat_target::create_inferior): Pass lambda function to
7446 fork_inferior.
7447 (darwin_nat_target::detach): Call stop_inferior instead of
7448 darwin_stop_inferior.
7449 * fork-inferior.h (fork_inferior): Change init_trace_fun
7450 parameter to gdb::function_view.
7451 * fork-inferior.c (fork_inferior): Likewise.
7452
7453 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
7454
7455 * i386-cygwin-tdep.c (core_process_module_section): Update.
7456 * windows-nat.c (struct lm_info_windows): Add text_offset.
7457 (windows_xfer_shared_libraries): Update.
7458 * windows-tdep.c (windows_xfer_shared_library):
7459 Add text_offset_cached argument.
7460 * windows-tdep.h (windows_xfer_shared_library): Update.
7461
7462 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
7463
7464 * gdbarch.sh: Add declaration for _initialize_gdbarch.
7465
7466 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
7467
7468 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
7469 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
7470 replace with range-based for.
7471 (gdbsim_interrupt_inferior): Remove.
7472 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
7473 with a range-based for. Inline code from
7474 gdbsim_interrupt_inferior.
7475
7476 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
7477
7478 * infrun.c (proceed): Fix indentation.
7479
7480 2020-01-21 Tom Tromey <tromey@adacore.com>
7481
7482 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
7483 * python/python.c (python_extension_ops): Update.
7484 (gdbpy_colorize): New function.
7485 * python/lib/gdb/__init__.py (colorize): New function.
7486 * extension.h (ext_lang_colorize): Declare.
7487 * extension.c (ext_lang_colorize): New function.
7488 * extension-priv.h (struct extension_language_ops) <colorize>: New
7489 member.
7490 * cli/cli-style.c (_initialize_cli_style): Update help text.
7491
7492 2020-01-21 Luis Machado <luis.machado@linaro.org>
7493
7494 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
7495 <cond>: Change type to bool.
7496 (aarch64_displaced_step_b_cond): Update cond to use bool type.
7497 (aarch64_displaced_step_cb): Likewise.
7498 (aarch64_displaced_step_tb): Likewise.
7499
7500 2020-01-21 Luis Machado <luis.machado@linaro.org>
7501
7502 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
7503 output.
7504
7505 2020-01-21 Luis Machado <luis.machado@linaro.org>
7506
7507 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
7508 <pc_adjust>: Adjust the documentation.
7509 (aarch64_displaced_step_fixup): Check if PC really moved before
7510 adjusting it.
7511
7512 2020-01-19 Tom Tromey <tom@tromey.com>
7513
7514 * disasm.c (~gdb_disassembler): New destructor.
7515 (gdb_buffered_insn_length): Call disassemble_free_target.
7516 * disasm.h (class gdb_disassembler): Declare destructor. Use
7517 DISABLE_COPY_AND_ASSIGN.
7518
7519 2020-01-19 Tom Tromey <tom@tromey.com>
7520
7521 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
7522 (die_reader_func_ftype): Remove.
7523 (cutu_reader): New class.
7524 (dw2_get_file_names_reader): Remove "data" parameter.
7525 (dw2_get_file_names): Use cutu_reader.
7526 (create_debug_type_hash_table): Update.
7527 (read_cutu_die_from_dwo): Update comment.
7528 (lookup_dwo_unit): Add dwo_name parameter.
7529 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
7530 die_reader_func_ftype and data parameters.
7531 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
7532 Remove die_reader_func_ftype and data parameters.
7533 (~cutu_reader): New; from init_cutu_and_read_dies.
7534 (cutu_reader::cutu_reader): Rename from
7535 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
7536 and data parameters.
7537 (init_cutu_and_read_dies_simple): Remove.
7538 (struct process_psymtab_comp_unit_data): Remove.
7539 (process_psymtab_comp_unit_reader): Remove data parameter; add
7540 want_partial_unit and pretend_language parameters.
7541 (process_psymtab_comp_unit): Use cutu_reader.
7542 (build_type_psymtabs_reader): Remove data parameter.
7543 (build_type_psymtabs_1): Use cutu_reader.
7544 (process_skeletonless_type_unit): Likewise.
7545 (load_partial_comp_unit_reader): Remove.
7546 (load_partial_comp_unit): Use cutu_reader.
7547 (load_full_comp_unit_reader): Remove.
7548 (load_full_comp_unit): Use cutu_reader.
7549 (struct create_dwo_cu_data): Remove.
7550 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
7551 dwo_unit parameters.
7552 (create_cus_hash_table): Use cutu_reader.
7553 (struct dwarf2_read_addr_index_data): Remove.
7554 (dwarf2_read_addr_index_reader): Remove.
7555 (dwarf2_read_addr_index): Use cutu_reader.
7556 (read_signatured_type_reader): Remove.
7557 (read_signatured_type): Use cutu_reader.
7558
7559 2020-01-19 Tom Tromey <tom@tromey.com>
7560
7561 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
7562 * tui/tui-wingeneral.h (class tui_suppress_output): New.
7563 (tui_wrefresh): Declare.
7564 * tui/tui-wingeneral.c (suppress_output): New global.
7565 (tui_suppress_output, ~tui_suppress_output): New constructor and
7566 destructor.
7567 (tui_wrefresh): New function.
7568 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
7569 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
7570 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
7571 method.
7572 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
7573 tui_wrefresh.
7574 (tui_data_window::no_refresh): New method.
7575 (tui_data_item_window::refresh_window): Call tui_wrefresh.
7576 (tui_reg_command): Use tui_suppress_output
7577 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
7578 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
7579 method.
7580 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
7581
7582 2020-01-19 Tom Tromey <tom@tromey.com>
7583
7584 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7585 Handle case where symtab is null.
7586
7587 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
7588
7589 * linux-fork.c (one_fork_p): Simplify.
7590
7591 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7592
7593 * top.c (struct qt_args): Remove.
7594 (kill_or_detach): Change return type to void, replace `void *`
7595 parameter with a proper one.
7596 (print_inferior_quit_action): Likewise.
7597 (quit_confirm): Use range-based for loop to iterate over inferiors.
7598 (quit_force): Likewise.
7599
7600 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7601
7602 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
7603 `void *` parameter with proper parameters.
7604 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
7605 (print_one_inferior): Change return type to void, replace `void *`
7606 parameter with proper parameters.
7607 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
7608 inferiors.
7609 (get_other_inferior): Remove.
7610 (mi_cmd_remove_inferior): Use range-based loop to iterate over
7611 inferiors.
7612
7613 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7614
7615 * mi/mi-interp.c (report_initial_inferior): Remove.
7616 (mi_interp::init): Use range-based for to iterate over inferiors.
7617
7618 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
7619
7620 * python/py-inferior.c (build_inferior_list): Remove.
7621 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
7622
7623 2020-01-16 Christian Biesinger <cbiesinger@google.com>
7624
7625 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
7626 (btrace_stitch_trace): Likewise.
7627 * charset.c (intermediate_encoding): Likewise (vaild).
7628 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
7629 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
7630 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
7631
7632 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
7633
7634 * windows-tdep.c (windows_get_tlb_type):
7635 Add rtl_user_process_parameters type.
7636
7637 2020-01-16 Pedro Alves <palves@redhat.com>
7638 Norbert Lange <nolange79@gmail.com>
7639
7640 PR build/24805
7641 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
7642 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
7643 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
7644 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
7645 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
7646 (ps_plog): Redeclare exported functions with default visibility.
7647
7648 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
7649
7650 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
7651 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
7652
7653 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
7654
7655 * infcmd.c (post_create_inferior): Use get_thread_regcache
7656 instead of get_current_regcache.
7657
7658 2020-01-14 Tom Tromey <tom@tromey.com>
7659
7660 PR symtab/12535:
7661 * python/python.c (gdbpy_decode_line): Treat empty string the same
7662 as no argument.
7663
7664 2020-01-14 Tom Tromey <tom@tromey.com>
7665
7666 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
7667
7668 2020-01-14 Tom Tromey <tom@tromey.com>
7669
7670 * nat/linux-btrace.c: Don't include <config.h>.
7671 * nat/linux-ptrace.c: Don't include <config.h>.
7672 * nat/x86-linux-dregs.c: Don't include <config.h>.
7673
7674 2020-01-14 Tom Tromey <tom@tromey.com>
7675
7676 * configure: Rebuild.
7677 * configure.ac: Move many checks to ../gdbsupport/common.m4.
7678
7679 2020-01-14 Tom Tromey <tom@tromey.com>
7680
7681 * nat/x86-linux-dregs.c: Include configh.h.
7682 * nat/linux-ptrace.c: Include configh.h.
7683 * nat/linux-btrace.c: Include configh.h.
7684 * defs.h: Include config.h, bfd.h.
7685 * configure.ac: Don't source common.host.
7686 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
7687 * configure: Rebuild.
7688 * acinclude.m4: Update path.
7689 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
7690 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
7691 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
7692 (CLIBS): Add LIBSUPPORT.
7693 (CDEPS): Likewise.
7694 (COMMON_SFILES): Remove gdbsupport files.
7695 (HFILES_NO_SRCDIR): Likewise.
7696 (stamp-version): Update path to create-version.sh.
7697 (ALLDEPFILES): Remove gdbsupport files.
7698
7699 2020-01-14 Tom Tromey <tom@tromey.com>
7700
7701 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
7702 USE_WIN32API when needed.
7703 * configure.ac (USE_WIN32API): Don't define.
7704 (WIN32LIBS): Use WIN32APILIBS.
7705 * configure: Rebuild.
7706
7707 2020-01-14 Tom Tromey <tom@tromey.com>
7708
7709 * configure: Rebuild.
7710 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
7711
7712 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7713
7714 * skip.c (skip_function_command): Make skip w/o arguments use the
7715 name of the inlined function if pc is inside any inlined function.
7716
7717 2020-01-14 Luis Machado <luis.machado@linaro.org>
7718
7719 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
7720 * infrun.c (resume_1): Likewise.
7721 (handle_inferior_event): Remove stale comment.
7722 * linux-nat.c (linux_nat_target::resume): Update comments.
7723 (save_stop_reason): Likewise.
7724 (linux_nat_filter_event): Likewise.
7725 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
7726
7727 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7728
7729 * elfread.c (record_minimal_symbol): Set section index to 0 for
7730 non-allocatable sections.
7731
7732
7733 2020-01-13 Ali Tamur <tamur@google.com>
7734
7735 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
7736 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
7737 to gdb::optional. Update comments.
7738 (dwo_file): Update comments.
7739 (read_attribute): Update API to take an additional out parameter,
7740 need_reprocess. This is used to mark attributes that need other
7741 attributes (e.g. str_offsets_base) for correct computation which may not
7742 have been read yet.
7743 (read_attribute_reprocess): New function declaration.
7744 (read_addr_index): Likewise.
7745 (read_dwo_str_index): Likewise.
7746 (read_stub_str_index): Likewise.
7747 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
7748 (lookup_addr_base): New function definition.
7749 (lookup_ranges_base): Likewise.
7750 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
7751 lookup_ranges_base.
7752 (init_cutu_and_read_dies): Update comments.
7753 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
7754 unit. This is used to inherit parent's str_offsets_base and addr_base.
7755 Update comments.
7756 (init_cutu_and_read_dies_simple): Reflect API changes.
7757 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
7758 (create_cus_hash_table): Change API to take parent compile unit.
7759 Reflect API changes.
7760 (open_and_init_dwo_file): Reflect API changes.
7761 (dwarf2_get_pc_bounds): Update comments.
7762 (dwarf2_record_block_ranges): Likewise.
7763 (read_full_die_1): Change implementation to reprocess attributes that
7764 need str_offsets_base and addr_base.
7765 (partial_die_info::read): Likewise.
7766 (read_attribute_reprocess): New function definition.
7767 (read_attribute_value): Change API to take an additional out parameter,
7768 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
7769 when a non-dwo compile unit has index based attributes.
7770 (read_attribute): Reflect API changes.
7771 (read_addr_index_1): Reflect API changes. Update comments.
7772 (dwarf2_read_addr_index_data): Reflect API changes.
7773 (dwarf2_read_addr_index): Likewise.
7774 (read_str_index): Change API and implementation. This becomes a helper
7775 to be used by the new string index related methods. Update error
7776 message and comments.
7777 (read_dwo_str_index): New function definition.
7778 (read_stub_str_index): Likewise.
7779 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
7780 * symfile.h (dwarf2_debug_sections): Likewise.
7781 * xcoffread.c (dwarf2_debug_sections): Likewise.
7782
7783 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7784
7785 * gdbcore.h (struct core_fns) <core_read_registers>: Change
7786 core_reg_sect type to gdb_byte *.
7787 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
7788 * cris-tdep.c (fetch_core_registers): Likewise.
7789 * corelow.c (core_target::get_core_register_section): Change
7790 type of `contents` to gdb::byte_vector.
7791
7792 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7793
7794 * tui/tui-wingeneral.c (box_win): Position the title in the center
7795 of the border.
7796
7797 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7798
7799 * corelow.c (core_target::get_core_register_section): Use
7800 std::vector instead of alloca.
7801
7802 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * warning.m4: Add -Wmissing-declarations to build_warnings.
7805 * configure: Re-generate.
7806
7807 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7808
7809 * python/python.c (init__gdb_module): Add declaration.
7810
7811 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
7812
7813 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
7814 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
7815 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
7816 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
7817 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
7818 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
7819 * ada-exp.y (_initialize_ada_exp): Add declaration.
7820 * ada-lang.c (_initialize_ada_language): Add declaration.
7821 * ada-tasks.c (_initialize_tasks): Add declaration.
7822 * agent.c (_initialize_agent): Add declaration.
7823 * aix-thread.c (_initialize_aix_thread): Add declaration.
7824 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
7825 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
7826 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
7827 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
7828 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
7829 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7830 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
7831 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
7832 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
7833 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
7834 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
7835 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
7836 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
7837 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
7838 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
7839 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
7840 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
7841 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
7842 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
7843 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
7844 * annotate.c (_initialize_annotate): Add declaration.
7845 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
7846 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
7847 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
7848 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
7849 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
7850 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
7851 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
7852 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
7853 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
7854 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
7855 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
7856 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
7857 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7858 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
7859 * auto-load.c (_initialize_auto_load): Add declaration.
7860 * auxv.c (_initialize_auxv): Add declaration.
7861 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
7862 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
7863 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
7864 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
7865 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
7866 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
7867 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
7868 * breakpoint.c (_initialize_breakpoint): Add declaration.
7869 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
7870 * btrace.c (_initialize_btrace): Add declaration.
7871 * charset.c (_initialize_charset): Add declaration.
7872 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
7873 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7874 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7875 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
7876 * cli/cli-script.c (_initialize_cli_script): Add declaration.
7877 * cli/cli-style.c (_initialize_cli_style): Add declaration.
7878 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
7879 * coffread.c (_initialize_coffread): Add declaration.
7880 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
7881 * compile/compile.c (_initialize_compile): Add declaration.
7882 * complaints.c (_initialize_complaints): Add declaration.
7883 * completer.c (_initialize_completer): Add declaration.
7884 * copying.c (_initialize_copying): Add declaration.
7885 * corefile.c (_initialize_core): Add declaration.
7886 * corelow.c (_initialize_corelow): Add declaration.
7887 * cp-abi.c (_initialize_cp_abi): Add declaration.
7888 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
7889 * cp-support.c (_initialize_cp_support): Add declaration.
7890 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
7891 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
7892 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
7893 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
7894 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
7895 * ctfread.c (_initialize_ctfread): Add declaration.
7896 * d-lang.c (_initialize_d_language): Add declaration.
7897 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
7898 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
7899 * dbxread.c (_initialize_dbxread): Add declaration.
7900 * dcache.c (_initialize_dcache): Add declaration.
7901 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
7902 * disasm.c (_initialize_disasm): Add declaration.
7903 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
7904 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
7905 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
7906 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
7907 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
7908 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
7909 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
7910 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
7911 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
7912 * elfread.c (_initialize_elfread): Add declaration.
7913 * exec.c (_initialize_exec): Add declaration.
7914 * extension.c (_initialize_extension): Add declaration.
7915 * f-lang.c (_initialize_f_language): Add declaration.
7916 * f-valprint.c (_initialize_f_valprint): Add declaration.
7917 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
7918 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
7919 * filesystem.c (_initialize_filesystem): Add declaration.
7920 * findcmd.c (_initialize_mem_search): Add declaration.
7921 * findvar.c (_initialize_findvar): Add declaration.
7922 * fork-child.c (_initialize_fork_child): Add declaration.
7923 * frame-base.c (_initialize_frame_base): Add declaration.
7924 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7925 * frame.c (_initialize_frame): Add declaration.
7926 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
7927 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
7928 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
7929 * gcore.c (_initialize_gcore): Add declaration.
7930 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
7931 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
7932 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
7933 * gdbarch.c (_initialize_gdbarch): Add declaration.
7934 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
7935 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
7936 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
7937 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
7938 * go-lang.c (_initialize_go_language): Add declaration.
7939 * go32-nat.c (_initialize_go32_nat): Add declaration.
7940 * guile/guile.c (_initialize_guile): Add declaration.
7941 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7942 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
7943 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
7944 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
7945 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
7946 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
7947 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
7948 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
7949 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
7950 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
7951 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
7952 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
7953 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
7954 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
7955 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
7956 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
7957 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
7958 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
7959 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
7960 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
7961 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
7962 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
7963 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
7964 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
7965 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
7966 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
7967 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
7968 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
7969 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
7970 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
7971 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
7972 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
7973 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
7974 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
7975 * infcall.c (_initialize_infcall): Add declaration.
7976 * infcmd.c (_initialize_infcmd): Add declaration.
7977 * inflow.c (_initialize_inflow): Add declaration.
7978 * infrun.c (_initialize_infrun): Add declaration.
7979 * interps.c (_initialize_interpreter): Add declaration.
7980 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
7981 * jit.c (_initialize_jit): Add declaration.
7982 * language.c (_initialize_language): Add declaration.
7983 * linux-fork.c (_initialize_linux_fork): Add declaration.
7984 * linux-nat.c (_initialize_linux_nat): Add declaration.
7985 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
7986 * linux-thread-db.c (_initialize_thread_db): Add declaration.
7987 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
7988 * m2-lang.c (_initialize_m2_language): Add declaration.
7989 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
7990 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
7991 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
7992 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
7993 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7994 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
7995 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
7996 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
7997 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
7998 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7999 * machoread.c (_initialize_machoread): Add declaration.
8000 * macrocmd.c (_initialize_macrocmd): Add declaration.
8001 * macroscope.c (_initialize_macroscope): Add declaration.
8002 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
8003 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
8004 * maint.c (_initialize_maint_cmds): Add declaration.
8005 * mdebugread.c (_initialize_mdebugread): Add declaration.
8006 * memattr.c (_initialize_mem): Add declaration.
8007 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
8008 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
8009 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
8010 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
8011 * mi/mi-main.c (_initialize_mi_main): Add declaration.
8012 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
8013 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
8014 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
8015 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
8016 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
8017 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
8018 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
8019 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
8020 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
8021 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
8022 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
8023 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
8024 * mipsread.c (_initialize_mipsread): Add declaration.
8025 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
8026 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
8027 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
8028 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
8029 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
8030 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
8031 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
8032 * nto-procfs.c (_initialize_procfs): Add declaration.
8033 * objc-lang.c (_initialize_objc_language): Add declaration.
8034 * observable.c (_initialize_observer): Add declaration.
8035 * opencl-lang.c (_initialize_opencl_language): Add declaration.
8036 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
8037 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
8038 * osabi.c (_initialize_gdb_osabi): Add declaration.
8039 * osdata.c (_initialize_osdata): Add declaration.
8040 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
8041 * parse.c (_initialize_parse): Add declaration.
8042 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
8043 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
8044 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
8045 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
8046 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
8047 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
8048 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
8049 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
8050 * printcmd.c (_initialize_printcmd): Add declaration.
8051 * probe.c (_initialize_probe): Add declaration.
8052 * proc-api.c (_initialize_proc_api): Add declaration.
8053 * proc-events.c (_initialize_proc_events): Add declaration.
8054 * proc-service.c (_initialize_proc_service): Add declaration.
8055 * procfs.c (_initialize_procfs): Add declaration.
8056 * producer.c (_initialize_producer): Add declaration.
8057 * psymtab.c (_initialize_psymtab): Add declaration.
8058 * python/python.c (_initialize_python): Add declaration.
8059 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
8060 * record-btrace.c (_initialize_record_btrace): Add declaration.
8061 * record-full.c (_initialize_record_full): Add declaration.
8062 * record.c (_initialize_record): Add declaration.
8063 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
8064 * regcache.c (_initialize_regcache): Add declaration.
8065 * reggroups.c (_initialize_reggroup): Add declaration.
8066 * remote-notif.c (_initialize_notif): Add declaration.
8067 * remote-sim.c (_initialize_remote_sim): Add declaration.
8068 * remote.c (_initialize_remote): Add declaration.
8069 * reverse.c (_initialize_reverse): Add declaration.
8070 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
8071 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
8072 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
8073 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
8074 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
8075 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
8076 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
8077 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
8078 Add declaration.
8079 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
8080 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
8081 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
8082 * rust-exp.y (_initialize_rust_exp): Add declaration.
8083 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
8084 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
8085 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
8086 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
8087 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
8088 * score-tdep.c (_initialize_score_tdep): Add declaration.
8089 * ser-go32.c (_initialize_ser_dos): Add declaration.
8090 * ser-mingw.c (_initialize_ser_windows): Add declaration.
8091 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
8092 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
8093 * ser-uds.c (_initialize_ser_socket): Add declaration.
8094 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
8095 * serial.c (_initialize_serial): Add declaration.
8096 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
8097 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
8098 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
8099 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
8100 * skip.c (_initialize_step_skip): Add declaration.
8101 * sol-thread.c (_initialize_sol_thread): Add declaration.
8102 * solib-aix.c (_initialize_solib_aix): Add declaration.
8103 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
8104 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
8105 * solib-frv.c (_initialize_frv_solib): Add declaration.
8106 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
8107 * solib-target.c (_initialize_solib_target): Add declaration.
8108 * solib.c (_initialize_solib): Add declaration.
8109 * source-cache.c (_initialize_source_cache): Add declaration.
8110 * source.c (_initialize_source): Add declaration.
8111 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
8112 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
8113 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
8114 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
8115 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
8116 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
8117 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
8118 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
8119 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
8120 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
8121 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
8122 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
8123 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
8124 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
8125 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
8126 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
8127 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
8128 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
8129 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
8130 * stabsread.c (_initialize_stabsread): Add declaration.
8131 * stack.c (_initialize_stack): Add declaration.
8132 * stap-probe.c (_initialize_stap_probe): Add declaration.
8133 * std-regs.c (_initialize_frame_reg): Add declaration.
8134 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
8135 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
8136 * symfile.c (_initialize_symfile): Add declaration.
8137 * symmisc.c (_initialize_symmisc): Add declaration.
8138 * symtab.c (_initialize_symtab): Add declaration.
8139 * target.c (_initialize_target): Add declaration.
8140 * target-connection.c (_initialize_target_connection): Add
8141 declaration.
8142 * target-dcache.c (_initialize_target_dcache): Add declaration.
8143 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
8144 * thread.c (_initialize_thread): Add declaration.
8145 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
8146 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
8147 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
8148 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
8149 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
8150 * tracectf.c (_initialize_ctf): Add declaration.
8151 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
8152 * tracefile.c (_initialize_tracefile): Add declaration.
8153 * tracepoint.c (_initialize_tracepoint): Add declaration.
8154 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
8155 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
8156 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
8157 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
8158 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
8159 * tui/tui-win.c (_initialize_tui_win): Add declaration.
8160 * tui/tui.c (_initialize_tui): Add declaration.
8161 * typeprint.c (_initialize_typeprint): Add declaration.
8162 * ui-style.c (_initialize_ui_style): Add declaration.
8163 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
8164 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
8165 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
8166 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
8167 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
8168 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
8169 * unittests/filtered_iterator-selftests.c
8170 (_initialize_filtered_iterator_selftests): Add declaration.
8171 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
8172 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
8173 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
8174 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
8175 * unittests/main-thread-selftests.c
8176 (_initialize_main_thread_selftests): Add declaration.
8177 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
8178 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
8179 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
8180 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
8181 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
8182 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
8183 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
8184 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
8185 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
8186 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
8187 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
8188 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
8189 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
8190 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
8191 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
8192 declaration.
8193 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
8194 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
8195 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
8196 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
8197 * user-regs.c (_initialize_user_regs): Add declaration.
8198 * utils.c (_initialize_utils): Add declaration.
8199 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
8200 * valops.c (_initialize_valops): Add declaration.
8201 * valprint.c (_initialize_valprint): Add declaration.
8202 * value.c (_initialize_values): Add declaration.
8203 * varobj.c (_initialize_varobj): Add declaration.
8204 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
8205 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
8206 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
8207 * windows-nat.c (_initialize_windows_nat): Add declaration.
8208 (_initialize_check_for_gdb_ini): Add declaration.
8209 (_initialize_loadable): Add declaration.
8210 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
8211 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
8212 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
8213 * xcoffread.c (_initialize_xcoffread): Add declaration.
8214 * xml-support.c (_initialize_xml_support): Add declaration.
8215 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
8216 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
8217 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
8218 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
8219
8220 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8221
8222 * regformats/regdat.sh: Generate declaration for init function.
8223
8224 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
8225
8226 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
8227 up.
8228 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
8229 close_one_inferior>: New methods.
8230 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
8231 pass down target to find_inferior_pid.
8232 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
8233 Pass down target to find_inferior_ptid.
8234 (gdbsim_target::create_inferior): Pass down target to
8235 add_thread_silent.
8236 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
8237 target down to find_inferior_ptid and switch_to_thread.
8238 (gdbsim_target::close): Update to call close_one_inferior.
8239 (struct resume_data): Remove.
8240 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
8241 directly, rather than through a void pointer.
8242 (gdbsim_target::resume): Update to call resume_one_inferior.
8243
8244 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
8245
8246 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
8247
8248 2020-01-12 Pedro Alves <palves@redhat.com>
8249
8250 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
8251 directly for the current inferior instead of
8252 discard_all_inferiors.
8253 (discard_all_inferiors): Delete.
8254
8255 2020-01-11 Tom Tromey <tom@tromey.com>
8256
8257 * tui/tui-wingeneral.c (box_win): Check cli_styling.
8258 * tui/tui-winsource.c (tui_source_window_base::refill): Use
8259 deprecated_safe_get_selected_frame.
8260
8261 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8262
8263 * inferior.c (print_inferior): Switch inferior before printing it.
8264
8265 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
8266 Pedro Alves <palves@redhat.com>
8267
8268 * progspace-and-thread.c (switch_to_program_space_and_thread):
8269 Assert there's an inferior for PSPACE. Use
8270 switch_to_inferior_no_thread to switch the inferior too.
8271 * progspace.c (program_space::~program_space): Call
8272 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
8273 (program_space::free_all_objfiles): Don't call clear_symtab_users
8274 here.
8275 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
8276
8277 2020-01-10 Pedro Alves <palves@redhat.com>
8278
8279 * NEWS: Mention multi-target debugging, "info connections", and
8280 "add-inferior -no-connection".
8281
8282 2020-01-10 Pedro Alves <palves@redhat.com>
8283
8284 * infrun.c: Include "target-connection.h".
8285 (check_multi_target_resumption): New.
8286 (proceed): Call it.
8287 * target-connection.c (make_target_connection_string): Make
8288 extern.
8289 * target-connection.h (make_target_connection_string): Declare.
8290
8291 2020-01-10 Pedro Alves <palves@redhat.com>
8292
8293 * Makefile.in (COMMON_SFILES): Add target-connection.c.
8294 * inferior.c (uiout_field_connection): New function.
8295 (print_inferior): Add new "connection-id" column.
8296 (add_inferior_command): Show connection number/string of added
8297 inferior.
8298 * process-stratum-target.h
8299 (process_stratum_target::connection_string): New virtual method.
8300 (process_stratum_target::connection_number): New field.
8301 * remote.c (remote_target::connection_string): New override.
8302 * target-connection.c: New file.
8303 * target-connection.h: New file.
8304 * target.c (decref_target): Remove process_stratum targets from
8305 the connection list.
8306 (target_stack::push): Add process_stratum targets to the
8307 connection list.
8308
8309 2020-01-10 Pedro Alves <palves@redhat.com>
8310
8311 Revert:
8312 2016-04-12 Pedro Alves <palves@redhat.com>
8313 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
8314 Remove references to name.
8315 * serial.h (struct serial) <name>: Delete.
8316
8317 2020-01-10 Pedro Alves <palves@redhat.com>
8318
8319 * gdbarch-selftests.c (register_to_value_test): Remove "target
8320 already pushed" check.
8321
8322 2020-01-10 Pedro Alves <palves@redhat.com>
8323 John Baldwin <jhb@FreeBSD.org>
8324
8325 * aarch64-linux-nat.c
8326 (aarch64_linux_nat_target::thread_architecture): Adjust.
8327 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
8328 (task_command_1): Likewise.
8329 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
8330 (aix_thread_target::wait, aix_thread_target::fetch_registers)
8331 (aix_thread_target::store_registers)
8332 (aix_thread_target::thread_alive): Adjust.
8333 * amd64-fbsd-tdep.c: Include "inferior.h".
8334 (amd64fbsd_get_thread_local_address): Pass down target.
8335 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
8336 thread's gdbarch instead of target_gdbarch.
8337 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
8338 get_last_target_status.
8339 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
8340 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
8341 inferiors.
8342 (update_inserted_breakpoint_locations): Skip if inferiors with no
8343 execution.
8344 (update_global_location_list): When handling moribund locations,
8345 find representative inferior for location's pspace, and use thread
8346 count of its process_stratum target.
8347 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
8348 * bsd-uthread.c (bsd_uthread_target::wait): Use
8349 as_process_stratum_target and adjust thread_change_ptid and
8350 add_thread calls.
8351 (bsd_uthread_target::update_thread_list): Use
8352 as_process_stratum_target and adjust find_thread_ptid,
8353 thread_change_ptid and add_thread calls.
8354 * btrace.c (maint_btrace_packet_history_cmd): Adjust
8355 find_thread_ptid call.
8356 * corelow.c (add_to_thread_list): Adjust add_thread call.
8357 (core_target_open): Adjust add_thread_silent and thread_count
8358 calls.
8359 (core_target::pid_to_str): Adjust find_inferior_ptid call.
8360 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
8361 * event-top.c (async_disconnect): Pop targets from all inferiors.
8362 * exec.c (add_target_sections): Push exec target on all inferiors
8363 sharing the program space.
8364 (remove_target_sections): Remove the exec target from all
8365 inferiors sharing the program space.
8366 (exec_on_vfork): New.
8367 * exec.h (exec_on_vfork): Declare.
8368 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
8369 Pass it down.
8370 (fbsd_nat_target::update_thread_list): Adjust.
8371 (fbsd_nat_target::resume): Adjust.
8372 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
8373 down.
8374 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
8375 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
8376 get_thread_arch_regcache call.
8377 * fork-child.c (gdb_startup_inferior): Pass target down to
8378 startup_inferior and set_executing.
8379 * gdbthread.h (struct process_stratum_target): Forward declare.
8380 (add_thread, add_thread_silent, add_thread_with_info)
8381 (in_thread_list): Add process_stratum_target parameter.
8382 (find_thread_ptid(inferior*, ptid_t)): New overload.
8383 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
8384 parameter.
8385 (all_threads()): Delete overload.
8386 (all_threads, all_non_exited_threads): Add process_stratum_target
8387 parameter.
8388 (all_threads_safe): Use brace initialization.
8389 (thread_count): Add process_stratum_target parameter.
8390 (set_resumed, set_running, set_stop_requested, set_executing)
8391 (threads_are_executing, finish_thread_state): Add
8392 process_stratum_target parameter.
8393 (switch_to_thread): Use is_current_thread.
8394 * i386-fbsd-tdep.c: Include "inferior.h".
8395 (i386fbsd_get_thread_local_address): Pass down target.
8396 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
8397 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
8398 have_inferiors check.
8399 * inf-ptrace.c (inf_ptrace_target::create_inferior)
8400 (inf_ptrace_target::attach): Adjust.
8401 * infcall.c (run_inferior_call): Adjust.
8402 * infcmd.c (run_command_1): Pass target to
8403 scoped_finish_thread_state.
8404 (proceed_thread_callback): Skip inferiors with no execution.
8405 (continue_command): Rename 'all_threads' local to avoid hiding
8406 'all_threads' function. Adjust get_last_target_status call.
8407 (prepare_one_step): Adjust set_running call.
8408 (signal_command): Use user_visible_resume_target. Compare thread
8409 pointers instead of inferior_ptid.
8410 (info_program_command): Adjust to pass down target.
8411 (attach_command): Mark target's 'thread_executing' flag.
8412 (stop_current_target_threads_ns): New, factored out from ...
8413 (interrupt_target_1): ... this. Switch inferior before making
8414 target calls.
8415 * inferior-iter.h
8416 (struct all_inferiors_iterator, struct all_inferiors_range)
8417 (struct all_inferiors_safe_range)
8418 (struct all_non_exited_inferiors_range): Filter on
8419 process_stratum_target too. Remove explicit.
8420 * inferior.c (inferior::inferior): Push dummy target on target
8421 stack.
8422 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
8423 Add process_stratum_target parameter, and pass it down.
8424 (have_live_inferiors): Adjust.
8425 (switch_to_inferior_and_push_target): New.
8426 (add_inferior_command, clone_inferior_command): Handle
8427 "-no-connection" parameter. Use
8428 switch_to_inferior_and_push_target.
8429 (_initialize_inferior): Mention "-no-connection" option in
8430 the help of "add-inferior" and "clone-inferior" commands.
8431 * inferior.h: Include "process-stratum-target.h".
8432 (interrupt_target_1): Use bool.
8433 (struct inferior) <push_target, unpush_target, target_is_pushed,
8434 find_target_beneath, top_target, process_target, target_at,
8435 m_stack>: New.
8436 (discard_all_inferiors): Delete.
8437 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
8438 (all_inferiors, all_non_exited_inferiors): Add
8439 process_stratum_target parameter.
8440 * infrun.c: Include "gdb_select.h" and <unordered_map>.
8441 (target_last_proc_target): New global.
8442 (follow_fork_inferior): Push target on new inferior. Pass target
8443 to add_thread_silent. Call exec_on_vfork. Handle target's
8444 reference count.
8445 (follow_fork): Adjust get_last_target_status call. Also consider
8446 target.
8447 (follow_exec): Push target on new inferior.
8448 (struct execution_control_state) <target>: New field.
8449 (user_visible_resume_target): New.
8450 (do_target_resume): Call target_async.
8451 (resume_1): Set target's threads_executing flag. Consider resume
8452 target.
8453 (commit_resume_all_targets): New.
8454 (proceed): Also consider resume target. Skip threads of inferiors
8455 with no execution. Commit resumtion in all targets.
8456 (start_remote): Pass current inferior to wait_for_inferior.
8457 (infrun_thread_stop_requested): Consider target as well. Pass
8458 thread_info pointer to clear_inline_frame_state instead of ptid.
8459 (infrun_thread_thread_exit): Consider target as well.
8460 (random_pending_event_thread): New inferior parameter. Use it.
8461 (do_target_wait): Rename to ...
8462 (do_target_wait_1): ... this. Add inferior parameter, and pass it
8463 down.
8464 (threads_are_resumed_pending_p, do_target_wait): New.
8465 (prepare_for_detach): Adjust calls.
8466 (wait_for_inferior): New inferior parameter. Handle it. Use
8467 do_target_wait_1 instead of do_target_wait.
8468 (fetch_inferior_event): Adjust. Switch to representative
8469 inferior. Pass target down.
8470 (set_last_target_status): Add process_stratum_target parameter.
8471 Save target in global.
8472 (get_last_target_status): Add process_stratum_target parameter and
8473 handle it.
8474 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
8475 (context_switch): Check inferior_ptid == null_ptid before calling
8476 inferior_thread().
8477 (get_inferior_stop_soon): Pass down target.
8478 (wait_one): Rename to ...
8479 (poll_one_curr_target): ... this.
8480 (struct wait_one_event): New.
8481 (wait_one): New.
8482 (stop_all_threads): Adjust.
8483 (handle_no_resumed, handle_inferior_event): Adjust to consider the
8484 event's target.
8485 (switch_back_to_stepped_thread): Also consider target.
8486 (print_stop_event): Update.
8487 (normal_stop): Update. Also consider the resume target.
8488 * infrun.h (wait_for_inferior): Remove declaration.
8489 (user_visible_resume_target): New declaration.
8490 (get_last_target_status, set_last_target_status): New
8491 process_stratum_target parameter.
8492 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
8493 process_stratum_target parameter, and use it.
8494 (clear_inline_frame_state (thread_info*)): New.
8495 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
8496 process_stratum_target parameter.
8497 (clear_inline_frame_state (thread_info*)): Declare.
8498 * linux-fork.c (delete_checkpoint_command): Pass target down to
8499 find_thread_ptid.
8500 (checkpoint_command): Adjust.
8501 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
8502 instead of just tweaking inferior_ptid.
8503 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
8504 (exit_lwp): Pass target down to find_thread_ptid.
8505 (attach_proc_task_lwp_callback): Pass target down to
8506 add_thread/set_running/set_executing.
8507 (linux_nat_target::attach): Pass target down to
8508 thread_change_ptid.
8509 (get_detach_signal): Pass target down to find_thread_ptid.
8510 Consider last target status's target.
8511 (linux_resume_one_lwp_throw, resume_lwp)
8512 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
8513 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
8514 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
8515 (linux_nat_target::async_wait_fd): New.
8516 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
8517 target down.
8518 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
8519 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
8520 * linux-thread-db.c (struct thread_db_info::process_target): New
8521 field.
8522 (add_thread_db_info): Save target.
8523 (get_thread_db_info): New process_stratum_target parameter. Also
8524 match target.
8525 (delete_thread_db_info): New process_stratum_target parameter.
8526 Also match target.
8527 (thread_from_lwp): Adjust to pass down target.
8528 (thread_db_notice_clone): Pass down target.
8529 (check_thread_db_callback): Pass down target.
8530 (try_thread_db_load_1): Always push the thread_db target.
8531 (try_thread_db_load, record_thread): Pass target down.
8532 (thread_db_target::detach): Pass target down. Always unpush the
8533 thread_db target.
8534 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
8535 target down. Always unpush the thread_db target.
8536 (find_new_threads_callback, thread_db_find_new_threads_2)
8537 (thread_db_target::update_thread_list): Pass target down.
8538 (thread_db_target::pid_to_str): Pass current inferior down.
8539 (thread_db_target::get_thread_local_address): Pass target down.
8540 (thread_db_target::resume, maintenance_check_libthread_db): Pass
8541 target down.
8542 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
8543 * procfs.c (procfs_target::procfs_init_inferior): Declare.
8544 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
8545 (procfs_init_inferior): Rename to ...
8546 (procfs_target::procfs_init_inferior): ... this and adjust.
8547 (procfs_target::create_inferior, procfs_notice_thread)
8548 (procfs_do_thread_registers): Adjust.
8549 * ppc-fbsd-tdep.c: Include "inferior.h".
8550 (ppcfbsd_get_thread_local_address): Pass down target.
8551 * proc-service.c (ps_xfer_memory): Switch current inferior and
8552 program space as well.
8553 (get_ps_regcache): Pass target down.
8554 * process-stratum-target.c
8555 (process_stratum_target::thread_address_space)
8556 (process_stratum_target::thread_architecture): Pass target down.
8557 * process-stratum-target.h
8558 (process_stratum_target::threads_executing): New field.
8559 (as_process_stratum_target): New.
8560 * ravenscar-thread.c
8561 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
8562 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
8563 down.
8564 * record-btrace.c (record_btrace_target::info_record): Adjust.
8565 (record_btrace_target::record_method)
8566 (record_btrace_target::record_is_replaying)
8567 (record_btrace_target::fetch_registers)
8568 (get_thread_current_frame_id, record_btrace_target::resume)
8569 (record_btrace_target::wait, record_btrace_target::stop): Pass
8570 target down.
8571 * record-full.c (record_full_wait_1): Switch to event thread.
8572 Pass target down.
8573 * regcache.c (regcache::regcache)
8574 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
8575 process_stratum_target parameter and handle it.
8576 (current_thread_target): New global.
8577 (get_thread_regcache): Add process_stratum_target parameter and
8578 handle it. Switch inferior before calling target method.
8579 (get_thread_regcache): Pass target down.
8580 (get_thread_regcache_for_ptid): Pass target down.
8581 (registers_changed_ptid): Add process_stratum_target parameter and
8582 handle it.
8583 (registers_changed_thread, registers_changed): Pass target down.
8584 (test_get_thread_arch_aspace_regcache): New.
8585 (current_regcache_test): Define a couple local test_target_ops
8586 instances and use them for testing.
8587 (readwrite_regcache): Pass process_stratum_target parameter.
8588 (cooked_read_test, cooked_write_test): Pass mock_target down.
8589 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
8590 (get_thread_arch_aspace_regcache): Add process_stratum_target
8591 parameter.
8592 (regcache::target): New method.
8593 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
8594 (regcache::registers_changed_ptid): Add process_stratum_target
8595 parameter.
8596 (regcache::m_target): New field.
8597 (registers_changed_ptid): Add process_stratum_target parameter.
8598 * remote.c (remote_state::supports_vCont_probed): New field.
8599 (remote_target::async_wait_fd): New method.
8600 (remote_unpush_and_throw): Add remote_target parameter.
8601 (get_current_remote_target): Adjust.
8602 (remote_target::remote_add_inferior): Push target.
8603 (remote_target::remote_add_thread)
8604 (remote_target::remote_notice_new_inferior)
8605 (get_remote_thread_info): Pass target down.
8606 (remote_target::update_thread_list): Skip threads of inferiors
8607 bound to other targets. (remote_target::close): Don't discard
8608 inferiors. (remote_target::add_current_inferior_and_thread)
8609 (remote_target::process_initial_stop_replies)
8610 (remote_target::start_remote)
8611 (remote_target::remote_serial_quit_handler): Pass down target.
8612 (remote_target::remote_unpush_target): New remote_target
8613 parameter. Unpush the target from all inferiors.
8614 (remote_target::remote_unpush_and_throw): New remote_target
8615 parameter. Pass it down.
8616 (remote_target::open_1): Check whether the current inferior has
8617 execution instead of checking whether any inferior is live. Pass
8618 target down.
8619 (remote_target::remote_detach_1): Pass down target. Use
8620 remote_unpush_target.
8621 (extended_remote_target::attach): Pass down target.
8622 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
8623 (remote_target::append_resumption): Pass down target.
8624 (remote_target::append_pending_thread_resumptions)
8625 (remote_target::remote_resume_with_hc, remote_target::resume)
8626 (remote_target::commit_resume): Pass down target.
8627 (remote_target::remote_stop_ns): Check supports_vCont_probed.
8628 (remote_target::interrupt_query)
8629 (remote_target::remove_new_fork_children)
8630 (remote_target::check_pending_events_prevent_wildcard_vcont)
8631 (remote_target::remote_parse_stop_reply)
8632 (remote_target::process_stop_reply): Pass down target.
8633 (first_remote_resumed_thread): New remote_target parameter. Pass
8634 it down.
8635 (remote_target::wait_as): Pass down target.
8636 (unpush_and_perror): New remote_target parameter. Pass it down.
8637 (remote_target::readchar, remote_target::remote_serial_write)
8638 (remote_target::getpkt_or_notif_sane_1)
8639 (remote_target::kill_new_fork_children, remote_target::kill): Pass
8640 down target.
8641 (remote_target::mourn_inferior): Pass down target. Use
8642 remote_unpush_target.
8643 (remote_target::core_of_thread)
8644 (remote_target::remote_btrace_maybe_reopen): Pass down target.
8645 (remote_target::pid_to_exec_file)
8646 (remote_target::thread_handle_to_thread_info): Pass down target.
8647 (remote_target::async_wait_fd): New.
8648 * riscv-fbsd-tdep.c: Include "inferior.h".
8649 (riscv_fbsd_get_thread_local_address): Pass down target.
8650 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
8651 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
8652 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
8653 Adjust.
8654 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
8655 * solib-svr4.c (enable_break): Pass down target.
8656 * spu-multiarch.c (parse_spufs_run): Pass down target.
8657 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
8658 * target-delegates.c: Regenerate.
8659 * target.c (g_target_stack): Delete.
8660 (current_top_target): Return the current inferior's top target.
8661 (target_has_execution_1): Refer to the passed-in inferior's top
8662 target.
8663 (target_supports_terminal_ours): Check whether the initial
8664 inferior was already created.
8665 (decref_target): New.
8666 (target_stack::push): Incref/decref the target.
8667 (push_target, push_target, unpush_target): Adjust.
8668 (target_stack::unpush): Defref target.
8669 (target_is_pushed): Return bool. Adjust to refer to the current
8670 inferior's target stack.
8671 (dispose_inferior): Delete, and inline parts ...
8672 (target_preopen): ... here. Only dispose of the current inferior.
8673 (target_detach): Hold strong target reference while detaching.
8674 Pass target down.
8675 (target_thread_name): Add assertion.
8676 (target_resume): Pass down target.
8677 (target_ops::beneath, find_target_at): Adjust to refer to the
8678 current inferior's target stack.
8679 (get_dummy_target): New.
8680 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
8681 has a thread running.
8682 (initialize_targets): Rename to ...
8683 (_initialize_target): ... this.
8684 * target.h: Include "gdbsupport/refcounted-object.h".
8685 (struct target_ops): Inherit refcounted_object.
8686 (target_ops::shortname, target_ops::longname): Make const.
8687 (target_ops::async_wait_fd): New method.
8688 (decref_target): Declare.
8689 (struct target_ops_ref_policy): New.
8690 (target_ops_ref): New typedef.
8691 (get_dummy_target): Declare function.
8692 (target_is_pushed): Return bool.
8693 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
8694 (all_matching_threads_iterator::all_matching_threads_iterator):
8695 Handle filter target.
8696 * thread-iter.h (struct all_matching_threads_iterator, struct
8697 all_matching_threads_range, class all_non_exited_threads_range):
8698 Filter by target too. Remove explicit.
8699 * thread.c (threads_executing): Delete.
8700 (inferior_thread): Pass down current inferior.
8701 (clear_thread_inferior_resources): Pass down thread pointer
8702 instead of ptid_t.
8703 (add_thread_silent, add_thread_with_info, add_thread): Add
8704 process_stratum_target parameter. Use it for thread and inferior
8705 searches.
8706 (is_current_thread): New.
8707 (thread_info::deletable): Use it.
8708 (find_thread_ptid, thread_count, in_thread_list)
8709 (thread_change_ptid, set_resumed, set_running): New
8710 process_stratum_target parameter. Pass it down.
8711 (set_executing): New process_stratum_target parameter. Pass it
8712 down. Adjust reference to 'threads_executing'.
8713 (threads_are_executing): New process_stratum_target parameter.
8714 Adjust reference to 'threads_executing'.
8715 (set_stop_requested, finish_thread_state): New
8716 process_stratum_target parameter. Pass it down.
8717 (switch_to_thread): Also match inferior.
8718 (switch_to_thread): New process_stratum_target parameter. Pass it
8719 down.
8720 (update_threads_executing): Reimplement.
8721 * top.c (quit_force): Pop targets from all inferior.
8722 (gdb_init): Don't call initialize_targets.
8723 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
8724 Declare.
8725 (windows_add_thread, windows_delete_thread): Adjust.
8726 (get_windows_debug_event): Rename to ...
8727 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
8728 * tracefile-tfile.c (tfile_target_open): Pass down target.
8729 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
8730 Forward declare.
8731 (switch_to_thread): Add process_stratum_target parameter.
8732 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
8733 parameter. Use it.
8734 (mi_on_resume): Pass target down.
8735 * nat/fork-inferior.c (startup_inferior): Add
8736 process_stratum_target parameter. Pass it down.
8737 * nat/fork-inferior.h (startup_inferior): Add
8738 process_stratum_target parameter.
8739 * python/py-threadevent.c (py_get_event_thread): Pass target down.
8740
8741 2020-01-10 Pedro Alves <palves@redhat.com>
8742
8743 * remote.c (remote_target::start_remote): Don't set inferior_ptid
8744 directly. Instead find the first thread in the thread list and
8745 use switch_to_thread.
8746
8747 2020-01-10 Pedro Alves <palves@redhat.com>
8748
8749 * remote.c (remote_target::remote_add_inferior): Don't bind a
8750 process to the current inferior if the current inferior is already
8751 bound to a process.
8752
8753 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8754 Pedro Alves <palves@redhat.com>
8755
8756 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
8757 If no process is specified, return null_ptid instead of
8758 inferior_ptid.
8759 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
8760 TARGET_WAITKIND_SIGNALLED with no pid.
8761
8762 2020-01-10 Pedro Alves <palves@redhat.com>
8763
8764 * remote.c (first_remote_resumed_thread): New.
8765 (remote_target::wait_as): Use it as default event_ptid instead of
8766 inferior_ptid.
8767
8768 2020-01-10 Pedro Alves <palves@redhat.com>
8769
8770 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
8771
8772 2020-01-10 Pedro Alves <palves@redhat.com>
8773
8774 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
8775 not -1.
8776
8777 2020-01-10 Pedro Alves <palves@redhat.com>
8778
8779 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
8780 ptid to get_last_target_status.
8781 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
8782 ptid to get_last_target_status.
8783 * infcmd.c (continue_command): Don't pass a target_waitstatus to
8784 get_last_target_status.
8785 (info_program_command): Don't pass a target_waitstatus to
8786 get_last_target_status.
8787 * infrun.c (init_wait_for_inferior): Use
8788 nullify_last_target_wait_ptid.
8789 (get_last_target_status): Handle nullptr arguments.
8790 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
8791 (print_stop_event): Don't pass a ptid to get_last_target_status.
8792 (normal_stop): Don't pass a ptid to get_last_target_status.
8793 * infrun.h (get_last_target_status, set_last_target_status): Move
8794 comments here and update.
8795 (nullify_last_target_wait_ptid): Declare.
8796 * linux-fork.c (fork_load_infrun_state): Remove local extern
8797 declaration of nullify_last_target_wait_ptid.
8798 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
8799 to get_last_target_status.
8800
8801 2020-01-10 Pedro Alves <palves@redhat.com>
8802
8803 * gdbthread.h (scoped_restore_current_thread)
8804 <dont_restore, restore, m_dont_restore>: Declare.
8805 * thread.c (thread_alive): Add assertion. Return bool.
8806 (switch_to_thread_if_alive): New.
8807 (prune_threads): Switch inferior/thread.
8808 (print_thread_info_1): Switch thread before calling target methods.
8809 (scoped_restore_current_thread::restore): New, factored out from
8810 ...
8811 (scoped_restore_current_thread::~scoped_restore_current_thread):
8812 ... this.
8813 (scoped_restore_current_thread::scoped_restore_current_thread):
8814 Add assertion.
8815 (thread_apply_all_command, thread_select): Use
8816 switch_to_thread_if_alive.
8817 * infrun.c (proceed, restart_threads, handle_signal_stop)
8818 (switch_back_to_stepped_thread): Switch current thread before
8819 calling target methods.
8820
8821 2020-01-10 Pedro Alves <palves@redhat.com>
8822
8823 * inferior.c (switch_to_inferior_no_thread): New function,
8824 factored out from ...
8825 (inferior_command): ... here.
8826 * inferior.h (switch_to_inferior_no_thread): Declare.
8827 * mi/mi-main.c (run_one_inferior): Use
8828 switch_to_inferior_no_thread.
8829
8830 2020-01-10 Pedro Alves <palves@redhat.com>
8831
8832 * infcmd.c (kill_command): Remove dead code.
8833
8834 2020-01-10 Pedro Alves <palves@redhat.com>
8835
8836 * remote.c (remote_target::mourn_inferior): No longer check
8837 whether the target is running.
8838
8839 2020-01-10 Pedro Alves <palves@redhat.com>
8840
8841 * corelow.c (core_target::has_execution): Change parameter type to
8842 inferior pointer.
8843 * inferior.c (number_of_live_inferiors): Use
8844 inferior::has_execution instead of target_has_execution_1.
8845 * inferior.h (inferior::has_execution): New.
8846 * linux-thread-db.c (thread_db_target::update_thread_list): Use
8847 inferior::has_execution instead of target_has_execution_1.
8848 * process-stratum-target.c
8849 (process_stratum_target::has_execution): Change parameter type to
8850 inferior pointer. Check the inferior's PID instead of
8851 inferior_ptid.
8852 * process-stratum-target.h
8853 (process_stratum_target::has_execution): Change parameter type to
8854 inferior pointer.
8855 * record-full.c (record_full_core_target::has_execution): Change
8856 parameter type to inferior pointer.
8857 * target.c (target_has_execution_1): Change parameter type to
8858 inferior pointer.
8859 (target_has_execution_current): Adjust.
8860 * target.h (target_ops::has_execution): Change parameter type to
8861 inferior pointer.
8862 (target_has_execution_1): Change parameter type to inferior
8863 pointer. Change return type to bool.
8864 * tracefile.h (tracefile_target::has_execution): Change parameter
8865 type to inferior pointer.
8866
8867 2020-01-10 Pedro Alves <palves@redhat.com>
8868
8869 * exceptions.c (print_flush): Remove current_top_target() check.
8870
8871 2020-01-10 Pedro Alves <palves@redhat.com>
8872
8873 * remote.c (show_remote_exec_file): Show the current inferior's
8874 exec-file instead of the command variable's value.
8875
8876 2020-01-10 Pedro Alves <palves@redhat.com>
8877
8878 * record-full.c (record_full_resume_ptid): New global.
8879 (record_full_target::resume): Set it.
8880 (record_full_wait_1): Use record_full_resume_ptid instead of
8881 inferior_ptid.
8882
8883 2020-01-10 Pedro Alves <palves@redhat.com>
8884
8885 * gdbthread.h (scoped_restore_current_thread)
8886 <dont_restore, restore, m_dont_restore>: Declare.
8887 * thread.c (thread_alive): Add assertion. Return bool.
8888 (switch_to_thread_if_alive): New.
8889 (prune_threads): Switch inferior/thread.
8890 (print_thread_info_1): Switch thread before calling target methods.
8891 (scoped_restore_current_thread::restore): New, factored out from
8892 ...
8893 (scoped_restore_current_thread::~scoped_restore_current_thread):
8894 ... this.
8895 (scoped_restore_current_thread::scoped_restore_current_thread):
8896 Add assertion.
8897 (thread_apply_all_command, thread_select): Use
8898 switch_to_thread_if_alive.
8899
8900 2020-01-10 George Barrett <bob@bob131.so>
8901
8902 * stap-probe.c (stap_modify_semaphore): Don't check for null
8903 semaphores.
8904 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
8905 for null semaphores.
8906
8907 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8908
8909 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
8910 all source windows, and maintain horizontal scroll status while
8911 doing so.
8912
8913 2020-01-09 Tom Tromey <tom@tromey.com>
8914
8915 PR tui/18932:
8916 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
8917 update_source_window, not print_source_lines.
8918
8919 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
8920
8921 * tui/tui.c (tui_enable): Register tui hooks after calling
8922 tui_display_main.
8923
8924 2020-01-09 Christian Biesinger <cbiesinger@google.com>
8925
8926 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
8927
8928 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * thread.c (print_thread_info_1): Fix indentation.
8931
8932 2020-01-09 Christian Biesinger <cbiesinger@google.com>
8933
8934 * symtab.c (general_symbol_info::compute_and_set_names): Move the
8935 unique_xmalloc_ptr outside the if to always free the demangled name.
8936
8937 2020-01-08 Tom Tromey <tromey@adacore.com>
8938
8939 * xcoffread.c (enter_line_range, read_xcoff_symtab)
8940 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
8941 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
8942 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
8943 Remove.
8944 (section_offsets): New typedef.
8945 * symtab.c (fixup_section, get_msymbol_address): Update.
8946 * symmisc.c (dump_msymbols): Update.
8947 * symfile.h (relative_addr_info_to_section_offsets)
8948 (symfile_map_offsets_to_segments): Update.
8949 * symfile.c (build_section_addr_info_from_objfile)
8950 (init_objfile_sect_indices): Update.
8951 (struct place_section_arg): Change type of "offsets".
8952 (place_section): Update.
8953 (relative_addr_info_to_section_offsets): Change type of
8954 "section_offsets". Remove "num_sections" parameter.
8955 (default_symfile_offsets, syms_from_objfile_1)
8956 (set_objfile_default_section_offset): Update.
8957 (reread_symbols): No need to preserve section offsets by hand.
8958 (symfile_map_offsets_to_segments): Change type of "offsets".
8959 * stap-probe.c (relocate_address): Update.
8960 * stabsread.h (process_one_symbol): Update.
8961 * solib-target.c (struct lm_info_target) <offsets>: Change type.
8962 (solib_target_relocate_section_addresses): Update.
8963 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
8964 Update.
8965 * solib-frv.c (frv_relocate_main_executable): Update.
8966 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
8967 * solib-aix.c (solib_aix_get_section_offsets): Change return
8968 type.
8969 (solib_aix_solib_create_inferior_hook): Update.
8970 * remote.c (remote_target::get_offsets): Update.
8971 * psymtab.c (find_pc_sect_psymtab): Update.
8972 * psympriv.h (struct partial_symbol) <address, text_low,
8973 text_high>: Update.
8974 * objfiles.h (obj_section_offset): Update.
8975 (struct objfile) <section_offsets>: Change type.
8976 <num_sections>: Remove.
8977 (objfile_relocate): Update.
8978 * objfiles.c (entry_point_address_query): Update
8979 (relocate_one_symbol): Change type of "section_offsets".
8980 (objfile_relocate1, objfile_relocate1): Change type of
8981 "new_offsets".
8982 (objfile_rebase1): Update.
8983 * mipsread.c (mipscoff_symfile_read): Update.
8984 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
8985 parameter.
8986 * mdebugread.c (parse_symbol): Change type of "section_offsets".
8987 (parse_external, psymtab_to_symtab_1): Update.
8988 * machoread.c (macho_symfile_offsets): Update.
8989 * ia64-tdep.c (ia64_find_unwind_table): Update.
8990 * hppa-tdep.c (read_unwind_info): Update.
8991 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
8992 * dwarf2read.c (create_addrmap_from_index)
8993 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
8994 (process_psymtab_comp_unit_reader, add_partial_symbol)
8995 (add_partial_subprogram, process_full_comp_unit)
8996 (read_file_scope, read_func_scope, read_lexical_block_scope)
8997 (read_call_site_scope, dwarf2_rnglists_process)
8998 (dwarf2_ranges_process, dwarf2_ranges_read)
8999 (dwarf_decode_lines_1, var_decode_location, new_symbol)
9000 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
9001 Update.
9002 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
9003 Update.
9004 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
9005 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
9006 (process_one_symbol): Change type of "section_offsets".
9007 * ctfread.c (get_objfile_text_range): Update.
9008 * coffread.c (coff_symtab_read, enter_linenos)
9009 (process_coff_symbol): Update.
9010 * coff-pe-read.c (add_pe_forwarded_sym): Update.
9011 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
9012
9013 2020-01-08 Tom Tromey <tromey@adacore.com>
9014
9015 * dwarf2read.c (parse_macro_definition): Use std::string.
9016 (parse_macro_definition): Likewise.
9017
9018 2020-01-08 Tom Tromey <tromey@adacore.com>
9019
9020 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
9021 (ATTR_ALLOC_CHUNK): Remove.
9022
9023 2020-01-08 Tom Tromey <tromey@adacore.com>
9024
9025 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
9026
9027 2020-01-08 Tom Tromey <tromey@adacore.com>
9028
9029 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
9030 (dwarf2_compute_name, open_dwo_file): Likewise.
9031 (process_enumeration_scope): Use std::vector.
9032 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
9033 (partial_die_info::fixup, dwarf2_start_subfile)
9034 (guess_full_die_structure_name, dwarf2_name): Likewise.
9035 (determine_prefix): Update.
9036 (guess_full_die_structure_name): Make return type const.
9037 (partial_die_full_name): Return unique_xmalloc_ptr.
9038 (DW_FIELD_ALLOC_CHUNK): Remove.
9039
9040 2020-01-07 Tom Tromey <tromey@adacore.com>
9041
9042 PR build/24937:
9043 * stap-probe.c (class stap_static_probe_ops): Add constructor.
9044
9045 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9046
9047 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
9048
9049 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
9050
9051 * stack.c (print_frame_info): Move disassemble_next_line code
9052 inside source_print block.
9053
9054 2020-01-06 Eli Zaretskii <eliz@gnu.org>
9055
9056 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
9057 gdb/signals.h, as we are now using native signal symbols.
9058
9059 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
9060
9061 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
9062 overflow by an early check of content vs threshold.
9063 * tui/tui-source.c (tui_source_window::line_is_displayed):
9064 Likewise.
9065
9066 2020-01-06 Eli Zaretskii <eliz@gnu.org>
9067
9068 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
9069
9070 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
9071
9072 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
9073 export table if no section contains it's RVA.
9074
9075 2020-01-06 Eli Zaretskii <eliz@gnu.org>
9076
9077 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
9078
9079 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
9080
9081 * source.c (print_source_lines_base): Set last_line_listed.
9082
9083 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
9084
9085 * tui/tui-disasm.c: Remove trailing spaces.
9086
9087 2020-01-06 Eli Zaretskii <eliz@gnu.org>
9088 Pedro Alves <palves@redhat.com>
9089
9090 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
9091 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
9092 (windows_gdb_signal_to_target): New function, uses the above
9093 enumeration to convert GDB internal signal codes to equivalent
9094 Windows codes.
9095 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
9096 * windows-nat.c: Include "gdb_wait.h".
9097 (get_windows_debug_event): Extract the fatal exception from the
9098 exit status and convert to the equivalent Posix signal number.
9099 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
9100 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
9101 * gdbsupport/gdb_wait.c: New file, implements
9102 windows_status_to_termsig.
9103 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
9104 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
9105
9106 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
9107
9108 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
9109 show_layout.
9110
9111 2020-01-05 Luis Machado <luis.machado@linaro.org>
9112
9113 * aarch64-linux-nat.c
9114 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
9115 and bfd_mach_aarch64.
9116
9117 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9118
9119 * ui-file.c (stdio_file::can_emit_style_escape)
9120 (tee_file::can_emit_style_escape): Ensure style is used also on
9121 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
9122 to gdb_stdout.
9123 * main.c (set_gdb_data_directory): Use file style to output the
9124 warning that the given pathname is not a directory.
9125 * top.c (show_history_filename, gdb_safe_append_history)
9126 (show_gdb_datadir): Use file style.
9127
9128 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
9129
9130 * solib-target.c (struct lm_info_target):
9131 Change offsets to be a unique_xmalloc_ptr.
9132 (solib_target_relocate_section_addresses): Update.
9133
9134 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
9135
9136 * windows-nat.c (windows_clear_solib): Free so_list linked list.
9137
9138 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
9139
9140 * MAINTAINERS (Write After Approval): Add myself.
9141
9142 2020-01-02 Luis Machado <luis.machado@linaro.org>
9143
9144 * proc-service.c (get_ps_regcache): Remove reference to obsolete
9145 Cell BE architecture.
9146 * target.h (struct target_ops) <thread_architecture>: Likewise.
9147
9148 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
9149
9150 * Makefile.in: Use INSTALL_PROGRAM_ENV.
9151
9152 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
9153
9154 * MAINTAINERS (Write After Approval): Add myself.
9155
9156 2020-01-01 Joel Brobecker <brobecker@adacore.com>
9157
9158 * gdbarch.sh: Update copyright year range of generated files.
9159
9160 2020-01-01 Joel Brobecker <brobecker@adacore.com>
9161
9162 Update copyright year range in all GDB files.
9163
9164 2020-01-01 Joel Brobecker <brobecker@adacore.com>
9165
9166 * copyright.py: Convert to Python 3.
9167
9168 2020-01-01 Joel Brobecker <brobecker@adacore.com>
9169
9170 * copyright.py: Adapt after move of gnulib directory from gdb
9171 directory to toplevel directory.
9172
9173 2020-01-01 Joel Brobecker <brobecker@adacore.com>
9174
9175 * copyright.py (main): Exit if run from the wrong directory.
9176
9177 2020-01-01 Joel Brobecker <brobecker@adacore.com>
9178
9179 * top.c (print_gdb_version): Change copyright year to 2020.
9180
9181 2020-01-01 Joel Brobecker <brobecker@adacore.com>
9182
9183 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
9184
9185 For older changes see ChangeLog-2019.
9186 \f
9187 Local Variables:
9188 mode: change-log
9189 left-margin: 8
9190 fill-column: 74
9191 version-control: never
9192 coding: utf-8
9193 End:
This page took 0.314704 seconds and 5 git commands to generate.