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