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