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