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