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