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