gdb: remove LA_VALUE_PRINT macro
[binutils-gdb.git] / gdb / ChangeLog
1 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * ada-lang.c (ada_language::print_array_index): Call value_print
4 directly.
5 * language.c (language_defn::print_array_index): Likewise.
6 * language.h (LA_VALUE_PRINT): Delete.
7 * valprint.c (value_print): Call value_print on the
8 current_language directly.
9
10 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * language.h (LA_PRINT_TYPEDEF): Delete.
13 * typeprint.c (typedef_print): Call print_typedef directly on the
14 current_language object.
15
16 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
17
18 * m2-exp.y (m2_parse): Rename to...
19 (m2_language::parser): ...this. Update function signature.
20 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
21 (m2_op_print): Rename to...
22 (m2_language::op_print_tab): ...this, and make const.
23 (exp_descriptor_modula2): Rename to...
24 (m2_language::exp_descriptor_modula2): ...this.
25 (class m2_language): Move to m2-lang.h.
26 (m2_language::language_arch_info): New function, moved out of
27 class declaration.
28 (m2_language::printchar): New function, body from m2_printchar.
29 (m2_language::printstr): New function, moved out of class
30 declaration.
31 (m2_language::emitchar): Likewise.
32 * m2-lang.h (m2_parse): Delete declaration.
33 (m2_print_typedef): Delete declaration.
34 (m2_value_print_inner): Delete declaration.
35 (class m2_language): Class declaration moved from m2-lang.c,
36 larger functions are left in m2-lang.c.
37 * m2-typeprint.c (m2_print_typedef): Rename to...
38 (m2_language::print_typedef): ...this, and update function
39 signature.
40 * m2-valprint.c (m2_value_print_inner): Rename to...
41 (m2_language::value_print_inner): ...this, replace use of
42 LA_PRINT_STRING with a direct call to printstr member function,
43 and update recursive call.
44
45 2020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
46
47 * language.c (default_is_string_type_p): Delete, implementation
48 moved into auto_or_unknown_language::is_string_type_p.
49 (unk_op_print_tab): Moved into
50 auto_or_unknown_language::opcode_print_table.
51 (unknown_language_arch_info): Delete, implementation moved into
52 auto_or_unknown_language::language_arch_info.
53 (class auto_or_unknown_language): New class, member functions
54 copied from unknown_language class, with some updates.
55 (class unknown_language): Most member functions moved into
56 auto_or_unknown_language class. Inherit from
57 auto_or_unknown_language class.
58 (class auto_language): Inherit from auto_or_unknown_language.
59 Delete most member functions.
60
61 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
62
63 * stabsread.c (read_member_functions): Remove gdb_assert.
64
65 2020-10-22 Hannes Domani <ssbssa@yahoo.de>
66
67 * gdbtypes.c (init_complex_type): Check target type name.
68
69 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * target-debug.h (target_debug_print_struct_target_ops_p):
72 Remove.
73 (target_debug_print_async_callback_ftype_p): Remove.
74 (target_debug_print_struct_trace_state_variable_p): Remove.
75 (target_debug_print_struct_traceframe_info_p): Remove.
76 (target_debug_print_VEC__btrace_block_s__pp): Remove.
77 (target_debug_print_enum_btrace_format): Remove.
78 (target_debug_print_enum_info_proc_what): Remove.
79 (target_debug_print_thread_info_pp): Remove.
80
81 2020-10-22 Simon Marchi <simon.marchi@efficios.com>
82
83 * target.h (struct target_ops) <make_corefile_notes>:
84 Change return type to unique pointer.
85 * target.c (dummy_make_corefile_notes): Likewise.
86 * exec.c (struct exec_target) <make_corefile_notes>:
87 Likewise.
88 (exec_target::make_corefile_notes): Likewise.
89 * procfs.c (class procfs_target) <make_corefile_notes>:
90 Likewise.
91 (procfs_do_thread_registers): Adjust to unique pointer.
92 (struct procfs_corefile_thread_data): Add constructor.
93 <note_data>: Change type to unique pointer.
94 (procfs_corefile_thread_callback): Adjust to unique pointer.
95 (procfs_target::make_corefile_notes): Change return type to
96 unique pointer.
97 * target-delegates.c: Re-generate.
98 * gcore.c (write_gcore_file_1): Adjust.
99 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
100 New.
101
102 2020-10-22 Tom de Vries <tdevries@suse.de>
103
104 * block.c (find_block_in_blockvector): Make sure the returned block
105 contains pc.
106
107 2020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
108
109 PR gdb/26693
110 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
111 parameter.
112 (load_cu): Pass existing CU.
113 (process_imported_unit_die): Likewise.
114 (follow_die_offset): Likewise.
115
116 2020-10-22 Luis Machado <luis.machado@linaro.org>
117
118 * corelow.c (core_target::xfer_partial): Also check for an empty
119 m_core_unavailable_mappings vector.
120
121 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
124 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
125 * f-exp.y (arglist): Allow for a series of subranges.
126 (subrange): Add cases for subranges with strides.
127 * f-lang.c (value_f90_subarray): Catch use of array strides and
128 throw an error.
129 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
130
131 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * expprint.c (print_subexp_standard): Change enum range_type to
134 range_flag and rename variables to match.
135 (dump_subexp_body_standard): Likewise.
136 * expression.h (enum range_type): Rename to...
137 (enum range_flag): ...this.
138 (range_types): Rename to...
139 (range_flags): ...this.
140 * f-lang.c (value_f90_subarray): Change enum range_type to
141 range_flag and rename variables to match.
142 * parse.c (operator_length_standard): Likewise.
143 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
144 range_type to range_flag.
145 * rust-lang.c (rust_evaluate_funcall): Likewise.
146 (rust_range): Likewise.
147 (rust_compute_range): Likewise.
148 (rust_subscript): Likewise.
149
150 2020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * expprint.c (print_subexp_standard): Update to reflect changes to
153 enum range_type.
154 (dump_subexp_body_standard): Likewise.
155 * expression.h (enum range_type): Convert to a bit field enum, and
156 make the enum unsigned.
157 * f-exp.y (subrange): Update to reflect changes to enum
158 range_type.
159 * f-lang.c (value_f90_subarray): Likewise.
160 * parse.c (operator_length_standard): Likewise.
161 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
162 * rust-lang.c (rust_range): Likewise.
163 (rust_compute_range): Likewise.
164 (rust_subscript): Likewise.
165
166 2020-10-21 Simon Marchi <simon.marchi@efficios.com>
167
168 * infrun.c (displaced_step_in_progress_thread): Fix comment.
169 (displaced_step_in_progress): Fix comment.
170
171 2020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
172
173 * gdbarch.sh (make_corefile_notes): Return unique pointer.
174 * gdbarch.c: Re-generate.
175 * gdbarch.h: Re-generate.
176 * gcore.c (write_gcore_file_1): Adjust.
177 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
178 constructor.
179 <note_data>: Change type to unique pointer.
180 <abort_iteration>: Change type to bool.
181 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
182 (fbsd_collect_thread_registers): Return void, adjust.
183 (struct fbsd_corefile_thread_data): Add construtor.
184 <note_data>: Change type to unique pointer.
185 (fbsd_corefile_thread): Adjust.
186 (fbsd_make_corefile_notes): Return unique pointer, adjust.
187 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
188 to unique pointer, adjust.
189 (struct linux_collect_regset_section_cb_data): Add constructor.
190 <note_data>: Change type to unique pointer.
191 <abort_iteration>: Change type to bool.
192 (linux_collect_thread_registers): Return void, adjust.
193 (struct linux_corefile_thread_data): Add constructor.
194 <note_data>: Change type to unique pointer.
195 (linux_corefile_thread): Adjust.
196 (linux_make_corefile_notes): Return unique pointer, adjust.
197
198 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
201 * gdbarch.c: Re-generate.
202 * gdbarch.h: Re-generate.
203 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
204 bool.
205 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
206 Likewise.
207 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
208 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
209 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
210 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
211
212 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
213
214 * gdbarch.sh: Make generated predicates return bool.
215 * gdbarch.c: Re-generate.
216 * gdbarch.h: Re-generate.
217
218 2020-10-20 Tom Tromey <tom@tromey.com>
219
220 * varobj-iter.h (struct varobj_item): Remove typedef.
221
222 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
223
224 * infrun.c (currently_stepping): Change int to bool
225 (maybe_software_singlestep): Likewise.
226 (show_stop_on_solib_events): Likewise.
227 (stepping_past_nonsteppable_watchpoint): Likewise.
228 (displaced_step_in_progress_any_inferior): Likewise.
229 (displaced_step_in_progress_thread): Likewise.
230 (keep_going_stepped_thread): Likewise.
231 (thread_still_needs_step_over): Likewise.
232 (start_step_over): Likewise.
233 (do_target_resume): Likewise.
234 (resume_1): Likewise.
235 (clear_proceed_status): Likewise.
236 (thread_still_needs_step_over_bp): Likewise.
237 (proceed): Likewise.
238 (switch_back_to_stepped_thread): Likewise.
239 (adjust_pc_after_break): Likewise.
240 (stepped_in_from): Likewise.
241 (handle_stop_requested): Likewise.
242 (handle_syscall_event): Likewise.
243 (handle_no_resumed): Likewise.
244 (handle_inferior_event): Likewise.
245 (finish_step_over): Likewise.
246 (handle_signal_stop): Likewise.
247 (process_event_stop_test): Likewise.
248
249 2020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
250
251 * infrun.c (get_displaced_stepping_state): Fix comment.
252
253 2020-10-20 Andreas Schwab <schwab@linux-m68k.org>
254
255 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
256
257 2020-10-19 Tom Tromey <tromey@adacore.com>
258
259 PR tui/26719
260 * tui/tui-winsource.h (struct tui_source_window_base)
261 <refresh_window>: Rename from refresh_pad.
262 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
263 Rename from refresh_pad.
264 (tui_source_window_base::show_source_content)
265 (tui_source_window_base::do_scroll_horizontal): Update.
266
267 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
268
269 * thread.c (_initialize_thread): Fine-tune the help text of
270 'info threads'.
271
272 2020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
273
274 * frame.c: Remove the unused 'uinteger_option_def' type alias.
275
276 2020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
277
278 * breakpoint.c (handle_jit_event): Add an argument, change how
279 `jit_event_handler` is called.
280
281 2020-10-17 Tom Tromey <tom@tromey.com>
282
283 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
284 (scan_xcoff_symtab): Update.
285 * psymtab.h (class psymtab_storage) <global_psymbols,
286 static_psymbols, current_global_psymbols,
287 current_static_psymbols>: Remove.
288 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
289 (match_partial_symbol, lookup_partial_symbol): Update.
290 (print_partial_symbols): Change parameters.
291 (dump_psymtab, recursively_search_psymtabs)
292 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
293 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
294 (concat): Remove.
295 (end_psymtab_common): Simplify.
296 (append_psymbol_to_list): Change parameters.
297 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
298 (init_psymbol_list): Simplify.
299 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
300 * psympriv.h (struct partial_symtab) <empty>: New method.
301 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
302 Remove.
303 <global_psymbols, static_psymbols>: New members.
304 <add_psymbol>: New methods.
305 (add_psymbol_to_list): Don't declare.
306 (psymbol_placement): Move earlier.
307 * mdebugread.c (parse_partial_symbols): Update.
308 (handle_psymbol_enumerators): Change parameters.
309 (mdebug_expand_psymtab): Update.
310 * dwarf2/read.c (process_psymtab_comp_unit_reader)
311 (add_partial_symbol): Update.
312 * dwarf2/index-write.c (write_psymbols): Change parameters.
313 (write_one_signatured_type): Update.
314 (recursively_count_psymbols): Update.
315 (recursively_write_psymbols): Update.
316 (class debug_names) <recursively_write_psymbols>: Update.
317 <write_psymbols>: Change parameters.
318 <write_one_signatured_type>: Update.
319 * dbxread.c (read_dbx_symtab): Update.
320 (dbx_end_psymtab): Use partial_symtab::empty.
321 * ctfread.c (struct ctf_context) <pst>: New member.
322 (create_partial_symtab): Set it.
323 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
324 (scan_partial_symbols): Use the psymtab's context. Update.
325
326 2020-10-17 Tom Tromey <tom@tromey.com>
327
328 * valprint.c (generic_value_print): Remove comment.
329 * m2-valprint.c (m2_value_print_inner): Remove comment.
330 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
331 type.
332
333 2020-10-17 Tom de Vries <tdevries@suse.de>
334
335 PR symtab/26317
336 * source.c (select_source_symtab): Handling sal.symtab == NULL for
337 symbol main.
338
339 2020-10-14 Tom de Vries <tdevries@suse.de>
340
341 PR gdb/26733
342 * solib.c (solib_contains_address_p): Handle
343 'solib->sections == nullptr'.
344
345 2020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
346
347 PR gdb/26642
348 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
349 target can't do async.
350 * target.c (target_wait): Assert that we don't pass
351 TARGET_WNOHANG to a target that can't async.
352
353 2020-10-13 Kamil Rytarowski <n54@gmx.com>
354
355 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
356 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
357 * alpha-bsd-nat.c: Adjust include.
358 * alpha-bsd-tdep.h: Adjust comment.
359 * alpha-nbsd-tdep.c: Rename to ...
360 * alpha-netbsd-tdep.c: ... this, adjust include.
361 * amd64-nbsd-nat.c: Rename to ...
362 * amd64-netbsd-nat.c: ... this, adjust include.
363 * amd64-nbsd-tdep.c: Rename to ...
364 * amd64-netbsd-tdep.c: ... this, adjust include.
365 * amd64-tdep.h: Adjust include.
366 * arm-nbsd-nat.c: Rename to ...
367 * arm-netbsd-nat.c: ... this, adjust include.
368 * arm-nbsd-tdep.c: Rename to ...
369 * arm-netbsd-tdep.c: ... this, adjust include.
370 * arm-nbsd-tdep.h: Rename to ...
371 * arm-netbsd-tdep.h: ... this, adjust include.
372 * configure.nat: Adjust file lists.
373 * configure.tgt: Likewise.
374 * hppa-nbsd-nat.c: Rename to ...
375 * hppa-netbsd-nat.c: ... this, adjust include.
376 * hppa-nbsd-tdep.c: Rename to ...
377 * hppa-netbsd-tdep.c: ... this, adjust include.
378 * i386-nbsd-nat.c: Rename to ...
379 * i386-netbsd-nat.c: ... this, adjust include.
380 * i386-nbsd-tdep.c: Rename to ...
381 * i386-netbsd-tdep.c: ... this, adjust include.
382 * m68k-bsd-nat.c: Adjust include.
383 * mips-nbsd-nat.c: Rename to ...
384 * mips-netbsd-nat.c: ... this, adjust include.
385 * mips-nbsd-tdep.c: Rename to ...
386 * mips-netbsd-tdep.c: ... this, adjust include.
387 * mips-nbsd-tdep.h: Rename to ...
388 * mips-netbsd-tdep.h: ... this.
389 * nbsd-nat.c: Rename to ...
390 * netbsd-nat.c: ... this, adjust include.
391 * nbsd-nat.h: Rename to ...
392 * netbsd-nat.h: ... this, adjust include.
393 * nbsd-tdep.c: Rename to ...
394 * netbsd-tdep.c: ... this, adjust include.
395 * nbsd-tdep.h: Rename to ...
396 * netbsd-tdep.h: ... this.
397 * ppc-nbsd-nat.c: Rename to ...
398 * ppc-netbsd-nat.c: ... this, adjust include.
399 * ppc-nbsd-tdep.c: Rename to ...
400 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
401 * ppc-nbsd-tdep.h: Rename to ...
402 * ppc-netbsd-tdep.h: ... this.
403 * sh-nbsd-nat.c: Rename to ...
404 * sh-netbsd-nat.c: ... this, adjust include.
405 * sh-nbsd-tdep.c: Rename to ...
406 * sh-netbsd-tdep.c: ... this, adjust include.
407 * sparc-nbsd-nat.c: Rename to ...
408 * sparc-netbsd-nat.c: ... this.
409 * sparc-nbsd-tdep.c: Rename to ...
410 * sparc-netbsd-tdep.c: ... this, adjust include.
411 * sparc64-nbsd-nat.c: Rename to ...
412 * sparc64-netbsd-nat.c: ... this.
413 * sparc64-nbsd-tdep.c: Rename to ...
414 * sparc64-netbsd-tdep.c: ... this, adjust include.
415 * sparc64-tdep.h: Adjust comment.
416 * vax-bsd-nat.c: Adjust include.
417 * vax-nbsd-tdep.c: Rename to ...
418 * vax-netbsd-tdep.c: ... this, adjust include.
419
420 2020-10-12 Tom Tromey <tom@tromey.com>
421
422 * target.h (struct target_ops) <get_section_table>: Update.
423 (target_get_section_table): Update.
424 * target.c (target_get_section_table, target_section_by_addr)
425 (memory_xfer_partial_1): Update.
426 * target-section.h (target_section_table): Now an alias.
427 * target-delegates.c: Rebuild.
428 * target-debug.h (target_debug_print_target_section_table_p):
429 Rename from target_debug_print_struct_target_section_table_p.
430 * symfile.c (build_section_addr_info_from_section_table): Update.
431 * solib.c (solib_map_sections, solib_contains_address_p): Update.
432 * solib-svr4.c (scan_dyntag): Update.
433 * solib-dsbt.c (scan_dyntag): Update.
434 * remote.c (remote_target::remote_xfer_live_readonly_partial):
435 Update.
436 * record-full.c (record_full_core_target::xfer_partial): Update.
437 * progspace.h (struct program_space) <target_sections>: Update.
438 * exec.h (print_section_info): Update.
439 * exec.c (exec_target::close, build_section_table)
440 (add_target_sections, add_target_sections_of_objfile)
441 (remove_target_sections, exec_on_vfork)
442 (section_table_available_memory)
443 (section_table_xfer_memory_partial)
444 (exec_target::get_section_table, exec_target::xfer_partial)
445 (print_section_info, set_section_command)
446 (exec_set_section_address, exec_target::has_memory): Update.
447 * corelow.c (core_target::build_file_mappings)
448 (core_target::xfer_partial, core_target::info_proc_mappings)
449 (core_target::info_proc_mappings): Update.
450 * bfd-target.c (class target_bfd): Update
451
452 2020-10-12 Tom Tromey <tom@tromey.com>
453
454 * progspace.c (program_space::~program_space): Don't call
455 clear_section_table.
456 * exec.h (clear_section_table): Don't declare.
457 * exec.c (exec_target::close): Update.
458 (clear_section_table): Remove.
459
460 2020-10-12 Tom Tromey <tom@tromey.com>
461
462 * exec.c (add_target_sections_of_objfile): Simplify.
463
464 2020-10-12 Tom Tromey <tom@tromey.com>
465
466 * solib.c (solib_map_sections): Update.
467 * record-full.c (record_full_core_open_1): Update.
468 * exec.h (build_section_table): Return a target_section_table.
469 * exec.c (exec_file_attach): Update.
470 (build_section_table): Return a target_section_table.
471 * corelow.c (core_target::core_target): Update.
472 * bfd-target.c (target_bfd::target_bfd): Update.
473
474 2020-10-12 Tom Tromey <tom@tromey.com>
475
476 * target.c (target_section_by_addr, memory_xfer_partial_1):
477 Update.
478 * target-section.h (struct target_section_table): Use
479 std::vector.
480 * symfile.h (build_section_addr_info_from_section_table): Take a
481 target_section_table.
482 * symfile.c (build_section_addr_info_from_section_table): Take a
483 target_section_table.
484 * solist.h (struct so_list) <sections>: Change type.
485 <sections_end>: Remove.
486 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
487 (solib_contains_address_p): Update.
488 * solib-svr4.c (scan_dyntag): Update.
489 * solib-dsbt.c (scan_dyntag): Update.
490 * remote.c (remote_target::remote_xfer_live_readonly_partial):
491 Update.
492 * record-full.c (record_full_core_start, record_full_core_end):
493 Remove.
494 (record_full_core_sections): New global.
495 (record_full_core_open_1, record_full_core_target::xfer_partial):
496 Update.
497 * exec.h (build_section_table, section_table_xfer_memory_partial)
498 (add_target_sections): Take a target_section_table.
499 * exec.c (exec_file_attach, clear_section_table): Update.
500 (resize_section_table): Remove.
501 (build_section_table, add_target_sections): Take a
502 target_section_table.
503 (add_target_sections_of_objfile, remove_target_sections)
504 (exec_on_vfork): Update.
505 (section_table_available_memory): Take a target_section_table.
506 (section_table_read_available_memory): Update.
507 (section_table_xfer_memory_partial): Take a target_section_table.
508 (print_section_info, set_section_command)
509 (exec_set_section_address, exec_target::has_memory): Update.
510 * corelow.c (class core_target) <m_core_section_table,
511 m_core_file_mappings>: Remove braces.
512 <~core_target>: Remove.
513 (core_target::core_target): Update.
514 (core_target::~core_target): Remove.
515 (core_target::build_file_mappings)
516 (core_target::xfer_memory_via_mappings)
517 (core_target::xfer_partial, core_target::info_proc_mappings):
518 Update.
519 * bfd-target.c (target_bfd::xfer_partial): Update.
520 (target_bfd::target_bfd): Update.
521 (target_bfd::~target_bfd): Remove.
522
523 2020-10-12 Tom Tromey <tom@tromey.com>
524
525 * target.h (struct target_section, struct target_section_table):
526 Move to target-section.h.
527 * target-section.h: New file.
528
529 2020-10-12 Pedro Alves <pedro@palves.net>
530
531 PR exp/26602
532 * valops.c (struct struct_field_searcher): New.
533 (update_search_result): Rename to ...
534 (struct_field_searcher::update_result): ... this. Simplify
535 prototype. Record all found fields.
536 (do_search_struct_field): Rename to ...
537 (struct_field_searcher::search): ... this. Simplify prototype.
538 Maintain stack of visited baseclass path. Call update_result for
539 fields too. Keep searching fields in baseclasses instead of
540 stopping at the first found field.
541 (search_struct_field): Use struct_field_searcher. When looking
542 for fields, report ambiguous access attempts.
543
544 2020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
545
546 * frame.c (inside_main_func): Check full symbols as well as
547 minimal symbols.
548
549 2020-10-09 Joel Brobecker <brobecker@adacore.com>
550
551 * ada-lang.c (advance_wild_match): Rewrite the function's
552 description. Change the type of target0, t0 and t1 to char.
553
554 2020-10-09 Tom Tromey <tromey@adacore.com>
555
556 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
557
558 2020-10-09 Tom Tromey <tromey@adacore.com>
559
560 * ada-lang.h (ada_encode): Return std::string.
561 * ada-lang.c (ada_encode_1): Return std::string.
562 (ada_encode): Likewise.
563 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
564 Update.
565 * ada-exp.y (block_lookup, write_var_or_type): Update.
566
567 2020-10-09 Hannes Domani <ssbssa@yahoo.de>
568
569 PR exp/26714
570 * printcmd.c (print_formatted): Handle void results as
571 unformatted prints.
572
573 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * arch/aarch32.c (aarch32_create_target_description): Release the
576 target_desc_up as late as possible.
577 * arch/aarch64.c (aarch64_create_target_description): Likewise.
578 * arch/amd64.c (amd64_create_target_description): Likewise.
579 * arch/arc.c (arc_create_target_description): Return a
580 target_desc_up, don't release it.
581 * arch/arc.h (arc_create_target_description): Update declaration.
582 (arc_lookup_target_description): Move target_desc_up into the
583 cache, and return a borrowed pointer.
584 * arch/arm.c (arm_create_target_description): Release the
585 target_desc_up as late as possible.
586 * arch/i386.c (i386_create_target_description): Likewise.
587 * arch/riscv.h (riscv_create_target_description): Update
588 declaration to match definition.
589 * arch/tic6x.c (tic6x_create_target_description): Release the
590 target_desc_up as late as possible.
591
592 2020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
593
594 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
595 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
596
597 2020-10-09 Jan Vrany <jan.vrany@labware.com>
598
599 * source.c (directory_command): Notify observers that "directories"
600 parameter has changed.
601
602 2020-10-08 Tom Tromey <tom@tromey.com>
603
604 * cli/cli-cmds.c (print_disassembly): Style function name and
605 addresses. Add _() wrappers.
606
607 2020-10-08 Shahab Vahedi <shahab@synopsys.com>
608
609 * NEWS: Mention ARC support in GDBserver.
610
611 2020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * arch/aarch32.c (aarch32_create_target_description): Release
614 unique_ptr returned from allocate_target_description.
615 * arch/aarch64.c (aarch64_create_target_description): Likewise.
616 * arch/amd64.c (amd64_create_target_description): Likewise.
617 * arch/arc.c (arc_create_target_description): Likewise.
618 * arch/arm.c (arm_create_target_description): Likewise.
619 * arch/i386.c (i386_create_target_description): Likewise.
620 * arch/riscv.c (riscv_create_target_description): Update return
621 type. Handle allocate_target_description returning a unique_ptr.
622 (riscv_lookup_target_description): Update to handle unique_ptr.
623 * arch/tic6x.c (tic6x_create_target_description): Release
624 unique_ptr returned from allocate_target_description.
625 * features/microblaze-with-stack-protect.c: Regenerate.
626 * features/microblaze.c: Regenerate.
627 * features/mips-dsp-linux.c: Regenerate.
628 * features/mips-linux.c: Regenerate.
629 * features/mips64-dsp-linux.c: Regenerate.
630 * features/mips64-linux.c: Regenerate.
631 * features/nds32.c: Regenerate.
632 * features/nios2.c: Regenerate.
633 * features/or1k.c: Regenerate.
634 * features/rs6000/powerpc-32.c: Regenerate.
635 * features/rs6000/powerpc-32l.c: Regenerate.
636 * features/rs6000/powerpc-403.c: Regenerate.
637 * features/rs6000/powerpc-403gc.c: Regenerate.
638 * features/rs6000/powerpc-405.c: Regenerate.
639 * features/rs6000/powerpc-505.c: Regenerate.
640 * features/rs6000/powerpc-601.c: Regenerate.
641 * features/rs6000/powerpc-602.c: Regenerate.
642 * features/rs6000/powerpc-603.c: Regenerate.
643 * features/rs6000/powerpc-604.c: Regenerate.
644 * features/rs6000/powerpc-64.c: Regenerate.
645 * features/rs6000/powerpc-64l.c: Regenerate.
646 * features/rs6000/powerpc-7400.c: Regenerate.
647 * features/rs6000/powerpc-750.c: Regenerate.
648 * features/rs6000/powerpc-860.c: Regenerate.
649 * features/rs6000/powerpc-altivec32.c: Regenerate.
650 * features/rs6000/powerpc-altivec32l.c: Regenerate.
651 * features/rs6000/powerpc-altivec64.c: Regenerate.
652 * features/rs6000/powerpc-altivec64l.c: Regenerate.
653 * features/rs6000/powerpc-e500.c: Regenerate.
654 * features/rs6000/powerpc-e500l.c: Regenerate.
655 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
656 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
657 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
658 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
659 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
660 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
661 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
662 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
663 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
664 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
665 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
666 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
667 * features/rs6000/powerpc-vsx32.c: Regenerate.
668 * features/rs6000/powerpc-vsx32l.c: Regenerate.
669 * features/rs6000/powerpc-vsx64.c: Regenerate.
670 * features/rs6000/powerpc-vsx64l.c: Regenerate.
671 * features/rs6000/rs6000.c: Regenerate.
672 * features/rx.c: Regenerate.
673 * features/s390-gs-linux64.c: Regenerate.
674 * features/s390-linux32.c: Regenerate.
675 * features/s390-linux32v1.c: Regenerate.
676 * features/s390-linux32v2.c: Regenerate.
677 * features/s390-linux64.c: Regenerate.
678 * features/s390-linux64v1.c: Regenerate.
679 * features/s390-linux64v2.c: Regenerate.
680 * features/s390-te-linux64.c: Regenerate.
681 * features/s390-tevx-linux64.c: Regenerate.
682 * features/s390-vx-linux64.c: Regenerate.
683 * features/s390x-gs-linux64.c: Regenerate.
684 * features/s390x-linux64.c: Regenerate.
685 * features/s390x-linux64v1.c: Regenerate.
686 * features/s390x-linux64v2.c: Regenerate.
687 * features/s390x-te-linux64.c: Regenerate.
688 * features/s390x-tevx-linux64.c: Regenerate.
689 * features/s390x-vx-linux64.c: Regenerate.
690 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
691 from allocate_target_description.
692 * target-descriptions.c (allocate_target_description): Update
693 return type.
694 (print_c_tdesc::visit_pre): Release unique_ptr returned from
695 allocate_target_description.
696
697 2020-10-07 Tom Tromey <tromey@adacore.com>
698
699 * unittests/search-memory-selftests.c: New file.
700 * Makefile.in (SELFTESTS_SRCS): Add
701 unittests/search-memory-selftests.c.
702
703 2020-10-07 Tom Tromey <tromey@adacore.com>
704
705 PR gdb/16930:
706 * findcmd.c (_initialize_mem_search): Mention that the range is
707 inclusive.
708
709 2020-10-07 Tom Tromey <tromey@adacore.com>
710
711 * target.h (simple_search_memory): Don't declare.
712 * target.c (simple_search_memory): Move to gdbsupport.
713 (default_search_memory): Update.
714 * remote.c (remote_target::search_memory): Update.
715
716 2020-10-07 Simon Marchi <simon.marchi@efficios.com>
717
718 * Makefile.in (COMPILE): Add CXXFLAGS.
719 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
720 (check-headers): Add CXXFLAGS.
721
722 2020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
723
724 * arc-linux-tdep.h: New file.
725 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
726 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
727 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
728 arc_linux_gregset, arc_linux_v2_regset,
729 arc_linux_iterate_over_regset_sections,
730 arc_linux_core_read_description): Implement.
731 (arc_linux_init_osabi): Set iterate_over_regset_sections.
732 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
733 (arc_gdbarch_features_create): Add.
734 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
735
736 2020-10-07 Shahab Vahedi <shahab@synopsys.com>
737
738 * arch/arc.h: Rename "arc_gdbarch_features" to
739 "arc_arch_features".
740 * arc-tdep.h: Likewise.
741 * arc-tdep.c: Likewise.
742
743 2020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
744
745 * infcmd.c (attach_command): Remove the redundant call to
746 `clear_proceed_status`.
747
748 2020-10-07 Kamil Rytarowski <n54@gmx.com>
749
750 * nat/netbsd-nat.c (write_memory, read_memory): Update.
751
752 2020-10-07 Kamil Rytarowski <n54@gmx.com>
753
754 * nat/netbsd-nat.c (write_memory, read_memory): Add.
755 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
756 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
757
758 2020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
759
760 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
761 (_initialize_break_catch_sig): Don't allocate array.
762
763 2020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
764
765 * symtab.c (find_pc_line): Return unmapped addresses when the
766 requested address is also unmapped.
767
768 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
769
770 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
771 tui/tui-out.h.
772
773 2020-10-05 Simon Marchi <simon.marchi@efficios.com>
774
775 * amd64-windows-tdep.c (amd64_windows_return_value): Use
776 type::is_vector instead of TYPE_VECTOR.
777
778 2020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * auto-load.c (auto_load_objfile_script_1): Don't use
781 debugfile_holder as temporary variable when stripping drive
782 letter.
783
784 2020-10-05 Hannes Domani <ssbssa@yahoo.de>
785
786 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
787 Add TYPE_CODE_COMPLEX.
788 (amd64_windows_return_value): Fix types returned via XMM0.
789
790 2020-10-05 Alan Hayward <alan.hayward@arm.com>
791
792 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
793 AArch64/ARM maintainers.
794
795 2020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
796
797 * NEWS: Mention set/show debug event-loop.
798
799 2020-10-02 Tom Tromey <tromey@adacore.com>
800
801 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
802 REG_EXTENDED.
803
804 2020-10-02 Simon Marchi <simon.marchi@efficios.com>
805
806 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
807 * procfs.c (procfs_inferior_created): Remove.
808 (_initialize_procfs): Don't register procfs_inferior_created.
809
810 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
811
812 * async-event.c (invoke_async_signal_handlers): Add debug
813 print.
814 (check_async_event_handlers): Likewise.
815 * event-top.c (show_debug_event_loop): New function.
816 (_initialize_event_top): Register "set debug event-loop"
817 setting.
818
819 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
820
821 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
822 * debug.h: Remove.
823 * infrun.c: Include gdbsupport/common-debug.h.
824 * linux-nat.c: Likewise.
825
826 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * async-event.h (create_async_signal_handler): Add name
829 parameter.
830 (create_async_event_handler): Likewise.
831 * async-event.c (struct async_signal_handler) <name>: New field.
832 (struct async_event_handler) <name>: New field.
833 (create_async_signal_handler): Assign name.
834 (create_async_event_handler): Assign name.
835 * event-top.c (async_init_signals): Pass name when creating
836 handler.
837 * infrun.c (_initialize_infrun): Likewise.
838 * record-btrace.c (record_btrace_push_target): Likewise.
839 * record-full.c (record_full_open): Likewise.
840 * remote-notif.c (remote_notif_state_allocate): Likewise.
841 * remote.c (remote_target::open_1): Likewise.
842 * tui/tui-win.c (tui_initialize_win): Likewise.
843
844 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
845
846 * async-event.c (initialize_async_signal_handlers): Pass name to
847 add_file_handler
848 * event-top.c (ui_register_input_event_handler): Likewise.
849 * linux-nat.c (linux_nat_target::async): Likewise.
850 * run-on-main-thread.c (_initialize_run_on_main_thread):
851 Likewise
852 * ser-base.c (reschedule): Likewise.
853 (ser_base_async): Likewise.
854 * tui/tui-io.c: Likewise.
855 * top.h (struct ui) <num>: New field.
856 * top.c (highest_ui_num): New variable.
857 (ui::ui): Initialize num.
858
859 2020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
860
861 * observable.h <inferior_created>: Remove parameters. Update all
862 listeners.
863 * inferior.h (post_create_inferior): Remove target parameter.
864 Update all callers.
865
866 2020-10-02 Nitika Achra <Nitika.Achra@amd.com>
867
868 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
869 and DW_MACRO_undef_strx.
870 (dwarf_decode_macros): Likewise
871 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
872 which is the value of DW_AT_str_offsets_base.
873 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
874 str_offsets_base.
875
876 2020-10-01 Kamil Rytarowski <n54@gmx.com>
877
878 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
879
880 2020-10-01 Kamil Rytarowski <n54@gmx.com>
881
882 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
883 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
884
885 2020-10-01 Kamil Rytarowski <n54@gmx.com>
886
887 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
888
889 2020-09-30 Tom de Vries <tdevries@suse.de>
890
891 PR symtab/26683
892 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
893
894 2020-09-30 Tom Tromey <tromey@adacore.com>
895
896 * dwarf2/read.c (handle_variant): Use constant_value.
897
898 2020-09-29 Tom Tromey <tom@tromey.com>
899
900 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
901 (read_file_scope, dwarf2_get_pc_bounds)
902 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
903 (read_structure_type, handle_struct_member_die)
904 (read_enumeration_type, read_array_type, read_set_type)
905 (read_tag_pointer_type, read_tag_reference_type)
906 (read_subroutine_type, read_base_type, read_subrange_type)
907 (read_full_die_1, partial_die_info::read)
908 (partial_die_info::read, by, new_symbol)
909 (dwarf2_const_value_data, dwarf2_const_value_attr)
910 (dump_die_shallow, dwarf2_fetch_constant_bytes)
911 (prepare_one_comp_unit): Update.
912 * dwarf2/attribute.h (DW_UNSND): Remove.
913
914 2020-09-29 Tom Tromey <tom@tromey.com>
915
916 * dwarf2/read.c (read_func_scope, prototyped_function_p)
917 (read_subroutine_type, partial_die_info::read)
918 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
919 (dwarf2_add_member_fn): Update.
920 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
921 * dwarf2/attribute.c (attribute::as_boolean): New method.
922
923 2020-09-29 Tom Tromey <tom@tromey.com>
924
925 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
926 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
927 method.
928 * dwarf2/attribute.c (attribute::as_virtuality): New method.
929
930 2020-09-29 Tom Tromey <tom@tromey.com>
931
932 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
933 the attribute's form.
934
935 2020-09-29 Tom Tromey <tom@tromey.com>
936
937 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
938 (dwarf2_add_member_fn): Update.
939 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
940 * dwarf2/attribute.c (attribute::defaulted): New method, from
941 is_valid_DW_AT_defaulted.
942
943 2020-09-29 Tom Tromey <tom@tromey.com>
944
945 * dwarf2/read.c (dw2_get_file_names_reader)
946 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
947 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
948 (dwarf2_symbol_mark_computed): Use as_unsigned.
949 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
950 method.
951 <form_is_section_offset>: Update comment.
952
953 2020-09-29 Tom Tromey <tom@tromey.com>
954
955 * dwarf2/read.c (dwarf2_access_attribute): Rename from
956 dwarf2_default_access_attribute. Look up attribute.
957 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
958 Update.
959
960 2020-09-29 Tom Tromey <tom@tromey.com>
961
962 * dwarf2/read.c (skip_one_die): Update.
963 (read_full_die_1): Change how reprocessing is done.
964 (partial_die_info::read): Update.
965 (read_attribute_value): Remove need_reprocess parameter.
966 (read_attribute): Likewise.
967 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
968 New method.
969
970 2020-09-29 Tom Tromey <tom@tromey.com>
971
972 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
973 (dwarf2_const_value_attr, dump_die_shallow)
974 (dwarf2_fetch_constant_bytes): Update.
975 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
976 comment.
977 <set_address>: New method.
978 (DW_ADDR): Remove.
979 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
980 (attribute::as_string, attribute::as_address): Add assert.
981
982 2020-09-29 Tom Tromey <tom@tromey.com>
983
984 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
985 (read_attribute_reprocess, read_attribute_value): Update.
986 (read_attribute): Clear requires_reprocessing.
987 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
988 form_requires_reprocessing>: New methods.
989 <string_init>: Clear requires_reprocessing.
990 <set_unsigned_reprocess>: New method.
991 <name>: Shrink by one bit.
992 <requires_reprocessing>: New member.
993 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
994 method.
995
996 2020-09-29 Tom Tromey <tom@tromey.com>
997
998 * dwarf2/read.c (read_attribute_value): Update.
999 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
1000 set_unsigned>: New methods.
1001 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
1002
1003 2020-09-29 Tom Tromey <tom@tromey.com>
1004
1005 * dwarf2/read.c (get_alignment, read_array_order)
1006 (read_attribute_value, dwarf2_const_value_attr)
1007 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
1008 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
1009 New methods.
1010 (DW_SND): Remove.
1011
1012 2020-09-29 Tom Tromey <tom@tromey.com>
1013
1014 * dwarf2/read.c (read_attribute_value, lookup_die_type)
1015 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
1016 Update.
1017 * dwarf2/attribute.h (struct attribute) <as_signature,
1018 set_signature>: New methods.
1019 (DW_SIGNATURE): Remove.
1020
1021 2020-09-29 Tom Tromey <tom@tromey.com>
1022
1023 * dwarf2/read.c (read_call_site_scope)
1024 (handle_data_member_location, dwarf2_add_member_fn)
1025 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
1026 (partial_die_info::read, read_attribute_value)
1027 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
1028 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
1029 (dwarf2_symbol_mark_computed): Update.
1030 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
1031 methods.
1032 (DW_BLOCK): Remove.
1033 * dwarf2/attribute.c (attribute::form_is_block): Add
1034 DW_FORM_data16.
1035
1036 2020-09-29 Tom Tromey <tom@tromey.com>
1037
1038 * dwarf2/read.c (read_cutu_die_from_dwo)
1039 (read_attribute_reprocess, read_attribute_value, read_attribute)
1040 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
1041 (dwarf2_fetch_constant_bytes): Update.
1042 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
1043 <set_string_noncanonical, set_string_canonical>: New methods.
1044 <string_is_canonical>: Update comment.
1045 <canonical_string_p>: Add assert.
1046 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
1047 * dwarf2/attribute.c (attribute::form_is_string): New method.
1048 (attribute::string): Use it.
1049
1050 2020-09-29 Tom Tromey <tom@tromey.com>
1051
1052 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
1053 (dump_die_shallow): Use canonical_string_p.
1054 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
1055 method.
1056
1057 2020-09-29 Tom Tromey <tom@tromey.com>
1058
1059 * dwarf2/read.c (partial_die_info::read)
1060 (dwarf2_const_value_attr, anonymous_struct_prefix, )
1061 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
1062 attribute::as_string.
1063
1064 2020-09-29 Tom Tromey <tom@tromey.com>
1065
1066 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
1067 DW_ADDR.
1068 (attribute::string): Don't use DW_STRING.
1069 (attribute::get_ref_die_offset): Don't use DW_UNSND.
1070 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
1071
1072 2020-09-29 Tom Tromey <tom@tromey.com>
1073
1074 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
1075 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
1076 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
1077 * dwarf2/attribute.h (struct attribute): Rename methods.
1078 * dwarf2/attribute.c (attribute::as_address): Rename from
1079 value_as_address.
1080 (attribute::as_string): Rename from value_as_string.
1081
1082 2020-09-29 Tom Tromey <tom@tromey.com>
1083
1084 * dwarf2/read.c (partial_die_info::read) <case
1085 DW_AT_linkage_name>: Use value_as_string.
1086 (dwarf2_string_attr): Use value_as_string.
1087 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
1088 method.
1089 * dwarf2/attribute.c (attribute::value_as_string): New method.
1090
1091 2020-09-29 Pedro Alves <pedro@palves.net>
1092
1093 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
1094 defined before using '#pragma GCC diagnostic' instead of checking
1095 __clang__.
1096
1097 2020-09-28 Tom Tromey <tom@tromey.com>
1098
1099 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
1100 (handle_signal_stop): Update.
1101 * procfs.c (procfs_target::insert_watchpoint): Update.
1102 * target.h (target_have_steppable_watchpoint): Now a function.
1103
1104 2020-09-28 Tom Tromey <tom@tromey.com>
1105
1106 * infrun.c (set_schedlock_func): Update.
1107 * target.h (target_can_lock_scheduler): Now a function.
1108
1109 2020-09-28 Tom Tromey <tom@tromey.com>
1110
1111 * inferior.h (class inferior) <has_execution>: Update.
1112 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1113 * valops.c (find_function_in_inferior)
1114 (value_allocate_space_in_inferior): Update.
1115 * top.c (kill_or_detach): Update.
1116 * target.c (target_preopen, set_target_permissions): Update.
1117 (target_has_execution_current): Remove.
1118 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
1119 Update.
1120 * solib.c (update_solib_list, reload_shared_libraries): Update.
1121 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1122 * solib-dsbt.c (enable_break): Update.
1123 * score-tdep.c (score7_fetch_inst): Update.
1124 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
1125 Update.
1126 * remote.c (remote_target::start_remote)
1127 (remote_target::remote_check_symbols, remote_target::open_1)
1128 (remote_target::remote_detach_1, remote_target::verify_memory)
1129 (remote_target::xfer_partial, remote_target::read_description)
1130 (remote_target::get_min_fast_tracepoint_insn_len): Update.
1131 * record-full.c (record_full_open_1): Update.
1132 * record-btrace.c (record_btrace_target_open): Update.
1133 * objc-lang.c (lookup_objc_class, lookup_child_selector)
1134 (value_nsstring): Update.
1135 * linux-thread-db.c (add_thread_db_info)
1136 (thread_db_find_new_threads_silently, check_thread_db_callback)
1137 (try_thread_db_load_1, record_thread): Update.
1138 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
1139 Update.
1140 * linux-fork.c (checkpoint_command): Update.
1141 * infrun.c (set_non_stop, set_observer_mode)
1142 (check_multi_target_resumption, for_each_just_stopped_thread)
1143 (maybe_remove_breakpoints, normal_stop)
1144 (class infcall_suspend_state): Update.
1145 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
1146 (info_program_command, attach_command): Update.
1147 * infcall.c (call_function_by_hand_dummy): Update.
1148 * inf-loop.c (inferior_event_handler): Update.
1149 * gcore.c (gcore_command, derive_heap_segment): Update.
1150 * exec.c (exec_file_command): Update.
1151 * eval.c (evaluate_subexp): Update.
1152 * compile/compile.c (compile_to_object): Update.
1153 * cli/cli-dump.c (restore_command): Update.
1154 * breakpoint.c (update_watchpoint)
1155 (update_inserted_breakpoint_locations)
1156 (insert_breakpoint_locations, get_bpstat_thread): Update.
1157 * target.h (target_has_execution): Remove macro.
1158 (target_has_execution_current): Don't declare.
1159 (target_has_execution): Rename from target_has_execution_1. Add
1160 argument default.
1161
1162 2020-09-28 Tom Tromey <tom@tromey.com>
1163
1164 * mi/mi-main.c (exec_reverse_continue)
1165 (mi_cmd_list_target_features): Update.
1166 * infrun.c (set_exec_direction_func): Update.
1167 * target.c (default_execution_direction): Update.
1168 * reverse.c (exec_reverse_once): Update.
1169 * target.h (target_can_execute_reverse): Now a function.
1170
1171 2020-09-28 Tom Tromey <tom@tromey.com>
1172
1173 * tui/tui-regs.c (tui_get_register)
1174 (tui_data_window::show_registers): Update.
1175 * thread.c (scoped_restore_current_thread::restore)
1176 (scoped_restore_current_thread::scoped_restore_current_thread):
1177 Update.
1178 * regcache-dump.c (regcache_print): Update.
1179 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1180 Update.
1181 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
1182 * mep-tdep.c (current_me_module, current_options): Update.
1183 * linux-thread-db.c (thread_db_load): Update.
1184 * infcmd.c (registers_info, info_vector_command)
1185 (info_float_command): Update.
1186 * ia64-tdep.c (ia64_frame_prev_register)
1187 (ia64_sigtramp_frame_prev_register): Update.
1188 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
1189 * gcore.c (derive_stack_segment): Update.
1190 * frame.c (get_current_frame, has_stack_frames): Update.
1191 * findvar.c (language_defn::read_var_value): Update.
1192 * arm-tdep.c (arm_pc_is_thumb): Update.
1193 * target.c (target_has_registers): Rename from
1194 target_has_registers_1.
1195 * target.h (target_has_registers): Remove macro.
1196 (target_has_registers): Rename from target_has_registers_1.
1197
1198 2020-09-28 Tom Tromey <tom@tromey.com>
1199
1200 * windows-tdep.c (tlb_make_value): Update.
1201 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1202 * thread.c (scoped_restore_current_thread::restore)
1203 (scoped_restore_current_thread::scoped_restore_current_thread)
1204 (thread_command): Update.
1205 * stack.c (backtrace_command_1, frame_apply_level_command)
1206 (frame_apply_all_command, frame_apply_command): Update.
1207 * infrun.c (siginfo_make_value, restore_infcall_control_state):
1208 Update.
1209 * gcore.c (derive_stack_segment): Update.
1210 * frame.c (get_current_frame, has_stack_frames): Update.
1211 * auxv.c (info_auxv_command): Update.
1212 * ada-tasks.c (ada_build_task_list): Update.
1213 * target.c (target_has_stack): Rename from target_has_stack_1.
1214 * target.h (target_has_stack): Remove macro.
1215 (target_has_stack): Rename from target_has_stack_1.
1216
1217 2020-09-28 Tom Tromey <tom@tromey.com>
1218
1219 * target.c (target_has_memory): Rename from target_has_memory_1.
1220 * tui/tui-regs.c (tui_data_window::show_registers): Update.
1221 * thread.c (scoped_restore_current_thread::restore)
1222 (scoped_restore_current_thread::scoped_restore_current_thread):
1223 Update.
1224 * frame.c (get_current_frame, has_stack_frames): Update.
1225 * target.h (target_has_memory): Remove macro.
1226 (target_has_memory): Rename from target_has_memory_1.
1227
1228 2020-09-28 Tom Tromey <tom@tromey.com>
1229
1230 * target.c (target_has_all_memory_1): Remove.
1231 * target.h (target_has_all_memory): Remove define.
1232 (target_has_all_memory_1): Don't declare.
1233
1234 2020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * ser-base.c: Adjust comments formatting.
1237
1238 2020-09-27 Tom Tromey <tom@tromey.com>
1239
1240 PR tui/25342:
1241 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
1242
1243 2020-09-27 Tom Tromey <tom@tromey.com>
1244
1245 PR tui/25342:
1246 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
1247
1248 2020-09-27 Tom Tromey <tom@tromey.com>
1249
1250 * unittests/tui-selftests.c: Update.
1251 * tui/tui-winsource.h (struct tui_source_window_base)
1252 <extra_margin, show_line_number, refresh_pad>: New methods.
1253 <m_max_length, m_pad>: New members.
1254 (tui_copy_source_line): Update.
1255 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
1256 first_col, line_width, ndigits parameters. Add length.
1257 (tui_source_window_base::show_source_line): Write to pad. Line
1258 number now 0-based.
1259 (tui_source_window_base::refresh_pad): New method.
1260 (tui_source_window_base::show_source_content): Write to pad. Call
1261 refresh_pad.
1262 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
1263 not refill.
1264 (tui_source_window_base::update_exec_info): Call
1265 show_line_number.
1266 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
1267 method.
1268 <m_digits>: New member.
1269 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
1270 and m_max_length.
1271 (tui_source_window::show_line_number): New method.
1272 * tui/tui-io.h (tui_puts): Fix comment.
1273 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
1274 m_max_length.
1275
1276 2020-09-27 Tom Tromey <tom@tromey.com>
1277
1278 * tui/tui-winsource.c
1279 (tui_source_window_base::set_is_exec_point_at): Don't call
1280 show_source_line.
1281
1282 2020-09-27 Tom Tromey <tom@tromey.com>
1283
1284 * python/py-tui.c (class tui_py_window) <refresh_window>: New
1285 method.
1286 <erase>: Update.
1287 <cursor_x, cursor_y>: Remove.
1288 <m_inner_window>: New member.
1289 (tui_py_window::rerender): Create inner window.
1290 (tui_py_window::output): Write to inner window.
1291
1292 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
1293
1294 PR python/26586
1295 * cli/cli-script.c (execute_control_commands): don't set
1296 instream to nullptr here as this breaks the from_tty argument
1297 to gdb.execute in Python.
1298 (execute_user_command): set instream to nullptr here instead.
1299
1300 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
1301
1302 * infrun.h (infrun_debug_printf): Fix formatting.
1303 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
1304
1305 2020-09-25 Saagar Jha <saagar@saagarjha.com>
1306
1307 * compile/compile-object-load.h (struct munmap_list): Add
1308 explicitly-defined move constructor.
1309
1310 2020-09-24 Tom Tromey <tromey@adacore.com>
1311
1312 PR tui/26638:
1313 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
1314 method.
1315 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
1316 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
1317 (tui_prev_win): Rewrite.
1318
1319 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
1320
1321 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
1322 in WOW64 processes as SIGINT.
1323 * nat/windows-nat.h: Make wow64_process a shared variable.
1324 * windows-nat.c: Remove static wow64_process variable.
1325
1326 2020-09-23 Tom Tromey <tom@tromey.com>
1327
1328 PR symtab/25470:
1329 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
1330 offset and bit size.
1331 * printcmd.c (print_scalar_formatted): Handle zero-length
1332 integer.
1333 (print_scalar_formatted): Use bit_size_differs_p.
1334 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
1335 constant.
1336 (union type_specific): <int_stuff>: New member.
1337 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
1338 methods.
1339 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
1340 TYPE_SPECIFIC_FIELD.
1341 (recursive_dump_type, copy_type_recursive): Update.
1342 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
1343 DW_AT_data_bit_offset.
1344
1345 2020-09-23 Tom Tromey <tom@tromey.com>
1346
1347 * utils.h (class gdb_argv): Add move operators.
1348 <append>: New methods.
1349 * compile/compile.c (build_argc_argv): Remove.
1350 (compile_args_argc): Remove.
1351 (compile_args_argv): Change type.
1352 (set_compile_args): Simplify.
1353 (append_args): Remove.
1354 (filter_args): Remove argcp parameter.
1355 (get_args): Return gdb_argv. Simplify.
1356 (compile_to_object): Update.
1357
1358 2020-09-23 Tom Tromey <tom@tromey.com>
1359
1360 * compile/compile-object-run.c (do_module_cleanup)
1361 <~do_module_cleanup> :Remove.
1362 (do_module_cleanup): Update.
1363 * compile/compile-object-load.h (struct munmap_list): Add move
1364 assignment operator.
1365 <source_file>: Now a std::string.
1366 <munmap_list>: Rename. No longer a pointer.
1367 * compile/compile-object-load.c (struct setup_sections_data): Add
1368 constructor.
1369 <setup_one_section>: Declare.
1370 <munmap_list>: Move earlier.
1371 <m_bfd>: New member.
1372 <m_last_size, m_last_section_first, m_last_prot,
1373 m_last_max_alignment>: Rename, add initializers where needed.
1374 (setup_sections_data::setup_one_section): Rename from
1375 setup_sections. Update.
1376 (compile_object_load): Update. Don't use bfd_map_over_sections.
1377
1378 2020-09-23 Tom Tromey <tom@tromey.com>
1379
1380 * compile/compile-object-run.c (struct do_module_cleanup): Add
1381 parameters to constructor. Update destructor.
1382 <source_file, scope, scope_data, out_value_type, out_value_addr,
1383 munmap_list_head, objfile_name_string>: Remove.
1384 <module>: New member.
1385 (do_module_cleanup): Update.
1386 (compile_object_run): Update.
1387
1388 2020-09-23 Tom Tromey <tom@tromey.com>
1389
1390 * compile/compile.c (eval_compile_command): Update.
1391 * compile/compile-object-run.h (compile_object_run): Take a
1392 compile_module_up.
1393 * compile/compile-object-run.c (compile_object_run): Take a
1394 compile_module_up.
1395 * compile/compile-object-load.h (struct compile_module): Add
1396 constructor, destructor.
1397 (compile_module_up): New typedef.
1398 (compile_object_load): Return compile_object_up.
1399 * compile/compile-object-load.c (compile_object_load): Return
1400 compile_module_up.
1401
1402 2020-09-23 Tom Tromey <tom@tromey.com>
1403
1404 * compile/compile-object-run.c (struct do_module_cleanup): Add
1405 constructor, destructor.
1406 <objfile_name_string>: Don't use struct hack.
1407 (do_module_cleanup): Use delete.
1408 (compile_object_run): Use new.
1409
1410 2020-09-23 Tom Tromey <tom@tromey.com>
1411
1412 * compile/compile-cplus-types.c
1413 (compile_cplus_convert_struct_or_union): Use std::vector.
1414 (compile_cplus_convert_func): Likewise.
1415 * compile/compile-c-types.c (convert_func): Use std::vector.
1416
1417 2020-09-21 Tom Tromey <tromey@adacore.com>
1418
1419 * sparc-tdep.c (sparc32_skip_prologue): Use
1420 skip_prologue_using_sal.
1421
1422 2020-09-19 Tom Tromey <tom@tromey.com>
1423
1424 * symfile.c (add_section_size_callback): Remove.
1425 (load_one_section): Rename from load_section_callback. Change
1426 parameters.
1427 (generic_load): Use foreach.
1428
1429 2020-09-19 Tom Tromey <tom@tromey.com>
1430
1431 * exec.c (add_to_section_table): Remove.
1432 (build_section_table): Use foreach.
1433
1434 2020-09-19 Tom Tromey <tom@tromey.com>
1435
1436 * elfread.c (elf_locate_sections): Change parameters.
1437 (elf_symfile_read): Use foreach.
1438
1439 2020-09-19 Tom Tromey <tom@tromey.com>
1440
1441 * cli/cli-dump.c (struct callback_data): Remove.
1442 (restore_one_section): Rename from restore_section_callback.
1443 Change parameters.
1444 (restore_binary_file): Change parameters.
1445 (restore_command): Use foreach.
1446
1447 2020-09-19 Tom Tromey <tom@tromey.com>
1448
1449 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
1450 (gcore_copy_callback): Likewise.
1451 (gcore_memory_sections): Use foreach.
1452
1453 2020-09-19 Tom Tromey <tom@tromey.com>
1454
1455 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
1456 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
1457 parameters.
1458 (generic_elf_osabi_sniffer): Use foreach.
1459 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
1460 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
1461
1462 2020-09-19 Tom Tromey <tom@tromey.com>
1463
1464 * dwarf2/read.c (locate_dwz_sections): Change parameters.
1465 (dwarf2_get_dwz_file): Use foreach.
1466 (dwarf2_locate_dwo_sections): Change parameters.
1467 (open_and_init_dwo_file): Use foreach.
1468 (dwarf2_locate_common_dwp_sections): Change parameters.
1469 (open_and_init_dwp_file): Use foreach.
1470
1471 2020-09-19 Tom Tromey <tom@tromey.com>
1472
1473 * symfile.h: (find_lowest_section): Don't declare.
1474 * symfile.c (find_lowest_section): Now static. Change
1475 parameters.
1476 (struct place_section_arg): Remove.
1477 (place_section): Change parameters.
1478 (addr_info_make_relative): Use foreach.
1479 (symfile_dummy_outputs): Remove.
1480 (default_symfile_relocate): Use foreach.
1481
1482 2020-09-19 Tom Tromey <tom@tromey.com>
1483
1484 * objfiles.c (add_to_objfile_sections): Rename from
1485 add_to_objfile_sections_full.
1486 (add_to_objfile_sections): Remove.
1487 (build_objfile_section_table): Use foreach.
1488
1489 2020-09-19 Tom Tromey <tom@tromey.com>
1490
1491 * stap-probe.c (get_stap_base_address_1): Remove.
1492 (get_stap_base_address): Use foreach.
1493
1494 2020-09-19 Tom Tromey <tom@tromey.com>
1495
1496 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
1497 parameters.
1498 (gdb_bfd_close_or_warn): Use foreach.
1499
1500 2020-09-19 Tom Tromey <tom@tromey.com>
1501
1502 * corelow.c (add_to_thread_list): Change parameters.
1503 (core_target_open): Use foreach.
1504
1505 2020-09-19 Tom Tromey <tom@tromey.com>
1506
1507 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
1508 existing function.
1509
1510 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
1513 for arrays.
1514
1515 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * eval.c: Remove 'f-lang.h' include.
1518 (value_f90_subarray): Moved to f-lang.c.
1519 (eval_call): Renamed to...
1520 (evaluate_subexp_do_call): ...this, is no longer static, header
1521 comment moved into header file.
1522 (evaluate_funcall): Update call to eval_call.
1523 (skip_undetermined_arglist): Moved to f-lang.c.
1524 (fortran_value_subarray): Likewise.
1525 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1526 moved to evaluate_subexp_f.
1527 (calc_f77_array_dims): Moved to f-lang.c
1528 * expprint.c (print_subexp_funcall): New function.
1529 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
1530 moved to print_subexp_f, OP_FUNCALL uses new function.
1531 (dump_subexp_body_funcall): New function.
1532 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
1533 moved to dump_subexp_f, OP_FUNCALL uses new function.
1534 * expression.h (evaluate_subexp_do_call): Declare.
1535 * f-lang.c (value_f90_subarray): Moved from eval.c.
1536 (skip_undetermined_arglist): Likewise.
1537 (calc_f77_array_dims): Likewise.
1538 (fortran_value_subarray): Likewise.
1539 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
1540 (operator_length_f): Likewise.
1541 (print_subexp_f): Likewise.
1542 (dump_subexp_body_f): Likewise.
1543 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
1544 declaration of this operation to here.
1545 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
1546 support moved to operator_length_f.
1547 * parser-defs.h (dump_subexp_body_funcall): Declare.
1548 (print_subexp_funcall): Declare.
1549 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
1550 fortran-operator.def.
1551
1552 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
1553
1554 * eval.c (fortran_value_subarray): New function, content is taken
1555 from...
1556 (evaluate_subexp_standard): ...here, in two places. Now arrays
1557 and strings both call the new function.
1558 (calc_f77_array_dims): Add header comment, handle strings.
1559
1560 2020-09-18 Victor Collod <vcollod@nvidia.com>
1561
1562 PR gdb/26635
1563 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
1564 (i386_analyze_prologue): Call i386_skip_endbr.
1565
1566 2020-09-18 Tom Tromey <tromey@adacore.com>
1567
1568 * windows-nat.c (struct windows_nat_target) <wait>: Update.
1569 (windows_nat_target::wait): Update.
1570 * target/wait.h (enum target_wait_flag): New. Use
1571 DEF_ENUM_FLAGS_TYPE.
1572 * target/target.h (target_wait): Change type of options.
1573 * target.h (target_options_to_string, default_target_wait):
1574 Update.
1575 (struct target_ops) <wait>: Change type of options.
1576 * target.c (target_wait, default_target_wait, do_option): Change
1577 type of "options".
1578 (target_options_to_string): Likewise.
1579 * target-delegates.c: Rebuild.
1580 * target-debug.h (target_debug_print_target_wait_flags): Rename
1581 from target_debug_print_options.
1582 * sol-thread.c (class sol_thread_target) <wait>: Update.
1583 (sol_thread_target::wait): Update.
1584 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
1585 (rs6000_nat_target::wait): Update.
1586 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
1587 Update.
1588 (remote_target::wait_ns, remote_target::wait_as): Change type of
1589 "options".
1590 (remote_target::wait): Update.
1591 * remote-sim.c (struct gdbsim_target) <wait>: Update.
1592 (gdbsim_target::wait): Update.
1593 * record-full.c (class record_full_base_target) <wait>: Update.
1594 (record_full_wait_1): Change type of "options".
1595 (record_full_base_target::wait): Update.
1596 * record-btrace.c (class record_btrace_target) <wait>: Update.
1597 (record_btrace_target::wait): Update.
1598 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
1599 Update.
1600 (ravenscar_thread_target::wait): Update.
1601 * procfs.c (class procfs_target) <wait>: Update.
1602 (procfs_target::wait): Update.
1603 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
1604 * obsd-nat.c (obsd_nat_target::wait): Update.
1605 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
1606 (nto_procfs_target::wait): Update.
1607 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
1608 * nbsd-nat.c (nbsd_wait): Change type of "options".
1609 (nbsd_nat_target::wait): Update.
1610 * linux-thread-db.c (class thread_db_target) <wait>: Update.
1611 (thread_db_target::wait): Update.
1612 * linux-nat.h (class linux_nat_target) <wait>: Update.
1613 * linux-nat.c (linux_nat_target::wait): Update.
1614 (linux_nat_wait_1): Update.
1615 * infrun.c (do_target_wait_1, do_target_wait): Change type of
1616 "options".
1617 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
1618 * inf-ptrace.c (inf_ptrace_target::wait): Update.
1619 * go32-nat.c (struct go32_nat_target) <wait>: Update.
1620 (go32_nat_target::wait): Update.
1621 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
1622 * gnu-nat.c (gnu_nat_target::wait): Update.
1623 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
1624 * fbsd-nat.c (fbsd_nat_target::wait): Update.
1625 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
1626 * darwin-nat.c (darwin_nat_target::wait): Update.
1627 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
1628 (bsd_uthread_target::wait): Update.
1629 * aix-thread.c (class aix_thread_target) <wait>: Update.
1630 (aix_thread_target::wait): Update.
1631
1632 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
1633
1634 * compile/compile-object-run.c (create_copied_type_recursive): New
1635 function.
1636 (compile_object_run): Use new function.
1637
1638 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
1639
1640 * NEWS: Mention x86_64 Cygwin core file support.
1641
1642 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1643
1644 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
1645 (core_process_module_section): Handle NOTE_INFO_MODULE64.
1646
1647 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1648
1649 * windows-tdep.h: Add prototypes.
1650 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
1651 (i386_windows_core_pid_to_str): Move and rename ...
1652 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
1653 (windows_core_pid_to_str): ... and here.
1654 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
1655
1656 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1657 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
1658 (amd64_windows_init_abi_common): ... and register.
1659
1660 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
1661
1662 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
1663 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
1664
1665 2020-09-18 Pedro Alves <pedro@palves.net>
1666
1667 PR gdb/26631
1668 * thread.c (thread_find_command): Switch inferior before calling
1669 target methods.
1670
1671 2020-09-17 Tom Tromey <tromey@adacore.com>
1672
1673 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
1674 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
1675 (tdesc_arch_data_up): New typedef.
1676 (tdesc_use_registers, tdesc_data_alloc): Update.
1677 (tdesc_data_cleanup): Don't declare.
1678 * target-descriptions.c (tdesc_data_alloc): Return a
1679 tdesc_arch_data_up.
1680 (tdesc_arch_data_deleter::operator()): Rename from
1681 tdesc_data_cleanup. Change argument type.
1682 (tdesc_use_registers): Change early_data to an rvalue reference.
1683 (tdesc_use_registers): Don't use delete.
1684 * sparc-tdep.c (sparc32_gdbarch_init): Update.
1685 * s390-tdep.c (s390_gdbarch_init): Update.
1686 * rx-tdep.c (rx_gdbarch_init): Update.
1687 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1688 * riscv-tdep.c (riscv_gdbarch_init): Update.
1689 * or1k-tdep.c (or1k_gdbarch_init): Update.
1690 * nios2-tdep.c (nios2_gdbarch_init): Update.
1691 * nds32-tdep.c (nds32_gdbarch_init): Update.
1692 * mips-tdep.c (mips_gdbarch_init): Update.
1693 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
1694 * m68k-tdep.c (m68k_gdbarch_init): Update.
1695 * i386-tdep.c (i386_gdbarch_init): Update.
1696 * arm-tdep.c (arm_gdbarch_init): Update.
1697 * arc-tdep.c (arc_tdesc_init): Update.
1698 (arc_gdbarch_init): Update.
1699 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
1700
1701 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
1702
1703 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
1704 for WOW64 processes.
1705
1706 2020-09-17 Tom Tromey <tom@tromey.com>
1707
1708 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
1709
1710 2020-09-17 Tom Tromey <tom@tromey.com>
1711
1712 * value.c (preserve_values): Update.
1713 * python/py-type.c (save_objfile_types): Update.
1714 * guile/scm-type.c (save_objfile_types): Update.
1715 * gdbtypes.h (create_copied_types_hash): Return htab_up.
1716 * gdbtypes.c (create_copied_types_hash): Return htab_up.
1717 * compile/compile-object-run.c (compile_object_run): Update.
1718
1719 2020-09-17 Tom Tromey <tom@tromey.com>
1720
1721 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
1722 Remove.
1723 <m_table>: Now htab_up.
1724 * typeprint.c (typedef_hash_table::recursively_update)
1725 (typedef_hash_table::add_template_parameters)
1726 (typedef_hash_table::typedef_hash_table): Update.
1727 (typedef_hash_table::~typedef_hash_table): Remove.
1728 (typedef_hash_table::typedef_hash_table)
1729 (typedef_hash_table::find_global_typedef)
1730 (typedef_hash_table::find_typedef): Update.
1731
1732 2020-09-17 Tom Tromey <tom@tromey.com>
1733
1734 * target-descriptions.c (tdesc_use_registers): Use htab_up.
1735
1736 2020-09-17 Tom Tromey <tom@tromey.com>
1737
1738 * linespec.c (class decode_compound_collector)
1739 <~decode_compound_collector>: Remove.
1740 <m_unique_syms>: Now htab_up.
1741 (decode_compound_collector::operator ()): Update.
1742 (class symtab_collector) <~symtab_collector>: Remove.
1743 <m_symtab_table>: Now htab_up.
1744 (symtab_collector::operator ()): Update.
1745
1746 2020-09-17 Tom Tromey <tom@tromey.com>
1747
1748 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
1749 (filename_seen_cache::clear): Update.
1750 (~filename_seen_cache): Remove.
1751 (filename_seen_cache::seen): Update.
1752 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
1753 htab_up.
1754 <~filename_seen_cache>: Remove.
1755 <traverse>: Update.
1756
1757 2020-09-17 Tom Tromey <tom@tromey.com>
1758
1759 * completer.c (completion_tracker::discard_completions)
1760 (completion_tracker::~completion_tracker)
1761 (completion_tracker::maybe_add_completion)
1762 (completion_tracker::remove_completion)
1763 (completion_tracker::recompute_lowest_common_denominator)
1764 (completion_tracker::build_completion_result): Update.
1765 * completer.h (class completion_tracker) <have_completions>:
1766 Update.
1767 <m_entries_hash>: Now htab_up.
1768
1769 2020-09-17 Tom Tromey <tom@tromey.com>
1770
1771 * breakpoint.c (ambiguous_names_p): Use htab_up.
1772
1773 2020-09-17 Tom Tromey <tom@tromey.com>
1774
1775 * auto-load.c (struct auto_load_pspace_info)
1776 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
1777 <loaded_script_files, loaded_script_texts>: Change type to
1778 htab_up.
1779 (~auto_load_pspace_info) Remove.
1780 (init_loaded_scripts_info, maybe_add_script_file)
1781 (maybe_add_script_text, auto_load_info_scripts): Update.
1782
1783 2020-09-17 Tom Tromey <tromey@adacore.com>
1784
1785 * c-exp.y (name_obstack): Now static.
1786
1787 2020-09-17 Chungyi Chi <demonic@csie.io>
1788
1789 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
1790
1791 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1792
1793 * breakpoint.h (init_catchpoint): Change int parameter to bool.
1794 (add_solib_catchpoint): Likewise.
1795 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
1796 to bool.
1797 (add_solib_catchpoint): Change int parameter/variable to bool.
1798 (catch_load_or_unload): Likewise.
1799 (init_catchpoint): Likewise.
1800 (create_fork_vfork_event_catchpoint): Likewise.
1801 (catch_fork_command_1): Likewise.
1802 (catch_exec_command_1): Likewise.
1803
1804 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
1805
1806 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
1807 Change instance_flags to m_instance_flags.
1808
1809 2020-09-16 Tom Tromey <tromey@adacore.com>
1810
1811 PR gdb/26598:
1812 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
1813
1814 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1815
1816 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
1817 PL_FLAG_EXEC.
1818 (fbsd_nat_target::insert_exec_catchpoint)
1819 (fbsd_nat_target::remove_exec_catchpoint): Always define.
1820 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
1821 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
1822
1823 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1824
1825 * configure.ac: Remove check for kinfo_getvmmap().
1826 * configure, config.in: Regenerate.
1827 * fbsd-nat.c (fbsd_read_mapping): Remove
1828 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
1829 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
1830 kinfo_get_vmmap() are always present.
1831
1832 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1833
1834 * fbsd-nat.c: Always include support for
1835 TARGET_OBJECT_SIGNAL_INFO.
1836
1837 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1838
1839 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
1840 sysctl and remove procfs fallback.
1841
1842 2020-09-16 John Baldwin <jhb@FreeBSD.org>
1843
1844 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
1845 * fbsd-nat.h: Likewise.
1846
1847 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1848
1849 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
1850 argument.
1851
1852 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1853
1854 * ada-lang.c (ada_language_data): Delete.
1855 (ada_language): Remove references to ada_language_data.
1856 * c-lang.c (c_language_data): Delete.
1857 (c_language): Remove references to c_language_data.
1858 (cplus_language_data): Delete.
1859 (cplus_language): Remove references to cplus_language_data.
1860 (asm_language_data): Delete.
1861 (asm_language): Remove references to asm_language_data.
1862 (minimal_language_data): Delete.
1863 (minimal_language): Remove references to minimal_language_data.
1864 * d-lang.c (d_language_data): Delete.
1865 (d_language): Remove references to d_language_data.
1866 * f-lang.c (f_language_data): Delete.
1867 (f_language): Remove references to f_language_data.
1868 * go-lang.c (go_language_data): Delete.
1869 (go_language): Remove references to go_language_data.
1870 * language.c (unknown_language_data): Delete.
1871 (unknown_language): Remove references to unknown_language_data.
1872 (auto_language_data): Delete.
1873 (auto_language): Remove references to auto_language_data.
1874 * language.h (language_data): Delete struct.
1875 (language_defn): No longer inherit from language_data.
1876 * m2-lang.c (m2_language_data): Delete.
1877 (m2_language): Remove references to m2_language_data.
1878 * objc-lang.c (objc_language_data): Delete.
1879 (objc_language): Remove references to objc_language_data.
1880 * opencl-lang.c (opencl_language_data): Delete.
1881 (opencl_language): Remove references to opencl_language_data.
1882 * p-lang.c (pascal_language_data): Delete.
1883 (pascal_language): Remove references to pascal_language_data.
1884 * rust-lang.c (rust_language_data): Delete.
1885 (rust_language): Remove references to rust_language_data.
1886
1887 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * ada-lang.c (ada_language_data): Remove la_op_print_tab
1890 initializer.
1891 (ada_language::opcode_print_table): New member function.
1892 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
1893 (c_language::opcode_print_table): New member function.
1894 (cplus_language_data): Remove la_op_print_tab initializer.
1895 (cplus_language::opcode_print_table): New member function.
1896 (asm_language_data): Remove la_op_print_tab initializer.
1897 (asm_language::opcode_print_table): New member function.
1898 (minimal_language_data): Remove la_op_print_tab initializer.
1899 (minimal_language::opcode_print_table): New member function.
1900 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
1901 (d_language::opcode_print_table): New member function.
1902 * expprint.c (print_subexp_standard): Update call to
1903 opcode_print_table.
1904 (op_string): Likewise.
1905 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
1906 (f_language::opcode_print_table): New member function.
1907 * go-lang.c (go_language_data): Remove la_op_print_tab
1908 initializer.
1909 (go_language::opcode_print_table): New member function.
1910 * language.c (unknown_language_data): Remove la_op_print_tab
1911 initializer.
1912 (unknown_language::opcode_print_table): New member function.
1913 (auto_language_data): Remove la_op_print_tab initializer.
1914 (auto_language::opcode_print_table): New member function.
1915 * language.h (language_data): Remove la_op_print_tab field.
1916 (language_defn::opcode_print_table): Declare new member function.
1917 * m2-lang.c (m2_language_data): Remove la_op_print_tab
1918 initializer.
1919 (m2_language::opcode_print_table): New member function.
1920 * objc-lang.c (objc_language_data): Remove la_op_print_tab
1921 initializer.
1922 (objc_language::opcode_print_table): New member function.
1923 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
1924 initializer.
1925 (opencl_language::opcode_print_table): New member function.
1926 * p-lang.c (pascal_language_data): Remove la_op_print_tab
1927 initializer.
1928 (pascal_language::opcode_print_table): New member function.
1929 * rust-lang.c (rust_language_data): Remove la_op_print_tab
1930 initializer.
1931 (rust_language::opcode_print_table): New member function.
1932
1933 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1934
1935 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
1936 (ada_language::expression_ops): New member function.
1937 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
1938 (c_language::expression_ops): New member function.
1939 (cplus_language_data): Remove la_exp_desc initializer.
1940 (cplus_language::expression_ops): New member function.
1941 (asm_language_data): Remove la_exp_desc initializer.
1942 (asm_language::expression_ops): New member function.
1943 (minimal_language_data): Remove la_exp_desc initializer.
1944 (minimal_language::expression_ops): New member function.
1945 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
1946 (d_language::expression_ops): New member function.
1947 * eval.c (evaluate_subexp): Update call to expression_ops.
1948 * expprint.c (print_subexp): Likewise.
1949 (op_name): Likewise.
1950 (dump_subexp_body): Likewise.
1951 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
1952 (f_language::expression_ops): New member function.
1953 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
1954 (go_language::expression_ops): New member function.
1955 * language.c (language_defn::expression_ops): New function.
1956 (unknown_language_data): Remove la_exp_desc initializer.
1957 (auto_language_data): Likewise.
1958 * language.h (language_data): Remove la_exp_desc field.
1959 (language_defn::expression_ops): Declare new member function.
1960 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
1961 (m2_language::expression_ops): New member function.
1962 * objc-lang.c (objc_language_data): Remove la_exp_desc
1963 initializer.
1964 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
1965 initializer.
1966 (opencl_language::expression_ops): New member function.
1967 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
1968 * parse.c (operator_length): Update call to expression_ops.
1969 (exp_iterate): Likewise.
1970 * rust-lang.c (rust_language_data): Remove la_exp_desc
1971 initializer.
1972 (ruse_language::expression_ops): New member function.
1973
1974 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * ada-lang.c (ada_language_data): Remove la_varobj_ops
1977 initializer.
1978 (ada_language::varobj_ops): New member function.
1979 * c-lang.c (c_language_data): Remove la_varobj_ops
1980 initializer.
1981 (cplus_language_data): Likewise.
1982 (cplus_language::varobj_ops): New member function.
1983 (asm_language_data): Remove la_varobj_ops initializer.
1984 (minimal_language_data): Likewise.
1985 * d-lang.c (d_language_data): Likewise.
1986 * f-lang.c (f_language_data): Likewise.
1987 * go-lang.c (go_language_data): Likewise.
1988 * language.c (language_defn::varobj_ops): New function.
1989 (unknown_language_data): Remove la_varobj_ops
1990 initializer.
1991 (auto_language_data): Likewise.
1992 * language.h (language_data): Remove la_varobj_ops field.
1993 (language_defn::varobj_ops): Declare new member function.
1994 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
1995 * objc-lang.c (objc_language_data): Likewise.
1996 * opencl-lang.c (opencl_language_data): Likewise.
1997 * p-lang.c (pascal_language_data): Likewise.
1998 * rust-lang.c (rust_language_data): Likewise.
1999 * varobj.c (varobj_create): Update call to varobj_ops.
2000 * varobj.h (default_varobj_ops): Delete define.
2001
2002 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * ada-lang.c (ada_language_data): Remove la_macro_expansion
2005 initializer.
2006 * c-lang.c (c_language_data): Likewise.
2007 (c_language::macro_expansion): New member function.
2008 (cplus_language_data): Likewise.
2009 (cplus_language::macro_expansion): New member function.
2010 (asm_language_data): Likewise.
2011 (asm_language::macro_expansion): New member function.
2012 (minimal_language_data): Likewise.
2013 (minimal_language::macro_expansion): New member function.
2014 * d-lang.c (d_language_data): Remove la_macro_expansion
2015 initializer.
2016 * f-lang.c (f_language_data): Likewise.
2017 * go-lang.c (go_language_data): Likewise.
2018 * language.c (unknown_language_data): Likewise.
2019 (auto_language_data): Likewise.
2020 * language.h (language_data): Remove la_macro_expansion field.
2021 (language_defn::macro_expansion): New member function.
2022 * m2-lang.c (m2_language_data): Remove la_macro_expansion
2023 initializer.
2024 * objc-lang.c (objc_language_data): Likewise.
2025 (objc_language::macro_expansion): New member function.
2026 * opencl-lang.c (opencl_language_data): Likewise.
2027 (opencl_language::macro_expansion): New member function.
2028 * p-lang.c (pascal_language_data): Remove la_macro_expansion
2029 initializer.
2030 * rust-lang.c (rust_language_data): Likewise.
2031 * symtab.c (default_collect_symbol_completion_matches_break_on):
2032 Update call to macro_expansion.
2033
2034 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2035
2036 * ada-lang.c (ada_language_data): Remove la_array_ordering
2037 initializer.
2038 * c-lang.c (c_language_data): Likewise.
2039 (cplus_language_data): Likewise.
2040 (asm_language_data): Likewise.
2041 (minimal_language_data): Likewise.
2042 * d-lang.c (d_language_data): Likewise.
2043 * dwarf2/read.c (read_array_order): Update for call to
2044 array_ordering.
2045 * f-lang.c (f_language_data): Remove la_array_ordering
2046 initializer.
2047 (f_language::array_ordering): New member function.
2048 * go-lang.c (go_language_data): Remove la_array_ordering
2049 initializer.
2050 * language.c (unknown_language_data): Likewise.
2051 (auto_language_data): Likewise.
2052 * language.h (language_data): Delete la_array_ordering field.
2053 (language_defn::array_ordering): New member function.
2054 * m2-lang.c (m2_language_data): Remove la_array_ordering
2055 initializer.
2056 * objc-lang.c (objc_language_data): Likewise.
2057 * opencl-lang.c (opencl_language_data): Likewise.
2058 * p-lang.c (pascal_language_data): Likewise.
2059 * rust-lang.c (rust_language_data): Likewise.
2060
2061 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2062
2063 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
2064 initializer.
2065 * c-lang.c (c_language_data): Likewise.
2066 (cplus_language_data): Likewise.
2067 (asm_language_data): Likewise.
2068 (minimal_language_data): Likewise.
2069 * d-lang.c (d_language_data): Likewise.
2070 * f-lang.c (f_language_data): Likewise.
2071 (f_language::case_sensitivity): New member function.
2072 * go-lang.c (go_language_data): Remove la_case_sensitivity
2073 initializer.
2074 * language.c (enum case_mode): Moved here from language.h.
2075 (case_mode): Make static.
2076 (show_case_command): Update for case_sensitivity being a method.
2077 (set_case_command): Likewise.
2078 (set_range_case): Likewise.
2079 (unknown_language_data): Remove la_case_sensitivity initializer.
2080 (auto_language_data): Likewise.
2081 * language.h (case_mode): Delete, move enum declaration to
2082 language.c.
2083 (language_data): Delete la_case_sensitivity field.
2084 (language_defn::case_sensitivity): New member function.
2085 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
2086 initializer.
2087 * objc-lang.c (objc_language_data): Likewise.
2088 * opencl-lang.c (opencl_language_data): Likewise.
2089 * p-lang.c (pascal_language_data): Likewise.
2090 * rust-lang.c (rust_language_data): Likewise.
2091
2092 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * ada-lang.c (ada_language_data): Remove la_range_check
2095 initializer.
2096 * c-lang.c (c_language_data): Likewise.
2097 (cplus_language_data): Likewise.
2098 (asm_language_data): Likewise.
2099 (minimal_language_data): Likewise.
2100 * d-lang.c (d_language_data): Likewise.
2101 * f-lang.c (f_language_data): Likewise.
2102 (f_language::range_checking_on_by_default): New member function.
2103 * go-lang.c (go_language_data): Remove la_range_check initializer.
2104 * language.c (enum range_mode): Moved here from language.h.
2105 (range_mode): Made static.
2106 (show_range_command): Update to use
2107 range_checking_on_by_default.
2108 (set_range_command): Likewise.
2109 (set_range_case): Likewise.
2110 (unknown_language_data): Remove la_range_check initializer.
2111 (auto_language_data): Likewise.
2112 * language.h (range_mode): Delete. Enum definition moved to
2113 language.c.
2114 (language_data): Remove la_range_check field.
2115 (language_defn::range_checking_on_by_default): New member
2116 function.
2117 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
2118 (m2_language::range_checking_on_by_default): New member function.
2119 * objc-lang.c (objc_language_data): Remove la_range_check
2120 initializer.
2121 * opencl-lang.c (opencl_language_data): Likewise.
2122 * p-lang.c (pascal_language_data): Likewise.
2123 (pascal_language::range_checking_on_by_default): New member
2124 function.
2125 * rust-lang.c (rust_language_data): Remove la_range_check
2126 initializer.
2127 (rust_language::range_checking_on_by_default): New member
2128 function.
2129
2130 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * dwarf2/read.c (dwarf2_physname): Remove special case for
2133 language_go.
2134 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
2135 member function.
2136
2137 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * ada-lang.c (ada_language_data): Remove
2140 la_store_sym_names_in_linkage_form_p initializer.
2141 (ada_language::store_sym_names_in_linkage_form_p): New member
2142 function.
2143 * c-lang.c (c_language_data): Remove
2144 la_store_sym_names_in_linkage_form_p initializer.
2145 (c_language::store_sym_names_in_linkage_form_p): New member
2146 function.
2147 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
2148 initializer.
2149 (asm_language_data): Likewise.
2150 (asm_language::store_sym_names_in_linkage_form_p): New member
2151 function.
2152 (minimal_language_data): Remove
2153 la_store_sym_names_in_linkage_form_p initializer.
2154 (minimal_language::store_sym_names_in_linkage_form_p): New member
2155 function.
2156 * d-lang.c (d_language_data): Remove
2157 la_store_sym_names_in_linkage_form_p initializer.
2158 * dwarf2/read.c (dwarf2_physname): Update call to
2159 store_sym_names_in_linkage_form_p.
2160 * f-lang.c (f_language_data): Remove
2161 la_store_sym_names_in_linkage_form_p initializer.
2162 * go-lang.c (go_language_data): Remove
2163 la_store_sym_names_in_linkage_form_p initializer.
2164 * language.c (unknown_language_data): Remove
2165 la_store_sym_names_in_linkage_form_p initializer.
2166 (unknown_language::store_sym_names_in_linkage_form_p): New member
2167 function.
2168 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
2169 initializer.
2170 (auto_language::store_sym_names_in_linkage_form_p): New member
2171 function.
2172 * language.h (language_data): Remove
2173 la_store_sym_names_in_linkage_form_p member variable.
2174 (language_defn::store_sym_names_in_linkage_form_p): New member
2175 function.
2176 * m2-lang.c (m2_language_data): Remove
2177 la_store_sym_names_in_linkage_form_p initializer.
2178 * objc-lang.c (objc_language_data): Likewise.
2179 * opencl-lang.c (opencl_language_data): Likewise.
2180 * p-lang.c (pascal_language_data): Likewise.
2181 * rust-lang.c (rust_language_data): Likewise.
2182
2183 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * ada-lang.c (ada_language_data): Remove string_lower_bound
2186 initializer.
2187 * c-lang.c (c_language_data): Likewise.
2188 (cplus_language_data): Likewise.
2189 (asm_language_data): Likewise.
2190 (minimal_language_data): Likewise.
2191 * d-lang.c (d_language_data): Likewise.
2192 * f-lang.c (f_language_data): Likewise.
2193 * go-lang.c (go_language_data): Likewise.
2194 * language.c (unknown_language_data): Likewise.
2195 (auto_language_data): Likewise.
2196 * language.h (language_data): Remove string_lower_bound field.
2197 (language_defn::string_lower_bound): New member function.
2198 * m2-lang.c (m2_language_data): Remove string_lower_bound
2199 initializer.
2200 (m2_language::string_lower_bound): New member function.
2201 * objc-lang.c (objc_language_data): Remove string_lower_bound
2202 initializer.
2203 * opencl-lang.c (opencl_language_data): Likewise.
2204 * p-lang.c (pascal_language_data): Likewise.
2205 * rust-lang.c (rust_language_data): Likewise.
2206 * valops.c (value_cstring): Update call to string_lower_bound.
2207 (value_string): Likewise.
2208 * value.c (allocate_repeated_value): Likewise.
2209
2210 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * valops.c (value_repeat): Fix incorrect argument name in comment.
2213
2214 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2215
2216 * ada-lang.c (ada_language_data): Remove c_style_arrays
2217 initializer.
2218 (ada_language::c_style_arrays_p): New member fuction.
2219 * c-lang.c (c_language_data): Remove c_style_arrays
2220 initializer.
2221 (cplus_language_data): Likewise.
2222 (asm_language_data): Likewise.
2223 (minimal_language_data): Likewise.
2224 * d-lang.c (d_language_data): Likewise.
2225 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
2226 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
2227 (f_language::c_style_arrays_p): New member function.
2228 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
2229 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
2230 * language.c (unknown_language_data): Remove c_style_arrays
2231 initializer.
2232 (auto_language_data): Likewise.
2233 * language.h (language_data): Remove c_style_arrays field.
2234 (language_defn::c_style_arrays_p): New member function.
2235 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
2236 (m2_language::c_style_arrays_p): New member function.
2237 * objc-lang.c (objc_language_data): Remove c_style_arrays
2238 initializer.
2239 * opencl-lang.c (opencl_language_data): Likewise.
2240 * p-lang.c (pascal_language_data): Likewise.
2241 * rust-lang.c (rust_language_data): Likewise.
2242 * valarith.c (value_subscript): Update call to c_style_arrays_p,
2243 and update local variable to a bool.
2244 * valops.c (value_cast): Update call to c_style_arrays_p.
2245 (value_array): Likewise.
2246 * value.c (coerce_array): Likewise.
2247
2248 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * ada-lang.c (ada_language_data): Remove la_language initializer.
2251 * c-lang.c (c_language_data): Likewise.
2252 (cplus_language_data): Likewise.
2253 (asm_language_data): Likewise.
2254 (minimal_language_data): Likewise.
2255 * d-lang.c (d_language_data): Likewise.
2256 * f-lang.c (f_language_data): Likewise.
2257 * go-lang.c (go_language_data): Likewise.
2258 * language.c (unknown_language_data): Likewise.
2259 (auto_language_data): Likewise.
2260 * language.h (language_data): Remove la_language field.
2261 (language_defn::language_defn): Initialise la_language field.
2262 (language_defn::la_language): New member variable.
2263 * m2-lang.c (m2_language_data): Remove la_language field.
2264 * objc-lang.c (objc_language_data): Likewise.
2265 * opencl-lang.c (opencl_language_data): Likewise.
2266 * p-lang.c (pascal_language_data): Likewise.
2267 * rust-lang.c (rust_language_data): Likewise.
2268
2269 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * ada-lang.c (ada_extensions): Delete, moved into
2272 ada_language::filename_extensions.
2273 (ada_language_data): Remove la_filename_extensions initializer.
2274 (ada_language::filename_extensions): New member function.
2275 * c-lang.c (c_extensions): Delete, moved into
2276 c_language::filename_extensions.
2277 (c_language_data): Remove la_filename_extensions initializer.
2278 (c_language::filename_extensions): New member function.
2279 (cplus_extensions): Delete, moved into
2280 cplus_language::filename_extensions.
2281 (cplus_language_data): Remove la_filename_extensions initializer.
2282 (cplus_language::filename_extensions): New member function.
2283 (asm_extensions): Delete, moved into
2284 asm_language::filename_extensions.
2285 (asm_language_data): Remove la_filename_extensions initializer.
2286 (asm_language::filename_extensions): New member function.
2287 (minimal_language_data): Remove la_filename_extensions
2288 initializer.
2289 * d-lang.c (d_extensions): Delete, moved into
2290 d_language::filename_extensions.
2291 (d_language_data): Remove la_filename_extensions initializer.
2292 (d_language::filename_extensions): New member function.
2293 * f-lang.c (f_extensions): Delete, moved into
2294 f_language::filename_extensions.
2295 (f_language_data): Remove la_filename_extensions initializer.
2296 (f_language::filename_extensions): New member function.
2297 * go-lang.c (go_language_data): Remove la_filename_extensions
2298 initializer.
2299 * language.c (add_set_language_command): Update now that
2300 filename_extensions returns a vector.
2301 (unknown_language_data): Remove la_filename_extensions
2302 initializer.
2303 (auto_language_data): Likewise.
2304 * language.h (language_data): Remove la_filename_extensions field.
2305 (language_defn::filename_extensions): New member function.
2306 * m2-lang.c (m2_language_data): Remove la_filename_extensions
2307 initializer.
2308 * objc-lang.c (objc_extensions): Delete, moved into
2309 objc_language::filename_extensions.
2310 (objc_language_data): Remove la_filename_extensions initializer.
2311 (objc_language::filename_extensions): New member function.
2312 * opencl-lang.c (opencl_language_data): Remove
2313 la_filename_extensions initializer.
2314 * p-lang.c (pascal_extensions): Delete, moved into
2315 pascal_language::filename_extensions.
2316 (pascal_language_data): Remove la_filename_extensions initializer.
2317 (pascal_language::filename_extensions): New member function.
2318 * rust-lang.c (rust_extensions): Delete, moved into
2319 rust_language::filename_extensions.
2320 (rust_language_data): Remove la_filename_extensions initializer.
2321 (rust_language::filename_extensions): New member function.
2322 * symfile.c (add_filename_language): Add new assert.
2323
2324 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2325
2326 * ada-lang.c (ada_language_data): Remove la_name and
2327 la_natural_name initializers.
2328 (ada_language::name): New member function.
2329 (ada_language::natural_name): New member function.
2330 * c-lang.c (c_language_data): Remove la_name and
2331 la_natural_name initializers.
2332 (c_language::name): New member function.
2333 (c_language::natural_name): New member function.
2334 (cplus_language_data): Remove la_name and
2335 la_natural_name initializers.
2336 (cplus_language::name): New member function.
2337 (cplus_language::natural_name): New member function.
2338 (asm_language_data): Remove la_name and
2339 la_natural_name initializers.
2340 (asm_language::name): New member function.
2341 (asm_language::natural_name): New member function.
2342 (minimal_language_data): Remove la_name and
2343 la_natural_name initializers.
2344 (minimal_language::name): New member function.
2345 (minimal_language::natural_name): New member function.
2346 * compile/compile.c (compile_to_object): Update call to
2347 lanugage_defn::name.
2348 * d-lang.c (d_language_data): Remove la_name and
2349 la_natural_name initializers.
2350 (d_language::name): New member function.
2351 (d_language::natural_name): New member function.
2352 * expprint.c (print_subexp_standard): Update call to
2353 language_defn::name.
2354 (dump_raw_expression): Likewise
2355 (dump_prefix_expression): Likewise.
2356 * f-lang.c (f_language_data): Remove la_name and
2357 la_natural_name initializers.
2358 (f_language::name): New member function.
2359 (f_language::natural_name): New member function.
2360 * go-lang.c (go_language_data): Remove la_name and
2361 la_natural_name initializers.
2362 (go_language::name): New member function.
2363 (go_language::natural_name): New member function.
2364 * language.c (show_language_command): Update call to
2365 language_defn::name.
2366 (set_language_command): Likewise.
2367 (language_enum): Likewise.
2368 (language_str): Likewise.
2369 (add_set_language_command): Likewise, use
2370 language_defn::natural_name in the doc string.
2371 (unknown_language_data): Remove la_name and
2372 la_natural_name initializers.
2373 (unknown_language::name): New member function.
2374 (unknown_language::natural_name): New member function.
2375 (auto_language_data): Remove la_name and
2376 la_natural_name initializers.
2377 (auto_language::name): New member function.
2378 (auto_language::natural_name): New member function.
2379 (language_lookup_primitive_type_as_symbol): Update call to
2380 language_defn::name.
2381 * language.h (language_data): Remove la_name and la_natural_name
2382 member variables.
2383 (language_defn::name): New member function.
2384 (language_defn::natural_name): New member function.
2385 * m2-lang.c (m2_language_data): Remove la_name and
2386 la_natural_name initializers.
2387 (m2_language::name): New member function.
2388 (m2_language::natural_name): New member function.
2389 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
2390 language_defn::natural_name.
2391 * objc-lang.c (objc_language_data): Remove la_name and
2392 la_natural_name initializers.
2393 (objc_language::name): New member function.
2394 (objc_language::natural_name): New member function.
2395 * opencl-lang.c (opencl_language_data): Remove la_name and
2396 la_natural_name initializers.
2397 (opencl_language::name): New member function.
2398 (opencl_language::natural_name): New member function.
2399 * p-lang.c (pascal_language_data): Remove la_name and
2400 la_natural_name initializers.
2401 (pascal_language::name): New member function.
2402 (pascal_language::natural_name): New member function.
2403 * rust-lang.c (rust_language_data): Remove la_name and
2404 la_natural_name initializers.
2405 (rust_language::name): New member function.
2406 (rust_language::natural_name): New member function.
2407 * symtab.c (lookup_language_this): Update call to
2408 language_defn::name.
2409
2410 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * ada-lang.c (ada_language_data): Remove la_name_of_this
2413 initializer.
2414 * ax-gdb.c (gen_expr): Update call to name_of_this.
2415 * c-exp.y (classify_name): Likewise.
2416 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
2417 (cplus_language_data): Likewise.
2418 (cplus_language::name_of_this): New member function.
2419 (asm_language_data): Remove la_name_of_this initializer.
2420 (minimal_language_data): Likewise.
2421 * d-lang.c (d_language_data): Likewise.
2422 (d_language::name_of_this): New member function.
2423 * expprint.c (print_subexp_standard): Update call to name_of_this.
2424 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
2425 * go-lang.c (go_language_data): Likewise.
2426 * language.c (unknown_language_data): Likewise.
2427 (unknown_language::name_of_this): New member function.
2428 (auto_language_data): Remove la_name_of_this initializer.
2429 (auto_language::name_of_this): New member function.
2430 * language.h (language_data): Delete la_name_of_this member
2431 variable.
2432 (language_defn::name_of_this): New member function.
2433 * m2-lang.c (m2_language_data): Remove la_name_of_this
2434 initializer.
2435 * objc-lang.c (objc_language_data): Likewise.
2436 (objc_language::name_of_this): New member function.
2437 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
2438 initializer.
2439 * p-lang.c (pascal_language_data): Likewise.
2440 (pascal_language::name_of_this): New member function.
2441 * rust-lang.c (rust_language_data): Remove la_name_of_this
2442 initializer.
2443 * symtab.c (lookup_language_this): Update call to name_of_this.
2444 (lookup_symbol_aux): Likewise.
2445 * valops.c (value_of_this): Likewise.
2446
2447 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
2448
2449 * ada-lang.c (ada_language_data): Remove
2450 la_struct_too_deep_ellipsis initializer.
2451 (ada_language::struct_too_deep_ellipsis): New member function.
2452 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
2453 initializer.
2454 (cplus_language_data): Likewise.
2455 (asm_language_data): Likewise.
2456 (minimal_language_data): Likewise.
2457 * cp-valprint.c (cp_print_value): Update call to
2458 struct_too_deep_ellipsis.
2459 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
2460 initializer.
2461 * f-lang.c (f_language_data): Likewise.
2462 (f_language::struct_too_deep_ellipsis): New member function.
2463 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
2464 initializer.
2465 * language.c (unknown_language_data): Likewise.
2466 (auto_language_data): Likewise.
2467 * language.h (language_data): Delete la_struct_too_deep_ellipsis
2468 member variable.
2469 (language_defn::struct_too_deep_ellipsis): New member function.
2470 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
2471 initializer.Q
2472 * objc-lang.c (objc_language_data): Likewise.
2473 * opencl-lang.c (opencl_language_data): Likewise.
2474 * p-lang.c (pascal_language_data): Likewise.
2475 * rust-lang.c (rust_language_data): Likewise.
2476 * valprint.c (val_print_check_max_depth): Update call to
2477 struct_too_deep_ellipsis.
2478
2479 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
2480
2481 * MAINTAINERS (Write After Approval): Add myself.
2482
2483 2020-09-15 Tom Tromey <tom@tromey.com>
2484
2485 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
2486 Remove.
2487
2488 2020-09-15 Tom Tromey <tom@tromey.com>
2489
2490 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
2491 and TYPE_CODE_METHODPTR cases.
2492 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
2493 (c_value_print_inner): Update.
2494 * valprint.c (generic_value_print_memberptr): New function, from
2495 c_value_print_memberptr.
2496 (generic_value_print): Use it. Call cplus_print_method_ptr.
2497
2498 2020-09-15 Tom Tromey <tromey@adacore.com>
2499
2500 * python/python-internal.h (PyInt_FromLong): Remove define.
2501 * python/py-value.c (convert_value_from_python): Use
2502 gdb_py_object_from_longest.
2503 * python/py-type.c (typy_get_code): Use
2504 gdb_py_object_from_longest.
2505 * python/py-symtab.c (salpy_get_line): Use
2506 gdb_py_object_from_longest.
2507 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
2508 gdb_py_object_from_longest.
2509 * python/py-record.c (recpy_gap_reason_code): Use
2510 gdb_py_object_from_longest.
2511 * python/py-record-btrace.c (recpy_bt_insn_size)
2512 (recpy_bt_func_level, btpy_list_count): Use
2513 gdb_py_object_from_longest.
2514 * python/py-infthread.c (gdbpy_create_ptid_object): Use
2515 gdb_py_object_from_longest. Fix error handling.
2516 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
2517 gdb_py_object_from_longest.
2518 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
2519 gdb_py_object_from_longest.
2520 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
2521 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
2522 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
2523
2524 2020-09-15 Tom Tromey <tromey@adacore.com>
2525
2526 * python/python.c (gdbpy_parameter_value): Use
2527 gdb_py_object_from_ulongest.
2528
2529 2020-09-15 Tom Tromey <tromey@adacore.com>
2530
2531 * python/py-infevents.c (create_register_changed_event_object):
2532 Use gdb_py_object_from_longest.
2533 * python/py-exitedevent.c (create_exited_event_object): Use
2534 gdb_py_object_from_longest.
2535
2536 2020-09-15 Tom Tromey <tromey@adacore.com>
2537
2538 * python/python.c (gdbpy_parameter_value): Use
2539 gdb_py_object_from_longest.
2540 * python/py-type.c (convert_field, typy_range): Use
2541 gdb_py_object_from_longest.
2542 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
2543 gdb_py_object_from_longest.
2544 * python/py-lazy-string.c (stpy_get_length): Use
2545 gdb_py_object_from_longest.
2546 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
2547 gdb_py_object_from_longest.
2548 * python/py-infevents.c (create_memory_changed_event_object): Use
2549 gdb_py_object_from_longest.
2550 * python/py-inferior.c (infpy_get_num): Use
2551 gdb_py_object_from_longest.
2552 (infpy_get_pid): Likewise.
2553
2554 2020-09-15 Tom Tromey <tromey@adacore.com>
2555
2556 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
2557 defines.
2558 * python/py-value.c (valpy_long): Use
2559 gdb_py_object_from_ulongest.
2560 * python/py-symtab.c (salpy_get_pc): Use
2561 gdb_py_object_from_ulongest.
2562 (salpy_get_last): Likewise.
2563 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
2564 gdb_py_object_from_ulongest.
2565 * python/py-lazy-string.c (stpy_get_address): Use
2566 gdb_py_object_from_ulongest.
2567 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
2568 * python/py-arch.c (archpy_disassemble): Use
2569 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
2570 error handling.
2571
2572 2020-09-15 Tom Tromey <tromey@adacore.com>
2573
2574 * python/python-internal.h (gdb_py_long_from_longest): Remove
2575 defines.
2576 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
2577 * python/py-type.c (convert_field, typy_get_sizeof): Use
2578 gdb_py_object_from_longest.
2579 * python/py-record-btrace.c (btpy_list_index): Use
2580 gdb_py_object_from_longest.
2581
2582 2020-09-15 Tom Tromey <tromey@adacore.com>
2583
2584 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
2585 * python/py-record.c (recpy_element_number): Use
2586 gdb_py_object_from_longest.
2587 (recpy_gap_number): Likewise.
2588
2589 2020-09-15 Tom Tromey <tromey@adacore.com>
2590
2591 * top.c (ui::ui): Update.
2592 (highest_ui_num): Remove.
2593 * top.h (struct ui) <num>: Remove.
2594
2595 2020-09-15 Tom Tromey <tromey@adacore.com>
2596
2597 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
2598 * ui-style.c (ansi_regex_text): Now array.
2599 * rust-exp.y (number_regex_text): Now array.
2600 * linespec.c (linespec_quote_characters): Now array.
2601 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
2602 Now arrays.
2603
2604 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2605
2606 * debuginfod-support.c (debuginfod_client_deleter): New.
2607 (debuginfod_client_up): New.
2608 (debuginfod_init): Return debuginfod_client_up.
2609 (debuginfod_source_query): Adjust.
2610 (debuginfod_debuginfo_query): Adjust.
2611
2612 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2613
2614 * debuginfod-support.c (debuginfod_source_query): Use
2615 make_unique_xstrdup.
2616
2617 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
2620 with `type::instance_flags`.
2621
2622 2020-09-14 Michael Mullin <masmullin@gmail.com>
2623
2624 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
2625 Remove baton parameter.
2626
2627 2020-09-14 Pedro Alves <pedro@palves.net>
2628
2629 * Makefile.in (SELFTESTS_SRCS): Add
2630 unittests/enum-flags-selftests.c.
2631 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
2632 btrace_function_flags instead of enum btrace_function_flag.
2633 * compile/compile-c-types.c (convert_qualified): Use
2634 enum_flags::raw.
2635 * compile/compile-cplus-symbols.c (convert_one_symbol)
2636 (convert_symbol_bmsym):
2637 * compile/compile-cplus-types.c (compile_cplus_convert_method)
2638 (compile_cplus_convert_struct_or_union_methods)
2639 (compile_cplus_instance::convert_qualified_base):
2640 * go-exp.y (parse_string_or_char): Add cast to int.
2641 * unittests/enum-flags-selftests.c: New file.
2642 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
2643 type to btrace_thread_flags from btrace_thread_flag.
2644 (record_btrace_cancel_resume, record_btrace_step_thread): Change
2645 local's type to btrace_thread_flags from btrace_thread_flag. Add
2646 cast in DEBUG call.
2647
2648 2020-09-14 Pedro Alves <pedro@palves.net>
2649
2650 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
2651 * gdbtypes.c (address_space_name_to_int): Rename to ...
2652 (address_space_name_to_type_instance_flags): ... this.
2653 (address_space_int_to_name): Rename to ...
2654 (address_space_type_instance_flags_to_name): ... this.
2655 * gdbtypes.h (address_space_name_to_int): Rename to ...
2656 (address_space_name_to_type_instance_flags): ... this.
2657 (address_space_int_to_name): Rename to ...
2658 (address_space_type_instance_flags_to_name): ... this.
2659 * type-stack.c (type_stack::insert): Adjust to rename.
2660 * type-stack.h (type_stack::insert): Likewise.
2661
2662 2020-09-14 Pedro Alves <pedro@palves.net>
2663 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * avr-tdep.c (avr_address_class_type_flags): Return
2666 type_instance_flags.
2667 (avr_address_class_type_flags_to_name): Take a
2668 type_instance_flags.
2669 (avr_address_class_name_to_type_flags): Return bool and take a
2670 type_instance_flags.
2671 * d-lang.c (build_d_types): Use type::set_instance_flags.
2672 * ft32-tdep.c (ft32_address_class_type_flags): Return
2673 type_instance_flags.
2674 (ft32_address_class_type_flags_to_name): Take a
2675 type_instance_flags.
2676 (ft32_address_class_name_to_type_flags): Return bool and take a
2677 type_instance_flags.
2678 (ft32_gdbarch_init): Use type::set_instance_flags.
2679 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
2680 * gdbarch.h, gdbarch.c: Regenerate.
2681 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
2682 (address_class_name_to_type_flags): Use type_instance_flags and
2683 bool.
2684 * gdbtypes.c (address_space_name_to_int)
2685 (address_space_int_to_name, make_qualified_type): Use
2686 type_instance_flags.
2687 (make_qualified_type): Use type_instance_flags and
2688 type::set_instance_flags.
2689 (make_type_with_address_space, make_cv_type, make_vector_type)
2690 (check_typedef): Use type_instance_flags.
2691 (recursive_dump_type): Cast type_instance_flags to unsigned for
2692 printing.
2693 (copy_type_recursive): Use type::set_instance_flags.
2694 (gdbtypes_post_init): Use type::set_instance_flags.
2695 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
2696 <m_instance_flags>: ... this.
2697 <instance_flags, set_instance_flags>: New methods.
2698 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
2699 (SET_TYPE_INSTANCE_FLAGS): New.
2700 (address_space_name_to_int, address_space_int_to_name)
2701 (make_type_with_address_space): Pass flags using
2702 type_instance_flags instead of int.
2703 * stabsread.c (cleanup_undefined_types_noname): Use
2704 type::set_instance_flags.
2705 * s390-tdep.c (s390_address_class_type_flags): Return
2706 type_instance_flags.
2707 (s390_address_class_type_flags_to_name): Take a
2708 type_instance_flags.
2709 (s390_address_class_name_to_type_flags): Return bool and take a
2710 type_instance_flags.
2711 * type-stack.c (type_stack::follow_types): Use
2712 type_instance_flags.
2713 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
2714
2715 2020-09-14 Tom Tromey <tromey@adacore.com>
2716
2717 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
2718 * x86-tdep.c (x86_is_thunk_register_name)
2719 (x86_in_indirect_branch_thunk): Update.
2720 * sparc64-tdep.c (sparc64_fpu_register_names)
2721 (sparc64_cp0_register_names, sparc64_register_names)
2722 (sparc64_pseudo_register_names): Now const.
2723 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
2724 cp0_registers_num>: Now const.
2725 * sparc-tdep.c (sparc_core_register_names)
2726 (sparc32_fpu_register_names, sparc32_cp0_register_names)
2727 (sparc32_pseudo_register_names): Now const.
2728 (validate_tdesc_registers): Update.
2729 * rust-lang.c (rust_extensions): Now const.
2730 * p-lang.c (p_extensions): Now const.
2731 * objc-lang.c (objc_extensions): Now const.
2732 * nto-tdep.c (nto_thread_state_str): Now const.
2733 * moxie-tdep.c (moxie_register_names): Now const.
2734 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
2735 Now const.
2736 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
2737 (mips_linux_reg_names): Now const.
2738 (mips_gdbarch_init): Update.
2739 * microblaze-tdep.c (microblaze_register_names): Now const.
2740 * m68k-tdep.c (m68k_register_names): Now const.
2741 * m32r-tdep.c (m32r_register_names): Now const.
2742 * ia64-tdep.c (ia64_register_names): Now const.
2743 * i386-tdep.h (struct gdbarch_tdep) <register_names,
2744 ymmh_register_names, ymm16h_regnum, mpx_register_names,
2745 k_register_names, zmmh_register_names, xmm_avx512_register_names,
2746 ymm_avx512_register_names, pkeys_register_names>: Now const.
2747 * i386-tdep.c (i386_register_names, i386_zmm_names)
2748 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
2749 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
2750 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
2751 * f-lang.c (f_extensions): Now const.
2752 * d-lang.c (d_extensions): Now const.
2753 * csky-tdep.c (csky_register_names): Now const.
2754 * charset.c (default_charset_names, charset_enum): Now const.
2755 (_initialize_charset): Update.
2756 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
2757 const.
2758 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
2759 (bsd_uthread_solib_loaded): Update.
2760 (bsd_uthread_state): Now const.
2761 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
2762 (amd64_ymm_avx512_names, amd64_ymmh_names)
2763 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
2764 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
2765 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
2766 (amd64_dword_names): Now const.
2767 * agent.c (can_use_agent_enum): Now const.
2768 * ada-tasks.c (task_states, long_task_states): Now const.
2769 * ada-lang.c (known_runtime_file_name_patterns)
2770 (known_auxiliary_function_name_patterns, attribute_names)
2771 (standard_exc, ada_extensions): Now const.
2772
2773 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * bcache.h (struct bcache) <bcache>: Remove constructor.
2776 <m_hash_function, m_compare_function>: Remove.
2777 <~bcache>: Make virtual.
2778 <compare>: Remove static method, introduce virtual method.
2779 <default_hash>: Remove.
2780 <hash>: New virtual method.
2781 * bcache.c (bcache::expand_hash_table): Update.
2782 (bcache::insert): Update.
2783 (bcache::hash): New.
2784 (bcache::compare): Update comment and parameter names.
2785 * gdbtypes.c (types_deeply_equal): Update.
2786 * psymtab.h (struct psymbol_bcache): New struct.
2787 (class psymtab_storage) <psymtab_storage>: Make default.
2788 <psymbol_cache>: Change type to psymbol_bcache.
2789 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
2790 (psymbol_hash): Change to...
2791 (psymbol_bcache::hash): ... this.
2792 (psymbol_compare): Change to...
2793 (psymbol_bcache::compare): ... this.
2794
2795 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
2798 checking for initial lwp.
2799
2800 2020-09-14 Tom Tromey <tromey@adacore.com>
2801
2802 * m68k-tdep.c (m68k_extract_return_value): Use
2803 pointer_result_regnum.
2804 (m68k_store_return_value): Likewise.
2805 (m68k_reg_struct_return_p): Handle vectors and arrays.
2806 (m68k_return_value): Handle arrays.
2807 (m68k_svr4_return_value): Fix single-element aggregate handling.
2808 Handle long double. Adjust for embedded ABI.
2809 (m68k_svr4_init_abi): Set pointer_result_regnum.
2810 (m68k_embedded_init_abi): New function.
2811 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
2812 (m68k_osabi_sniffer): New function.
2813 (_initialize_m68k_tdep): Register osabi sniffer.
2814 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
2815 member.
2816
2817 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2818
2819 * xml-support.c (xml_fetch_content_from_file): Replace xfree
2820 with gdb::unique_xmalloc_ptr<char>.
2821
2822 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2823
2824 * xml-support.h (xml_fetch_another): Change type to be a
2825 function_view.
2826 (xml_process_xincludes): Remove baton parameter.
2827 (xml_fetch_content_from_file): Change baton parameter to
2828 dirname.
2829 * xml-support.c (struct xinclude_parsing_data)
2830 <xinclude_parsing_data>: Remove baton parameter.
2831 <fetcher_baton>: Remove.
2832 (xinclude_start_include): Adjust.
2833 (xml_process_xincludes): Adjust.
2834 (xml_fetch_content_from_file): Replace baton parameter with
2835 dirname.
2836 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
2837 (xml_init_syscalls_info): Use a lambda.
2838 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
2839 (file_read_description_xml): Use a lambda.
2840 (fetch_available_features_from_target): Change baton parameter
2841 to target_ops.
2842 (target_read_description_xml): Use a lambda.
2843 (target_fetch_description_xml): Use a lambda.
2844 (string_read_description_xml): Update.
2845
2846 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
2847
2848 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
2849 uses with type::endianity_is_not_default.
2850
2851 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2852
2853 * gdbtypes.h (struct type) <endianity_is_not_default,
2854 set_endianity_is_not_default>: New methods.
2855 (TYPE_ENDIANITY_NOT_DEFAULT): Use
2856 type::endianity_is_not_default, change all write call sites to
2857 use type::set_endianity_is_not_default.
2858
2859 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2860
2861 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
2862 uses with type::is_fixed_instance.
2863
2864 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * gdbtypes.h (struct type) <is_fixed_instance,
2867 set_is_fixed_instance>: New methods.
2868 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
2869 write call sites to use type::set_is_fixed_instance.
2870
2871 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2872
2873 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
2874 uses with type::is_gnu_ifunc.
2875
2876 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2877
2878 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
2879 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
2880 use type::set_is_gnu_ifunc.
2881
2882 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2883
2884 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
2885 uses with type::stub_is_supported.
2886
2887 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2888
2889 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
2890 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
2891 use type::set_stub_is_supported.
2892
2893 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2894
2895 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
2896 uses with type::is_vector.
2897
2898 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2899
2900 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
2901 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
2902 use type::set_is_vector.
2903
2904 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2905
2906 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
2907 uses with type::has_varargs.
2908
2909 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2910
2911 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
2912 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
2913 use type::set_has_varargs.
2914
2915 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2916
2917 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
2918 uses with type::is_prototyped.
2919
2920 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2921
2922 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
2923 New methods.
2924 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
2925 call sites to use type::set_is_prototyped.
2926
2927 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2928
2929 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
2930 uses with type::target_is_stub.
2931
2932 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2933
2934 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
2935 New methods.
2936 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
2937 sites to use type::set_target_is_stub.
2938
2939 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2940
2941 * gdbtypes.h (TYPE_STUB): Remove, replace all
2942 uses with type::is_stub.
2943
2944 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2945
2946 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
2947 (TYPE_STUB): Use type::is_stub, change all write call sites to
2948 use type::set_is_stub.
2949
2950 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2951
2952 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
2953 type::has_no_signedness.
2954
2955 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2956
2957 * gdbtypes.h (struct type) <has_no_signedness,
2958 set_has_no_signedness>: New methods.
2959 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
2960 call sites to use type::set_has_no_signedness.
2961
2962 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2963
2964 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
2965 type::is_unsigned.
2966
2967 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
2968
2969 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
2970 methods.
2971 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
2972 sites to use type::set_is_unsigned.
2973
2974 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
2975 Adam Renquinha <arenquinha@cimeq.qc.ca>
2976
2977 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
2978 pointer and stack frame offset when unwinding.
2979
2980 2020-09-13 Pedro Alves <pedro@palves.net>
2981
2982 * NEWS: Document "-break-insert --qualified".
2983 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
2984
2985 2020-09-13 Pedro Alves <pedro@palves.net>
2986
2987 * linespec.c (classify_mtype, compare_msyms): Delete.
2988 (search_minsyms_for_name): Remove classification logic. Instead
2989 filter out trampoline symbols if we also found an external
2990 function of the same name.
2991
2992 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2993
2994 * NEWS: Create a new section for the next release branch.
2995 Rename the section of the current branch, now that it has
2996 been cut.
2997
2998 2020-09-13 Joel Brobecker <brobecker@adacore.com>
2999
3000 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
3001 * version.in: Bump version to 11.0.50.DATE-git.
3002
3003 2020-09-12 Joel Brobecker <brobecker@adacore.com>
3004
3005 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
3006
3007 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
3008 Felix Willgerodt <Felix.Willgerodt@intel.com>
3009
3010 * gdbarch.sh: Added bfloat16 type.
3011 * gdbarch.c: Regenerated.
3012 * gdbarch.h: Regenerated.
3013 * gdbtypes.c (floatformats_bfloat16): New struct.
3014 (gdbtypes_post_init): Add builtin_bfloat16.
3015 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
3016 (floatformats_bfloat16): New struct.
3017 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
3018 (i386_ymm_type): Add field "v16_bfloat16"
3019 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
3020 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
3021 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
3022 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
3023 * features/i386/64bit-avx512.xml: Add bfloat16 type.
3024 * features/i386/64bit-avx512.c: Regenerated.
3025 * features/i386/64bit-sse.xml: Add bfloat16 type.
3026 * features/i386/64bit-sse.c: Regenerated.
3027
3028 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
3029
3030 * i386-tdep.c (i386_zmm_type): Fix field names.
3031 (i386_ymm_type): Fix field names.
3032
3033 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3034
3035 * breakpoint.c: Fix typo in the help message of the
3036 "set breakpoint condition-evaluation" command.
3037
3038 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3039
3040 * nbsd-nat.c: Include "nat/netbsd-nat.h".
3041 * (nbsd_nat_target::pid_to_exec_file)
3042 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
3043 (nbsd_nat_target::post_startup_inferior)
3044 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
3045 (nbsd_add_threads): Switch local code to common gdb/nat functions.
3046 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
3047 * (nbsd_thread_lister): Remove.
3048
3049 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3050
3051 * fork-inferior.c (startup_inferior): Avoid double free.
3052
3053 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3054
3055 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
3056 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
3057
3058 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3059
3060 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
3061 * netbsd-nat.c: Include <sys/ptrace.h>.
3062 * (netbsd_nat::enable_proc_events): Add.
3063
3064 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3065
3066 * netbsd-nat.h: Include "gdbsupport/function-view.h".
3067 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3068 (netbsd_nat::for_each_thread): Add.
3069 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
3070 "gdbsupport/common-debug.h".
3071 * (netbsd_nat::netbsd_thread_lister)
3072 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
3073 (netbsd_nat::for_each_thread): Add.
3074
3075 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3076
3077 * netbsd-nat.h: Include <unistd.h>.
3078 * (netbsd_nat::pid_to_exec_file): Add.
3079 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
3080 * (netbsd_nat::pid_to_exec_file) Add.
3081
3082 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3083
3084 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
3085
3086 2020-09-10 Kamil Rytarowski <n54@gmx.com>
3087
3088 * netbsd-nat.h: New file.
3089 * netbsd-nat.c: Likewise.
3090
3091 2020-09-09 Tom Tromey <tromey@adacore.com>
3092
3093 * ada-lang.c (remove_extra_symbols): Do not increment when
3094 removing an element
3095
3096 2020-09-08 Tom Tromey <tromey@adacore.com>
3097
3098 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
3099
3100 2020-09-08 Tom Tromey <tromey@adacore.com>
3101
3102 PR win32/25302:
3103 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
3104 (gdb_bfd_init_data): New function.
3105 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
3106
3107 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3108
3109 * infrun.c (fetch_inferior_event): Use
3110 `switch_to_target_no_thread` to switch the target.
3111
3112 2020-09-06 Tom Tromey <tom@tromey.com>
3113
3114 * symfile.h (dwarf2_free_objfile): Don't declare.
3115
3116 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3117
3118 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
3119 to match 16 byte real/complex type generated by Flang compiler.
3120
3121 2020-09-03 Tom de Vries <tdevries@suse.de>
3122
3123 PR breakpoint/26546
3124 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
3125 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
3126
3127 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
3128
3129 * maint.c (index_digits): New function.
3130 (struct maint_print_section_data): Remove.
3131 (print_bfd_section_info): Remove print_data parameter, add arg
3132 and index_digits.
3133 (print_objfile_section_info): Likewise.
3134 (print_bfd_section_info_maybe_relocated): Likewise (plus
3135 objfile).
3136 (maintenance_info_sections): Adjust calls.
3137
3138 2020-09-02 Tom Tromey <tromey@adacore.com>
3139
3140 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
3141 for null pointers.
3142 (ada_varobj_adjust_for_child_access): Special-case null pointers.
3143
3144 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
3145
3146 * bcache.h (struct bcache) <insert>: Change type of `added` to
3147 pointer to bool.
3148 * bcache.c (bcache::insert): Likewise.
3149 * gdbtypes.c (check_types_worklist): Adjust.
3150 * psymtab.c (add_psymbol_to_bcache): Adjust.
3151
3152 2020-08-31 Kevin Buettner <kevinb@redhat.com>
3153
3154 * corelow.c (unordered_set): Include.
3155 (class core_target): Add field 'm_core_unavailable_mappings'.
3156 (core_target::build_file_mappings): Print only one warning
3157 per inaccessible file. Add unavailable/broken mappings
3158 to m_core_unavailable_mappings.
3159 (core_target::xfer_partial): Call...
3160 (core_target::xfer_memory_via_mappings): New method.
3161
3162 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3163
3164 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
3165 type to bool.
3166
3167 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
3168
3169 * dwarf2/read.c (struct field_info): Fix indentation.
3170
3171 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
3174 ordering in comment.
3175 * frame.c (frame_id_eq): Fix indentation.
3176
3177 2020-08-31 Scott Linder <scott@scottlinder.com>
3178 Simon Marchi <simon.marchi@efficios.com>
3179
3180 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
3181 inline frame ids in outer frame.
3182
3183 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3184
3185 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
3186 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
3187 (outer_frame_id): Use FID_STACK_OUTER instead of
3188 FID_STACK_INVALID.
3189 (frame_id_p): Don't check for outer_frame_id.
3190
3191 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3192
3193 * frame-unwind.c (frame_unwind_got_optimized): Don't set
3194 regnum/frame in value. Call allocate_value_lazy.
3195 * frame.c (frame_unwind_register_value): Use
3196 val_print_not_saved.
3197
3198 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
3199
3200 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
3201
3202 2020-08-29 Pedro Alves <pedro@palves.net>
3203
3204 * progspace.c (print_program_space): Use all_inferiors. Switch to
3205 the inferior before calling target_pid_to_str.
3206
3207 2020-08-28 Tom Tromey <tom@tromey.com>
3208
3209 * xcoffread.c (xcoff_end_psymtab): Update comment.
3210 * dbxread.c (dbx_end_psymtab): Update comment.
3211
3212 2020-08-28 Tom de Vries <tdevries@suse.de>
3213
3214 PR breakpoint/26544
3215 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
3216 event_location.
3217 (create_breakpoint): Same.
3218 (base_breakpoint_decode_location): Same.
3219 (bkpt_create_sals_from_location): Same.
3220 (bkpt_decode_location): Same.
3221 (bkpt_probe_create_sals_from_location): Same.
3222 (bkpt_probe_decode_location): Same.
3223 (tracepoint_create_sals_from_location): Same.
3224 (tracepoint_decode_location): Same.
3225 (tracepoint_probe_decode_location): Same.
3226 (strace_marker_create_sals_from_location): Same.
3227 (strace_marker_decode_location): Same.
3228 (create_sals_from_location_default): Same.
3229 (decode_location_default): Same.
3230 * breakpoint.h (struct breakpoint_ops): Same.
3231 (create_breakpoint): Same.
3232 * linespec.h (decode_line_full): Same.
3233 * linespec.c (decode_line_full): Same. Throw error if
3234 result.size () == 0.
3235
3236 2020-08-27 Pedro Alves <pedro@palves.net>
3237
3238 PR gdb/26524
3239 * breakpoint.c (until_break_fsm) <location_breakpoint,
3240 caller_breakpoint>: Delete fields.
3241 <breakpoints>: New field.
3242 <until_break_fsm>: Adjust to save a breakpoint vector instead of
3243 two individual breakpoints.
3244 (until_break_fsm::should_stop): Loop over breakpoints in the
3245 breakpoint vector.
3246 (until_break_fsm::clean_up): Adjust to clear the breakpoints
3247 vector.
3248 (until_break_command): Handle location expanding into multiple
3249 sals.
3250
3251 2020-08-27 Pedro Alves <pedro@palves.net>
3252
3253 PR gdb/26523
3254 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
3255 bp_until breakpoints user-specified locations. Update intro
3256 comment.
3257
3258 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
3261 gdb_bfd_sections): New.
3262 * maint.c (print_bfd_section_info): Change param type to
3263 maint_print_section_data.
3264 (print_objfile_section_info): Likewise.
3265 (print_bfd_section_info_maybe_relocated): Likewise.
3266 (maintenance_info_sections): Use gdb_bfd_sections.
3267
3268 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3269
3270 * MAINTAINERS: Add ARC target and maintainer.
3271
3272 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
3273
3274 * configure.tgt: ARC support for GNU/Linux.
3275 * Makefile.in (ALL_TARGET_OBJS): Likewise.
3276 * arc-linux-tdep.c: New file.
3277 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
3278 * arc-tdep.c (arc_write_pc): Use it.
3279
3280 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3281
3282 * arc-tdep.c (arc_check_for_hardware_loop): New.
3283 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
3284
3285 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3286
3287 * arc-tdep.h: Include "gdbarch.h".
3288
3289 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
3290
3291 * arch/arc.h
3292 (arc_gdbarch_features): New class to stir the selection of target XML.
3293 (arc_create_target_description): Use FEATURES to choose XML target.
3294 (arc_lookup_target_description): Use arc_create_target_description
3295 to create _new_ target descriptions or return the already created
3296 ones if the FEATURES is the same.
3297 * arch/arc.c: Implementation of prototypes described above.
3298 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
3299 (arc_gdbarch_features_init): Initialize the FEATURES struct.
3300 * arc-tdep.c (*_feature_name): Make feature names consistent.
3301 (arc_register_feature): A new struct to hold information about
3302 registers of a particular target/feature.
3303 (arc_check_tdesc_feature): Check if XML provides registers in
3304 compliance with ARC_REGISTER_FEATURE structs.
3305 (arc_update_acc_reg_names): Add aliases for r58 and r59.
3306 (determine_*_reg_feature_set): Which feature name to look for.
3307 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
3308 (mach_type_to_arc_isa): Convert from a set of binutils machine types
3309 to expected ISA enums to be used in arc_gdbarch_features structs.
3310 * features/Makefile (FEATURE_XMLFILES): Add new files.
3311 * gdb/features/arc/v1-aux.c: New file.
3312 * gdb/features/arc/v1-aux.xml: Likewise.
3313 * gdb/features/arc/v1-core.c: Likewise.
3314 * gdb/features/arc/v1-core.xml: Likewise.
3315 * gdb/features/arc/v2-aux.c: Likewise.
3316 * gdb/features/arc/v2-aux.xml: Likewise.
3317 * gdb/features/arc/v2-core.c: Likewise.
3318 * gdb/features/arc/v2-core.xml: Likewise.
3319 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
3320
3321 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
3322 Andrew Burgess <andrew.burgess@embecosm.com>
3323
3324 PR m2/26372
3325 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3326 an assert. Remove single element array indexing pattern as the
3327 MULTI_SUBSCRIPT support will handle this case too.
3328
3329 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
3330
3331 * value.h (valprint_check_validity): Move declaration from
3332 here...
3333 * valprint.h (valprint_check_validity): ... to here.
3334
3335 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3336
3337 * debug.h: New file.
3338 * debug.c (debug_prefixed_vprintf): New function.
3339 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
3340 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
3341
3342 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
3343
3344 * infrun.h (infrun_debug_printf_1): New function declaration.
3345 (infrun_debug_printf): New macro.
3346 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
3347 throughout.
3348 (infrun_debug_printf): New function.
3349 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
3350 (handle_jit_event): Likewise.
3351
3352 2020-08-21 Mark Wielaard <mark@klomp.org>
3353
3354 * ada-lex.l: Extend register warnings diagnostics comment for g++.
3355
3356 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
3357
3358 * frame.c (enum class frame_id_status): New.
3359 (struct frame_info) <this_id::p>: Change type to frame_id_status.
3360 (fprintf_frame): Update.
3361 (compute_frame_id): Set frame id status to "computing" on entry.
3362 Set it back to "not_computed" on failure and to "computed" on
3363 success.
3364 (get_frame_id): Assert the frame id is not being computed.
3365 (create_sentinel_frame): Use frame_id_status::COMPUTED.
3366 (create_new_frame): Likewise.
3367 (frame_cleanup_after_sniffer): Update assert.
3368
3369 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * regcache.c (pid_ptid_regcache_map): New type.
3372 (target_ptid_regcache_map): Remove.
3373 (target_pid_ptid_regcache_map): New type.
3374 (regcaches): Change type to target_pid_ptid_regcache_map.
3375 (get_thread_arch_aspace_regcache): Update.
3376 (regcache_thread_ptid_changed): Update, handle pid-like ptid
3377 case.
3378 (regcaches_size): Update.
3379 (regcache_count): Update.
3380 (registers_changed_ptid_target_pid_test): New.
3381 (_initialize_regcache): Register new test.
3382
3383 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3384
3385 * regcache.c (regcache_count): New.
3386 (struct regcache_test_data): New.
3387 (regcache_test_data_up): New.
3388 (populate_regcaches_for_test): New.
3389 (regcaches_test): Remove.
3390 (get_thread_arch_aspace_regcache_test): New.
3391 (registers_changed_ptid_all_test): New.
3392 (registers_changed_ptid_target_test): New.
3393 (registers_changed_ptid_target_ptid_test): New.
3394 (regcache_thread_ptid_changed): Remove regcache_count lambda.
3395 (_initialize_regcache): Register new tests.
3396
3397 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3398
3399 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
3400 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
3401 gdbarch and aspace parameter. Use current inferior's aspace.
3402 Validate regcache's arch value.
3403 (regcaches_test): Update.
3404
3405 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
3406
3407 * regcache.c (regcaches_test): Call registers_changed.
3408
3409 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3410
3411 * infrun.c (process_event_stop_test): Fix typo "breapoint".
3412
3413 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3414
3415 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
3416 to find the end of prologue for flang compiled binaries.
3417 * arm-tdep.c (arm_skip_prologue): Likewise.
3418 * i386-tdep.c (i386_skip_prologue): Likewise.
3419 * producer.c (producer_is_llvm): New function.
3420 (producer_parsing_tests): Added new tests for clang/flang.
3421 * producer.h (producer_is_llvm): New declaration.
3422
3423 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
3424
3425 * linux-nat.c (linux_nat_debug_printf): New function.
3426 (linux_nat_debug_printf_1): New macro. Use throughout the file.
3427
3428 2020-08-18 Aaron Merey <amerey@redhat.com>
3429
3430 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
3431 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
3432 (CLIBS): Add DEBUGINFOD_LIBS.
3433
3434 2020-08-17 Sergei Trofimovich <siarheit@google.com>
3435
3436 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
3437 'gdbarch_num_regs'.
3438
3439 2020-08-17 Tom Tromey <tromey@adacore.com>
3440
3441 * ada-varobj.c (ada_varobj_decode_var): Handle case where
3442 ada_get_decoded_value returns NULL.
3443
3444 2020-08-17 Tom Tromey <tromey@adacore.com>
3445
3446 * python/py-inferior.c (infpy_search_memory): Use
3447 gdb_py_object_from_ulongest.
3448 * python/py-infevents.c (create_inferior_call_event_object)
3449 (create_memory_changed_event_object): Use
3450 gdb_py_object_from_ulongest.
3451 * python/py-linetable.c (ltpy_entry_get_pc): Use
3452 gdb_py_object_from_ulongest.
3453
3454 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3455
3456 * loc.c (class symbol_needs_eval_context): Fix indentation.
3457
3458 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
3459
3460 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
3461 bool.
3462
3463 2020-08-17 Tom de Vries <tdevries@suse.de>
3464
3465 PR gdb/26393
3466 * gdbtypes.c (dump_dynamic_prop): New function.
3467 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
3468
3469 2020-08-15 Tom de Vries <tdevries@suse.de>
3470
3471 PR backtrace/26390
3472 * stack.c (print_frame_args): Temporarily set the selected
3473 frame to FRAME while printing the frame's arguments.
3474
3475 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3476
3477 PR breakpoints/26385
3478 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
3479 Always clear watchpoint with PTRACE_SET_DEBUGREG.
3480
3481 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3482
3483 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
3484 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
3485 and >= to check return value instead of == -1 and != -1.
3486
3487 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
3488
3489 * utils.h (class gdb_argv) <as_array_view>: New method.
3490 * utils.c (gdb_argv_as_array_view_test): New.
3491 (_initialize_utils): Register selftest.
3492 * maint.c (maintenance_selftest): Use the new method.
3493
3494 2020-08-13 Kamil Rytarowski <n54@gmx.com>
3495
3496 * target.h (supports_dumpcore, dumpcore): New
3497 function declarations.
3498 * target.c (supports_dumpcore, dumpcore): New
3499 functions.
3500 * target-delegates.c: Rebuild.
3501 * gcore.c (gcore_command): Use target_supports_dumpcore ()
3502 and target_dumpcore ().
3503
3504 2020-08-13 Aaron Merey <amerey@redhat.com>
3505
3506 * debuginfod-support.c: Replace global variables with user_data.
3507
3508 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
3509
3510 * maint.c (maintenance_selftest): Split args and pass array_view
3511 to run_tests.
3512
3513 2020-08-12 Luis Machado <luis.machado@linaro.org>
3514
3515 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
3516 type's length.
3517 Use %s and pulongest to print the length.
3518
3519 2020-08-12 Pedro Alves <palves@redhat.com>
3520
3521 * NEWS: Move "Multi-target debugging support" item to the
3522 "Changes since GDB 9" section.
3523
3524 2020-08-12 Pedro Alves <palves@redhat.com>
3525
3526 PR gdb/26336
3527 * progspace.c (program_space::remove_objfile): Invalidate the
3528 frame cache.
3529
3530 2020-08-11 Tom de Vries <tdevries@suse.de>
3531
3532 * MAINTAINERS: Mark ms1 as deleted.
3533
3534 2020-08-10 Luis Machado <luis.machado@linaro.org>
3535
3536 PR gdb/26310
3537
3538 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
3539 act accordingly.
3540 (aarch64_analyze_prologue_test): Add more unit tests to exercise
3541 movz/str/stur/stp skipping behavior.
3542
3543 2020-08-10 Luis Machado <luis.machado@linaro.org>
3544
3545 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
3546 struct user_sve_header instead of struct sve_context.
3547
3548 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
3549
3550 * read.h (dwarf2_fetch_die_loc_sect_off,
3551 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
3552 `void *` parameter with function_view.
3553 * read.c (dwarf2_fetch_die_loc_sect_off,
3554 dwarf2_fetch_die_loc_cu_off): Likewise.
3555 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
3556 (per_cu_dwarf_call): Adjust.
3557 (get_frame_address_in_block_wrapper): Remove.
3558 (indirect_synthetic_pointer): Adjust.
3559 (get_ax_pc): Remove.
3560 (dwarf2_compile_expr_to_ax): Adjust.
3561
3562 2020-08-08 Tom de Vries <tdevries@suse.de>
3563
3564 PR build/26344
3565 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
3566 constructor.
3567 * regcache.c (get_thread_arch_aspace_regcache): Same.
3568
3569 2020-08-07 Tom Tromey <tromey@adacore.com>
3570
3571 * ravenscar-thread.c
3572 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
3573 New method.
3574 (ravenscar_thread_target::wait): Check
3575 runtime_initialized.
3576 (ravenscar_thread_target::prepare_to_store)
3577 (ravenscar_thread_target::stopped_by_sw_breakpoint)
3578 (ravenscar_thread_target::stopped_by_hw_breakpoint)
3579 (ravenscar_thread_target::stopped_by_watchpoint)
3580 (ravenscar_thread_target::stopped_data_address)
3581 (ravenscar_thread_target::core_of_thread): Use
3582 scoped_restore_current_thread and
3583 set_base_thread_from_ravenscar_task.
3584
3585 2020-08-07 Tom Tromey <tromey@adacore.com>
3586
3587 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
3588
3589 2020-08-07 Tom Tromey <tromey@adacore.com>
3590
3591 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
3592 update_inferior_ptid before update_thread_list.
3593 (temporarily_change_regcache_ptid): New class.
3594 (ravenscar_thread_target::fetch_registers)
3595 (ravenscar_thread_target::store_registers)
3596 (ravenscar_thread_target::prepare_to_store): Use base thread when
3597 forwarding operation.
3598
3599 2020-08-07 Tom Tromey <tromey@adacore.com>
3600
3601 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
3602 "is_pid" case.
3603
3604 2020-08-07 Tom Tromey <tromey@adacore.com>
3605
3606 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
3607 New methods.
3608 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
3609 first.
3610 (ravenscar_thread_target::add_thread): Rename from
3611 ravenscar_add_thread.
3612 (ravenscar_thread_target::update_thread_list): Use a lambda.
3613 (ravenscar_thread_target::xfer_partial): New method.
3614
3615 2020-08-07 Tom Tromey <tromey@adacore.com>
3616
3617 * ada-lang.h (ada_task_list_iterator_ftype): Now a
3618 gdb::function_view.
3619 (iterate_over_live_ada_tasks): Change type of argument.
3620 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
3621 of argument.
3622
3623 2020-08-07 Tom Tromey <tromey@adacore.com>
3624
3625 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
3626 Remove.
3627 (ravenscar_thread_target::extra_thread_info): Remove.
3628 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
3629 defer to target beneath for non-Ravenscar threads.
3630
3631 2020-08-07 Tom Tromey <tromey@adacore.com>
3632
3633 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
3634 get_base_thread_from_ravenscar_task>: Now methods.
3635 <m_cpu_map>: New member.
3636 (ravenscar_thread_target::get_thread_base_cpu): Rename from
3637 ravenscar_get_thread_base_cpu. Check m_cpu_map.
3638 (ravenscar_thread_target::task_is_currently_active): Update.
3639 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
3640 Now a method.
3641 (ravenscar_thread_target::add_active_thread): Put initial thread
3642 into the m_cpu_map.
3643
3644 2020-08-07 Tom Tromey <tromey@adacore.com>
3645
3646 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
3647 event_ptid.
3648
3649 2020-08-07 Tom Tromey <tromey@adacore.com>
3650
3651 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
3652 runtime_initialized.
3653
3654 2020-08-07 Tom Tromey <tromey@adacore.com>
3655
3656 * ravenscar-thread.c (ravenscar_thread_target): Don't call
3657 add_active_thread.
3658 (ravenscar_thread_target::add_active_thread): Now public.
3659 (ravenscar_inferior_created): Call add_active_thread after pushing
3660 the target.
3661
3662 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
3663
3664 * regcache.c (ptid_regcache_map): New type.
3665 (target_ptid_regcache_map): New type.
3666 (regcaches): Change type to target_ptid_regcache_map.
3667 (get_thread_arch_aspace_regcache): Update to regcaches' new
3668 type.
3669 (regcache_thread_ptid_changed): Likewise.
3670 (registers_changed_ptid): Likewise.
3671 (regcaches_size): Likewise.
3672 (regcaches_test): Update.
3673 (regcache_thread_ptid_changed): Update.
3674 * regcache.h (regcache_up): New type.
3675 * gdbsupport/ptid.h (hash_ptid): New struct.
3676
3677 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
3678
3679 * observable.h (thread_ptid_changed): Add parameter
3680 `process_stratum_target *`.
3681 * infrun.c (infrun_thread_ptid_changed): Add parameter
3682 `process_stratum_target *` and use it.
3683 (selftests): New namespace.
3684 (infrun_thread_ptid_changed): New function.
3685 (_initialize_infrun): Register selftest.
3686 * regcache.c (regcache_thread_ptid_changed): Add parameter
3687 `process_stratum_target *` and use it.
3688 (regcache_thread_ptid_changed): New function.
3689 (_initialize_regcache): Register selftest.
3690 * thread.c (thread_change_ptid): Pass target to
3691 thread_ptid_changed observable.
3692
3693 2020-08-06 Caroline Tice <cmtice@google.com>
3694
3695 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
3696 (struct dwp_sections): Update field comments. Add loclists and
3697 rnglists fields.
3698 (struct virtual_v2_dwo_sections): Rename struct to
3699 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
3700 size & offset fields for loclists and rnglists.
3701 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
3702 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
3703 skipping dummy type units.
3704 (create_dwp_hash_table): Update the large comment above the function to
3705 discuss Version 5 DWP files as well, with references. Update all the
3706 version checks in the function to check for version 5 as well. Add new
3707 section at the end to create dwp hash table for version 5.
3708 (create_dwp_v2_section): Rename function to
3709 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
3710 Add V5 to error message text.
3711 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
3712 into calls to create_dwp_v2_or_v5_section.
3713 (create_dwo_unit_in_dwp_v5): New function.
3714 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
3715 check for version2; add else clause to handle version 5.
3716 (open_and_init_dwo_file): Add code to check dwarf version & only call
3717 create_debug_types_hash_table (with sections.types) if version is not 5;
3718 else call create_debug_type_hash_table, with sections.info.
3719 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
3720 version 5.
3721 (dwarf2_locate_v5_dwp_sections): New function.
3722 (open_and_init_dwp_file): Add else-if clause for version 5 to call
3723 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
3724
3725 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3726
3727 * regcache.h (class regcache): Remove friend
3728 registers_changed_ptid.
3729 <regcache_thread_ptid_changed>: Remove.
3730 <regcaches>: Remove.
3731 * regcache.c (regcache::regcaches): Rename to...
3732 (regcaches): ... this. Make static.
3733 (get_thread_arch_aspace_regcache): Update.
3734 (regcache::regcache_thread_ptid_changed): Rename to...
3735 (regcache_thread_ptid_changed): ... this. Update.
3736 (class regcache_access): Remove.
3737 (regcaches_test): Update.
3738 (_initialize_regcache): Update.
3739 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
3740 <forward_list>.
3741
3742 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
3743
3744 * regcache.h (class regcache) <current_regcache>: Rename to...
3745 <regcaches>: ... this. Move doc here.
3746 * regcache.c (regcache::current_regcache) Rename to...
3747 (regcache::regcaches): ... this. Move doc to header.
3748 (get_thread_arch_aspace_regcache): Update.
3749 (regcache::regcache_thread_ptid_changed): Update.
3750 (registers_changed_ptid): Update.
3751 (class regcache_access) <current_regcache_size>: Rename to...
3752 <regcaches_size>: ... this.
3753 (current_regcache_test): Rename to...
3754 (regcaches_test): ... this.
3755 (_initialize_regcache): Update.
3756
3757 2020-08-06 Victor Collod <vcollod@nvidia.com>
3758
3759 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
3760
3761 2020-08-05 Kevin Buettner <kevinb@redhat.com>
3762
3763 * corelow.c (core_target::build_file_mappings): Don't output
3764 null pathname in warning.
3765
3766 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
3767
3768 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
3769 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
3770 gdb.dwarf2/dw2-single-line-discriminators.exp,
3771 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
3772
3773 2020-08-05 Tom Tromey <tromey@adacore.com>
3774
3775 PR rust/26197:
3776 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
3777 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
3778 Fix off-by-one and type size errors in ordinary case.
3779
3780 2020-08-05 Tom de Vries <tdevries@suse.de>
3781
3782 * gdbtypes.c (type_not_allocated, type_not_associated): Use
3783 "prop->const_val () == 0" instead of "prop->const_val () != 0".
3784
3785 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3786
3787 * frame.h (frame_id_p): Return bool.
3788 (frame_id_artificial_p): Return bool.
3789 (frame_id_eq): Return bool.
3790 (has_stack_frames): Return bool.
3791 (get_selected_frame): Fix typo in comment.
3792 (get_frame_pc_if_available): Return bool.
3793 (get_frame_address_in_block_if_available): Return bool.
3794 (get_frame_func_if_available): Return bool.
3795 (read_frame_register_unsigned): Return bool.
3796 (get_frame_register_bytes): Return bool.
3797 (safe_frame_unwind_memory): Return bool.
3798 (deprecated_frame_register_read): Return bool.
3799 (frame_unwinder_is): Return bool.
3800 * frame.c (struct frame_info) <prev_arch::p>: Change type to
3801 bool.
3802 <this_id::p>: Likewise.
3803 <prev_p>: Likewise.
3804 (frame_stash_add): Return bool.
3805 (get_frame_id): Use bool.
3806 (frame_id_build_special) Use bool.
3807 (frame_id_build_unavailable_stack): Use bool.
3808 (frame_id_build): Use bool.
3809 (frame_id_p): Return bool, use true/false instead of 1/0.
3810 (frame_id_artificial_p): Likewise.
3811 (frame_id_eq): Likewise.
3812 (frame_id_inner): Likewise.
3813 (get_frame_func_if_available): Likewise.
3814 (read_frame_register_unsigned): Likewise.
3815 (deprecated_frame_register_read): Likewise.
3816 (get_frame_register_bytes): Likewise.
3817 (has_stack_frames): Likewise.
3818 (inside_main_func): Likewise.
3819 (inside_entry_func): Likewise.
3820 (get_frame_pc_if_available): Likewise.
3821 (get_frame_address_in_block_if_available): Likewise.
3822 (frame_unwinder_is): Likewise.
3823 (safe_frame_unwind_memory): Likewise.
3824 (frame_unwind_arch): Likewise.
3825
3826 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
3827
3828 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
3829 type to cached_copy_status.
3830 (fprintf_frame): Adjust.
3831 (get_frame_func_if_available): Adjust.
3832 (frame_cleanup_after_sniffer): Adjust.
3833
3834 2020-08-04 Mark Wielaard <mark@klomp.org>
3835
3836 * MAINTAINERS (Write After Approval): Update email address.
3837
3838 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3839
3840 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
3841 dynamic_prop::const_val.
3842
3843 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3844
3845 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
3846 dynamic_prop::kind.
3847
3848 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3849
3850 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
3851
3852 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
3853
3854 * configure.tgt: Set gdb_sim for bpf-*-* targets.
3855
3856 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
3857 Jose E. Marchesi <jose.marchesi@oracle.com>
3858
3859 * configure.tgt: Add entry for bpf-*-*.
3860 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
3861 (ALLDEPFILES): Add bpf-tdep.c.
3862 * bpf-tdep.c: New file.
3863 * MAINTAINERS: Add bpf target and maintainer.
3864 * NEWS: Mention the support for the new target.
3865
3866 2020-08-04 Tom de Vries <tdevries@suse.de>
3867
3868 PR symtab/23270
3869 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
3870 Error.
3871
3872 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3873
3874 * syscalls/freebsd.xml: Regenerate.
3875
3876 2020-08-03 John Baldwin <jhb@FreeBSD.org>
3877
3878 * syscalls/update-freebsd.sh: Fix usage and year range.
3879
3880 2020-08-03 Tom de Vries <tdevries@suse.de>
3881
3882 PR symtab/26333
3883 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
3884 DW_LNE_lo_user/DW_LNE_hi_user range.
3885
3886 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
3887
3888 PR ada/26318
3889 * ada-lang.c (ada_modulus): Return 0 if property is not of const
3890 kind.
3891
3892 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3893
3894 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
3895
3896 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3897
3898 * breakpoint.c (set_breakpoint_condition): Update the condition
3899 expressions after checking that the input condition string parses
3900 successfully and does not contain junk at the end.
3901
3902 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3903
3904 * breakpoint.c (set_breakpoint_condition): Update the
3905 condition string after parsing the new condition successfully.
3906
3907 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3908
3909 * proc-api.c (_STRUCTURED_PROC): Don't define.
3910 * proc-events.c: Likewise.
3911 * proc-flags.c: Likewise.
3912 * proc-why.c: Likewise.
3913 * procfs.c: Likewise.
3914
3915 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
3916 * configure, config.in: Regenerate.
3917
3918 2020-07-30 Tom de Vries <tdevries@suse.de>
3919
3920 PR build/26320
3921 * ui-style.h (struct ui_file_style::color): Wrap m_value and
3922 m_red/m_green/m_blue in a union.
3923
3924 2020-07-29 Tom de Vries <tdevries@suse.de>
3925
3926 PR tdep/26280
3927 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
3928
3929 2020-07-28 Tom Tromey <tromey@adacore.com>
3930
3931 PR symtab/26270:
3932 * symtab.h (find_pc_partial_function_sym): Declare.
3933 * cli/cli-cmds.c (disassemble_command): Use
3934 find_pc_partial_function_sym. Check asm_demangle.
3935 * blockframe.c (cache_pc_function_sym): New global.
3936 (cache_pc_function_name): Remove.
3937 (clear_pc_function_cache): Update.
3938 (find_pc_partial_function_sym): New function, from
3939 find_pc_partial_function.
3940 (find_pc_partial_function): Rewrite using
3941 find_pc_partial_function_sym.
3942
3943 2020-07-28 Tom Tromey <tromey@adacore.com>
3944
3945 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
3946 help. Add usage.
3947
3948 2020-07-28 Tom Tromey <tromey@adacore.com>
3949
3950 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
3951 <DW_OP_GNU_variable_value>: Cast to address type.
3952
3953 2020-07-28 Kamil Rytarowski <n54@gmx.com>
3954
3955 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
3956 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
3957 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
3958 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
3959 (nbsd_get_siginfo_type): New.
3960 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
3961 (_initialize_nbsd_tdep): New.
3962
3963 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3964
3965 PR binutils/26301
3966 * configure: Regenerated.
3967
3968 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
3969
3970 PR binutils/26301
3971 * configure: Regenerated.
3972
3973 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3974
3975 * python/py-frame.c: Remove 'user-regs.h' include.
3976 (frapy_read_register): Rewrite to make use of
3977 gdbpy_parse_register_id.
3978 * python/py-registers.c (gdbpy_parse_register_id): New function,
3979 moved here from python/py-unwind.c. Updated the return type, and
3980 also accepts register descriptor objects.
3981 * python/py-unwind.c: Remove 'user-regs.h' include.
3982 (pyuw_parse_register_id): Moved to python/py-registers.c.
3983 (unwind_infopy_add_saved_register): Update to use
3984 gdbpy_parse_register_id.
3985 (pending_framepy_read_register): Likewise.
3986 * python/python-internal.h (gdbpy_parse_register_id): Declare.
3987
3988 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * python/py-registers.c: Add 'user-regs.h' include.
3991 (register_descriptor_iter_find): New function.
3992 (register_descriptor_iterator_object_methods): New static global
3993 methods array.
3994 (register_descriptor_iterator_object_type): Add pointer to methods
3995 array.
3996
3997 2020-07-27 John Baldwin <jhb@FreeBSD.org>
3998
3999 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
4000 for all architectures on FreeBSD 11.3 and later.
4001
4002 2020-07-27 Tom Tromey <tromey@adacore.com>
4003
4004 * gcore.h (load_corefile): Don't declare.
4005
4006 2020-07-27 Tom de Vries <tdevries@suse.de>
4007
4008 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
4009 * config.in: Regenerate.
4010 * configure: Regenerate.
4011
4012 2020-07-26 Eli Zaretskii <eliz@gnu.org>
4013
4014 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
4015 ws2tcpip.h. When checking whether socklen_t type is defined, use
4016 ws2tcpip.h if it is available and sys/socket.h isn't.
4017 * configure: Regenerate.
4018 * config.in: Regenerate.
4019
4020 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
4021
4022 PR fortran/23051
4023 PR fortran/26139
4024 * valops.c (value_ind): Pass address to
4025 readjust_indirect_value_type.
4026 * value.c (readjust_indirect_value_type): Make parameter
4027 non-const, and add extra address parameter. Resolve original type
4028 before using it.
4029 * value.h (readjust_indirect_value_type): Update function
4030 signature and comment.
4031
4032 2020-07-25 Tom de Vries <tdevries@suse.de>
4033
4034 PR symtab/26243
4035 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
4036 entries.
4037
4038 2020-07-24 Aaron Merey <amerey@redhat.com>
4039
4040 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
4041 * configure: Rebuild.
4042
4043 2020-07-23 Kevin Buettner <kevinb@redhat.com>
4044
4045 PR corefiles/26294
4046 * corelow.c (_initialize_corelow): Add period to help text
4047 for "maintenance print core-file-backed-mappings".
4048
4049 2020-07-23 Pedro Alves <pedro@palves.net>
4050
4051 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
4052 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
4053 meanwhile.
4054 * frame.c (frame_cache_generation, get_frame_cache_generation):
4055 New.
4056 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
4057 (get_prev_frame_if_no_cycle): On exception, don't touch
4058 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
4059 * frame.h (get_frame_cache_generation): Declare.
4060
4061 2020-07-23 Tom de Vries <tdevries@suse.de>
4062
4063 PR tui/26282
4064 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
4065 New default constructor.
4066
4067 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
4070 exclude non-statement entries.
4071
4072 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4073
4074 * NEWS (New commands): Mention new command
4075 "maintenance print core-file-backed-mappings".
4076
4077 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4078
4079 * corelow.c (gdbcmd.h): Include.
4080 (core_target::info_proc_mappings): New method.
4081 (get_current_core_target): New function.
4082 (maintenance_print_core_file_backed_mappings): New function.
4083 (_initialize_corelow): Add core-file-backed-mappings to
4084 "maint print" commands.
4085
4086 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4087
4088 * linux-tdep.c (dump_note_entry_p): New function.
4089 (linux_dump_mapping_p_ftype): New typedef.
4090 (linux_find_memory_regions_full): Add new parameter,
4091 should_dump_mapping_p.
4092 (linux_find_memory_regions): Adjust call to
4093 linux_find_memory_regions_full.
4094 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
4095 call to linux_find_memory_regions_full.
4096
4097 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4098
4099 * corelow.c (solist.h, unordered_map): Include.
4100 (class core_target): Add field m_core_file_mappings and
4101 method build_file_mappings.
4102 (core_target::core_target): Call build_file_mappings.
4103 (core_target::~core_target): Free memory associated with
4104 m_core_file_mappings.
4105 (core_target::build_file_mappings): New method.
4106 (core_target::xfer_partial): Use m_core_file_mappings
4107 for memory transfers.
4108 * linux-tdep.c (linux_read_core_file_mappings): New
4109 function.
4110 (linux_core_info_proc_mappings): Rewrite to use
4111 linux_read_core_file_mappings.
4112 (linux_init_abi): Register linux_read_core_file_mappings.
4113
4114 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4115
4116 * arch-utils.c (default_read_core_file_mappings): New function.
4117 * arch-utils.c (default_read_core_file_mappings): Declare.
4118 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
4119 * gdbarch.h, gdbarch.c: Regenerate.
4120
4121 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4122
4123 PR corefiles/25631
4124 * corelow.c (core_target:xfer_partial): Revise
4125 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
4126 case after first checking the stratum beneath the core
4127 target.
4128 (has_all_memory): Return true.
4129 * target.c (raw_memory_xfer_partial): Revise comment
4130 regarding use of has_all_memory.
4131
4132 2020-07-22 Kevin Buettner <kevinb@redhat.com>
4133
4134 * exec.h (section_table_xfer_memory): Revise declaration,
4135 replacing section name parameter with an optional callback
4136 predicate.
4137 * exec.c (section_table_xfer_memory): Likewise.
4138 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
4139 of section_table_xfer_memory.
4140
4141 2020-07-22 Tom Tromey <tromey@adacore.com>
4142
4143 * mi/mi-cmd-stack.c (list_args_or_locals): Use
4144 lookup_symbol_search_name.
4145
4146 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
4147
4148 * python/py-registers.c (gdbpy_register_object_data_init): Remove
4149 redundant local variable.
4150 (gdbpy_get_register_descriptor): Extract descriptor vector as a
4151 reference, not pointer, update code accordingly.
4152
4153 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4154 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4155
4156 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
4157 * jit.c (jit_breakpoint_re_set_internal): Use the
4158 `skip_jit_symbol_lookup` field.
4159
4160 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4161 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4162
4163 * jit.c (jit_read_descriptor): Define the descriptor address once,
4164 use twice.
4165 (jit_breakpoint_deleted): Move the declaration of the loop variable
4166 `iter` into the loop header.
4167 (jit_breakpoint_re_set_internal): Move the declaration of the local
4168 variable `objf_data` to the first point of definition.
4169 (jit_event_handler): Move the declaration of local variables
4170 `code_entry`, `entry_addr`, and `objf` to their first point of use.
4171 Rename `objf` to `jited`.
4172
4173 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4174
4175 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
4176 Remove.
4177 * jit.c (get_jiter_objfile_data): Update.
4178
4179 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4180 Simon Marchi <simon.marchi@polymtl.ca>
4181
4182 * jit.c (struct jit_program_space_data): Remove.
4183 (jit_program_space_key): Remove.
4184 (jiter_objfile_data::~jiter_objfile_data): Remove program space
4185 stuff.
4186 (get_jit_program_space_data): Remove.
4187 (jit_breakpoint_deleted): Iterate on all of the program space's
4188 objfiles.
4189 (jit_inferior_init): Likewise.
4190 (jit_breakpoint_re_set_internal): Likewise. Also change return
4191 type to void.
4192 (jit_breakpoint_re_set): Pass current_program_space to
4193 jit_breakpoint_re_set_internal.
4194
4195 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4196
4197 * jit.h (struct jiter_objfile_data) <cached_code_address,
4198 jit_breakpoint>: Move to here from ...
4199 * jit.c (jit_program_space_data): ... here.
4200 (jiter_objfile_data::~jiter_objfile_data): Update.
4201 (jit_breakpoint_deleted): Update.
4202 (jit_breakpoint_re_set_internal): Update.
4203
4204 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4205
4206 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
4207 checks.
4208 (jit_read_descriptor): Remove NULL check.
4209 (jit_event_handler): Add an assertion.
4210
4211 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4212
4213 * jit.h (struct jit_objfile_data): Split into...
4214 (struct jiter_objfile_data): ... this ...
4215 (struct jited_objfile_data): ... and this.
4216 * objfiles.h (struct objfile) <jit_data>: Remove.
4217 <jiter_data, jited_data>: New fields.
4218 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
4219 (jiter_objfile_data::~jiter_objfile_data): ... this.
4220 (get_jit_objfile_data): Rename to ...
4221 (get_jiter_objfile_data): ... this.
4222 (add_objfile_entry): Update.
4223 (jit_read_descriptor): Use get_jiter_objfile_data.
4224 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
4225 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
4226 (jit_inferior_exit_hook): Use objfile's jited_data field.
4227
4228 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
4229
4230 * jit.h: Forward-declare `struct minimal_symbol`.
4231 (struct jit_objfile_data): Migrate to here from jit.c; also add a
4232 constructor, destructor, and an objfile* field.
4233 * jit.c (jit_objfile_data): Remove.
4234 (struct jit_objfile_data): Migrate from here to jit.h.
4235 (jit_objfile_data::~jit_objfile_data): New destructor
4236 implementation with code moved from free_objfile_data.
4237 (free_objfile_data): Delete.
4238 (get_jit_objfile_data): Update to use the jit_data field of objfile.
4239 (jit_find_objf_with_entry_addr): Ditto.
4240 (jit_inferior_exit_hook): Ditto.
4241 (_initialize_jit): Remove the call to
4242 register_objfile_data_with_cleanup.
4243 * objfiles.h (struct objfile) <jit_data>: New field.
4244
4245 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4246
4247 * jit.h: Forward-declare `struct objfile`.
4248 (jit_event_handler): Add a second parameter, the JITer objfile.
4249 * jit.c (jit_read_descriptor): Change the signature to take the
4250 JITer objfile as an argument instead of the jit_program_space_data.
4251 (jit_inferior_init): Update the call to jit_read_descriptor.
4252 (jit_event_handler): Use the new JITer objfile argument when calling
4253 jit_read_descriptor.
4254 * breakpoint.c (handle_jit_event): Update the call to
4255 jit_event_handler to pass the JITer objfile.
4256
4257 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4258
4259 * gdbarch.c: Regenerate.
4260 * gdbarch.h: Regenerate.
4261 * gdbarch.sh (handle_segmentation_fault): Remove method.
4262 * infrun.c (handle_segmentation_fault): Remove.
4263 (print_signal_received_reason): Remove call to
4264 handle_segmentation_fault.
4265
4266 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4267
4268 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4269 Rename to sparc64_linux_report_signal_info and add siggnal
4270 argument.
4271 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
4272 instead of sparc64_linux_handle_segmentation_fault.
4273
4274 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4275
4276 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
4277 i386_linux_report_signal_info instead of
4278 i386_linux_handle_segmentation_fault.
4279 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
4280 to i386_linux_report_signal_info and add siggnal argument.
4281 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
4282 of i386_linux_handle_segmentation_fault.
4283 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
4284 to i386_linux_report_signal_info and add siggnal argument.
4285
4286 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4287
4288 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
4289 hook if present.
4290
4291 2020-07-21 John Baldwin <jhb@FreeBSD.org>
4292
4293 * gdbarch.c: Regenerate.
4294 * gdbarch.h: Regenerate.
4295 * gdbarch.sh (report_signal_info): New method.
4296 * infrun.c (print_signal_received_reason): Invoke gdbarch
4297 report_signal_info hook if present.
4298
4299 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4300
4301 * python/py-registers.c : Add 'unordered_map' include.
4302 (gdbpy_new_reggroup): Renamed to...
4303 (gdbpy_get_reggroup): ...this. Update to only create register
4304 group descriptors when needed.
4305 (gdbpy_reggroup_iter_next): Update.
4306
4307 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
4308
4309 * python/py-registers.c (gdbpy_register_object_data): New static
4310 global.
4311 (gdbpy_register_object_data_init): New function.
4312 (gdbpy_new_register_descriptor): Renamed to...
4313 (gdbpy_get_register_descriptor): ...this, and update to reuse
4314 existing register descriptors where possible.
4315 (gdbpy_register_descriptor_iter_next): Update.
4316 (gdbpy_initialize_registers): Register new gdbarch data.
4317
4318 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
4319
4320 * linux-nat.c (stopped_pids): Make static.
4321
4322 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
4323
4324 PR ada/26235
4325 * gdbtypes.c (ada_discrete_type_low_bound,
4326 ada_discrete_type_high_bound): Handle undefined bounds.
4327
4328 2020-07-21 Kamil Rytarowski <n54@gmx.com>
4329
4330 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
4331 declaration.
4332 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
4333 function.
4334
4335 2020-07-20 John Baldwin <jhb@FreeBSD.org>
4336
4337 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
4338 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
4339 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
4340 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
4341 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
4342 method.
4343
4344 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4345
4346 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
4347 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
4348 which are deprecated in Guile 3.0.
4349 * configure.ac (try_guile_versions): Add "guile-3.0".
4350 * configure (try_guile_versions): Regenerate.
4351 * NEWS: Update entry.
4352
4353 2020-07-20 Ludovic Courtès <ludo@gnu.org>
4354 Doug Evans <dje@google.com>
4355
4356 PR gdb/21104
4357 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
4358 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
4359 USING_GUILE_BEFORE_2_2.
4360 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
4361 Change type to 'scm_t_port_type *'.
4362 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
4363 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
4364 parameter and honor it. Update callers.
4365 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
4366 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
4367 functions.
4368 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
4369 USING_GUILE_BEFORE_2_2.
4370 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
4371 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
4372 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
4373 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
4374 and 'SCM_PORT_TYPE'.
4375 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
4376 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
4377 (gdbscm_memory_port_read, gdbscm_memory_port_write)
4378 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
4379 [!USING_GUILE_BEFORE_2_2]: New functions.
4380 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
4381 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
4382 'gdbscm_memory_port_read'.
4383 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
4384 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
4385 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
4386 function.
4387 (ioscm_init_memory_port): Remove.
4388 (ioscm_init_memory_port_stream): New function
4389 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
4390 function.
4391 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4392 Return scm_from_uint (0).
4393 (gdbscm_set_memory_port_read_buffer_size_x)
4394 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4395 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
4396 Return scm_from_uint (0).
4397 (gdbscm_set_memory_port_write_buffer_size_x)
4398 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
4399 * configure.ac (try_guile_versions): Add "guile-2.2".
4400 * configure: Regenerate.
4401 * NEWS: Add entry.
4402
4403 2020-07-18 Tom Tromey <tom@tromey.com>
4404
4405 * linux-nat.c (linux_multi_process): Remove.
4406 (linux_nat_target::supports_multi_process): Return true.
4407
4408 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4409
4410 * arch/riscv.c (riscv_tdesc_cache): Change map type.
4411 (riscv_lookup_target_description): Return pointer out of
4412 unique_ptr.
4413 * target-descriptions.c (allocate_target_description): Add
4414 comment.
4415 (target_desc_deleter::operator()): Likewise.
4416 * target-descriptions.h (struct target_desc_deleter): Moved to
4417 gdbsupport/tdesc.h.
4418 (target_desc_up): Likewise.
4419
4420 2020-07-17 Tom Tromey <tromey@adacore.com>
4421
4422 * linux-nat.c (linux_nat_target::supports_non_stop)
4423 (linux_nat_target::always_non_stop_p): Use "true".
4424 (linux_nat_target::supports_disable_randomization): Use "true" and
4425 "false".
4426
4427 2020-07-16 Caroline Tice <cmtice@google.com>
4428
4429 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
4430 (RNGLIST_HEADER_SIZE64): New constant definition.
4431 (struct dwop_section_names): Add rnglists_dwo.
4432 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
4433 (struct loclist_header): Rename to 'loclists_rnglists_header'.
4434 (struct dwo_sections): Add rnglists field.
4435 (read_attribut_reprocess): Add tag parameter.
4436 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
4437 (cu_debug_rnglists_section): New function (decl & definition).
4438 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
4439 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
4440 die whose range is being checked; get rnglist section from
4441 cu_debug_rnglists_section, to get from either objfile or dwo file as
4442 appropriate. Add cases for DW_RLE_base_addressx,
4443 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
4444 the base address to DW_RLE_offset_pairs (not to all ranges), moving
4445 test inside if-condition and updating complaint message.
4446 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
4447 dwarf2_rnglists_process.
4448 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
4449 dwarf2_ranges_process.
4450 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
4451 need_ranges_base and update comment appropriately. Also pass die tag
4452 to dwarf2_ranges_read.
4453 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
4454 need_ranges_base and update comment appropriately. Also pass die tag
4455 to dwarf2_ranges_process.
4456 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
4457 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
4458 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
4459 need_ranges_base and update comment appropriately. Also pass die tag
4460 to read_attribute_reprocess and dwarf2_ranges_read.
4461 (read_loclist_header): Rename function to read_loclists_rnglists_header,
4462 and update function comment appropriately.
4463 (read_loclist_index): Call read_loclists_rnglists_header instead of
4464 read_loclist_header.
4465 (read_rnglist_index): New function.
4466 (read_attribute_reprocess): Add tag parameter. Add code for
4467 DW_FORM_rnglistx, passing tag to read_rnglist_index.
4468 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
4469
4470 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
4471
4472 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
4473 being resolved.
4474
4475 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
4476
4477 * arch-utils.c (show_architecture): Update formatting of messages.
4478
4479 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4480
4481 * gdbtypes.h (struct type) <bounds>: Handle array and string
4482 types.
4483 * ada-lang.c (assign_aggregate): Use type::bounds on
4484 array/string type.
4485 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
4486 * c-varobj.c (c_number_of_children): Likewise.
4487 (c_describe_child): Likewise.
4488 * eval.c (evaluate_subexp_for_sizeof): Likewise.
4489 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
4490 (f_type_print_base): Likewise.
4491 * f-valprint.c (f77_array_offset_tbl): Likewise.
4492 (f77_get_upperbound): Likewise.
4493 (f77_print_array_1): Likewise.
4494 * guile/scm-type.c (gdbscm_type_range): Likewise.
4495 * m2-typeprint.c (m2_array): Likewise.
4496 (m2_is_long_set_of_type): Likewise.
4497 * m2-valprint.c (get_long_set_bounds): Likewise.
4498 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
4499 * python/py-type.c (typy_range): Likewise.
4500 * rust-lang.c (rust_internal_print_type): Likewise.
4501 * type-stack.c (type_stack::follow_types): Likewise.
4502 * valarith.c (value_subscripted_rvalue): Likewise.
4503 * valops.c (value_cast): Likewise.
4504
4505 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
4508 callers to use the equivalent accessor methods.
4509
4510 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
4513 (struct type) <bit_stride>: New method.
4514 (TYPE_BIT_STRIDE): Remove.
4515 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
4516
4517 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
4520 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
4521 callers to use the equivalent accessor methods instead.
4522
4523 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4524
4525 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
4526 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
4527 callers to use the equivalent accessor methods instead.
4528
4529 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
4532 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
4533 to use dynamic_prop::kind.
4534
4535 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4536
4537 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
4538 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
4539 to get the bound property's kind and check against
4540 PROP_UNDEFINED.
4541
4542 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
4545 all callers to use type::range_bounds followed by
4546 dynamic_prop::{low,high}.
4547
4548 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4549
4550 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
4551 const_val, set_const_val, baton, set_locexpr, set_loclist,
4552 set_addr_offset, variant_parts, set_variant_parts,
4553 original_type, set_original_type>: New methods.
4554 <kind>: Rename to...
4555 <m_kind>: ... this. Update all users to use the new methods
4556 instead.
4557 <data>: Rename to...
4558 <m_data>: ... this. Update all users to use the new methods
4559 instead.
4560
4561 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * gdbtypes.c (get_discrete_bounds): Return failure if
4564 the range type's bounds are not both defined and constant
4565 values.
4566 (get_array_bounds): Update comment. Remove undefined bound check.
4567
4568 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
4569
4570 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
4571 the type::bounds method directly.
4572
4573 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
4576 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
4577 are used to set the range type's bounds to use set_bounds.
4578
4579 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4580
4581 * exec.c (_initialize_exec): Update exec-file-mismatch help.
4582
4583 2020-07-10 Pedro Alves <pedro@palves.net>
4584
4585 * gdbthread.h (inferior_ref): Define.
4586 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
4587 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
4588 * thread.c
4589 (scoped_restore_current_thread::restore):
4590 Adjust to gdb::ref_ptr.
4591 (scoped_restore_current_thread::~scoped_restore_current_thread):
4592 Remove manual decref handling.
4593 (scoped_restore_current_thread::scoped_restore_current_thread):
4594 Adjust to use
4595 inferior_ref::new_reference/thread_info_ref::new_reference.
4596 Incref the thread before calling get_frame_id instead of after.
4597 Let TARGET_CLOSE_ERROR propagate.
4598
4599 2020-07-10 Pedro Alves <pedro@palves.net>
4600
4601 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
4602 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
4603 NOT_AVAILABLE_ERROR.
4604 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
4605 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
4606
4607 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4608 Pedro Alves <pedro@palves.net>
4609
4610 PR gdb/26199
4611 * infrun.c (threads_are_resumed_pending_p): Delete.
4612 (do_target_wait): Remove threads_are_executing and
4613 threads_are_resumed_pending_p checks from the inferior_matches
4614 lambda. Update comments.
4615
4616 2020-07-10 Pedro Alves <pedro@palves.net>
4617
4618 PR gdb/26199
4619 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
4620 executing threads.
4621
4622 2020-07-10 Pedro Alves <pedro@palves.net>
4623
4624 PR gdb/26199
4625 * infrun.c (handle_no_resumed): Handle multiple targets.
4626
4627 2020-07-10 Pedro Alves <pedro@palves.net>
4628
4629 PR gdb/26199
4630 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
4631 target_is_async_p.
4632
4633 2020-07-10 Pedro Alves <pedro@palves.net>
4634
4635 PR gdb/26199
4636 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
4637 threads, not all threads.
4638
4639 2020-07-10 Pedro Alves <pedro@palves.net>
4640
4641 PR gdb/26199
4642 * remote.c (remote_target::open_1): Pass remote target pointer as
4643 data to create_async_event_handler.
4644 (remote_async_inferior_event_handler): Mark async event handler
4645 before returning if the remote target still has either pending
4646 events or unacknowledged notifications.
4647
4648 2020-07-10 John Baldwin <jhb@FreeBSD.org>
4649
4650 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
4651 declaration.
4652 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
4653 function.
4654
4655 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4656
4657 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
4658 inferior_ptid.
4659
4660 2020-07-09 John Baldwin <jhb@FreeBSD.org>
4661
4662 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
4663 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
4664 AT_FREEBSD_PS_STRINGS.
4665
4666 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
4667
4668 * auto-load.c (auto_load_objfile_script_1): Convert drive part
4669 of debugfile path on Windows.
4670
4671 2020-07-08 John Baldwin <jhb@FreeBSD.org>
4672
4673 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
4674 argument to 'data'.
4675
4676 2020-07-08 Tom Tromey <tromey@adacore.com>
4677
4678 * ada-lang.c (ada_exception_message_1): Use read_memory.
4679
4680 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4681
4682 PR python/22748
4683 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
4684 special handling for inline frames.
4685 * findvar.c (value_of_register_lazy): Skip inline frames when
4686 creating lazy register values.
4687 * frame.c (frame_id_computed_p): Delete definition.
4688 * frame.h (frame_id_computed_p): Delete declaration.
4689
4690 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * NEWS: Mention additions to Python API.
4693 * python/py-arch.c (archpy_register_groups): New function.
4694 (arch_object_methods): Add 'register_groups' method.
4695 * python/py-registers.c (reggroup_iterator_object): New struct.
4696 (reggroup_object): New struct.
4697 (gdbpy_new_reggroup): New function.
4698 (gdbpy_reggroup_to_string): New function.
4699 (gdbpy_reggroup_name): New function.
4700 (gdbpy_reggroup_iter): New function.
4701 (gdbpy_reggroup_iter_next): New function.
4702 (gdbpy_new_reggroup_iterator): New function
4703 (gdbpy_initialize_registers): Register new types.
4704 (reggroup_iterator_object_type): Define new Python type.
4705 (gdbpy_reggroup_getset): New static global.
4706 (reggroup_object_type): Define new Python type.
4707 * python/python-internal.h
4708
4709 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4710
4711 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
4712 * python/py-arch.c (archpy_registers): New function.
4713 (arch_object_methods): Add 'registers' method.
4714 * python/py-registers.c: New file.
4715 * python/python-internal.h
4716 (gdbpy_new_register_descriptor_iterator): Declare.
4717 (gdbpy_initialize_registers): Declare.
4718 * python/python.c (do_start_initialization): Call
4719 gdbpy_initialize_registers.
4720 * NEWS: Mention additions to the Python API.
4721
4722 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4723
4724 * NEWS: Mention new Python API method.
4725 * python/py-unwind.c (pending_framepy_architecture): New function.
4726 (pending_frame_object_methods): Add architecture method.
4727
4728 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4729
4730 * gdbarch.c: Regenerate.
4731 * gdbarch.h: Regenerate.
4732 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
4733 (gdbarch_data): Use internal_error for the case where
4734 deprecated_set_gdbarch_data was originally needed.
4735 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
4736 and use passed in obstack.
4737 (libunwind_frame_set_descr): Should no longer get back NULL from
4738 gdbarch_data.
4739 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
4740 type.
4741 * user-regs.c (user_regs_init): Update parameters, and use passed
4742 in obstack.
4743 (user_reg_add): Should no longer get back NULL from gdbarch_data.
4744 (_initialize_user_regs): Register as a pre-init gdbarch data type.
4745
4746 2020-07-06 Tom de Vries <tdevries@suse.de>
4747
4748 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
4749 End-Of-Sequence in lte_is_less_than.
4750 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
4751 "gdb: Don't reorder line table entries too much when sorting".
4752
4753 2020-07-06 Tom de Vries <tdevries@suse.de>
4754
4755 PR tui/26205
4756 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
4757
4758 2020-07-05 Tom de Vries <tdevries@suse.de>
4759
4760 PR build/26187
4761 * inferior.h (struct infcall_suspend_state_deleter): If available, use
4762 std::uncaught_exceptions instead of deprecated
4763 std::uncaught_exception.
4764
4765 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * macroexp.h (macro_stringify): Return
4768 gdb::unique_xmalloc_ptr<char>.
4769 * macroexp.c (macro_stringify): Likewise.
4770 * macrotab.c (fixup_definition): Update.
4771
4772 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4773
4774 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
4775 (lex_one_token): Update.
4776 * macroexp.c (struct macro_buffer) <release>: Return
4777 gdb::unique_xmalloc_ptr<char>.
4778 (macro_stringify): Update.
4779 (macro_expand): Update.
4780 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
4781 * macroexp.h (macro_expand_next): Likewise.
4782
4783 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
4784
4785 * macroexp.h (macro_lookup_ftype): Remove.
4786 (macro_expand, macro_expand_once, macro_expand_next): Remove
4787 lookup function parameters, add scope parameter.
4788 * macroexp.c (scan, substitute_args, expand, maybe_expand,
4789 macro_expand, macro_expand_once, macro_expand_next): Likewise.
4790 * macroscope.h (standard_macro_lookup): Change parameter type
4791 to macro_scope.
4792 * macroscope.c (standard_macro_lookup): Likewise.
4793 * c-exp.y (lex_one_token): Update.
4794 * macrocmd.c (macro_expand_command): Likewise.
4795 (macro_expand_once_command): Likewise.
4796
4797 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
4798
4799 * inf-loop.c (inferior_event_handler): Remove client_data param.
4800 * inf-loop.h (inferior_event_handler): Likewise.
4801 * infcmd.c (step_1): Adjust.
4802 * infrun.c (proceed): Adjust.
4803 (fetch_inferior_event): Remove client_data param.
4804 (infrun_async_inferior_event_handler): Adjust.
4805 * infrun.h (fetch_inferior_event): Remove `void *` param.
4806 * linux-nat.c (handle_target_event): Adjust.
4807 * record-btrace.c (record_btrace_handle_async_inferior_event):
4808 Adjust.
4809 * record-full.c (record_full_async_inferior_event_handler):
4810 Adjust.
4811 * remote.c (remote_async_inferior_event_handler): Adjust.
4812
4813 2020-07-01 Tom Tromey <tom@tromey.com>
4814
4815 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
4816 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
4817
4818 2020-07-01 Tom Tromey <tom@tromey.com>
4819
4820 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
4821 tui_gen_win_info.
4822 (tui_win_info::make_window): Merge with
4823 tui_gen_win_info::make_window.
4824 (tui_win_info::make_visible): Move from tui_gen_win_info.
4825 * tui/tui-win.c (tui_win_info::max_width): Move from
4826 tui_gen_win_info.
4827 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
4828 type.
4829 <window_factory>: Likewise.
4830 * tui/tui-layout.c (tui_win_info::resize): Move from
4831 tui_gen_win_info.
4832 (make_standard_window): Change return type.
4833 (get_locator_window, tui_get_window_by_name): Likewise.
4834 (tui_layout_window::apply): Remove a cast.
4835 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
4836 (struct tui_win_info): Merge with tui_gen_win_info.
4837 (struct tui_gen_win_info): Remove.
4838
4839 2020-07-01 Tom Tromey <tom@tromey.com>
4840
4841 * tui/tui-stack.h (struct tui_locator_window): Derive from
4842 tui_win_info.
4843 <do_scroll_horizontal, do_scroll_vertical>: New methods.
4844 <can_box>: New method.
4845
4846 2020-07-01 Tom Tromey <tom@tromey.com>
4847
4848 * tui/tui-stack.h (struct tui_locator_window): Remove body.
4849
4850 2020-07-01 Tom Tromey <tom@tromey.com>
4851
4852 * tui/tui-regs.c (tui_data_window::display_registers_from)
4853 (tui_data_window::display_registers_from)
4854 (tui_data_window::first_data_item_displayed)
4855 (tui_data_window::delete_data_content_windows): Update.
4856 (tui_data_window::refresh_window, tui_data_window::no_refresh):
4857 Remove.
4858 (tui_data_window::check_register_values): Update.
4859 (tui_data_item_window::rerender): Add parameters. Update.
4860 (tui_data_item_window::refresh_window): Remove.
4861 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
4862 virtual.
4863 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
4864 tui_gen_win_info.
4865 <refresh_window, max_height, min_height>: Remove.
4866 <rerender>: Add parameters.
4867 <x, y, visible>: New members.
4868 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
4869 <m_item_width>: New member.
4870
4871 2020-07-01 Tom Tromey <tom@tromey.com>
4872
4873 * tui/tui-regs.c (tui_data_window::show_register_group)
4874 (tui_data_window::check_register_values): Update.
4875 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
4876 from item_no.
4877
4878 2020-07-01 Tom Tromey <tom@tromey.com>
4879
4880 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
4881 useless "if".
4882
4883 2020-07-01 Tom Tromey <tom@tromey.com>
4884
4885 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
4886 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
4887
4888 2020-07-01 Tom Tromey <tom@tromey.com>
4889
4890 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
4891 * tui/tui-winsource.h (enum tui_line_or_address_kind)
4892 (struct tui_line_or_address): Move from tui-data.h.
4893 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
4894 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
4895 (tui_cmd_window, tui_source_window_base, tui_source_window)
4896 (tui_disasm_window): Don't declare.
4897 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
4898 to tui-winsource.h.
4899 (SINGLE_KEY): Move to tui-stack.c.
4900
4901 2020-07-01 Tom Tromey <tom@tromey.com>
4902
4903 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
4904 std::string.
4905 * tui/tui-regs.c (class tab_expansion_file): New.
4906 (tab_expansion_file::write): New method.
4907 (tui_register_format): Change return type. Use
4908 tab_expansion_file.
4909 (tui_get_register, tui_data_window::display_registers_from)
4910 (tui_data_item_window::rerender): Update.
4911 * tui/tui-io.h (tui_expand_tabs): Don't declare.
4912 * tui/tui-io.c (tui_expand_tabs): Remove.
4913
4914 2020-07-01 Tom Tromey <tom@tromey.com>
4915
4916 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
4917
4918 2020-07-01 Fangrui Song <maskray@google.com>
4919
4920 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
4921
4922 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4923
4924 * dwarf2/read.c (set_die_type): Removed conditions to restrict
4925 forms for DW_AT_associated and DW_AT_allocated attributes,
4926 which is already checked in function attr_to_dynamic_prop.
4927
4928 2020-06-30 Tom Tromey <tromey@adacore.com>
4929
4930 * dwarf2/read.c (quirk_rust_enum): Correctly call
4931 alloc_rust_variant for default-less enum.
4932
4933 2020-06-30 Tom Tromey <tromey@adacore.com>
4934
4935 PR build/26183:
4936 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
4937 gdb::to_string.
4938
4939 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * gdbarch.sh (displaced_step_copy_insn): Update doc.
4942 * gdbarch.h: Re-generate.
4943
4944 2020-06-28 Tom Tromey <tom@tromey.com>
4945
4946 * command.h (cmd_types): Remove.
4947 (cmd_type): Don't declare.
4948 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
4949 typedef.
4950 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
4951 * cli/cli-decode.c (cmd_type): Remove.
4952
4953 2020-06-27 Pedro Alves <palves@redhat.com>
4954
4955 * fork-child.c (prefork_hook): Adjust.
4956 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
4957 Delete.
4958 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
4959 * inferior.c (inferior::set_tty, inferior::tty): New methods.
4960 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
4961 Remove declarations.
4962 (struct inferior) <set_tty, tty>: New methods.
4963 (struct inferior) <terminal>: Rename to ...
4964 (struct inferior) <m_terminal>: ... this and make private.
4965 * main.c (captured_main_1): Adjust.
4966 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
4967 (mi_cmd_inferior_tty_show): Adjust.
4968 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
4969 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
4970
4971 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
4972
4973 * configure.ac: Add --enable-libctf: handle --disable-static
4974 properly.
4975 * acinclude.m4: sinclude ../config/enable.m4.
4976 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
4977 (LIBCTF): Substitute in.
4978 (CTF_DEPS): New, likewise.
4979 (CLIBS): libctf needs symbols from libbfd: move earlier.
4980 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
4981 flags.
4982 * ctfread.c: Surround in ENABLE_LIBCTF.
4983 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
4984 * configure: Regenerate.
4985 * config.in: Likewise.
4986
4987 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
4990
4991 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * inferior.h (struct inferior) <terminal>: Change type to
4994 gdb::unique_xmalloc_ptr<char>.
4995 * inferior.c (inferior::~inferior): Don't free inf->terminal.
4996 * infcmd.c (set_inferior_io_terminal): Don't free terminal
4997 field, adjust to unique pointer.
4998 (get_inferior_io_terminal): Adjust to unique pointer.
4999
5000 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5001
5002 * riscv-tdep.c (riscv_print_registers_info): Loop over all
5003 registers, not just the known core set of registers.
5004
5005 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5006
5007 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
5008 fflags, frm, and fcsr registers.
5009 (riscv_register_reggroup_p): Remove unknown CSRs from save and
5010 restore groups.
5011 (riscv_tdesc_unknown_reg): New function.
5012 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
5013 tdesc_use_registers.
5014 * riscv-tdep.h (struct gdbarch_tdep): Add
5015 unknown_csrs_first_regnum, unknown_csrs_count,
5016 duplicate_fflags_regnum, duplicate_frm_regnum, and
5017 duplicate_fcsr_regnum fields.
5018
5019 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5020
5021 * target-descriptions.c (tdesc_use_registers): Add new parameter a
5022 callback, use the callback (when not null) to help number unknown
5023 registers.
5024 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
5025 (tdesc_use_registers): Add extra parameter to declaration.
5026
5027 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5028
5029 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
5030 in the file.
5031 (class riscv_pending_register_alias): Likewise.
5032 (riscv_register_feature::register_info): Change 'required_p' field
5033 to 'required', and change its type. Add 'check' member function.
5034 (riscv_register_feature::register_info::check): Define new member
5035 function.
5036 (riscv_xreg_feature): Change initialisation of 'required' field.
5037 (riscv_freg_feature): Likewise.
5038 (riscv_virtual_feature): Likewise.
5039 (riscv_csr_feature): Likewise.
5040 (riscv_check_tdesc_feature): Take extra parameter, the csr
5041 tdesc_feature, rewrite the function to use the new
5042 riscv_register_feature::register_info::check function.
5043 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
5044
5045 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5046
5047 * features/Makefile: Remove all references to the deleted files
5048 below.
5049 * features/riscv/32bit-csr.c: Deleted.
5050 * features/riscv/32bit-csr.xml: Deleted.
5051 * features/riscv/64bit-csr.c: Deleted.
5052 * features/riscv/64bit-csr.xml: Deleted.
5053 * features/riscv/rebuild-csr-xml.sh: Deleted.
5054
5055 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5056
5057 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
5058 whitespace error for declaration of names member variable.
5059 (struct riscv_register_feature): Add new prefer_first_name member
5060 variable, and fix whitespace error in declaration of registers.
5061 (riscv_xreg_feature): Initialize prefer_first_name field.
5062 (riscv_freg_feature): Likewise.
5063 (riscv_virtual_feature): Likewise.
5064 (riscv_csr_feature): Likewise.
5065 (riscv_register_name): Expand on comments. Remove register name
5066 modifications for CSR and virtual registers.
5067
5068 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5069
5070 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
5071 errors.
5072
5073 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
5074
5075 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
5076 riscv-opc.h.
5077 (class riscv_pending_register_alias): New class.
5078 (riscv_check_tdesc_feature): Take vector of pending aliases and
5079 populate it as appropriate.
5080 (riscv_setup_register_aliases): Delete.
5081 (riscv_gdbarch_init): Create vector of pending aliases and pass it
5082 to riscv_check_tdesc_feature in all cases. Use the vector to
5083 create the register aliases.
5084
5085 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5086
5087 * sol2-tdep.c (sol2_static_transform_name): Remove.
5088 (sol2_init_abi): Don't register it.
5089 * gdbarch.sh (static_transform_name): Remove.
5090 * gdbarch.c, gdbarch.h: Regenerate.
5091
5092 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
5093 gdbarch_static_transform_name.
5094 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
5095 * stabsread.c (define_symbol) <'X'>: Remove.
5096 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
5097 handling.
5098 <'V'>: Likewise.
5099 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
5100 <'S'>: Remove call to gdbarch_static_transform_name.
5101
5102 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5103
5104 * procfs.c (procfs_pre_trace): New function.
5105 (procfs_target::create_inferior): Pass it to fork_inferior.
5106
5107 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5108
5109 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
5110 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
5111 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
5112 sol2-tdep.o, sparc-sol2-tdep.o.
5113 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
5114 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
5115 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
5116 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
5117
5118 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5119
5120 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
5121 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
5122 Call sol2_init_abi.
5123 Remove calls to set_gdbarch_skip_solib_resolver,
5124 set_gdbarch_core_pid_to_str.
5125 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
5126 (i386_sol2_static_transform_name): Remove.
5127 (i386_sol2_init_abi): Call sol2_init_abi.
5128 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5129 set_gdbarch_static_transform_name,
5130 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5131 Use sol2_sigtramp_p.
5132 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
5133 (sol2_sigtramp_p): New function.
5134 (sol2_static_transform_name): New function.
5135 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
5136 (sol2_init_abi): New function.
5137 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
5138 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
5139 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
5140 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
5141 (sparc_sol2_static_transform_name): Remove.
5142 (sparc32_sol2_init_abi): Call sol2_init_abi.
5143 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5144 set_gdbarch_static_transform_name,
5145 set_gdbarch_skip_solib_resolver,
5146 set_gdbarch_core_pid_to_str.
5147 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
5148 (sparc_sol2_static_transform_name): Remove
5149 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
5150 call sol2_sigtramp_p.
5151 (sparc64_sol2_init_abi): Call sol2_init_abi.
5152 Remove calls to set_gdbarch_sofun_address_maybe_missing,
5153 set_gdbarch_static_transform_name,
5154 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
5155
5156 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5157
5158 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
5159 * exec.c (validate_exec_file): If from_tty, set both
5160 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
5161 * symfile.c (symbol_file_add_with_addrs): if always_confirm
5162 and from_tty, unconditionally ask a confirmation.
5163
5164 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5165
5166 * target-descriptions.c (tdesc_architecture_name): Protect against
5167 NULL pointer dereference.
5168 (maint_print_xml_tdesc_cmd): New function.
5169 (_initialize_target_descriptions): Register new 'maint print
5170 xml-tdesc' command and give it the filename completer.
5171 * NEWS: Mention new 'maint print xml-tdesc' command.
5172
5173 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5174
5175 * target-descriptions.c (class tdesc_compatible_info): New class.
5176 (struct target_desc): Change type of compatible vector.
5177 (tdesc_compatible_p): Update for change in type of
5178 target_desc::compatible.
5179 (tdesc_compatible_info_list): New function.
5180 (tdesc_compatible_info_arch_name): New function.
5181 (tdesc_add_compatible): Update for change in type of
5182 target_desc::compatible.
5183 (print_c_tdesc::visit_pre): Likewise.
5184
5185 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5186
5187 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
5188 whitespace to underscore.
5189 (maint_print_c_tdesc_cmd): Use fake filename for target
5190 descriptions that came from the target.
5191 (_initialize_target_descriptions): Add filename command completion
5192 for 'maint print c-tdesc'.
5193
5194 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5195
5196 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
5197 lines.
5198
5199 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
5200
5201 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
5202 lines.
5203 (dwarf2_find_location_expression): Likewise.
5204 (call_site_parameter_matches): Likewise.
5205 (dwarf2_compile_expr_to_ax): Likewise.
5206 (disassemble_dwarf_expression): Likewise.
5207 (loclist_describe_location): Likewise.
5208
5209 2020-06-23 Pedro Alves <palves@redhat.com>
5210
5211 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
5212 progspace-and-thread.h. Include scoped-mock-context.h instead.
5213 (register_to_value_test): Use scoped_mock_context.
5214 * regcache.c: Include "scoped-mock-context.h".
5215 (cooked_read_test): Don't error out if a target is already pushed.
5216 Use scoped_mock_context. Adjust.
5217 * scoped-mock-context.h: New file.
5218
5219 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5220
5221 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
5222 initializer.
5223 (ada_language::is_string_type_p): New member function.
5224 * c-lang.c (c_language_data): Delete la_is_string_type_p
5225 initializer.
5226 (cplus_language_data): Likewise.
5227 (asm_language_data): Likewise.
5228 (minimal_language_data): Likewise.
5229 * d-lang.c (d_language_data): Likewise.
5230 * f-lang.c (f_is_string_type_p): Delete function, implementation
5231 moved to f_language::is_string_type_p.
5232 (f_language_data): Delete la_is_string_type_p initializer.
5233 (f_language::is_string_type_p): New member function,
5234 implementation from f_is_string_type_p.
5235 * go-lang.c (go_is_string_type_p): Delete function, implementation
5236 moved to go_language::is_string_type_p.
5237 (go_language_data): Delete la_is_string_type_p initializer.
5238 (go_language::is_string_type_p): New member function,
5239 implementation from go_is_string_type_p.
5240 * language.c (language_defn::is_string_type_p): Define new member
5241 function.
5242 (default_is_string_type_p): Make static, add comment copied from
5243 header file.
5244 (unknown_language_data): Delete la_is_string_type_p initializer.
5245 (unknown_language::is_string_type_p): New member function.
5246 (auto_language_data): Delete la_is_string_type_p initializer.
5247 (auto_language::is_string_type_p): New member function.
5248 * language.h (language_data): Delete la_is_string_type_p field.
5249 (language_defn::is_string_type_p): Declare new function.
5250 (default_is_string_type_p): Delete desclaration, move comment to
5251 definition.
5252 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
5253 moved to m2_language::is_string_type_p.
5254 (m2_language_data): Delete la_is_string_type_p initializer.
5255 (m2_language::is_string_type_p): New member function,
5256 implementation from m2_is_string_type_p.
5257 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
5258 initializer.
5259 * opencl-lang.c (opencl_language_data): Likewise.
5260 * p-lang.c (pascal_is_string_type_p): Delete function,
5261 implementation moved to pascal_language::is_string_type_p.
5262 (pascal_language_data): Delete la_is_string_type_p initializer.
5263 (pascal_language::is_string_type_p): New member function,
5264 implementation from pascal_is_string_type_p.
5265 * rust-lang.c (rust_is_string_type_p): Delete function,
5266 implementation moved to rust_language::is_string_type_p.
5267 (rust_language_data): Delete la_is_string_type_p initializer.
5268 (rust_language::is_string_type_p): New member function,
5269 implementation from rust_is_string_type_p.
5270 * valprint.c (val_print_scalar_or_string_type_p): Update call to
5271 is_string_type_p.
5272
5273 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5274
5275 * ada-lang.c (ada_language_data): Delete la_print_typedef
5276 initializer.
5277 (ada_language::print_typedef): New member function.
5278 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
5279 (cplus_language_data): Likewise.
5280 (asm_language_data): Likewise.
5281 (minimal_language_data): Likewise.
5282 * d-lang.c (d_language_data): Likewise.
5283 * f-lang.c (f_language_data): Likewise.
5284 (f_language::print_typedef): New member function.
5285 * go-lang.c (go_language_data): Delete la_print_typedef
5286 initializer.
5287 * language.c (language_defn::print_typedef): Define member
5288 function.
5289 (unknown_language_data): Delete la_print_typedef initializer.
5290 (unknown_language::print_typedef): New member function.
5291 (auto_language_data): Delete la_print_typedef initializer.
5292 (auto_language::print_typedef): New member function.
5293 * language.h (language_data): Delete la_print_typedef field.
5294 (language_defn::print_typedef): Declare new member function.
5295 (LA_PRINT_TYPEDEF): Update call to print_typedef.
5296 (default_print_typedef): Delete declaration.
5297 * m2-lang.c (m2_language_data): Delete la_print_typedef
5298 initializer.
5299 (m2_language::print_typedef): New member function.
5300 * objc-lang.c (objc_language_data): Delete la_print_typedef
5301 initializer.
5302 * opencl-lang.c (opencl_language_data): Likewise.
5303 * p-lang.c (pascal_language_data): Likewise.
5304 (pascal_language::print_typedef): New member function.
5305 * rust-lang.c (rust_print_typedef): Delete function,
5306 implementation moved to rust_language::print_typedef.
5307 (rust_language): Delete la_print_typedef initializer.
5308 (rust_language::print_typedef): New member function,
5309 implementation from rust_print_typedef.
5310 * typeprint.c (default_print_typedef): Delete.
5311
5312 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5313
5314 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
5315 (ada_language::printstr): New member function.
5316 * c-lang.c (c_language_data): Delete la_printstr initializer.
5317 (cplus_language_data): Likewise.
5318 (asm_language_data): Likewise.
5319 (minimal_language_data): Likewise.
5320 * d-lang.c (d_language_data): Likewise.
5321 * f-lang.c (f_printstr): Rename to f_language::printstr.
5322 (f_language_data): Delete la_printstr initializer.
5323 (f_language::printstr): New member function, implementation from
5324 f_printstr.
5325 * go-lang.c (go_language_data): Delete la_printstr initializer.
5326 * language.c (language_defn::printstr): Define new member
5327 function.
5328 (unk_lang_printstr): Delete.
5329 (unknown_language_data): Delete la_printstr initializer.
5330 (unknown_language::printstr): New member function.
5331 (auto_language_data): Delete la_printstr initializer.
5332 (auto_language::printstr): New member function.
5333 * language.h (language_data): Delete la_printstr field.
5334 (language_defn::printstr): Declare new member function.
5335 (LA_PRINT_STRING): Update call to printstr.
5336 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
5337 (m2_language_data): Delete la_printstr initializer.
5338 (m2_language::printstr): New member function, implementation from
5339 m2_printstr.
5340 * objc-lang.c (objc_language_data): Delete la_printstr
5341 initializer.
5342 * opencl-lang.c (opencl_language_data): Likewise.
5343 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
5344 (pascal_language_data): Delete la_printstr initializer.
5345 (pascal_language::printstr): New member function, implementation
5346 from pascal_printstr.
5347 * p-lang.h (pascal_printstr): Delete declaration.
5348 * rust-lang.c (rust_printstr): Update header comment.
5349 (rust_language_data): Delete la_printstr initializer.
5350 (rust_language::printstr): New member function.
5351
5352 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5353
5354 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
5355 (ada_language::printchar): New member function.
5356 * c-lang.c (c_language_data): Delete la_printchar initializer.
5357 (cplus_language_data): Likewise.
5358 (asm_language_data): Likewise.
5359 (minimal_language_data): Likewise.
5360 * d-lang.c (d_language_data): Likewise.
5361 * f-lang.c (f_printchar): Rename to f_language::printchar.
5362 (f_language_data): Delete la_printchar initializer.
5363 (f_language::printchar): New member function, implementation from
5364 f_printchar.
5365 * go-lang.c (go_language_data): Delete la_printchar initializer.
5366 * language.c (unk_lang_printchar): Delete.
5367 (language_defn::printchar): Define new member function.
5368 (unknown_language_data): Delete la_printchar initializer.
5369 (unknown_language::printchar): New member function.
5370 (auto_language_data): Delete la_printchar initializer.
5371 (auto_language::printchar): New member function.
5372 * language.h (language_data): Delete la_printchar field.
5373 (language_defn::printchar): Declare new member function.
5374 (LA_PRINT_CHAR): Update call to printchar.
5375 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
5376 (m2_language::printchar): New member function.
5377 * objc-lang.c (objc_language_data): Delete la_printchar
5378 initializer.
5379 * opencl-lang.c (opencl_language_data): Likewise.
5380 * p-lang.c (pascal_language_data): Delete la_printchar
5381 initializer.
5382 (pascal_language::printchar): New member function.
5383 * rust-lang.c (rust_printchar): Rename to
5384 rust_language::printchar.
5385 (rust_language_data): Delete la_printchar initializer.
5386 (rust_language::printchar): New member function, implementation
5387 from rust_printchar.
5388
5389 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5390
5391 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
5392 (ada_language_data): Delete la_emitchar initializer.
5393 (ada_language::emitchar): New member function, implementation from
5394 emit_char.
5395 * c-lang.c (c_language_data): Delete la_emitchar initializer.
5396 (cplus_language_data): Likewise.
5397 (asm_language_data): Likewise.
5398 (minimal_language_data): Likewise.
5399 * d-lang.c (d_language_data): Likewise.
5400 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
5401 (f_language_data): Delete la_emitchar initializer.
5402 (f_language::emitchar): New member function, implementation from
5403 f_emit_char.
5404 * go-lang.c (go_language_data): Delete la_emitchar initializer.
5405 * language.c (unk_lang_emit_char): Delete.
5406 (language_defn::emitchar): New member function definition.
5407 (unknown_language_data): Delete la_emitchar initializer.
5408 (unknown_language::emitchar): New member function.
5409 (auto_language_data): Delete la_emitchar initializer.
5410 (auto_language::emitchar): New member function.
5411 * language.h (language_data): Delete la_emitchar field.
5412 (language_defn::emitchar): New member field declaration.
5413 (LA_EMIT_CHAR): Update call to emitchar.
5414 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
5415 (m2_language_data): Delete la_emitchar initializer.
5416 (m2_language::emitchar): New member function, implementation from
5417 m2_emit_char.
5418 * objc-lang.c (objc_language_data): Delete la_emitchar
5419 initializer.
5420 * opencl-lang.c (opencl_language_data): Likewise.
5421 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
5422 (pascal_language_data): Delete la_emitchar initializer.
5423 (pascal_language::emitchar): New member function, implementation
5424 from pascal_emit_char.
5425 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
5426 (rust_language_data): Delete la_emitchar initializer.
5427 (rust_language::emitchar): New member function, implementation
5428 from rust_emitchar.
5429
5430 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5431
5432 * ada-lang.c (resolve): Rename to ada_language::post_parser.
5433 (ada_language_data): Delete la_post_parser initializer.
5434 (ada_language::post_parser): New member function.
5435 * c-lang.c (c_language_data): Delete la_post_parser initializer.
5436 (cplus_language_data): Likewise.
5437 (asm_language_data): Likewise.
5438 (minimal_language_data): Likewise.
5439 * d-lang.c (d_language_data): Likewise.
5440 * f-lang.c (f_language_data): Likewise.
5441 * go-lang.c (go_language_data): Likewise.
5442 * language.c (unknown_language_data): Likewise.
5443 (auto_language_data): Likewise.
5444 * language.h (language_data): Delete la_post_parser field.
5445 (language_defn::post_parser): New member function.
5446 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
5447 * objc-lang.c (objc_language_data): Likewise.
5448 * opencl-lang.c (opencl_language_data): Likewise.
5449 * p-lang.c (pascal_language_data): Likewise.
5450 * parse.c (parse_exp_in_context): Update call to post_parser.
5451 (null_post_parser): Delete definition.
5452 * parser-defs.h (null_post_parser): Delete declaration.
5453 * rust-lang.c (rust_language_data): Delete la_post_parser
5454 initializer.
5455
5456 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5457
5458 * ada-lang.c (parse): Rename to ada_language::parser.
5459 (ada_language_data): Delete la_parser initializer.
5460 (ada_language::parser): New member function, implementation from
5461 parse.
5462 * c-lang.c (c_language_data): Delete la_parser initializer.
5463 (cplus_language_data): Likewise.
5464 (asm_language_data): Likewise.
5465 (minimal_language_data): Likewise.
5466 * d-lang.c (d_language_data): Likewise.
5467 (d_language::parser): New member function.
5468 * f-lang.c (f_language_data): Delete la_parser initializer.
5469 (f_language::parser): New member function.
5470 * go-lang.c (go_language_data): Delete la_parser initializer.
5471 (go_language::parser): New member function.
5472 * language.c (unk_lang_parser): Delete.
5473 (language_defn::parser): Define new member function.
5474 (unknown_language_data): Delete la_parser initializer.
5475 (unknown_language::parser): New member function.
5476 (auto_language_data): Delete la_parser initializer.
5477 (auto_language::parser): New member function.
5478 * language.h (language_data): Delete la_parser field.
5479 (language_defn::parser): Declare new member function.
5480 * m2-lang.c (m2_language_data): Delete la_parser initializer.
5481 (m2_language::parser): New member function.
5482 * objc-lang.c (objc_language_data): Delete la_parser initializer.
5483 * opencl-lang.c (opencl_language_data): Likewise.
5484 * p-lang.c (pascal_language_data): Likewise.
5485 (pascal_language::parser): New member function.
5486 * parse.c (parse_exp_in_context): Update call to parser.
5487 * rust-lang.c (rust_language_data): Delete la_parser initializer.
5488 (rust_language::parser): New member function.
5489
5490 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
5491
5492 * top.c (print_gdb_configuration): Print --with-python-libdir
5493 configuration value.
5494
5495 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5496
5497 * NEWS: Mention change to the alias command.
5498
5499 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5500
5501 * cli/cli-cmds.c (lookup_cmd_for_default_args)
5502 (alias_command_completer)
5503 (make_alias_options_def_group): New functions.
5504 (alias_opts, alias_option_defs): New struct and array.
5505 (alias_usage_error): Update usage.
5506 (alias_command): Handles optional DEFAULT-ARGS... arguments.
5507 Use option framework.
5508 (_initialize_cli_cmds): Update alias command help.
5509 Update aliases command help.
5510 (show_user):
5511 Add NULL for new default_args lookup_cmd argument.
5512 (valid_command_p): Rename to validate_aliased_command.
5513 Add NULL for new default_args lookup_cmd argument. Verify that the
5514 aliased_command has no default args.
5515 * cli/cli-decode.c (help_cmd): Show aliases definitions.
5516 (lookup_cmd_1, lookup_cmd): New argument default_args.
5517 (add_alias_cmd):
5518 Add NULL for new default_args lookup_cmd argument.
5519 (print_help_for_command): Show default args under the layout
5520 alias some_alias = some_aliased_cmd some_alias_default_arg.
5521 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
5522 xfree default_args in destructor.
5523 * cli/cli-script.c (process_next_line, do_define_command):
5524 Add NULL for new default_args lookup_cmd argument.
5525 * command.h: Declare new default_args argument in lookup_cmd
5526 and lookup_cmd_1.
5527 * completer.c (complete_line_internal_1):
5528 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5529 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
5530 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
5531 Likewise.
5532 * infcmd.c (_initialize_infcmd): Likewise.
5533 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
5534 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
5535 * python/py-param.c (add_setshow_generic): Likewise.
5536 * remote.c (_initialize_remote): Likewise.
5537 * top.c (execute_command): Prepend default_args if command has some.
5538 (set_verbose):
5539 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5540 * tracepoint.c (validate_actionline, encode_actions_1):
5541 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
5542
5543 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5544
5545 * jit.c (jit_read_descriptor): Use bool as the return type.
5546 (jit_breakpoint_re_set_internal): Use bool as the return type.
5547 Invert the return value logic; return true if the jit breakpoint
5548 has been successfully initialized.
5549 (jit_inferior_init): Update the call to
5550 jit_breakpoint_re_set_internal.
5551
5552 2020-06-22 Pedro Alves <palves@redhat.com>
5553
5554 PR gdb/25939
5555 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
5556 Use the current inferior instead. Don't return
5557 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
5558 wait again.
5559 * sol-thread.c (sol_thread_target::wait): Don't reference
5560 inferior_ptid.
5561 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
5562 (sol_update_thread_list_callback): Use the current inferior's pid
5563 instead of inferior_ptid.
5564
5565 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5566
5567 * procfs.c: Cleanup many comments.
5568
5569 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
5570 (AFTER_WATCHFLAG): Replace by value.
5571
5572 (MAIN_PROC_NAME_FORMAT): Inline ...
5573 (create_procinfo): ... here.
5574
5575 (procfs_debug_inferior): Remove SYS_exec handling.
5576 (syscall_is_exec): Likewise.
5577 (procfs_set_exec_trap): Likewise.
5578
5579 (syscall_is_lwp_exit): Inline in callers.
5580 (syscall_is_exit): Likewise.
5581 (syscall_is_exec): Likewise.
5582 (syscall_is_lwp_create): Likewise.
5583
5584 (invalidate_cache): Remove #if 0 code.
5585
5586 (make_signal_thread_runnable): Remove.
5587 (procfs_target::resume): Remove #if 0 code.
5588
5589 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5590
5591 PR gdb/25939
5592 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
5593 call ...
5594 (procfs_target::create_inferior): ... here.
5595
5596 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5597
5598 * exec.c (validate_exec_file): Ensure the build-id is up to
5599 date by calling reopen_exec_file (that checks file timestamp
5600 to decide to re-read the file).
5601
5602 2020-06-18 Pedro Alves <palves@redhat.com>
5603
5604 PR gdb/25412
5605 * gdbthread.h (delete_thread, delete_thread_silent)
5606 (find_thread_ptid): Update comments.
5607 * thread.c (current_thread_): New global.
5608 (is_current_thread): Move higher, and reimplement.
5609 (inferior_thread): Reimplement.
5610 (set_thread_exited): Use bool. Add assertions.
5611 (add_thread_silent): Simplify thread-reuse handling by always
5612 calling delete_thread.
5613 (delete_thread): Remove intro comment.
5614 (find_thread_ptid): Skip exited threads.
5615 (switch_to_thread_no_regs): Write to current_thread_.
5616 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
5617 INFERIOR_PTID. Clear current_thread_.
5618
5619 2020-06-18 Pedro Alves <palves@redhat.com>
5620
5621 * aix-thread.c (pd_update): Use switch_to_thread.
5622
5623 2020-06-18 Pedro Alves <palves@redhat.com>
5624
5625 * ravenscar-thread.c (ravenscar_thread_target): Update.
5626 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
5627 (ravenscar_thread_target::add_active_thread): ... this. Don't
5628 set m_base_ptid here. Update to avoid referencing inferior_ptid.
5629 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
5630
5631 2020-06-18 Pedro Alves <palves@redhat.com>
5632
5633 * nat/windows-nat.c (current_windows_thread): Remove.
5634 * nat/windows-nat.h (current_windows_thread): Remove.
5635 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
5636 Adjust.
5637 (display_selectors): Adjust to fetch the current
5638 windows_thread_info based on inferior_ptid.
5639 (fake_create_process): No longer write to current_windows_thread.
5640 (windows_nat_target::get_windows_debug_event):
5641 Don't set inferior_ptid or current_windows_thread.
5642 (windows_nat_target::wait): Adjust to not rely on
5643 current_windows_thread.
5644 (do_initial_windows_stuff): Now a method of windows_nat_target.
5645 Switch to the last_ptid thread.
5646 (windows_nat_target::attach): Adjust.
5647 (windows_nat_target::detach): Use switch_to_no_thread instead of
5648 writing to inferior_ptid directly.
5649 (windows_nat_target::create_inferior): Adjust.
5650
5651 2020-06-18 Pedro Alves <palves@redhat.com>
5652
5653 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
5654
5655 2020-06-18 Pedro Alves <palves@redhat.com>
5656
5657 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
5658 after creating it, instead of writing to inferior_ptid. Don't
5659 write to inferior_ptid.
5660
5661 2020-06-18 Pedro Alves <palves@redhat.com>
5662
5663 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
5664
5665 2020-06-18 Pedro Alves <palves@redhat.com>
5666
5667 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
5668 it, instead of writing to inferior_ptid.
5669
5670 2020-06-18 Pedro Alves <palves@redhat.com>
5671
5672 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
5673 to inferior_ptid.
5674
5675 2020-06-18 Pedro Alves <palves@redhat.com>
5676
5677 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
5678 instead of writing to inferior_ptid directly.
5679
5680 2020-06-18 Pedro Alves <palves@redhat.com>
5681
5682 * corelow.c (core_target::close): Use switch_to_no_thread instead
5683 of writing to inferior_ptid directly.
5684 (add_to_thread_list, core_target_open): Use switch_to_thread
5685 instead of writing to inferior_ptid directly.
5686
5687 2020-06-18 Pedro Alves <palves@redhat.com>
5688
5689 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
5690 inferior_ptid.
5691 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
5692 inferior_ptid.
5693 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
5694 inferior_ptid directly.
5695 (darwin_nat_target::init_thread_list): Switch to thread, instead
5696 of writing to inferior_ptid.
5697 (darwin_nat_target::attach): Don't write to inferior_ptid.
5698 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
5699
5700 2020-06-18 Pedro Alves <palves@redhat.com>
5701
5702 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
5703 thread.
5704 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
5705 Instead use switch_to_thread.
5706 (gnu_nat_target::detach): Use switch_to_no_thread
5707 instead of writing to inferior_ptid directly. Used passed-in
5708 inferior instead of looking up the inferior by pid.
5709
5710 2020-06-18 Pedro Alves <palves@redhat.com>
5711
5712 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
5713 inferior_ptid.
5714
5715 2020-06-18 Pedro Alves <palves@redhat.com>
5716
5717 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
5718 inferior_ptid.
5719 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
5720 thread.
5721 (nto_procfs_target::detach): Avoid referencing
5722 inferior_ptid. Use switch_to_no_thread instead of writing to
5723 inferior_ptid directly.
5724 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
5725 instead of writing to inferior_ptid directly.
5726 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
5727 to thread.
5728
5729 2020-06-18 Pedro Alves <palves@redhat.com>
5730
5731 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
5732 after creating it, instead of writing to inferior_ptid.
5733 (gdbsim_target_open): Use switch_to_no_thread instead of writing
5734 to inferior_ptid directly.
5735 (gdbsim_target::wait): Don't write to inferior_ptid.
5736
5737 2020-06-18 Pedro Alves <palves@redhat.com>
5738
5739 * remote.c (remote_target::remote_notice_new_inferior): Use
5740 switch_to_thread instead of writing to inferior_ptid directly.
5741 (remote_target::add_current_inferior_and_thread): Use
5742 switch_to_no_thread instead of writing to inferior_ptid directly.
5743 (extended_remote_target::attach): Use switch_to_inferior_no_thread
5744 and switch_to_thread instead of using set_current_inferior or
5745 writing to inferior_ptid directly.
5746
5747 2020-06-18 Pedro Alves <palves@redhat.com>
5748
5749 * tracectf.c (ctf_target_open): Switch to added thread instead of
5750 writing to inferior_ptid directly.
5751 (ctf_target::close): Use switch_to_no_thread instead of writing to
5752 inferior_ptid directly.
5753
5754 2020-06-18 Pedro Alves <palves@redhat.com>
5755
5756 * tracefile-tfile.c (tfile_target_open): Don't write to
5757 inferior_ptid directly, instead switch to added thread.
5758 (tfile_target::close): Use switch_to_no_thread instead of writing
5759 to inferior_ptid directly.
5760
5761 2020-06-18 Pedro Alves <palves@redhat.com>
5762
5763 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
5764 (procfs_target::detach): Use switch_to_no_thread
5765 instead of writing to inferior_ptid directly.
5766 (do_attach): Change return type to void. Switch to the added
5767 thread.
5768 (procfs_target::create_inferior): Switch to the added thread.
5769 (procfs_do_thread_registers): Don't write to inferior_ptid.
5770
5771 2020-06-18 Pedro Alves <palves@redhat.com>
5772
5773 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
5774 of writing to inferior_ptid.
5775 (scoped_restore_exited_inferior): Delete.
5776 (handle_vfork_child_exec_or_exit): Simplify using
5777 scoped_restore_current_pspace_and_thread. Use switch_to_thread
5778 instead of writing to inferior_ptid.
5779 (THREAD_STOPPED_BY): Delete.
5780 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
5781 (thread_stopped_by_hw_breakpoint): Delete.
5782 (save_waitstatus): Use
5783 scoped_restore_current_thread+switch_to_thread, and call
5784 target_stopped_by_watchpoint instead of
5785 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
5786 instead of thread_stopped_by_sw_breakpoint, and
5787 target_stopped_by_hw_breakpoint instead of
5788 thread_stopped_by_hw_breakpoint.
5789 (handle_inferior_event)
5790 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
5791 inferior_ptid directly, nor
5792 set_current_inferior/set_current_program_space. Use
5793 switch_to_thread / switch_to_inferior_no_thread instead.
5794
5795 2020-06-18 Pedro Alves <palves@redhat.com>
5796
5797 * target.c (generic_mourn_inferior): Use switch_to_no_thread
5798 instead of writing to inferior_ptid.
5799
5800 2020-06-18 Pedro Alves <palves@redhat.com>
5801
5802 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
5803 added thread.
5804 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
5805 to the added thread.
5806 (inf_ptrace_target::detach_success): Use switch_to_no_thread
5807 instead of writing to inferior_ptid.
5808
5809 2020-06-18 Pedro Alves <palves@redhat.com>
5810
5811 * gdbarch-selftests.c: Include "progspace-and-thread.h".
5812 (register_to_value_test): Mock a program_space too. Heap-allocate
5813 the address space. Don't write to inferior_ptid. Use
5814 switch_to_thread instead.
5815
5816 2020-06-18 Pedro Alves <palves@redhat.com>
5817
5818 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
5819 Delete.
5820 (find_signalled_thread()): New, factored out from
5821 linux_make_corefile_notes and adjusted to handle exited threads.
5822 (linux_make_corefile_notes): Adjust to use the new
5823 find_signalled_thread.
5824
5825 2020-06-18 Pedro Alves <palves@redhat.com>
5826
5827 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
5828 of saving/restoring inferior_ptid.
5829
5830 2020-06-17 Tom Tromey <tom@tromey.com>
5831
5832 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
5833 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
5834 declare.
5835 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
5836
5837 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
5840 of partial symtabs.
5841
5842 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * regformats/reg-arm.dat: Remove.
5845 * regformats/reg-bfin.dat: Remove.
5846 * regformats/reg-cris.dat: Remove.
5847 * regformats/reg-crisv32.dat: Remove.
5848 * regformats/reg-m32r.dat: Remove.
5849 * regformats/reg-tilegx.dat: Remove.
5850 * regformats/reg-tilegx32.dat: Remove.
5851
5852 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5853
5854 * features/Makefile (WHICH): Remove arm files.
5855 * regformats/arm/arm-with-iwmmxt.dat: Remove.
5856 * regformats/arm/arm-with-neon.dat: Remove.
5857 * regformats/arm/arm-with-vfpv2.dat: Remove.
5858 * regformats/arm/arm-with-vfpv3.dat: Remove.
5859
5860 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
5861
5862 * features/Makefile (XMLTOC): Remove rx.xml.
5863
5864 2020-06-17 Pedro Alves <palves@redhat.com>
5865
5866 * gdbthread.h (thread_control_state) <trap_expected> Update
5867 comments.
5868
5869 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5870
5871 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
5872 ada_language::lookup_symbol_nonlocal.
5873 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
5874 (ada_language::lookup_symbol_nonlocal): New member function,
5875 implementation from ada_lookup_symbol_nonlocal.
5876 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
5877 initializer.
5878 (cplus_language_data): Delete la_lookup_symbol_nonlocal
5879 initializer.
5880 (cplus_language::lookup_symbol_nonlocal): New member function.
5881 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
5882 (minimal_language_data) Likewise.
5883 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
5884 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
5885 initializer.
5886 (d_language::lookup_symbol_nonlocal): New member function.
5887 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
5888 initializer.
5889 (f_language::lookup_symbol_nonlocal): New member function.
5890 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
5891 initializer.
5892 * language.c (unknown_language_data): Likewise.
5893 (auto_language_data): Likewise.
5894 * language.h (language_data): Delete la_lookup_symbol_nonlocal
5895 field.
5896 (language_defn::lookup_symbol_nonlocal): New member function.
5897 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
5898 initializer.
5899 * objc-lang.c (objc_language_data): Likewise.
5900 * opencl-lang.c (opencl_language_data): Likewise.
5901 * p-lang.c (pascal_language_data): Likewise.
5902 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
5903 rust_language::lookup_symbol_nonlocal.
5904 (rust_language_data): Delete la_lookup_symbol_nonlocal
5905 initializer.
5906 (rust_language::lookup_symbol_nonlocal): New member function,
5907 implementation from rust_lookup_symbol_nonlocal.
5908 * symtab.c (lookup_symbol_aux): Update call to
5909 lookup_symbol_nonlocal.
5910 (basic_lookup_symbol_nonlocal): Rename to...
5911 (language_defn::lookup_symbol_nonlocal): ...this, and update
5912 header comment. Remove language_defn parameter, and replace with
5913 uses of `this'.
5914 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
5915
5916 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5917
5918 * ada-lang.c (ada_language_data): Delete la_value_print_inner
5919 initializer.
5920 (ada_language::value_print_inner): New member function.
5921 * c-lang.c (c_language_data): Delete la_value_print_inner
5922 initializer.
5923 (cplus_language_data): Likewise.
5924 (asm_language_data): Likewise.
5925 (minimal_language_data): Likewise.
5926 * d-lang.c (d_language_data): Likewise.
5927 (d_language::value_print_inner): New member function.
5928 * f-lang.c (f_language_data): Delete la_value_print_inner
5929 initializer.
5930 (f_language::value_print_inner): New member function.
5931 * f-lang.h (f_value_print_innner): Rename to...
5932 (f_value_print_inner): ...this (note spelling of 'inner').
5933 * f-valprint.c (f_value_print_innner): Rename to...
5934 (f_value_print_inner): ...this (note spelling of 'inner').
5935 * go-lang.c (go_language_data): Delete la_value_print_inner
5936 initializer.
5937 (go_language::value_print_inner): New member function.
5938 * language.c (language_defn::value_print_inner): Define new member
5939 function.
5940 (unk_lang_value_print_inner): Delete.
5941 (unknown_language_data): Delete la_value_print_inner initializer.
5942 (unknown_language::value_print_inner): New member function.
5943 (auto_language_data): Delete la_value_print_inner initializer.
5944 (auto_language::value_print_inner): New member function.
5945 * language.h (language_data): Delete la_value_print_inner field.
5946 (language_defn::value_print_inner): Delcare new member function.
5947 * m2-lang.c (m2_language_data): Delete la_value_print_inner
5948 initializer.
5949 (m2_language::value_print_inner): New member function.
5950 * objc-lang.c (objc_language_data): Delete la_value_print_inner
5951 initializer.
5952 * opencl-lang.c (opencl_language_data): Likewise.
5953 * p-lang.c (pascal_language_data): Likewise.
5954 (pascal_language::value_print_inner): New member function.
5955 * rust-lang.c (rust_language_data): Delete la_value_print_inner
5956 initializer.
5957 (rust_language::value_print_inner): New member function.
5958 * valprint.c (do_val_print): Update call to value_print_inner.
5959
5960 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5961
5962 * ada-lang.c (ada_language_data): Delete la_value_print
5963 initializer.
5964 (ada_language::value_print): New member function.
5965 * c-lang.c (c_language_data): Delete la_value_print initializer.
5966 (cplus_language_data): Likewise.
5967 (asm_language_data): Likewise.
5968 (minimal_language_data): Likewise.
5969 * d-lang.c (d_language_data): Likewise.
5970 * f-lang.c (f_language_data): Likewise.
5971 * go-lang.c (go_language_data): Likewise.
5972 * language.c (unk_lang_value_print): Delete.
5973 (language_defn::value_print): Define new member function.
5974 (unknown_language_data): Delete la_value_print initializer.
5975 (unknown_language::value_print): New member function.
5976 (auto_language_data): Delete la_value_print initializer.
5977 (auto_language::value_print): New member function.
5978 * language.h (language_data): Delete la_value_print field.
5979 (language_defn::value_print): Declare new member function.
5980 (LA_VALUE_PRINT): Update call to value_print.
5981 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
5982 * objc-lang.c (objc_language_data): Likewise.
5983 * opencl-lang.c (opencl_language_data): Likewise.
5984 * p-lang.c (pascal_language_data): Likewise.
5985 (pascal_language::value_print): New member function.
5986 * rust-lang.c (rust_language_data): Delete la_value_print
5987 initializer.
5988
5989 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
5990
5991 * ada-lang.c (ada_watch_location_expression): Rename to
5992 ada_language::watch_location_expression.
5993 (ada_language_data): Delete la_watch_location_expression
5994 initializer.
5995 (ada_language::watch_location_expression): New member function,
5996 implementation from ada_watch_location_expression.
5997 * breakpoint.c (watch_command_1): Update call to
5998 watch_location_expression.
5999 * c-lang.c (c_watch_location_expression): Rename to
6000 language_defn::watch_location_expression.
6001 (c_language_data): Delete la_watch_location_expression
6002 initializer.
6003 (cplus_language_data): Likewise.
6004 (asm_language_data): Likewise.
6005 (minimal_language_data): Likewise.
6006 * c-lang.h (c_watch_location_expression): Delete declaration.
6007 * d-lang.c (d_language_data): Delete la_watch_location_expression
6008 initializer.
6009 * f-lang.c (f_language_data): Likewise.
6010 * go-lang.c (go_language_data): Likewise.
6011 * language.c (language_defn::watch_location_expression): Member
6012 function implementation from c_watch_location_expression.
6013 (unknown_language_data): Delete la_watch_location_expression
6014 initializer.
6015 (auto_language_data): Likewise.
6016 * language.h (language_data): Delete la_watch_location_expression
6017 field.
6018 (language_defn::watch_location_expression): Declare new member
6019 function.
6020 * m2-lang.c (m2_language_data): Delete
6021 la_watch_location_expression initializer.
6022 * objc-lang.c (objc_language_data): Likewise.
6023 * opencl-lang.c (opencl_language_data): Likewise.
6024 * p-lang.c (pascal_language_data): Likewise.
6025 * rust-lang.c (rust_watch_location_expression): Rename to
6026 rust_language::watch_location_expression.
6027 (rust_language_data): Delete la_watch_location_expression
6028 initializer.
6029 (rust_language::watch_location_expression): New member function,
6030 implementation from rust_watch_location_expression.
6031
6032 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6033
6034 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
6035 ada_language::collect_symbol_completion_matches.
6036 (ada_language_data): Delete la_collect_symbol_completion_matches
6037 initializer.
6038 (ada_language::collect_symbol_completion_matches): New member
6039 function, implementation from
6040 ada_collect_symbol_completion_matches.
6041 * c-lang.c (c_language_data): Delete
6042 la_collect_symbol_completion_matches initializer.
6043 (cplus_language_data): Likewise.
6044 (asm_language_data): Likewise.
6045 (minimal_language_data): Likewise.
6046 * d-lang.c (d_language_data): Likewise.
6047 * f-lang.c (f_collect_symbol_completion_matches): Rename to
6048 f_language::collect_symbol_completion_matches.
6049 (f_language_data): Delete la_collect_symbol_completion_matches
6050 initializer.
6051 (f_language::collect_symbol_completion_matches) New member
6052 function, implementation from f_collect_symbol_completion_matches.
6053 * go-lang.c (go_language_data): Delete
6054 la_collect_symbol_completion_matches initializer.
6055 * language.c (unknown_language_data): Likewise.
6056 (auto_language_data): Likewise.
6057 * language.h (language_data): Delete
6058 la_collect_symbol_completion_matches field.
6059 (language_defn::collect_symbol_completion_matches): New member
6060 function.
6061 * m2-lang.c (m2_language_data): Delete
6062 la_collect_symbol_completion_matches initializer.
6063 * objc-lang.c (objc_language_data): Likewise.
6064 * opencl-lang.c (opencl_language_data): Likewise.
6065 * p-lang.c (pascal_language_data): Likewise.
6066 * rust-lang.c (rust_language_data): Likewise.
6067 * symtab.c (default_collect_symbol_completion_matches): Delete.
6068 (collect_symbol_completion_matches): Update call to
6069 collect_symbol_completion_matches.
6070 (collect_symbol_completion_matches_type): Likewise.
6071 * symtab.h (default_collect_symbol_completion_matches): Delete
6072 declaration.
6073
6074 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6075
6076 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
6077 (ada_language_data): Delete la_word_break_characters initializer.
6078 (ada_language::word_break_characters): New member function.
6079 * c-lang.c (c_language_data): Delete la_word_break_characters
6080 initializer.
6081 (cplus_language_data): Likewise.
6082 (asm_language_data): Likewise.
6083 (minimal_language_data): Likewise.
6084 * completer.c: Update global comment.
6085 (advance_to_expression_complete_word_point): Update call to
6086 word_break_characters.
6087 (complete_files_symbols): Likewise.
6088 (complete_line_internal_1): Likewise.
6089 (default_completer_handle_brkchars): Likewise.
6090 (skip_quoted_chars): Likewise.
6091 * d-lang.c (d_language_data): Delete la_word_break_characters
6092 initializer.
6093 * f-lang.c (f_word_break_characters): Delete.
6094 (f_language_data): Delete la_word_break_characters initializer.
6095 (f_language::word_break_characters): New member function.
6096 * go-lang.c (go_language_data): Delete la_word_break_characters
6097 initializer.
6098 * language.c (unknown_language_data): Likewise.
6099 (auto_language_data): Likewise.
6100 * language.h (default_word_break_characters): Move declaration to
6101 earlier in the file.
6102 (language_data): Delete la_word_break_characters field.
6103 (language_defn::word_break_characters): New member function.
6104 * m2-lang.c (m2_language_data): Delete la_word_break_characters
6105 initializer.
6106 * objc-lang.c (objc_language_data): Likewise.
6107 * opencl-lang.c (opencl_language_data): Likewise.
6108 * p-lang.c (pascal_language_data): Likewise.
6109 * rust-lang.c (rust_language_data): Likewise.
6110
6111 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6112
6113 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
6114 (ada_language_data): Delete la_get_symbol_name_matcher
6115 initializer.
6116 (language_defn::get_symbol_name_matcher_inner): New member
6117 function.
6118 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
6119 initializer.
6120 (cplus_language_data): Likewise.
6121 (cplus_language::get_symbol_name_matcher_inner): New member
6122 function.
6123 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
6124 (minimal_language_data): Likewise.
6125 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
6126 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
6127 initializer.
6128 * dictionary.c (iter_match_first_hashed): Update call to
6129 get_symbol_name_matcher.
6130 (iter_match_next_hashed): Likewise.
6131 (iter_match_next_linear): Likewise.
6132 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
6133 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
6134 initializer.
6135 (f_language::get_symbol_name_matcher_inner): New member function.
6136 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
6137 initializer.
6138 * language.c (default_symbol_name_matcher): Update header comment,
6139 make static.
6140 (language_defn::get_symbol_name_matcher): New definition.
6141 (language_defn::get_symbol_name_matcher_inner): Likewise.
6142 (get_symbol_name_matcher): Delete.
6143 (unknown_language_data): Delete la_get_symbol_name_matcher
6144 initializer.
6145 (auto_language_data): Likewise.
6146 * language.h (language_data): Delete la_get_symbol_name_matcher
6147 field.
6148 (language_defn::get_symbol_name_matcher): New member function.
6149 (language_defn::get_symbol_name_matcher_inner): Likewise.
6150 (default_symbol_name_matcher): Delete declaration.
6151 * linespec.c (find_methods): Update call to
6152 get_symbol_name_matcher.
6153 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
6154 initializer.
6155 * minsyms.c (lookup_minimal_symbol): Update call to
6156 get_symbol_name_matcher.
6157 (iterate_over_minimal_symbols): Likewise.
6158 * objc-lang.c (objc_language_data): Delete
6159 la_get_symbol_name_matcher initializer.
6160 * opencl-lang.c (opencl_language_data): Likewise.
6161 * p-lang.c (pascal_language_data): Likewise.
6162 * psymtab.c (psymbol_name_matches): Update call to
6163 get_symbol_name_matcher.
6164 * rust-lang.c (rust_language_data): Delete
6165 la_get_symbol_name_matcher initializer.
6166 * symtab.c (symbol_matches_search_name): Update call to
6167 get_symbol_name_matcher.
6168 (compare_symbol_name): Likewise.
6169
6170 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6171
6172 * ada-lang.c (ada_language_data): Delete la_compute_program
6173 initializer.
6174 * c-lang.c (c_language_data): Likewise.
6175 (c_language::compute_program): New member function.
6176 (cplus_language_data): Delete la_compute_program initializer.
6177 (cplus_language::compute_program): New member function.
6178 (asm_language_data): Delete la_compute_program initializer.
6179 (minimal_language_data): Likewise.
6180 * c-lang.h (c_compute_program): Update comment.
6181 (cplus_compute_program): Likewise.
6182 * compile/compile-c-support.c (c_compute_program): Likewise.
6183 (cplus_compute_program): Likewise.
6184 * compile/compile.c (compile_to_object): Update call to
6185 la_compute_program.
6186 * d-lang.c (d_language_data): Delete la_compute_program
6187 initializer.
6188 * f-lang.c (f_language_data): Likewise.
6189 * go-lang.c (go_language_data): Likewise.
6190 * language.c (unknown_language_data): Likewise.
6191 (auto_language_data): Likewise.
6192 * language.h (language_data): Delete la_compute_program field.
6193 (language_defn::compute_program): New member function.
6194 * m2-lang.c (m2_language_data): Delete la_compute_program
6195 initializer.
6196 * objc-lang.c (objc_language_data): Likewise.
6197 * opencl-lang.c (opencl_language_data): Likewise.
6198 * p-lang.c (pascal_language_data): Likewise.
6199 * rust-lang.c (rust_language_data): Likewise.
6200
6201 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
6202
6203 * ada-lang.c (ada_language_data) Delete
6204 la_class_name_from_physname initializer.
6205 * c-lang.c (c_language_data): Likewise.
6206 (cplus_language_data): Likewise.
6207 (cplus_language::class_name_from_physname): New member function.
6208 (asm_language_data): Delete la_class_name_from_physname
6209 initializer.
6210 (minimal_language_data): Likewise.
6211 * d-lang.c (d_language_data): Likewise.
6212 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
6213 method on language_defn class.
6214 (guess_full_die_structure_name): Likewise.
6215 * f-lang.c (f_language_data): Delete la_class_name_from_physname
6216 initializer.
6217 * go-lang.c (go_language_data): Likewise.
6218 * language.c (language_class_name_from_physname): Delete.
6219 (unk_lang_class_name): Delete.
6220 (unknown_language_data): Delete la_class_name_from_physname
6221 initializer.
6222 (auto_language_data): Likewise.
6223 * language.h (language_data): Delete la_class_name_from_physname
6224 field.
6225 (language_defn::class_name_from_physname): New function.
6226 (language_class_name_from_physname): Delete declaration.
6227 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
6228 initializer.
6229 * objc-lang.c (objc_language_data): Likewise.
6230 * opencl-lang.c (opencl_language_data): Likewise.
6231 * p-lang.c (pascal_language_data): Likewise.
6232 * rust-lang.c (rust_language_data): Likewise.
6233
6234 2020-06-16 Tom Tromey <tom@tromey.com>
6235
6236 * tui/tui-data.h (STATUS_NAME): New macro.
6237 * tui/tui-layout.c (tui_remove_some_windows)
6238 (initialize_known_windows, tui_register_window)
6239 (tui_layout_split::remove_windows, initialize_layouts)
6240 (tui_new_layout_command): Don't use hard-coded window names.
6241
6242 2020-06-16 Tom Tromey <tom@tromey.com>
6243
6244 PR tui/25348:
6245 * tui/tui.c (tui_ensure_readline_initialized): Rename from
6246 tui_initialize_readline. Only run once. Call rl_initialize.
6247 * tui/tui.h (tui_ensure_readline_initialized): Rename from
6248 tui_initialize_readline.
6249 * tui/tui-io.c (tui_setup_io): Call
6250 tui_ensure_readline_initialized.
6251 * tui/tui-interp.c (tui_interp::init): Update.
6252
6253 2020-06-16 Tom Tromey <tom@tromey.com>
6254
6255 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
6256 Also preserve the status window.
6257
6258 2020-06-16 Tom Tromey <tom@tromey.com>
6259
6260 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
6261 where m_window==nullptr.
6262
6263 2020-06-15 Tom Tromey <tromey@adacore.com>
6264
6265 * windows-nat.c (windows_nat::handle_output_debug_string):
6266 Update.
6267 (windows_nat::handle_ms_vc_exception): Update.
6268 * target.h (target_read_string): Change API.
6269 * target.c (target_read_string): Change API.
6270 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
6271 Update.
6272 * solib-frv.c (frv_current_sos): Update.
6273 * solib-dsbt.c (dsbt_current_sos): Update.
6274 * solib-darwin.c (darwin_current_sos): Update.
6275 * linux-thread-db.c (inferior_has_bug): Update.
6276 * expprint.c (print_subexp_standard): Update.
6277 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
6278 (ada_exception_message_1): Update.
6279
6280 2020-06-15 Tom Tromey <tromey@adacore.com>
6281
6282 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
6283
6284 2020-06-15 Tom Tromey <tromey@adacore.com>
6285
6286 * valprint.c (read_string): Update comment.
6287 * target.c (MIN): Remove.
6288 (target_read_string): Rewrite.
6289
6290 2020-06-15 Tom Tromey <tromey@adacore.com>
6291
6292 * corefile.c (read_memory_string): Remove.
6293 * ada-valprint.c (ada_value_print_ptr): Update.
6294 * ada-lang.h (ada_tag_name): Change return type.
6295 * ada-lang.c (type_from_tag): Update.
6296 (ada_tag_name_from_tsd): Change return type. Use
6297 target_read_string.
6298 (ada_tag_name): Likewise.
6299 * gdbcore.h (read_memory_string): Don't declare.
6300
6301 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
6302
6303 * symtab.c (rbreak_command): Ignore Windows drive colon.
6304
6305 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
6306
6307 * NEWS: Mention removed GDBserver host support.
6308
6309 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
6310
6311 * features/riscv/rebuild-csr-xml.sh: Updated.
6312
6313 2020-06-11 Tom Tromey <tom@tromey.com>
6314
6315 PR gdb/18318:
6316 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
6317
6318 2020-06-09 Jonny Grant <jg@jguk.org>
6319 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
6320
6321 * main.c (captured_main_1): Don't print new line after help.
6322 (print_gdb_help): add mailing list and IRC channel information
6323 to --help. Add new lines between items in the footer. Remove
6324 quotes around bug url.
6325
6326 2020-06-11 Keith Seitz <keiths@redhat.com>
6327
6328 PR gdb/21356
6329 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
6330 Resolve typedefs for type length calculations.
6331
6332 2020-06-10 Tom de Vries <tdevries@suse.de>
6333
6334 PR ada/24713
6335 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
6336 (write_psymbols): Enable .gdb_index for ada.
6337 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
6338 ada.
6339
6340 2020-06-10 Tom de Vries <tdevries@suse.de>
6341
6342 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
6343 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
6344 namei" instead of "const char *name" argument.
6345 (dw2_map_matching_symbols): Use "offset_type namei" variant of
6346 dw2_symtab_iter_init.
6347
6348 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6349
6350 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
6351 to use type::field and field::type instead.
6352
6353 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6354
6355 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
6356 to use field::type instead.
6357
6358 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * gdbtypes.h (struct field) <type, set_type>: New methods.
6361 Rename `type` field to...
6362 <m_type>: ... this. Change references throughout to use type or
6363 set_type methods.
6364 (FIELD_TYPE): Use field::type. Change call sites that modify
6365 the field's type to use field::set_type instead.
6366
6367 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6368
6369 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
6370 to use type::index_type instead.
6371
6372 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
6373
6374 * gdbtypes.h (struct type) <index_type, set_index_type>: New
6375 methods.
6376 (TYPE_INDEX_TYPE): Use type::index_type.
6377 * gdbtypes.c (create_array_type_with_stride): Likewise.
6378
6379 2020-06-07 Tom Tromey <tom@tromey.com>
6380
6381 * valprint.c (generic_val_print_float): Remove "embedded_offset"
6382 parameter.
6383 (generic_value_print): Update.
6384
6385 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6386
6387 Revert commit 982a38f60b0.
6388 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
6389
6390 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
6391
6392 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
6393 avoid use after free.
6394
6395 2020-06-05 Tom de Vries <tdevries@suse.de>
6396
6397 * NEWS: Fix typos.
6398
6399 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
6400
6401 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
6402 the per_bfd object.
6403 (dwarf2_read_debug_names): Likewise.
6404 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
6405 object when re-using a per_bfd object with an index.
6406
6407 2020-06-03 Tom de Vries <tdevries@suse.de>
6408
6409 PR symtab/26046
6410 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
6411 children for C++.
6412 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
6413 DW_TAG_subprogram.
6414
6415 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6416
6417 * ada-lang.c (ada_language_data): Delete skip_trampoline
6418 initializer.
6419 * c-lang.c (c_language_data): Likewise.
6420 (cplus_language_data): Likewise.
6421 (cplus_language::skip_trampoline): New member function.
6422 (asm_language_data): Delete skip_trampoline initializer.
6423 (minimal_language_data): Likewise.
6424 * d-lang.c (d_language_data): Likewise.
6425 * f-lang.c (f_language_data): Likewise.
6426 * go-lang.c (go_language_data): Likewise.
6427 * language.c (unk_lang_trampoline): Delete function.
6428 (skip_language_trampoline): Update.
6429 (unknown_language_data): Delete skip_trampoline initializer.
6430 (auto_language_data): Likewise.
6431 * language.h (language_data): Delete skip_trampoline field.
6432 (language_defn::skip_trampoline): New function.
6433 * m2-lang.c (m2_language_data): Delete skip_trampoline
6434 initializer.
6435 * objc-lang.c (objc_skip_trampoline): Delete function, move
6436 implementation to objc_language::skip_trampoline.
6437 (objc_language_data): Delete skip_trampoline initializer.
6438 (objc_language::skip_trampoline): New member function with
6439 implementation from objc_skip_trampoline.
6440 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
6441 initializer.
6442 * p-lang.c (pascal_language_data): Likewise.
6443 * rust-lang.c (rust_language_data): Likewise.
6444
6445 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6446
6447 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
6448 (ada_language::demangle): New member function.
6449 * c-lang.c (c_language_data): Delete la_demangle initializer.
6450 (cplus_language_data): Delete la_demangle initializer.
6451 (cplus_language::demangle): New member function.
6452 (asm_language_data): Delete la_demangle initializer.
6453 (minimal_language_data): Delete la_demangle initializer.
6454 * d-lang.c (d_language_data): Delete la_demangle initializer.
6455 (d_language::demangle): New member function.
6456 * f-lang.c (f_language_data): Delete la_demangle initializer.
6457 (f_language::demangle): New member function.
6458 * go-lang.c (go_language_data): Delete la_demangle initializer.
6459 (go_language::demangle): New member function.
6460 * language.c (language_demangle): Update.
6461 (unk_lang_demangle): Delete.
6462 (unknown_language_data): Delete la_demangle initializer.
6463 (unknown_language::demangle): New member function.
6464 (auto_language_data): Delete la_demangle initializer.
6465 (auto_language::demangle): New member function.
6466 * language.h (language_data): Delete la_demangle field.
6467 (language_defn::demangle): New function.
6468 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
6469 * objc-lang.c (objc_language_data): Delete la_demangle
6470 initializer.
6471 (objc_language::demangle): New member function.
6472 * opencl-lang.c (opencl_language_data): Delete la_demangle
6473 initializer.
6474 * p-lang.c (pascal_language_data): Likewise.
6475 * rust-lang.c (rust_language_data): Likewise.
6476 (rust_language::demangle): New member function.
6477
6478 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6479
6480 * ada-lang.c (ada_language_data): Delete la_print_type
6481 initializer.
6482 (ada_language::print_type): New member function.
6483 * c-lang.c (c_language_data): Delete la_print_type initializer.
6484 (c_language::print_type): New member function.
6485 (cplus_language_data): Delete la_print_type initializer.
6486 (cplus_language::print_type): New member function.
6487 (asm_language_data): Delete la_print_type initializer.
6488 (asm_language::print_type): New member function.
6489 (minimal_language_data): Delete la_print_type initializer.
6490 (minimal_language::print_type): New member function.
6491 * d-lang.c (d_language_data): Delete la_print_type initializer.
6492 (d_language::print_type): New member function.
6493 * f-lang.c (f_language_data): Delete la_print_type initializer.
6494 (f_language::print_type): New member function.
6495 * go-lang.c (go_language_data): Delete la_print_type initializer.
6496 (go_language::print_type): New member function.
6497 * language.c (unk_lang_print_type): Delete.
6498 (unknown_language_data): Delete la_print_type initializer.
6499 (unknown_language::print_type): New member function.
6500 (auto_language_data): Delete la_print_type initializer.
6501 (auto_language::print_type): New member function.
6502 * language.h (language_data): Delete la_print_type field.
6503 (language_defn::print_type): New function.
6504 (LA_PRINT_TYPE): Update.
6505 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
6506 (m2_language::print_type): New member function.
6507 * objc-lang.c (objc_language_data): Delete la_print_type
6508 initializer.
6509 (objc_language::print_type): New member function.
6510 * opencl-lang.c (opencl_print_type): Delete, implementation moved
6511 to opencl_language::print_type.
6512 (opencl_language_data): Delete la_print_type initializer.
6513 (opencl_language::print_type): New member function, implementation
6514 from opencl_print_type.
6515 * p-lang.c (pascal_language_data): Delete la_print_type
6516 initializer.
6517 (pascal_language::print_type): New member function.
6518 * rust-lang.c (rust_print_type): Delete, implementation moved to
6519 rust_language::print_type.
6520 (rust_language_data): Delete la_print_type initializer.
6521 (rust_language::print_type): New member function, implementation
6522 from rust_print_type.
6523
6524 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6525
6526 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
6527 implementation moves to...
6528 (ada_language::sniff_from_mangled_name): ...here. Update return
6529 type.
6530 (ada_language_data): Delete la_sniff_from_mangled_name
6531 initializer.
6532 * c-lang.c (c_language_data): Likewise.
6533 (cplus_language_data): Likewise.
6534 (cplus_language::sniff_from_mangled_name): New member function,
6535 implementation taken from gdb_sniff_from_mangled_name.
6536 (asm_language_data): Delete la_sniff_from_mangled_name
6537 initializer.
6538 (minimal_language_data): Likewise.
6539 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
6540 implementation moves to cplus_language::sniff_from_mangled_name.
6541 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
6542 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
6543 moves to...
6544 (d_language::sniff_from_mangled_name): ...here.
6545 (d_language_data): Delete la_sniff_from_mangled_name initializer.
6546 * f-lang.c (f_language_data): Likewise.
6547 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
6548 moves to...
6549 (go_language::sniff_from_mangled_name): ...here.
6550 (go_language_data): Delete la_sniff_from_mangled_name initializer.
6551 * language.c (language_sniff_from_mangled_name): Delete.
6552 (unknown_language_data): Delete la_sniff_from_mangled_name
6553 initializer.
6554 (auto_language_data): Likewise.
6555 * language.h (language_data): Delete la_sniff_from_mangled_name
6556 field.
6557 (language_defn::sniff_from_mangled_name): New function.
6558 (language_sniff_from_mangled_name): Delete declaration.
6559 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
6560 field.
6561 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
6562 implementation moves to...
6563 (objc_language::sniff_from_mangled_name): ...here.
6564 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
6565 * opencl-lang.c (opencl_language_data): Likewise.
6566 * p-lang.c (pascal_language_data): Likewise.
6567 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
6568 implementation moves to...
6569 (rust_language::sniff_from_mangled_name): ...here.
6570 (rust_language_data): Delete la_sniff_from_mangled_name
6571 initializer.
6572 * symtab.c (symbol_find_demangled_name): Call
6573 sniff_from_mangled_name member function.
6574
6575 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * ada-lang.c (ada_language_data): Delete la_search_name_hash
6578 initializer.
6579 * c-lang.c (c_language_data): Likewise.
6580 (cplus_language_data): Likewise.
6581 (cplus_language::search_name_hash): New member function.
6582 (asm_language_data): Delete la_search_name_hash initializer.
6583 (minimal_language_data): Likewise.
6584 * d-lang.c (d_language_data): Likewise.
6585 * dictionary.c (default_search_name_hash): Rename to...
6586 (language_defn::search_name_hash): ...this.
6587 * f-lang.c (f_language_data): Likewise.
6588 (f_language::search_name_hash): New member function.
6589 * go-lang.c (go_language_data): Delete la_search_name_hash
6590 initializer.
6591 * language.c (unknown_language_data): Likewise.
6592 (auto_language_data): Likewise.
6593 * language.h (struct language_data): Delete la_search_name_hash
6594 field.
6595 (language_defn::search_name_hash): Declare new member function.
6596 (default_search_name_hash): Delete declaration.
6597 * m2-lang.c (m2_language_data): Delete la_search_name_hash
6598 initializer.
6599 * objc-lang.c (objc_language_data): Likewise.
6600 * opencl-lang.c (opencl_language_data): Likewise.
6601 * p-lang.c (pascal_language_data): Likewise.
6602 * rust-lang.c (rust_language_data): Likewise.
6603 * symtab.c (search_name_hash): Update call.
6604
6605 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6606
6607 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
6608 initializer.
6609 * c-lang.c (class compile_instance): Declare.
6610 (c_language_data): Delete la_get_compile_instance initializer.
6611 (c_language::get_compile_instance): New member function.
6612 (cplus_language_data): Delete la_get_compile_instance initializer.
6613 (cplus_language::get_compile_instance): New member function.
6614 (asm_language_data): Delete la_get_compile_instance initializer.
6615 (minimal_language_data): Likewise.
6616 * c-lang.h (c_get_compile_context): Update comment.
6617 (cplus_get_compile_context): Update comment.
6618 * compile/compile.c (compile_to_object): Update calls, don't rely
6619 on function pointer being NULL.
6620 * d-lang.c (d_language_data): Delete la_get_compile_instance
6621 initializer.
6622 * f-lang.c (f_language_data): Likewise.
6623 * go-lang.c (go_language_data): Likewise.
6624 * language.c (unknown_language_data): Likewise.
6625 (auto_language_data): Likewise.
6626 * language.h (language_data): Delete la_get_compile_instance field.
6627 (language_defn::get_compile_instance): New member function.
6628 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
6629 initializer.
6630 * objc-lang.c (objc_language_data): Likewise.
6631 * opencl-lang.c (opencl_language_data): Likewise.
6632 * p-lang.c (pascal_language_data): Likewise.
6633 * rust-lang.c (rust_language_data): Likewise.
6634
6635 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6636
6637 * ada-lang.c (ada_add_all_symbols): Update comment.
6638 (ada_iterate_over_symbols): Delete, move implementation to...
6639 (ada_language::iterate_over_symbols): ...here, a new member
6640 function, rewrite to use range based for loop.
6641 (ada_language_data): Delete la_iterate_over_symbols initializer.
6642 * c-lang.c (c_language_data): Likewise.
6643 (cplus_language_data): Likewise.
6644 (asm_language_data): Likewise.
6645 (minimal_language_data): Likewise.
6646 * d-lang.c (d_language_data): Likewise.
6647 * f-lang.c (f_language_data): Likewise.
6648 * go-lang.c (go_language_data): Likewise.
6649 * language.c (unknown_language_data): Likewise.
6650 (auto_language_data): Likewise.
6651 * language.h (language_data): Delete la_iterate_over_symbols field.
6652 (language_defn::iterate_over_symbols): New member function.
6653 (LA_ITERATE_OVER_SYMBOLS): Update.
6654 * linespec.c (iterate_over_all_matching_symtabs): Update.
6655 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
6656 initializer.
6657 * objc-lang.c (objc_language_data): Likewise.
6658 * opencl-lang.c (opencl_language_data): Likewise.
6659 * p-lang.c (pascal_language_data): Likewise.
6660 * rust-lang.c (rust_language_data): Likewise.
6661
6662 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6663
6664 * ada-lang.c (ada_language_data): Delete
6665 la_lookup_transparent_type initializer.
6666 * c-lang.c (c_language_data): Likewise.
6667 (cplus_language_data): Likewise.
6668 (cplus_language::lookup_transparent_type): New member function.
6669 (asm_language_data): Delete la_lookup_transparent_type
6670 initializer.
6671 (minimal_language_data): Likewise.
6672 * d-lang.c (d_language_data): Likewise.
6673 * f-lang.c (f_language_data): Likewise.
6674 * go-lang.c (go_language_data): Likewise.
6675 * language.c (unknown_language_data): Likewise.
6676 (auto_language_data): Likewise.
6677 * language.h (struct language_data): Delete
6678 la_lookup_transparent_type field.
6679 (language_defn::lookup_transparent_type): New member function.
6680 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
6681 initializer.
6682 * objc-lang.c (objc_language_data): Likewise.
6683 * opencl-lang.c (opencl_language_data): Likewise.
6684 * p-lang.c (pascal_language_data): Likewise.
6685 * rust-lang.c (rust_language_data): Likewise.
6686 * symtab.c (symbol_matches_domain): Update call.
6687
6688 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * ada-lang.c (ada_language_arch_info): Delete function, move
6691 implementation to...
6692 (ada_language::language_arch_info): ...here, a new member
6693 function.
6694 (ada_language_data): Delete la_language_arch_info.
6695 * c-lang.c (c_language_data): Likewise.
6696 (c_language::language_arch_info): New member function.
6697 (cplus_language_arch_info): Delete function, move
6698 implementation to...
6699 (cplus_language::language_arch_info): ...here, a new member
6700 function.
6701 (cplus_language_data): Delete la_language_arch_info.
6702 (asm_language_data): Likewise.
6703 (asm_language::language_arch_info): New member function.
6704 (minimal_language_data): Delete la_language_arch_info.
6705 (minimal_language::language_arch_info): New member function.
6706 * d-lang.c (d_language_arch_info): Delete function, move
6707 implementation to...
6708 (d_language::language_arch_info): ...here, a new member
6709 function.
6710 (d_language_data): Delete la_language_arch_info.
6711 * f-lang.c (f_language_arch_info): Delete function, move
6712 implementation to...
6713 (f_language::language_arch_info): ...here, a new member
6714 function.
6715 (f_language_data): Delete la_language_arch_info.
6716 * go-lang.c (go_language_arch_info): Delete function, move
6717 implementation to...
6718 (go_language::language_arch_info): ...here, a new member
6719 function.
6720 (go_language_data): Delete la_language_arch_info.
6721 * language.c (unknown_language_data): Likewise.
6722 (unknown_language::language_arch_info): New member function.
6723 (auto_language_data): Delete la_language_arch_info.
6724 (auto_language::language_arch_info): New member function.
6725 (language_gdbarch_post_init): Update call to
6726 la_language_arch_info.
6727 * language.h (language_data): Delete la_language_arch_info
6728 function pointer.
6729 (language_defn::language_arch_info): New function.
6730 * m2-lang.c (m2_language_arch_info): Delete function, move
6731 implementation to...
6732 (m2_language::language_arch_info): ...here, a new member
6733 function.
6734 (m2_language_data): Delete la_language_arch_info.
6735 * objc-lang.c (objc_language_arch_info): Delete function, move
6736 implementation to...
6737 (objc_language::language_arch_info): ...here, a new member
6738 function.
6739 (objc_language_data): Delete la_language_arch_info.
6740 * opencl-lang.c (opencl_language_arch_info): Delete function, move
6741 implementation to...
6742 (opencl_language::language_arch_info): ...here, a new member
6743 function.
6744 (opencl_language_data): Delete la_language_arch_info.
6745 * p-lang.c (pascal_language_arch_info): Delete function, move
6746 implementation to...
6747 (pascal_language::language_arch_info): ...here, a new member
6748 function.
6749 (pascal_language_data): Delete la_language_arch_info.
6750 * rust-lang.c (rust_language_arch_info): Delete function, move
6751 implementation to...
6752 (rust_language::language_arch_info): ...here, a new member
6753 function.
6754 (rust_language_data): Delete la_language_arch_info.
6755
6756 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6757
6758 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
6759 initializer.
6760 * c-lang.c (c_language_data): Likewise.
6761 (cplus_language_data): Likewise.
6762 (cplus_language::pass_by_reference_info): New method.
6763 (asm_language_data): Delete la_pass_by_reference initializer.
6764 (minimal_language_data): Likewise.
6765 * cp-abi.c (cp_pass_by_reference): Remove use of
6766 default_pass_by_reference.
6767 * d-lang.c (d_language_data): Likewise.
6768 * f-lang.c (f_language_data): Likewise.
6769 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
6770 default_pass_by_reference.
6771 * go-lang.c (go_language_data): Likewise.
6772 * language.c (language_pass_by_reference): Update.
6773 (default_pass_by_reference): Delete.
6774 (unknown_language_data): Delete la_pass_by_reference
6775 initializer.
6776 (auto_language_data): Likewise.
6777 * language.h (struct language_data): Delete la_pass_by_reference
6778 field.
6779 (language_defn::pass_by_reference_info): New member function.
6780 (default_pass_by_reference): Delete declaration.
6781 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
6782 initializer.
6783 * objc-lang.c (objc_language_data): Likewise.
6784 * opencl-lang.c (opencl_language_data): Likewise.
6785 * p-lang.c (pascal_language_data): Likewise.
6786 * rust-lang.c (rust_language_data): Likewise.
6787
6788 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6789
6790 * ada-lang.c (ada_read_var_value): Delete function, move
6791 implementation to...
6792 (ada_language::read_var_value): ...here.
6793 (ada_language_data): Delete la_read_var_value initializer.
6794 * c-lang.c (c_language_data): Likewise.
6795 (cplus_language_data): Likewise.
6796 (minimal_language_data): Likewise.
6797 * d-lang.c (d_language_data): Likewise.
6798 * f-lang.c (f_language_data): Likewise.
6799 * findvar.c (default_read_var_value): Rename to...
6800 (language_defn::read_var_value): ...this.
6801 * findvar.c (read_var_value): Update header comment, and change to
6802 call member function instead of function pointer.
6803 * go-lang.c (go_language_data): Likewise.
6804 * language.c (unknown_language_data): Delete la_read_var_value
6805 initializer.
6806 (auto_language_data): Likewise.
6807 * language.h (struct language_data): Delete la_read_var_value
6808 field.
6809 (language_defn::read_var_value): New member function.
6810 (default_read_var_value): Delete declaration.
6811 * m2-lang.c (m2_language_data): Delete la_read_var_value
6812 initializer.
6813 * objc-lang.c (objc_language_data): Likewise.
6814 * opencl-lang.c (opencl_language_data): Likewise.
6815 * p-lang.c (pascal_language_data): Likewise.
6816 * rust-lang.c (rust_language_data): Likewise.
6817 * value.h (default_read_var_value): Delete declaration.
6818
6819 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6820
6821 * ada-lang.c (ada_print_array_index): Delete function, move
6822 implementation to...
6823 (ada_language::print_array_index): ...here.
6824 (ada_language_data): Delete la_print_array_index initializer.
6825 * c-lang.c (c_language_data): Likewise.
6826 (cplus_language_data): Likewise.
6827 (minimal_language_data): Likewise.
6828 * d-lang.c (d_language_data): Likewise.
6829 * f-lang.c (f_language_data): Likewise.
6830 * go-lang.c (go_language_data): Likewise.
6831 * language.c (default_print_array_index): Delete function, move
6832 implementation to...
6833 (language_defn::print_array_index): ...here.
6834 (unknown_language_data): Delete la_print_array_index initializer.
6835 (auto_language_data): Likewise.
6836 * language.h (struct language_data): Delete la_print_array_index
6837 field.
6838 (language_defn::print_array_index): New member function.
6839 (LA_PRINT_ARRAY_INDEX): Update.
6840 (default_print_array_index): Delete declaration.
6841 * m2-lang.c (m2_language_data): Delete la_print_array_index
6842 initializer.
6843 * objc-lang.c (objc_language_data): Likewise.
6844 * opencl-lang.c (opencl_language_data): Likewise.
6845 * p-lang.c (pascal_language_data): Likewise.
6846 * rust-lang.c (rust_language_data): Likewise.
6847
6848 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
6849
6850 * gdb/ada-lang.c (ada_language_defn): Convert to...
6851 (ada_language_data): ...this.
6852 (class ada_language): New class.
6853 (ada_language_defn): New static global.
6854 * gdb/c-lang.c (c_language_defn): Convert to...
6855 (c_language_data): ...this.
6856 (class c_language): New class.
6857 (c_language_defn): New static global.
6858 (cplus_language_defn): Convert to...
6859 (cplus_language_data): ...this.
6860 (class cplus_language): New class.
6861 (cplus_language_defn): New static global.
6862 (asm_language_defn): Convert to...
6863 (asm_language_data): ...this.
6864 (class asm_language): New class.
6865 (asm_language_defn): New static global.
6866 (minimal_language_defn): Convert to...
6867 (minimal_language_data): ...this.
6868 (class minimal_language): New class.
6869 (minimal_language_defn): New static global.
6870 * gdb/d-lang.c (d_language_defn): Convert to...
6871 (d_language_data): ...this.
6872 (class d_language): New class.
6873 (d_language_defn): New static global.
6874 * gdb/f-lang.c (f_language_defn): Convert to...
6875 (f_language_data): ...this.
6876 (class f_language): New class.
6877 (f_language_defn): New static global.
6878 * gdb/go-lang.c (go_language_defn): Convert to...
6879 (go_language_data): ...this.
6880 (class go_language): New class.
6881 (go_language_defn): New static global.
6882 * gdb/language.c (unknown_language_defn): Remove declaration.
6883 (current_language): Initialize to nullptr, real initialization is
6884 moved to _initialize_language.
6885 (languages): Delete global.
6886 (language_defn::languages): Define.
6887 (set_language_command): Use language_defn::languages.
6888 (set_language): Likewise.
6889 (range_error): Likewise.
6890 (language_enum): Likewise.
6891 (language_def): Likewise.
6892 (add_set_language_command): Use language_def::languages for the
6893 language list, and language_def to lookup language pointers.
6894 (skip_language_trampoline): Use language_defn::languages.
6895 (unknown_language_defn): Convert to...
6896 (unknown_language_data): ...this.
6897 (class unknown_language): New class.
6898 (unknown_language_defn): New static global.
6899 (auto_language_defn): Convert to...
6900 (auto_language_data): ...this.
6901 (class auto_language): New class.
6902 (auto_language_defn): New static global.
6903 (language_gdbarch_post_init): Use language_defn::languages.
6904 (_initialize_language): Initialize current_language.
6905 * gdb/language.h (struct language_defn): Rename to...
6906 (struct language_data): ...this.
6907 (struct language_defn): New.
6908 (auto_language_defn): Delete.
6909 (unknown_language_defn): Delete.
6910 (minimal_language_defn): Delete.
6911 (ada_language_defn): Delete.
6912 (asm_language_defn): Delete.
6913 (c_language_defn): Delete.
6914 (cplus_language_defn): Delete.
6915 (d_language_defn): Delete.
6916 (f_language_defn): Delete.
6917 (go_language_defn): Delete.
6918 (m2_language_defn): Delete.
6919 (objc_language_defn): Delete.
6920 (opencl_language_defn): Delete.
6921 (pascal_language_defn): Delete.
6922 (rust_language_defn): Delete.
6923 * gdb/m2-lang.c (m2_language_defn): Convert to...
6924 (m2_language_data): ...this.
6925 (class m2_language): New class.
6926 (m2_language_defn): New static global.
6927 * gdb/objc-lang.c (objc_language_defn): Convert to...
6928 (objc_language_data): ...this.
6929 (class objc_language): New class.
6930 (objc_language_defn): New static global.
6931 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
6932 (opencl_language_data): ...this.
6933 (class opencl_language): New class.
6934 (opencl_language_defn): New static global.
6935 * gdb/p-lang.c (pascal_language_defn): Convert to...
6936 (pascal_language_data): ...this.
6937 (class pascal_language): New class.
6938 (pascal_language_defn): New static global.
6939 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
6940 language pointer, update comment format.
6941 * gdb/rust-lang.c (rust_language_defn): Convert to...
6942 (rust_language_data): ...this.
6943 (class rust_language): New class.
6944 (rust_language_defn): New static global.
6945
6946 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
6947
6948 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
6949 member variable.
6950 <m_stmt_at_address>: New member variable.
6951 (lnp_state_machine::record_line): Don't record some lines, update
6952 tracking of is_stmt at the same address.
6953 (lnp_state_machine::lnp_state_machine): Initialise new member
6954 variables.
6955
6956 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
6957
6958 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
6959 "-include gnu-nat-mig.h".
6960 * gnu-nat-mig.h: New file.
6961 * gnu-nat.c: Include "gnu-nat-mig.h".
6962 (exc_server, msg_reply_server, notify_server,
6963 process_reply_server): Remove declarations.
6964
6965 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6966
6967 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
6968 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
6969 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
6970 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
6971 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
6972 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
6973 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
6974 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
6975 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
6976 to gnu_nat_target class.
6977 * gnu-nat.c: Likewise.
6978 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
6979 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
6980 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
6981 object.
6982 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
6983 instead of `gnu_target'.
6984
6985 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6986
6987 * i386-gnu-tdep.c: Include "gdbcore.h"
6988 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
6989 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
6990 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
6991 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
6992 i386_gnu_sigcontext_addr): New functions
6993 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
6994 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
6995 tdep.
6996
6997 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
6998
6999 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
7000 before fork_inferior call. Avoid calling it if target_is_pushed returns
7001 true.
7002
7003 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7004
7005 * gnu-nat.h (gnu_target): New variable declaration.
7006 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
7007 gnu_target.
7008 * gnu-nat.c (gnu_target): New variable.
7009 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
7010 add_thread_silent, and add_thread calls.
7011 (gnu_nat_target::create_inferior): Pass gnu_target to
7012 add_thread_silent, thread_change_ptid call.
7013 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
7014 call.
7015
7016 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7017
7018 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
7019 (gnu_nat_target::find_memory_regions): Remove unused
7020 `old_address' variable.
7021
7022 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7023
7024 * gnu-nat.c: Include "gdbarch.h".
7025
7026 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7027
7028 * reply_mig_hack.awk (Error return): Cast function through
7029 void *, to bypass compiler function call check.
7030
7031 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7032
7033 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
7034 $(srcdir)/reply_mig_hack.awk.
7035
7036 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
7037
7038 * gnu-nat.h (gnu_debug_flag): Set type to bool.
7039
7040 2020-05-30 Jonny Grant <jg@jguk.org>
7041
7042 * configure.ac (ACX_BUGURL): change bug URL to https.
7043
7044 2020-05-30 Pedro Alves <palves@redhat.com>
7045
7046 * cp-support.c (replace_typedefs_template): New.
7047 (replace_typedefs_qualified_name): Handle
7048 DEMANGLE_COMPONENT_TEMPLATE.
7049
7050 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
7051
7052 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
7053 dwarf2/index-cache.h, dwarf2/index-write.c,
7054 dwarf2/index-write.h, dwarf2/line-header.c,
7055 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
7056 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
7057 variables and fields from `dwarf2_per_objfile` to just
7058 `per_objfile` throughout.
7059
7060 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
7061
7062 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7063 <push_dwarf_reg_entry_value>: Add comment.
7064
7065 2020-05-28 Kevin Buettner <kevinb@redhat.com>
7066 Keith Seitz <keiths@redhat.com>
7067
7068 * python/python.c (do_start_initialization): Call PyEval_SaveThread
7069 instead of PyEval_ReleaseLock.
7070 (class gdbpy_gil): Move to earlier in file.
7071 (finalize_python): Set gdb_python_initialized.
7072 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
7073 when not initialized.
7074
7075 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
7076
7077 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7078 <push_dwarf_reg_entry_value>: Remove assert. Override
7079 per_objfile with caller_per_objfile.
7080
7081 2020-05-28 Tom de Vries <tdevries@suse.de>
7082
7083 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
7084 PR gold/15646 workaround to symbol kind "type".
7085
7086 2020-05-27 Tom Tromey <tromey@adacore.com>
7087
7088 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
7089
7090 2020-05-27 Tom Tromey <tromey@adacore.com>
7091
7092 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
7093 Use htab_find_with_hash.
7094 <add_abbrev>: Remove "abbrev_number" parameter.
7095 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
7096 "abbrev_number" parameter. Use htab_find_slot_with_hash.
7097 (hash_abbrev): Add comment.
7098 (abbrev_table::lookup_abbrev): Move to header file.
7099 (abbrev_table::read): Update.
7100
7101 2020-05-27 Tom Tromey <tromey@adacore.com>
7102
7103 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
7104 method.
7105 <canonical_name>: New member.
7106 <raw_name>: Rename from "name".
7107 (partial_die_info): Initialize canonical_name.
7108 (scan_partial_symbols): Check raw_name.
7109 (partial_die_parent_scope, partial_die_full_name)
7110 (add_partial_symbol, add_partial_subprogram)
7111 (add_partial_enumeration, load_partial_dies): Use "name" method.
7112 (partial_die_info::name): New method.
7113 (partial_die_info::read, guess_partial_die_structure_name)
7114 (partial_die_info::fixup): Update.
7115
7116 2020-05-27 Tom Tromey <tromey@adacore.com>
7117
7118 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
7119 <get_ref_die_offset>: Inline.
7120 <get_ref_die_offset_complaint>: New method.
7121 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
7122 (attribute::get_ref_die_offset_complaint): Rename from
7123 get_ref_die_offset. Just issue complaint.
7124
7125 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7126
7127 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
7128
7129 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7130
7131 * exec.c (exec_file_attach): Use errno value of first openp failure.
7132
7133 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
7134
7135 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
7136 Don't close thread handle.
7137
7138 2020-05-27 Tom Tromey <tom@tromey.com>
7139 Simon Marchi <simon.marchi@efficios.com>
7140
7141 * objfiles.h (struct objfile) <partial_symtabs>: Now a
7142 shared_ptr.
7143 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
7144 member.
7145 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
7146 dwarf2_per_bfd_objfile_data_key>: New globals.
7147 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
7148 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
7149 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
7150 shared.
7151 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
7152 short-circuit when sharing.
7153 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
7154 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
7155
7156 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7157
7158 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
7159 to...
7160 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
7161 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
7162
7163 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
7166 build_name_components, find_name_components_bounds>:
7167 Add per_objfile parameter.
7168 (struct mapped_index) <symbol_name_at>: Likewise.
7169 (struct mapped_debug_names): Remove constructor.
7170 <dwarf2_per_objfile>: Remove field.
7171 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
7172 (mapped_index_base::find_name_components_bounds,
7173 mapped_index_base::build_name_components,
7174 dw2_expand_symtabs_matching_symbol): Likewise.
7175 (class mock_mapped_index) <symbol_name_at>: Likewise.
7176 (check_match): Likewise.
7177 (check_find_bounds_finds): Likewise.
7178 (test_mapped_index_find_name_component_bounds): Update.
7179 (CHECK_MATCH): Update.
7180 (dw2_expand_symtabs_matching): Update.
7181 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
7182 per_objfile parameter.
7183 <find_vec_in_debug_names>: Likewise.
7184 <m_per_objfile>: New field.
7185 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
7186 parameter.
7187 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
7188 (dw2_debug_names_iterator::next): Update.
7189 (dw2_debug_names_lookup_symbol): Update.
7190 (dw2_debug_names_expand_symtabs_for_function): Update.
7191 (dw2_debug_names_map_matching_symbols): Update.
7192 (dw2_debug_names_expand_symtabs_matching): Update.
7193 (dwarf2_read_debug_names): Update.
7194
7195 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7196
7197 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
7198 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
7199 move to dwarf2_per_objfile.
7200 <read_in_chain>: Remove.
7201 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
7202 remove_all_cus, age_comp_units>: New methods.
7203 <m_dwarf2_cus>: New member.
7204 (struct dwarf2_per_cu_data) <cu>: Remove.
7205 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
7206 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
7207 moved to methods of dwarf2_per_objfile.
7208 (dwarf2_clear_marks): Remove.
7209 (dwarf2_queue_item::~dwarf2_queue_item): Update.
7210 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
7211 (dwarf2_per_bfd::free_cached_comp_units): Remove.
7212 (dwarf2_per_objfile::remove_all_cus): New.
7213 (class free_cached_comp_units) <~free_cached_comp_units>:
7214 Update.
7215 (load_cu): Update.
7216 (dw2_do_instantiate_symtab): Adjust.
7217 (fill_in_sig_entry_from_dwo_entry): Adjust.
7218 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7219 (cutu_reader::cutu_reader): Likewise.
7220 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
7221 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
7222 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
7223 and dwarf2_per_objfile::age_comp_units.
7224 (load_partial_comp_unit): Update.
7225 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
7226 (process_queue): Likewise.
7227 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
7228 backlink.
7229 (dwarf2_read_addr_index): Likewise.
7230 (follow_die_offset): Likewise.
7231 (dwarf2_fetch_die_loc_sect_off): Likewise.
7232 (dwarf2_fetch_constant_bytes): Likewise.
7233 (dwarf2_fetch_die_type_sect_off): Likewise.
7234 (follow_die_sig_1): Likewise.
7235 (load_full_type_unit): Likewise.
7236 (read_signatured_type): Likewise.
7237 (dwarf2_cu::dwarf2_cu): Don't set cu field.
7238 (dwarf2_cu::~dwarf2_cu): Remove.
7239 (dwarf2_per_objfile::get_cu): New.
7240 (dwarf2_per_objfile::set_cu): New.
7241 (age_cached_comp_units): Rename to...
7242 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
7243 to std::unordered_map.
7244 (free_one_cached_comp_unit): Rename to...
7245 (dwarf2_per_objfile::remove_cu): ... this. Adjust
7246 to std::unordered_map.
7247 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
7248 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
7249 a dwarf2_per_objfile in data.
7250 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
7251 (dwarf2_clear_marks): Remove.
7252
7253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7254
7255 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
7256 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
7257 (init_tu_and_read_dwo_dies): Likewise.
7258 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
7259 (cutu_reader::cutu_reader): Likewise.
7260 (load_partial_comp_unit): Likewise.
7261 (process_psymtab_comp_unit): Update.
7262 (build_type_psymtabs_1): Update.
7263 (process_skeletonless_type_unit): Update.
7264 (load_full_comp_unit): Update.
7265 (find_partial_die): Update.
7266 (dwarf2_read_addr_index): Update.
7267 (read_signatured_type): Update.
7268
7269 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7270
7271 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
7272 m_header_read_in>: New fields.
7273 <get_header>: New method.
7274 * dwarf2/read.c (per_cu_header_read_in): Remove.
7275 (dwarf2_per_cu_data::get_header): New.
7276 (dwarf2_per_cu_data::addr_size): Update.
7277 (dwarf2_per_cu_data::offset_size): Update.
7278 (dwarf2_per_cu_data::ref_addr_size): Update.
7279
7280 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7281
7282 * dwarf2/read.c (load_cu): Return dwarf2_cu.
7283 (dw2_do_instantiate_symtab): Update.
7284 (queue_and_load_all_dwo_tus): Change parameter from
7285 dwarf2_per_cu_data to dwarf2_cu.
7286 (dwarf2_fetch_die_loc_sect_off): Update.
7287 (dwarf2_fetch_constant_bytes): Update.
7288 (dwarf2_fetch_die_type_sect_off): Update.
7289
7290 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7291
7292 * dwarf2/read.c (process_full_comp_unit,
7293 process_full_type_unit): Remove per_cu, per_objfile paramters.
7294 Add dwarf2_cu parameter.
7295 (process_queue): Update.
7296
7297 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7298
7299 * dwarf2/read.c (create_cu_from_index_list): Replace
7300 dwarf2_per_objfile parameter with dwarf2_per_bfd.
7301 (create_cus_from_index_list): Likewise.
7302 (create_cus_from_index): Likewise.
7303 (create_signatured_type_table_from_index): Likewise.
7304 (create_cus_from_debug_names_list): Likewise.
7305 (create_cus_from_debug_names): Likewise.
7306 (dwarf2_read_gdb_index): Update.
7307 (dwarf2_read_debug_names): Update.
7308
7309 2020-05-27 Tom Tromey <tom@tromey.com>
7310 Simon Marchi <simon.marchi@efficios.com>
7311
7312 * dwarf2/read.h (struct dwarf2_per_objfile)
7313 <get_type_for_signatured_type, set_type_for_signatured_type>:
7314 New methods.
7315 <m_type_map>: New member.
7316 (struct signatured_type) <type>: Remove.
7317 * dwarf2/read.c
7318 (dwarf2_per_objfile::get_type_for_signatured_type,
7319 dwarf2_per_objfile::set_type_for_signatured_type): New.
7320 (get_signatured_type): Use new methods.
7321
7322 2020-05-27 Tom Tromey <tom@tromey.com>
7323 Simon Marchi <simon.marchi@efficios.com>
7324
7325 * dwarf2/read.h (struct type_unit_group_unshareable): New.
7326 (struct dwarf2_per_objfile) <type_units>: New member.
7327 <get_type_unit_group_unshareable>: New method.
7328 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
7329 num_symtabs, symtabs>: Remove; move to
7330 type_unit_group_unshareable.
7331 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
7332 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
7333 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
7334
7335 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7336
7337 * dwarf2/read.h (struct dwarf2_per_cu_data):
7338 <dwarf2_per_objfile>: Remove.
7339 * dwarf2/read.c (create_cu_from_index_list): Don't assign
7340 dwarf2_per_objfile.
7341 (create_signatured_type_table_from_index): Likewise.
7342 (create_signatured_type_table_from_debug_names): Likewise.
7343 (create_debug_type_hash_table): Likewise.
7344 (fill_in_sig_entry_from_dwo_entry): Likewise.
7345 (create_type_unit_group): Likewise.
7346 (read_comp_units_from_section): Likewise.
7347 (create_cus_hash_table): Likewise.
7348
7349 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7350
7351 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
7352 dwarf2_per_cu_data::dwarf2_per_objfile.
7353 (compute_compunit_symtab_includes): Likewise.
7354 (dwarf2_cu::start_symtab): Likewise.
7355
7356 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7357
7358 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
7359 parameter.
7360 * dwarf2/read.c (get_die_type_at_offset): Likewise.
7361 (read_namespace_alias): Update.
7362 (lookup_die_type): Update.
7363 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
7364 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
7365 Update.
7366 (disassemble_dwarf_expression): Update.
7367
7368 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7369
7370 * dwarf2/read.h (struct dwarf2_queue_item): Add
7371 dwarf2_per_objfile parameter, assign new parameter.
7372 <per_objfile>: New field.
7373 * dwarf2/read.c (free_one_cached_comp_unit): Add
7374 dwarf2_per_objfile parameter.
7375 (queue_comp_unit): Likewise.
7376 (dw2_do_instantiate_symtab): Update.
7377 (process_psymtab_comp_unit): Update.
7378 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
7379 (process_imported_unit_die): Update.
7380 (queue_and_load_dwo_tu): Update.
7381 (follow_die_offset): Update.
7382 (follow_die_sig_1): Update.
7383
7384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7385
7386 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
7387 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
7388 (read_call_site_scope): Assign per_objfile.
7389 (dwarf2_per_cu_data::objfile): Remove.
7390 * gdbtypes.h (struct call_site) <per_objfile>: New member.
7391 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
7392 dwarf2_per_objfile parameter.
7393 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
7394 dwarf2_per_objfile parameter.
7395 (dwarf_expr_reg_to_entry_parameter): Add output
7396 dwarf2_per_objfile parameter.
7397 (locexpr_get_frame_base): Update.
7398 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
7399 <push_dwarf_reg_entry_value>: Update.
7400 <call_site_to_target_addr>: Update.
7401 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
7402 parameter.
7403 (value_of_dwarf_reg_entry): Update.
7404 (rw_pieced_value): Update.
7405 (indirect_synthetic_pointer): Update.
7406 (dwarf2_evaluate_property): Update.
7407 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
7408 parameter.
7409 (locexpr_read_variable): Update.
7410 (locexpr_get_symbol_read_needs): Update.
7411 (loclist_read_variable): Update.
7412
7413 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7414
7415 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
7416 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7417 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7418 parameter.
7419 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
7420 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
7421 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
7422 parameter.
7423 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
7424 sect_variable_value): Add dwarf2_per_objfile parameter.
7425 (class dwarf_evaluate_loc_desc) <dwarf_call,
7426 dwarf_variable_value>: Update.
7427 (fetch_const_value_from_synthetic_pointer): Add
7428 dwarf2_per_objfile parameter.
7429 (fetch_const_value_from_synthetic_pointer): Update.
7430 (coerced_pieced_ref): Update.
7431 (class symbol_needs_eval_context) <dwarf_call,
7432 dwarf_variable_value>: Update.
7433 (dwarf2_compile_expr_to_ax): Update.
7434
7435 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7436
7437 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
7438 parameter.
7439 (dwarf2_evaluate_loc_desc_full): Update.
7440
7441 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
7444 parameter.
7445 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
7446 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
7447 dwarf2_per_objfile parameter.
7448 (decode_debug_loc_dwo_addresses): Likewise.
7449 (dwarf2_find_location_expression): Update.
7450 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
7451 (locexpr_describe_location_piece): Add dwarf2_per_objfile
7452 parameter.
7453 (disassemble_dwarf_expression): Add dwarf2_per_objfile
7454 parameter.
7455 (locexpr_describe_location_1): Likewise.
7456 (locexpr_describe_location): Update.
7457
7458 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7459
7460 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
7461 Remove.
7462 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
7463 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
7464 (dwarf2_compile_property_to_c): Update.
7465 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
7466 use text offset from objfile.
7467 (locexpr_tracepoint_var_ref): Update.
7468 (locexpr_generate_c_location): Update.
7469 (loclist_describe_location): Update.
7470 (loclist_tracepoint_var_ref): Update.
7471 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
7472 dwarf2_per_objfile parameter.
7473 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
7474 use text offset from objfile.
7475 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
7476
7477 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7478
7479 * dwarf2/expr.h (struct dwarf_expr_context)
7480 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
7481 <offset>: Remove.
7482 <per_objfile>: New member.
7483 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
7484 dwarf2_per_objfile parameter. Don't set offset, set
7485 per_objfile.
7486 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
7487 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
7488 a dwarf2_per_objfile object instead of an offset.
7489 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
7490 constructor.
7491 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
7492 to dwarf2_expr_executor constructor. Don't set offset.
7493 (dwarf2_fetch_cfa_info): Update.
7494 (struct dwarf2_frame_cache) <text_offset>: Remove.
7495 <per_objfile>: New field.
7496 (dwarf2_frame_cache): Update.
7497 (dwarf2_frame_prev_register): Update.
7498 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
7499 <dwarf_evaluate_loc_desc>: Add constructor.
7500 (dwarf2_evaluate_loc_desc_full): Update.
7501 (dwarf2_locexpr_baton_eval): Update.
7502 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
7503 Add constructor.
7504 (dwarf2_loc_desc_get_symbol_read_needs): Update.
7505
7506 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7507
7508 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
7509 addr_sized_int_type>: Move to dwarf2_cu.
7510 <int_type>: Move to dwarf2_per_objfile.
7511 (struct dwarf2_per_objfile) <int_type>: Move here.
7512 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
7513 addr_sized_int_type>: Move here.
7514 (read_func_scope): Update.
7515 (read_array_type): Update.
7516 (read_tag_string_type): Update.
7517 (attr_to_dynamic_prop): Update.
7518 (dwarf2_per_cu_data::int_type): Rename to...
7519 (dwarf2_per_objfile::int_type): ... this.
7520 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
7521 (dwarf2_cu::addr_sized_int_type): ... this.
7522 (read_subrange_type): Update.
7523 (dwarf2_per_cu_data::addr_type): Rename to...
7524 (dwarf2_cu::addr_type): ... this.
7525 (set_die_type): Update.
7526
7527 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7528
7529 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
7530 data through per_cu->cu.
7531
7532 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7533
7534 * dwarf2/read.c (lookup_dwo_comp_unit): Change
7535 dwarf2_per_cu_data parameter fo dwarf2_cu.
7536 (lookup_dwo_type_unit): Likewise.
7537 (read_cutu_die_from_dwo): Likewise.
7538 (lookup_dwo_unit): Likewise.
7539 (open_and_init_dwo_file): Likewise.
7540 (lookup_dwo_cutu): Likewise.
7541 (lookup_dwo_comp_unit): Likewise.
7542 (lookup_dwo_type_unit): Likewise.
7543 (cutu_reader::init_tu_and_read_dwo_dies): Update.
7544 (cutu_reader::cutu_reader): Update.
7545
7546 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7547
7548 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
7549 parameter.
7550 (process_full_type_unit): Likewise.
7551 (process_queue): Update.
7552
7553 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7554
7555 * dwarf2/read.c (recursively_compute_inclusions): Add
7556 dwarf2_per_objfile parameter.
7557 (compute_compunit_symtab_includes): Likewise.
7558 (process_cu_includes): Update.
7559
7560 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7561
7562 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
7563 parameter.
7564 (create_type_unit_group): Update.
7565 (process_psymtab_comp_unit_reader): Update.
7566 (build_type_psymtabs_reader): Update.
7567
7568 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7569
7570 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
7571 object through m_this_cu->cu.
7572
7573 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7574
7575 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
7576 the info parameter.
7577 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
7578
7579 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7580
7581 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
7582 per_objfile parameter.
7583 (load_full_type_unit): Add per_objfile parameter.
7584 (read_signatured_type): Likewise.
7585 (load_full_comp_unit): Likewise.
7586 (load_cu): Likewise.
7587 (dw2_do_instantiate_symtab): Likewise.
7588 (dw2_get_file_names): Likewise.
7589 (dw2_map_symtabs_matching_filename): Update.
7590 (dw_expand_symtabs_matching_file_matcher): Update.
7591 (dw2_map_symbol_filenames): Update.
7592 (process_psymtab_comp_unit): Add per_objfile parameter.
7593 (build_type_psymtabs_1): Update.
7594 (process_skeletonless_type_unit): Update.
7595 (dwarf2_build_psymtabs_hard): Update.
7596 (load_partial_comp_unit): Add per_objfile parameter.
7597 (scan_partial_symbols): Update.
7598 (load_full_comp_unit): Add per_objfile parameter.
7599 (process_imported_unit_die): Update.
7600 (create_cus_hash_table): Update.
7601 (find_partial_die): Update.
7602 (dwarf2_read_addr_index): Update.
7603 (follow_die_offset): Update.
7604 (dwarf2_fetch_die_loc_sect_off): Update.
7605 (dwarf2_fetch_constant_bytes): Update.
7606 (dwarf2_fetch_die_type_sect_off): Update.
7607 (follow_die_sig_1): Update.
7608 (load_full_type_unit): Add per_objfile parameter.
7609 (read_signatured_type): Likewise.
7610
7611 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7612
7613 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
7614 of objfile_name.
7615
7616 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7617
7618 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
7619 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7620 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
7621 field.
7622 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
7623 (create_cus_from_index): Update.
7624 (dwarf2_read_gdb_index): Update.
7625 (create_cus_from_debug_names): Update.
7626 (dwarf2_read_debug_names): Update.
7627 (get_abbrev_section_for_cu): Update.
7628 (create_all_comp_units): Update.
7629 (read_attribute_value): Update.
7630 (get_debug_line_section): Update.
7631 * dwarf2/index-cache.c (index_cache::store): Update.
7632 * dwarf2/index-write.c (save_gdb_index_command): Update.
7633 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
7634
7635 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7636
7637 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
7638 member.
7639 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
7640 dwarf2_per_cu_data::per_bfd.
7641 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
7642 (create_type_unit_group): Likewise.
7643 (queue_comp_unit): Remove reference to
7644 per_cu->dwarf2_per_objfile.
7645 (maybe_queue_comp_unit): Likewise.
7646 (fill_in_sig_entry_from_dwo_entry): Assign new field.
7647 (create_cus_hash_table): Assign new field.
7648
7649 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7650
7651 * dwarf2/read.c: Replace
7652 dwarf2_cu->per_cu->dwarf2_per_objfile references with
7653 dwarf2_cu->per_objfile throughout.
7654
7655 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7656
7657 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
7658 parameter, don't use per_cu->dwarf2_per_objfile.
7659 (dw2_instantiate_symtab): Likewise.
7660 (dw2_find_last_source_symtab): Update.
7661 (dw2_map_expand_apply): Update.
7662 (dw2_lookup_symbol): Update.
7663 (dw2_expand_symtabs_for_function): Update.
7664 (dw2_expand_all_symtabs): Update.
7665 (dw2_expand_symtabs_with_fullname): Update.
7666 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
7667 don't use per_cu->dwarf2_per_objfile.
7668 (dw2_expand_marked_cus): Update.
7669 (dw2_find_pc_sect_compunit_symtab): Update.
7670 (dw2_debug_names_lookup_symbol): Update.
7671 (dw2_debug_names_expand_symtabs_for_function): Update.
7672 (dw2_debug_names_map_matching_symbols): Update.
7673 (dwarf2_psymtab::expand_psymtab): Update.
7674
7675 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7676
7677 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
7678 <per_objfile>: New member.
7679 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
7680 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
7681 call to dwarf2_cu.
7682 (cutu_reader::cutu_reader): Update.
7683 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
7684
7685 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
7688 struct dwarf2_per_objfile.
7689 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
7690 dwarf2_per_bfd.
7691 * dwarf2/read.c (set_die_type): Update.
7692 (get_die_type_at_offset): Update.
7693
7694 2020-05-27 Tom Tromey <tom@tromey.com>
7695 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
7698 method.
7699 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
7700 get_symtab, set_symtab>: New methods.
7701 <m_symtabs>: New field.
7702 (struct dwarf2_psymtab): Derive from partial_symtab.
7703 <readin_p, get_compunit_symtab>: Declare methods.
7704 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
7705 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
7706 New methods.
7707 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
7708 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
7709 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
7710 (dw2_symtab_iter_next, dw2_print_stats)
7711 (dw2_expand_symtabs_with_fullname)
7712 (dw2_expand_symtabs_matching_one)
7713 (dw_expand_symtabs_matching_file_matcher)
7714 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
7715 (dw2_debug_names_iterator::next)
7716 (dw2_debug_names_map_matching_symbols)
7717 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
7718 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
7719 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
7720 New methods.
7721 (get_compunit_symtab, process_full_comp_unit)
7722 (process_full_type_unit): Update.
7723 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
7724
7725 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
7726
7727 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
7728 then introduce a new dwarf2_per_objfile type.
7729 <read_line_string>: Move to the new dwarf2_per_objfile type.
7730 <objfile>: Likewise.
7731 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
7732 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
7733 dwarf2_per_objfile->per_bfd.
7734 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
7735 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
7736 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
7737 (dwarf2_per_bfd::free_cached_comp_units): ... this.
7738 (dwarf2_has_info): Allocate dwarf2_per_bfd.
7739 (dwarf2_per_objfile::locate_sections): Rename to...
7740 (dwarf2_per_bfd::locate_sections): ... this.
7741 (dwarf2_per_objfile::get_cutu): Rename to...
7742 (dwarf2_per_bfd::get_cutu): ... this.
7743 (dwarf2_per_objfile::get_cu): Rename to...
7744 (dwarf2_per_bfd::get_cu): ... this.
7745 (dwarf2_per_objfile::get_tu): Rename to...
7746 (dwarf2_per_bfd::get_tu): ... this.
7747 (dwarf2_per_objfile::allocate_per_cu): Rename to...
7748 (dwarf2_per_bfd::allocate_per_cu): ... this.
7749 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
7750 (dwarf2_per_bfd::allocate_signatured_type): ... this.
7751 (get_gdb_index_contents_ftype): Change parameter from
7752 dwarf2_per_objfile to dwarf2_per_bfd.
7753 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
7754 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
7755
7756 2020-05-27 Tom Tromey <tom@tromey.com>
7757 Simon Marchi <simon.marchi@efficios.com>
7758
7759 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
7760 (allocate_piece_closure): Set "per_objfile" member.
7761 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
7762 (locexpr_describe_location, loclist_describe_location): Use new
7763 member.
7764 * dwarf2/read.c (read_call_site_scope)
7765 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
7766 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
7767 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
7768 handle_data_member_location): Set per_objfile member.
7769 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
7770 member.
7771 (struct dwarf2_loclist_baton) <per_objfile>: New member.
7772
7773 2020-05-27 Tom Tromey <tom@tromey.com>
7774
7775 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
7776 allocate_signatured_type>: Declare new methods.
7777 <m_num_psymtabs>: New member.
7778 (struct dwarf2_per_cu_data) <index>: New member.
7779 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
7780 (dwarf2_per_objfile::allocate_signatured_type): New methods.
7781 (create_cu_from_index_list): Use allocate_per_cu.
7782 (create_signatured_type_table_from_index)
7783 (create_signatured_type_table_from_debug_names)
7784 (create_debug_type_hash_table, add_type_unit)
7785 (read_comp_units_from_section): Use allocate_signatured_type.
7786
7787 2020-05-27 Tom Tromey <tom@tromey.com>
7788
7789 * psymtab.c (partial_map_expand_apply)
7790 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
7791 (psym_lookup_global_symbol_language)
7792 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
7793 (psym_print_stats, psym_expand_symtabs_for_function)
7794 (psym_map_symbol_filenames, psym_map_matching_symbols)
7795 (psym_expand_symtabs_matching)
7796 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
7797 (maintenance_check_psymtabs): Update.
7798 * psympriv.h (struct partial_symtab) <readin_p,
7799 get_compunit_symtab>: Add objfile parameter.
7800 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
7801 Likewise.
7802 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
7803 get_compunit_symtab>: Likewise.
7804 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
7805
7806 2020-05-27 Tom Tromey <tom@tromey.com>
7807
7808 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
7809 member.
7810 * dwarf2/read.c (delete_file_name_entry): Fix comment.
7811 (create_cu_from_index_list)
7812 (create_signatured_type_table_from_index)
7813 (create_signatured_type_table_from_debug_names)
7814 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
7815 (dwarf2_create_include_psymtab)
7816 (create_debug_type_hash_table, add_type_unit)
7817 (create_type_unit_group, read_comp_units_from_section)
7818 (dwarf2_compute_name, create_cus_hash_table)
7819 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
7820 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
7821 obstack.
7822 (dw2_get_real_path): Likewise. Change argument to
7823 dwarf2_per_objfile.
7824
7825 2020-05-27 Luis Machado <luis.machado@linaro.org>
7826
7827 PR tdep/26000
7828 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
7829 for ldrd (immediate).
7830
7831 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7832
7833 * command.h: Add comment giving the name of class_tui.
7834 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
7835 create the fake command for the help for class_tui.
7836
7837 2020-05-26 Tom Tromey <tromey@adacore.com>
7838
7839 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
7840 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
7841 (val_atr): New function.
7842 (value_val_atr): Use it.
7843 * ada-valprint.c (print_optional_low_bound): Change low bound
7844 handling for enums.
7845 (val_print_packed_array_elements): Don't call discrete_position.
7846 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
7847 discrete_position for enum types.
7848 * language.c (default_print_array_index): Change type.
7849 * language.h (struct language_defn) <la_print_array_index>: Add
7850 index_type parameter, change type of index_value.
7851 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
7852 (default_print_array_index): Update.
7853 * valprint.c (maybe_print_array_index): Don't call
7854 value_from_longest. Update.
7855 (value_print_array_elements): Don't call discrete_position.
7856
7857 2020-05-26 Tom Tromey <tromey@adacore.com>
7858
7859 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
7860 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
7861
7862 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
7863
7864 PR gdb/13519
7865 * avr-tdep.c (avr_integer_to_address): Return data or code
7866 address accordingly to the second 'type' argument of the
7867 function.
7868
7869 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
7870
7871 * infcmd.c, inferior.h: (construct_inferior_arguments):
7872 Moved function from here to gdbsupport/common-inferior.{h,cc}
7873
7874 2020-05-23 Tom Tromey <tom@tromey.com>
7875
7876 Revert commit eca1f90c:
7877 * NEWS: Remove entry for completion styling.
7878 * completer.c (_rl_completion_prefix_display_length): Move
7879 declaration later.
7880 (gdb_fnprint): Revert.
7881 (gdb_display_match_list_1): Likewise.
7882 * cli/cli-style.c (completion_prefix_style)
7883 (completion_difference_style, completion_suffix_style): Remove.
7884 (_initialize_cli_style): Revert.
7885 * cli/cli-style.h (completion_prefix_style)
7886 (completion_difference_style, completion_suffix_style): Don't
7887 declare.
7888
7889 2020-05-24 Pedro Alves <palves@redhat.com>
7890
7891 * symtab.c (completion_list_add_name): Return boolean indication
7892 of whether the symbol matched.
7893 (completion_list_add_symbol): Don't try to remove C++ aliases if
7894 the symbol didn't match in the first place.
7895 * symtab.h (completion_list_add_name): Return bool.
7896
7897 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
7898
7899 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
7900 type::field.
7901
7902 2020-05-23 Joel Brobecker <brobecker@adacore.com>
7903
7904 GDB 9.2 released.
7905
7906 2020-05-23 Tom Tromey <tom@tromey.com>
7907
7908 * NEWS: Add entry for completion styling.
7909 * completer.c (_rl_completion_prefix_display_length): Move
7910 declaration earlier.
7911 (gdb_fnprint): Use completion_style.
7912 (gdb_display_match_list_1): Likewise.
7913 * cli/cli-style.c (completion_prefix_style)
7914 (completion_difference_style, completion_suffix_style): New
7915 globals.
7916 (_initialize_cli_style): Register new globals.
7917 * cli/cli-style.h (completion_prefix_style)
7918 (completion_difference_style, completion_suffix_style): Declare.
7919
7920 2020-05-23 Pedro Alves <palves@redhat.com>
7921
7922 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
7923 (parse_escape): Use ISDIGIT instead of isdigit.
7924 (puts_debug): Use gdb_isprint instead of isprint.
7925 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
7926 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
7927 ISSPACE instead of isspace.
7928 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
7929 instead of isspace.
7930 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
7931 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
7932 instead of isxdigit and ISDIGIT instead of isdigit.
7933
7934 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7935
7936 * gdbtypes.h (struct type) <field>: New method.
7937 (TYPE_FIELDS): Remove, replace all uses with either type::fields
7938 or type::field.
7939
7940 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7941
7942 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
7943 (TYPE_FIELDS): Use type::fields. Change all call sites that
7944 modify the propery to use type::set_fields instead.
7945
7946 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7947
7948 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
7949 type::num_fields instead.
7950
7951 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
7952
7953 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
7954 methods.
7955 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
7956 that modify the number of fields to use type::set_num_fields
7957 instead.
7958
7959 2020-05-22 Tom Tromey <tromey@adacore.com>
7960
7961 * compile/compile-object-load.h (munmap_list_free): Don't
7962 declare.
7963
7964 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7965
7966 * annotate.c (annotate_source_line): Update return type, add call
7967 to update current symtab and line.
7968 * annotate.h (annotate_source_line): Update return type, and
7969 extend header comment.
7970 * source.c (info_line_command): Check annotation_level before
7971 calling annotate_source_line.
7972 * stack.c (print_frame_info): If calling annotate_source_line
7973 returns true, then don't print any other source line information.
7974
7975 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7976
7977 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
7978
7979 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
7980
7981 * coffread.c (patch_type): Remove NULL check before xfree.
7982 * corefile.c (set_gnutarget): Likewise.
7983 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
7984 * exec.c (build_section_table): Likewise.
7985 * remote.c (remote_target::pass_signals): Likewise.
7986 * utils.c (n_spaces): Likewise.
7987 * cli/cli-script.c (document_command): Likewise.
7988 * i386-windows-tdep.c (core_process_module_section): Likewise.
7989 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
7990
7991 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
7992
7993 * symfile.c (reread_symbols): Clear objfile's section_offsets
7994 vector and section indices, re-compute them by calling
7995 sym_offsets.
7996
7997 2020-05-20 Tom Tromey <tromey@adacore.com>
7998
7999 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
8000 (desc_one_bound, desc_index_type): Compute field name.
8001
8002 2020-05-20 Tom de Vries <tdevries@suse.de>
8003
8004 PR symtab/25833
8005 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
8006
8007 2020-05-20 Alan Modra <amodra@gmail.com>
8008
8009 PR 25993
8010 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
8011 bfd_set_filename.
8012 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
8013 passed to bfd_set_filename.
8014 * symfile-mem.c (add_vsyscall_page): Likewise for string
8015 passed to symbol_file_add_from_memory.
8016 (symbol_file_add_from_memory): Make name param a const char* and
8017 don't strdup.
8018
8019 2020-05-20 Alan Modra <amodra@gmail.com>
8020
8021 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
8022 rather than accessing bfd->filename directly.
8023 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
8024 and use bfd_section_name.
8025 * dwarf2/frame.c (decode_frame_entry): Likewise.
8026 * exec.c (exec_set_section_address): Likewise.
8027 * solib-aix.c (solib_aix_bfd_open): Likewise.
8028 * stap-probe.c (get_stap_base_address): Likewise.
8029 * symfile.c (reread_symbols): Likewise.
8030
8031 2020-05-19 Tom Tromey <tromey@adacore.com>
8032
8033 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
8034
8035 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8036
8037 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
8038
8039 2020-05-19 Pedro Alves <palves@redhat.com>
8040
8041 * NEWS (set exec-file-mismatch): Adjust entry.
8042 * exec.c: Include "build-id.h".
8043 (validate_exec_file): Try to match build IDs instead of filenames.
8044 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
8045 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
8046 and pass down 'warn_if_slow'.
8047 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
8048 gdb_bfd_open_closure to pass it down.
8049 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
8050
8051 2020-05-19 Pedro Alves <palves@redhat.com>
8052
8053 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
8054 * target.c (target_fileio_open_1): Rename to target_fileio_open
8055 and make extern. Use bool.
8056 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
8057 (target_fileio_read_alloc_1): Adjust.
8058 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
8059 (target_fileio_open_warn_if_slow): Delete declaration.
8060
8061 2020-05-19 Pedro Alves <palves@redhat.com>
8062
8063 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
8064 Adjust all callers.
8065
8066 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
8067
8068 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
8069 whether disp is negative.
8070
8071 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * symfile.h (struct symfile_segment_data)
8074 <~symfile_segment_data>: Remove.
8075 <segment_info>: Change to std::vector.
8076 * symfile.c (default_symfile_segments): Update.
8077 * elfread.c (elf_symfile_segments): Update.
8078
8079 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8080
8081 * symfile.h (struct symfile_segment_data) <struct segment>: New.
8082 <segments>: New.
8083 <segment_bases, segment_sizes>: Remove.
8084 * symfile.c (default_symfile_segments): Update.
8085 * elfread.c (elf_symfile_segments): Update.
8086 * remote.c (remote_target::get_offsets): Update.
8087 * solib-target.c (solib_target_relocate_section_addresses):
8088 Update.
8089
8090 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * symfile.h (struct symfile_segment_data): Initialize fields.
8093 <~symfile_segment_data>: Add.
8094 (symfile_segment_data_up): New.
8095 (struct sym_fns) <sym_segments>: Return a
8096 symfile_segment_data_up.
8097 (default_symfile_segments): Return a symfile_segment_data_up.
8098 (free_symfile_segment_data): Remove.
8099 (get_symfile_segment_data): Return a symfile_segment_data_up.
8100 * symfile.c (default_symfile_segments): Likewise.
8101 (get_symfile_segment_data): Likewise.
8102 (free_symfile_segment_data): Remove.
8103 (symfile_find_segment_sections): Update.
8104 * elfread.c (elf_symfile_segments): Return a
8105 symfile_segment_data_up.
8106 * remote.c (remote_target::get_offsets): Update.
8107 * solib-target.c (solib_target_relocate_section_addresses):
8108 Update.
8109 * symfile-debug.c (debug_sym_segments): Return a
8110 symfile_segment_data_up.
8111
8112 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8113
8114 PR build/25981
8115 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
8116 Hardcode register numbers.
8117
8118 PR build/25981
8119 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
8120 procfs_find_LDT_entry): Remove.
8121 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
8122 procfs_find_LDT_entry): Remove.
8123 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
8124 Remove.
8125
8126 2020-05-17 Pedro Alves <palves@redhat.com>
8127 Andrew Burgess <andrew.burgess@embecosm.com>
8128 Keno Fischer <keno@juliacomputing.com>
8129
8130 PR gdb/25741
8131 * breakpoint.c (build_target_condition_list): Update comments.
8132 (build_target_command_list): Update comments and skip matching
8133 locations.
8134 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
8135 a separate function. Simplify "set breakpoint auto-hw off"
8136 handling.
8137 (insert_breakpoints): Update comment.
8138 (tracepoint_locations_match): New parameter. For breakpoints,
8139 compare location types too, if the caller wants to.
8140 (handle_automatic_hardware_breakpoints): New functions.
8141 (bp_location_is_less_than): Also sort by location type and
8142 hardware breakpoint length.
8143 (update_global_location_list): Handle "set breakpoint auto-hw on"
8144 here.
8145 (update_breakpoint_locations): Ask breakpoint_locations_match to
8146 ignore location types.
8147
8148 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8149
8150 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
8151 type::name instead.
8152
8153 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8154
8155 * gdbtypes.h (struct type) <name, set_name>: New methods.
8156 (TYPE_CODE): Use type::name. Change all call sites used to set
8157 the name to use type::set_name instead.
8158
8159 2020-05-16 Tom Tromey <tom@tromey.com>
8160
8161 * top.c (quit_force): Update.
8162 * infrun.c (handle_no_resumed): Update.
8163 * top.h (all_uis): New function.
8164 (ALL_UIS): Remove.
8165
8166 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
8167
8168 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
8169
8170 2020-05-16 Pedro Alves <palves@redhat.com>
8171
8172 * ia64-linux-nat.c
8173 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
8174 Declare method.
8175 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
8176
8177 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
8178
8179 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
8180 (sparc64_adi_info): Likewise.
8181
8182 2020-05-15 Tom Tromey <tom@tromey.com>
8183
8184 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
8185 block_objfile.
8186 (lookup_objfile_from_block): Remove.
8187 (lookup_symbol_in_block, lookup_symbol_in_static_block)
8188 (lookup_global_symbol): Use block_objfile.
8189 * symtab.h (lookup_objfile_from_block): Don't declare.
8190 * printcmd.c (clear_dangling_display_expressions): Use
8191 block_objfile.
8192 * parse.c (operator_check_standard): Use block_objfile.
8193
8194 2020-05-15 Tom Tromey <tom@tromey.com>
8195
8196 * language.c (language_alloc_type_symbol): Set
8197 SYMBOL_SECTION.
8198 * symtab.c (initialize_objfile_symbol): Remove.
8199 (allocate_symbol): Remove.
8200 (allocate_template_symbol): Remove.
8201 * dwarf2/read.c (fixup_go_packaging): Use "new".
8202 (new_symbol): Use "new".
8203 (read_variable): Don't call initialize_objfile_symbol. Use
8204 "new".
8205 (read_func_scope): Use "new".
8206 * xcoffread.c (process_xcoff_symbol): Don't call
8207 initialize_objfile_symbol.
8208 (SYMBOL_DUP): Remove.
8209 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
8210 "new".
8211 * symtab.h (allocate_symbol, initialize_objfile_symbol)
8212 (allocate_template_symbol): Don't declare.
8213 (struct symbol): Add copy constructor. Change defaults.
8214 * jit.c (finalize_symtab): Use "new".
8215 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
8216 Use "new".
8217 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
8218 (common_block_end): Use "new".
8219 * mdebugread.c (parse_symbol): Use "new".
8220 (new_symbol): Likewise.
8221
8222 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8223
8224 * NEWS: Mention changes to help and apropos.
8225
8226 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8227
8228 * command.h (enum command_class): Improve comments, document
8229 that class_alias is for user-defined aliases, give the class
8230 name for each class, remove unused class_xdb.
8231 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
8232 * breakpoint.c (_initialize_breakpoint): Replace class_alias
8233 by a precise class.
8234 * infcmd.c (_initialize_infcmd): Likewise.
8235 * reverse.c (_initialize_reverse): Likewise.
8236 * stack.c (_initialize_stack): Likewise.
8237 * symfile.c (_initialize_symfile): Likewise.
8238 * tracepoint.c (_initialize_tracepoint): Likewise.
8239
8240 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8241
8242 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
8243 when their aliased command is traversed.
8244 (help_cmd): Add fput_command_names_styled call to
8245 output command name and aliases when command has an alias.
8246
8247 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8248
8249 * cli/cli-decode.h (help_cmd_list): Remove declaration.
8250 * cli/cli-decode.c (help_cmd_list): Declare as static,
8251 remove prefix argument, use bool for recurse arg, rework to show the aliases of
8252 a command together with the command.
8253 (fput_command_name_styled, fput_command_names_styled): New functions.
8254 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
8255 fput_command_name_styled.
8256 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
8257 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
8258
8259 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8260
8261 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
8262 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
8263 * command.h (cmd_show_list): Likewise.
8264 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
8265 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
8266
8267 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8268
8269 * unittests/command-def-selftests.c (traverse_command_structure):
8270 Verify all commands of a list have the same prefix command and
8271 that only the top cmdlist commands have a null prefix.
8272
8273 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8274
8275 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
8276 as prefix, not one of its aliases.
8277 (set_cmd_prefix): Remove.
8278 (do_add_cmd): Centralize the setting of the prefix of a command, when
8279 command is defined after its full chain of prefix commands.
8280 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
8281 (add_setshow_cmd_full): Likewise.
8282 (update_prefix_field_of_prefixed_commands): New function.
8283 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
8284 update_prefix_field_of_prefixed_commands.
8285 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
8286 addresses of remote_set_cmdlist and remote_show_cmdlist given
8287 as argument, not the address of an argument.
8288 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
8289 * gdb/remote.c (_initialize_remote): Likewise.
8290
8291 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8292
8293 * cli/cli-cmds.c (alias_command): Check for an existing alias
8294 using lookup_cmd_composition, as valid_command_p is too strict
8295 and forbids aliases that are the prefix of an existing alias
8296 or command.
8297 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
8298 command is properly recognised as a valid command.
8299
8300 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8301
8302 * unittests/help-doc-selftests.c: Rename to
8303 unittests/command-def-selftests.c
8304 * unittests/command-def-selftests.c (help_doc_tests): Update some
8305 comments.
8306 (command_structure_tests, traverse_command_structure): New namespace
8307 and function.
8308 (command_structure_invariants_tests): New function.
8309 (_initialize_command_def_selftests) Renamed from
8310 _initialize_help_doc_selftests, register command_structure_invariants
8311 selftest.
8312
8313 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8314
8315 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
8316 an alias of 'show'.
8317
8318 2020-05-15 Joel Brobecker <brobecker@adacore.com>
8319
8320 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
8321 ada_is_fixed_point_type. Update all callers.
8322 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
8323 all callers.
8324 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
8325 Update all callers.
8326 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
8327 print_fixed_point_type. Update all callers.
8328 * ada-valprint.c (ada_value_print_num): Replace call to
8329 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
8330
8331 2020-05-14 Kevin Buettner <kevinb@redhat.com>
8332
8333 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
8334 processors.
8335 (cpu_supports_bts): Add CV_AMD case.
8336
8337 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
8338 Simon Marchi <simon.marchi@efficios.com>
8339
8340 * infrun.c (stop_all_threads): Collect multiple wait events at
8341 each pass.
8342
8343 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8344
8345 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
8346 type::code instead.
8347
8348 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
8349
8350 * gdbtypes.h (struct type) <code, set_code>: New methods.
8351 (TYPE_CODE): Use type::code. Change all call sites used to set
8352 the code to use type::set_code instead.
8353
8354 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8355 Tom de Vries <tdevries@suse.de>
8356 Pedro Alves <palves@redhat.com>
8357
8358 PR threads/25478
8359 * infrun.c (stop_all_threads): Do NOT ignore
8360 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
8361 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
8362 received.
8363 (handle_no_resumed): Remove code handling a live inferior with no
8364 threads.
8365 * remote.c (has_single_non_exited_thread): New.
8366 (remote_target::update_thread_list): Do not delete a thread if is
8367 the last thread of the process.
8368 * thread.c (thread_select): Call delete_exited_threads instead of
8369 prune_threads.
8370
8371 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8372
8373 * infrun.c (stop_all_threads): Enable/disable thread events of all
8374 targets. Move a debug message denoting the end of the function
8375 into the SCOPED_EXIT block.
8376
8377 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8378
8379 * process-stratum-target.h: Include <set>.
8380 (all_non_exited_process_targets, switch_to_target_no_thread): New
8381 function declarations.
8382 * process-stratum-target.c (all_non_exited_process_targets)
8383 (switch_to_target_no_thread): New function implementations.
8384
8385 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8386
8387 * infrun.c (handle_inferior_event): Extract out a piece of code
8388 into...
8389 (mark_non_executing_threads): ...this new function.
8390
8391 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8392
8393 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
8394 use.
8395
8396 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8397
8398 * regcache.c (regcache_read_pc_protected): New function
8399 implementation that returns 0 if the PC cannot read via
8400 'regcache_read_pc'.
8401 * infrun.c (proceed): Call 'regcache_read_pc_protected'
8402 instead of 'regcache_read_pc'.
8403 (keep_going_pass_signal): Ditto.
8404
8405 2020-05-13 Tom Tromey <tromey@adacore.com>
8406
8407 * ada-lang.c (align_value): Remove.
8408 (ada_template_to_fixed_record_type_1): Use align_up.
8409
8410 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8411
8412 * async-event.c: Update the copyright year.
8413 * async-event.h: Update the copyright year.
8414
8415 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * objfiles.h (is_addr_in_objfile,
8418 shared_objfile_contains_address_p): Return bool.
8419 * objfile.c (is_addr_in_objfile,
8420 shared_objfile_contains_address_p): Return bool.
8421
8422 2020-05-11 Tom Tromey <tromey@adacore.com>
8423
8424 * cli/cli-cmds.c (info_command): Restore.
8425 (_initialize_cli_cmds): Use add_prefix_command for "info".
8426 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
8427
8428 2020-05-11 Tom Tromey <tromey@adacore.com>
8429
8430 * ada-lang.c (ada_value_primitive_field): Now public.
8431 * ada-lang.h (ada_value_primitive_field): Declare.
8432 * ada-valprint.c (print_field_values): Use
8433 ada_value_primitive_field for wrapper fields.
8434
8435 2020-05-11 Tom de Vries <tdevries@suse.de>
8436
8437 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
8438 MODULE_DOMAIN.
8439
8440 2020-05-11 Tom de Vries <tdevries@suse.de>
8441
8442 PR symtab/25941
8443 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
8444 with length 0, if not gdb-produced.
8445 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
8446
8447 2020-05-09 Tom de Vries <tdevries@suse.de>
8448
8449 PR gdb/25955
8450 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
8451 calculation.
8452
8453 2020-05-09 Tom Tromey <tom@tromey.com>
8454
8455 * top.c (server_command): Now bool.
8456 * top.h (server_command): Now bool.
8457
8458 2020-05-08 Tom Tromey <tromey@adacore.com>
8459
8460 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
8461 already being processed.
8462
8463 2020-05-08 Tom Tromey <tom@tromey.com>
8464
8465 * printcmd.c (struct display) <next>: Remove.
8466 <display>: New constructor.
8467 <exp_string>: Now a std::string.
8468 <enabled_p>: Now a bool.
8469 (display_number): Move definition earlier.
8470 (displays): Rename from display_chain. Now a std::vector.
8471 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
8472 (display_command): Update.
8473 (do_one_display, disable_display)
8474 (enable_disable_display_command, do_enable_disable_display):
8475 Update.
8476 (free_display): Remove.
8477 (clear_displays): Rewrite.
8478 (delete_display): Update.
8479 (map_display_numbers): Use function_view. Remove "data"
8480 parameter. Update.
8481 (do_delete_display): Remove.
8482 (undisplay_command): Update.
8483 (do_one_display, do_displays, disable_display)
8484 (info_display_command): Update.
8485 (do_enable_disable_display): Remove.
8486 (enable_disable_display_command)
8487 (clear_dangling_display_expressions): Update.
8488
8489 2020-05-08 Tom Tromey <tom@tromey.com>
8490
8491 * symtab.c (set_symbol_cache_size)
8492 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
8493 (maintenance_print_symbol_cache_statistics): Update.
8494 * symmisc.c (print_symbol_bcache_statistics)
8495 (print_objfile_statistics, maintenance_print_objfiles)
8496 (maintenance_info_symtabs, maintenance_check_symtabs)
8497 (maintenance_expand_symtabs, maintenance_info_line_tables):
8498 Update.
8499 * symfile-debug.c (set_debug_symfile): Update.
8500 * source.c (forget_cached_source_info): Update.
8501 * python/python.c (gdbpy_progspaces): Update.
8502 * psymtab.c (maintenance_info_psymtabs): Update.
8503 * probe.c (parse_probes): Update.
8504 * linespec.c (iterate_over_all_matching_symtabs)
8505 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
8506 * guile/scm-progspace.c (gdbscm_progspaces): Update.
8507 * exec.c (exec_target::close): Update.
8508 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
8509 * breakpoint.c (print_one_breakpoint_location)
8510 (create_longjmp_master_breakpoint)
8511 (create_std_terminate_master_breakpoint): Update.
8512 * progspace.c (program_spaces): Now a std::vector.
8513 (maybe_new_address_space): Update.
8514 (add_program_space): Remove.
8515 (program_space::program_space): Update.
8516 (remove_program_space): Update.
8517 (number_of_program_spaces): Remove.
8518 (print_program_space, update_address_spaces): Update.
8519 * progspace.h (program_spaces): Change type.
8520 (ALL_PSPACES): Remove.
8521 (number_of_program_spaces): Don't declare.
8522 (struct program_space) <next>: Remove.
8523
8524 2020-05-08 Tom Tromey <tom@tromey.com>
8525
8526 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
8527 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
8528 (enable_break): Update.
8529 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
8530 (frv_fdpic_find_canonical_descriptor): Update.
8531 (frv_fetch_objfile_link_map): Update.
8532 * progspace.c (program_space::free_all_objfiles): Update.
8533 (program_space::solibs): New method.
8534 * progspace.h (struct program_space) <solibs>: New method.
8535 * solist.h (master_so_list): Don't declare.
8536 (ALL_SO_LIBS): Remove.
8537 * solib.h (so_list_head): Remove.
8538 (update_solib_list): Update comment.
8539 * solib.c (master_so_list): Remove.
8540 (solib_used, update_solib_list, solib_add)
8541 (info_sharedlibrary_command, clear_solib)
8542 (reload_shared_libraries_1, remove_user_added_objfile): Update.
8543
8544 2020-05-08 Tom Tromey <tom@tromey.com>
8545
8546 * extension.c (extension_languages): Now a std::array.
8547 (ALL_EXTENSION_LANGUAGES): Remove.
8548 (get_ext_lang_defn, get_ext_lang_of_file)
8549 (eval_ext_lang_from_control_command): Update.
8550 (finish_ext_lang_initialization)
8551 (auto_load_ext_lang_scripts_for_objfile)
8552 (ext_lang_type_printers::ext_lang_type_printers)
8553 (apply_ext_lang_type_printers)
8554 (ext_lang_type_printers::~ext_lang_type_printers)
8555 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
8556 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
8557 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
8558 (get_matching_xmethod_workers, ext_lang_colorize)
8559 (ext_lang_before_prompt): Update.
8560 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
8561
8562 2020-05-08 Tom Tromey <tom@tromey.com>
8563
8564 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
8565 overload.
8566 <swap_string, m_string>: Remove.
8567 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
8568 Update.
8569 * stabsread.c (define_symbol, read_type): Update.
8570 * linespec.c (find_linespec_symbols): Update.
8571 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
8572 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
8573 * dbxread.c (read_dbx_symtab): Update.
8574 * cp-support.h (cp_canonicalize_string_full)
8575 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
8576 Return unique_xmalloc_ptr.
8577 * cp-support.c (inspect_type): Update.
8578 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
8579 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
8580 Likewise.
8581 * c-typeprint.c (print_name_maybe_canonical): Update.
8582 * break-catch-throw.c (check_status_exception_catchpoint):
8583 Update.
8584
8585 2020-05-08 Tom de Vries <tdevries@suse.de>
8586
8587 * infrun.c (follow_fork): Copy current_line and current_symtab to
8588 child thread.
8589
8590 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8591
8592 * async-event.c (struct async_signal_handler, struct
8593 async_event_handler): Reformat, remove typedef.
8594
8595 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8596
8597 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
8598 access thistype->main_type->dyn_prop_list directly.
8599
8600 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8601
8602 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
8603 (remove_dyn_prop): Remove. Update all users to use
8604 type::remove_dyn_prop.
8605 * gdbtypes.c (remove_dyn_prop): Rename to...
8606 (type::remove_dyn_prop): ... this.
8607
8608 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
8609
8610 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
8611 (add_dyn_prop): Remove. Update all users to use
8612 type::add_dyn_prop.
8613 * gdbtypes.c (add_dyn_prop): Rename to...
8614 (type::add_dyn_prop): ... this.
8615
8616 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
8617
8618 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
8619 (get_dyn_prop): Remove. Update all users to use
8620 type::dyn_prop.
8621 * gdbtypes.c (get_dyn_prop): Rename to...
8622 (type::dyn_prop): ... this.
8623
8624 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8625
8626 * gdbtypes.h (struct main_type) <flag_static>: Remove.
8627
8628 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
8631 instruction, skip it if it's there.
8632
8633 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
8634
8635 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
8636
8637 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
8640 * gdbtypes.c (recursive_dump_type): Remove use of
8641 TYPE_INCOMPLETE.
8642
8643 2020-05-03 Tom Tromey <tom@tromey.com>
8644
8645 * breakpoint.c (catch_command, tcatch_command): Remove.
8646 (_initialize_breakpoint): Use add_basic_prefix_cmd,
8647 add_show_prefix_cmd.
8648 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
8649 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
8650 Remove.
8651 (add_internal_problem_command): Use add_basic_prefix_cmd,
8652 add_show_prefix_cmd.
8653 * mips-tdep.c (set_mipsfpu_command): Remove.
8654 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
8655 * dwarf2/index-cache.c (set_index_cache_command): Remove.
8656 (_initialize_index_cache): Use add_basic_prefix_cmd.
8657 * memattr.c (dummy_cmd): Remove.
8658 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
8659 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
8660 (_initialize_tui_win): Use add_basic_prefix_cmd,
8661 add_show_prefix_cmd.
8662 * cli/cli-logging.c (set_logging_command): Remove.
8663 (_initialize_cli_logging): Use add_basic_prefix_cmd,
8664 add_show_prefix_cmd.
8665 (show_logging_command): Remove.
8666 * target.c (target_command): Remove.
8667 (add_target): Use add_basic_prefix_cmd.
8668
8669 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
8670
8671 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
8672
8673 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8674
8675 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
8676 info_command.
8677
8678 2020-04-30 Kamil Rytarowski <n54@gmx.com>
8679
8680 * nbsd-nat.c (nbsd_enable_proc_events)
8681 (nbsd_nat_target::post_startup_inferior): Add.
8682 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
8683 (nbsd_nat_target::update_thread_list): Rewrite.
8684 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
8685 "PTRACE_LWP_CREATE".
8686 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
8687
8688 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8689
8690 * stack.c (_initialize_stack): Remove duplicated creation
8691 of "frame" command and "f" alias.
8692
8693 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8694
8695 PR gdb/18706
8696 * gdbtypes.c (check_typedef): Calculate size of array of
8697 stubbed type.
8698
8699 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
8700
8701 PR gdb/15559
8702 * i386-tdep.c (i386_push_dummy_call): Call
8703 i386_thiscall_push_dummy_call.
8704 (i386_thiscall_push_dummy_call): New function.
8705 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
8706 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
8707 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
8708
8709 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8710
8711 * gdbarch.sh (do_read): Add shellcheck disable directive for
8712 warning SC2162.
8713
8714 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8715
8716 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
8717 "referenced but not assigned" warning.
8718
8719 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * gdbarch.sh: Remove code that sets fallbackdefault.
8722
8723 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8724
8725 * gdbarch.sh: Use shell operators && and || instead of
8726 -a and -o.
8727
8728 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8729
8730 * gdbarch.sh: Use $(...) instead of `...`.
8731
8732 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8733
8734 * gdbarch.sh: Use double quotes around variables.
8735
8736 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
8737
8738 * gdbarch.sh: Use %s with printf, instead of variables in the
8739 format string.
8740
8741 2020-04-29 Tom Tromey <tromey@adacore.com>
8742
8743 PR ada/25875:
8744 * dwarf2/read.c (update_enumeration_type_from_children): Compute
8745 type fields here.
8746 (read_enumeration_type): Call
8747 update_enumeration_type_from_children later. Update comments.
8748 (process_enumeration_scope): Don't create type fields.
8749
8750 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8751
8752 * nbsd-tdep.c: Include "xml-syscall.h".
8753 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
8754
8755 2020-04-29 Kamil Rytarowski <n54@gmx.com>
8756
8757 * nbsd-nat.c: Include "sys/wait.h".
8758 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
8759 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
8760 (nbsd_nat_target::remove_exec_catchpoint)
8761 (nbsd_nat_target::set_syscall_catchpoint): Add.
8762 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
8763 (nbsd_nat_target::insert_exec_catchpoint)
8764 (nbsd_nat_target::remove_exec_catchpoint)
8765 (nbsd_nat_target::set_syscall_catchpoint): Add.
8766 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
8767 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
8768 `nbsd_get_syscall_number'.
8769
8770 2020-04-29 Tom Tromey <tom@tromey.com>
8771
8772 * stack.c (print_block_frame_labels): Remove.
8773
8774 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
8775
8776 PR gdb/17320
8777 * ada-valprint.c (val_print_packed_array_elements): Move array
8778 end bracket to new line.
8779 (ada_val_print_string): Remove extra spaces before first array
8780 element.
8781 * c-valprint.c (c_value_print_array): Likewise.
8782 * m2-valprint.c (m2_print_array_contents): Likewise.
8783 (m2_value_print_inner): Likewise.
8784 * p-valprint.c (pascal_value_print_inner): Likewise.
8785 * valprint.c (generic_val_print_array): Likewise.
8786 (value_print_array_elements): Move first array element and array
8787 end bracket to new line.
8788
8789 2020-04-29 Tom de Vries <tdevries@suse.de>
8790
8791 PR symtab/25889
8792 * linespec.c (find_method): Fix ix calculation.
8793
8794 2020-04-28 Kamil Rytarowski <n54@gmx.com>
8795
8796 * syscalls/update-netbsd.sh: New file.
8797 * syscalls/netbsd.xml: Regenerate.
8798 * data-directory/Makefile.in: Register `netbsd.xml' in
8799 `SYSCALLS_FILES'.
8800
8801 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8802
8803 * syscalls/update-freebsd.sh: Add double quotes.
8804
8805 2020-04-28 Tom Tromey <tom@tromey.com>
8806
8807 * NEWS: Update.
8808 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
8809 (cmdpy_init): Allow class_tui.
8810
8811 2020-04-28 Mark Williams <mark@myosotissp.com>
8812
8813 PR gdb/24480
8814 * dwarf2read.c: Add missing assingments to list_in_scope when
8815 start_symtab was already called.
8816
8817 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
8818
8819 PR gdb/25881
8820 * dwarf2/read.c (offset_map_type): Use
8821 gdb:hash_enum<sect_offset> as hash function.
8822
8823 2020-04-28 Tom de Vries <tdevries@suse.de>
8824
8825 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
8826 with DW_AT_signature.
8827
8828 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
8829
8830 * configure.ac: Remove check for fs_base/gs_base in
8831 user_regs_struct.
8832 * configure: Re-generate.
8833 * config.in: Re-generate.
8834 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
8835 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
8836 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
8837
8838 2020-04-27 Luis Machado <luis.machado@linaro.org>
8839
8840 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
8841 problematic inline frame unwinding situation.
8842 * frame.c (frame_id_computed_p): New function.
8843 * frame.h (frame_id_computed_p): New prototype.
8844
8845 2020-04-26 Tom Tromey <tom@tromey.com>
8846
8847 * command.h (enum command_class) <class_pseudo>: Remove.
8848
8849 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8850
8851 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
8852 and whitespace.
8853
8854 2020-04-25 Kamil Rytarowski <n54@gmx.com>
8855
8856 * inf-ptrace.c (inf_ptrace_target::wait): Remove
8857 `PT_GET_PROCESS_STATE' block.
8858
8859 2020-04-24 Tom Tromey <tom@tromey.com>
8860
8861 * symtab.h (symbol_get_demangled_name): Don't declare.
8862 * symtab.c (symbol_get_demangled_name): Remove.
8863 (general_symbol_info::natural_name)
8864 (general_symbol_info::demangled_name): Update.
8865
8866 2020-04-24 Tom Tromey <tom@tromey.com>
8867
8868 PR rust/25025:
8869 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
8870
8871 2020-04-24 Tom Tromey <tom@tromey.com>
8872
8873 PR symtab/12707:
8874 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
8875 exists.
8876 (new_symbol): Likewise.
8877 * compile/compile-object-load.c (get_out_value_type): Use
8878 symbol_matches_search_name.
8879
8880 2020-04-24 Tom Tromey <tom@tromey.com>
8881
8882 * dwarf2/read.c (add_partial_symbol): Do not call
8883 compute_and_set_names.
8884
8885 2020-04-24 Tom Tromey <tom@tromey.com>
8886
8887 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
8888 overload.
8889
8890 2020-04-24 Tom Tromey <tom@tromey.com>
8891
8892 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
8893 (add_psymbol_to_list): New overload. Make old overload call new
8894 one.
8895 * psympriv.h (add_psymbol_to_list): New overload.
8896
8897 2020-04-24 Tom Tromey <tom@tromey.com>
8898
8899 * dwarf2/read.c (partial_die_info::read) <case
8900 DW_AT_linkage_name>: Use value_as_string.
8901 (dwarf2_string_attr): Use value_as_string.
8902 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
8903 method.
8904 * dwarf2/attribute.c (attribute::value_as_string): New method.
8905
8906 2020-04-24 Tom Tromey <tom@tromey.com>
8907
8908 * symtab.c (general_symbol_info::natural_name)
8909 (general_symbol_info::demangled_name): Check for language_rust.
8910
8911 2020-04-24 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
8914 (dwarf2_physname): ... from here.
8915 (partial_die_info::read): Add Rust "{" hack.
8916
8917 2020-04-24 Tom Tromey <tom@tromey.com>
8918
8919 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
8920 method.
8921 (symbol_set_demangled_name): Don't declare.
8922 * symtab.c (general_symbol_info::set_demangled_name): Rename from
8923 symbol_set_demangled_name.
8924 (general_symbol_info::set_language)
8925 (general_symbol_info::compute_and_set_names): Update.
8926 * minsyms.c (minimal_symbol_reader::install): Update.
8927 * dwarf2/read.c (new_symbol): Update.
8928
8929 2020-04-24 Tom Tromey <tromey@adacore.com>
8930
8931 PR python/23662:
8932 * python/py-type.c (convert_field): Handle
8933 FIELD_LOC_KIND_DWARF_BLOCK.
8934 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
8935 (typy_get_dynamic): Nw function.
8936 (type_object_getset): Add "dynamic".
8937 * NEWS: Add entry.
8938
8939 2020-04-24 Tom Tromey <tromey@adacore.com>
8940
8941 * ada-typeprint.c (print_choices, print_variant_part)
8942 (print_record_field_types_dynamic): New functions.
8943 (print_record_field_types): Use print_record_field_types_dynamic.
8944
8945 2020-04-24 Tom Tromey <tromey@adacore.com>
8946
8947 * dwarf2/read.c (handle_data_member_location): New overload.
8948 (dwarf2_add_field): Use it.
8949 (decode_locdesc): Add "computed" parameter. Update comment.
8950 * gdbtypes.c (is_dynamic_type_internal): Also look for
8951 FIELD_LOC_KIND_DWARF_BLOCK.
8952 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
8953 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
8954 virtual base classes.
8955 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
8956 FIELD_LOC_KIND_DWARF_BLOCK.
8957
8958 2020-04-24 Tom Tromey <tromey@adacore.com>
8959
8960 * dwarf2/read.c (read_structure_type): Handle dynamic length.
8961 * gdbtypes.c (is_dynamic_type_internal): Check
8962 TYPE_HAS_DYNAMIC_LENGTH.
8963 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
8964 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
8965 New macros.
8966 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
8967 constant.
8968
8969 2020-04-24 Tom Tromey <tromey@adacore.com>
8970
8971 * dwarf2/read.c (struct variant_field): Rewrite.
8972 (struct variant_part_builder): New.
8973 (struct nextfield): Remove "variant" field. Add "offset".
8974 (struct field_info): Add "current_variant_part" and
8975 "variant_parts".
8976 (alloc_discriminant_info): Remove.
8977 (alloc_rust_variant): New function.
8978 (quirk_rust_enum): Update.
8979 (dwarf2_add_field): Set "offset" member. Don't handle
8980 DW_TAG_variant_part.
8981 (offset_map_type): New typedef.
8982 (convert_variant_range, create_one_variant)
8983 (create_one_variant_part, create_variant_parts)
8984 (add_variant_property): New functions.
8985 (dwarf2_attach_fields_to_type): Call add_variant_property.
8986 (read_structure_type): Don't handle DW_TAG_variant_part.
8987 (handle_variant_part, handle_variant): New functions.
8988 (handle_struct_member_die): Use them.
8989 (process_structure_scope): Don't handle variant parts.
8990 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
8991 (struct discriminant_info): Remove.
8992 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
8993 (struct main_type) <flag_discriminated_union>: Remove.
8994 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
8995 (rust_enum_variant): Return int. Remove "contents". Rewrite.
8996 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
8997 Update.
8998 * valops.c (value_union_variant): Remove.
8999 * value.h (value_union_variant): Don't declare.
9000
9001 2020-04-24 Tom Tromey <tromey@adacore.com>
9002
9003 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
9004 (ada_value_primitive_packed_val): Update.
9005 * ada-valprint.c (ada_value_print_1): Update.
9006 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
9007 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
9008 just an address. Use evaluate_for_locexpr_baton.
9009 (dwarf2_evaluate_property): Update.
9010 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
9011 array_view.
9012 * findvar.c (default_read_var_value): Update.
9013 * gdbtypes.c (compute_variant_fields_inner)
9014 (resolve_dynamic_type_internal): Update.
9015 (resolve_dynamic_type): Change type of valaddr parameter.
9016 * gdbtypes.h (resolve_dynamic_type): Update.
9017 * valarith.c (value_subscripted_rvalue): Update.
9018 * value.c (value_from_contents_and_address): Update.
9019
9020 2020-04-24 Tom Tromey <tromey@adacore.com>
9021
9022 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
9023 "push_initial_value" parameter.
9024 (dwarf2_evaluate_property): Likewise.
9025 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
9026
9027 2020-04-24 Tom Tromey <tromey@adacore.com>
9028
9029 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
9030 (variant::matches, compute_variant_fields_recurse)
9031 (compute_variant_fields_inner, compute_variant_fields): New
9032 functions.
9033 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
9034 Use resolved_type after type is made.
9035 (operator==): Add new cases.
9036 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
9037 (struct discriminant_range, struct variant, struct variant_part):
9038 New.
9039 (union dynamic_prop_data) <variant_parts, original_type>: New
9040 members.
9041 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
9042 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
9043 constants.
9044 * value.c (unpack_bits_as_long): Now public.
9045 * value.h (unpack_bits_as_long): Declare.
9046
9047 2020-04-24 Tom Tromey <tromey@adacore.com>
9048
9049 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
9050 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
9051
9052 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
9053
9054 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
9055
9056 2020-04-24 Kamil Rytarowski <n54@gmx.com>
9057
9058 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
9059 (remove_fork_catchpoint, post_startup_inferior)
9060 (post_attach): Move...
9061 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
9062 (remove_fork_catchpoint, post_startup_inferior)
9063 (post_attach): ...here.
9064 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
9065 (remove_fork_catchpoint, post_startup_inferior)
9066 (post_attach): Move...
9067 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
9068 (remove_fork_catchpoint, post_startup_inferior)
9069 (post_attach): ...here.
9070
9071 2020-04-24 Tom Tromey <tromey@adacore.com>
9072
9073 * nat/windows-nat.h (struct windows_thread_info)
9074 <pc_adjusted>: New member.
9075 * windows-nat.c (windows_fetch_one_register): Check
9076 pc_adjusted.
9077 (windows_nat_target::get_windows_debug_event)
9078 (windows_nat_target::wait): Set pc_adjusted.
9079
9080 2020-04-24 Tom de Vries <tdevries@suse.de>
9081
9082 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
9083 Run gdb-add-index inside temp dir.
9084
9085 2020-04-23 Tom Tromey <tromey@adacore.com>
9086
9087 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
9088 in loop.
9089
9090 2020-04-23 Luis Machado <luis.machado@linaro.org>
9091
9092 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9093 get_frame_register instead of gdbarch_unwind_pc.
9094
9095 2020-04-23 Tom de Vries <tdevries@suse.de>
9096
9097 * symtab.c (lookup_global_symbol): Prefer def over decl.
9098
9099 2020-04-23 Tom de Vries <tdevries@suse.de>
9100
9101 PR symtab/25807
9102 * block.c (best_symbol, better_symbol): Promote to external.
9103 * block.h (best_symbol, better_symbol): Declare.
9104 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
9105 decl.
9106
9107 2020-04-23 Tom Tromey <tromey@adacore.com>
9108
9109 PR ada/25837:
9110 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
9111 "const char *", not a "const std::string &".
9112 <name_and_matcher::operator==>: Update.
9113 * unittests/lookup_name_info-selftests.c: Change type of
9114 "result".
9115
9116 2020-04-23 Tom Tromey <tom@tromey.com>
9117
9118 * inferior.h (iterate_over_inferiors): Don't declare.
9119 * inferior.c (iterate_over_inferiors): Remove.
9120 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
9121 Remove.
9122 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
9123 use iterate_over_inferiors.
9124 (darwin_resume_inferior_it)
9125 (struct resume_inferior_threads_param)
9126 (darwin_resume_inferior_threads_it): Remove.
9127 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
9128
9129 2020-04-23 Tom de Vries <tdevries@suse.de>
9130
9131 * blockframe.c (find_pc_partial_function): Use
9132 find_pc_sect_compunit_symtab rather than
9133 objfile->sf->qf->find_pc_sect_compunit_symtab.
9134
9135 2020-04-22 Tom de Vries <tdevries@suse.de>
9136
9137 PR symtab/25764
9138 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
9139 in psymtabs.
9140
9141 2020-04-22 Tom de Vries <tdevries@suse.de>
9142
9143 PR symtab/25801
9144 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
9145 symtabs.
9146
9147 2020-04-22 Tom de Vries <tdevries@suse.de>
9148
9149 PR symtab/25700
9150 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
9151 CU if already created.
9152
9153 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
9154
9155 * infrun.c (displaced_step_fixup): Switch to the event_thread
9156 before calling displaced_step_restore, not after.
9157
9158 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9159
9160 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
9161 its inferior is not recorded by us.
9162 (record_btrace_target_open): Replace call to
9163 all_non_exited_threads () with call to current_inferior
9164 ()->non_exited_threads ().
9165 (record_btrace_target::stop_recording): Likewise.
9166 (record_btrace_target::close): Likewise.
9167 (record_btrace_target::wait): Likewise.
9168 (record_btrace_target::record_stop_replaying): Likewise.
9169
9170 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9171
9172 * btrace.c (btrace_enable): Throw an error on double enables and
9173 when enabling recording fails.
9174 (btrace_disable): Throw an error if the thread is not recorded.
9175
9176 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
9177
9178 * record-btrace.c (record_btrace_target::fetch_registers): Forward
9179 request if we do not have a thread_info.
9180
9181 2020-04-21 Tom de Vries <tdevries@suse.de>
9182
9183 PR gdb/25471
9184 * thread.c
9185 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
9186 exception in get_frame_id.
9187
9188 2020-04-20 Tom Tromey <tromey@adacore.com>
9189
9190 * python/python.c (struct gdbpy_event): Mark move constructor as
9191 noexcept.
9192 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
9193 constructor as noexcept.
9194 * completer.h (struct completion_result): Mark move constructor as
9195 noexcept.
9196 * completer.c (completion_result::completion_result): Use
9197 initialization style. Don't call reset_match_list.
9198
9199 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
9200
9201 * MAINTAINERS (Write After Approval): Add myself.
9202
9203 2020-04-18 Tom Tromey <tom@tromey.com>
9204
9205 * windows-tdep.c (init_w32_command_list)
9206 (w32_prefix_command_valid): Restore.
9207 (_initialize_windows_tdep): Call init_w32_command_list.
9208
9209 2020-04-18 Tom Tromey <tom@tromey.com>
9210
9211 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
9212 * value.c (value_fn_field): Update.
9213 * valops.c (find_function_in_inferior)
9214 (value_allocate_space_in_inferior): Update.
9215 * tui/tui-winsource.c (tui_update_source_windows_with_line):
9216 Update.
9217 * tui/tui-source.c (tui_source_window::set_contents): Update.
9218 * symtab.c (lookup_global_or_static_symbol)
9219 (find_function_start_sal_1, skip_prologue_sal)
9220 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
9221 * symmisc.c (dump_msymbols, dump_symtab_1)
9222 (maintenance_print_one_line_table): Update.
9223 * symfile.c (init_entry_point_info, section_is_mapped)
9224 (list_overlays_command, simple_read_overlay_table)
9225 (simple_overlay_update_1): Update.
9226 * stap-probe.c (handle_stap_probe): Update.
9227 * stabsread.c (dbx_init_float_type, define_symbol)
9228 (read_one_struct_field, read_enum_type, read_range_type): Update.
9229 * source.c (info_line_command): Update.
9230 * python/python.c (gdbpy_source_objfile_script)
9231 (gdbpy_execute_objfile_script): Update.
9232 * python/py-type.c (save_objfile_types): Update.
9233 * python/py-objfile.c (py_free_objfile): Update.
9234 * python/py-inferior.c (python_new_objfile): Update.
9235 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
9236 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
9237 (maintenance_check_psymtabs): Update.
9238 * printcmd.c (info_address_command): Update.
9239 * objfiles.h (struct objfile) <arch>: New method, from
9240 get_objfile_arch.
9241 (get_objfile_arch): Don't declare.
9242 * objfiles.c (get_objfile_arch): Remove.
9243 (filter_overlapping_sections): Update.
9244 * minsyms.c (msymbol_is_function): Update.
9245 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
9246 (output_nondebug_symbol): Update.
9247 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
9248 (mdebug_expand_psymtab): Update.
9249 * machoread.c (macho_add_oso_symfile): Update.
9250 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
9251 Update.
9252 * linux-fork.c (checkpoint_command): Update.
9253 * linespec.c (convert_linespec_to_sals): Update.
9254 * jit.c (finalize_symtab): Update.
9255 * infrun.c (insert_exception_resume_from_probe): Update.
9256 * ia64-tdep.c (ia64_find_unwind_table): Update.
9257 * hppa-tdep.c (internalize_unwinds): Update.
9258 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
9259 Update.
9260 * gcore.c (call_target_sbrk): Update.
9261 * elfread.c (record_minimal_symbol, elf_symtab_read)
9262 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
9263 (elf_gnu_ifunc_resolve_by_got): Update.
9264 * dwarf2/read.c (create_addrmap_from_index)
9265 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
9266 (read_debug_names_from_section)
9267 (process_psymtab_comp_unit_reader, add_partial_symbol)
9268 (add_partial_subprogram, process_full_comp_unit)
9269 (read_file_scope, read_func_scope, read_lexical_block_scope)
9270 (read_call_site_scope, dwarf2_ranges_read)
9271 (dwarf2_record_block_ranges, dwarf2_add_field)
9272 (mark_common_block_symbol_computed, read_tag_pointer_type)
9273 (read_tag_string_type, dwarf2_init_float_type)
9274 (dwarf2_init_complex_target_type, read_base_type)
9275 (partial_die_info::read, partial_die_info::read)
9276 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
9277 (dwarf2_fetch_die_loc_sect_off): Update.
9278 * dwarf2/loc.c (dwarf2_find_location_expression)
9279 (class dwarf_evaluate_loc_desc, rw_pieced_value)
9280 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
9281 (dwarf2_loc_desc_get_symbol_read_needs)
9282 (locexpr_describe_location_piece, locexpr_describe_location_1)
9283 (loclist_describe_location): Update.
9284 * dwarf2/index-write.c (write_debug_names): Update.
9285 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
9286 * dtrace-probe.c (dtrace_process_dof): Update.
9287 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
9288 (process_one_symbol): Update.
9289 * ctfread.c (ctf_init_float_type, read_base_type): Update.
9290 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
9291 (coff_read_enum_type): Update.
9292 * cli/cli-cmds.c (edit_command, list_command): Update.
9293 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
9294 * breakpoint.c (create_overlay_event_breakpoint)
9295 (create_longjmp_master_breakpoint)
9296 (create_std_terminate_master_breakpoint)
9297 (create_exception_master_breakpoint, get_sal_arch): Update.
9298 * block.c (block_gdbarch): Update.
9299 * annotate.c (annotate_source_line): Update.
9300
9301 2020-04-17 Tom Tromey <tromey@adacore.com>
9302
9303 * auto-load.c (show_auto_load_cmd): Remove.
9304 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
9305 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
9306 (maintenance_print_arc_command): Remove.
9307 * tui/tui-win.c (tui_command): Remove.
9308 (tui_get_cmd_list): Use add_basic_prefix_cmd.
9309 * tui/tui-layout.c (tui_layout_command): Remove.
9310 (_initialize_tui_layout): Use add_basic_prefix_cmd.
9311 * python/python.c (user_set_python, user_show_python): Remove.
9312 (_initialize_python): Use add_basic_prefix_cmd,
9313 add_show_prefix_cmd.
9314 * guile/guile.c (set_guile_command, show_guile_command): Remove.
9315 (install_gdb_commands): Use add_basic_prefix_cmd,
9316 add_show_prefix_cmd.
9317 (info_guile_command): Remove.
9318 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
9319 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
9320 add_show_prefix_cmd.
9321 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
9322 Remove do_set and do_show parameters.
9323 * cli/cli-style.c (set_style, show_style): Remove.
9324 (_initialize_cli_style): Use add_basic_prefix_cmd,
9325 add_show_prefix_cmd.
9326 (cli_style_option::add_setshow_commands): Remove do_set and
9327 do_show parameters.
9328 (cli_style_option::add_setshow_commands): Use
9329 add_basic_prefix_cmd, add_show_prefix_cmd.
9330 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
9331 (set_style_name): Remove.
9332 * cli/cli-dump.c (dump_command, append_command): Remove.
9333 (srec_dump_command, ihex_dump_command, verilog_dump_command)
9334 (tekhex_dump_command, binary_dump_command)
9335 (binary_append_command): Remove.
9336 (_initialize_cli_dump): Use add_basic_prefix_cmd.
9337 * windows-tdep.c (w32_prefix_command_valid): Remove global.
9338 (init_w32_command_list): Remove; move into ...
9339 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
9340 * valprint.c (set_print, show_print, set_print_raw)
9341 (show_print_raw): Remove.
9342 (_initialize_valprint): Use add_basic_prefix_cmd,
9343 add_show_prefix_cmd.
9344 * typeprint.c (set_print_type, show_print_type): Remove.
9345 (_initialize_typeprint): Use add_basic_prefix_cmd,
9346 add_show_prefix_cmd.
9347 * record.c (set_record_command, show_record_command): Remove.
9348 (_initialize_record): Use add_basic_prefix_cmd,
9349 add_show_prefix_cmd.
9350 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
9351 add_show_prefix_cmd.
9352 (info_command, show_command, set_debug, show_debug): Remove.
9353 * top.h (set_history, show_history): Don't declare.
9354 * top.c (set_history, show_history): Remove.
9355 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
9356 (unset_tdesc_cmd): Remove.
9357 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
9358 add_show_prefix_cmd.
9359 * symtab.c (info_module_command): Remove.
9360 (_initialize_symtab): Use add_basic_prefix_cmd.
9361 * symfile.c (overlay_command): Remove.
9362 (_initialize_symfile): Use add_basic_prefix_cmd.
9363 * sparc64-tdep.c (info_adi_command): Remove.
9364 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
9365 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
9366 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
9367 add_show_prefix_cmd.
9368 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
9369 (_initialize_serial): Use add_basic_prefix_cmd,
9370 add_show_prefix_cmd.
9371 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
9372 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
9373 add_show_prefix_cmd.
9374 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
9375 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
9376 add_show_prefix_cmd.
9377 * riscv-tdep.c (show_riscv_command, set_riscv_command)
9378 (show_debug_riscv_command, set_debug_riscv_command): Remove.
9379 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
9380 add_show_prefix_cmd.
9381 * remote.c (remote_command, set_remote_cmd): Remove.
9382 (_initialize_remote): Use add_basic_prefix_cmd.
9383 * record-full.c (set_record_full_command)
9384 (show_record_full_command): Remove.
9385 (_initialize_record_full): Use add_basic_prefix_cmd,
9386 add_show_prefix_cmd.
9387 * record-btrace.c (cmd_set_record_btrace)
9388 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
9389 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
9390 (cmd_show_record_btrace_pt): Remove.
9391 (_initialize_record_btrace): Use add_basic_prefix_cmd,
9392 add_show_prefix_cmd.
9393 * ravenscar-thread.c (set_ravenscar_command)
9394 (show_ravenscar_command): Remove.
9395 (_initialize_ravenscar): Use add_basic_prefix_cmd,
9396 add_show_prefix_cmd.
9397 * mips-tdep.c (show_mips_command, set_mips_command)
9398 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
9399 add_show_prefix_cmd.
9400 * maint.c (maintenance_command, maintenance_info_command)
9401 (maintenance_check_command, maintenance_print_command)
9402 (maintenance_set_cmd, maintenance_show_cmd): Remove.
9403 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
9404 add_show_prefix_cmd.
9405 (show_per_command_cmd): Remove.
9406 * maint-test-settings.c (maintenance_set_test_settings_cmd):
9407 Remove.
9408 (maintenance_show_test_settings_cmd): Remove.
9409 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
9410 add_show_prefix_cmd.
9411 * maint-test-options.c (maintenance_test_options_command):
9412 Remove.
9413 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
9414 * macrocmd.c (macro_command): Remove
9415 (_initialize_macrocmd): Use add_basic_prefix_cmd.
9416 * language.c (set_check, show_check): Remove.
9417 (_initialize_language): Use add_basic_prefix_cmd,
9418 add_show_prefix_cmd.
9419 * infcmd.c (unset_command): Remove.
9420 (_initialize_infcmd): Use add_basic_prefix_cmd.
9421 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
9422 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
9423 add_show_prefix_cmd.
9424 * go32-nat.c (go32_info_dos_command): Remove.
9425 (_initialize_go32_nat): Use add_basic_prefix_cmd.
9426 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
9427 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
9428 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
9429 (_initialize_frame): Use add_basic_prefix_cmd,
9430 add_show_prefix_cmd.
9431 * dcache.c (set_dcache_command, show_dcache_command): Remove.
9432 (_initialize_dcache): Use add_basic_prefix_cmd,
9433 add_show_prefix_cmd.
9434 * cp-support.c (maint_cplus_command): Remove.
9435 (_initialize_cp_support): Use add_basic_prefix_cmd.
9436 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
9437 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
9438 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
9439 add_basic_prefix_cmd, add_show_prefix_cmd.
9440 * breakpoint.c (save_command): Remove.
9441 (_initialize_breakpoint): Use add_basic_prefix_cmd.
9442 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
9443 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
9444 add_show_prefix_cmd.
9445 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
9446 (set_ada_command, show_ada_command): Remove.
9447 (_initialize_ada_language): Use add_basic_prefix_cmd,
9448 add_show_prefix_cmd.
9449 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
9450
9451 2020-04-16 Kamil Rytarowski <n54@gmx.com>
9452
9453 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
9454 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
9455
9456 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9457
9458 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
9459 warning messages.
9460
9461 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
9462
9463 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
9464 import table is not at beginning of .idata section.
9465
9466 2020-04-16 Pedro Alves <palves@redhat.com>
9467
9468 * inferior.c (delete_inferior): Use delete operator directly
9469 instead of delete_program_space.
9470 * progspace.c (add_program_space): New, factored out from
9471 program_space::program_space.
9472 (remove_program_space): New, factored out from
9473 delete_program_space.
9474 (program_space::program_space): Remove intro comment. Rewrite.
9475 (program_space::~program_space): Remove intro comment. Call
9476 remove_program_space.
9477 (delete_program_space): Delete.
9478 * progspace.h (program_space::program_space): Make explicit. Move
9479 intro comment here, adjusted.
9480 (program_space::~program_space): Move intro comment here,
9481 adjusted.
9482 (delete_program_space): Remove.
9483
9484 2020-04-16 Tom Tromey <tromey@adacore.com>
9485
9486 * windows-nat.c (windows_nat::handle_access_violation): New
9487 function.
9488 * nat/windows-nat.h (handle_access_violation): Declare.
9489 * nat/windows-nat.c (handle_exception): Move Cygwin code to
9490 windows-nat.c. Call handle_access_violation.
9491
9492 2020-04-16 Tom de Vries <tdevries@suse.de>
9493
9494 PR symtab/25791
9495 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
9496 CUs without psymtab.
9497
9498 2020-04-16 Kevin Buettner <kevinb@redhat.com>
9499
9500 * python/python.c (do_start_initialization): Don't call
9501 PyEval_InitThreads for Python 3.9 and beyond.
9502
9503 2020-04-15 Kamil Rytarowski <n54@gmx.com>
9504
9505 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
9506 thread functions.
9507 (obsd_nat_target::wait): Likewise.
9508
9509 2020-04-15 Tom Tromey <tromey@adacore.com>
9510
9511 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
9512 (DEBUG_EXCEPT): Use debug_printf.
9513
9514 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
9515
9516 * completer.c (class completion_tracker::completion_hash_entry)
9517 <hash_name>: New member function.
9518 (completion_tracker::discard_completions): New callback to hash a
9519 completion_hash_entry, pass this to htab_create_alloc.
9520
9521 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
9522
9523 * windows-nat.c (windows_make_so): Warn rather than stopping with
9524 an error if realpath() fails.
9525
9526 2020-04-14 Kamil Rytarowski <n54@gmx.com>
9527
9528 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
9529 (nbsd_nat_target::info_proc): Add do_status.
9530
9531 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
9532 Tom de Vries <tdevries@suse.de>
9533
9534 PR symtab/25718
9535 * psympriv.h (struct partial_symtab::read_symtab)
9536 (struct partial_symtab::expand_psymtab)
9537 (struct partial_symtab::read_dependencies): Update comments.
9538 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
9539 read_symtab for includer.
9540 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
9541 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
9542 (struct dwarf2_include_psymtab::m_readin): Remove.
9543 (struct dwarf2_include_psymtab::includer): New member function.
9544 (dwarf2_psymtab::expand_psymtab): Assert !readin.
9545
9546 2020-04-14 Tom de Vries <tdevries@suse.de>
9547
9548 PR symtab/25720
9549 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
9550 with NULL symbol_matcher and lookup_name.
9551 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
9552 and lookup_name.
9553 * dwarf2/read.c (dw2_expand_symtabs_matching)
9554 (dw2_debug_names_expand_symtabs_matching): Same.
9555 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
9556 Make lookup_name a pointer. Update comment.
9557 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
9558 lookup_name being a pointer.
9559 * symfile.c (expand_symtabs_matching): Same.
9560 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
9561 * linespec.c (iterate_over_all_matching_symtabs): Same.
9562
9563 2020-04-13 Tom Tromey <tom@tromey.com>
9564
9565 * run-on-main-thread.c: Update include.
9566 * unittests/main-thread-selftests.c: Update include.
9567 * tui/tui-win.c: Update include.
9568 * tui/tui-io.c: Update include.
9569 * tui/tui-interp.c: Update include.
9570 * tui/tui-hooks.c: Update include.
9571 * top.h: Update include.
9572 * top.c: Update include.
9573 * ser-base.c: Update include.
9574 * remote.c: Update include.
9575 * remote-notif.c: Update include.
9576 * remote-fileio.c: Update include.
9577 * record-full.c: Update include.
9578 * record-btrace.c: Update include.
9579 * python/python.c: Update include.
9580 * posix-hdep.c: Update include.
9581 * mingw-hdep.c: Update include.
9582 * mi/mi-main.c: Update include.
9583 * mi/mi-interp.c: Update include.
9584 * main.c: Update include.
9585 * linux-nat.c: Update include.
9586 * interps.c: Update include.
9587 * infrun.c: Update include.
9588 * inf-loop.c: Update include.
9589 * event-top.c: Update include.
9590 * event-loop.c: Move to ../gdbsupport/.
9591 * event-loop.h: Move to ../gdbsupport/.
9592 * async-event.h: Update include.
9593 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
9594
9595 2020-04-13 Tom Tromey <tom@tromey.com>
9596
9597 * tui/tui-win.c: Include async-event.h.
9598 * remote.c: Include async-event.h.
9599 * remote-notif.c: Include async-event.h.
9600 * record-full.c: Include async-event.h.
9601 * record-btrace.c: Include async-event.h.
9602 * infrun.c: Include async-event.h.
9603 * event-top.c: Include async-event.h.
9604 * event-loop.h: Move some declarations to async-event.h.
9605 * event-loop.c: Don't include ser-event.h or top.h. Move some
9606 code to async-event.c.
9607 * async-event.h: New file.
9608 * async-event.c: New file.
9609 * Makefile.in (COMMON_SFILES): Add async-event.c.
9610 (HFILES_NO_SRCDIR): Add async-event.h.
9611
9612 2020-04-13 Tom Tromey <tom@tromey.com>
9613
9614 * utils.c (flush_streams): New function.
9615 * event-loop.c (gdb_wait_for_event): Call flush_streams.
9616
9617 2020-04-13 Tom Tromey <tom@tromey.com>
9618
9619 * event-loop.c (handle_file_event): Use warning, not
9620 printf_unfiltered.
9621
9622 2020-04-13 Tom Tromey <tom@tromey.com>
9623
9624 * event-loop.c: Include <chrono>.
9625
9626 2020-04-13 Tom Tromey <tom@tromey.com>
9627
9628 * gdb_select.h: Move to ../gdbsupport/.
9629 * event-loop.c: Update include path.
9630 * top.c: Update include path.
9631 * ser-base.c: Update include path.
9632 * ui-file.c: Update include path.
9633 * ser-tcp.c: Update include path.
9634 * guile/scm-ports.c: Update include path.
9635 * posix-hdep.c: Update include path.
9636 * ser-unix.c: Update include path.
9637 * gdb_usleep.c: Update include path.
9638 * mingw-hdep.c: Update include path.
9639 * inflow.c: Update include path.
9640 * infrun.c: Update include path.
9641 * event-top.c: Update include path.
9642
9643 2020-04-13 Tom Tromey <tom@tromey.com>
9644
9645 * configure: Rebuild.
9646 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
9647
9648 2020-04-13 Tom Tromey <tom@tromey.com>
9649
9650 * event-loop.h (start_event_loop): Don't declare.
9651 * event-loop.c (start_event_loop): Move...
9652 * main.c (start_event_loop): ...here. Now static.
9653
9654 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
9655
9656 * MAINTAINERS: Update my email address.
9657
9658 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9659
9660 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
9661 IP_ALL.
9662
9663 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9664
9665 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
9666 (nbsd_nat_target::info_proc): Add do_cmdline.
9667
9668 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9669
9670 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
9671 (nbsd_nat_target::info_proc): Add do_cwd.
9672
9673 2020-04-12 Kamil Rytarowski <n54@gmx.com>
9674
9675 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
9676
9677 2020-04-11 Kamil Rytarowski <n54@gmx.com>
9678
9679 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
9680 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
9681 (nbsd_nat_target::info_proc): New functions.
9682 * nbsd-nat.c (kinfo_get_vmmap): New function.
9683 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
9684 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
9685 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
9686 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
9687 functions.
9688 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
9689 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
9690 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
9691 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
9692 (KINFO_VME_FLAG_GROWS_DOWN): New.
9693
9694 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
9695
9696 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
9697 bit shift.
9698
9699 2020-04-10 Tom Tromey <tromey@adacore.com>
9700
9701 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
9702
9703 2020-04-10 Tom Tromey <tromey@adacore.com>
9704
9705 * symtab.c (get_symbol_address, get_msymbol_address): Skip
9706 separate debug files.
9707
9708 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
9709
9710 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9711 Move to...
9712 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
9713 ... here.
9714 * windows-nat.c (windows_nat_target::get_windows_debug_event):
9715 Check for STATUS_WX86_BREAKPOINT.
9716 (windows_nat_target::wait): Same.
9717
9718 2020-04-10 Tom de Vries <tdevries@suse.de>
9719
9720 PR cli/25808
9721 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
9722
9723 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
9724
9725 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
9726 (Write After Approval): Remove Tom de Vries.
9727
9728 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
9729
9730 revert partially:
9731 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9732
9733 * buildsym.c (record_line): Fix undefined behavior and preserve
9734 lines at eof.
9735
9736 2020-04-09 Kamil Rytarowski <n54@gmx.com>
9737
9738 * auxv.h (svr4_auxv_parse): New.
9739 * auxv.c (default_auxv_parse): Split into default_auxv_parse
9740 and generic_auxv_parse.
9741 (svr4_auxv_parse): Add.
9742 * obsd-tdep.c: Include "auxv.h".
9743 (obsd_auxv_parse): Remove.
9744 (obsd_init_abi): Remove comment.
9745 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
9746 from `obsd_auxv_parse' to `svr4_auxv_parse'.
9747 * nbsd-tdep.c: Include "auxv.h".
9748 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
9749
9750 2020-04-08 Tom Tromey <tromey@adacore.com>
9751
9752 * nat/windows-nat.h (last_wait_event): Don't declare.
9753 (wait_for_debug_event): Update comment.
9754 * nat/windows-nat.c (last_wait_event): Now static.
9755
9756 2020-04-08 Tom Tromey <tromey@adacore.com>
9757
9758 * windows-nat.c (wait_for_debug_event): Move to
9759 nat/windows-nat.c.
9760 * nat/windows-nat.h (wait_for_debug_event): Declare.
9761 * nat/windows-nat.c (wait_for_debug_event): Move from
9762 windows-nat.c. No longer static.
9763
9764 2020-04-08 Tom Tromey <tromey@adacore.com>
9765
9766 * windows-nat.c (get_windows_debug_event): Use
9767 fetch_pending_stop.
9768 * nat/windows-nat.h (fetch_pending_stop): Declare.
9769 * nat/windows-nat.c (fetch_pending_stop): New function.
9770
9771 2020-04-08 Tom Tromey <tromey@adacore.com>
9772
9773 * windows-nat.c (windows_continue): Use matching_pending_stop and
9774 continue_last_debug_event.
9775 * nat/windows-nat.h (matching_pending_stop)
9776 (continue_last_debug_event): Declare.
9777 * nat/windows-nat.c (DEBUG_EVENTS): New define.
9778 (matching_pending_stop, continue_last_debug_event): New
9779 functions.
9780
9781 2020-04-08 Tom Tromey <tromey@adacore.com>
9782
9783 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
9784 (handle_exception_result): Move to nat/windows-nat.h.
9785 (DEBUG_EXCEPTION_SIMPLE): Remove.
9786 (windows_nat::handle_ms_vc_exception): New function.
9787 (handle_exception): Move to nat/windows-nat.c.
9788 (get_windows_debug_event): Update.
9789 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
9790 nat/windows-nat.c.
9791 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
9792 (handle_exception_result): Move from windows-nat.c.
9793 (handle_exception): Declare.
9794 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
9795 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
9796 windows-nat.c.
9797
9798 2020-04-08 Tom Tromey <tromey@adacore.com>
9799
9800 * windows-nat.c (exception_count, event_count): Remove.
9801 (handle_exception, get_windows_debug_event)
9802 (do_initial_windows_stuff): Update.
9803
9804 2020-04-08 Tom Tromey <tromey@adacore.com>
9805
9806 * windows-nat.c (windows_nat::handle_load_dll)
9807 (windows_nat::handle_unload_dll): Rename. No longer static.
9808 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
9809 Declare.
9810
9811 2020-04-08 Tom Tromey <tromey@adacore.com>
9812
9813 * complaints.h (stop_whining): Declare at top-level.
9814 (complaint): Don't declare stop_whining.
9815
9816 2020-04-08 Tom Tromey <tromey@adacore.com>
9817
9818 * windows-nat.c (windows_nat::handle_output_debug_string):
9819 Rename. No longer static.
9820 * nat/windows-nat.h (handle_output_debug_string): Declare.
9821
9822 2020-04-08 Tom Tromey <tromey@adacore.com>
9823
9824 * windows-nat.c (current_process_handle, current_process_id)
9825 (main_thread_id, last_sig, current_event, last_wait_event)
9826 (current_windows_thread, desired_stop_thread_id, pending_stops)
9827 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
9828 (display_selectors, fake_create_process)
9829 (get_windows_debug_event): Update.
9830 * nat/windows-nat.h (current_process_handle, current_process_id)
9831 (main_thread_id, last_sig, current_event, last_wait_event)
9832 (current_windows_thread, desired_stop_thread_id, pending_stops)
9833 (struct pending_stop, siginfo_er): Move from windows-nat.c.
9834 * nat/windows-nat.c (current_process_handle, current_process_id)
9835 (main_thread_id, last_sig, current_event, last_wait_event)
9836 (current_windows_thread, desired_stop_thread_id, pending_stops)
9837 (siginfo_er): New globals. Move from windows-nat.c.
9838
9839 2020-04-08 Tom Tromey <tromey@adacore.com>
9840
9841 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
9842 (handle_load_dll): Update.
9843 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
9844
9845 2020-04-08 Tom Tromey <tromey@adacore.com>
9846
9847 * windows-nat.c (enum thread_disposition_type): Move to
9848 nat/windows-nat.h.
9849 (windows_nat::thread_rec): Rename from thread_rec. No longer
9850 static.
9851 (windows_add_thread, windows_nat_target::fetch_registers)
9852 (windows_nat_target::store_registers, handle_exception)
9853 (windows_nat_target::resume, get_windows_debug_event)
9854 (windows_nat_target::get_tib_address)
9855 (windows_nat_target::thread_name)
9856 (windows_nat_target::thread_alive): Update.
9857 * nat/windows-nat.h (enum thread_disposition_type): Move from
9858 windows-nat.c.
9859 (thread_rec): Declare.
9860
9861 2020-04-08 Tom Tromey <tromey@adacore.com>
9862
9863 * windows-nat.c: Add "using namespace".
9864 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
9865 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
9866
9867 2020-04-08 Tom Tromey <tromey@adacore.com>
9868
9869 * nat/windows-nat.h (struct windows_thread_info): Declare
9870 destructor.
9871 * nat/windows-nat.c (~windows_thread_info): New.
9872
9873 2020-04-08 Tom Tromey <tromey@adacore.com>
9874
9875 PR gdb/22992
9876 * windows-nat.c (current_event): Update comment.
9877 (last_wait_event, desired_stop_thread_id): New globals.
9878 (struct pending_stop): New.
9879 (pending_stops): New global.
9880 (windows_nat_target) <stopped_by_sw_breakpoint>
9881 <supports_stopped_by_sw_breakpoint>: New methods.
9882 (windows_fetch_one_register): Add assertions. Adjust PC.
9883 (windows_continue): Handle pending stops. Suspend other threads
9884 when stepping. Use last_wait_event
9885 (wait_for_debug_event): New function.
9886 (get_windows_debug_event): Use wait_for_debug_event. Handle
9887 pending stops. Queue spurious stops.
9888 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
9889 (windows_nat_target::kill): Use wait_for_debug_event.
9890 * nat/windows-nat.h (struct windows_thread_info)
9891 <stopped_at_software_breakpoint>: New field.
9892 * nat/windows-nat.c (windows_thread_info::resume): Clear
9893 stopped_at_software_breakpoint.
9894
9895 2020-04-08 Tom Tromey <tromey@adacore.com>
9896
9897 * windows-nat.c (enum thread_disposition_type): New.
9898 (thread_rec): Replace "get_context" parameter with "disposition";
9899 change type.
9900 (windows_add_thread, windows_nat_target::fetch_registers)
9901 (windows_nat_target::store_registers, handle_exception)
9902 (windows_nat_target::resume, get_windows_debug_event)
9903 (windows_nat_target::get_tib_address)
9904 (windows_nat_target::thread_name)
9905 (windows_nat_target::thread_alive): Update.
9906
9907 2020-04-08 Tom Tromey <tromey@adacore.com>
9908
9909 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
9910 (windows_continue): Use windows_continue::resume.
9911 * nat/windows-nat.h (struct windows_thread_info) <suspend,
9912 resume>: Declare new methods.
9913 * nat/windows-nat.c: New file.
9914 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
9915
9916 2020-04-08 Tom Tromey <tromey@adacore.com>
9917
9918 * windows-nat.c (windows_add_thread, windows_delete_thread)
9919 (windows_nat_target::fetch_registers)
9920 (windows_nat_target::store_registers, fake_create_process)
9921 (windows_nat_target::resume, windows_nat_target::resume)
9922 (get_windows_debug_event, windows_nat_target::wait)
9923 (windows_nat_target::pid_to_str)
9924 (windows_nat_target::get_tib_address)
9925 (windows_nat_target::get_ada_task_ptid)
9926 (windows_nat_target::thread_name)
9927 (windows_nat_target::thread_alive): Use lwp, not tid.
9928
9929 2020-04-08 Tom Tromey <tromey@adacore.com>
9930
9931 * windows-nat.c (handle_exception)
9932 (windows_nat_target::thread_name): Update.
9933 * nat/windows-nat.h (windows_thread_info): Remove destructor.
9934 <name>: Now unique_xmalloc_ptr.
9935
9936 2020-04-08 Tom Tromey <tromey@adacore.com>
9937
9938 * windows-nat.c (thread_rec)
9939 (windows_nat_target::fetch_registers): Update.
9940 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
9941 Update comment.
9942 <debug_registers_changed, reload_context>: Now bool.
9943
9944 2020-04-08 Tom Tromey <tromey@adacore.com>
9945
9946 * windows-nat.c (windows_add_thread): Use new.
9947 (windows_init_thread_list, windows_delete_thread): Use delete.
9948 (get_windows_debug_event): Update.
9949 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
9950 destructor, and initializers.
9951
9952 2020-04-08 Tom Tromey <tromey@adacore.com>
9953
9954 * windows-nat.c (struct windows_thread_info): Remove.
9955 * nat/windows-nat.h: New file.
9956
9957 2020-04-08 Tom Tromey <tromey@adacore.com>
9958
9959 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
9960 (thread_rec, windows_add_thread, windows_delete_thread)
9961 (windows_continue): Update.
9962
9963 2020-04-08 Tom Tromey <tromey@adacore.com>
9964
9965 * windows-nat.c (struct windows_thread_info): Remove typedef.
9966 (thread_head): Remove.
9967 (thread_list): New global.
9968 (thread_rec, windows_add_thread, windows_init_thread_list)
9969 (windows_delete_thread, windows_continue): Update.
9970
9971 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9972
9973 * windows-tdep.h (windows_init_abi): Add comment.
9974 (cygwin_init_abi): New declaration.
9975 * windows-tdep.c: Split signal enumeration in two, one for
9976 Windows and one for Cygwin.
9977 (windows_gdb_signal_to_target): Only deal with signal of the
9978 Windows OS ABI.
9979 (cygwin_gdb_signal_to_target): New function.
9980 (windows_init_abi): Rename to windows_init_abi_common, don't set
9981 gdb_signal_to_target gdbarch method. Add new new function with
9982 this name.
9983 (cygwin_init_abi): New function.
9984 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
9985 comment. Don't call windows_init_abi.
9986 (amd64_windows_init_abi): Add comment, call windows_init_abi.
9987 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
9988 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
9989 i386_windows_init_abi_common, don't call windows_init_abi. Add
9990 a new function of this name.
9991 (i386_cygwin_init_abi): New function.
9992 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
9993 OS ABI Cygwin.
9994
9995 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
9996
9997 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
9998 parameter.c.
9999 (dwarf2_read_gdb_index): Update.
10000
10001 2020-04-07 Kamil Rytarowski <n54@gmx.com>
10002
10003 * nbsd-tdep.c: Include "objfiles.h".
10004 (nbsd_skip_solib_resolver): New.
10005 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
10006
10007 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10008
10009 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
10010 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
10011 with DW_LLE_base_addressx are being emitted in DWARFv5.
10012 Add the newly added kind DW_LOC_OFFSET_PAIR also.
10013 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
10014 unsigned integer.
10015
10016 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10017
10018 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
10019 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
10020 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
10021 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
10022 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
10023 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
10024 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
10025
10026
10027 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
10028
10029 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
10030 (read_loclist_index): New function definition.
10031 (lookup_loclist_base): New function definition.
10032 (read_loclist_header): New function definition.
10033 (dwarf2_cu): Add loclist_base and loclist_header field.
10034 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
10035 (read_full_die_1): Read the value of DW_AT_loclists_base.
10036 (read_attribute_reprocess): Handle DW_FORM_loclistx.
10037 (read_attribute_value): Handle DW_FORM_loclistx.
10038 (skip_one_die): Handle DW_FORM_loclistx.
10039 (loclist_header): New structure declaration.
10040 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
10041
10042 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
10043
10044 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
10045 constructor. Remove `addr` parameter from other constructor and
10046 add `per_cu` parameter.
10047 * dwarf2/read.c (create_partial_symtab): Update.
10048
10049 2020-04-07 Tom de Vries <tdevries@suse.de>
10050
10051 PR symtab/25796
10052 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
10053 (partial_die_info::fixup): Inherit has_const_value.
10054
10055 2020-04-07 Tom de Vries <tdevries@suse.de>
10056
10057 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
10058 symbols without address.
10059
10060 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10061
10062 * nbsd-nat.h (struct thread_info): Add forward declaration.
10063 (nbsd_nat_target::thread_alive): Add.
10064 (nbsd_nat_target::thread_name): Likewise.
10065 (nbsd_nat_target::update_thread_list): Likewise.
10066 (update_thread_list::post_attach): Likewise.
10067 (post_attach::pid_to_str): Likewise.
10068 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
10069 (nbsd_thread_lister): Add.
10070 (nbsd_nat_target::thread_alive): Likewise.
10071 (nbsd_nat_target::thread_name): Likewise.
10072 (nbsd_add_threads): Likewise.
10073 (update_thread_list::post_attach): Likewise.
10074 (nbsd_nat_target::update_thread_list): Likewise.
10075 (post_attach::pid_to_str): Likewise.
10076
10077 2020-04-06 Tom Tromey <tromey@adacore.com>
10078
10079 * ada-valprint.c (print_variant_part): Extract the variant field.
10080 (print_field_values): Use the field as the outer value when
10081 recursing.
10082
10083 2020-04-06 Tom Tromey <tromey@adacore.com>
10084
10085 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
10086 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
10087 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
10088 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
10089 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
10090
10091 2020-04-06 Tom Tromey <tromey@adacore.com>
10092
10093 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
10094 TYPE_CODE_ERROR.
10095
10096 2020-04-06 Kamil Rytarowski <n54@gmx.com>
10097
10098 * nbsd-tdep.c: Include "gdbarch.h".
10099 Define enum with NetBSD signal numbers.
10100 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
10101 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
10102 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
10103 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
10104 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
10105 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
10106 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
10107 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
10108 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
10109 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
10110 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
10111 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
10112
10113 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
10114
10115 PR gdb/25325
10116 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
10117
10118 2020-04-03 Tom Tromey <tromey@adacore.com>
10119
10120 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
10121 Read constant block.
10122
10123 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10124
10125 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
10126 (gdb_bfd_get_full_section_contents): New declaration.
10127 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
10128 * windows-tdep.c (is_linked_with_cygwin_dll): Use
10129 gdb_bfd_get_full_section_contents.
10130
10131 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
10132
10133 * exec.c (build_section_table): Replace internal_error with
10134 gdb_assert.
10135 (section_table_xfer_memory_partial): Likewise.
10136 * mdebugread.c (parse_partial_symbols): Likewise.
10137 * psymtab.c (lookup_partial_symbol): Likewise.
10138 * utils.c (wrap_here): Likewise.
10139
10140 2020-04-02 Tom Tromey <tromey@adacore.com>
10141
10142 * f-lang.c (build_fortran_types): Use arch_type to initialize
10143 builtin_complex_s32 in the TYPE_CODE_ERROR case.
10144
10145 2020-04-02 Tom Tromey <tromey@adacore.com>
10146
10147 * dwarf2/read.c (partial_die_info::read): Do not create a vector
10148 of attributes.
10149
10150 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
10151 Bernd Edlinger <bernd.edlinger@hotmail.de>
10152 Tom Tromey <tromey@adacore.com>
10153
10154 * buildsym.c (buildsym_compunit::record_line): Remove
10155 deduplication code.
10156
10157 2020-04-02 Tom de Vries <tdevries@suse.de>
10158
10159 PR ada/24671
10160 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
10161
10162 2020-04-02 Tom de Vries <tdevries@suse.de>
10163
10164 * dwarf2/read.c (dwarf2_gdb_index_functions,
10165 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
10166 NULL.
10167 * psymtab.c (psym_lookup_global_symbol_language): New function.
10168 (psym_functions): Init psym_lookup_global_symbol_language with
10169 psym_lookup_global_symbol_language.
10170 * symfile-debug.c (debug_sym_quick_functions): Init
10171 lookup_global_symbol_language with NULL.
10172 * symfile.c (set_initial_language): Remove fixme comment.
10173 * symfile.h (struct quick_symbol_functions): Add
10174 lookup_global_symbol_language.
10175 * symtab.c (find_quick_global_symbol_language): New function.
10176 (find_main_name): Use find_quick_global_symbol_language.
10177
10178 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
10179
10180 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
10181
10182 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10183
10184 * buildsym.c (record_line): Fix undefined behavior and preserve
10185 lines at eof.
10186
10187 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10188
10189 * buildsym.c (record_line): Fix the resizing condition.
10190
10191 2020-04-01 Tom Tromey <tom@tromey.com>
10192
10193 * value.h (value_literal_complex): Add comment.
10194 * valops.c (value_literal_complex): Refer to value.h.
10195
10196 2020-04-01 Tom Tromey <tom@tromey.com>
10197
10198 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
10199 (scalar_type): New rule, from typebase.
10200 (typebase): Use scalar_type. Recognize complex types.
10201 (field_name): Handle FLOAT_KEYWORD.
10202 (ident_tokens): Add _Complex and __complex__.
10203
10204 2020-04-01 Tom Tromey <tom@tromey.com>
10205
10206 PR exp/25299:
10207 * valarith.c (promotion_type, complex_binop): New functions.
10208 (scalar_binop): Handle complex numbers. Use promotion_type.
10209 (value_pos, value_neg, value_complement): Handle complex numbers.
10210
10211 2020-04-01 Tom Tromey <tom@tromey.com>
10212
10213 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
10214 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
10215 (parse_number): Handle complex numbers.
10216
10217 2020-04-01 Tom Tromey <tom@tromey.com>
10218
10219 * c-valprint.c (c_decorations): Change complex suffix to "i".
10220
10221 2020-04-01 Tom Tromey <tom@tromey.com>
10222
10223 * valprint.c (generic_value_print_complex): Use accessors.
10224 * value.h (value_real_part, value_imaginary_part): Declare.
10225 * valops.c (value_real_part, value_imaginary_part): New
10226 functions.
10227 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
10228
10229 2020-04-01 Tom Tromey <tom@tromey.com>
10230
10231 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
10232 (read_range_type): Update.
10233 * mdebugread.c (basic_type): Update.
10234 * go-lang.c (build_go_types): Use init_complex_type.
10235 * gdbtypes.h (struct main_type) <complex_type>: New member.
10236 (init_complex_type): Update.
10237 (arch_complex_type): Don't declare.
10238 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
10239 Make name if none given. Use alloc_type_copy. Look for cached
10240 complex type.
10241 (arch_complex_type): Remove.
10242 (gdbtypes_post_init): Use init_complex_type.
10243 * f-lang.c (build_fortran_types): Use init_complex_type.
10244 * dwarf2/read.c (read_base_type): Update.
10245 * d-lang.c (build_d_types): Use init_complex_type.
10246 * ctfread.c (read_base_type): Update.
10247
10248 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10249
10250 * infrun.c (stop_all_threads): Update assertion, plus when
10251 stopping threads, take into account that we might be trying
10252 to stop an all-stop target.
10253 (stop_waiting): Call 'stop_all_threads' if there exists a
10254 non-stop target.
10255
10256 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10257
10258 * target.h (exists_non_stop_target): New function declaration.
10259 * target.c (exists_non_stop_target): New function.
10260
10261 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
10262
10263 PR gdb/24789
10264 * eval.c (is_integral_or_integral_reference): New function.
10265 (evaluate_subexp_standard): Allow integer references in
10266 pointer arithmetic.
10267
10268 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10269
10270 * remote.c (remote_target::remote_parse_stop_reply): Remove the
10271 check for no ptid in the stop reply when the target is non-stop.
10272
10273 2020-04-01 Tom Tromey <tromey@adacore.com>
10274
10275 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
10276 "name" parameter to rvalue reference. Initialize m_name_holder.
10277 <lookup_name_info>: New overloads.
10278 <name>: Return gdb::string_view.
10279 <c_str>: New method.
10280 <make_ignore_params>: Update.
10281 <search_name_hash>: Update.
10282 <language_lookup_name>: Return const char *.
10283 <m_name>: Change type.
10284 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
10285 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
10286 (lookup_name_info::match_any): Update.
10287 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
10288 Update.
10289 * minsyms.c (linkage_name_str): Update.
10290 * language.c (default_symbol_name_matcher): Update.
10291 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
10292 Update.
10293 * ada-lang.c (ada_fold_name): Change parameter to string_view.
10294 (ada_lookup_name_info::ada_lookup_name_info): Update.
10295 (literal_symbol_name_matcher): Update.
10296
10297 2020-04-01 Tom Tromey <tromey@adacore.com>
10298
10299 * psymtab.c (psymtab_search_name): Remove function.
10300 (psym_lookup_symbol): Create search name and lookup name here.
10301 (lookup_partial_symbol): Remove "name" parameter; add
10302 lookup_name.
10303 (psym_expand_symtabs_for_function): Update.
10304
10305 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
10306
10307 PR tui/25597:
10308 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
10309
10310 2020-03-31 Tom Tromey <tromey@adacore.com>
10311
10312 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
10313 memcpy.
10314
10315 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
10316
10317 * features/riscv/32bit-csr.xml: Regenerated.
10318 * features/riscv/64bit-csr.xml: Regenerated.
10319
10320 2020-03-30 Tom Tromey <tromey@adacore.com>
10321
10322 * ada-valprint.c (print_variant_part): Update.
10323 * ada-lang.h (ada_which_variant_applies): Update.
10324 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
10325 outer_valaddr parameters; replace with "outer" value parameter.
10326 (to_fixed_variant_branch_type): Update.
10327
10328 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10329
10330 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
10331 <list>. Remove inclusion of observable.h.
10332 (PPC_DEBUG_CURRENT_VERSION): Move up define.
10333 (struct arch_lwp_info): New struct.
10334 (class ppc_linux_dreg_interface): New class.
10335 (struct ppc_linux_process_info): New struct.
10336 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
10337 <low_new_clone, low_forget_process, low_prepare_to_resume>
10338 <copy_thread_dreg_state, mark_thread_stale>
10339 <mark_debug_registers_changed, register_hw_breakpoint>
10340 <clear_hw_breakpoint, register_wp, clear_wp>
10341 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
10342 <num_memory_accesses, get_trigger_type>
10343 <create_watchpoint_request, hwdebug_point_cmp>
10344 <init_arch_lwp_info, get_arch_lwp_info>
10345 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
10346 methods.
10347 <struct ptid_hash>: New inner struct.
10348 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
10349 members.
10350 (saved_dabr_value, hwdebug_info, max_slots_number)
10351 (struct hw_break_tuple, struct thread_points, ppc_threads)
10352 (have_ptrace_hwdebug_interface)
10353 (hwdebug_find_thread_points_by_tid)
10354 (hwdebug_insert_point, hwdebug_remove_point): Remove.
10355 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
10356 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
10357 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
10358 use m_dreg_interface.
10359 (hwdebug_point_cmp): Change to...
10360 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
10361 reference arguments instead of pointers.
10362 (ppc_linux_nat_target::ranged_break_num_registers): Use
10363 m_dreg_interface.
10364 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
10365 m_dreg_interface. Call register_hw_breakpoint.
10366 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
10367 m_dreg_interface. Call clear_hw_breakpoint.
10368 (get_trigger_type): Change to...
10369 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
10370 comment.
10371 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
10372 use m_dreg_interface. Call register_hw_breakpoint.
10373 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
10374 use m_dreg_interface. Call clear_hw_breakpoint.
10375 (can_use_watchpoint_cond_accel): Change to...
10376 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
10377 method. Update comment, use m_dreg_interface and
10378 m_process_info.
10379 (calculate_dvc): Change to...
10380 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
10381 m_dreg_interface.
10382 (num_memory_accesses): Change to...
10383 (ppc_linux_nat_target::num_memory_accesses): ...this method.
10384 (check_condition): Change to...
10385 (ppc_linux_nat_target::check_condition): ...this method.
10386 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
10387 comment, use m_dreg_interface.
10388 (create_watchpoint_request): Change to...
10389 (ppc_linux_nat_target::create_watchpoint_request): ...this
10390 method. Use m_dreg_interface.
10391 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
10392 m_dreg_interface. Call register_hw_breakpoint or register_wp.
10393 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
10394 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
10395 (ppc_linux_nat_target::low_forget_process)
10396 (ppc_linux_nat_target::low_new_fork)
10397 (ppc_linux_nat_target::low_new_clone)
10398 (ppc_linux_nat_target::low_delete_thread)
10399 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
10400 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
10401 only call mark_thread_stale.
10402 (ppc_linux_thread_exit): Remove.
10403 (ppc_linux_nat_target::stopped_data_address): Change to...
10404 (ppc_linux_nat_target::low_stopped_data_address): This. Add
10405 comment, use m_dreg_interface and m_thread_hw_breakpoints.
10406 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
10407 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
10408 comment. Call low_stopped_data_address.
10409 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
10410 m_dreg_interface.
10411 (ppc_linux_nat_target::masked_watch_num_registers): Use
10412 m_dreg_interface.
10413 (ppc_linux_nat_target::copy_thread_dreg_state)
10414 (ppc_linux_nat_target::mark_thread_stale)
10415 (ppc_linux_nat_target::mark_debug_registers_changed)
10416 (ppc_linux_nat_target::register_hw_breakpoint)
10417 (ppc_linux_nat_target::clear_hw_breakpoint)
10418 (ppc_linux_nat_target::register_wp)
10419 (ppc_linux_nat_target::clear_wp)
10420 (ppc_linux_nat_target::init_arch_lwp_info)
10421 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
10422 (_initialize_ppc_linux_nat): Remove observer callback.
10423
10424 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10425
10426 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
10427 (ppc_linux_nat_target::auxv_parse)
10428 (ppc_linux_nat_target::read_description)
10429 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
10430 Move up.
10431
10432 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
10433
10434 * linux-nat.h (low_new_clone): New method.
10435 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
10436
10437 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10438
10439 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
10440 (dbx_expand_psymtab): ... this.
10441 (start_psymtab): Update.
10442 * mdebugread.c (psymtab_to_symtab_1): Rename to...
10443 (mdebug_expand_psymtab): ... this.
10444 (parse_partial_symbols): Update.
10445 (new_psymtab): Update.
10446 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
10447 (xcoff_expand_psymtab): ... this.
10448 (xcoff_start_psymtab): Update.
10449
10450 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10451
10452 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
10453 <expand_dependencies>: ... this.
10454 * psymtab.c (partial_symtab::read_dependencies): Rename to...
10455 (partial_symtab::expand_dependencies): ... this.
10456 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
10457 Update.
10458 (dwarf2_psymtab::expand_psymtab): Update.
10459 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10460 * mdebugread.c (psymtab_to_symtab_1): Update.
10461 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10462
10463 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
10464
10465 * psympriv.h (discard_psymtab): Remove.
10466 * dbxread.c (dbx_end_psymtab): Update.
10467 * xcoffread.c (xcoff_end_psymtab): Update.
10468
10469 2020-03-28 Tom Tromey <tom@tromey.com>
10470
10471 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
10472 comment.
10473
10474 2020-03-28 Tom Tromey <tom@tromey.com>
10475
10476 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
10477
10478 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
10479
10480 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10481
10482 2020-03-26 John Baldwin <jhb@FreeBSD.org>
10483
10484 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
10485
10486 2020-03-26 Tom Tromey <tom@tromey.com>
10487
10488 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
10489 (mark_common_block_symbol_computed, read_tag_string_type)
10490 (attr_to_dynamic_prop, read_subrange_type): Update.
10491 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
10492 to be methods on struct attribute.
10493 (skip_one_die, process_imported_unit_die, read_namespace_alias)
10494 (read_call_site_scope, partial_die_info::read)
10495 (partial_die_info::read, lookup_die_type, follow_die_ref):
10496 Update.
10497 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
10498 from dwarf2_get_ref_die_offset.
10499 (attribute::constant_value): New method, from
10500 dwarf2_get_attr_constant_value.
10501 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
10502 Declare method.
10503 <constant_value>: New method.
10504
10505 2020-03-26 Tom Tromey <tom@tromey.com>
10506
10507 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
10508 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
10509 (dwarf_type_encoding_name): Move to stringify.c.
10510 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
10511 * dwarf2/stringify.c: New file.
10512 * dwarf2/stringify.h: New file.
10513
10514 2020-03-26 Tom Tromey <tom@tromey.com>
10515
10516 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
10517 Rewrite.
10518
10519 2020-03-26 Tom Tromey <tom@tromey.com>
10520
10521 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
10522 methods.
10523 * dwarf2/read.c (lookup_addr_base): Move to die.h.
10524 (lookup_ranges_base): Likewise.
10525 (read_cutu_die_from_dwo, read_full_die_1): Update.
10526
10527 2020-03-26 Tom Tromey <tom@tromey.com>
10528
10529 * dwarf2/read.c (read_import_statement, read_file_scope)
10530 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
10531 (read_lexical_block_scope, read_call_site_scope)
10532 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
10533 (handle_struct_member_die, process_structure_scope)
10534 (update_enumeration_type_from_children)
10535 (process_enumeration_scope, read_array_type, read_common_block)
10536 (read_namespace, read_module, read_subroutine_type): Update.
10537 (sibling_die): Remove.
10538
10539 2020-03-26 Tom Tromey <tom@tromey.com>
10540
10541 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
10542 (build_type_psymtabs_reader, read_structure_type)
10543 (read_enumeration_type, read_full_die_1): Update.
10544 (dwarf2_attr_no_follow): Move to die.h.
10545 * dwarf2/die.h (struct die_info) <attr>: New method.
10546
10547 2020-03-26 Tom Tromey <tom@tromey.com>
10548
10549 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
10550 <base_address>: Now an optional.
10551 (dwarf2_find_base_address, dwarf2_rnglists_process)
10552 (dwarf2_ranges_process, fill_in_loclist_baton)
10553 (dwarf2_symbol_mark_computed): Update.
10554
10555 2020-03-26 Tom Tromey <tom@tromey.com>
10556
10557 * dwarf2/read.c (struct die_info): Move to die.h.
10558 * dwarf2/die.h: New file.
10559
10560 2020-03-26 Tom Tromey <tom@tromey.com>
10561
10562 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
10563 * dwarf2/read.c
10564 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10565 Move to line-header.c.
10566 (read_checked_initial_length_and_offset, read_formatted_entries):
10567 Likewise.
10568 (dwarf_decode_line_header): Split into two.
10569 * dwarf2/line-header.c
10570 (dwarf2_statement_list_fits_in_line_number_section_complaint):
10571 Move from read.c.
10572 (read_checked_initial_length_and_offset, read_formatted_entries):
10573 Likewise.
10574 (dwarf_decode_line_header): New function, split from read.c.
10575
10576 2020-03-26 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
10579 Declare method.
10580 * dwarf2/read.c (read_attribute_value): Update.
10581 (dwarf2_per_objfile::read_line_string): Rename from
10582 read_indirect_line_string.
10583 (read_formatted_entries): Update.
10584
10585 2020-03-26 Tom Tromey <tom@tromey.com>
10586
10587 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
10588 variable.
10589
10590 2020-03-26 Tom Tromey <tom@tromey.com>
10591
10592 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
10593 const.
10594 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
10595 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
10596 parameter const.
10597
10598 2020-03-26 Tom Tromey <tom@tromey.com>
10599
10600 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
10601 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
10602 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
10603 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
10604
10605 2020-03-26 Tom Tromey <tom@tromey.com>
10606
10607 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
10608 file_names_size, file_full_name, file_file_name>: Use const.
10609 <file_name_at, file_names>: Add const overload.
10610 * dwarf2/line-header.c (line_header::file_file_name)
10611 (line_header::file_full_name): Update.
10612
10613 2020-03-26 Tom Tromey <tom@tromey.com>
10614
10615 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
10616 (macro_start_file, consume_improper_spaces)
10617 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
10618 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
10619 (dwarf_decode_macros): Move to macro.c.
10620 * dwarf2/macro.c: New file.
10621 * dwarf2/macro.h: New file.
10622 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
10623
10624 2020-03-26 Tom Tromey <tom@tromey.com>
10625
10626 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
10627 method.
10628 * dwarf2/section.c: New method. From
10629 read_indirect_string_at_offset_from.
10630 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
10631 (read_indirect_string_at_offset_from): Move to section.c.
10632 (read_indirect_string_at_offset): Rewrite.
10633 (read_indirect_line_string_at_offset): Remove.
10634 (read_indirect_string, read_indirect_line_string)
10635 (dwarf_decode_macro_bytes): Update.
10636
10637 2020-03-26 Tom Tromey <tom@tromey.com>
10638
10639 * dwarf2/section.h (struct dwarf2_section_info)
10640 <overload_complaint>: Declare.
10641 (dwarf2_section_buffer_overflow_complaint): Don't declare.
10642 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
10643 Rename from dwarf2_section_buffer_overflow_complaint.
10644 * dwarf2/read.c (skip_one_die, partial_die_info::read)
10645 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
10646
10647 2020-03-26 Tom Tromey <tom@tromey.com>
10648
10649 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
10650 Declare.
10651 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
10652 Move from read.c.
10653 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
10654 to section.c.
10655
10656 2020-03-26 Tom Tromey <tom@tromey.com>
10657
10658 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
10659
10660 2020-03-26 Tom Tromey <tom@tromey.com>
10661
10662 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
10663 "builder".
10664 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
10665 parameter.
10666 (dwarf_decode_macros): Update.
10667
10668 2020-03-26 Tom Tromey <tom@tromey.com>
10669
10670 * dwarf2/read.c (read_attribute_value): Update.
10671 (read_indirect_string_from_dwz): Move to dwz.c; change into
10672 method.
10673 (dwarf_decode_macro_bytes): Update.
10674 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
10675 * dwarf2/dwz.c: New file.
10676 * Makefile.in (COMMON_SFILES): Add dwz.c.
10677
10678 2020-03-26 Tom Tromey <tom@tromey.com>
10679
10680 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
10681 * dwarf2/read.c: Add include.
10682 * dwarf2/index-write.c: Add include.
10683 * dwarf2/index-cache.c: Add include.
10684 * dwarf2/dwz.h: New file.
10685
10686 2020-03-25 Tom Tromey <tom@tromey.com>
10687
10688 * compile/compile-object-load.c (get_out_value_type): Mention
10689 correct symbol name in error message.
10690
10691 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
10692
10693 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
10694
10695 2020-03-25 Tom de Vries <tdevries@suse.de>
10696
10697 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
10698 * symmisc.c (dump_symtab_1): Print user and includes fields.
10699 (maintenance_info_symtabs): Same.
10700
10701 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
10702
10703 PR gdb/25534
10704 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
10705 (riscv_regcache_cooked_write): New function.
10706 (riscv_push_dummy_call): Use new function.
10707 (riscv_return_value): Likewise.
10708
10709 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
10710
10711 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
10712 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
10713 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
10714 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
10715 * infrun.c (follow_fork): Likewise.
10716 (follow_fork_inferior): Likewise.
10717 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
10718 * linux-nat.h (class linux_nat_target): Likewise.
10719 * remote.c (class remote_target) <follow_fork>: Likewise.
10720 (remote_target::follow_fork): Likewise.
10721 * target-delegates.c: Re-generate.
10722 * target.c (default_follow_fork): Likewise.
10723 (target_follow_fork): Likewise.
10724 * target.h (struct target_ops) <follow_fork>: Likewise.
10725 (target_follow_fork): Likewise.
10726
10727 2020-03-24 Tom de Vries <tdevries@suse.de>
10728
10729 * psymtab.c (maintenance_info_psymtabs): Print user field.
10730
10731 2020-03-20 Tom Tromey <tromey@adacore.com>
10732
10733 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
10734 const.
10735 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
10736 const.
10737
10738 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
10739
10740 * ptrace.m4: Don't check for ptrace declaration.
10741 * config.in: Re-generate.
10742 * configure: Re-generate.
10743 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
10744 not defined.
10745
10746 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10747
10748 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
10749 `PTRACE_TYPE_RET'.
10750 * i386-bsd-nat.c (gdb_ptrace): Likewise.
10751 * sparc-nat.c (gdb_ptrace): Likewise.
10752 * x86-bsd-nat.c (gdb_ptrace): Likewise.
10753
10754 2020-03-20 Tom Tromey <tromey@adacore.com>
10755
10756 * c-exp.y (lex_one_token): Fix assert.
10757
10758 2020-03-20 Tom Tromey <tromey@adacore.com>
10759
10760 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
10761 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
10762 strncpy call.
10763
10764 2020-03-20 Tom Tromey <tromey@adacore.com>
10765
10766 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
10767
10768 2020-03-20 Tom Tromey <tromey@adacore.com>
10769
10770 * ada-valprint.c (print_variant_part): Remove parameters; switch
10771 to value-based API.
10772 (print_field_values): Likewise.
10773 (ada_val_print_struct_union): Likewise.
10774 (ada_value_print_1): Update.
10775
10776 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10777
10778 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
10779 nbsd_nat_target instead of inf_ptrace_target.
10780 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10781 nbsd_nat_target.
10782
10783 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10784
10785 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
10786 it to the ptrace call.
10787 * (store_registers): Likewise.
10788
10789 2020-03-20 Kamil Rytarowski <n54@gmx.com>
10790
10791 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
10792 it to the ptrace call.
10793 * (store_registers): Likewise.
10794
10795 2020-03-19 Luis Machado <luis.machado@linaro.org>
10796
10797 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
10798 valid, fetch vg value from ptrace.
10799
10800 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10801 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
10802 * inf-ptrace.c: Likewise.
10803 * (gdb_ptrace): Add.
10804 * (inf_ptrace_target::resume): Update.
10805 * (inf_ptrace_target::xfer_partial): Likewise.
10806 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
10807 * (inf_ptrace_peek_poke): Update.
10808
10809 2020-03-19 Kamil Rytarowski <n54@gmx.com>
10810
10811 * x86-bsd-nat.c (gdb_ptrace): New.
10812 * (x86bsd_dr_set): Add new argument `ptid'.
10813 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
10814 x86bsd_dr_set_addr): Update.
10815
10816 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10817
10818 * remote.c (remote_target::process_stop_reply): Handle events for
10819 all threads differently.
10820
10821 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10822
10823 * completer.c (completion_tracker::remove_completion): Define new
10824 function.
10825 * completer.h (completion_tracker::remove_completion): Declare new
10826 function.
10827 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
10828 when adding a C++ function symbol.
10829
10830 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
10831
10832 * completer.c (completion_tracker::completion_hash_entry): Define
10833 new class.
10834 (advance_to_filename_complete_word_point): Call
10835 recompute_lowest_common_denominator.
10836 (completion_tracker::completion_tracker): Call discard_completions
10837 to setup the hash table.
10838 (completion_tracker::discard_completions): Allow for being called
10839 from the constructor, pass new equal function, and element deleter
10840 when constructing the hash table. Initialise new class member
10841 variables.
10842 (completion_tracker::maybe_add_completion): Remove use of
10843 m_entries_vec, and store more information into m_entries_hash.
10844 (completion_tracker::recompute_lcd_visitor): New function, most
10845 content taken from...
10846 (completion_tracker::recompute_lowest_common_denominator):
10847 ...here, this now just visits each item in the hash calling the
10848 above visitor.
10849 (completion_tracker::build_completion_result): Remove use of
10850 m_entries_vec, call recompute_lowest_common_denominator.
10851 * completer.h (completion_tracker::have_completions): Remove use
10852 of m_entries_vec.
10853 (completion_tracker::completion_hash_entry): Declare new class.
10854 (completion_tracker::recompute_lowest_common_denominator): Change
10855 function signature.
10856 (completion_tracker::recompute_lcd_visitor): Declare new function.
10857 (completion_tracker::m_entries_vec): Delete.
10858 (completion_tracker::m_entries_hash): Initialize to NULL.
10859 (completion_tracker::m_lowest_common_denominator_valid): New
10860 member variable.
10861 (completion_tracker::m_lowest_common_denominator_max_length): New
10862 member variable.
10863
10864 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10865
10866 * regformats/regdef.h: Put reg in gdb namespace.
10867
10868 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10869
10870 * i386-bsd-nat.c (gdb_ptrace): New.
10871 * (i386bsd_fetch_inferior_registers,
10872 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10873 * (i386bsd_fetch_inferior_registers,
10874 i386bsd_store_inferior_registers) Use gdb_ptrace.
10875
10876 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10877
10878 * amd64-bsd-nat.c (gdb_ptrace): New.
10879 * (amd64bsd_fetch_inferior_registers,
10880 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
10881 * (amd64bsd_fetch_inferior_registers,
10882 amd64bsd_store_inferior_registers) Use gdb_ptrace.
10883
10884 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10885
10886 * user-regs.c (user_reg::read): Rename to...
10887 (user_reg::xread): ...this.
10888 * (append_user_reg): Rename argument `read' to `xread'.
10889 * (user_reg_add_builtin): Likewise.
10890 * (user_reg_add): Likewise.
10891 * (value_of_user_reg): Likewise.
10892
10893 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10894
10895 * sparc-nat.c (gdb_ptrace): New.
10896 * sparc-nat.c (sparc_fetch_inferior_registers)
10897 (sparc_store_inferior_registers) Remove obsolete comment.
10898 * sparc-nat.c (sparc_fetch_inferior_registers)
10899 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
10900 * sparc-nat.c (sparc_fetch_inferior_registers)
10901 (sparc_store_inferior_registers) Use gdb_ptrace.
10902
10903 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10904
10905 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
10906 it to the ptrace call.
10907 * sh-nbsd-nat.c (store_registers): Likewise.
10908
10909 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10910
10911 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
10912 nbsd_nat_target instead of inf_ptrace_target.
10913 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
10914 nbsd_nat_target.
10915
10916 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10917
10918 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
10919
10920 2020-03-17 Kamil Rytarowski <n54@gmx.com>
10921
10922 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
10923 <sys/sysctl.h>.
10924 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
10925
10926 2020-03-17 Tom de Vries <tdevries@suse.de>
10927
10928 PR gdb/23710
10929 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
10930 fields.
10931 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
10932 fields.
10933 (process_imported_unit_die): Skip import of c++ CUs.
10934
10935 2020-03-16 Tom Tromey <tom@tromey.com>
10936
10937 * p-valprint.c (pascal_object_print_value): Initialize
10938 base_value.
10939
10940 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
10941 Shahab Vahedi <shahab@synopsys.com>
10942
10943 * Makefile.in: Add arch/arc.o
10944 * configure.tgt: Likewise.
10945 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
10946 (_initialize_arc_tdep): Don't initialize old target descriptions.
10947 (arc_read_description): New function to cache target descriptions.
10948 * arc-tdep.h (arc_read_description): Add proto type.
10949 * arch/arc.c: New file.
10950 * arch/arc.h: Likewise.
10951 * features/Makefile: Replace old target descriptions with new.
10952 * features/arc-arcompact.c: Remove.
10953 * features/arc-arcompact.xml: Likewise.
10954 * features/arc-v2.c: Likewise
10955 * features/arc-v2.xml: Likewise
10956 * features/arc/aux-arcompact.xml: New file.
10957 * features/arc/aux-v2.xml: Likewise.
10958 * features/arc/core-arcompact.xml: Likewise.
10959 * features/arc/core-v2.xml: Likewise.
10960 * features/arc/aux-arcompact.c: Generate.
10961 * features/arc/aux-v2.c: Likewise.
10962 * features/arc/core-arcompact.c: Likewise.
10963 * features/arc/core-v2.c: Likewise.
10964 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
10965
10966 2020-03-16 Tom Tromey <tromey@adacore.com>
10967
10968 PR gdb/25663:
10969 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
10970 putting value into bcache.
10971
10972 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10973
10974 PR gdb/21500
10975 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
10976 to...
10977 (amd64_windows_init_abi_common): ... this. Don't set size of
10978 long type.
10979 (amd64_windows_init_abi): New function.
10980 (amd64_cygwin_init_abi): New function.
10981 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
10982 the Cygwin OS ABI.
10983 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
10984 comment.
10985
10986 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10987
10988 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
10989 * windows-tdep.c (CYGWIN_DLL_NAME): New.
10990 (pe_import_directory_entry): New struct type.
10991 (is_linked_with_cygwin_dll): New function.
10992 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
10993 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
10994 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
10995
10996 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
10997
10998 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
10999 i386_cygwin_core_osabi_sniffer.
11000
11001 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11002
11003 * i386-cygwin-tdep.c: Rename to...
11004 * i386-windows-tdep.c: ... this.
11005 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
11006 i386-windows-tdep.c.
11007 * configure.tgt: Likewise.
11008
11009 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11010
11011 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
11012 * osabi.c (gdb_osabi_names): Add "Windows".
11013 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
11014 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
11015 (i386_cygwin_core_osabi_sniffer): New function, extracted from
11016 i386_cygwin_osabi_sniffer.
11017 (_initialize_i386_cygwin_tdep): Register OS ABI
11018 GDB_OSABI_WINDOWS for i386.
11019 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
11020 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
11021 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
11022 for x86-64.
11023 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
11024 when the target matches '*-*-mingw*'.
11025
11026 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11027
11028 * defs.h (enum gdb_osabi): Move to...
11029 * osabi.h (enum gdb_osabi): ... here.
11030 * gdbarch.sh: Include osabi.h in gdbarch.h.
11031 * gdbarch.h: Re-generate.
11032
11033 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
11034
11035 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
11036 function.
11037 (_initialize_amd64_windows_tdep): Register osabi sniffer.
11038
11039 2020-03-14 Tom Tromey <tom@tromey.com>
11040
11041 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
11042 for C++.
11043 (c_type_print_modifier): Likewise. Add "language" parameter.
11044 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
11045 (c_type_print_base_1): Update.
11046 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
11047 constants.
11048 * type-stack.c (type_stack::insert): Handle tp_atomic and
11049 tp_restrict.
11050 (type_stack::follow_type_instance_flags): Likewise.
11051 (type_stack::follow_types): Likewise. Merge type-following code.
11052 * c-exp.y (RESTRICT, ATOMIC): New tokens.
11053 (space_identifier, cv_with_space_id)
11054 (const_or_volatile_or_space_identifier_noopt)
11055 (const_or_volatile_or_space_identifier): Remove.
11056 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
11057 rules.
11058 (ptr_operator, typebase): Update.
11059 (enum token_flag) <FLAG_C>: New constant.
11060 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
11061 "_Atomic".
11062 (lex_one_token): Handle FLAG_C.
11063
11064 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11065
11066 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
11067 it to the ptrace call.
11068 * m68k-bsd-nat.c (store_registers): Likewise.
11069
11070 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11071
11072 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
11073 gdb_byte *.
11074 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
11075 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
11076 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
11077
11078 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11079
11080 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
11081 nbsd_nat_target instead of inf_ptrace_target.
11082 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11083 nbsd_nat_target.
11084
11085 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11086
11087 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
11088 register_t.
11089
11090 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11091
11092 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
11093 it to the ptrace call.
11094 * alpha-bsd-nat.c (store_registers): Likewise.
11095
11096 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11097
11098 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
11099 includes.
11100 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
11101 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
11102 fill_fpregset): Likewise.
11103
11104 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11105
11106 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
11107 nbsd_nat_target instead of inf_ptrace_target.
11108 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11109 nbsd_nat_target.
11110
11111 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11112
11113 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
11114 register_t.
11115
11116 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11117
11118 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
11119 it to the ptrace call.
11120 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
11121 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
11122 * arm-nbsd-nat.c (store_register): Likewise.
11123 * arm-nbsd-nat.c (store_regs): Likewise.
11124 * arm-nbsd-nat.c (store_fp_register): Likewise.
11125 * arm-nbsd-nat.c (store_fp_regs): Likewise.
11126
11127 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11128
11129 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
11130 nbsd_nat_target instead of inf_ptrace_target.
11131 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
11132 nbsd_nat_target.
11133
11134 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11135
11136 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
11137 it to the ptrace call.
11138 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
11139
11140 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11141
11142 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
11143 it to the ptrace call.
11144 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
11145
11146 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11147
11148 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
11149 gdb_byte *.
11150 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
11151
11152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11153
11154 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
11155 instead of inf_ptrace_target.
11156 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
11157 nbsd_nat_target.
11158
11159 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11160
11161 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11162 register_t.
11163
11164 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11165
11166 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
11167 register_t.
11168
11169 2020-03-14 Kamil Rytarowski <n54@gmx.com>
11170
11171 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
11172 register_t.
11173
11174 2020-03-13 Tom Tromey <tom@tromey.com>
11175
11176 * value.h (val_print): Don't declare.
11177 * valprint.h (val_print_array_elements)
11178 (val_print_scalar_formatted, generic_val_print): Don't declare.
11179 * valprint.c (generic_val_print_array): Take a struct value.
11180 (generic_val_print_ptr, generic_val_print_memberptr)
11181 (generic_val_print_bool, generic_val_print_int)
11182 (generic_val_print_char, generic_val_print_complex)
11183 (generic_val_print): Remove.
11184 (generic_value_print): Update.
11185 (do_val_print): Remove unused parameters. Don't call
11186 la_val_print.
11187 (val_print): Remove.
11188 (common_val_print): Update. Don't call value_check_printable.
11189 (val_print_scalar_formatted, val_print_array_elements): Remove.
11190 * rust-lang.c (rust_val_print): Remove.
11191 (rust_language_defn): Update.
11192 * p-valprint.c (pascal_val_print): Remove.
11193 (pascal_value_print_inner): Update.
11194 (pascal_object_print_val_fields, pascal_object_print_val):
11195 Remove.
11196 (pascal_object_print_static_field): Update.
11197 * p-lang.h (pascal_val_print): Don't declare.
11198 * p-lang.c (pascal_language_defn): Update.
11199 * opencl-lang.c (opencl_language_defn): Update.
11200 * objc-lang.c (objc_language_defn): Update.
11201 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
11202 * m2-lang.h (m2_val_print): Don't declare.
11203 * m2-lang.c (m2_language_defn): Update.
11204 * language.h (struct language_defn) <la_val_print>: Remove.
11205 * language.c (unk_lang_value_print_inner): Rename. Change
11206 argument types.
11207 (unknown_language_defn, auto_language_defn): Update.
11208 * go-valprint.c (go_val_print): Remove.
11209 * go-lang.h (go_val_print): Don't declare.
11210 * go-lang.c (go_language_defn): Update.
11211 * f-valprint.c (f_val_print): Remove.
11212 * f-lang.h (f_value_print): Don't declare.
11213 * f-lang.c (f_language_defn): Update.
11214 * d-valprint.c (d_val_print): Remove.
11215 * d-lang.h (d_value_print): Don't declare.
11216 * d-lang.c (d_language_defn): Update.
11217 * cp-valprint.c (cp_print_value_fields)
11218 (cp_print_value_fields_rtti, cp_print_value): Remove.
11219 (cp_print_static_field): Update.
11220 * c-valprint.c (c_val_print_array, c_val_print_ptr)
11221 (c_val_print_struct, c_val_print_union, c_val_print_int)
11222 (c_val_print_memberptr, c_val_print): Remove.
11223 * c-lang.h (c_val_print_array, cp_print_value_fields)
11224 (cp_print_value_fields_rtti): Don't declare.
11225 * c-lang.c (c_language_defn, cplus_language_defn)
11226 (asm_language_defn, minimal_language_defn): Update.
11227 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
11228 (ada_val_print_enum): Take a struct value.
11229 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
11230 (ada_val_print): Remove.
11231 (ada_value_print_1): Update.
11232 (printable_val_type): Remove.
11233 * ada-lang.h (ada_val_print): Don't declare.
11234 * ada-lang.c (ada_language_defn): Update.
11235
11236 2020-03-13 Tom Tromey <tom@tromey.com>
11237
11238 * valprint.c (do_val_print): Update.
11239 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
11240 a struct value.
11241 (value_to_value_object_no_release): Declare.
11242 * python/py-value.c (value_to_value_object_no_release): New
11243 function.
11244 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
11245 struct value.
11246 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
11247 function.
11248 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
11249 a struct value.
11250 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
11251 Declare.
11252 (gdbscm_apply_val_pretty_printer): Take a struct value.
11253 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
11254 value.
11255 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
11256 value.
11257 * extension-priv.h (struct extension_language_ops)
11258 <apply_val_pretty_printer>: Take a struct value.
11259 * cp-valprint.c (cp_print_value): Create a struct value.
11260 (cp_print_value): Update.
11261
11262 2020-03-13 Tom Tromey <tom@tromey.com>
11263
11264 * ada-valprint.c (print_field_values): Call common_val_print.
11265
11266 2020-03-13 Tom Tromey <tom@tromey.com>
11267
11268 * ada-valprint.c (val_print_packed_array_elements): Remove
11269 bitoffset and val parameters. Call common_val_print.
11270 (ada_val_print_string): Remove offset, address, and original_value
11271 parameters.
11272 (ada_val_print_array): Update.
11273 (ada_value_print_array): New function.
11274 (ada_value_print_1): Call it.
11275
11276 2020-03-13 Tom Tromey <tom@tromey.com>
11277
11278 * ada-valprint.c (ada_value_print): Use common_val_print.
11279
11280 2020-03-13 Tom Tromey <tom@tromey.com>
11281
11282 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
11283
11284 2020-03-13 Tom Tromey <tom@tromey.com>
11285
11286 * ada-valprint.c (ada_value_print_num): New function.
11287 (ada_value_print_1): Use it.
11288
11289 2020-03-13 Tom Tromey <tom@tromey.com>
11290
11291 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
11292
11293 2020-03-13 Tom Tromey <tom@tromey.com>
11294
11295 * ada-valprint.c (ada_value_print_ptr): New function.
11296 (ada_value_print_1): Use it.
11297
11298 2020-03-13 Tom Tromey <tom@tromey.com>
11299
11300 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
11301 call common_val_print.
11302 (ada_val_print_1): Update.
11303 (ada_value_print_1): New function.
11304 (ada_value_print_inner): Rewrite.
11305
11306 2020-03-13 Tom Tromey <tom@tromey.com>
11307
11308 * cp-valprint.c (cp_print_value_fields): Update.
11309 (cp_print_value): New function.
11310
11311 2020-03-13 Tom Tromey <tom@tromey.com>
11312
11313 * m2-valprint.c (m2_value_print_inner): Use
11314 cp_print_value_fields.
11315 * cp-valprint.c (cp_print_value_fields): New function.
11316 * c-valprint.c (c_value_print_struct): New function.
11317 (c_value_print_inner): Use c_value_print_struct.
11318 * c-lang.h (cp_print_value_fields): Declare.
11319
11320 2020-03-13 Tom Tromey <tom@tromey.com>
11321
11322 * c-valprint.c (c_value_print_array): New function.
11323 (c_value_print_inner): Use it.
11324
11325 2020-03-13 Tom Tromey <tom@tromey.com>
11326
11327 * c-valprint.c (c_value_print_memberptr): New function.
11328 (c_value_print_inner): Use it.
11329
11330 2020-03-13 Tom Tromey <tom@tromey.com>
11331
11332 * c-valprint.c (c_value_print_int): New function.
11333 (c_value_print_inner): Use it.
11334
11335 2020-03-13 Tom Tromey <tom@tromey.com>
11336
11337 * c-valprint.c (c_value_print_ptr): New function.
11338 (c_value_print_inner): Use it.
11339
11340 2020-03-13 Tom Tromey <tom@tromey.com>
11341
11342 * c-valprint.c (c_value_print_inner): Rewrite.
11343
11344 2020-03-13 Tom Tromey <tom@tromey.com>
11345
11346 * valprint.c (generic_value_print_complex): New function.
11347 (generic_value_print): Use it.
11348
11349 2020-03-13 Tom Tromey <tom@tromey.com>
11350
11351 * valprint.c (generic_val_print_float): Don't call
11352 val_print_scalar_formatted.
11353 (generic_val_print, generic_value_print): Update.
11354
11355 2020-03-13 Tom Tromey <tom@tromey.com>
11356
11357 * valprint.c (generic_value_print_char): New function
11358 (generic_value_print): Use it.
11359
11360 2020-03-13 Tom Tromey <tom@tromey.com>
11361
11362 * valprint.c (generic_value_print_int): New function.
11363 (generic_value_print): Use it.
11364
11365 2020-03-13 Tom Tromey <tom@tromey.com>
11366
11367 * valprint.c (generic_value_print_bool): New function.
11368 (generic_value_print): Use it.
11369
11370 2020-03-13 Tom Tromey <tom@tromey.com>
11371
11372 * valprint.c (generic_val_print_func): Simplify.
11373 (generic_val_print, generic_value_print): Update.
11374
11375 2020-03-13 Tom Tromey <tom@tromey.com>
11376
11377 * valprint.c (generic_val_print_flags): Remove.
11378 (generic_val_print, generic_value_print): Update.
11379 (val_print_type_code_flags): Add original_value parameter.
11380
11381 2020-03-13 Tom Tromey <tom@tromey.com>
11382
11383 * valprint.c (generic_val_print): Update.
11384 (generic_value_print): Update.
11385 * valprint.c (generic_val_print_enum): Don't call
11386 val_print_scalar_formatted.
11387
11388 2020-03-13 Tom Tromey <tom@tromey.com>
11389
11390 * valprint.c (generic_value_print): Call generic_value_print_ptr.
11391 * valprint.c (generic_value_print_ptr): New function.
11392
11393 2020-03-13 Tom Tromey <tom@tromey.com>
11394
11395 * valprint.c (generic_value_print): Rewrite.
11396
11397 2020-03-13 Tom Tromey <tom@tromey.com>
11398
11399 * p-valprint.c (pascal_object_print_value_fields)
11400 (pascal_object_print_value): New functions.
11401
11402 2020-03-13 Tom Tromey <tom@tromey.com>
11403
11404 * p-valprint.c (pascal_value_print_inner): Rewrite.
11405
11406 2020-03-13 Tom Tromey <tom@tromey.com>
11407
11408 * f-valprint.c (f_value_print_innner): Rewrite.
11409
11410 2020-03-13 Tom Tromey <tom@tromey.com>
11411
11412 * m2-valprint.c (m2_print_unbounded_array): New overload.
11413 (m2_print_unbounded_array): Update.
11414 (m2_print_array_contents): Take a struct value.
11415 (m2_value_print_inner): Rewrite.
11416
11417 2020-03-13 Tom Tromey <tom@tromey.com>
11418
11419 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
11420 (d_value_print_inner): New function.
11421 * d-lang.h (d_value_print_inner): Declare.
11422 * d-lang.c (d_language_defn): Use d_value_print_inner.
11423
11424 2020-03-13 Tom Tromey <tom@tromey.com>
11425
11426 * go-valprint.c (go_value_print_inner): New function.
11427 * go-lang.h (go_value_print_inner): Declare.
11428 * go-lang.c (go_language_defn): Use go_value_print_inner.
11429
11430 2020-03-13 Tom Tromey <tom@tromey.com>
11431
11432 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
11433 API.
11434 (rust_val_print): Rewrite.
11435 (rust_value_print_inner): New function, from rust_val_print.
11436 (rust_language_defn): Use rust_value_print_inner.
11437
11438 2020-03-13 Tom Tromey <tom@tromey.com>
11439
11440 * ada-valprint.c (ada_value_print_inner): New function.
11441 * ada-lang.h (ada_value_print_inner): Declare.
11442 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
11443
11444 2020-03-13 Tom Tromey <tom@tromey.com>
11445
11446 * f-valprint.c (f_value_print_innner): New function.
11447 * f-lang.h (f_value_print_innner): Declare.
11448 * f-lang.c (f_language_defn): Use f_value_print_innner.
11449
11450 2020-03-13 Tom Tromey <tom@tromey.com>
11451
11452 * p-valprint.c (pascal_value_print_inner): New function.
11453 * p-lang.h (pascal_value_print_inner): Declare.
11454 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
11455
11456 2020-03-13 Tom Tromey <tom@tromey.com>
11457
11458 * m2-valprint.c (m2_value_print_inner): New function.
11459 * m2-lang.h (m2_value_print_inner): Declare.
11460 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
11461
11462 2020-03-13 Tom Tromey <tom@tromey.com>
11463
11464 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
11465 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
11466 * c-valprint.c (c_value_print_inner): New function.
11467 * c-lang.h (c_value_print_inner): Declare.
11468 * c-lang.c (c_language_defn, cplus_language_defn)
11469 (asm_language_defn, minimal_language_defn): Use
11470 c_value_print_inner.
11471
11472 2020-03-13 Tom Tromey <tom@tromey.com>
11473
11474 * p-valprint.c (pascal_object_print_value_fields): Now static.
11475 * p-lang.h (pascal_object_print_value_fields): Don't declare.
11476
11477 2020-03-13 Tom Tromey <tom@tromey.com>
11478
11479 * c-valprint.c (c_val_print_array): Simplify.
11480
11481 2020-03-13 Tom Tromey <tom@tromey.com>
11482
11483 * valprint.c (value_print_array_elements): New function.
11484 * valprint.h (value_print_array_elements): Declare.
11485
11486 2020-03-13 Tom Tromey <tom@tromey.com>
11487
11488 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
11489 * mips-tdep.c (mips_print_register): Use
11490 value_print_scalar_formatted.
11491
11492 2020-03-13 Tom Tromey <tom@tromey.com>
11493
11494 * valprint.h (value_print_scalar_formatted): Declare.
11495 * valprint.c (value_print_scalar_formatted): New function.
11496
11497 2020-03-13 Tom Tromey <tom@tromey.com>
11498
11499 * valprint.h (generic_value_print): Declare.
11500 * valprint.c (generic_value_print): New function.
11501
11502 2020-03-13 Tom Tromey <tom@tromey.com>
11503
11504 * valprint.c (do_val_print): Call la_value_print_inner, if
11505 available.
11506 * rust-lang.c (rust_language_defn): Update.
11507 * p-lang.c (pascal_language_defn): Update.
11508 * opencl-lang.c (opencl_language_defn): Update.
11509 * objc-lang.c (objc_language_defn): Update.
11510 * m2-lang.c (m2_language_defn): Update.
11511 * language.h (struct language_defn) <la_value_print_inner>: New
11512 member.
11513 * language.c (unknown_language_defn, auto_language_defn): Update.
11514 * go-lang.c (go_language_defn): Update.
11515 * f-lang.c (f_language_defn): Update.
11516 * d-lang.c (d_language_defn): Update.
11517 * c-lang.c (c_language_defn, cplus_language_defn)
11518 (asm_language_defn, minimal_language_defn): Update.
11519 * ada-lang.c (ada_language_defn): Update.
11520
11521 2020-03-13 Tom Tromey <tom@tromey.com>
11522
11523 * c-valprint.c (c_value_print): Use common_val_print.
11524
11525 2020-03-13 Tom Tromey <tom@tromey.com>
11526
11527 * cp-valprint.c (cp_print_static_field): Use common_val_print.
11528
11529 2020-03-13 Tom Tromey <tom@tromey.com>
11530
11531 * f-valprint.c (f77_print_array_1, f_val_print): Use
11532 common_val_print.
11533
11534 2020-03-13 Tom Tromey <tom@tromey.com>
11535
11536 * riscv-tdep.c (riscv_print_one_register_info): Use
11537 common_val_print.
11538
11539 2020-03-13 Tom Tromey <tom@tromey.com>
11540
11541 * mi/mi-main.c (output_register): Use common_val_print.
11542
11543 2020-03-13 Tom Tromey <tom@tromey.com>
11544
11545 * infcmd.c (default_print_one_register_info): Use
11546 common_val_print.
11547
11548 2020-03-13 Tom Tromey <tom@tromey.com>
11549
11550 * valprint.h (common_val_print_checked): Declare.
11551 * valprint.c (common_val_print_checked): New function.
11552 * stack.c (print_frame_arg): Use common_val_print_checked.
11553
11554 2020-03-13 Tom Tromey <tom@tromey.com>
11555
11556 * valprint.c (do_val_print): New function, from val_print.
11557 (val_print): Use do_val_print.
11558 (common_val_print): Use do_val_print.
11559
11560 2020-03-13 Tom Tromey <tom@tromey.com>
11561
11562 * valprint.c (value_print): Use scoped_value_mark.
11563
11564 2020-03-13 Tom de Vries <tdevries@suse.de>
11565
11566 PR symtab/25646
11567 * psymtab.c (partial_symtab::partial_symtab): Don't set
11568 globals_offset and statics_offset. Push element onto
11569 current_global_psymbols and current_static_psymbols stacks.
11570 (concat): New function.
11571 (end_psymtab_common): Set globals_offset and statics_offset. Pop
11572 element from current_global_psymbols and current_static_psymbols
11573 stacks. Concat popped elements to global_psymbols and
11574 static_symbols.
11575 (add_psymbol_to_list): Use current_global_psymbols and
11576 current_static_psymbols stacks.
11577 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
11578 current_static_psymbols fields.
11579
11580 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11581
11582 * corelow.c (sniff_core_bfd): Remove.
11583 (class core_target) <m_core_vec>: Remove.
11584 (core_target::core_target): Update.
11585 (core_file_fns): Remove.
11586 (deprecated_add_core_fns): Remove.
11587 (default_core_sniffer): Remove.
11588 (sniff_core_bfd): Remove.
11589 (default_check_format): Remove.
11590 (gdb_check_format): Remove.
11591 (core_target_open): Update.
11592 (core_target::get_core_register_section): Update.
11593 (get_core_registers_cb): Update.
11594 (core_target::fetch_registers): Update.
11595 * gdbcore.h (struct core_fns): Remove.
11596 (deprecated_add_core_fns): Remove.
11597 (default_core_sniffer): Remove.
11598 (default_check_format): Remove.
11599
11600 2020-03-12 Tom Tromey <tom@tromey.com>
11601
11602 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
11603 CORE_ADDR.
11604 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
11605
11606 2020-03-12 Tom Tromey <tom@tromey.com>
11607
11608 * remote.c (remote_target::download_tracepoint)
11609 (remote_target::enable_tracepoint)
11610 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
11611 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
11612 sprintf_vma.
11613
11614 2020-03-12 Tom Tromey <tom@tromey.com>
11615
11616 * symfile-mem.c: Update CORE_ADDR size assert.
11617
11618 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11619
11620 * selftest.m4: Move to gdbsupport/.
11621 * acinclude.m4: Update path to selftest.m4.
11622
11623 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11624
11625 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
11626 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
11627 gdbarch-selfselftests.c and selftest-arch.c.
11628 (SUBDIR_UNITTESTS_OBS): Rename to...
11629 (SELFTESTS_OBS): ... this.
11630 (COMMON_SFILES): Remove disasm-selftests.c and
11631 gdbarch-selftests.c.
11632 * configure.ac: Don't add selftest-arch.{c,o} to
11633 CONFIG_{SRCS,OBS}.
11634 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
11635 preprocessor conditions.
11636
11637 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11638
11639 * configure.ac: Don't source bfd/development.sh.
11640 * selftest.m4: Modify comment.
11641 * configure: Re-generate.
11642
11643 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
11644
11645 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
11646 not "true" or "false".
11647 * configure: Re-generate.
11648
11649 2020-03-12 Christian Biesinger <cbiesinger@google.com>
11650
11651 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
11652 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
11653 renamed to arm_nbsd_supply_gregset.
11654 (fetch_register): Update to call arm_nbsd_supply_gregset.
11655 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
11656 (arm_netbsd_nat_target::fetch_registers): Update.
11657 (fetch_elfcore_registers): Removed.
11658 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
11659 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
11660 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
11661 not require NetBSD system headers.
11662 (arm_nbsd_regset): New struct.
11663 (arm_nbsd_iterate_over_regset_sections): New function.
11664 (arm_netbsd_init_abi_common): Updated to call
11665 set_gdbarch_iterate_over_regset_sections.
11666 * arm-nbsd-tdep.h: New file.
11667
11668 2020-03-11 Kevin Buettner <kevinb@redhat.com>
11669
11670 * symtab.c (find_pc_sect_line): Add check which prevents infinite
11671 recursion.
11672
11673 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
11674
11675 * configure: Re-generate.
11676
11677 2020-03-11 Tom Tromey <tromey@adacore.com>
11678
11679 * ada-typeprint.c (print_choices): Fix comment.
11680
11681 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
11682
11683 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
11684 previous item in the list, when the list has no items.
11685
11686 2020-03-11 Tom de Vries <tdevries@suse.de>
11687
11688 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
11689 PROP_LOCLIST handling code.
11690
11691 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
11692
11693 * buildsym-legacy.c (record_line): Pass extra parameter to
11694 record_line.
11695 * buildsym.c (buildsym_compunit::record_line): Take an extra
11696 parameter, reduce duplication in the line table, and record the
11697 is_stmt flag in the line table.
11698 * buildsym.h (buildsym_compunit::record_line): Add extra
11699 parameter.
11700 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
11701 non-statement lines.
11702 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
11703 this to the symtab builder.
11704 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
11705 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
11706 through to dwarf_record_line_1.
11707 * infrun.c (process_event_stop_test): When stepping, don't stop at
11708 a non-statement instruction, and only refresh the step info when
11709 we land in the middle of a line's range. Also add an extra
11710 comment.
11711 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
11712 field.
11713 * record-btrace.c (btrace_find_line_range): Only record lines
11714 marked as is-statement.
11715 * stack.c (frame_show_address): Show the frame address if we are
11716 in a non-statement sal.
11717 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
11718 (maintenance_print_one_line_table): Print a header for the is_stmt
11719 column, and include is_stmt information in the output.
11720 * symtab.c (find_pc_sect_line): Find lines marked as statements in
11721 preference to non-statements.
11722 (find_pcs_for_symtab_line): Prefer is-statement entries.
11723 (find_line_common): Likewise.
11724 * symtab.h (struct linetable_entry): Add is_stmt field.
11725 (struct symtab_and_line): Likewise.
11726 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
11727 arranging the line table.
11728
11729 2020-03-07 Tom de Vries <tdevries@suse.de>
11730
11731 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
11732 DIE.
11733
11734 2020-03-07 Tom Tromey <tom@tromey.com>
11735
11736 * valops.c (value_literal_complex): Remove obsolete comment.
11737 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
11738 comment.
11739
11740 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
11741
11742 * infrun.h: Forward-declare thread_info.
11743 (set_step_info): Add thread_info parameter, add doc.
11744 * infrun.c (set_step_info): Add thread_info parameter, move doc
11745 to header.
11746 * infrun.c (process_event_stop_test): Pass thread to
11747 set_step_info call.
11748 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
11749 set_step_info.
11750 (prepare_one_step): Add thread_info parameter, pass it to
11751 set_step_frame and prepare_one_step (recursive) call.
11752 (step_1): Pass thread to prepare_one_step call.
11753 (step_command_fsm::should_stop): Pass thread to
11754 prepare_one_step.
11755 (until_next_fsm): Pass thread to set_step_frame call.
11756 (finish_command): Pass thread to set_step_info call.
11757
11758 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
11759
11760 * windows-tdep.c (windows_solib_create_inferior_hook):
11761 Check if inferior is running.
11762
11763 2020-03-06 Tom de Vries <tdevries@suse.de>
11764
11765 * NEWS: Fix "the the".
11766 * ctfread.c: Same.
11767
11768 2020-03-06 Tom de Vries <tdevries@suse.de>
11769
11770 * psymtab.c (psymtab_to_symtab): Don't print "done.".
11771
11772 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11773
11774 * .dir-locals.el: Add a comment referencing the other copies of
11775 this file.
11776
11777 2020-03-05 John Baldwin <jhb@FreeBSD.org>
11778
11779 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
11780 psargs.
11781
11782 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11783
11784 * .gitattributes: New file.
11785
11786 2020-03-04 Tom Tromey <tom@tromey.com>
11787
11788 * symmisc.c (print_symbol_bcache_statistics)
11789 (print_objfile_statistics): Update.
11790 * symfile.c (allocate_symtab): Use intern.
11791 * psymtab.c (partial_symtab::partial_symtab): Use intern.
11792 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11793 macro_cache>: Remove.
11794 <string_cache>: New member.
11795 (struct objfile) <intern>: New methods.
11796 * elfread.c (elf_symtab_read): Use intern.
11797 * dwarf2/read.c (fixup_go_packaging): Intern package name.
11798 (dwarf2_compute_name, dwarf2_physname)
11799 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
11800 names.
11801 (guess_partial_die_structure_name): Update.
11802 (partial_die_info::fixup): Intern name.
11803 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
11804 name.
11805 (dwarf2_name): Intern name. Update.
11806 * buildsym.c (buildsym_compunit::get_macro_table): Use
11807 string_cache.
11808
11809 2020-03-04 Tom Tromey <tom@tromey.com>
11810
11811 * jit.c (bfd_open_from_target_memory): Make "target" const.
11812 * corefile.c (gnutarget): Now const.
11813 * gdbcore.h (gnutarget): Now const.
11814
11815 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
11816
11817 * NEWS: Mention support for WOW64 processes.
11818 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
11819 (amd64_windows_segment_register_p): Remove static.
11820 (_initialize_amd64_windows_nat): Update.
11821 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
11822 * i386-windows-nat.c (context_offset): Update.
11823 (i386_mappings): Rename and remove static.
11824 (i386_windows_segment_register_p): Remove static.
11825 (_initialize_i386_windows_nat): Update.
11826 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
11827 (STATUS_WX86_SINGLE_STEP): New macro.
11828 (EnumProcessModulesEx): New macro.
11829 (Wow64SuspendThread): New macro.
11830 (Wow64GetThreadContext): New macro.
11831 (Wow64SetThreadContext): New macro.
11832 (Wow64GetThreadSelectorEntry): New macro.
11833 (windows_set_context_register_offsets): Add static.
11834 (windows_set_segment_register_p): Likewise.
11835 (windows_add_thread): Adapt for WOW64 processes.
11836 (windows_fetch_one_register): Likewise.
11837 (windows_nat_target::fetch_registers): Likewise.
11838 (windows_store_one_register): Likewise.
11839 (display_selector): Likewise.
11840 (display_selectors): Likewise.
11841 (handle_exception): Likewise.
11842 (windows_continue): Likewise.
11843 (windows_nat_target::resume): Likewise.
11844 (windows_add_all_dlls): Likewise.
11845 (do_initial_windows_stuff): Likewise.
11846 (windows_nat_target::attach): Likewise.
11847 (windows_get_exec_module_filename): Likewise.
11848 (windows_nat_target::create_inferior): Likewise.
11849 (windows_xfer_siginfo): Likewise.
11850 (_initialize_loadable): Initialize Wow64SuspendThread,
11851 Wow64GetThreadContext, Wow64SetThreadContext,
11852 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
11853 * windows-nat.h (windows_set_context_register_offsets):
11854 Remove declaration.
11855 (windows_set_segment_register_p): Likewise.
11856 (i386_windows_segment_register_p): Add declaration.
11857 (amd64_windows_segment_register_p): Likewise.
11858
11859 2020-03-04 Luis Machado <luis.machado@linaro.org>
11860
11861 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
11862 in "info registers" for AArch64/ARM.
11863
11864 The change caused "info registers" to not print GPR's.
11865
11866 gdb/ChangeLog:
11867
11868 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
11869
11870 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11871 when reg->group is empty and reggroup is not.
11872
11873 2020-03-03 Tom Tromey <tromey@adacore.com>
11874
11875 * dwarf2/frame.c (struct dwarf2_frame_cache)
11876 <checked_tailcall_bottom, entry_cfa_sp_offset,
11877 entry_cfa_sp_offset_p>: Remove members.
11878 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
11879 (dwarf2_frame_prev_register): Don't call
11880 dwarf2_tailcall_sniffer_first.
11881 (dwarf2_append_unwinders): Don't append tailcall unwinder.
11882 * frame-unwind.c (add_unwinder): New fuction.
11883 (frame_unwind_init): Use it. Add tailcall unwinder.
11884
11885 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
11886 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11887
11888 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
11889 value should be printed as true.
11890
11891 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
11892
11893 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
11894 (windows_init_abi): Set and use windows_so_ops.
11895
11896 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
11897
11898 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
11899 when verifying if dealing with a convenience variable.
11900
11901 2020-03-03 Luis Machado <luis.machado@linaro.org>
11902
11903 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
11904
11905 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
11906
11907 * infrun.c (gdbarch_supports_displaced_stepping): New.
11908 (use_displaced_stepping): Break up conditions in smaller pieces.
11909 Use gdbarch_supports_displaced_stepping.
11910 (displaced_step_prepare_throw): Use
11911 gdbarch_supports_displaced_stepping.
11912
11913 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11914
11915 * NEWS: Mention new behaviour of the history filename.
11916 * top.c (write_history_p): Add comment.
11917 (show_write_history_p): Add header comment, give a different
11918 message when history writing is on, but the history filename is
11919 empty.
11920 (history_filename): Add comment.
11921 (history_filename_empty): New function.
11922 (show_history_filename): Add header comment, give a different
11923 message when the filename is empty.
11924 (init_history): Compare history_filename against nullptr, and only
11925 read history if the filename is not empty.
11926 (set_history_filename): Add header comment, and only make
11927 non-empty filenames absolute.
11928 (init_main): Make the filename argument to 'set history filename'
11929 optional.
11930
11931 2020-03-02 Christian Biesinger <cbiesinger@google.com>
11932
11933 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
11934 (arm_supply_vfpregset): ...this, and update to use VFP registers.
11935 (fetch_fp_register): Update.
11936 (fetch_fp_regs): Update.
11937 (store_fp_register): Update.
11938 (store_fp_regs): Update.
11939 (arm_netbsd_nat_target::read_description): New function.
11940 (fetch_elfcore_registers): Update.
11941
11942 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
11943
11944 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
11945 general_thread if the stop reply is missing a thread-id.
11946 (remote_target::process_stop_reply): Use the first non-exited
11947 thread if the target didn't pass a thread-id.
11948 * infrun.c (do_target_wait): Move call to
11949 switch_to_inferior_no_thread to ....
11950 (do_target_wait_1): ... here.
11951
11952 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
11953
11954 * debuginfod-support.c: Include defs.h first.
11955
11956 2020-02-28 Tom de Vries <tdevries@suse.de>
11957
11958 * symfile.c (set_initial_language): Use default language for lookup.
11959
11960 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
11961
11962 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
11963 reader variable, pass `this` to read_cutu_die_from_dwo.
11964
11965 2020-02-27 Aaron Merey <amerey@redhat.com>
11966
11967 * source.c (open_source_file): Check for nullptr when computing
11968 srcpath.
11969
11970 2020-02-27 Tom Tromey <tromey@adacore.com>
11971
11972 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
11973 member.
11974 (dwarf2_add_field): Don't update nfields.
11975 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
11976
11977 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11978
11979 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
11980 abs.
11981
11982 2020-02-26 Tom Tromey <tom@tromey.com>
11983
11984 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
11985 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
11986 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
11987 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
11988 per_cu_data.
11989
11990 2020-02-26 Tom Tromey <tom@tromey.com>
11991
11992 * dwarf2/index-write.c (psym_index_map): Change type.
11993 (add_address_entry_worker, write_one_signatured_type)
11994 (recursively_count_psymbols, recursively_write_psymbols)
11995 (class debug_names, psyms_seen_size, write_gdbindex)
11996 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
11997
11998 2020-02-26 Aaron Merey <amerey@redhat.com>
11999
12000 * Makefile.in: Handle optional debuginfod support.
12001 * NEWS: Update.
12002 * README: Add --with-debuginfod summary.
12003 * config.in: Regenerate.
12004 * configure: Regenerate.
12005 * configure.ac: Handle optional debuginfod support.
12006 * debuginfod-support.c: debuginfod helper functions.
12007 * debuginfod-support.h: Ditto.
12008 * doc/gdb.texinfo: Add --with-debuginfod to configure options
12009 summary.
12010 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
12011 when a dwz file cannot be found.
12012 * elfread.c (elf_symfile_read): Query debuginfod servers when a
12013 debuginfo file cannot be found.
12014 * source.c (open_source_file): Query debuginfod servers when a
12015 source file cannot be found.
12016 * top.c (print_gdb_configuration): Include
12017 --{with,without}-debuginfod in the output.
12018
12019 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
12020
12021 * thread.c (thr_try_catch_cmd): Print thread name.
12022
12023 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
12024
12025 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
12026 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12027 dwarf2_fetch_die_type_sect_off): Move to...
12028 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
12029 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12030 dwarf2_fetch_die_type_sect_off): ... here.
12031 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
12032 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
12033 dwarf2_fetch_die_type_sect_off): Move doc to header file.
12034
12035 2020-02-26 Tom de Vries <tdevries@suse.de>
12036
12037 PR gdb/25603
12038 * symfile.c (set_initial_language): Exit-early if
12039 language_mode == language_mode_manual.
12040
12041 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12042
12043 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
12044 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
12045 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
12046
12047 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
12048
12049 * gdbtypes.c (create_array_type_with_stride): Handle negative
12050 array strides.
12051 * valarith.c (value_subscripted_rvalue): Likewise.
12052
12053 2020-02-25 Luis Machado <luis.machado@linaro.org>
12054
12055 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
12056
12057 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
12058
12059 * loc.h (dwarf2_get_die_type): Move to...
12060 * read.h (dwarf2_get_die_type): ... here.
12061 * read.c (dwarf2_get_die_type): Move doc to header.
12062
12063 2020-02-25 Joel Brobecker <brobecker@adacore.com>
12064
12065 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
12066 'gnulib/Makefile.in' to the list.
12067
12068 2020-02-24 Tom Tromey <tom@tromey.com>
12069
12070 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
12071 Remove.
12072 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
12073 XOBNEWVEC.
12074
12075 2020-02-24 Tom Tromey <tom@tromey.com>
12076
12077 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
12078 New method.
12079 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
12080 (dw2_do_instantiate_symtab, dw2_get_file_names)
12081 (build_type_psymtab_dependencies, load_full_type_unit): Update.
12082
12083 2020-02-24 Tom Tromey <tom@tromey.com>
12084
12085 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
12086 make_scoped_restore.
12087 (dwarf2_psymtab::read_symtab): Don't clear
12088 reading_partial_symbols.
12089
12090 2020-02-24 Tom de Vries <tdevries@suse.de>
12091
12092 PR gdb/25592
12093 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
12094
12095 2020-02-24 Tom de Vries <tdevries@suse.de>
12096
12097 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
12098 commands layout next/prev/regs.
12099
12100 2020-02-22 Tom Tromey <tom@tromey.com>
12101
12102 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
12103 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
12104
12105 2020-02-22 Tom Tromey <tom@tromey.com>
12106
12107 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
12108
12109 2020-02-22 Tom Tromey <tom@tromey.com>
12110
12111 * tui/tui-win.c (_initialize_tui_win): Add usage text.
12112 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
12113 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
12114 * tui/tui.c (_initialize_tui): Add usage text.
12115
12116 2020-02-22 Tom Tromey <tom@tromey.com>
12117
12118 * tui/tui-win.c (tui_set_focus_command)
12119 (tui_set_win_height_command): Use error_no_arg.
12120 (_initialize_tui_win): Update help text.
12121 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
12122
12123 2020-02-22 Tom Tromey <tom@tromey.com>
12124
12125 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
12126 * tui/tui-disasm.h (struct tui_disasm_window)
12127 <display_start_addr>: Declare.
12128 * tui/tui-source.h (struct tui_source_window)
12129 <display_start_addr>: Declare.
12130 * tui/tui-winsource.h (struct tui_source_window_base)
12131 <show_source_line, display_start_addr>: New methods.
12132 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
12133 Rename and move to protected section.
12134 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
12135 (tui_source_window_base::do_erase_source_content): Update.
12136 (tui_source_window_base::show_source_line): Now a method.
12137 (tui_source_window_base::show_source_content)
12138 (tui_source_window_base::tui_source_window_base)
12139 (tui_source_window_base::rerender)
12140 (tui_source_window_base::refill)
12141 (tui_source_window_base::do_scroll_horizontal)
12142 (tui_source_window_base::set_is_exec_point_at)
12143 (tui_source_window_base::update_breakpoint_info)
12144 (tui_source_window_base::update_exec_info): Update.
12145 * tui/tui-source.c (tui_source_window::set_contents)
12146 (tui_source_window::showing_source_p)
12147 (tui_source_window::do_scroll_vertical)
12148 (tui_source_window::location_matches_p)
12149 (tui_source_window::line_is_displayed): Update.
12150 (tui_source_window::display_start_addr): New method.
12151 * tui/tui-disasm.c (tui_disasm_window::set_contents)
12152 (tui_disasm_window::do_scroll_vertical)
12153 (tui_disasm_window::location_matches_p): Update.
12154 (tui_disasm_window::display_start_addr): New method.
12155
12156 2020-02-22 Tom Tromey <tom@tromey.com>
12157
12158 * NEWS: Add entry for gdb.register_window_type.
12159 * tui/tui-layout.h (window_factory): New typedef.
12160 (tui_register_window): Declare.
12161 * tui/tui-layout.c (saved_tui_windows): New global.
12162 (tui_apply_current_layout): Use it.
12163 (tui_register_window): New function.
12164 * python/python.c (do_start_initialization): Call
12165 gdbpy_initialize_tui.
12166 (python_GdbMethods): Add "register_window_type" function.
12167 * python/python-internal.h (gdbpy_register_tui_window)
12168 (gdbpy_initialize_tui): Declare.
12169 * python/py-tui.c: New file.
12170 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
12171
12172 2020-02-22 Tom Tromey <tom@tromey.com>
12173
12174 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
12175
12176 2020-02-22 Tom Tromey <tom@tromey.com>
12177
12178 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
12179 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
12180 * tui/tui-data.c (tui_set_win_with_focus): Remove.
12181 (tui_set_win_focus_to): Move from tui-win.c.
12182
12183 2020-02-22 Tom Tromey <tom@tromey.com>
12184
12185 * tui/tui-layout.c (make_standard_window, get_locator_window): New
12186 functions.
12187 (known_window_types): New global.
12188 (tui_get_window_by_name): Reimplement.
12189 (initialize_known_windows): New function.
12190 (validate_window_name): Rewrite.
12191 (_initialize_tui_layout): Call initialize_known_windows.
12192
12193 2020-02-22 Tom Tromey <tom@tromey.com>
12194
12195 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
12196 Remove constants.
12197 * tui/tui-winsource.h (struct tui_source_window_base)
12198 <tui_source_window_base>: Remove parameter.
12199 * tui/tui-winsource.c
12200 (tui_source_window_base::tui_source_window_base): Remove
12201 parameter.
12202 (tui_source_window_base::refill): Update.
12203 * tui/tui-stack.h (struct tui_locator_window)
12204 <tui_locator_window>: Update.
12205 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
12206 Default the constructor.
12207 * tui/tui-regs.h (struct tui_data_item_window)
12208 <tui_data_item_window>: Default the constructor.
12209 (struct tui_data_window) <tui_data_window>: Likewise.
12210 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
12211 Default the constructor.
12212 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
12213 Default the constructor.
12214 <type>: Remove.
12215 (struct tui_win_info) <tui_win_info>: Default the constructor.
12216 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
12217 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
12218 Default the constructor.
12219
12220 2020-02-22 Tom Tromey <tom@tromey.com>
12221
12222 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
12223 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
12224 * tui/tui-win.c (tui_resize_all): Don't call
12225 tui_delete_invisible_windows.
12226 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
12227 done.
12228 (tui_set_layout): Update.
12229 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
12230 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
12231 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
12232
12233 2020-02-22 Tom Tromey <tom@tromey.com>
12234
12235 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
12236 correctly.
12237
12238 2020-02-22 Tom Tromey <tom@tromey.com>
12239
12240 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
12241
12242 2020-02-22 Tom Tromey <tom@tromey.com>
12243
12244 * tui/tui-winsource.h (struct tui_source_window_iterator)
12245 <inner_iterator>: New etytypedef.
12246 <tui_source_window_iterator>: Take "end" parameter.
12247 <tui_source_window_iterator>: Take iterator.
12248 <operator*, advance>: Update.
12249 <m_iter>: Change type.
12250 <m_end>: New field.
12251 (struct tui_source_windows) <begin, end>: Update.
12252 * tui/tui-layout.c (tui_windows): New global.
12253 (tui_apply_current_layout): Clear tui_windows.
12254 (tui_layout_window::apply): Update tui_windows.
12255 * tui/tui-data.h (tui_windows): Declare.
12256 (all_tui_windows): Now inline function.
12257 (class tui_window_iterator, struct all_tui_windows): Remove.
12258
12259 2020-02-22 Tom Tromey <tom@tromey.com>
12260
12261 PR tui/17850:
12262 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
12263 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
12264 "height" argument.
12265 (class tui_layout_window) <get_sizes>: Likewise.
12266 (class tui_layout_split) <tui_layout_split>: Add "vertical"
12267 argument.
12268 <get_sizes>: Add "height" argument.
12269 <m_vertical>: New field.
12270 * tui/tui-layout.c (tui_layout_split::clone): Update.
12271 (tui_layout_split::get_sizes): Add "height" argument.
12272 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
12273 (tui_new_layout_command): Parse "-horizontal".
12274 (_initialize_tui_layout): Update help string.
12275 (tui_layout_split::specification): Add "-horizontal" when needed.
12276 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
12277 argument.
12278 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
12279 New methods.
12280
12281 2020-02-22 Tom Tromey <tom@tromey.com>
12282
12283 * tui/tui-layout.h (enum tui_adjust_result): New.
12284 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
12285 (class tui_layout_window) <adjust_size>: Return
12286 tui_adjust_result. Rewrite.
12287 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
12288 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
12289
12290 2020-02-22 Tom Tromey <tom@tromey.com>
12291
12292 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
12293 parameter and return types.
12294 (class tui_layout_base) <specification>: Add "depth".
12295 (class tui_layout_window) <specification>: Add "depth".
12296 (class tui_layout_split) <specification>: Add "depth".
12297 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
12298 and return types.
12299 (tui_new_layout_command): Parse sub-layouts.
12300 (_initialize_tui_layout): Update help string.
12301 (tui_layout_window::specification): Add "depth".
12302 (add_layout_command): Update.
12303
12304 2020-02-22 Tom Tromey <tom@tromey.com>
12305
12306 * NEWS: Add "tui new-layout" item.
12307 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
12308 Add new-layout command to help text.
12309 (validate_window_name): New function.
12310 (tui_new_layout_command): New function.
12311 (_initialize_tui_layout): Register "new-layout".
12312 (tui_layout_window::specification): New method.
12313 (tui_layout_window::specification): New method.
12314 * tui/tui-layout.h (class tui_layout_base) <specification>: New
12315 method.
12316 (class tui_layout_window) <specification>: New method.
12317 (class tui_layout_split) <specification>: New method.
12318
12319 2020-02-22 Tom Tromey <tom@tromey.com>
12320
12321 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
12322 * tui/tui-win.c (window_name_completer): Update comment.
12323 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
12324 Declare method.
12325 (class tui_layout_window) <replace_window>: Likewise.
12326 (class tui_layout_split) <replace_window>: Likewise.
12327 (tui_set_layout): Don't declare.
12328 (tui_set_initial_layout): Declare function.
12329 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
12330 (asm_regs_layout): New globals.
12331 (tui_current_layout, show_layout): Remove.
12332 (tui_set_layout, tui_add_win_to_layout): Rewrite.
12333 (find_layout, tui_apply_layout): New function.
12334 (layout_completer): Remove.
12335 (tui_next_layout): Reimplement.
12336 (tui_next_layout_command): New function.
12337 (tui_set_initial_layout, tui_prev_layout_command): New functions.
12338 (tui_regs_layout): Reimplement.
12339 (tui_regs_layout_command): New function.
12340 (extract_display_start_addr): Rewrite.
12341 (next_layout, prev_layout): Remove.
12342 (tui_layout_window::replace_window): New method.
12343 (tui_layout_split::replace_window): New method.
12344 (destroy_layout): New function.
12345 (layout_list): New global.
12346 (add_layout_command): New function.
12347 (initialize_layouts): Update.
12348 (tui_layout_command): New function.
12349 (_initialize_tui_layout): Install "layout" commands.
12350 * tui/tui-data.h (enum tui_layout_type): Remove.
12351 (tui_current_layout): Don't declare.
12352
12353 2020-02-22 Tom Tromey <tom@tromey.com>
12354
12355 * tui/tui-regs.c (tui_reg_layout): Remove.
12356 (tui_reg_command): Use tui_regs_layout.
12357 * tui/tui-layout.h (tui_reg_command): Declare.
12358 * tui/tui-layout.c (tui_reg_command): New function.
12359
12360 2020-02-22 Tom Tromey <tom@tromey.com>
12361
12362 * tui/tui.c (tui_rl_delete_other_windows): Call
12363 tui_remove_some_windows.
12364 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
12365 Declare method.
12366 (class tui_layout_window) <remove_windows>: New method.
12367 (class tui_layout_split) <remove_windows>: Declare.
12368 (tui_remove_some_windows): Declare.
12369 * tui/tui-layout.c (tui_remove_some_windows): New function.
12370 (tui_layout_split::remove_windows): New method.
12371
12372 2020-02-22 Tom Tromey <tom@tromey.com>
12373
12374 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
12375 * tui/tui-layout.h (tui_next_layout): Declare.
12376 * tui/tui-layout.c (tui_next_layout): New function.
12377
12378 2020-02-22 Tom Tromey <tom@tromey.com>
12379
12380 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
12381 correct coordinates.
12382
12383 2020-02-22 Tom Tromey <tom@tromey.com>
12384
12385 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
12386 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
12387 DATA_WIN case.
12388
12389 2020-02-22 Tom Tromey <tom@tromey.com>
12390
12391 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
12392 TUI_DISASM_WIN, not tui_win_list.
12393
12394 2020-02-22 Tom Tromey <tom@tromey.com>
12395
12396 * valprint.c (generic_val_print_enum_1)
12397 (val_print_type_code_flags): Style member names.
12398 * rust-lang.c (val_print_struct, rust_print_enum)
12399 (rust_print_struct_def, rust_internal_print_type): Style member
12400 names.
12401 * p-valprint.c (pascal_object_print_value_fields): Style member
12402 names. Only call fprintf_symbol_filtered for static members.
12403 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
12404 * f-valprint.c (f_val_print): Style member names.
12405 * f-typeprint.c (f_type_print_base): Style member names.
12406 * cp-valprint.c (cp_print_value_fields): Style member names. Only
12407 call fprintf_symbol_filtered for static members.
12408 (cp_print_class_member): Style member names.
12409 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
12410 member names.
12411 * ada-valprint.c (ada_print_scalar): Style enum names.
12412 (ada_val_print_enum): Likewise.
12413 * ada-typeprint.c (print_enum_type): Style enum names.
12414
12415 2020-02-21 Tom Tromey <tom@tromey.com>
12416
12417 * psympriv.h (struct partial_symtab): Update comment.
12418
12419 2020-02-21 Tom Tromey <tromey@adacore.com>
12420
12421 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
12422 type is CORE_ADDR.
12423
12424 2020-02-21 Tom de Vries <tdevries@suse.de>
12425
12426 PR gdb/25534
12427 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
12428 if dependencies[i]->user != NULL.
12429
12430 2020-02-21 Ali Tamur <tamur@google.com>
12431
12432 * dwarf2/read.c (dwarf2_name): Add null check.
12433
12434 2020-02-20 Tom Tromey <tom@tromey.com>
12435
12436 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
12437 ">=", in binary search.
12438 (dwarf2_find_containing_comp_unit): New overload.
12439 (run_test): New self-test.
12440 (_initialize_dwarf2_read): Register new test.
12441
12442 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
12443
12444 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
12445 * riscv-tdep.h: Likewise.
12446 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
12447 rv32-only CSR.
12448 * features/riscv/64bit-csr.xml: Regenerated.
12449
12450 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
12451 Tom Tromey <tom@tromey.com>
12452
12453 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
12454 of 'fputc_unfiltered'.
12455 (putchar_unfiltered): Call 'fputc_unfiltered'.
12456 (fputc_unfiltered): Call 'fputs_unfiltered'.
12457
12458 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
12459
12460 * config.in: Regenerate.
12461 * configure: Regenerate.
12462 * configure.ac: Add --with-python-libdir option.
12463 * main.c: Use WITH_PYTHON_LIBDIR.
12464
12465 2020-02-19 Tom Tromey <tom@tromey.com>
12466
12467 * symtab.c (general_symbol_info::compute_and_set_names): Use
12468 obstack_strndup. Simplify call to symbol_set_demangled_name.
12469
12470 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
12471
12472 * dwarf2/read.c (allocate_signatured_type_table,
12473 allocate_dwo_unit_table, allocate_type_unit_groups_table,
12474 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
12475 Remove objfile parameter, update all callers.
12476
12477 2020-02-19 Doug Evans <dje@google.com>
12478
12479 PR rust/25535
12480 * rust-lang.c (rust_print_enum): Apply embedded_offset to
12481 rust_enum_variant calculation.
12482
12483 2020-02-19 Tom Tromey <tromey@adacore.com>
12484
12485 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
12486
12487 2020-02-19 Tom Tromey <tromey@adacore.com>
12488
12489 * ada-lang.c (cache_symbol): Use obstack_strdup.
12490
12491 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12492
12493 * configure: Regenerate.
12494
12495 2020-02-19 Tom Tromey <tromey@adacore.com>
12496
12497 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
12498 NULL check.
12499
12500 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
12501
12502 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
12503
12504 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
12505
12506 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
12507 if GDBSERVER is not defined.
12508 (riscv_tdesc_cache): Likewise, also store const target_desc.
12509 (STATIC_IN_GDB): Define.
12510 (riscv_create_target_description): Update declaration with
12511 STATIC_IN_GDB.
12512 (riscv_lookup_target_description): New function, only define if
12513 GDBSERVER is not defined.
12514 * arch/riscv.h (riscv_create_target_description): Declare only
12515 when GDBSERVER is defined.
12516 (riscv_lookup_target_description): New declaration when GDBSERVER
12517 is not defined.
12518 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
12519 (riscv_linux_read_features): ...this, and return
12520 riscv_gdbarch_features instead of target_desc.
12521 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
12522 (riscv_linux_read_description): Rename to...
12523 (riscv_linux_read_features): ...this.
12524 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12525 Update to use riscv_gdbarch_features and
12526 riscv_lookup_target_description.
12527 * riscv-tdep.c (riscv_find_default_target_description): Use
12528 riscv_lookup_target_description instead of
12529 riscv_create_target_description.
12530
12531 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12532
12533 * valprint.c (generic_val_print_enum_1): When printing a flag
12534 enum with value 0 and there is no enumerator with value 0, print
12535 just "0" instead of "(unknown: 0x0)".
12536
12537 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12538
12539 * valprint.c (generic_val_print_enum_1): Print unknown part of
12540 flag enum in hex.
12541
12542 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12543
12544 * dwarf2/read.c (update_enumeration_type_from_children): Allow
12545 flag enums to contain duplicate enumerators.
12546 * valprint.c (generic_val_print_enum_1): Update comment.
12547
12548 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12549
12550 * dwarf2/read.c: Include "count-one-bits.h".
12551 (update_enumeration_type_from_children): If an enumerator has
12552 multiple bits set, don't treat the enumeration as a "flag enum".
12553 * valprint.c (generic_val_print_enum_1): Assert that enumerators
12554 of flag enums have 0 or 1 bit set.
12555
12556 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
12557
12558 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
12559 conversion.
12560 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12561 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12562 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12563 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12564 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12565
12566 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
12567
12568 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
12569
12570 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12571
12572 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
12573 displaced_step_closure_up.
12574 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12575 (struct displaced_step_closure_up):
12576 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12577 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12578 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
12579 Likewise.
12580 * gdbarch.sh (displaced_step_copy_insn): Likewise.
12581 * gdbarch.c, gdbarch.h: Re-generate.
12582 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
12583 displaced_step_closure_up.
12584 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12585 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12586 * infrun.h (displaced_step_closure_up): New type alias.
12587 (struct displaced_step_inferior_state) <step_closure>: Change
12588 type to displaced_step_closure_up.
12589 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
12590 displaced_step_closure_up.
12591 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12592
12593 2020-02-14 Tom Tromey <tom@tromey.com>
12594
12595 * minidebug.c (gnu_debug_key): New global.
12596 (find_separate_debug_file_in_section): Use it.
12597
12598 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12599
12600 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
12601 std::unique_ptr.
12602 * gdbarch.c: Re-generate.
12603 * gdbarch.h: Re-generate.
12604 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
12605 change.
12606 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
12607 type to std::unique_ptr.
12608 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
12609 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
12610 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
12611 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
12612 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
12613 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
12614 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
12615 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
12616 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
12617
12618 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12619
12620 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
12621 std::unique_ptr.
12622 (displaced_step_clear): Rename to...
12623 (displaced_step_reset): ... this. Just call displaced->reset ().
12624 (displaced_step_clear_cleanup): Rename to...
12625 (displaced_step_reset_cleanup): ... this.
12626 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
12627 (displaced_step_fixup): Likewise.
12628 (resume_1): Likewise.
12629 (handle_inferior_event): Restore child's memory before calling
12630 displaced_step_fixup on the parent.
12631 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
12632 to std::unique_ptr.
12633 <step_closure>: Change type to std::unique_ptr.
12634
12635 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
12636
12637 * arm-tdep.c: Include count-one-bits.h.
12638 (cleanup_block_store_pc): Use count_one_bits.
12639 (cleanup_block_load_pc): Use count_one_bits.
12640 (arm_copy_block_xfer): Use count_one_bits.
12641 (thumb2_copy_block_xfer): Use count_one_bits.
12642 (thumb_copy_pop_pc_16bit): Use count_one_bits.
12643 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
12644 (thumb_get_next_pcs_raw): Use count_one_bits.
12645 (arm_get_next_pcs_raw): Use count_one_bits_l.
12646 * arch/arm.c (bitcount): Remove.
12647 * arch/arm.h (bitcount): Remove.
12648
12649 2020-02-14 Tom Tromey <tromey@adacore.com>
12650
12651 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
12652 Update.
12653 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
12654 * dwarf2/loc.c (call_site_find_chain_1): Return
12655 unique_xmalloc_ptr.
12656 (call_site_find_chain): Likewise.
12657
12658 2020-02-14 Richard Biener <rguenther@suse.de>
12659
12660 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
12661 on expression with division operators.
12662
12663 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12664
12665 * MAINTAINERS (Write After Approval): Adding myself.
12666
12667 2020-02-12 Tom Tromey <tom@tromey.com>
12668
12669 * event-loop.c (event_data, gdb_event, event_handler_func):
12670 Remove.
12671
12672 2020-02-12 Tom Tromey <tom@tromey.com>
12673
12674 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
12675 (dwarf2_frame_objfile_data): Add comment.
12676 (find_comp_unit, set_comp_unit): New functions.
12677 (dwarf2_frame_find_fde): Use find_comp_unit.
12678 (dwarf2_build_frame_info): Use set_comp_unit.
12679
12680 2020-02-12 Tom Tromey <tom@tromey.com>
12681
12682 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
12683 (comp_unit): Don't initialize objfile.
12684 (execute_cfa_program): Add text_offset parameter.
12685 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
12686 (dwarf2_frame_cache): Update.
12687 (dwarf2_build_frame_info): Don't set "objfile" member.
12688
12689 2020-02-12 Tom Tromey <tom@tromey.com>
12690
12691 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
12692 (decode_frame_entry): Likewise.
12693 (dwarf2_build_frame_info): Update.
12694
12695 2020-02-12 Tom Tromey <tom@tromey.com>
12696
12697 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
12698 (decode_frame_entry_1): Use the comp_unit obstack.
12699
12700 2020-02-12 Tom Tromey <tom@tromey.com>
12701
12702 * dwarf2/frame.c (struct comp_unit): Add initializers and
12703 constructor.
12704 (dwarf2_frame_objfile_data): Store a comp_unit.
12705 (dwarf2_frame_find_fde): Update.
12706 (dwarf2_build_frame_info): Use "new".
12707
12708 2020-02-12 Tom Tromey <tom@tromey.com>
12709
12710 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
12711 (dwarf2_fde_table): Typedef for std::vector.
12712 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
12713 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
12714 (decode_frame_entry): Update.
12715 (dwarf2_build_frame_info): Use "new".
12716
12717 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12718
12719 * arm-tdep.c (arm_gdbarch_init): Update.
12720 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
12721 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
12722 have_neon, is_m>: Change to bool.
12723
12724 2020-02-12 Christian Biesinger <cbiesinger@google.com>
12725
12726 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
12727
12728 2020-02-12 Tom Tromey <tom@tromey.com>
12729
12730 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
12731
12732 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
12733
12734 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
12735 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
12736
12737 2020-02-11 Tom Tromey <tom@tromey.com>
12738
12739 * psymtab.h: Update comment.
12740
12741 2020-02-11 Tom Tromey <tom@tromey.com>
12742
12743 * gdb_obstack.h (struct auto_obstack): Use
12744 DISABLE_COPY_AND_ASSIGN.
12745
12746 2020-02-11 Tom Tromey <tom@tromey.com>
12747
12748 * dwarf2/frame.h (struct objfile): Don't forward declare.
12749
12750 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12751
12752 * cris-tdep.c (cris_supply_gregset): Change signature to match
12753 what struct regset expects.
12754 (cris_regset): New struct.
12755 (fetch_core_registers): Remove.
12756 (cris_iterate_over_regset_sections): New function.
12757 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
12758 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
12759
12760 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12761
12762 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
12763 registers.
12764
12765 2020-02-11 Christian Biesinger <cbiesinger@google.com>
12766
12767 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
12768
12769 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12770
12771 * configure: Re-generate.
12772
12773 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12774
12775 * configure: Re-generate.
12776
12777 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
12778
12779 * acinclude: Update warning.m4 path.
12780 * warning.m4: Move to gdbsupport.
12781
12782 2020-02-11 Tom Tromey <tromey@adacore.com>
12783
12784 * remote.c (remote_console_output): Update.
12785 * printcmd.c (printf_command): Update.
12786 * event-loop.c (gdb_wait_for_event): Update.
12787 * linux-nat.c (sigchld_handler): Update.
12788 * remote-sim.c (gdb_os_write_stdout): Update.
12789 (gdb_os_flush_stdout): Update.
12790 (gdb_os_flush_stderr): Update.
12791 (gdb_os_write_stderr): Update.
12792 * exceptions.c (print_exception): Update.
12793 * remote-fileio.c (remote_fileio_func_read): Update.
12794 (remote_fileio_func_write): Update.
12795 * tui/tui.c (tui_enable): Update.
12796 * tui/tui-interp.c (tui_interp::init): Update.
12797 * utils.c (init_page_info): Update.
12798 (putchar_unfiltered, fputc_unfiltered): Update.
12799 (gdb_flush): Update.
12800 (emit_style_escape): Update.
12801 (flush_wrap_buffer, fputs_maybe_filtered): Update.
12802 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
12803 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
12804 (stderr_file::write): Update.
12805 (stderr_file::puts): Update.
12806 * ui-file.h (ui_file_isatty, ui_file_write)
12807 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
12808 (ui_file_puts): Don't declare.
12809
12810 2020-02-10 Tom de Vries <tdevries@suse.de>
12811
12812 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
12813 sentinel to char *.
12814
12815 2020-02-09 Tom de Vries <tdevries@suse.de>
12816
12817 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
12818 filename if it matches "<artificial>".
12819
12820 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12821
12822 * windows-tdep.c (struct enum_value_name): New struct.
12823 (create_enum): New function.
12824 (windows_get_siginfo_type): Create and use enum types.
12825
12826 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
12827
12828 * NEWS: Mention $_siginfo support for Windows.
12829 * windows-nat.c (handle_exception): Set siginfo_er.
12830 (windows_nat_target::mourn_inferior): Reset siginfo_er.
12831 (windows_xfer_siginfo): New function.
12832 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
12833 * windows-tdep.c (struct windows_gdbarch_data): New struct.
12834 (init_windows_gdbarch_data): New function.
12835 (get_windows_gdbarch_data): New function.
12836 (windows_get_siginfo_type): New function.
12837 (windows_init_abi): Register windows_get_siginfo_type.
12838 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
12839
12840 2020-02-08 Tom Tromey <tom@tromey.com>
12841
12842 * dwarf2/read.c (class cutu_reader) <cutu_reader,
12843 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
12844 <keep>: Declare method.
12845 <m_keep>: Remove member.
12846 <~cutu_reader>: Remove.
12847 (cutu_reader::init_tu_and_read_dwo_dies): Update.
12848 (cutu_reader::cutu_reader): Update.
12849 (cutu_reader::keep): Rename from ~cutu_reader.
12850 (process_psymtab_comp_unit, build_type_psymtabs_1)
12851 (process_skeletonless_type_unit, load_partial_comp_unit)
12852 (load_full_comp_unit, dwarf2_read_addr_index)
12853 (read_signatured_type): Update.
12854
12855 2020-02-08 Tom Tromey <tom@tromey.com>
12856
12857 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
12858 "want_partial_unit" parameter.
12859 (process_psymtab_comp_unit): Change want_partial_unit to bool.
12860 Inline check for DW_TAG_partial_unit.
12861 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
12862
12863 2020-02-08 Tom Tromey <tom@tromey.com>
12864
12865 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
12866 read.c.
12867 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
12868 read.c.
12869
12870 2020-02-08 Tom Tromey <tom@tromey.com>
12871
12872 * dwarf2/read.c (read_address): Move to comp-unit.c.
12873 (dwarf2_rnglists_process, dwarf2_ranges_process)
12874 (read_attribute_value, dwarf_decode_lines_1)
12875 (var_decode_location, decode_locdesc): Update.
12876 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
12877 read.c. Remove "cu" parameter.
12878 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
12879 method.
12880
12881 2020-02-08 Tom Tromey <tom@tromey.com>
12882
12883 * dwarf2/read.c (read_attribute_value, read_indirect_string)
12884 (read_indirect_line_string): Update.
12885 * dwarf2/comp-unit.c (read_offset): Remove.
12886 (read_comp_unit_head): Update.
12887 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
12888 method.
12889 (read_offset): Don't declare.
12890
12891 2020-02-08 Tom Tromey <tom@tromey.com>
12892
12893 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
12894 * dwarf2/read.c (struct comp_unit_head): Move to
12895 dwarf2/comp-unit.h.
12896 (enum class rcuh_kind): Move to comp-unit.h.
12897 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
12898 (read_comp_unit_head, error_check_comp_unit_head)
12899 (read_and_check_comp_unit_head): Move to comp-unit.c.
12900 (read_offset, dwarf_unit_type_name): Likewise.
12901 (create_debug_type_hash_table, read_cutu_die_from_dwo)
12902 (cutu_reader::cutu_reader, read_call_site_scope)
12903 (find_partial_die, follow_die_offset): Update.
12904 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
12905
12906 2020-02-08 Tom Tromey <tom@tromey.com>
12907
12908 * dwarf2/read.c (read_offset_1): Move to leb.c.
12909 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
12910 (dwarf_decode_macro_bytes): Update.
12911 * dwarf2/leb.c (read_offset): Rename; move from read.c.
12912 * dwarf2/leb.h (read_offset): Declare.
12913
12914 2020-02-08 Tom Tromey <tom@tromey.com>
12915
12916 * dwarf2/read.c (dwarf2_section_size): Remove.
12917 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
12918 Update.
12919 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
12920
12921 2020-02-08 Tom Tromey <tom@tromey.com>
12922
12923 * dwarf2/read.c (read_initial_length): Move to leb.c.
12924 * dwarf2/leb.h (read_initial_length): Declare.
12925 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
12926 handle_nonstd parameter.
12927 * dwarf2/frame.c (read_initial_length): Remove.
12928 (decode_frame_entry_1): Update.
12929
12930 2020-02-08 Tom Tromey <tom@tromey.com>
12931
12932 * dwarf2/loc.c (dwarf2_find_location_expression)
12933 (dwarf_evaluate_loc_desc::get_tls_address)
12934 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
12935 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
12936 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
12937 (dwarf2_compile_property_to_c)
12938 (dwarf2_loc_desc_get_symbol_read_needs)
12939 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
12940 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
12941 (loclist_describe_location, loclist_tracepoint_var_ref)
12942 (loclist_generate_c_location): Update.
12943 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
12944 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
12945 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
12946 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
12947 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
12948 (dwarf2_per_cu_data::addr_size)
12949 (dwarf2_per_cu_data::ref_addr_size)
12950 (dwarf2_per_cu_data::text_offset)
12951 (dwarf2_per_cu_data::addr_type): Now methods.
12952 (per_cu_header_read_in): Make per_cu "const".
12953 (dwarf2_version): Remove.
12954 (dwarf2_per_cu_data::int_type): Now a method.
12955 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
12956 (set_die_type, read_array_type, read_subrange_index_type)
12957 (read_tag_string_type, read_subrange_type): Update.
12958 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
12959 offset_size, ref_addr_size, text_offset, addr_type, version,
12960 objfile, int_type, addr_sized_int_type>: Declare methods.
12961
12962 2020-02-08 Tom Tromey <tom@tromey.com>
12963
12964 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
12965 Move earlier.
12966
12967 2020-02-08 Tom Tromey <tom@tromey.com>
12968
12969 * dwarf2/read.h (dwarf_line_debug): Declare.
12970 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
12971 * dwarf2/read.c: Move line_header code to new files.
12972 (dwarf_line_debug): No longer static.
12973 * dwarf2/line-header.c: New file.
12974 * dwarf2/line-header.h: New file.
12975
12976 2020-02-08 Tom Tromey <tom@tromey.com>
12977
12978 * dwarf2/read.c (struct line_header) <file_full_name,
12979 file_file_name>: Return unique_xmalloc_ptr.
12980 (line_header::file_file_name): Update.
12981 (line_header::file_full_name): Update.
12982 (dw2_get_file_names_reader): Update.
12983 (macro_start_file): Update.
12984
12985 2020-02-08 Tom Tromey <tom@tromey.com>
12986
12987 * dwarf2/read.c (struct line_header) <file_full_name,
12988 file_file_name>: Declare methods.
12989 (dw2_get_file_names_reader): Update.
12990 (file_file_name): Now a method.
12991 (file_full_name): Likewise.
12992 (macro_start_file): Update.
12993
12994 2020-02-08 Tom Tromey <tom@tromey.com>
12995
12996 * dwarf2/read.c (dwarf_always_disassemble)
12997 (show_dwarf_always_disassemble): Move to loc.c.
12998 (_initialize_dwarf2_read): Move "always-disassemble" registration
12999 to loc.c.
13000 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
13001 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
13002 static.
13003 (show_dwarf_always_disassemble): Move from read.c.
13004 (_initialize_dwarf2loc): Move always-disassemble from read.c.
13005
13006 2020-02-08 Tom Tromey <tom@tromey.com>
13007
13008 * dwarf2/read.c (~dwarf2_per_objfile): Update.
13009 (create_quick_file_names_table): Return htab_up.
13010 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
13011 Update.
13012 * dwarf2/read.h (struct dwarf2_per_objfile)
13013 <quick_file_names_table>: Now htab_up.
13014
13015 2020-02-08 Tom Tromey <tom@tromey.com>
13016
13017 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
13018
13019 2020-02-08 Tom Tromey <tom@tromey.com>
13020
13021 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
13022 Rewrite.
13023 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
13024 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
13025 (abbrev_table::abbrev_table): No longer inline.
13026 (ABBREV_HASH_SIZE): Remove.
13027 (abbrev_table::m_abbrevs): Now an htab_up.
13028
13029 2020-02-08 Tom Tromey <tom@tromey.com>
13030
13031 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
13032 (cutu_reader): Update.
13033 (build_type_psymtabs_1): Update.
13034 * dwarf2/abbrev.c (abbrev_table::read): Rename.
13035 (abbrev_table::alloc_abbrev): Update.
13036 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
13037 (abbrev_table::read): New static method, renamed from
13038 abbrev_table_read_table.
13039 (abbrev_table::alloc_abbrev)
13040 (abbrev_table::add_abbrev): Now private.
13041 (abbrev_table::abbrev_table): Now private.
13042 (abbrev_table::m_abbrev_obstack): Now private. Rename.
13043
13044 2020-02-08 Tom Tromey <tom@tromey.com>
13045
13046 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
13047 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
13048 htab_up.
13049
13050 2020-02-08 Tom Tromey <tom@tromey.com>
13051
13052 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
13053 htab_up.
13054 (lookup_dwo_unit_in_dwp): Update.
13055 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
13056 on obstack.
13057
13058 2020-02-08 Tom Tromey <tom@tromey.com>
13059
13060 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
13061 obstack.
13062
13063 2020-02-08 Tom Tromey <tom@tromey.com>
13064
13065 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
13066 line_header_hash.
13067 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
13068 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
13069 Change type to htab_up.
13070
13071 2020-02-08 Tom Tromey <tom@tromey.com>
13072
13073 * dwarf2/read.c (allocate_type_unit_groups_table): Return
13074 htab_up. Don't allocate on obstack.
13075 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
13076 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
13077 Change type to htab_up.
13078
13079 2020-02-08 Tom Tromey <tom@tromey.com>
13080
13081 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
13082 Change type to htab_up.
13083 * dwarf2/read.c (create_signatured_type_table_from_index)
13084 (create_signatured_type_table_from_debug_names)
13085 (create_all_type_units, add_type_unit)
13086 (lookup_dwo_signatured_type, lookup_signatured_type)
13087 (process_skeletonless_type_unit): Update.
13088 (create_debug_type_hash_table, create_debug_types_hash_table):
13089 Change type of types_htab.
13090 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
13091 htab_up. Don't allocate on obstack.
13092 (create_cus_hash_table): Change type of cus_htab parameter.
13093 (struct dwo_file) <cus, tus>: Now htab_up.
13094 (lookup_dwo_signatured_type, lookup_dwo_cutu)
13095 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
13096 (queue_and_load_all_dwo_tus): Update.
13097 * dwarf2/index-write.c (write_gdbindex): Update.
13098 (write_debug_names): Update.
13099
13100 2020-02-08 Tom Tromey <tom@tromey.com>
13101
13102 * dwarf2/read.h (struct dwarf2_queue_item): Move from
13103 dwarf2/read.c. Remove "next" member. Add constructor ntad
13104 destructor.
13105 (struct dwarf2_per_objfile) <queue>: New member.
13106 * dwarf2/read.c (struct dwarf2_queue_item): Move to
13107 dwarf2/read.h.
13108 (dwarf2_queue, dwarf2_queue_tail): Remove.
13109 (class dwarf2_queue_guard): Add parameter to constructor. Use
13110 DISABLE_COPY_AND_ASSIGN.
13111 <m_per_objfile>: New member.
13112 <~dwarf2_queue_guard>: Rewrite.
13113 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
13114 Update.
13115 (~dwarf2_queue_item): New.
13116
13117 2020-02-08 Tom Tromey <tom@tromey.com>
13118
13119 * dwarf2/read.c (struct die_info) <has_children>: New member.
13120 (dw2_get_file_names_reader): Remove has_children.
13121 (dw2_get_file_names): Update.
13122 (read_cutu_die_from_dwo): Remove has_children.
13123 (cutu_reader::init_tu_and_read_dwo_dies)
13124 (cutu_reader::cutu_reader): Update.
13125 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
13126 Remove has_children.
13127 (build_type_psymtabs_1, process_skeletonless_type_unit)
13128 (load_partial_comp_unit, load_full_comp_unit): Update.
13129 (create_dwo_cu_reader): Remove has_children.
13130 (create_cus_hash_table, read_die_and_children): Update.
13131 (read_full_die_1,read_full_die): Remove has_children.
13132 (read_signatured_type): Update.
13133 (class cutu_reader) <has_children>: Remove.
13134
13135 2020-02-08 Tom Tromey <tom@tromey.com>
13136
13137 * dwarf2/expr.c: Rename from dwarf2expr.c.
13138 * dwarf2/expr.h: Rename from dwarf2expr.h.
13139 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
13140 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
13141 * dwarf2/frame.c: Rename from dwarf2-frame.c.
13142 * dwarf2/frame.h: Rename from dwarf2-frame.h.
13143 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
13144 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
13145 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
13146 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
13147 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
13148 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
13149 * dwarf2/loc.c: Rename from dwarf2loc.c.
13150 * dwarf2/loc.h: Rename from dwarf2loc.h.
13151 * dwarf2/read.c: Rename from dwarf2read.c.
13152 * dwarf2/read.h: Rename from dwarf2read.h.
13153 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
13154 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
13155 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
13156 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
13157 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
13158 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
13159 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
13160 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
13161 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
13162 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
13163 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
13164 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
13165 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
13166 Update.
13167 * Makefile.in (COMMON_SFILES): Update.
13168 (HFILES_NO_SRCDIR): Update.
13169
13170 2020-02-08 Tom Tromey <tom@tromey.com>
13171
13172 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
13173 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
13174
13175 2020-02-08 Tom Tromey <tom@tromey.com>
13176
13177 * dwarf2read.h (struct die_info): Don't declare.
13178
13179 2020-02-08 Tom Tromey <tom@tromey.com>
13180
13181 * dwarf2read.h (die_info_ptr): Remove typedef.
13182
13183 2020-02-08 Tom Tromey <tom@tromey.com>
13184
13185 * dwarf2read.c (read_call_site_scope)
13186 (handle_data_member_location, dwarf2_add_member_fn)
13187 (mark_common_block_symbol_computed, read_common_block)
13188 (attr_to_dynamic_prop, partial_die_info::read)
13189 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
13190 (dwarf2_symbol_mark_computed, set_die_type): Update.
13191 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
13192 method.
13193 (attr_form_is_block): Don't declare.
13194 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
13195
13196 2020-02-08 Tom Tromey <tom@tromey.com>
13197
13198 * dwarf2read.c (dwarf2_find_base_address, )
13199 (read_call_site_scope, rust_containing_type)
13200 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
13201 (handle_data_member_location, dwarf2_add_member_fn)
13202 (get_alignment, read_structure_type, process_structure_scope)
13203 (mark_common_block_symbol_computed, read_common_block)
13204 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
13205 (partial_die_info::read, read_attribute_value, new_symbol)
13206 (lookup_die_type, dwarf2_get_ref_die_offset)
13207 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
13208 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
13209 (dwarf2_symbol_mark_computed): Update.
13210 * dwarf2/attribute.h (struct attribute) <value_as_address,
13211 form_is_section_offset, form_is_constant, form_is_ref>: Declare
13212 methods.
13213 (value_as_address, attr_form_is_section_offset)
13214 (attr_form_is_constant, attr_form_is_ref): Don't declare.
13215 * dwarf2/attribute.c (attribute::value_as_address)
13216 (attribute::form_is_section_offset, attribute::form_is_constant)
13217 (attribute::form_is_ref): Now methods.
13218
13219 2020-02-08 Tom Tromey <tom@tromey.com>
13220
13221 * dwarf2read.c (struct attribute, DW_STRING)
13222 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
13223 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
13224 (attr_form_is_block, attr_form_is_section_offset)
13225 (attr_form_is_constant, attr_form_is_ref): Move.
13226 * dwarf2/attribute.h: New file.
13227 * dwarf2/attribute.c: New file, from dwarf2read.c.
13228 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
13229
13230 2020-02-08 Tom Tromey <tom@tromey.com>
13231
13232 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
13233 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
13234 Move.
13235 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
13236 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
13237 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
13238 abbrev.c.
13239 * dwarf2/abbrev.h: New file.
13240 * dwarf2/abbrev.c: New file, from dwarf2read.c.
13241 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
13242
13243 2020-02-08 Tom Tromey <tom@tromey.com>
13244
13245 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
13246 (dwarf2_section_size, dwarf2_get_section_info)
13247 (create_signatured_type_table_from_debug_names)
13248 (create_addrmap_from_aranges, read_debug_names_from_section)
13249 (get_gdb_index_contents_from_section, read_comp_unit_head)
13250 (error_check_comp_unit_head, read_abbrev_offset)
13251 (create_debug_type_hash_table, init_cu_die_reader)
13252 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
13253 (read_comp_units_from_section, create_cus_hash_table)
13254 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
13255 (create_dwp_v2_section, dwarf2_rnglists_process)
13256 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
13257 (abbrev_table_read_table, read_indirect_string_at_offset_from)
13258 (read_indirect_string_from_dwz, read_addr_index_1)
13259 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
13260 (dwarf_decode_macro_bytes, dwarf_decode_macros)
13261 (fill_in_loclist_baton): Update.
13262 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
13263 get_containing_section, get_bfd_owner, get_bfd_section,
13264 get_file_name, get_id, get_flags, empty, read>: Declare methods.
13265 (dwarf2_read_section, get_section_name, get_section_file_name)
13266 (get_containing_section, get_section_bfd_owner)
13267 (get_section_bfd_section, get_section_name, get_section_file_name)
13268 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
13269 declare.
13270 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
13271 (dwarf2_section_info::get_bfd_owner)
13272 (dwarf2_section_info::get_bfd_section)
13273 (dwarf2_section_info::get_name)
13274 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
13275 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
13276 (dwarf2_section_info::read): Now methods.
13277 * dwarf-index-write.c (class debug_names): Update.
13278
13279 2020-02-08 Tom Tromey <tom@tromey.com>
13280
13281 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
13282 Move to dwarf2/section.h.
13283 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
13284 (get_section_bfd_section, get_section_name)
13285 (get_section_file_name, get_section_id, get_section_flags)
13286 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
13287 dwarf2/section.c.
13288 * dwarf2/section.h: New file.
13289 * dwarf2/section.c: New file, from dwarf2read.c.
13290 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
13291
13292 2020-02-08 Tom Tromey <tom@tromey.com>
13293
13294 * dwarf2read.h (read_unsigned_leb128): Don't declare.
13295 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
13296 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
13297 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
13298 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
13299 * dwarf2/leb.h: New file, from dwarf2read.c.
13300 * dwarf2/leb.c: New file, from dwarf2read.c.
13301 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
13302 Remove.
13303 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
13304 (COMMON_SFILES): Add dwarf2/leb.c.
13305
13306 2020-02-08 Joel Brobecker <brobecker@adacore.com>
13307
13308 GDB 9.1 released.
13309
13310 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13311
13312 PR gdb/25190:
13313 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
13314 * gdb/remote.c (remote_console_output): Update.
13315 * gdb/ui-file.c (fputs_unfiltered): Rename to...
13316 (ui_file_puts): ...this.
13317 * gdb/ui-file.h (ui_file_puts): Add declaration.
13318 * gdb/utils.c (emit_style_escape): Update.
13319 (flush_wrap_buffer): Update.
13320 (fputs_maybe_filtered): Update.
13321 (fputs_unfiltered): Add function.
13322
13323 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
13324
13325 * gdb/event-loop.c (gdb_wait_for_event): Update.
13326 * gdb/printcmd.c (printf_command): Update.
13327 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
13328 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
13329 (gdb_os_flush_stderr): Update.
13330 * gdb/remote.c (remote_console_output): Update.
13331 * gdb/ui-file.c (gdb_flush): Rename to...
13332 (ui_file_flush): ...this.
13333 (stderr_file::write): Update.
13334 (stderr_file::puts): Update.
13335 * gdb/ui-file.h (gdb_flush): Rename to...
13336 (ui_file_flush): ...this.
13337 * gdb/utils.c (gdb_flush): Add function.
13338 * gdb/utils.h (gdb_flush): Add declaration.
13339
13340 2020-02-07 Tom Tromey <tromey@adacore.com>
13341
13342 PR breakpoints/24915:
13343 * source.c (find_and_open_source): Do not check basenames_may_differ.
13344
13345 2020-02-07 Tom Tromey <tom@tromey.com>
13346
13347 * README: Update gdbserver documentation.
13348 * gdbserver: Move to top level.
13349 * configure.tgt (build_gdbserver): Remove.
13350 * configure.ac: Remove --enable-gdbserver.
13351 * configure: Rebuild.
13352 * Makefile.in (distclean): Don't mention gdbserver.
13353
13354 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13355
13356 * source-cache.c (source_cache::ensure): Surround
13357 get_plain_source_lines with a try/catch.
13358 (source_cache::get_line_charpos): Get rid of try/catch
13359 and only check for the return value of "ensure".
13360 * tui/tui-source.c (tui_source_window::set_contents):
13361 Simplify "nlines" calculation.
13362
13363 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
13364
13365 * MAINTAINERS (Write After Approval): Add myself.
13366
13367 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13368
13369 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
13370 function call.
13371
13372 2020-02-05 Christian Biesinger <cbiesinger@google.com>
13373
13374 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
13375
13376 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
13377
13378 * nat/riscv-linux-tdesc.h: New file.
13379 * nat/riscv-linux-tdesc.c: New file, taking code from...
13380 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
13381 ... here.
13382 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
13383 NATDEPFILES.
13384
13385 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
13386
13387 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
13388 we don't set the fake simulator ptid to the null_ptid.
13389
13390 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
13391
13392 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
13393 * gdbthread.h (class thread_info) <resumed>: Likewise.
13394 * infrun.c (resume_1): Likewise.
13395 (proceed): Likewise.
13396 (infrun_thread_stop_requested): Likewise.
13397 (stop_all_threads): Likewise.
13398 (handle_inferior_event): Likewise.
13399 (restart_threads): Likewise.
13400 (finish_step_over): Likewise.
13401 (keep_going_stepped_thread): Likewise.
13402 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
13403 (linux_handle_extended_wait): Likewise.
13404 * record-btrace.c (get_thread_current_frame_id): Likewise.
13405 * record-full.c (record_full_wait_1): Likewise.
13406 * remote.c (remote_target::process_initial_stop_replies): Likewise.
13407 * target.c (target_resume): Likewise.
13408 * thread.c (set_running_thread): Likewise.
13409
13410 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13411
13412 * f-valprint.c (f77_print_array_1): Changed datatype of index
13413 variable to LONGEST from int to enable it to contain bound
13414 values correctly.
13415
13416 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
13417
13418 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
13419 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
13420 offsets according to FLEN determined.
13421 (riscv_linux_nat_target::read_description): Determine FLEN
13422 dynamically.
13423 (riscv_linux_nat_target::fetch_registers): Size regset buffer
13424 according to FLEN determined.
13425 (riscv_linux_nat_target::store_registers): Likewise.
13426
13427 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13428
13429 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13430 when reg->group is empty and reggroup is not.
13431
13432 2020-01-31 Tom Tromey <tromey@adacore.com>
13433
13434 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
13435 Call beneath target's mourn_inferior after unpushing.
13436
13437 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13438
13439 PR tui/9765
13440 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
13441 have enough lines to fill the screen, still return the lowest
13442 address we found.
13443
13444 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
13445
13446 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
13447 '-', '<', and '>' commands.
13448
13449 2020-01-29 Pedro Alves <palves@redhat.com>
13450 Sergio Durigan Junior <sergiodj@redhat.com>
13451
13452 * infcmd.c (construct_inferior_arguments): Assert that
13453 'argc' is greater than 0.
13454
13455 2020-01-29 Luis Machado <luis.machado@linaro.org>
13456
13457 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
13458 (BRK_INSN_MASK): Define to 0xd4200000.
13459 (aarch64_program_breakpoint_here_p): New function.
13460 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
13461 * arch-utils.c (default_program_breakpoint_here_p): Moved from
13462 breakpoint.c.
13463 * arch-utils.h (default_program_breakpoint_here_p): Moved from
13464 breakpoint.h
13465 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
13466 call gdbarch_program_breakpoint_here_p.
13467 (program_breakpoint_here): Moved to arch-utils.c, renamed to
13468 default_program_breakpoint_here_p, changed return type to bool and
13469 simplified.
13470 * breakpoint.h (program_breakpoint_here): Moved prototype to
13471 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
13472 return type to bool.
13473 * gdbarch.c: Regenerate.
13474 * gdbarch.h: Regenerate.
13475 * gdbarch.sh (program_breakpoint_here_p): New method.
13476 * infrun.c (handle_signal_stop): Call
13477 gdbarch_program_breakpoint_here_p.
13478
13479 2020-01-26 Tom Tromey <tom@tromey.com>
13480
13481 * ctfread.c (struct ctf_fp_info): Reindent.
13482 (_initialize_ctfread): Remove.
13483
13484 2020-01-26 Tom Tromey <tom@tromey.com>
13485
13486 * psymtab.c (partial_map_expand_apply)
13487 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
13488 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
13489 (psym_print_stats, psym_expand_symtabs_for_function)
13490 (psym_map_symbol_filenames, psym_map_matching_symbols)
13491 (psym_expand_symtabs_matching)
13492 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
13493 (maintenance_check_psymtabs): Use new methods.
13494 * psympriv.h (struct partial_symtab) <readin_p,
13495 get_compunit_symtab>: New methods.
13496 <readin, compunit_symtab>: Remove members.
13497 (struct standard_psymtab): New.
13498 (struct legacy_psymtab): Derive from standard_psymtab.
13499 * dwarf2read.h (struct dwarf2_psymtab): Derive from
13500 standard_psymtab.
13501 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
13502
13503 2020-01-26 Tom Tromey <tom@tromey.com>
13504
13505 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
13506 read_dependencies. Add assert.
13507 * psymtab.c (partial_symtab::read_dependencies): New method.
13508 * psympriv.h (struct partial_symtab) <read_dependencies>: New
13509 method.
13510 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
13511 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
13512 read_dependencies.
13513 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
13514 Add assert.
13515
13516 2020-01-26 Tom Tromey <tom@tromey.com>
13517
13518 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
13519 Call expand_psymtab.
13520 (xcoff_read_symtab): Call expand_psymtab.
13521 (xcoff_start_psymtab, xcoff_end_psymtab): Set
13522 legacy_expand_psymtab.
13523 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
13524 method.
13525 (struct legacy_psymtab) <expand_psymtab>: Implement.
13526 <legacy_expand_psymtab>: New member.
13527 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
13528 (parse_partial_symbols): Set legacy_expand_psymtab.
13529 (psymtab_to_symtab_1): Change argument order. Call
13530 expand_psymtab.
13531 (new_psymtab): Set legacy_expand_psymtab.
13532 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
13533 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
13534 expand_psymtab.
13535 (dwarf2_psymtab::expand_psymtab): Rename from
13536 psymtab_to_symtab_1. Call expand_psymtab.
13537 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
13538 (dbx_end_psymtab): Likewise.
13539 (dbx_psymtab_to_symtab_1): Change argument order. Call
13540 expand_psymtab.
13541 (dbx_read_symtab): Call expand_psymtab.
13542 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
13543 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
13544 (ctf_psymtab::read_symtab): Call expand_psymtab.
13545
13546 2020-01-26 Tom Tromey <tom@tromey.com>
13547
13548 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
13549 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
13550 messages.
13551 * mdebugread.c (mdebug_read_symtab): Remove prints.
13552 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
13553 assert.
13554 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
13555
13556 2020-01-26 Tom Tromey <tom@tromey.com>
13557
13558 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
13559 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
13560 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
13561 legacy_symtab.
13562 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
13563 * psymtab.c (psymtab_to_symtab): Call method.
13564 (dump_psymtab): Update.
13565 * psympriv.h (struct partial_symtab): Add virtual destructor.
13566 <read_symtab>: New method.
13567 (struct legacy_symtab): New.
13568 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
13569 (struct pst_map) <pst>: Now a legacy_psymtab.
13570 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
13571 (new_psymtab): Use legacy_psymtab.
13572 * dwarf2read.h (struct dwarf2_psymtab): New.
13573 (struct dwarf2_per_cu_data) <psymtab>: Use it.
13574 * dwarf2read.c (dwarf2_create_include_psymtab)
13575 (dwarf2_build_include_psymtabs, create_type_unit_group)
13576 (create_partial_symtab, process_psymtab_comp_unit_reader)
13577 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
13578 (set_partial_user): Use dwarf2_psymtab.
13579 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
13580 (psymtab_to_symtab_1, process_full_comp_unit)
13581 (process_full_type_unit, dwarf2_ranges_read)
13582 (dwarf2_get_pc_bounds, psymtab_include_file_name)
13583 (dwarf_decode_lines): Use dwarf2_psymtab.
13584 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
13585 (add_address_entry_worker, write_one_signatured_type)
13586 (recursively_count_psymbols, recursively_write_psymbols)
13587 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
13588 (write_debug_names): Likewise.
13589 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
13590 <pst>: Now a legacy_psymtab.
13591 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
13592 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
13593 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
13594 * ctfread.c (struct ctf_psymtab): New.
13595 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
13596 ctf_psymtab.
13597 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
13598 (create_partial_symtab): Return a ctf_psymtab.
13599 (scan_partial_symbols): Update.
13600
13601 2020-01-26 Tom Tromey <tom@tromey.com>
13602
13603 * xcoffread.c (xcoff_start_psymtab): Use new.
13604 * psymtab.c (partial_symtab::partial_symtab): New constructor,
13605 renamed from start_psymtab_common.
13606 * psympriv.h (struct partial_symtab): Add new constructor.
13607 (start_psymtab_common): Don't declare.
13608 * mdebugread.c (parse_partial_symbols): Use new.
13609 * dwarf2read.c (create_partial_symtab): Use new.
13610 * dbxread.c (start_psymtab): Use new.
13611 * ctfread.c (create_partial_symtab): Use new.
13612
13613 2020-01-26 Tom Tromey <tom@tromey.com>
13614
13615 * xcoffread.c (xcoff_end_psymtab): Use new.
13616 * psymtab.c (start_psymtab_common): Use new.
13617 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
13618 Update.
13619 * psympriv.h (struct partial_symtab): Add parameters to
13620 constructor. Don't inline.
13621 (allocate_psymtab): Don't declare.
13622 * mdebugread.c (new_psymtab): Use new.
13623 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
13624 * dbxread.c (dbx_end_psymtab): Use new.
13625
13626 2020-01-26 Tom Tromey <tom@tromey.com>
13627
13628 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
13629 allocate_psymtab. Update documentation.
13630 * psymtab.c (psymtab_storage::install_psymtab): Rename from
13631 allocate_psymtab. Do not use new.
13632 (allocate_psymtab): Use new. Update.
13633
13634 2020-01-26 Tom Tromey <tom@tromey.com>
13635
13636 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
13637 * psymtab.c (psym_print_stats): Update.
13638 * psympriv.h (struct partial_symtab) <readin,
13639 psymtabs_addrmap_supported, anonymous>: Now bool.
13640 * mdebugread.c (psymtab_to_symtab_1): Update.
13641 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
13642 (build_type_psymtabs_reader, psymtab_to_symtab_1)
13643 (process_full_comp_unit, process_full_type_unit): Update.
13644 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
13645 * ctfread.c (psymtab_to_symtab): Update.
13646
13647 2020-01-26 Tom Tromey <tom@tromey.com>
13648
13649 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
13650 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
13651 * psymtab.c (psymtab_storage): Delete psymtabs.
13652 (psymtab_storage::allocate_psymtab): Use new.
13653 (psymtab_storage::discard_psymtab): Use delete.
13654 * psympriv.h (struct partial_symtab): Add constructor and
13655 initializers.
13656
13657 2020-01-26 Tom Tromey <tom@tromey.com>
13658
13659 * machoread.c: Do not include psympriv.h.
13660
13661 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13662
13663 * NEWS: Mention the new option and the set/show commands.
13664
13665 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13666
13667 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
13668 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
13669 (validate_exec_file): New variables, enums, functions.
13670 (exec_file_locate_attach, print_section_info): Style the filenames.
13671 (_initialize_exec): Install show_exec_file_mismatch_command and
13672 set_exec_file_mismatch_command.
13673 * gdbcore.h (validate_exec_file): Declare.
13674 * infcmd.c (attach_command): Call validate_exec_file.
13675 * remote.c ( remote_target::remote_add_inferior): Likewise.
13676
13677 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13678
13679 * frame.c (find_frame_sal): Move call to get_next_frame into more
13680 inner scope.
13681 * inline-frame.c (inilne_state) <inline_state>: Update argument
13682 types.
13683 (inilne_state) <skipped_symbol>: Rename to...
13684 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
13685 (skip_inline_frames): Build vector of skipped symbols and use this
13686 to reate the inline_state.
13687 (inline_skipped_symbol): Add a comment and some assertions, fetch
13688 skipped symbol from the list.
13689
13690 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13691
13692 * buildsym.c (lte_is_less_than): Delete.
13693 (buildsym_compunit::end_symtab_with_blockvector): Create local
13694 lambda function to sort line table entries, and use
13695 std::stable_sort instead of std::sort.
13696 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
13697 markers when looking for a previous line.
13698
13699 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13700
13701 * dwarf2read.c (lnp_state_machine::record_line): Include
13702 end_sequence parameter in debug print out. Record the line if we
13703 are at an end_sequence marker even if it's not the start of a
13704 statement.
13705 * symmisc.c (maintenance_print_one_line_table): Print end of
13706 sequence markers with 'END' not '0'.
13707
13708 2020-01-24 Pedro Alves <palves@redhat.com>
13709
13710 PR gdb/25410
13711 * thread.c (scoped_restore_current_thread::restore): Use
13712 switch_to_inferior_no_thread.
13713 * exec.c: Include "progspace-and-thread.h".
13714 (add_target_sections, remove_target_sections):
13715 scoped_restore_current_pspace_and_thread instead of
13716 scoped_restore_current_thread.
13717 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
13718 and aspace to the inferior before calling clone_program_space.
13719 Remove stale comment.
13720
13721 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13722
13723 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
13724 (arm_netbsd_nat_target::fetch_registers): ...this.
13725 (arm_nbsd_nat_target::store_registers): Rename to...
13726 (arm_netbsd_nat_target::store_registers): ...this.
13727
13728 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13729
13730 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13731 register_t.
13732
13733 2020-01-24 Christian Biesinger <cbiesinger@google.com>
13734
13735 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
13736 Update comment.
13737 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
13738 Likewise.
13739 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
13740 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
13741 the correct replacement (iterate_over_regset_sections).
13742 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
13743 Update comment.
13744
13745 2020-01-24 Graham Markall <graham.markall@embecosm.com>
13746
13747 PR gdb/23718
13748 * gdb/python/python.c (execute_gdb_command): Call
13749 async_enable_stdin in catch block.
13750
13751 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13752
13753 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
13754 SWITCH_THRU_ALL_UIS.
13755
13756 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
13757
13758 PR tui/9765
13759 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
13760 comment, add extra parameter, and update to store previous symbol
13761 when appropriate.
13762 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
13763 add extra parameter.
13764 * tui/tui-disasm.c (tui_disassemble): Update header comment,
13765 remove unneeded parameter, add try/catch around gdb_print_insn,
13766 rewrite to add items to asm_lines vector.
13767 (tui_find_backward_disassembly_start_address): New function.
13768 (tui_find_disassembly_address): Updated throughout.
13769 (tui_disasm_window::set_contents): Update for changes to
13770 tui_disassemble.
13771 (tui_disasm_window::do_scroll_vertical): No need to adjust the
13772 number of lines to scroll.
13773
13774 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
13775
13776 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
13777 (SECT_OFF_DATA): Likewise.
13778 (SECT_OFF_RODATA): Likewise.
13779 (SECT_OFF_TEXT): Likewise.
13780 (SECT_OFF_BSS): Likewise.
13781 (struct objfile) <text_section_offset, data_section_offset>: New
13782 methods.
13783 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
13784 objfile::text_section_offset.
13785 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
13786 * coffread.c (coff_symtab_read): Likewise.
13787 (enter_linenos): Likewise.
13788 (process_coff_symbol): Likewise.
13789 * ctfread.c (get_objfile_text_range): Likewise.
13790 * dtrace-probe.c (dtrace_probe::get_relocated_address):
13791 Use objfile::data_section_offset.
13792 * dwarf2-frame.c (execute_cfa_program): Use
13793 objfile::text_section_offset.
13794 (dwarf2_frame_find_fde): Likewise.
13795 * dwarf2read.c (create_addrmap_from_index): Likewise.
13796 (create_addrmap_from_aranges): Likewise.
13797 (dw2_find_pc_sect_compunit_symtab): Likewise.
13798 (process_psymtab_comp_unit_reader): Likewise.
13799 (add_partial_symbol): Likewise.
13800 (add_partial_subprogram): Likewise.
13801 (process_full_comp_unit): Likewise.
13802 (read_file_scope): Likewise.
13803 (read_func_scope): Likewise.
13804 (read_lexical_block_scope): Likewise.
13805 (read_call_site_scope): Likewise.
13806 (dwarf2_rnglists_process): Likewise.
13807 (dwarf2_ranges_process): Likewise.
13808 (dwarf2_ranges_read): Likewise.
13809 (dwarf_decode_lines_1): Likewise.
13810 (new_symbol): Likewise.
13811 (dwarf2_fetch_die_loc_sect_off): Likewise.
13812 (dwarf2_per_cu_text_offset): Likewise.
13813 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
13814 * hppa-tdep.c (read_unwind_info): Likewise.
13815 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
13816 * psympriv.h (struct partial_symtab): Likewise.
13817 * psymtab.c (find_pc_sect_psymtab): Likewise.
13818 * solib-svr4.c (enable_break): Likewise.
13819 * stap-probe.c (relocate_address): Use
13820 objfile::data_section_offset.
13821 * xcoffread.c (enter_line_range): Use
13822 objfile::text_section_offset.
13823 (read_xcoff_symtab): Likewise.
13824
13825 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13826
13827 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
13828 declaration to narrower scopes.
13829
13830 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
13831
13832 * darwin-nat.h (struct darwin_exception_msg, enum
13833 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
13834 Move up.
13835 (class darwin_nat_target) <wait_1, check_new_threads,
13836 decode_exception_message, decode_message, stop_inferior,
13837 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
13838 * darwin-nat.c (darwin_check_new_threads): Rename to...
13839 (darwin_nat_target::check_new_threads): ... this.
13840 (darwin_suspend_inferior_it): Remove.
13841 (darwin_decode_exception_message): Rename to...
13842 (darwin_nat_target::decode_exception_message): ... this.
13843 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
13844 (darwin_decode_message): Rename to...
13845 (darwin_nat_target::decode_message): ... this.
13846 (cancel_breakpoint): Rename to...
13847 (darwin_nat_target::cancel_breakpoint): ... this.
13848 (darwin_wait): Rename to...
13849 (darwin_nat_target::wait_1): ... this. Use range-based for loop
13850 instead of iterate_over_inferiors.
13851 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
13852 (darwin_stop_inferior): Rename to...
13853 (darwin_nat_target::stop_inferior): ... this.
13854 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
13855 (darwin_init_thread_list): Rename to...
13856 (darwin_nat_target::init_thread_list): ... this.
13857 (darwin_ptrace_him): Rename to...
13858 (darwin_nat_target::ptrace_him): ... this.
13859 (darwin_nat_target::create_inferior): Pass lambda function to
13860 fork_inferior.
13861 (darwin_nat_target::detach): Call stop_inferior instead of
13862 darwin_stop_inferior.
13863 * fork-inferior.h (fork_inferior): Change init_trace_fun
13864 parameter to gdb::function_view.
13865 * fork-inferior.c (fork_inferior): Likewise.
13866
13867 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
13868
13869 * i386-cygwin-tdep.c (core_process_module_section): Update.
13870 * windows-nat.c (struct lm_info_windows): Add text_offset.
13871 (windows_xfer_shared_libraries): Update.
13872 * windows-tdep.c (windows_xfer_shared_library):
13873 Add text_offset_cached argument.
13874 * windows-tdep.h (windows_xfer_shared_library): Update.
13875
13876 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13877
13878 * gdbarch.sh: Add declaration for _initialize_gdbarch.
13879
13880 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13881
13882 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
13883 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
13884 replace with range-based for.
13885 (gdbsim_interrupt_inferior): Remove.
13886 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
13887 with a range-based for. Inline code from
13888 gdbsim_interrupt_inferior.
13889
13890 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
13891
13892 * infrun.c (proceed): Fix indentation.
13893
13894 2020-01-21 Tom Tromey <tromey@adacore.com>
13895
13896 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
13897 * python/python.c (python_extension_ops): Update.
13898 (gdbpy_colorize): New function.
13899 * python/lib/gdb/__init__.py (colorize): New function.
13900 * extension.h (ext_lang_colorize): Declare.
13901 * extension.c (ext_lang_colorize): New function.
13902 * extension-priv.h (struct extension_language_ops) <colorize>: New
13903 member.
13904 * cli/cli-style.c (_initialize_cli_style): Update help text.
13905
13906 2020-01-21 Luis Machado <luis.machado@linaro.org>
13907
13908 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
13909 <cond>: Change type to bool.
13910 (aarch64_displaced_step_b_cond): Update cond to use bool type.
13911 (aarch64_displaced_step_cb): Likewise.
13912 (aarch64_displaced_step_tb): Likewise.
13913
13914 2020-01-21 Luis Machado <luis.machado@linaro.org>
13915
13916 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
13917 output.
13918
13919 2020-01-21 Luis Machado <luis.machado@linaro.org>
13920
13921 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
13922 <pc_adjust>: Adjust the documentation.
13923 (aarch64_displaced_step_fixup): Check if PC really moved before
13924 adjusting it.
13925
13926 2020-01-19 Tom Tromey <tom@tromey.com>
13927
13928 * disasm.c (~gdb_disassembler): New destructor.
13929 (gdb_buffered_insn_length): Call disassemble_free_target.
13930 * disasm.h (class gdb_disassembler): Declare destructor. Use
13931 DISABLE_COPY_AND_ASSIGN.
13932
13933 2020-01-19 Tom Tromey <tom@tromey.com>
13934
13935 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
13936 (die_reader_func_ftype): Remove.
13937 (cutu_reader): New class.
13938 (dw2_get_file_names_reader): Remove "data" parameter.
13939 (dw2_get_file_names): Use cutu_reader.
13940 (create_debug_type_hash_table): Update.
13941 (read_cutu_die_from_dwo): Update comment.
13942 (lookup_dwo_unit): Add dwo_name parameter.
13943 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
13944 die_reader_func_ftype and data parameters.
13945 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
13946 Remove die_reader_func_ftype and data parameters.
13947 (~cutu_reader): New; from init_cutu_and_read_dies.
13948 (cutu_reader::cutu_reader): Rename from
13949 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
13950 and data parameters.
13951 (init_cutu_and_read_dies_simple): Remove.
13952 (struct process_psymtab_comp_unit_data): Remove.
13953 (process_psymtab_comp_unit_reader): Remove data parameter; add
13954 want_partial_unit and pretend_language parameters.
13955 (process_psymtab_comp_unit): Use cutu_reader.
13956 (build_type_psymtabs_reader): Remove data parameter.
13957 (build_type_psymtabs_1): Use cutu_reader.
13958 (process_skeletonless_type_unit): Likewise.
13959 (load_partial_comp_unit_reader): Remove.
13960 (load_partial_comp_unit): Use cutu_reader.
13961 (load_full_comp_unit_reader): Remove.
13962 (load_full_comp_unit): Use cutu_reader.
13963 (struct create_dwo_cu_data): Remove.
13964 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
13965 dwo_unit parameters.
13966 (create_cus_hash_table): Use cutu_reader.
13967 (struct dwarf2_read_addr_index_data): Remove.
13968 (dwarf2_read_addr_index_reader): Remove.
13969 (dwarf2_read_addr_index): Use cutu_reader.
13970 (read_signatured_type_reader): Remove.
13971 (read_signatured_type): Use cutu_reader.
13972
13973 2020-01-19 Tom Tromey <tom@tromey.com>
13974
13975 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
13976 * tui/tui-wingeneral.h (class tui_suppress_output): New.
13977 (tui_wrefresh): Declare.
13978 * tui/tui-wingeneral.c (suppress_output): New global.
13979 (tui_suppress_output, ~tui_suppress_output): New constructor and
13980 destructor.
13981 (tui_wrefresh): New function.
13982 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
13983 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
13984 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
13985 method.
13986 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
13987 tui_wrefresh.
13988 (tui_data_window::no_refresh): New method.
13989 (tui_data_item_window::refresh_window): Call tui_wrefresh.
13990 (tui_reg_command): Use tui_suppress_output
13991 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
13992 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
13993 method.
13994 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
13995
13996 2020-01-19 Tom Tromey <tom@tromey.com>
13997
13998 * tui/tui-winsource.c (tui_update_source_windows_with_line):
13999 Handle case where symtab is null.
14000
14001 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
14002
14003 * linux-fork.c (one_fork_p): Simplify.
14004
14005 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14006
14007 * top.c (struct qt_args): Remove.
14008 (kill_or_detach): Change return type to void, replace `void *`
14009 parameter with a proper one.
14010 (print_inferior_quit_action): Likewise.
14011 (quit_confirm): Use range-based for loop to iterate over inferiors.
14012 (quit_force): Likewise.
14013
14014 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14015
14016 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
14017 `void *` parameter with proper parameters.
14018 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
14019 (print_one_inferior): Change return type to void, replace `void *`
14020 parameter with proper parameters.
14021 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
14022 inferiors.
14023 (get_other_inferior): Remove.
14024 (mi_cmd_remove_inferior): Use range-based loop to iterate over
14025 inferiors.
14026
14027 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14028
14029 * mi/mi-interp.c (report_initial_inferior): Remove.
14030 (mi_interp::init): Use range-based for to iterate over inferiors.
14031
14032 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
14033
14034 * python/py-inferior.c (build_inferior_list): Remove.
14035 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
14036
14037 2020-01-16 Christian Biesinger <cbiesinger@google.com>
14038
14039 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
14040 (btrace_stitch_trace): Likewise.
14041 * charset.c (intermediate_encoding): Likewise (vaild).
14042 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
14043 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
14044 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
14045
14046 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
14047
14048 * windows-tdep.c (windows_get_tlb_type):
14049 Add rtl_user_process_parameters type.
14050
14051 2020-01-16 Pedro Alves <palves@redhat.com>
14052 Norbert Lange <nolange79@gmail.com>
14053
14054 PR build/24805
14055 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
14056 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
14057 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
14058 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
14059 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
14060 (ps_plog): Redeclare exported functions with default visibility.
14061
14062 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
14063
14064 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
14065 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
14066
14067 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
14068
14069 * infcmd.c (post_create_inferior): Use get_thread_regcache
14070 instead of get_current_regcache.
14071
14072 2020-01-14 Tom Tromey <tom@tromey.com>
14073
14074 PR symtab/12535:
14075 * python/python.c (gdbpy_decode_line): Treat empty string the same
14076 as no argument.
14077
14078 2020-01-14 Tom Tromey <tom@tromey.com>
14079
14080 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
14081
14082 2020-01-14 Tom Tromey <tom@tromey.com>
14083
14084 * nat/linux-btrace.c: Don't include <config.h>.
14085 * nat/linux-ptrace.c: Don't include <config.h>.
14086 * nat/x86-linux-dregs.c: Don't include <config.h>.
14087
14088 2020-01-14 Tom Tromey <tom@tromey.com>
14089
14090 * configure: Rebuild.
14091 * configure.ac: Move many checks to ../gdbsupport/common.m4.
14092
14093 2020-01-14 Tom Tromey <tom@tromey.com>
14094
14095 * nat/x86-linux-dregs.c: Include configh.h.
14096 * nat/linux-ptrace.c: Include configh.h.
14097 * nat/linux-btrace.c: Include configh.h.
14098 * defs.h: Include config.h, bfd.h.
14099 * configure.ac: Don't source common.host.
14100 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
14101 * configure: Rebuild.
14102 * acinclude.m4: Update path.
14103 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
14104 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
14105 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
14106 (CLIBS): Add LIBSUPPORT.
14107 (CDEPS): Likewise.
14108 (COMMON_SFILES): Remove gdbsupport files.
14109 (HFILES_NO_SRCDIR): Likewise.
14110 (stamp-version): Update path to create-version.sh.
14111 (ALLDEPFILES): Remove gdbsupport files.
14112
14113 2020-01-14 Tom Tromey <tom@tromey.com>
14114
14115 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
14116 USE_WIN32API when needed.
14117 * configure.ac (USE_WIN32API): Don't define.
14118 (WIN32LIBS): Use WIN32APILIBS.
14119 * configure: Rebuild.
14120
14121 2020-01-14 Tom Tromey <tom@tromey.com>
14122
14123 * configure: Rebuild.
14124 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
14125
14126 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14127
14128 * skip.c (skip_function_command): Make skip w/o arguments use the
14129 name of the inlined function if pc is inside any inlined function.
14130
14131 2020-01-14 Luis Machado <luis.machado@linaro.org>
14132
14133 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
14134 * infrun.c (resume_1): Likewise.
14135 (handle_inferior_event): Remove stale comment.
14136 * linux-nat.c (linux_nat_target::resume): Update comments.
14137 (save_stop_reason): Likewise.
14138 (linux_nat_filter_event): Likewise.
14139 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
14140
14141 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14142
14143 * elfread.c (record_minimal_symbol): Set section index to 0 for
14144 non-allocatable sections.
14145
14146
14147 2020-01-13 Ali Tamur <tamur@google.com>
14148
14149 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
14150 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
14151 to gdb::optional. Update comments.
14152 (dwo_file): Update comments.
14153 (read_attribute): Update API to take an additional out parameter,
14154 need_reprocess. This is used to mark attributes that need other
14155 attributes (e.g. str_offsets_base) for correct computation which may not
14156 have been read yet.
14157 (read_attribute_reprocess): New function declaration.
14158 (read_addr_index): Likewise.
14159 (read_dwo_str_index): Likewise.
14160 (read_stub_str_index): Likewise.
14161 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
14162 (lookup_addr_base): New function definition.
14163 (lookup_ranges_base): Likewise.
14164 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
14165 lookup_ranges_base.
14166 (init_cutu_and_read_dies): Update comments.
14167 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
14168 unit. This is used to inherit parent's str_offsets_base and addr_base.
14169 Update comments.
14170 (init_cutu_and_read_dies_simple): Reflect API changes.
14171 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
14172 (create_cus_hash_table): Change API to take parent compile unit.
14173 Reflect API changes.
14174 (open_and_init_dwo_file): Reflect API changes.
14175 (dwarf2_get_pc_bounds): Update comments.
14176 (dwarf2_record_block_ranges): Likewise.
14177 (read_full_die_1): Change implementation to reprocess attributes that
14178 need str_offsets_base and addr_base.
14179 (partial_die_info::read): Likewise.
14180 (read_attribute_reprocess): New function definition.
14181 (read_attribute_value): Change API to take an additional out parameter,
14182 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
14183 when a non-dwo compile unit has index based attributes.
14184 (read_attribute): Reflect API changes.
14185 (read_addr_index_1): Reflect API changes. Update comments.
14186 (dwarf2_read_addr_index_data): Reflect API changes.
14187 (dwarf2_read_addr_index): Likewise.
14188 (read_str_index): Change API and implementation. This becomes a helper
14189 to be used by the new string index related methods. Update error
14190 message and comments.
14191 (read_dwo_str_index): New function definition.
14192 (read_stub_str_index): Likewise.
14193 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
14194 * symfile.h (dwarf2_debug_sections): Likewise.
14195 * xcoffread.c (dwarf2_debug_sections): Likewise.
14196
14197 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14198
14199 * gdbcore.h (struct core_fns) <core_read_registers>: Change
14200 core_reg_sect type to gdb_byte *.
14201 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
14202 * cris-tdep.c (fetch_core_registers): Likewise.
14203 * corelow.c (core_target::get_core_register_section): Change
14204 type of `contents` to gdb::byte_vector.
14205
14206 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
14207
14208 * tui/tui-wingeneral.c (box_win): Position the title in the center
14209 of the border.
14210
14211 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14212
14213 * corelow.c (core_target::get_core_register_section): Use
14214 std::vector instead of alloca.
14215
14216 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14217
14218 * warning.m4: Add -Wmissing-declarations to build_warnings.
14219 * configure: Re-generate.
14220
14221 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14222
14223 * python/python.c (init__gdb_module): Add declaration.
14224
14225 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
14226
14227 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
14228 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
14229 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
14230 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
14231 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
14232 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
14233 * ada-exp.y (_initialize_ada_exp): Add declaration.
14234 * ada-lang.c (_initialize_ada_language): Add declaration.
14235 * ada-tasks.c (_initialize_tasks): Add declaration.
14236 * agent.c (_initialize_agent): Add declaration.
14237 * aix-thread.c (_initialize_aix_thread): Add declaration.
14238 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
14239 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
14240 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
14241 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
14242 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
14243 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
14244 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
14245 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
14246 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
14247 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
14248 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
14249 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
14250 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
14251 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
14252 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
14253 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
14254 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
14255 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
14256 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
14257 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
14258 * annotate.c (_initialize_annotate): Add declaration.
14259 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
14260 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
14261 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
14262 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
14263 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
14264 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
14265 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
14266 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
14267 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
14268 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
14269 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
14270 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
14271 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
14272 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
14273 * auto-load.c (_initialize_auto_load): Add declaration.
14274 * auxv.c (_initialize_auxv): Add declaration.
14275 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
14276 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
14277 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
14278 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
14279 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
14280 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
14281 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
14282 * breakpoint.c (_initialize_breakpoint): Add declaration.
14283 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
14284 * btrace.c (_initialize_btrace): Add declaration.
14285 * charset.c (_initialize_charset): Add declaration.
14286 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
14287 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
14288 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
14289 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
14290 * cli/cli-script.c (_initialize_cli_script): Add declaration.
14291 * cli/cli-style.c (_initialize_cli_style): Add declaration.
14292 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
14293 * coffread.c (_initialize_coffread): Add declaration.
14294 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
14295 * compile/compile.c (_initialize_compile): Add declaration.
14296 * complaints.c (_initialize_complaints): Add declaration.
14297 * completer.c (_initialize_completer): Add declaration.
14298 * copying.c (_initialize_copying): Add declaration.
14299 * corefile.c (_initialize_core): Add declaration.
14300 * corelow.c (_initialize_corelow): Add declaration.
14301 * cp-abi.c (_initialize_cp_abi): Add declaration.
14302 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
14303 * cp-support.c (_initialize_cp_support): Add declaration.
14304 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
14305 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
14306 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
14307 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
14308 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
14309 * ctfread.c (_initialize_ctfread): Add declaration.
14310 * d-lang.c (_initialize_d_language): Add declaration.
14311 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
14312 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
14313 * dbxread.c (_initialize_dbxread): Add declaration.
14314 * dcache.c (_initialize_dcache): Add declaration.
14315 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
14316 * disasm.c (_initialize_disasm): Add declaration.
14317 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
14318 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
14319 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
14320 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
14321 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
14322 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
14323 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
14324 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
14325 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
14326 * elfread.c (_initialize_elfread): Add declaration.
14327 * exec.c (_initialize_exec): Add declaration.
14328 * extension.c (_initialize_extension): Add declaration.
14329 * f-lang.c (_initialize_f_language): Add declaration.
14330 * f-valprint.c (_initialize_f_valprint): Add declaration.
14331 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
14332 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
14333 * filesystem.c (_initialize_filesystem): Add declaration.
14334 * findcmd.c (_initialize_mem_search): Add declaration.
14335 * findvar.c (_initialize_findvar): Add declaration.
14336 * fork-child.c (_initialize_fork_child): Add declaration.
14337 * frame-base.c (_initialize_frame_base): Add declaration.
14338 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
14339 * frame.c (_initialize_frame): Add declaration.
14340 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
14341 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
14342 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
14343 * gcore.c (_initialize_gcore): Add declaration.
14344 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
14345 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
14346 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
14347 * gdbarch.c (_initialize_gdbarch): Add declaration.
14348 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
14349 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
14350 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
14351 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
14352 * go-lang.c (_initialize_go_language): Add declaration.
14353 * go32-nat.c (_initialize_go32_nat): Add declaration.
14354 * guile/guile.c (_initialize_guile): Add declaration.
14355 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
14356 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
14357 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
14358 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
14359 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
14360 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
14361 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
14362 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
14363 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
14364 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
14365 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
14366 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
14367 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
14368 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
14369 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
14370 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
14371 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
14372 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
14373 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
14374 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
14375 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
14376 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
14377 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
14378 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
14379 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
14380 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
14381 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
14382 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
14383 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
14384 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
14385 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
14386 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
14387 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
14388 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
14389 * infcall.c (_initialize_infcall): Add declaration.
14390 * infcmd.c (_initialize_infcmd): Add declaration.
14391 * inflow.c (_initialize_inflow): Add declaration.
14392 * infrun.c (_initialize_infrun): Add declaration.
14393 * interps.c (_initialize_interpreter): Add declaration.
14394 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
14395 * jit.c (_initialize_jit): Add declaration.
14396 * language.c (_initialize_language): Add declaration.
14397 * linux-fork.c (_initialize_linux_fork): Add declaration.
14398 * linux-nat.c (_initialize_linux_nat): Add declaration.
14399 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
14400 * linux-thread-db.c (_initialize_thread_db): Add declaration.
14401 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
14402 * m2-lang.c (_initialize_m2_language): Add declaration.
14403 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
14404 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
14405 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
14406 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
14407 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
14408 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
14409 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
14410 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
14411 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
14412 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
14413 * machoread.c (_initialize_machoread): Add declaration.
14414 * macrocmd.c (_initialize_macrocmd): Add declaration.
14415 * macroscope.c (_initialize_macroscope): Add declaration.
14416 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
14417 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
14418 * maint.c (_initialize_maint_cmds): Add declaration.
14419 * mdebugread.c (_initialize_mdebugread): Add declaration.
14420 * memattr.c (_initialize_mem): Add declaration.
14421 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
14422 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
14423 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
14424 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
14425 * mi/mi-main.c (_initialize_mi_main): Add declaration.
14426 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
14427 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
14428 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
14429 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
14430 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
14431 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
14432 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
14433 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
14434 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
14435 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
14436 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
14437 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
14438 * mipsread.c (_initialize_mipsread): Add declaration.
14439 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
14440 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
14441 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
14442 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
14443 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
14444 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
14445 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
14446 * nto-procfs.c (_initialize_procfs): Add declaration.
14447 * objc-lang.c (_initialize_objc_language): Add declaration.
14448 * observable.c (_initialize_observer): Add declaration.
14449 * opencl-lang.c (_initialize_opencl_language): Add declaration.
14450 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
14451 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
14452 * osabi.c (_initialize_gdb_osabi): Add declaration.
14453 * osdata.c (_initialize_osdata): Add declaration.
14454 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
14455 * parse.c (_initialize_parse): Add declaration.
14456 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
14457 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
14458 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
14459 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
14460 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
14461 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
14462 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
14463 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
14464 * printcmd.c (_initialize_printcmd): Add declaration.
14465 * probe.c (_initialize_probe): Add declaration.
14466 * proc-api.c (_initialize_proc_api): Add declaration.
14467 * proc-events.c (_initialize_proc_events): Add declaration.
14468 * proc-service.c (_initialize_proc_service): Add declaration.
14469 * procfs.c (_initialize_procfs): Add declaration.
14470 * producer.c (_initialize_producer): Add declaration.
14471 * psymtab.c (_initialize_psymtab): Add declaration.
14472 * python/python.c (_initialize_python): Add declaration.
14473 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
14474 * record-btrace.c (_initialize_record_btrace): Add declaration.
14475 * record-full.c (_initialize_record_full): Add declaration.
14476 * record.c (_initialize_record): Add declaration.
14477 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
14478 * regcache.c (_initialize_regcache): Add declaration.
14479 * reggroups.c (_initialize_reggroup): Add declaration.
14480 * remote-notif.c (_initialize_notif): Add declaration.
14481 * remote-sim.c (_initialize_remote_sim): Add declaration.
14482 * remote.c (_initialize_remote): Add declaration.
14483 * reverse.c (_initialize_reverse): Add declaration.
14484 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
14485 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
14486 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
14487 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
14488 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
14489 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
14490 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
14491 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
14492 Add declaration.
14493 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
14494 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
14495 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
14496 * rust-exp.y (_initialize_rust_exp): Add declaration.
14497 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
14498 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
14499 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
14500 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
14501 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
14502 * score-tdep.c (_initialize_score_tdep): Add declaration.
14503 * ser-go32.c (_initialize_ser_dos): Add declaration.
14504 * ser-mingw.c (_initialize_ser_windows): Add declaration.
14505 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
14506 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
14507 * ser-uds.c (_initialize_ser_socket): Add declaration.
14508 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
14509 * serial.c (_initialize_serial): Add declaration.
14510 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
14511 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
14512 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
14513 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
14514 * skip.c (_initialize_step_skip): Add declaration.
14515 * sol-thread.c (_initialize_sol_thread): Add declaration.
14516 * solib-aix.c (_initialize_solib_aix): Add declaration.
14517 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
14518 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
14519 * solib-frv.c (_initialize_frv_solib): Add declaration.
14520 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
14521 * solib-target.c (_initialize_solib_target): Add declaration.
14522 * solib.c (_initialize_solib): Add declaration.
14523 * source-cache.c (_initialize_source_cache): Add declaration.
14524 * source.c (_initialize_source): Add declaration.
14525 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
14526 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
14527 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
14528 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
14529 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
14530 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
14531 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
14532 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
14533 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
14534 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
14535 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
14536 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
14537 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
14538 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
14539 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
14540 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
14541 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
14542 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
14543 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
14544 * stabsread.c (_initialize_stabsread): Add declaration.
14545 * stack.c (_initialize_stack): Add declaration.
14546 * stap-probe.c (_initialize_stap_probe): Add declaration.
14547 * std-regs.c (_initialize_frame_reg): Add declaration.
14548 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
14549 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
14550 * symfile.c (_initialize_symfile): Add declaration.
14551 * symmisc.c (_initialize_symmisc): Add declaration.
14552 * symtab.c (_initialize_symtab): Add declaration.
14553 * target.c (_initialize_target): Add declaration.
14554 * target-connection.c (_initialize_target_connection): Add
14555 declaration.
14556 * target-dcache.c (_initialize_target_dcache): Add declaration.
14557 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
14558 * thread.c (_initialize_thread): Add declaration.
14559 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
14560 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
14561 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
14562 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
14563 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
14564 * tracectf.c (_initialize_ctf): Add declaration.
14565 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
14566 * tracefile.c (_initialize_tracefile): Add declaration.
14567 * tracepoint.c (_initialize_tracepoint): Add declaration.
14568 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
14569 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
14570 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
14571 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
14572 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
14573 * tui/tui-win.c (_initialize_tui_win): Add declaration.
14574 * tui/tui.c (_initialize_tui): Add declaration.
14575 * typeprint.c (_initialize_typeprint): Add declaration.
14576 * ui-style.c (_initialize_ui_style): Add declaration.
14577 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
14578 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
14579 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
14580 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
14581 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
14582 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
14583 * unittests/filtered_iterator-selftests.c
14584 (_initialize_filtered_iterator_selftests): Add declaration.
14585 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
14586 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
14587 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
14588 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
14589 * unittests/main-thread-selftests.c
14590 (_initialize_main_thread_selftests): Add declaration.
14591 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
14592 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
14593 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
14594 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
14595 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
14596 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
14597 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
14598 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
14599 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
14600 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
14601 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
14602 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
14603 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
14604 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
14605 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
14606 declaration.
14607 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
14608 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
14609 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
14610 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
14611 * user-regs.c (_initialize_user_regs): Add declaration.
14612 * utils.c (_initialize_utils): Add declaration.
14613 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
14614 * valops.c (_initialize_valops): Add declaration.
14615 * valprint.c (_initialize_valprint): Add declaration.
14616 * value.c (_initialize_values): Add declaration.
14617 * varobj.c (_initialize_varobj): Add declaration.
14618 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
14619 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
14620 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
14621 * windows-nat.c (_initialize_windows_nat): Add declaration.
14622 (_initialize_check_for_gdb_ini): Add declaration.
14623 (_initialize_loadable): Add declaration.
14624 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
14625 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
14626 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
14627 * xcoffread.c (_initialize_xcoffread): Add declaration.
14628 * xml-support.c (_initialize_xml_support): Add declaration.
14629 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
14630 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
14631 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
14632 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
14633
14634 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14635
14636 * regformats/regdat.sh: Generate declaration for init function.
14637
14638 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
14639
14640 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
14641 up.
14642 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
14643 close_one_inferior>: New methods.
14644 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
14645 pass down target to find_inferior_pid.
14646 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
14647 Pass down target to find_inferior_ptid.
14648 (gdbsim_target::create_inferior): Pass down target to
14649 add_thread_silent.
14650 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
14651 target down to find_inferior_ptid and switch_to_thread.
14652 (gdbsim_target::close): Update to call close_one_inferior.
14653 (struct resume_data): Remove.
14654 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
14655 directly, rather than through a void pointer.
14656 (gdbsim_target::resume): Update to call resume_one_inferior.
14657
14658 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
14659
14660 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
14661
14662 2020-01-12 Pedro Alves <palves@redhat.com>
14663
14664 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
14665 directly for the current inferior instead of
14666 discard_all_inferiors.
14667 (discard_all_inferiors): Delete.
14668
14669 2020-01-11 Tom Tromey <tom@tromey.com>
14670
14671 * tui/tui-wingeneral.c (box_win): Check cli_styling.
14672 * tui/tui-winsource.c (tui_source_window_base::refill): Use
14673 deprecated_safe_get_selected_frame.
14674
14675 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14676
14677 * inferior.c (print_inferior): Switch inferior before printing it.
14678
14679 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
14680 Pedro Alves <palves@redhat.com>
14681
14682 * progspace-and-thread.c (switch_to_program_space_and_thread):
14683 Assert there's an inferior for PSPACE. Use
14684 switch_to_inferior_no_thread to switch the inferior too.
14685 * progspace.c (program_space::~program_space): Call
14686 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
14687 (program_space::free_all_objfiles): Don't call clear_symtab_users
14688 here.
14689 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
14690
14691 2020-01-10 Pedro Alves <palves@redhat.com>
14692
14693 * NEWS: Mention multi-target debugging, "info connections", and
14694 "add-inferior -no-connection".
14695
14696 2020-01-10 Pedro Alves <palves@redhat.com>
14697
14698 * infrun.c: Include "target-connection.h".
14699 (check_multi_target_resumption): New.
14700 (proceed): Call it.
14701 * target-connection.c (make_target_connection_string): Make
14702 extern.
14703 * target-connection.h (make_target_connection_string): Declare.
14704
14705 2020-01-10 Pedro Alves <palves@redhat.com>
14706
14707 * Makefile.in (COMMON_SFILES): Add target-connection.c.
14708 * inferior.c (uiout_field_connection): New function.
14709 (print_inferior): Add new "connection-id" column.
14710 (add_inferior_command): Show connection number/string of added
14711 inferior.
14712 * process-stratum-target.h
14713 (process_stratum_target::connection_string): New virtual method.
14714 (process_stratum_target::connection_number): New field.
14715 * remote.c (remote_target::connection_string): New override.
14716 * target-connection.c: New file.
14717 * target-connection.h: New file.
14718 * target.c (decref_target): Remove process_stratum targets from
14719 the connection list.
14720 (target_stack::push): Add process_stratum targets to the
14721 connection list.
14722
14723 2020-01-10 Pedro Alves <palves@redhat.com>
14724
14725 Revert:
14726 2016-04-12 Pedro Alves <palves@redhat.com>
14727 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
14728 Remove references to name.
14729 * serial.h (struct serial) <name>: Delete.
14730
14731 2020-01-10 Pedro Alves <palves@redhat.com>
14732
14733 * gdbarch-selftests.c (register_to_value_test): Remove "target
14734 already pushed" check.
14735
14736 2020-01-10 Pedro Alves <palves@redhat.com>
14737 John Baldwin <jhb@FreeBSD.org>
14738
14739 * aarch64-linux-nat.c
14740 (aarch64_linux_nat_target::thread_architecture): Adjust.
14741 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
14742 (task_command_1): Likewise.
14743 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
14744 (aix_thread_target::wait, aix_thread_target::fetch_registers)
14745 (aix_thread_target::store_registers)
14746 (aix_thread_target::thread_alive): Adjust.
14747 * amd64-fbsd-tdep.c: Include "inferior.h".
14748 (amd64fbsd_get_thread_local_address): Pass down target.
14749 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
14750 thread's gdbarch instead of target_gdbarch.
14751 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
14752 get_last_target_status.
14753 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
14754 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
14755 inferiors.
14756 (update_inserted_breakpoint_locations): Skip if inferiors with no
14757 execution.
14758 (update_global_location_list): When handling moribund locations,
14759 find representative inferior for location's pspace, and use thread
14760 count of its process_stratum target.
14761 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
14762 * bsd-uthread.c (bsd_uthread_target::wait): Use
14763 as_process_stratum_target and adjust thread_change_ptid and
14764 add_thread calls.
14765 (bsd_uthread_target::update_thread_list): Use
14766 as_process_stratum_target and adjust find_thread_ptid,
14767 thread_change_ptid and add_thread calls.
14768 * btrace.c (maint_btrace_packet_history_cmd): Adjust
14769 find_thread_ptid call.
14770 * corelow.c (add_to_thread_list): Adjust add_thread call.
14771 (core_target_open): Adjust add_thread_silent and thread_count
14772 calls.
14773 (core_target::pid_to_str): Adjust find_inferior_ptid call.
14774 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
14775 * event-top.c (async_disconnect): Pop targets from all inferiors.
14776 * exec.c (add_target_sections): Push exec target on all inferiors
14777 sharing the program space.
14778 (remove_target_sections): Remove the exec target from all
14779 inferiors sharing the program space.
14780 (exec_on_vfork): New.
14781 * exec.h (exec_on_vfork): Declare.
14782 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
14783 Pass it down.
14784 (fbsd_nat_target::update_thread_list): Adjust.
14785 (fbsd_nat_target::resume): Adjust.
14786 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
14787 down.
14788 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
14789 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
14790 get_thread_arch_regcache call.
14791 * fork-child.c (gdb_startup_inferior): Pass target down to
14792 startup_inferior and set_executing.
14793 * gdbthread.h (struct process_stratum_target): Forward declare.
14794 (add_thread, add_thread_silent, add_thread_with_info)
14795 (in_thread_list): Add process_stratum_target parameter.
14796 (find_thread_ptid(inferior*, ptid_t)): New overload.
14797 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
14798 parameter.
14799 (all_threads()): Delete overload.
14800 (all_threads, all_non_exited_threads): Add process_stratum_target
14801 parameter.
14802 (all_threads_safe): Use brace initialization.
14803 (thread_count): Add process_stratum_target parameter.
14804 (set_resumed, set_running, set_stop_requested, set_executing)
14805 (threads_are_executing, finish_thread_state): Add
14806 process_stratum_target parameter.
14807 (switch_to_thread): Use is_current_thread.
14808 * i386-fbsd-tdep.c: Include "inferior.h".
14809 (i386fbsd_get_thread_local_address): Pass down target.
14810 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
14811 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
14812 have_inferiors check.
14813 * inf-ptrace.c (inf_ptrace_target::create_inferior)
14814 (inf_ptrace_target::attach): Adjust.
14815 * infcall.c (run_inferior_call): Adjust.
14816 * infcmd.c (run_command_1): Pass target to
14817 scoped_finish_thread_state.
14818 (proceed_thread_callback): Skip inferiors with no execution.
14819 (continue_command): Rename 'all_threads' local to avoid hiding
14820 'all_threads' function. Adjust get_last_target_status call.
14821 (prepare_one_step): Adjust set_running call.
14822 (signal_command): Use user_visible_resume_target. Compare thread
14823 pointers instead of inferior_ptid.
14824 (info_program_command): Adjust to pass down target.
14825 (attach_command): Mark target's 'thread_executing' flag.
14826 (stop_current_target_threads_ns): New, factored out from ...
14827 (interrupt_target_1): ... this. Switch inferior before making
14828 target calls.
14829 * inferior-iter.h
14830 (struct all_inferiors_iterator, struct all_inferiors_range)
14831 (struct all_inferiors_safe_range)
14832 (struct all_non_exited_inferiors_range): Filter on
14833 process_stratum_target too. Remove explicit.
14834 * inferior.c (inferior::inferior): Push dummy target on target
14835 stack.
14836 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
14837 Add process_stratum_target parameter, and pass it down.
14838 (have_live_inferiors): Adjust.
14839 (switch_to_inferior_and_push_target): New.
14840 (add_inferior_command, clone_inferior_command): Handle
14841 "-no-connection" parameter. Use
14842 switch_to_inferior_and_push_target.
14843 (_initialize_inferior): Mention "-no-connection" option in
14844 the help of "add-inferior" and "clone-inferior" commands.
14845 * inferior.h: Include "process-stratum-target.h".
14846 (interrupt_target_1): Use bool.
14847 (struct inferior) <push_target, unpush_target, target_is_pushed,
14848 find_target_beneath, top_target, process_target, target_at,
14849 m_stack>: New.
14850 (discard_all_inferiors): Delete.
14851 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
14852 (all_inferiors, all_non_exited_inferiors): Add
14853 process_stratum_target parameter.
14854 * infrun.c: Include "gdb_select.h" and <unordered_map>.
14855 (target_last_proc_target): New global.
14856 (follow_fork_inferior): Push target on new inferior. Pass target
14857 to add_thread_silent. Call exec_on_vfork. Handle target's
14858 reference count.
14859 (follow_fork): Adjust get_last_target_status call. Also consider
14860 target.
14861 (follow_exec): Push target on new inferior.
14862 (struct execution_control_state) <target>: New field.
14863 (user_visible_resume_target): New.
14864 (do_target_resume): Call target_async.
14865 (resume_1): Set target's threads_executing flag. Consider resume
14866 target.
14867 (commit_resume_all_targets): New.
14868 (proceed): Also consider resume target. Skip threads of inferiors
14869 with no execution. Commit resumtion in all targets.
14870 (start_remote): Pass current inferior to wait_for_inferior.
14871 (infrun_thread_stop_requested): Consider target as well. Pass
14872 thread_info pointer to clear_inline_frame_state instead of ptid.
14873 (infrun_thread_thread_exit): Consider target as well.
14874 (random_pending_event_thread): New inferior parameter. Use it.
14875 (do_target_wait): Rename to ...
14876 (do_target_wait_1): ... this. Add inferior parameter, and pass it
14877 down.
14878 (threads_are_resumed_pending_p, do_target_wait): New.
14879 (prepare_for_detach): Adjust calls.
14880 (wait_for_inferior): New inferior parameter. Handle it. Use
14881 do_target_wait_1 instead of do_target_wait.
14882 (fetch_inferior_event): Adjust. Switch to representative
14883 inferior. Pass target down.
14884 (set_last_target_status): Add process_stratum_target parameter.
14885 Save target in global.
14886 (get_last_target_status): Add process_stratum_target parameter and
14887 handle it.
14888 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
14889 (context_switch): Check inferior_ptid == null_ptid before calling
14890 inferior_thread().
14891 (get_inferior_stop_soon): Pass down target.
14892 (wait_one): Rename to ...
14893 (poll_one_curr_target): ... this.
14894 (struct wait_one_event): New.
14895 (wait_one): New.
14896 (stop_all_threads): Adjust.
14897 (handle_no_resumed, handle_inferior_event): Adjust to consider the
14898 event's target.
14899 (switch_back_to_stepped_thread): Also consider target.
14900 (print_stop_event): Update.
14901 (normal_stop): Update. Also consider the resume target.
14902 * infrun.h (wait_for_inferior): Remove declaration.
14903 (user_visible_resume_target): New declaration.
14904 (get_last_target_status, set_last_target_status): New
14905 process_stratum_target parameter.
14906 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14907 process_stratum_target parameter, and use it.
14908 (clear_inline_frame_state (thread_info*)): New.
14909 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
14910 process_stratum_target parameter.
14911 (clear_inline_frame_state (thread_info*)): Declare.
14912 * linux-fork.c (delete_checkpoint_command): Pass target down to
14913 find_thread_ptid.
14914 (checkpoint_command): Adjust.
14915 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
14916 instead of just tweaking inferior_ptid.
14917 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
14918 (exit_lwp): Pass target down to find_thread_ptid.
14919 (attach_proc_task_lwp_callback): Pass target down to
14920 add_thread/set_running/set_executing.
14921 (linux_nat_target::attach): Pass target down to
14922 thread_change_ptid.
14923 (get_detach_signal): Pass target down to find_thread_ptid.
14924 Consider last target status's target.
14925 (linux_resume_one_lwp_throw, resume_lwp)
14926 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
14927 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
14928 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
14929 (linux_nat_target::async_wait_fd): New.
14930 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
14931 target down.
14932 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
14933 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
14934 * linux-thread-db.c (struct thread_db_info::process_target): New
14935 field.
14936 (add_thread_db_info): Save target.
14937 (get_thread_db_info): New process_stratum_target parameter. Also
14938 match target.
14939 (delete_thread_db_info): New process_stratum_target parameter.
14940 Also match target.
14941 (thread_from_lwp): Adjust to pass down target.
14942 (thread_db_notice_clone): Pass down target.
14943 (check_thread_db_callback): Pass down target.
14944 (try_thread_db_load_1): Always push the thread_db target.
14945 (try_thread_db_load, record_thread): Pass target down.
14946 (thread_db_target::detach): Pass target down. Always unpush the
14947 thread_db target.
14948 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
14949 target down. Always unpush the thread_db target.
14950 (find_new_threads_callback, thread_db_find_new_threads_2)
14951 (thread_db_target::update_thread_list): Pass target down.
14952 (thread_db_target::pid_to_str): Pass current inferior down.
14953 (thread_db_target::get_thread_local_address): Pass target down.
14954 (thread_db_target::resume, maintenance_check_libthread_db): Pass
14955 target down.
14956 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
14957 * procfs.c (procfs_target::procfs_init_inferior): Declare.
14958 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
14959 (procfs_init_inferior): Rename to ...
14960 (procfs_target::procfs_init_inferior): ... this and adjust.
14961 (procfs_target::create_inferior, procfs_notice_thread)
14962 (procfs_do_thread_registers): Adjust.
14963 * ppc-fbsd-tdep.c: Include "inferior.h".
14964 (ppcfbsd_get_thread_local_address): Pass down target.
14965 * proc-service.c (ps_xfer_memory): Switch current inferior and
14966 program space as well.
14967 (get_ps_regcache): Pass target down.
14968 * process-stratum-target.c
14969 (process_stratum_target::thread_address_space)
14970 (process_stratum_target::thread_architecture): Pass target down.
14971 * process-stratum-target.h
14972 (process_stratum_target::threads_executing): New field.
14973 (as_process_stratum_target): New.
14974 * ravenscar-thread.c
14975 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
14976 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
14977 down.
14978 * record-btrace.c (record_btrace_target::info_record): Adjust.
14979 (record_btrace_target::record_method)
14980 (record_btrace_target::record_is_replaying)
14981 (record_btrace_target::fetch_registers)
14982 (get_thread_current_frame_id, record_btrace_target::resume)
14983 (record_btrace_target::wait, record_btrace_target::stop): Pass
14984 target down.
14985 * record-full.c (record_full_wait_1): Switch to event thread.
14986 Pass target down.
14987 * regcache.c (regcache::regcache)
14988 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
14989 process_stratum_target parameter and handle it.
14990 (current_thread_target): New global.
14991 (get_thread_regcache): Add process_stratum_target parameter and
14992 handle it. Switch inferior before calling target method.
14993 (get_thread_regcache): Pass target down.
14994 (get_thread_regcache_for_ptid): Pass target down.
14995 (registers_changed_ptid): Add process_stratum_target parameter and
14996 handle it.
14997 (registers_changed_thread, registers_changed): Pass target down.
14998 (test_get_thread_arch_aspace_regcache): New.
14999 (current_regcache_test): Define a couple local test_target_ops
15000 instances and use them for testing.
15001 (readwrite_regcache): Pass process_stratum_target parameter.
15002 (cooked_read_test, cooked_write_test): Pass mock_target down.
15003 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
15004 (get_thread_arch_aspace_regcache): Add process_stratum_target
15005 parameter.
15006 (regcache::target): New method.
15007 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
15008 (regcache::registers_changed_ptid): Add process_stratum_target
15009 parameter.
15010 (regcache::m_target): New field.
15011 (registers_changed_ptid): Add process_stratum_target parameter.
15012 * remote.c (remote_state::supports_vCont_probed): New field.
15013 (remote_target::async_wait_fd): New method.
15014 (remote_unpush_and_throw): Add remote_target parameter.
15015 (get_current_remote_target): Adjust.
15016 (remote_target::remote_add_inferior): Push target.
15017 (remote_target::remote_add_thread)
15018 (remote_target::remote_notice_new_inferior)
15019 (get_remote_thread_info): Pass target down.
15020 (remote_target::update_thread_list): Skip threads of inferiors
15021 bound to other targets. (remote_target::close): Don't discard
15022 inferiors. (remote_target::add_current_inferior_and_thread)
15023 (remote_target::process_initial_stop_replies)
15024 (remote_target::start_remote)
15025 (remote_target::remote_serial_quit_handler): Pass down target.
15026 (remote_target::remote_unpush_target): New remote_target
15027 parameter. Unpush the target from all inferiors.
15028 (remote_target::remote_unpush_and_throw): New remote_target
15029 parameter. Pass it down.
15030 (remote_target::open_1): Check whether the current inferior has
15031 execution instead of checking whether any inferior is live. Pass
15032 target down.
15033 (remote_target::remote_detach_1): Pass down target. Use
15034 remote_unpush_target.
15035 (extended_remote_target::attach): Pass down target.
15036 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
15037 (remote_target::append_resumption): Pass down target.
15038 (remote_target::append_pending_thread_resumptions)
15039 (remote_target::remote_resume_with_hc, remote_target::resume)
15040 (remote_target::commit_resume): Pass down target.
15041 (remote_target::remote_stop_ns): Check supports_vCont_probed.
15042 (remote_target::interrupt_query)
15043 (remote_target::remove_new_fork_children)
15044 (remote_target::check_pending_events_prevent_wildcard_vcont)
15045 (remote_target::remote_parse_stop_reply)
15046 (remote_target::process_stop_reply): Pass down target.
15047 (first_remote_resumed_thread): New remote_target parameter. Pass
15048 it down.
15049 (remote_target::wait_as): Pass down target.
15050 (unpush_and_perror): New remote_target parameter. Pass it down.
15051 (remote_target::readchar, remote_target::remote_serial_write)
15052 (remote_target::getpkt_or_notif_sane_1)
15053 (remote_target::kill_new_fork_children, remote_target::kill): Pass
15054 down target.
15055 (remote_target::mourn_inferior): Pass down target. Use
15056 remote_unpush_target.
15057 (remote_target::core_of_thread)
15058 (remote_target::remote_btrace_maybe_reopen): Pass down target.
15059 (remote_target::pid_to_exec_file)
15060 (remote_target::thread_handle_to_thread_info): Pass down target.
15061 (remote_target::async_wait_fd): New.
15062 * riscv-fbsd-tdep.c: Include "inferior.h".
15063 (riscv_fbsd_get_thread_local_address): Pass down target.
15064 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
15065 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
15066 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
15067 Adjust.
15068 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
15069 * solib-svr4.c (enable_break): Pass down target.
15070 * spu-multiarch.c (parse_spufs_run): Pass down target.
15071 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
15072 * target-delegates.c: Regenerate.
15073 * target.c (g_target_stack): Delete.
15074 (current_top_target): Return the current inferior's top target.
15075 (target_has_execution_1): Refer to the passed-in inferior's top
15076 target.
15077 (target_supports_terminal_ours): Check whether the initial
15078 inferior was already created.
15079 (decref_target): New.
15080 (target_stack::push): Incref/decref the target.
15081 (push_target, push_target, unpush_target): Adjust.
15082 (target_stack::unpush): Defref target.
15083 (target_is_pushed): Return bool. Adjust to refer to the current
15084 inferior's target stack.
15085 (dispose_inferior): Delete, and inline parts ...
15086 (target_preopen): ... here. Only dispose of the current inferior.
15087 (target_detach): Hold strong target reference while detaching.
15088 Pass target down.
15089 (target_thread_name): Add assertion.
15090 (target_resume): Pass down target.
15091 (target_ops::beneath, find_target_at): Adjust to refer to the
15092 current inferior's target stack.
15093 (get_dummy_target): New.
15094 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
15095 has a thread running.
15096 (initialize_targets): Rename to ...
15097 (_initialize_target): ... this.
15098 * target.h: Include "gdbsupport/refcounted-object.h".
15099 (struct target_ops): Inherit refcounted_object.
15100 (target_ops::shortname, target_ops::longname): Make const.
15101 (target_ops::async_wait_fd): New method.
15102 (decref_target): Declare.
15103 (struct target_ops_ref_policy): New.
15104 (target_ops_ref): New typedef.
15105 (get_dummy_target): Declare function.
15106 (target_is_pushed): Return bool.
15107 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
15108 (all_matching_threads_iterator::all_matching_threads_iterator):
15109 Handle filter target.
15110 * thread-iter.h (struct all_matching_threads_iterator, struct
15111 all_matching_threads_range, class all_non_exited_threads_range):
15112 Filter by target too. Remove explicit.
15113 * thread.c (threads_executing): Delete.
15114 (inferior_thread): Pass down current inferior.
15115 (clear_thread_inferior_resources): Pass down thread pointer
15116 instead of ptid_t.
15117 (add_thread_silent, add_thread_with_info, add_thread): Add
15118 process_stratum_target parameter. Use it for thread and inferior
15119 searches.
15120 (is_current_thread): New.
15121 (thread_info::deletable): Use it.
15122 (find_thread_ptid, thread_count, in_thread_list)
15123 (thread_change_ptid, set_resumed, set_running): New
15124 process_stratum_target parameter. Pass it down.
15125 (set_executing): New process_stratum_target parameter. Pass it
15126 down. Adjust reference to 'threads_executing'.
15127 (threads_are_executing): New process_stratum_target parameter.
15128 Adjust reference to 'threads_executing'.
15129 (set_stop_requested, finish_thread_state): New
15130 process_stratum_target parameter. Pass it down.
15131 (switch_to_thread): Also match inferior.
15132 (switch_to_thread): New process_stratum_target parameter. Pass it
15133 down.
15134 (update_threads_executing): Reimplement.
15135 * top.c (quit_force): Pop targets from all inferior.
15136 (gdb_init): Don't call initialize_targets.
15137 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
15138 Declare.
15139 (windows_add_thread, windows_delete_thread): Adjust.
15140 (get_windows_debug_event): Rename to ...
15141 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
15142 * tracefile-tfile.c (tfile_target_open): Pass down target.
15143 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
15144 Forward declare.
15145 (switch_to_thread): Add process_stratum_target parameter.
15146 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
15147 parameter. Use it.
15148 (mi_on_resume): Pass target down.
15149 * nat/fork-inferior.c (startup_inferior): Add
15150 process_stratum_target parameter. Pass it down.
15151 * nat/fork-inferior.h (startup_inferior): Add
15152 process_stratum_target parameter.
15153 * python/py-threadevent.c (py_get_event_thread): Pass target down.
15154
15155 2020-01-10 Pedro Alves <palves@redhat.com>
15156
15157 * remote.c (remote_target::start_remote): Don't set inferior_ptid
15158 directly. Instead find the first thread in the thread list and
15159 use switch_to_thread.
15160
15161 2020-01-10 Pedro Alves <palves@redhat.com>
15162
15163 * remote.c (remote_target::remote_add_inferior): Don't bind a
15164 process to the current inferior if the current inferior is already
15165 bound to a process.
15166
15167 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
15168 Pedro Alves <palves@redhat.com>
15169
15170 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
15171 If no process is specified, return null_ptid instead of
15172 inferior_ptid.
15173 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
15174 TARGET_WAITKIND_SIGNALLED with no pid.
15175
15176 2020-01-10 Pedro Alves <palves@redhat.com>
15177
15178 * remote.c (first_remote_resumed_thread): New.
15179 (remote_target::wait_as): Use it as default event_ptid instead of
15180 inferior_ptid.
15181
15182 2020-01-10 Pedro Alves <palves@redhat.com>
15183
15184 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
15185
15186 2020-01-10 Pedro Alves <palves@redhat.com>
15187
15188 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
15189 not -1.
15190
15191 2020-01-10 Pedro Alves <palves@redhat.com>
15192
15193 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
15194 ptid to get_last_target_status.
15195 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
15196 ptid to get_last_target_status.
15197 * infcmd.c (continue_command): Don't pass a target_waitstatus to
15198 get_last_target_status.
15199 (info_program_command): Don't pass a target_waitstatus to
15200 get_last_target_status.
15201 * infrun.c (init_wait_for_inferior): Use
15202 nullify_last_target_wait_ptid.
15203 (get_last_target_status): Handle nullptr arguments.
15204 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
15205 (print_stop_event): Don't pass a ptid to get_last_target_status.
15206 (normal_stop): Don't pass a ptid to get_last_target_status.
15207 * infrun.h (get_last_target_status, set_last_target_status): Move
15208 comments here and update.
15209 (nullify_last_target_wait_ptid): Declare.
15210 * linux-fork.c (fork_load_infrun_state): Remove local extern
15211 declaration of nullify_last_target_wait_ptid.
15212 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
15213 to get_last_target_status.
15214
15215 2020-01-10 Pedro Alves <palves@redhat.com>
15216
15217 * gdbthread.h (scoped_restore_current_thread)
15218 <dont_restore, restore, m_dont_restore>: Declare.
15219 * thread.c (thread_alive): Add assertion. Return bool.
15220 (switch_to_thread_if_alive): New.
15221 (prune_threads): Switch inferior/thread.
15222 (print_thread_info_1): Switch thread before calling target methods.
15223 (scoped_restore_current_thread::restore): New, factored out from
15224 ...
15225 (scoped_restore_current_thread::~scoped_restore_current_thread):
15226 ... this.
15227 (scoped_restore_current_thread::scoped_restore_current_thread):
15228 Add assertion.
15229 (thread_apply_all_command, thread_select): Use
15230 switch_to_thread_if_alive.
15231 * infrun.c (proceed, restart_threads, handle_signal_stop)
15232 (switch_back_to_stepped_thread): Switch current thread before
15233 calling target methods.
15234
15235 2020-01-10 Pedro Alves <palves@redhat.com>
15236
15237 * inferior.c (switch_to_inferior_no_thread): New function,
15238 factored out from ...
15239 (inferior_command): ... here.
15240 * inferior.h (switch_to_inferior_no_thread): Declare.
15241 * mi/mi-main.c (run_one_inferior): Use
15242 switch_to_inferior_no_thread.
15243
15244 2020-01-10 Pedro Alves <palves@redhat.com>
15245
15246 * infcmd.c (kill_command): Remove dead code.
15247
15248 2020-01-10 Pedro Alves <palves@redhat.com>
15249
15250 * remote.c (remote_target::mourn_inferior): No longer check
15251 whether the target is running.
15252
15253 2020-01-10 Pedro Alves <palves@redhat.com>
15254
15255 * corelow.c (core_target::has_execution): Change parameter type to
15256 inferior pointer.
15257 * inferior.c (number_of_live_inferiors): Use
15258 inferior::has_execution instead of target_has_execution_1.
15259 * inferior.h (inferior::has_execution): New.
15260 * linux-thread-db.c (thread_db_target::update_thread_list): Use
15261 inferior::has_execution instead of target_has_execution_1.
15262 * process-stratum-target.c
15263 (process_stratum_target::has_execution): Change parameter type to
15264 inferior pointer. Check the inferior's PID instead of
15265 inferior_ptid.
15266 * process-stratum-target.h
15267 (process_stratum_target::has_execution): Change parameter type to
15268 inferior pointer.
15269 * record-full.c (record_full_core_target::has_execution): Change
15270 parameter type to inferior pointer.
15271 * target.c (target_has_execution_1): Change parameter type to
15272 inferior pointer.
15273 (target_has_execution_current): Adjust.
15274 * target.h (target_ops::has_execution): Change parameter type to
15275 inferior pointer.
15276 (target_has_execution_1): Change parameter type to inferior
15277 pointer. Change return type to bool.
15278 * tracefile.h (tracefile_target::has_execution): Change parameter
15279 type to inferior pointer.
15280
15281 2020-01-10 Pedro Alves <palves@redhat.com>
15282
15283 * exceptions.c (print_flush): Remove current_top_target() check.
15284
15285 2020-01-10 Pedro Alves <palves@redhat.com>
15286
15287 * remote.c (show_remote_exec_file): Show the current inferior's
15288 exec-file instead of the command variable's value.
15289
15290 2020-01-10 Pedro Alves <palves@redhat.com>
15291
15292 * record-full.c (record_full_resume_ptid): New global.
15293 (record_full_target::resume): Set it.
15294 (record_full_wait_1): Use record_full_resume_ptid instead of
15295 inferior_ptid.
15296
15297 2020-01-10 Pedro Alves <palves@redhat.com>
15298
15299 * gdbthread.h (scoped_restore_current_thread)
15300 <dont_restore, restore, m_dont_restore>: Declare.
15301 * thread.c (thread_alive): Add assertion. Return bool.
15302 (switch_to_thread_if_alive): New.
15303 (prune_threads): Switch inferior/thread.
15304 (print_thread_info_1): Switch thread before calling target methods.
15305 (scoped_restore_current_thread::restore): New, factored out from
15306 ...
15307 (scoped_restore_current_thread::~scoped_restore_current_thread):
15308 ... this.
15309 (scoped_restore_current_thread::scoped_restore_current_thread):
15310 Add assertion.
15311 (thread_apply_all_command, thread_select): Use
15312 switch_to_thread_if_alive.
15313
15314 2020-01-10 George Barrett <bob@bob131.so>
15315
15316 * stap-probe.c (stap_modify_semaphore): Don't check for null
15317 semaphores.
15318 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
15319 for null semaphores.
15320
15321 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15322
15323 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
15324 all source windows, and maintain horizontal scroll status while
15325 doing so.
15326
15327 2020-01-09 Tom Tromey <tom@tromey.com>
15328
15329 PR tui/18932:
15330 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
15331 update_source_window, not print_source_lines.
15332
15333 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
15334
15335 * tui/tui.c (tui_enable): Register tui hooks after calling
15336 tui_display_main.
15337
15338 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15339
15340 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
15341
15342 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
15343
15344 * thread.c (print_thread_info_1): Fix indentation.
15345
15346 2020-01-09 Christian Biesinger <cbiesinger@google.com>
15347
15348 * symtab.c (general_symbol_info::compute_and_set_names): Move the
15349 unique_xmalloc_ptr outside the if to always free the demangled name.
15350
15351 2020-01-08 Tom Tromey <tromey@adacore.com>
15352
15353 * xcoffread.c (enter_line_range, read_xcoff_symtab)
15354 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
15355 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
15356 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
15357 Remove.
15358 (section_offsets): New typedef.
15359 * symtab.c (fixup_section, get_msymbol_address): Update.
15360 * symmisc.c (dump_msymbols): Update.
15361 * symfile.h (relative_addr_info_to_section_offsets)
15362 (symfile_map_offsets_to_segments): Update.
15363 * symfile.c (build_section_addr_info_from_objfile)
15364 (init_objfile_sect_indices): Update.
15365 (struct place_section_arg): Change type of "offsets".
15366 (place_section): Update.
15367 (relative_addr_info_to_section_offsets): Change type of
15368 "section_offsets". Remove "num_sections" parameter.
15369 (default_symfile_offsets, syms_from_objfile_1)
15370 (set_objfile_default_section_offset): Update.
15371 (reread_symbols): No need to preserve section offsets by hand.
15372 (symfile_map_offsets_to_segments): Change type of "offsets".
15373 * stap-probe.c (relocate_address): Update.
15374 * stabsread.h (process_one_symbol): Update.
15375 * solib-target.c (struct lm_info_target) <offsets>: Change type.
15376 (solib_target_relocate_section_addresses): Update.
15377 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
15378 Update.
15379 * solib-frv.c (frv_relocate_main_executable): Update.
15380 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
15381 * solib-aix.c (solib_aix_get_section_offsets): Change return
15382 type.
15383 (solib_aix_solib_create_inferior_hook): Update.
15384 * remote.c (remote_target::get_offsets): Update.
15385 * psymtab.c (find_pc_sect_psymtab): Update.
15386 * psympriv.h (struct partial_symbol) <address, text_low,
15387 text_high>: Update.
15388 * objfiles.h (obj_section_offset): Update.
15389 (struct objfile) <section_offsets>: Change type.
15390 <num_sections>: Remove.
15391 (objfile_relocate): Update.
15392 * objfiles.c (entry_point_address_query): Update
15393 (relocate_one_symbol): Change type of "section_offsets".
15394 (objfile_relocate1, objfile_relocate1): Change type of
15395 "new_offsets".
15396 (objfile_rebase1): Update.
15397 * mipsread.c (mipscoff_symfile_read): Update.
15398 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
15399 parameter.
15400 * mdebugread.c (parse_symbol): Change type of "section_offsets".
15401 (parse_external, psymtab_to_symtab_1): Update.
15402 * machoread.c (macho_symfile_offsets): Update.
15403 * ia64-tdep.c (ia64_find_unwind_table): Update.
15404 * hppa-tdep.c (read_unwind_info): Update.
15405 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
15406 * dwarf2read.c (create_addrmap_from_index)
15407 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
15408 (process_psymtab_comp_unit_reader, add_partial_symbol)
15409 (add_partial_subprogram, process_full_comp_unit)
15410 (read_file_scope, read_func_scope, read_lexical_block_scope)
15411 (read_call_site_scope, dwarf2_rnglists_process)
15412 (dwarf2_ranges_process, dwarf2_ranges_read)
15413 (dwarf_decode_lines_1, var_decode_location, new_symbol)
15414 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
15415 Update.
15416 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
15417 Update.
15418 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
15419 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
15420 (process_one_symbol): Change type of "section_offsets".
15421 * ctfread.c (get_objfile_text_range): Update.
15422 * coffread.c (coff_symtab_read, enter_linenos)
15423 (process_coff_symbol): Update.
15424 * coff-pe-read.c (add_pe_forwarded_sym): Update.
15425 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
15426
15427 2020-01-08 Tom Tromey <tromey@adacore.com>
15428
15429 * dwarf2read.c (parse_macro_definition): Use std::string.
15430 (parse_macro_definition): Likewise.
15431
15432 2020-01-08 Tom Tromey <tromey@adacore.com>
15433
15434 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
15435 (ATTR_ALLOC_CHUNK): Remove.
15436
15437 2020-01-08 Tom Tromey <tromey@adacore.com>
15438
15439 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
15440
15441 2020-01-08 Tom Tromey <tromey@adacore.com>
15442
15443 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
15444 (dwarf2_compute_name, open_dwo_file): Likewise.
15445 (process_enumeration_scope): Use std::vector.
15446 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
15447 (partial_die_info::fixup, dwarf2_start_subfile)
15448 (guess_full_die_structure_name, dwarf2_name): Likewise.
15449 (determine_prefix): Update.
15450 (guess_full_die_structure_name): Make return type const.
15451 (partial_die_full_name): Return unique_xmalloc_ptr.
15452 (DW_FIELD_ALLOC_CHUNK): Remove.
15453
15454 2020-01-07 Tom Tromey <tromey@adacore.com>
15455
15456 PR build/24937:
15457 * stap-probe.c (class stap_static_probe_ops): Add constructor.
15458
15459 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15460
15461 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
15462
15463 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
15464
15465 * stack.c (print_frame_info): Move disassemble_next_line code
15466 inside source_print block.
15467
15468 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15469
15470 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
15471 gdb/signals.h, as we are now using native signal symbols.
15472
15473 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15474
15475 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
15476 overflow by an early check of content vs threshold.
15477 * tui/tui-source.c (tui_source_window::line_is_displayed):
15478 Likewise.
15479
15480 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15481
15482 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
15483
15484 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
15485
15486 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
15487 export table if no section contains it's RVA.
15488
15489 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15490
15491 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
15492
15493 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
15494
15495 * source.c (print_source_lines_base): Set last_line_listed.
15496
15497 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
15498
15499 * tui/tui-disasm.c: Remove trailing spaces.
15500
15501 2020-01-06 Eli Zaretskii <eliz@gnu.org>
15502 Pedro Alves <palves@redhat.com>
15503
15504 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
15505 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
15506 (windows_gdb_signal_to_target): New function, uses the above
15507 enumeration to convert GDB internal signal codes to equivalent
15508 Windows codes.
15509 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
15510 * windows-nat.c: Include "gdb_wait.h".
15511 (get_windows_debug_event): Extract the fatal exception from the
15512 exit status and convert to the equivalent Posix signal number.
15513 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
15514 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
15515 * gdbsupport/gdb_wait.c: New file, implements
15516 windows_status_to_termsig.
15517 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
15518 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
15519
15520 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
15521
15522 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
15523 show_layout.
15524
15525 2020-01-05 Luis Machado <luis.machado@linaro.org>
15526
15527 * aarch64-linux-nat.c
15528 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
15529 and bfd_mach_aarch64.
15530
15531 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15532
15533 * ui-file.c (stdio_file::can_emit_style_escape)
15534 (tee_file::can_emit_style_escape): Ensure style is used also on
15535 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
15536 to gdb_stdout.
15537 * main.c (set_gdb_data_directory): Use file style to output the
15538 warning that the given pathname is not a directory.
15539 * top.c (show_history_filename, gdb_safe_append_history)
15540 (show_gdb_datadir): Use file style.
15541
15542 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15543
15544 * solib-target.c (struct lm_info_target):
15545 Change offsets to be a unique_xmalloc_ptr.
15546 (solib_target_relocate_section_addresses): Update.
15547
15548 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
15549
15550 * windows-nat.c (windows_clear_solib): Free so_list linked list.
15551
15552 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
15553
15554 * MAINTAINERS (Write After Approval): Add myself.
15555
15556 2020-01-02 Luis Machado <luis.machado@linaro.org>
15557
15558 * proc-service.c (get_ps_regcache): Remove reference to obsolete
15559 Cell BE architecture.
15560 * target.h (struct target_ops) <thread_architecture>: Likewise.
15561
15562 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15563
15564 * Makefile.in: Use INSTALL_PROGRAM_ENV.
15565
15566 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
15567
15568 * MAINTAINERS (Write After Approval): Add myself.
15569
15570 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15571
15572 * gdbarch.sh: Update copyright year range of generated files.
15573
15574 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15575
15576 Update copyright year range in all GDB files.
15577
15578 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15579
15580 * copyright.py: Convert to Python 3.
15581
15582 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15583
15584 * copyright.py: Adapt after move of gnulib directory from gdb
15585 directory to toplevel directory.
15586
15587 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15588
15589 * copyright.py (main): Exit if run from the wrong directory.
15590
15591 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15592
15593 * top.c (print_gdb_version): Change copyright year to 2020.
15594
15595 2020-01-01 Joel Brobecker <brobecker@adacore.com>
15596
15597 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
15598
15599 For older changes see ChangeLog-2019.
15600 \f
15601 Local Variables:
15602 mode: change-log
15603 left-margin: 8
15604 fill-column: 74
15605 version-control: never
15606 coding: utf-8
15607 End: