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