Add support for variable field offsets
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-04-24 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/read.c (handle_data_member_location): New overload.
4 (dwarf2_add_field): Use it.
5 (decode_locdesc): Add "computed" parameter. Update comment.
6 * gdbtypes.c (is_dynamic_type_internal): Also look for
7 FIELD_LOC_KIND_DWARF_BLOCK.
8 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
9 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10 virtual base classes.
11 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
12 FIELD_LOC_KIND_DWARF_BLOCK.
13
14 2020-04-24 Tom Tromey <tromey@adacore.com>
15
16 * dwarf2/read.c (read_structure_type): Handle dynamic length.
17 * gdbtypes.c (is_dynamic_type_internal): Check
18 TYPE_HAS_DYNAMIC_LENGTH.
19 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
20 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
21 New macros.
22 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
23 constant.
24
25 2020-04-24 Tom Tromey <tromey@adacore.com>
26
27 * dwarf2/read.c (struct variant_field): Rewrite.
28 (struct variant_part_builder): New.
29 (struct nextfield): Remove "variant" field. Add "offset".
30 (struct field_info): Add "current_variant_part" and
31 "variant_parts".
32 (alloc_discriminant_info): Remove.
33 (alloc_rust_variant): New function.
34 (quirk_rust_enum): Update.
35 (dwarf2_add_field): Set "offset" member. Don't handle
36 DW_TAG_variant_part.
37 (offset_map_type): New typedef.
38 (convert_variant_range, create_one_variant)
39 (create_one_variant_part, create_variant_parts)
40 (add_variant_property): New functions.
41 (dwarf2_attach_fields_to_type): Call add_variant_property.
42 (read_structure_type): Don't handle DW_TAG_variant_part.
43 (handle_variant_part, handle_variant): New functions.
44 (handle_struct_member_die): Use them.
45 (process_structure_scope): Don't handle variant parts.
46 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
47 (struct discriminant_info): Remove.
48 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
49 (struct main_type) <flag_discriminated_union>: Remove.
50 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
51 (rust_enum_variant): Return int. Remove "contents". Rewrite.
52 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
53 Update.
54 * valops.c (value_union_variant): Remove.
55 * value.h (value_union_variant): Don't declare.
56
57 2020-04-24 Tom Tromey <tromey@adacore.com>
58
59 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
60 (ada_value_primitive_packed_val): Update.
61 * ada-valprint.c (ada_value_print_1): Update.
62 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
63 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
64 just an address. Use evaluate_for_locexpr_baton.
65 (dwarf2_evaluate_property): Update.
66 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
67 array_view.
68 * findvar.c (default_read_var_value): Update.
69 * gdbtypes.c (compute_variant_fields_inner)
70 (resolve_dynamic_type_internal): Update.
71 (resolve_dynamic_type): Change type of valaddr parameter.
72 * gdbtypes.h (resolve_dynamic_type): Update.
73 * valarith.c (value_subscripted_rvalue): Update.
74 * value.c (value_from_contents_and_address): Update.
75
76 2020-04-24 Tom Tromey <tromey@adacore.com>
77
78 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
79 "push_initial_value" parameter.
80 (dwarf2_evaluate_property): Likewise.
81 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
82
83 2020-04-24 Tom Tromey <tromey@adacore.com>
84
85 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
86 (variant::matches, compute_variant_fields_recurse)
87 (compute_variant_fields_inner, compute_variant_fields): New
88 functions.
89 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
90 Use resolved_type after type is made.
91 (operator==): Add new cases.
92 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
93 (struct discriminant_range, struct variant, struct variant_part):
94 New.
95 (union dynamic_prop_data) <variant_parts, original_type>: New
96 members.
97 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
98 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
99 constants.
100 * value.c (unpack_bits_as_long): Now public.
101 * value.h (unpack_bits_as_long): Declare.
102
103 2020-04-24 Tom Tromey <tromey@adacore.com>
104
105 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
106 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
107
108 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
109
110 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
111
112 2020-04-24 Kamil Rytarowski <n54@gmx.com>
113
114 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
115 (remove_fork_catchpoint, post_startup_inferior)
116 (post_attach): Move...
117 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
118 (remove_fork_catchpoint, post_startup_inferior)
119 (post_attach): ...here.
120 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
121 (remove_fork_catchpoint, post_startup_inferior)
122 (post_attach): Move...
123 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
124 (remove_fork_catchpoint, post_startup_inferior)
125 (post_attach): ...here.
126
127 2020-04-24 Tom Tromey <tromey@adacore.com>
128
129 * nat/windows-nat.h (struct windows_thread_info)
130 <pc_adjusted>: New member.
131 * windows-nat.c (windows_fetch_one_register): Check
132 pc_adjusted.
133 (windows_nat_target::get_windows_debug_event)
134 (windows_nat_target::wait): Set pc_adjusted.
135
136 2020-04-24 Tom de Vries <tdevries@suse.de>
137
138 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
139 Run gdb-add-index inside temp dir.
140
141 2020-04-23 Tom Tromey <tromey@adacore.com>
142
143 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
144 in loop.
145
146 2020-04-23 Luis Machado <luis.machado@linaro.org>
147
148 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
149 get_frame_register instead of gdbarch_unwind_pc.
150
151 2020-04-23 Tom de Vries <tdevries@suse.de>
152
153 * symtab.c (lookup_global_symbol): Prefer def over decl.
154
155 2020-04-23 Tom de Vries <tdevries@suse.de>
156
157 PR symtab/25807
158 * block.c (best_symbol, better_symbol): Promote to external.
159 * block.h (best_symbol, better_symbol): Declare.
160 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
161 decl.
162
163 2020-04-23 Tom Tromey <tromey@adacore.com>
164
165 PR ada/25837:
166 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
167 "const char *", not a "const std::string &".
168 <name_and_matcher::operator==>: Update.
169 * unittests/lookup_name_info-selftests.c: Change type of
170 "result".
171
172 2020-04-23 Tom Tromey <tom@tromey.com>
173
174 * inferior.h (iterate_over_inferiors): Don't declare.
175 * inferior.c (iterate_over_inferiors): Remove.
176 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
177 Remove.
178 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
179 use iterate_over_inferiors.
180 (darwin_resume_inferior_it)
181 (struct resume_inferior_threads_param)
182 (darwin_resume_inferior_threads_it): Remove.
183 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
184
185 2020-04-23 Tom de Vries <tdevries@suse.de>
186
187 * blockframe.c (find_pc_partial_function): Use
188 find_pc_sect_compunit_symtab rather than
189 objfile->sf->qf->find_pc_sect_compunit_symtab.
190
191 2020-04-22 Tom de Vries <tdevries@suse.de>
192
193 PR symtab/25764
194 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
195 in psymtabs.
196
197 2020-04-22 Tom de Vries <tdevries@suse.de>
198
199 PR symtab/25801
200 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
201 symtabs.
202
203 2020-04-22 Tom de Vries <tdevries@suse.de>
204
205 PR symtab/25700
206 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
207 CU if already created.
208
209 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
210
211 * infrun.c (displaced_step_fixup): Switch to the event_thread
212 before calling displaced_step_restore, not after.
213
214 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
215
216 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
217 its inferior is not recorded by us.
218 (record_btrace_target_open): Replace call to
219 all_non_exited_threads () with call to current_inferior
220 ()->non_exited_threads ().
221 (record_btrace_target::stop_recording): Likewise.
222 (record_btrace_target::close): Likewise.
223 (record_btrace_target::wait): Likewise.
224 (record_btrace_target::record_stop_replaying): Likewise.
225
226 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
227
228 * btrace.c (btrace_enable): Throw an error on double enables and
229 when enabling recording fails.
230 (btrace_disable): Throw an error if the thread is not recorded.
231
232 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
233
234 * record-btrace.c (record_btrace_target::fetch_registers): Forward
235 request if we do not have a thread_info.
236
237 2020-04-21 Tom de Vries <tdevries@suse.de>
238
239 PR gdb/25471
240 * thread.c
241 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
242 exception in get_frame_id.
243
244 2020-04-20 Tom Tromey <tromey@adacore.com>
245
246 * python/python.c (struct gdbpy_event): Mark move constructor as
247 noexcept.
248 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
249 constructor as noexcept.
250 * completer.h (struct completion_result): Mark move constructor as
251 noexcept.
252 * completer.c (completion_result::completion_result): Use
253 initialization style. Don't call reset_match_list.
254
255 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
256
257 * MAINTAINERS (Write After Approval): Add myself.
258
259 2020-04-18 Tom Tromey <tom@tromey.com>
260
261 * windows-tdep.c (init_w32_command_list)
262 (w32_prefix_command_valid): Restore.
263 (_initialize_windows_tdep): Call init_w32_command_list.
264
265 2020-04-18 Tom Tromey <tom@tromey.com>
266
267 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
268 * value.c (value_fn_field): Update.
269 * valops.c (find_function_in_inferior)
270 (value_allocate_space_in_inferior): Update.
271 * tui/tui-winsource.c (tui_update_source_windows_with_line):
272 Update.
273 * tui/tui-source.c (tui_source_window::set_contents): Update.
274 * symtab.c (lookup_global_or_static_symbol)
275 (find_function_start_sal_1, skip_prologue_sal)
276 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
277 * symmisc.c (dump_msymbols, dump_symtab_1)
278 (maintenance_print_one_line_table): Update.
279 * symfile.c (init_entry_point_info, section_is_mapped)
280 (list_overlays_command, simple_read_overlay_table)
281 (simple_overlay_update_1): Update.
282 * stap-probe.c (handle_stap_probe): Update.
283 * stabsread.c (dbx_init_float_type, define_symbol)
284 (read_one_struct_field, read_enum_type, read_range_type): Update.
285 * source.c (info_line_command): Update.
286 * python/python.c (gdbpy_source_objfile_script)
287 (gdbpy_execute_objfile_script): Update.
288 * python/py-type.c (save_objfile_types): Update.
289 * python/py-objfile.c (py_free_objfile): Update.
290 * python/py-inferior.c (python_new_objfile): Update.
291 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
292 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
293 (maintenance_check_psymtabs): Update.
294 * printcmd.c (info_address_command): Update.
295 * objfiles.h (struct objfile) <arch>: New method, from
296 get_objfile_arch.
297 (get_objfile_arch): Don't declare.
298 * objfiles.c (get_objfile_arch): Remove.
299 (filter_overlapping_sections): Update.
300 * minsyms.c (msymbol_is_function): Update.
301 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
302 (output_nondebug_symbol): Update.
303 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
304 (mdebug_expand_psymtab): Update.
305 * machoread.c (macho_add_oso_symfile): Update.
306 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
307 Update.
308 * linux-fork.c (checkpoint_command): Update.
309 * linespec.c (convert_linespec_to_sals): Update.
310 * jit.c (finalize_symtab): Update.
311 * infrun.c (insert_exception_resume_from_probe): Update.
312 * ia64-tdep.c (ia64_find_unwind_table): Update.
313 * hppa-tdep.c (internalize_unwinds): Update.
314 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
315 Update.
316 * gcore.c (call_target_sbrk): Update.
317 * elfread.c (record_minimal_symbol, elf_symtab_read)
318 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
319 (elf_gnu_ifunc_resolve_by_got): Update.
320 * dwarf2/read.c (create_addrmap_from_index)
321 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
322 (read_debug_names_from_section)
323 (process_psymtab_comp_unit_reader, add_partial_symbol)
324 (add_partial_subprogram, process_full_comp_unit)
325 (read_file_scope, read_func_scope, read_lexical_block_scope)
326 (read_call_site_scope, dwarf2_ranges_read)
327 (dwarf2_record_block_ranges, dwarf2_add_field)
328 (mark_common_block_symbol_computed, read_tag_pointer_type)
329 (read_tag_string_type, dwarf2_init_float_type)
330 (dwarf2_init_complex_target_type, read_base_type)
331 (partial_die_info::read, partial_die_info::read)
332 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
333 (dwarf2_fetch_die_loc_sect_off): Update.
334 * dwarf2/loc.c (dwarf2_find_location_expression)
335 (class dwarf_evaluate_loc_desc, rw_pieced_value)
336 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
337 (dwarf2_loc_desc_get_symbol_read_needs)
338 (locexpr_describe_location_piece, locexpr_describe_location_1)
339 (loclist_describe_location): Update.
340 * dwarf2/index-write.c (write_debug_names): Update.
341 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
342 * dtrace-probe.c (dtrace_process_dof): Update.
343 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
344 (process_one_symbol): Update.
345 * ctfread.c (ctf_init_float_type, read_base_type): Update.
346 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
347 (coff_read_enum_type): Update.
348 * cli/cli-cmds.c (edit_command, list_command): Update.
349 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
350 * breakpoint.c (create_overlay_event_breakpoint)
351 (create_longjmp_master_breakpoint)
352 (create_std_terminate_master_breakpoint)
353 (create_exception_master_breakpoint, get_sal_arch): Update.
354 * block.c (block_gdbarch): Update.
355 * annotate.c (annotate_source_line): Update.
356
357 2020-04-17 Tom Tromey <tromey@adacore.com>
358
359 * auto-load.c (show_auto_load_cmd): Remove.
360 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
361 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
362 (maintenance_print_arc_command): Remove.
363 * tui/tui-win.c (tui_command): Remove.
364 (tui_get_cmd_list): Use add_basic_prefix_cmd.
365 * tui/tui-layout.c (tui_layout_command): Remove.
366 (_initialize_tui_layout): Use add_basic_prefix_cmd.
367 * python/python.c (user_set_python, user_show_python): Remove.
368 (_initialize_python): Use add_basic_prefix_cmd,
369 add_show_prefix_cmd.
370 * guile/guile.c (set_guile_command, show_guile_command): Remove.
371 (install_gdb_commands): Use add_basic_prefix_cmd,
372 add_show_prefix_cmd.
373 (info_guile_command): Remove.
374 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
375 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
376 add_show_prefix_cmd.
377 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
378 Remove do_set and do_show parameters.
379 * cli/cli-style.c (set_style, show_style): Remove.
380 (_initialize_cli_style): Use add_basic_prefix_cmd,
381 add_show_prefix_cmd.
382 (cli_style_option::add_setshow_commands): Remove do_set and
383 do_show parameters.
384 (cli_style_option::add_setshow_commands): Use
385 add_basic_prefix_cmd, add_show_prefix_cmd.
386 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
387 (set_style_name): Remove.
388 * cli/cli-dump.c (dump_command, append_command): Remove.
389 (srec_dump_command, ihex_dump_command, verilog_dump_command)
390 (tekhex_dump_command, binary_dump_command)
391 (binary_append_command): Remove.
392 (_initialize_cli_dump): Use add_basic_prefix_cmd.
393 * windows-tdep.c (w32_prefix_command_valid): Remove global.
394 (init_w32_command_list): Remove; move into ...
395 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
396 * valprint.c (set_print, show_print, set_print_raw)
397 (show_print_raw): Remove.
398 (_initialize_valprint): Use add_basic_prefix_cmd,
399 add_show_prefix_cmd.
400 * typeprint.c (set_print_type, show_print_type): Remove.
401 (_initialize_typeprint): Use add_basic_prefix_cmd,
402 add_show_prefix_cmd.
403 * record.c (set_record_command, show_record_command): Remove.
404 (_initialize_record): Use add_basic_prefix_cmd,
405 add_show_prefix_cmd.
406 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
407 add_show_prefix_cmd.
408 (info_command, show_command, set_debug, show_debug): Remove.
409 * top.h (set_history, show_history): Don't declare.
410 * top.c (set_history, show_history): Remove.
411 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
412 (unset_tdesc_cmd): Remove.
413 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
414 add_show_prefix_cmd.
415 * symtab.c (info_module_command): Remove.
416 (_initialize_symtab): Use add_basic_prefix_cmd.
417 * symfile.c (overlay_command): Remove.
418 (_initialize_symfile): Use add_basic_prefix_cmd.
419 * sparc64-tdep.c (info_adi_command): Remove.
420 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
421 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
422 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
423 add_show_prefix_cmd.
424 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
425 (_initialize_serial): Use add_basic_prefix_cmd,
426 add_show_prefix_cmd.
427 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
428 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
429 add_show_prefix_cmd.
430 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
431 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
432 add_show_prefix_cmd.
433 * riscv-tdep.c (show_riscv_command, set_riscv_command)
434 (show_debug_riscv_command, set_debug_riscv_command): Remove.
435 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
436 add_show_prefix_cmd.
437 * remote.c (remote_command, set_remote_cmd): Remove.
438 (_initialize_remote): Use add_basic_prefix_cmd.
439 * record-full.c (set_record_full_command)
440 (show_record_full_command): Remove.
441 (_initialize_record_full): Use add_basic_prefix_cmd,
442 add_show_prefix_cmd.
443 * record-btrace.c (cmd_set_record_btrace)
444 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
445 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
446 (cmd_show_record_btrace_pt): Remove.
447 (_initialize_record_btrace): Use add_basic_prefix_cmd,
448 add_show_prefix_cmd.
449 * ravenscar-thread.c (set_ravenscar_command)
450 (show_ravenscar_command): Remove.
451 (_initialize_ravenscar): Use add_basic_prefix_cmd,
452 add_show_prefix_cmd.
453 * mips-tdep.c (show_mips_command, set_mips_command)
454 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
455 add_show_prefix_cmd.
456 * maint.c (maintenance_command, maintenance_info_command)
457 (maintenance_check_command, maintenance_print_command)
458 (maintenance_set_cmd, maintenance_show_cmd): Remove.
459 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
460 add_show_prefix_cmd.
461 (show_per_command_cmd): Remove.
462 * maint-test-settings.c (maintenance_set_test_settings_cmd):
463 Remove.
464 (maintenance_show_test_settings_cmd): Remove.
465 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
466 add_show_prefix_cmd.
467 * maint-test-options.c (maintenance_test_options_command):
468 Remove.
469 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
470 * macrocmd.c (macro_command): Remove
471 (_initialize_macrocmd): Use add_basic_prefix_cmd.
472 * language.c (set_check, show_check): Remove.
473 (_initialize_language): Use add_basic_prefix_cmd,
474 add_show_prefix_cmd.
475 * infcmd.c (unset_command): Remove.
476 (_initialize_infcmd): Use add_basic_prefix_cmd.
477 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
478 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
479 add_show_prefix_cmd.
480 * go32-nat.c (go32_info_dos_command): Remove.
481 (_initialize_go32_nat): Use add_basic_prefix_cmd.
482 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
483 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
484 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
485 (_initialize_frame): Use add_basic_prefix_cmd,
486 add_show_prefix_cmd.
487 * dcache.c (set_dcache_command, show_dcache_command): Remove.
488 (_initialize_dcache): Use add_basic_prefix_cmd,
489 add_show_prefix_cmd.
490 * cp-support.c (maint_cplus_command): Remove.
491 (_initialize_cp_support): Use add_basic_prefix_cmd.
492 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
493 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
494 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
495 add_basic_prefix_cmd, add_show_prefix_cmd.
496 * breakpoint.c (save_command): Remove.
497 (_initialize_breakpoint): Use add_basic_prefix_cmd.
498 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
499 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
500 add_show_prefix_cmd.
501 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
502 (set_ada_command, show_ada_command): Remove.
503 (_initialize_ada_language): Use add_basic_prefix_cmd,
504 add_show_prefix_cmd.
505 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
506
507 2020-04-16 Kamil Rytarowski <n54@gmx.com>
508
509 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
510 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
511
512 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
515 warning messages.
516
517 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
518
519 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
520 import table is not at beginning of .idata section.
521
522 2020-04-16 Pedro Alves <palves@redhat.com>
523
524 * inferior.c (delete_inferior): Use delete operator directly
525 instead of delete_program_space.
526 * progspace.c (add_program_space): New, factored out from
527 program_space::program_space.
528 (remove_program_space): New, factored out from
529 delete_program_space.
530 (program_space::program_space): Remove intro comment. Rewrite.
531 (program_space::~program_space): Remove intro comment. Call
532 remove_program_space.
533 (delete_program_space): Delete.
534 * progspace.h (program_space::program_space): Make explicit. Move
535 intro comment here, adjusted.
536 (program_space::~program_space): Move intro comment here,
537 adjusted.
538 (delete_program_space): Remove.
539
540 2020-04-16 Tom Tromey <tromey@adacore.com>
541
542 * windows-nat.c (windows_nat::handle_access_violation): New
543 function.
544 * nat/windows-nat.h (handle_access_violation): Declare.
545 * nat/windows-nat.c (handle_exception): Move Cygwin code to
546 windows-nat.c. Call handle_access_violation.
547
548 2020-04-16 Tom de Vries <tdevries@suse.de>
549
550 PR symtab/25791
551 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
552 CUs without psymtab.
553
554 2020-04-16 Kevin Buettner <kevinb@redhat.com>
555
556 * python/python.c (do_start_initialization): Don't call
557 PyEval_InitThreads for Python 3.9 and beyond.
558
559 2020-04-15 Kamil Rytarowski <n54@gmx.com>
560
561 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
562 thread functions.
563 (obsd_nat_target::wait): Likewise.
564
565 2020-04-15 Tom Tromey <tromey@adacore.com>
566
567 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
568 (DEBUG_EXCEPT): Use debug_printf.
569
570 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * completer.c (class completion_tracker::completion_hash_entry)
573 <hash_name>: New member function.
574 (completion_tracker::discard_completions): New callback to hash a
575 completion_hash_entry, pass this to htab_create_alloc.
576
577 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
578
579 * windows-nat.c (windows_make_so): Warn rather than stopping with
580 an error if realpath() fails.
581
582 2020-04-14 Kamil Rytarowski <n54@gmx.com>
583
584 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
585 (nbsd_nat_target::info_proc): Add do_status.
586
587 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
588 Tom de Vries <tdevries@suse.de>
589
590 PR symtab/25718
591 * psympriv.h (struct partial_symtab::read_symtab)
592 (struct partial_symtab::expand_psymtab)
593 (struct partial_symtab::read_dependencies): Update comments.
594 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
595 read_symtab for includer.
596 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
597 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
598 (struct dwarf2_include_psymtab::m_readin): Remove.
599 (struct dwarf2_include_psymtab::includer): New member function.
600 (dwarf2_psymtab::expand_psymtab): Assert !readin.
601
602 2020-04-14 Tom de Vries <tdevries@suse.de>
603
604 PR symtab/25720
605 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
606 with NULL symbol_matcher and lookup_name.
607 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
608 and lookup_name.
609 * dwarf2/read.c (dw2_expand_symtabs_matching)
610 (dw2_debug_names_expand_symtabs_matching): Same.
611 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
612 Make lookup_name a pointer. Update comment.
613 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
614 lookup_name being a pointer.
615 * symfile.c (expand_symtabs_matching): Same.
616 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
617 * linespec.c (iterate_over_all_matching_symtabs): Same.
618
619 2020-04-13 Tom Tromey <tom@tromey.com>
620
621 * run-on-main-thread.c: Update include.
622 * unittests/main-thread-selftests.c: Update include.
623 * tui/tui-win.c: Update include.
624 * tui/tui-io.c: Update include.
625 * tui/tui-interp.c: Update include.
626 * tui/tui-hooks.c: Update include.
627 * top.h: Update include.
628 * top.c: Update include.
629 * ser-base.c: Update include.
630 * remote.c: Update include.
631 * remote-notif.c: Update include.
632 * remote-fileio.c: Update include.
633 * record-full.c: Update include.
634 * record-btrace.c: Update include.
635 * python/python.c: Update include.
636 * posix-hdep.c: Update include.
637 * mingw-hdep.c: Update include.
638 * mi/mi-main.c: Update include.
639 * mi/mi-interp.c: Update include.
640 * main.c: Update include.
641 * linux-nat.c: Update include.
642 * interps.c: Update include.
643 * infrun.c: Update include.
644 * inf-loop.c: Update include.
645 * event-top.c: Update include.
646 * event-loop.c: Move to ../gdbsupport/.
647 * event-loop.h: Move to ../gdbsupport/.
648 * async-event.h: Update include.
649 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
650
651 2020-04-13 Tom Tromey <tom@tromey.com>
652
653 * tui/tui-win.c: Include async-event.h.
654 * remote.c: Include async-event.h.
655 * remote-notif.c: Include async-event.h.
656 * record-full.c: Include async-event.h.
657 * record-btrace.c: Include async-event.h.
658 * infrun.c: Include async-event.h.
659 * event-top.c: Include async-event.h.
660 * event-loop.h: Move some declarations to async-event.h.
661 * event-loop.c: Don't include ser-event.h or top.h. Move some
662 code to async-event.c.
663 * async-event.h: New file.
664 * async-event.c: New file.
665 * Makefile.in (COMMON_SFILES): Add async-event.c.
666 (HFILES_NO_SRCDIR): Add async-event.h.
667
668 2020-04-13 Tom Tromey <tom@tromey.com>
669
670 * utils.c (flush_streams): New function.
671 * event-loop.c (gdb_wait_for_event): Call flush_streams.
672
673 2020-04-13 Tom Tromey <tom@tromey.com>
674
675 * event-loop.c (handle_file_event): Use warning, not
676 printf_unfiltered.
677
678 2020-04-13 Tom Tromey <tom@tromey.com>
679
680 * event-loop.c: Include <chrono>.
681
682 2020-04-13 Tom Tromey <tom@tromey.com>
683
684 * gdb_select.h: Move to ../gdbsupport/.
685 * event-loop.c: Update include path.
686 * top.c: Update include path.
687 * ser-base.c: Update include path.
688 * ui-file.c: Update include path.
689 * ser-tcp.c: Update include path.
690 * guile/scm-ports.c: Update include path.
691 * posix-hdep.c: Update include path.
692 * ser-unix.c: Update include path.
693 * gdb_usleep.c: Update include path.
694 * mingw-hdep.c: Update include path.
695 * inflow.c: Update include path.
696 * infrun.c: Update include path.
697 * event-top.c: Update include path.
698
699 2020-04-13 Tom Tromey <tom@tromey.com>
700
701 * configure: Rebuild.
702 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
703
704 2020-04-13 Tom Tromey <tom@tromey.com>
705
706 * event-loop.h (start_event_loop): Don't declare.
707 * event-loop.c (start_event_loop): Move...
708 * main.c (start_event_loop): ...here. Now static.
709
710 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
711
712 * MAINTAINERS: Update my email address.
713
714 2020-04-12 Kamil Rytarowski <n54@gmx.com>
715
716 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
717 IP_ALL.
718
719 2020-04-12 Kamil Rytarowski <n54@gmx.com>
720
721 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
722 (nbsd_nat_target::info_proc): Add do_cmdline.
723
724 2020-04-12 Kamil Rytarowski <n54@gmx.com>
725
726 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
727 (nbsd_nat_target::info_proc): Add do_cwd.
728
729 2020-04-12 Kamil Rytarowski <n54@gmx.com>
730
731 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
732
733 2020-04-11 Kamil Rytarowski <n54@gmx.com>
734
735 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
736 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
737 (nbsd_nat_target::info_proc): New functions.
738 * nbsd-nat.c (kinfo_get_vmmap): New function.
739 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
740 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
741 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
742 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
743 functions.
744 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
745 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
746 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
747 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
748 (KINFO_VME_FLAG_GROWS_DOWN): New.
749
750 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
751
752 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
753 bit shift.
754
755 2020-04-10 Tom Tromey <tromey@adacore.com>
756
757 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
758
759 2020-04-10 Tom Tromey <tromey@adacore.com>
760
761 * symtab.c (get_symbol_address, get_msymbol_address): Skip
762 separate debug files.
763
764 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
765
766 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
767 Move to...
768 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
769 ... here.
770 * windows-nat.c (windows_nat_target::get_windows_debug_event):
771 Check for STATUS_WX86_BREAKPOINT.
772 (windows_nat_target::wait): Same.
773
774 2020-04-10 Tom de Vries <tdevries@suse.de>
775
776 PR cli/25808
777 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
778
779 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
780
781 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
782 (Write After Approval): Remove Tom de Vries.
783
784 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
785
786 revert partially:
787 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
788
789 * buildsym.c (record_line): Fix undefined behavior and preserve
790 lines at eof.
791
792 2020-04-09 Kamil Rytarowski <n54@gmx.com>
793
794 * auxv.h (svr4_auxv_parse): New.
795 * auxv.c (default_auxv_parse): Split into default_auxv_parse
796 and generic_auxv_parse.
797 (svr4_auxv_parse): Add.
798 * obsd-tdep.c: Include "auxv.h".
799 (obsd_auxv_parse): Remove.
800 (obsd_init_abi): Remove comment.
801 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
802 from `obsd_auxv_parse' to `svr4_auxv_parse'.
803 * nbsd-tdep.c: Include "auxv.h".
804 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
805
806 2020-04-08 Tom Tromey <tromey@adacore.com>
807
808 * nat/windows-nat.h (last_wait_event): Don't declare.
809 (wait_for_debug_event): Update comment.
810 * nat/windows-nat.c (last_wait_event): Now static.
811
812 2020-04-08 Tom Tromey <tromey@adacore.com>
813
814 * windows-nat.c (wait_for_debug_event): Move to
815 nat/windows-nat.c.
816 * nat/windows-nat.h (wait_for_debug_event): Declare.
817 * nat/windows-nat.c (wait_for_debug_event): Move from
818 windows-nat.c. No longer static.
819
820 2020-04-08 Tom Tromey <tromey@adacore.com>
821
822 * windows-nat.c (get_windows_debug_event): Use
823 fetch_pending_stop.
824 * nat/windows-nat.h (fetch_pending_stop): Declare.
825 * nat/windows-nat.c (fetch_pending_stop): New function.
826
827 2020-04-08 Tom Tromey <tromey@adacore.com>
828
829 * windows-nat.c (windows_continue): Use matching_pending_stop and
830 continue_last_debug_event.
831 * nat/windows-nat.h (matching_pending_stop)
832 (continue_last_debug_event): Declare.
833 * nat/windows-nat.c (DEBUG_EVENTS): New define.
834 (matching_pending_stop, continue_last_debug_event): New
835 functions.
836
837 2020-04-08 Tom Tromey <tromey@adacore.com>
838
839 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
840 (handle_exception_result): Move to nat/windows-nat.h.
841 (DEBUG_EXCEPTION_SIMPLE): Remove.
842 (windows_nat::handle_ms_vc_exception): New function.
843 (handle_exception): Move to nat/windows-nat.c.
844 (get_windows_debug_event): Update.
845 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
846 nat/windows-nat.c.
847 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
848 (handle_exception_result): Move from windows-nat.c.
849 (handle_exception): Declare.
850 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
851 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
852 windows-nat.c.
853
854 2020-04-08 Tom Tromey <tromey@adacore.com>
855
856 * windows-nat.c (exception_count, event_count): Remove.
857 (handle_exception, get_windows_debug_event)
858 (do_initial_windows_stuff): Update.
859
860 2020-04-08 Tom Tromey <tromey@adacore.com>
861
862 * windows-nat.c (windows_nat::handle_load_dll)
863 (windows_nat::handle_unload_dll): Rename. No longer static.
864 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
865 Declare.
866
867 2020-04-08 Tom Tromey <tromey@adacore.com>
868
869 * complaints.h (stop_whining): Declare at top-level.
870 (complaint): Don't declare stop_whining.
871
872 2020-04-08 Tom Tromey <tromey@adacore.com>
873
874 * windows-nat.c (windows_nat::handle_output_debug_string):
875 Rename. No longer static.
876 * nat/windows-nat.h (handle_output_debug_string): Declare.
877
878 2020-04-08 Tom Tromey <tromey@adacore.com>
879
880 * windows-nat.c (current_process_handle, current_process_id)
881 (main_thread_id, last_sig, current_event, last_wait_event)
882 (current_windows_thread, desired_stop_thread_id, pending_stops)
883 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
884 (display_selectors, fake_create_process)
885 (get_windows_debug_event): Update.
886 * nat/windows-nat.h (current_process_handle, current_process_id)
887 (main_thread_id, last_sig, current_event, last_wait_event)
888 (current_windows_thread, desired_stop_thread_id, pending_stops)
889 (struct pending_stop, siginfo_er): Move from windows-nat.c.
890 * nat/windows-nat.c (current_process_handle, current_process_id)
891 (main_thread_id, last_sig, current_event, last_wait_event)
892 (current_windows_thread, desired_stop_thread_id, pending_stops)
893 (siginfo_er): New globals. Move from windows-nat.c.
894
895 2020-04-08 Tom Tromey <tromey@adacore.com>
896
897 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
898 (handle_load_dll): Update.
899 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
900
901 2020-04-08 Tom Tromey <tromey@adacore.com>
902
903 * windows-nat.c (enum thread_disposition_type): Move to
904 nat/windows-nat.h.
905 (windows_nat::thread_rec): Rename from thread_rec. No longer
906 static.
907 (windows_add_thread, windows_nat_target::fetch_registers)
908 (windows_nat_target::store_registers, handle_exception)
909 (windows_nat_target::resume, get_windows_debug_event)
910 (windows_nat_target::get_tib_address)
911 (windows_nat_target::thread_name)
912 (windows_nat_target::thread_alive): Update.
913 * nat/windows-nat.h (enum thread_disposition_type): Move from
914 windows-nat.c.
915 (thread_rec): Declare.
916
917 2020-04-08 Tom Tromey <tromey@adacore.com>
918
919 * windows-nat.c: Add "using namespace".
920 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
921 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
922
923 2020-04-08 Tom Tromey <tromey@adacore.com>
924
925 * nat/windows-nat.h (struct windows_thread_info): Declare
926 destructor.
927 * nat/windows-nat.c (~windows_thread_info): New.
928
929 2020-04-08 Tom Tromey <tromey@adacore.com>
930
931 PR gdb/22992
932 * windows-nat.c (current_event): Update comment.
933 (last_wait_event, desired_stop_thread_id): New globals.
934 (struct pending_stop): New.
935 (pending_stops): New global.
936 (windows_nat_target) <stopped_by_sw_breakpoint>
937 <supports_stopped_by_sw_breakpoint>: New methods.
938 (windows_fetch_one_register): Add assertions. Adjust PC.
939 (windows_continue): Handle pending stops. Suspend other threads
940 when stepping. Use last_wait_event
941 (wait_for_debug_event): New function.
942 (get_windows_debug_event): Use wait_for_debug_event. Handle
943 pending stops. Queue spurious stops.
944 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
945 (windows_nat_target::kill): Use wait_for_debug_event.
946 * nat/windows-nat.h (struct windows_thread_info)
947 <stopped_at_software_breakpoint>: New field.
948 * nat/windows-nat.c (windows_thread_info::resume): Clear
949 stopped_at_software_breakpoint.
950
951 2020-04-08 Tom Tromey <tromey@adacore.com>
952
953 * windows-nat.c (enum thread_disposition_type): New.
954 (thread_rec): Replace "get_context" parameter with "disposition";
955 change type.
956 (windows_add_thread, windows_nat_target::fetch_registers)
957 (windows_nat_target::store_registers, handle_exception)
958 (windows_nat_target::resume, get_windows_debug_event)
959 (windows_nat_target::get_tib_address)
960 (windows_nat_target::thread_name)
961 (windows_nat_target::thread_alive): Update.
962
963 2020-04-08 Tom Tromey <tromey@adacore.com>
964
965 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
966 (windows_continue): Use windows_continue::resume.
967 * nat/windows-nat.h (struct windows_thread_info) <suspend,
968 resume>: Declare new methods.
969 * nat/windows-nat.c: New file.
970 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
971
972 2020-04-08 Tom Tromey <tromey@adacore.com>
973
974 * windows-nat.c (windows_add_thread, windows_delete_thread)
975 (windows_nat_target::fetch_registers)
976 (windows_nat_target::store_registers, fake_create_process)
977 (windows_nat_target::resume, windows_nat_target::resume)
978 (get_windows_debug_event, windows_nat_target::wait)
979 (windows_nat_target::pid_to_str)
980 (windows_nat_target::get_tib_address)
981 (windows_nat_target::get_ada_task_ptid)
982 (windows_nat_target::thread_name)
983 (windows_nat_target::thread_alive): Use lwp, not tid.
984
985 2020-04-08 Tom Tromey <tromey@adacore.com>
986
987 * windows-nat.c (handle_exception)
988 (windows_nat_target::thread_name): Update.
989 * nat/windows-nat.h (windows_thread_info): Remove destructor.
990 <name>: Now unique_xmalloc_ptr.
991
992 2020-04-08 Tom Tromey <tromey@adacore.com>
993
994 * windows-nat.c (thread_rec)
995 (windows_nat_target::fetch_registers): Update.
996 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
997 Update comment.
998 <debug_registers_changed, reload_context>: Now bool.
999
1000 2020-04-08 Tom Tromey <tromey@adacore.com>
1001
1002 * windows-nat.c (windows_add_thread): Use new.
1003 (windows_init_thread_list, windows_delete_thread): Use delete.
1004 (get_windows_debug_event): Update.
1005 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
1006 destructor, and initializers.
1007
1008 2020-04-08 Tom Tromey <tromey@adacore.com>
1009
1010 * windows-nat.c (struct windows_thread_info): Remove.
1011 * nat/windows-nat.h: New file.
1012
1013 2020-04-08 Tom Tromey <tromey@adacore.com>
1014
1015 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
1016 (thread_rec, windows_add_thread, windows_delete_thread)
1017 (windows_continue): Update.
1018
1019 2020-04-08 Tom Tromey <tromey@adacore.com>
1020
1021 * windows-nat.c (struct windows_thread_info): Remove typedef.
1022 (thread_head): Remove.
1023 (thread_list): New global.
1024 (thread_rec, windows_add_thread, windows_init_thread_list)
1025 (windows_delete_thread, windows_continue): Update.
1026
1027 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1028
1029 * windows-tdep.h (windows_init_abi): Add comment.
1030 (cygwin_init_abi): New declaration.
1031 * windows-tdep.c: Split signal enumeration in two, one for
1032 Windows and one for Cygwin.
1033 (windows_gdb_signal_to_target): Only deal with signal of the
1034 Windows OS ABI.
1035 (cygwin_gdb_signal_to_target): New function.
1036 (windows_init_abi): Rename to windows_init_abi_common, don't set
1037 gdb_signal_to_target gdbarch method. Add new new function with
1038 this name.
1039 (cygwin_init_abi): New function.
1040 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
1041 comment. Don't call windows_init_abi.
1042 (amd64_windows_init_abi): Add comment, call windows_init_abi.
1043 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
1044 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
1045 i386_windows_init_abi_common, don't call windows_init_abi. Add
1046 a new function of this name.
1047 (i386_cygwin_init_abi): New function.
1048 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
1049 OS ABI Cygwin.
1050
1051 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
1052
1053 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
1054 parameter.c.
1055 (dwarf2_read_gdb_index): Update.
1056
1057 2020-04-07 Kamil Rytarowski <n54@gmx.com>
1058
1059 * nbsd-tdep.c: Include "objfiles.h".
1060 (nbsd_skip_solib_resolver): New.
1061 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
1062
1063 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1064
1065 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
1066 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
1067 with DW_LLE_base_addressx are being emitted in DWARFv5.
1068 Add the newly added kind DW_LOC_OFFSET_PAIR also.
1069 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
1070 unsigned integer.
1071
1072 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1073
1074 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
1075 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
1076 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
1077 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
1078 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
1079 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
1080 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
1081
1082
1083 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
1084
1085 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
1086 (read_loclist_index): New function definition.
1087 (lookup_loclist_base): New function definition.
1088 (read_loclist_header): New function definition.
1089 (dwarf2_cu): Add loclist_base and loclist_header field.
1090 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
1091 (read_full_die_1): Read the value of DW_AT_loclists_base.
1092 (read_attribute_reprocess): Handle DW_FORM_loclistx.
1093 (read_attribute_value): Handle DW_FORM_loclistx.
1094 (skip_one_die): Handle DW_FORM_loclistx.
1095 (loclist_header): New structure declaration.
1096 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
1097
1098 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1099
1100 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
1101 constructor. Remove `addr` parameter from other constructor and
1102 add `per_cu` parameter.
1103 * dwarf2/read.c (create_partial_symtab): Update.
1104
1105 2020-04-07 Tom de Vries <tdevries@suse.de>
1106
1107 PR symtab/25796
1108 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
1109 (partial_die_info::fixup): Inherit has_const_value.
1110
1111 2020-04-07 Tom de Vries <tdevries@suse.de>
1112
1113 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
1114 symbols without address.
1115
1116 2020-04-06 Kamil Rytarowski <n54@gmx.com>
1117
1118 * nbsd-nat.h (struct thread_info): Add forward declaration.
1119 (nbsd_nat_target::thread_alive): Add.
1120 (nbsd_nat_target::thread_name): Likewise.
1121 (nbsd_nat_target::update_thread_list): Likewise.
1122 (update_thread_list::post_attach): Likewise.
1123 (post_attach::pid_to_str): Likewise.
1124 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
1125 (nbsd_thread_lister): Add.
1126 (nbsd_nat_target::thread_alive): Likewise.
1127 (nbsd_nat_target::thread_name): Likewise.
1128 (nbsd_add_threads): Likewise.
1129 (update_thread_list::post_attach): Likewise.
1130 (nbsd_nat_target::update_thread_list): Likewise.
1131 (post_attach::pid_to_str): Likewise.
1132
1133 2020-04-06 Tom Tromey <tromey@adacore.com>
1134
1135 * ada-valprint.c (print_variant_part): Extract the variant field.
1136 (print_field_values): Use the field as the outer value when
1137 recursing.
1138
1139 2020-04-06 Tom Tromey <tromey@adacore.com>
1140
1141 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
1142 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
1143 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
1144 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
1145 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
1146
1147 2020-04-06 Tom Tromey <tromey@adacore.com>
1148
1149 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
1150 TYPE_CODE_ERROR.
1151
1152 2020-04-06 Kamil Rytarowski <n54@gmx.com>
1153
1154 * nbsd-tdep.c: Include "gdbarch.h".
1155 Define enum with NetBSD signal numbers.
1156 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
1157 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
1158 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
1159 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
1160 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
1161 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
1162 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
1163 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
1164 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
1165 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
1166 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
1167 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
1168
1169 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
1170
1171 PR gdb/25325
1172 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
1173
1174 2020-04-03 Tom Tromey <tromey@adacore.com>
1175
1176 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
1177 Read constant block.
1178
1179 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1180
1181 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
1182 (gdb_bfd_get_full_section_contents): New declaration.
1183 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
1184 * windows-tdep.c (is_linked_with_cygwin_dll): Use
1185 gdb_bfd_get_full_section_contents.
1186
1187 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1188
1189 * exec.c (build_section_table): Replace internal_error with
1190 gdb_assert.
1191 (section_table_xfer_memory_partial): Likewise.
1192 * mdebugread.c (parse_partial_symbols): Likewise.
1193 * psymtab.c (lookup_partial_symbol): Likewise.
1194 * utils.c (wrap_here): Likewise.
1195
1196 2020-04-02 Tom Tromey <tromey@adacore.com>
1197
1198 * f-lang.c (build_fortran_types): Use arch_type to initialize
1199 builtin_complex_s32 in the TYPE_CODE_ERROR case.
1200
1201 2020-04-02 Tom Tromey <tromey@adacore.com>
1202
1203 * dwarf2/read.c (partial_die_info::read): Do not create a vector
1204 of attributes.
1205
1206 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
1207 Bernd Edlinger <bernd.edlinger@hotmail.de>
1208 Tom Tromey <tromey@adacore.com>
1209
1210 * buildsym.c (buildsym_compunit::record_line): Remove
1211 deduplication code.
1212
1213 2020-04-02 Tom de Vries <tdevries@suse.de>
1214
1215 PR ada/24671
1216 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
1217
1218 2020-04-02 Tom de Vries <tdevries@suse.de>
1219
1220 * dwarf2/read.c (dwarf2_gdb_index_functions,
1221 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
1222 NULL.
1223 * psymtab.c (psym_lookup_global_symbol_language): New function.
1224 (psym_functions): Init psym_lookup_global_symbol_language with
1225 psym_lookup_global_symbol_language.
1226 * symfile-debug.c (debug_sym_quick_functions): Init
1227 lookup_global_symbol_language with NULL.
1228 * symfile.c (set_initial_language): Remove fixme comment.
1229 * symfile.h (struct quick_symbol_functions): Add
1230 lookup_global_symbol_language.
1231 * symtab.c (find_quick_global_symbol_language): New function.
1232 (find_main_name): Use find_quick_global_symbol_language.
1233
1234 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
1235
1236 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
1237
1238 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1239
1240 * buildsym.c (record_line): Fix undefined behavior and preserve
1241 lines at eof.
1242
1243 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
1244
1245 * buildsym.c (record_line): Fix the resizing condition.
1246
1247 2020-04-01 Tom Tromey <tom@tromey.com>
1248
1249 * value.h (value_literal_complex): Add comment.
1250 * valops.c (value_literal_complex): Refer to value.h.
1251
1252 2020-04-01 Tom Tromey <tom@tromey.com>
1253
1254 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
1255 (scalar_type): New rule, from typebase.
1256 (typebase): Use scalar_type. Recognize complex types.
1257 (field_name): Handle FLOAT_KEYWORD.
1258 (ident_tokens): Add _Complex and __complex__.
1259
1260 2020-04-01 Tom Tromey <tom@tromey.com>
1261
1262 PR exp/25299:
1263 * valarith.c (promotion_type, complex_binop): New functions.
1264 (scalar_binop): Handle complex numbers. Use promotion_type.
1265 (value_pos, value_neg, value_complement): Handle complex numbers.
1266
1267 2020-04-01 Tom Tromey <tom@tromey.com>
1268
1269 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
1270 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
1271 (parse_number): Handle complex numbers.
1272
1273 2020-04-01 Tom Tromey <tom@tromey.com>
1274
1275 * c-valprint.c (c_decorations): Change complex suffix to "i".
1276
1277 2020-04-01 Tom Tromey <tom@tromey.com>
1278
1279 * valprint.c (generic_value_print_complex): Use accessors.
1280 * value.h (value_real_part, value_imaginary_part): Declare.
1281 * valops.c (value_real_part, value_imaginary_part): New
1282 functions.
1283 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
1284
1285 2020-04-01 Tom Tromey <tom@tromey.com>
1286
1287 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
1288 (read_range_type): Update.
1289 * mdebugread.c (basic_type): Update.
1290 * go-lang.c (build_go_types): Use init_complex_type.
1291 * gdbtypes.h (struct main_type) <complex_type>: New member.
1292 (init_complex_type): Update.
1293 (arch_complex_type): Don't declare.
1294 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
1295 Make name if none given. Use alloc_type_copy. Look for cached
1296 complex type.
1297 (arch_complex_type): Remove.
1298 (gdbtypes_post_init): Use init_complex_type.
1299 * f-lang.c (build_fortran_types): Use init_complex_type.
1300 * dwarf2/read.c (read_base_type): Update.
1301 * d-lang.c (build_d_types): Use init_complex_type.
1302 * ctfread.c (read_base_type): Update.
1303
1304 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1305
1306 * infrun.c (stop_all_threads): Update assertion, plus when
1307 stopping threads, take into account that we might be trying
1308 to stop an all-stop target.
1309 (stop_waiting): Call 'stop_all_threads' if there exists a
1310 non-stop target.
1311
1312 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1313
1314 * target.h (exists_non_stop_target): New function declaration.
1315 * target.c (exists_non_stop_target): New function.
1316
1317 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
1318
1319 PR gdb/24789
1320 * eval.c (is_integral_or_integral_reference): New function.
1321 (evaluate_subexp_standard): Allow integer references in
1322 pointer arithmetic.
1323
1324 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1325
1326 * remote.c (remote_target::remote_parse_stop_reply): Remove the
1327 check for no ptid in the stop reply when the target is non-stop.
1328
1329 2020-04-01 Tom Tromey <tromey@adacore.com>
1330
1331 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
1332 "name" parameter to rvalue reference. Initialize m_name_holder.
1333 <lookup_name_info>: New overloads.
1334 <name>: Return gdb::string_view.
1335 <c_str>: New method.
1336 <make_ignore_params>: Update.
1337 <search_name_hash>: Update.
1338 <language_lookup_name>: Return const char *.
1339 <m_name>: Change type.
1340 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
1341 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
1342 (lookup_name_info::match_any): Update.
1343 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
1344 Update.
1345 * minsyms.c (linkage_name_str): Update.
1346 * language.c (default_symbol_name_matcher): Update.
1347 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
1348 Update.
1349 * ada-lang.c (ada_fold_name): Change parameter to string_view.
1350 (ada_lookup_name_info::ada_lookup_name_info): Update.
1351 (literal_symbol_name_matcher): Update.
1352
1353 2020-04-01 Tom Tromey <tromey@adacore.com>
1354
1355 * psymtab.c (psymtab_search_name): Remove function.
1356 (psym_lookup_symbol): Create search name and lookup name here.
1357 (lookup_partial_symbol): Remove "name" parameter; add
1358 lookup_name.
1359 (psym_expand_symtabs_for_function): Update.
1360
1361 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
1362
1363 PR tui/25597:
1364 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
1365
1366 2020-03-31 Tom Tromey <tromey@adacore.com>
1367
1368 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
1369 memcpy.
1370
1371 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
1372
1373 * features/riscv/32bit-csr.xml: Regenerated.
1374 * features/riscv/64bit-csr.xml: Regenerated.
1375
1376 2020-03-30 Tom Tromey <tromey@adacore.com>
1377
1378 * ada-valprint.c (print_variant_part): Update.
1379 * ada-lang.h (ada_which_variant_applies): Update.
1380 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
1381 outer_valaddr parameters; replace with "outer" value parameter.
1382 (to_fixed_variant_branch_type): Update.
1383
1384 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1385
1386 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
1387 <list>. Remove inclusion of observable.h.
1388 (PPC_DEBUG_CURRENT_VERSION): Move up define.
1389 (struct arch_lwp_info): New struct.
1390 (class ppc_linux_dreg_interface): New class.
1391 (struct ppc_linux_process_info): New struct.
1392 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
1393 <low_new_clone, low_forget_process, low_prepare_to_resume>
1394 <copy_thread_dreg_state, mark_thread_stale>
1395 <mark_debug_registers_changed, register_hw_breakpoint>
1396 <clear_hw_breakpoint, register_wp, clear_wp>
1397 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
1398 <num_memory_accesses, get_trigger_type>
1399 <create_watchpoint_request, hwdebug_point_cmp>
1400 <init_arch_lwp_info, get_arch_lwp_info>
1401 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
1402 methods.
1403 <struct ptid_hash>: New inner struct.
1404 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
1405 members.
1406 (saved_dabr_value, hwdebug_info, max_slots_number)
1407 (struct hw_break_tuple, struct thread_points, ppc_threads)
1408 (have_ptrace_hwdebug_interface)
1409 (hwdebug_find_thread_points_by_tid)
1410 (hwdebug_insert_point, hwdebug_remove_point): Remove.
1411 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
1412 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
1413 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
1414 use m_dreg_interface.
1415 (hwdebug_point_cmp): Change to...
1416 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
1417 reference arguments instead of pointers.
1418 (ppc_linux_nat_target::ranged_break_num_registers): Use
1419 m_dreg_interface.
1420 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
1421 m_dreg_interface. Call register_hw_breakpoint.
1422 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
1423 m_dreg_interface. Call clear_hw_breakpoint.
1424 (get_trigger_type): Change to...
1425 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
1426 comment.
1427 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
1428 use m_dreg_interface. Call register_hw_breakpoint.
1429 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
1430 use m_dreg_interface. Call clear_hw_breakpoint.
1431 (can_use_watchpoint_cond_accel): Change to...
1432 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
1433 method. Update comment, use m_dreg_interface and
1434 m_process_info.
1435 (calculate_dvc): Change to...
1436 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
1437 m_dreg_interface.
1438 (num_memory_accesses): Change to...
1439 (ppc_linux_nat_target::num_memory_accesses): ...this method.
1440 (check_condition): Change to...
1441 (ppc_linux_nat_target::check_condition): ...this method.
1442 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
1443 comment, use m_dreg_interface.
1444 (create_watchpoint_request): Change to...
1445 (ppc_linux_nat_target::create_watchpoint_request): ...this
1446 method. Use m_dreg_interface.
1447 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
1448 m_dreg_interface. Call register_hw_breakpoint or register_wp.
1449 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
1450 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
1451 (ppc_linux_nat_target::low_forget_process)
1452 (ppc_linux_nat_target::low_new_fork)
1453 (ppc_linux_nat_target::low_new_clone)
1454 (ppc_linux_nat_target::low_delete_thread)
1455 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
1456 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
1457 only call mark_thread_stale.
1458 (ppc_linux_thread_exit): Remove.
1459 (ppc_linux_nat_target::stopped_data_address): Change to...
1460 (ppc_linux_nat_target::low_stopped_data_address): This. Add
1461 comment, use m_dreg_interface and m_thread_hw_breakpoints.
1462 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
1463 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
1464 comment. Call low_stopped_data_address.
1465 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
1466 m_dreg_interface.
1467 (ppc_linux_nat_target::masked_watch_num_registers): Use
1468 m_dreg_interface.
1469 (ppc_linux_nat_target::copy_thread_dreg_state)
1470 (ppc_linux_nat_target::mark_thread_stale)
1471 (ppc_linux_nat_target::mark_debug_registers_changed)
1472 (ppc_linux_nat_target::register_hw_breakpoint)
1473 (ppc_linux_nat_target::clear_hw_breakpoint)
1474 (ppc_linux_nat_target::register_wp)
1475 (ppc_linux_nat_target::clear_wp)
1476 (ppc_linux_nat_target::init_arch_lwp_info)
1477 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
1478 (_initialize_ppc_linux_nat): Remove observer callback.
1479
1480 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1481
1482 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
1483 (ppc_linux_nat_target::auxv_parse)
1484 (ppc_linux_nat_target::read_description)
1485 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
1486 Move up.
1487
1488 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1489
1490 * linux-nat.h (low_new_clone): New method.
1491 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
1492
1493 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1494
1495 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
1496 (dbx_expand_psymtab): ... this.
1497 (start_psymtab): Update.
1498 * mdebugread.c (psymtab_to_symtab_1): Rename to...
1499 (mdebug_expand_psymtab): ... this.
1500 (parse_partial_symbols): Update.
1501 (new_psymtab): Update.
1502 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
1503 (xcoff_expand_psymtab): ... this.
1504 (xcoff_start_psymtab): Update.
1505
1506 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1507
1508 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
1509 <expand_dependencies>: ... this.
1510 * psymtab.c (partial_symtab::read_dependencies): Rename to...
1511 (partial_symtab::expand_dependencies): ... this.
1512 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
1513 Update.
1514 (dwarf2_psymtab::expand_psymtab): Update.
1515 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
1516 * mdebugread.c (psymtab_to_symtab_1): Update.
1517 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
1518
1519 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * psympriv.h (discard_psymtab): Remove.
1522 * dbxread.c (dbx_end_psymtab): Update.
1523 * xcoffread.c (xcoff_end_psymtab): Update.
1524
1525 2020-03-28 Tom Tromey <tom@tromey.com>
1526
1527 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
1528 comment.
1529
1530 2020-03-28 Tom Tromey <tom@tromey.com>
1531
1532 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
1533
1534 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
1535
1536 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1537
1538 2020-03-26 John Baldwin <jhb@FreeBSD.org>
1539
1540 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
1541
1542 2020-03-26 Tom Tromey <tom@tromey.com>
1543
1544 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
1545 (mark_common_block_symbol_computed, read_tag_string_type)
1546 (attr_to_dynamic_prop, read_subrange_type): Update.
1547 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
1548 to be methods on struct attribute.
1549 (skip_one_die, process_imported_unit_die, read_namespace_alias)
1550 (read_call_site_scope, partial_die_info::read)
1551 (partial_die_info::read, lookup_die_type, follow_die_ref):
1552 Update.
1553 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
1554 from dwarf2_get_ref_die_offset.
1555 (attribute::constant_value): New method, from
1556 dwarf2_get_attr_constant_value.
1557 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
1558 Declare method.
1559 <constant_value>: New method.
1560
1561 2020-03-26 Tom Tromey <tom@tromey.com>
1562
1563 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
1564 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
1565 (dwarf_type_encoding_name): Move to stringify.c.
1566 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
1567 * dwarf2/stringify.c: New file.
1568 * dwarf2/stringify.h: New file.
1569
1570 2020-03-26 Tom Tromey <tom@tromey.com>
1571
1572 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
1573 Rewrite.
1574
1575 2020-03-26 Tom Tromey <tom@tromey.com>
1576
1577 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
1578 methods.
1579 * dwarf2/read.c (lookup_addr_base): Move to die.h.
1580 (lookup_ranges_base): Likewise.
1581 (read_cutu_die_from_dwo, read_full_die_1): Update.
1582
1583 2020-03-26 Tom Tromey <tom@tromey.com>
1584
1585 * dwarf2/read.c (read_import_statement, read_file_scope)
1586 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
1587 (read_lexical_block_scope, read_call_site_scope)
1588 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
1589 (handle_struct_member_die, process_structure_scope)
1590 (update_enumeration_type_from_children)
1591 (process_enumeration_scope, read_array_type, read_common_block)
1592 (read_namespace, read_module, read_subroutine_type): Update.
1593 (sibling_die): Remove.
1594
1595 2020-03-26 Tom Tromey <tom@tromey.com>
1596
1597 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
1598 (build_type_psymtabs_reader, read_structure_type)
1599 (read_enumeration_type, read_full_die_1): Update.
1600 (dwarf2_attr_no_follow): Move to die.h.
1601 * dwarf2/die.h (struct die_info) <attr>: New method.
1602
1603 2020-03-26 Tom Tromey <tom@tromey.com>
1604
1605 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
1606 <base_address>: Now an optional.
1607 (dwarf2_find_base_address, dwarf2_rnglists_process)
1608 (dwarf2_ranges_process, fill_in_loclist_baton)
1609 (dwarf2_symbol_mark_computed): Update.
1610
1611 2020-03-26 Tom Tromey <tom@tromey.com>
1612
1613 * dwarf2/read.c (struct die_info): Move to die.h.
1614 * dwarf2/die.h: New file.
1615
1616 2020-03-26 Tom Tromey <tom@tromey.com>
1617
1618 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
1619 * dwarf2/read.c
1620 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1621 Move to line-header.c.
1622 (read_checked_initial_length_and_offset, read_formatted_entries):
1623 Likewise.
1624 (dwarf_decode_line_header): Split into two.
1625 * dwarf2/line-header.c
1626 (dwarf2_statement_list_fits_in_line_number_section_complaint):
1627 Move from read.c.
1628 (read_checked_initial_length_and_offset, read_formatted_entries):
1629 Likewise.
1630 (dwarf_decode_line_header): New function, split from read.c.
1631
1632 2020-03-26 Tom Tromey <tom@tromey.com>
1633
1634 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
1635 Declare method.
1636 * dwarf2/read.c (read_attribute_value): Update.
1637 (dwarf2_per_objfile::read_line_string): Rename from
1638 read_indirect_line_string.
1639 (read_formatted_entries): Update.
1640
1641 2020-03-26 Tom Tromey <tom@tromey.com>
1642
1643 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
1644 variable.
1645
1646 2020-03-26 Tom Tromey <tom@tromey.com>
1647
1648 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
1649 const.
1650 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
1651 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
1652 parameter const.
1653
1654 2020-03-26 Tom Tromey <tom@tromey.com>
1655
1656 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
1657 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
1658 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
1659 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
1660
1661 2020-03-26 Tom Tromey <tom@tromey.com>
1662
1663 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
1664 file_names_size, file_full_name, file_file_name>: Use const.
1665 <file_name_at, file_names>: Add const overload.
1666 * dwarf2/line-header.c (line_header::file_file_name)
1667 (line_header::file_full_name): Update.
1668
1669 2020-03-26 Tom Tromey <tom@tromey.com>
1670
1671 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
1672 (macro_start_file, consume_improper_spaces)
1673 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
1674 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
1675 (dwarf_decode_macros): Move to macro.c.
1676 * dwarf2/macro.c: New file.
1677 * dwarf2/macro.h: New file.
1678 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
1679
1680 2020-03-26 Tom Tromey <tom@tromey.com>
1681
1682 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
1683 method.
1684 * dwarf2/section.c: New method. From
1685 read_indirect_string_at_offset_from.
1686 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
1687 (read_indirect_string_at_offset_from): Move to section.c.
1688 (read_indirect_string_at_offset): Rewrite.
1689 (read_indirect_line_string_at_offset): Remove.
1690 (read_indirect_string, read_indirect_line_string)
1691 (dwarf_decode_macro_bytes): Update.
1692
1693 2020-03-26 Tom Tromey <tom@tromey.com>
1694
1695 * dwarf2/section.h (struct dwarf2_section_info)
1696 <overload_complaint>: Declare.
1697 (dwarf2_section_buffer_overflow_complaint): Don't declare.
1698 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
1699 Rename from dwarf2_section_buffer_overflow_complaint.
1700 * dwarf2/read.c (skip_one_die, partial_die_info::read)
1701 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
1702
1703 2020-03-26 Tom Tromey <tom@tromey.com>
1704
1705 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
1706 Declare.
1707 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
1708 Move from read.c.
1709 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
1710 to section.c.
1711
1712 2020-03-26 Tom Tromey <tom@tromey.com>
1713
1714 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
1715
1716 2020-03-26 Tom Tromey <tom@tromey.com>
1717
1718 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
1719 "builder".
1720 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
1721 parameter.
1722 (dwarf_decode_macros): Update.
1723
1724 2020-03-26 Tom Tromey <tom@tromey.com>
1725
1726 * dwarf2/read.c (read_attribute_value): Update.
1727 (read_indirect_string_from_dwz): Move to dwz.c; change into
1728 method.
1729 (dwarf_decode_macro_bytes): Update.
1730 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
1731 * dwarf2/dwz.c: New file.
1732 * Makefile.in (COMMON_SFILES): Add dwz.c.
1733
1734 2020-03-26 Tom Tromey <tom@tromey.com>
1735
1736 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
1737 * dwarf2/read.c: Add include.
1738 * dwarf2/index-write.c: Add include.
1739 * dwarf2/index-cache.c: Add include.
1740 * dwarf2/dwz.h: New file.
1741
1742 2020-03-25 Tom Tromey <tom@tromey.com>
1743
1744 * compile/compile-object-load.c (get_out_value_type): Mention
1745 correct symbol name in error message.
1746
1747 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
1748
1749 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
1750
1751 2020-03-25 Tom de Vries <tdevries@suse.de>
1752
1753 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
1754 * symmisc.c (dump_symtab_1): Print user and includes fields.
1755 (maintenance_info_symtabs): Same.
1756
1757 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 PR gdb/25534
1760 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
1761 (riscv_regcache_cooked_write): New function.
1762 (riscv_push_dummy_call): Use new function.
1763 (riscv_return_value): Likewise.
1764
1765 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1766
1767 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
1768 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
1769 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
1770 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
1771 * infrun.c (follow_fork): Likewise.
1772 (follow_fork_inferior): Likewise.
1773 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
1774 * linux-nat.h (class linux_nat_target): Likewise.
1775 * remote.c (class remote_target) <follow_fork>: Likewise.
1776 (remote_target::follow_fork): Likewise.
1777 * target-delegates.c: Re-generate.
1778 * target.c (default_follow_fork): Likewise.
1779 (target_follow_fork): Likewise.
1780 * target.h (struct target_ops) <follow_fork>: Likewise.
1781 (target_follow_fork): Likewise.
1782
1783 2020-03-24 Tom de Vries <tdevries@suse.de>
1784
1785 * psymtab.c (maintenance_info_psymtabs): Print user field.
1786
1787 2020-03-20 Tom Tromey <tromey@adacore.com>
1788
1789 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
1790 const.
1791 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
1792 const.
1793
1794 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
1795
1796 * ptrace.m4: Don't check for ptrace declaration.
1797 * config.in: Re-generate.
1798 * configure: Re-generate.
1799 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
1800 not defined.
1801
1802 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1803
1804 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
1805 `PTRACE_TYPE_RET'.
1806 * i386-bsd-nat.c (gdb_ptrace): Likewise.
1807 * sparc-nat.c (gdb_ptrace): Likewise.
1808 * x86-bsd-nat.c (gdb_ptrace): Likewise.
1809
1810 2020-03-20 Tom Tromey <tromey@adacore.com>
1811
1812 * c-exp.y (lex_one_token): Fix assert.
1813
1814 2020-03-20 Tom Tromey <tromey@adacore.com>
1815
1816 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
1817 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
1818 strncpy call.
1819
1820 2020-03-20 Tom Tromey <tromey@adacore.com>
1821
1822 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
1823
1824 2020-03-20 Tom Tromey <tromey@adacore.com>
1825
1826 * ada-valprint.c (print_variant_part): Remove parameters; switch
1827 to value-based API.
1828 (print_field_values): Likewise.
1829 (ada_val_print_struct_union): Likewise.
1830 (ada_value_print_1): Update.
1831
1832 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1833
1834 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
1835 nbsd_nat_target instead of inf_ptrace_target.
1836 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1837 nbsd_nat_target.
1838
1839 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1840
1841 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
1842 it to the ptrace call.
1843 * (store_registers): Likewise.
1844
1845 2020-03-20 Kamil Rytarowski <n54@gmx.com>
1846
1847 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
1848 it to the ptrace call.
1849 * (store_registers): Likewise.
1850
1851 2020-03-19 Luis Machado <luis.machado@linaro.org>
1852
1853 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
1854 valid, fetch vg value from ptrace.
1855
1856 2020-03-19 Kamil Rytarowski <n54@gmx.com>
1857 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
1858 * inf-ptrace.c: Likewise.
1859 * (gdb_ptrace): Add.
1860 * (inf_ptrace_target::resume): Update.
1861 * (inf_ptrace_target::xfer_partial): Likewise.
1862 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
1863 * (inf_ptrace_peek_poke): Update.
1864
1865 2020-03-19 Kamil Rytarowski <n54@gmx.com>
1866
1867 * x86-bsd-nat.c (gdb_ptrace): New.
1868 * (x86bsd_dr_set): Add new argument `ptid'.
1869 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
1870 x86bsd_dr_set_addr): Update.
1871
1872 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1873
1874 * remote.c (remote_target::process_stop_reply): Handle events for
1875 all threads differently.
1876
1877 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1878
1879 * completer.c (completion_tracker::remove_completion): Define new
1880 function.
1881 * completer.h (completion_tracker::remove_completion): Declare new
1882 function.
1883 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
1884 when adding a C++ function symbol.
1885
1886 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
1887
1888 * completer.c (completion_tracker::completion_hash_entry): Define
1889 new class.
1890 (advance_to_filename_complete_word_point): Call
1891 recompute_lowest_common_denominator.
1892 (completion_tracker::completion_tracker): Call discard_completions
1893 to setup the hash table.
1894 (completion_tracker::discard_completions): Allow for being called
1895 from the constructor, pass new equal function, and element deleter
1896 when constructing the hash table. Initialise new class member
1897 variables.
1898 (completion_tracker::maybe_add_completion): Remove use of
1899 m_entries_vec, and store more information into m_entries_hash.
1900 (completion_tracker::recompute_lcd_visitor): New function, most
1901 content taken from...
1902 (completion_tracker::recompute_lowest_common_denominator):
1903 ...here, this now just visits each item in the hash calling the
1904 above visitor.
1905 (completion_tracker::build_completion_result): Remove use of
1906 m_entries_vec, call recompute_lowest_common_denominator.
1907 * completer.h (completion_tracker::have_completions): Remove use
1908 of m_entries_vec.
1909 (completion_tracker::completion_hash_entry): Declare new class.
1910 (completion_tracker::recompute_lowest_common_denominator): Change
1911 function signature.
1912 (completion_tracker::recompute_lcd_visitor): Declare new function.
1913 (completion_tracker::m_entries_vec): Delete.
1914 (completion_tracker::m_entries_hash): Initialize to NULL.
1915 (completion_tracker::m_lowest_common_denominator_valid): New
1916 member variable.
1917 (completion_tracker::m_lowest_common_denominator_max_length): New
1918 member variable.
1919
1920 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1921
1922 * regformats/regdef.h: Put reg in gdb namespace.
1923
1924 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1925
1926 * i386-bsd-nat.c (gdb_ptrace): New.
1927 * (i386bsd_fetch_inferior_registers,
1928 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1929 * (i386bsd_fetch_inferior_registers,
1930 i386bsd_store_inferior_registers) Use gdb_ptrace.
1931
1932 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1933
1934 * amd64-bsd-nat.c (gdb_ptrace): New.
1935 * (amd64bsd_fetch_inferior_registers,
1936 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
1937 * (amd64bsd_fetch_inferior_registers,
1938 amd64bsd_store_inferior_registers) Use gdb_ptrace.
1939
1940 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1941
1942 * user-regs.c (user_reg::read): Rename to...
1943 (user_reg::xread): ...this.
1944 * (append_user_reg): Rename argument `read' to `xread'.
1945 * (user_reg_add_builtin): Likewise.
1946 * (user_reg_add): Likewise.
1947 * (value_of_user_reg): Likewise.
1948
1949 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1950
1951 * sparc-nat.c (gdb_ptrace): New.
1952 * sparc-nat.c (sparc_fetch_inferior_registers)
1953 (sparc_store_inferior_registers) Remove obsolete comment.
1954 * sparc-nat.c (sparc_fetch_inferior_registers)
1955 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
1956 * sparc-nat.c (sparc_fetch_inferior_registers)
1957 (sparc_store_inferior_registers) Use gdb_ptrace.
1958
1959 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1960
1961 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
1962 it to the ptrace call.
1963 * sh-nbsd-nat.c (store_registers): Likewise.
1964
1965 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1966
1967 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
1968 nbsd_nat_target instead of inf_ptrace_target.
1969 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
1970 nbsd_nat_target.
1971
1972 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1973
1974 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
1975
1976 2020-03-17 Kamil Rytarowski <n54@gmx.com>
1977
1978 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
1979 <sys/sysctl.h>.
1980 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
1981
1982 2020-03-17 Tom de Vries <tdevries@suse.de>
1983
1984 PR gdb/23710
1985 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
1986 fields.
1987 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
1988 fields.
1989 (process_imported_unit_die): Skip import of c++ CUs.
1990
1991 2020-03-16 Tom Tromey <tom@tromey.com>
1992
1993 * p-valprint.c (pascal_object_print_value): Initialize
1994 base_value.
1995
1996 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
1997 Shahab Vahedi <shahab@synopsys.com>
1998
1999 * Makefile.in: Add arch/arc.o
2000 * configure.tgt: Likewise.
2001 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
2002 (_initialize_arc_tdep): Don't initialize old target descriptions.
2003 (arc_read_description): New function to cache target descriptions.
2004 * arc-tdep.h (arc_read_description): Add proto type.
2005 * arch/arc.c: New file.
2006 * arch/arc.h: Likewise.
2007 * features/Makefile: Replace old target descriptions with new.
2008 * features/arc-arcompact.c: Remove.
2009 * features/arc-arcompact.xml: Likewise.
2010 * features/arc-v2.c: Likewise
2011 * features/arc-v2.xml: Likewise
2012 * features/arc/aux-arcompact.xml: New file.
2013 * features/arc/aux-v2.xml: Likewise.
2014 * features/arc/core-arcompact.xml: Likewise.
2015 * features/arc/core-v2.xml: Likewise.
2016 * features/arc/aux-arcompact.c: Generate.
2017 * features/arc/aux-v2.c: Likewise.
2018 * features/arc/core-arcompact.c: Likewise.
2019 * features/arc/core-v2.c: Likewise.
2020 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
2021
2022 2020-03-16 Tom Tromey <tromey@adacore.com>
2023
2024 PR gdb/25663:
2025 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
2026 putting value into bcache.
2027
2028 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2029
2030 PR gdb/21500
2031 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
2032 to...
2033 (amd64_windows_init_abi_common): ... this. Don't set size of
2034 long type.
2035 (amd64_windows_init_abi): New function.
2036 (amd64_cygwin_init_abi): New function.
2037 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
2038 the Cygwin OS ABI.
2039 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
2040 comment.
2041
2042 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2043
2044 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
2045 * windows-tdep.c (CYGWIN_DLL_NAME): New.
2046 (pe_import_directory_entry): New struct type.
2047 (is_linked_with_cygwin_dll): New function.
2048 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
2049 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
2050 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
2051
2052 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2053
2054 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
2055 i386_cygwin_core_osabi_sniffer.
2056
2057 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2058
2059 * i386-cygwin-tdep.c: Rename to...
2060 * i386-windows-tdep.c: ... this.
2061 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
2062 i386-windows-tdep.c.
2063 * configure.tgt: Likewise.
2064
2065 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2066
2067 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
2068 * osabi.c (gdb_osabi_names): Add "Windows".
2069 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
2070 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
2071 (i386_cygwin_core_osabi_sniffer): New function, extracted from
2072 i386_cygwin_osabi_sniffer.
2073 (_initialize_i386_cygwin_tdep): Register OS ABI
2074 GDB_OSABI_WINDOWS for i386.
2075 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
2076 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
2077 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
2078 for x86-64.
2079 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
2080 when the target matches '*-*-mingw*'.
2081
2082 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2083
2084 * defs.h (enum gdb_osabi): Move to...
2085 * osabi.h (enum gdb_osabi): ... here.
2086 * gdbarch.sh: Include osabi.h in gdbarch.h.
2087 * gdbarch.h: Re-generate.
2088
2089 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
2090
2091 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
2092 function.
2093 (_initialize_amd64_windows_tdep): Register osabi sniffer.
2094
2095 2020-03-14 Tom Tromey <tom@tromey.com>
2096
2097 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
2098 for C++.
2099 (c_type_print_modifier): Likewise. Add "language" parameter.
2100 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
2101 (c_type_print_base_1): Update.
2102 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
2103 constants.
2104 * type-stack.c (type_stack::insert): Handle tp_atomic and
2105 tp_restrict.
2106 (type_stack::follow_type_instance_flags): Likewise.
2107 (type_stack::follow_types): Likewise. Merge type-following code.
2108 * c-exp.y (RESTRICT, ATOMIC): New tokens.
2109 (space_identifier, cv_with_space_id)
2110 (const_or_volatile_or_space_identifier_noopt)
2111 (const_or_volatile_or_space_identifier): Remove.
2112 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
2113 rules.
2114 (ptr_operator, typebase): Update.
2115 (enum token_flag) <FLAG_C>: New constant.
2116 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
2117 "_Atomic".
2118 (lex_one_token): Handle FLAG_C.
2119
2120 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2121
2122 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
2123 it to the ptrace call.
2124 * m68k-bsd-nat.c (store_registers): Likewise.
2125
2126 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2127
2128 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
2129 gdb_byte *.
2130 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
2131 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
2132 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
2133
2134 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2135
2136 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
2137 nbsd_nat_target instead of inf_ptrace_target.
2138 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2139 nbsd_nat_target.
2140
2141 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2142
2143 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
2144 register_t.
2145
2146 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2147
2148 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
2149 it to the ptrace call.
2150 * alpha-bsd-nat.c (store_registers): Likewise.
2151
2152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2153
2154 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
2155 includes.
2156 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
2157 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
2158 fill_fpregset): Likewise.
2159
2160 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2161
2162 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
2163 nbsd_nat_target instead of inf_ptrace_target.
2164 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2165 nbsd_nat_target.
2166
2167 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2168
2169 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
2170 register_t.
2171
2172 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2173
2174 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
2175 it to the ptrace call.
2176 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
2177 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
2178 * arm-nbsd-nat.c (store_register): Likewise.
2179 * arm-nbsd-nat.c (store_regs): Likewise.
2180 * arm-nbsd-nat.c (store_fp_register): Likewise.
2181 * arm-nbsd-nat.c (store_fp_regs): Likewise.
2182
2183 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2184
2185 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
2186 nbsd_nat_target instead of inf_ptrace_target.
2187 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
2188 nbsd_nat_target.
2189
2190 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2191
2192 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
2193 it to the ptrace call.
2194 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
2195
2196 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2197
2198 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
2199 it to the ptrace call.
2200 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
2201
2202 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2203
2204 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
2205 gdb_byte *.
2206 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
2207
2208 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2209
2210 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
2211 instead of inf_ptrace_target.
2212 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
2213 nbsd_nat_target.
2214
2215 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2216
2217 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2218 register_t.
2219
2220 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2221
2222 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2223 register_t.
2224
2225 2020-03-14 Kamil Rytarowski <n54@gmx.com>
2226
2227 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
2228 register_t.
2229
2230 2020-03-13 Tom Tromey <tom@tromey.com>
2231
2232 * value.h (val_print): Don't declare.
2233 * valprint.h (val_print_array_elements)
2234 (val_print_scalar_formatted, generic_val_print): Don't declare.
2235 * valprint.c (generic_val_print_array): Take a struct value.
2236 (generic_val_print_ptr, generic_val_print_memberptr)
2237 (generic_val_print_bool, generic_val_print_int)
2238 (generic_val_print_char, generic_val_print_complex)
2239 (generic_val_print): Remove.
2240 (generic_value_print): Update.
2241 (do_val_print): Remove unused parameters. Don't call
2242 la_val_print.
2243 (val_print): Remove.
2244 (common_val_print): Update. Don't call value_check_printable.
2245 (val_print_scalar_formatted, val_print_array_elements): Remove.
2246 * rust-lang.c (rust_val_print): Remove.
2247 (rust_language_defn): Update.
2248 * p-valprint.c (pascal_val_print): Remove.
2249 (pascal_value_print_inner): Update.
2250 (pascal_object_print_val_fields, pascal_object_print_val):
2251 Remove.
2252 (pascal_object_print_static_field): Update.
2253 * p-lang.h (pascal_val_print): Don't declare.
2254 * p-lang.c (pascal_language_defn): Update.
2255 * opencl-lang.c (opencl_language_defn): Update.
2256 * objc-lang.c (objc_language_defn): Update.
2257 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
2258 * m2-lang.h (m2_val_print): Don't declare.
2259 * m2-lang.c (m2_language_defn): Update.
2260 * language.h (struct language_defn) <la_val_print>: Remove.
2261 * language.c (unk_lang_value_print_inner): Rename. Change
2262 argument types.
2263 (unknown_language_defn, auto_language_defn): Update.
2264 * go-valprint.c (go_val_print): Remove.
2265 * go-lang.h (go_val_print): Don't declare.
2266 * go-lang.c (go_language_defn): Update.
2267 * f-valprint.c (f_val_print): Remove.
2268 * f-lang.h (f_value_print): Don't declare.
2269 * f-lang.c (f_language_defn): Update.
2270 * d-valprint.c (d_val_print): Remove.
2271 * d-lang.h (d_value_print): Don't declare.
2272 * d-lang.c (d_language_defn): Update.
2273 * cp-valprint.c (cp_print_value_fields)
2274 (cp_print_value_fields_rtti, cp_print_value): Remove.
2275 (cp_print_static_field): Update.
2276 * c-valprint.c (c_val_print_array, c_val_print_ptr)
2277 (c_val_print_struct, c_val_print_union, c_val_print_int)
2278 (c_val_print_memberptr, c_val_print): Remove.
2279 * c-lang.h (c_val_print_array, cp_print_value_fields)
2280 (cp_print_value_fields_rtti): Don't declare.
2281 * c-lang.c (c_language_defn, cplus_language_defn)
2282 (asm_language_defn, minimal_language_defn): Update.
2283 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
2284 (ada_val_print_enum): Take a struct value.
2285 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
2286 (ada_val_print): Remove.
2287 (ada_value_print_1): Update.
2288 (printable_val_type): Remove.
2289 * ada-lang.h (ada_val_print): Don't declare.
2290 * ada-lang.c (ada_language_defn): Update.
2291
2292 2020-03-13 Tom Tromey <tom@tromey.com>
2293
2294 * valprint.c (do_val_print): Update.
2295 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
2296 a struct value.
2297 (value_to_value_object_no_release): Declare.
2298 * python/py-value.c (value_to_value_object_no_release): New
2299 function.
2300 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
2301 struct value.
2302 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
2303 function.
2304 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
2305 a struct value.
2306 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
2307 Declare.
2308 (gdbscm_apply_val_pretty_printer): Take a struct value.
2309 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
2310 value.
2311 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
2312 value.
2313 * extension-priv.h (struct extension_language_ops)
2314 <apply_val_pretty_printer>: Take a struct value.
2315 * cp-valprint.c (cp_print_value): Create a struct value.
2316 (cp_print_value): Update.
2317
2318 2020-03-13 Tom Tromey <tom@tromey.com>
2319
2320 * ada-valprint.c (print_field_values): Call common_val_print.
2321
2322 2020-03-13 Tom Tromey <tom@tromey.com>
2323
2324 * ada-valprint.c (val_print_packed_array_elements): Remove
2325 bitoffset and val parameters. Call common_val_print.
2326 (ada_val_print_string): Remove offset, address, and original_value
2327 parameters.
2328 (ada_val_print_array): Update.
2329 (ada_value_print_array): New function.
2330 (ada_value_print_1): Call it.
2331
2332 2020-03-13 Tom Tromey <tom@tromey.com>
2333
2334 * ada-valprint.c (ada_value_print): Use common_val_print.
2335
2336 2020-03-13 Tom Tromey <tom@tromey.com>
2337
2338 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
2339
2340 2020-03-13 Tom Tromey <tom@tromey.com>
2341
2342 * ada-valprint.c (ada_value_print_num): New function.
2343 (ada_value_print_1): Use it.
2344
2345 2020-03-13 Tom Tromey <tom@tromey.com>
2346
2347 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
2348
2349 2020-03-13 Tom Tromey <tom@tromey.com>
2350
2351 * ada-valprint.c (ada_value_print_ptr): New function.
2352 (ada_value_print_1): Use it.
2353
2354 2020-03-13 Tom Tromey <tom@tromey.com>
2355
2356 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
2357 call common_val_print.
2358 (ada_val_print_1): Update.
2359 (ada_value_print_1): New function.
2360 (ada_value_print_inner): Rewrite.
2361
2362 2020-03-13 Tom Tromey <tom@tromey.com>
2363
2364 * cp-valprint.c (cp_print_value_fields): Update.
2365 (cp_print_value): New function.
2366
2367 2020-03-13 Tom Tromey <tom@tromey.com>
2368
2369 * m2-valprint.c (m2_value_print_inner): Use
2370 cp_print_value_fields.
2371 * cp-valprint.c (cp_print_value_fields): New function.
2372 * c-valprint.c (c_value_print_struct): New function.
2373 (c_value_print_inner): Use c_value_print_struct.
2374 * c-lang.h (cp_print_value_fields): Declare.
2375
2376 2020-03-13 Tom Tromey <tom@tromey.com>
2377
2378 * c-valprint.c (c_value_print_array): New function.
2379 (c_value_print_inner): Use it.
2380
2381 2020-03-13 Tom Tromey <tom@tromey.com>
2382
2383 * c-valprint.c (c_value_print_memberptr): New function.
2384 (c_value_print_inner): Use it.
2385
2386 2020-03-13 Tom Tromey <tom@tromey.com>
2387
2388 * c-valprint.c (c_value_print_int): New function.
2389 (c_value_print_inner): Use it.
2390
2391 2020-03-13 Tom Tromey <tom@tromey.com>
2392
2393 * c-valprint.c (c_value_print_ptr): New function.
2394 (c_value_print_inner): Use it.
2395
2396 2020-03-13 Tom Tromey <tom@tromey.com>
2397
2398 * c-valprint.c (c_value_print_inner): Rewrite.
2399
2400 2020-03-13 Tom Tromey <tom@tromey.com>
2401
2402 * valprint.c (generic_value_print_complex): New function.
2403 (generic_value_print): Use it.
2404
2405 2020-03-13 Tom Tromey <tom@tromey.com>
2406
2407 * valprint.c (generic_val_print_float): Don't call
2408 val_print_scalar_formatted.
2409 (generic_val_print, generic_value_print): Update.
2410
2411 2020-03-13 Tom Tromey <tom@tromey.com>
2412
2413 * valprint.c (generic_value_print_char): New function
2414 (generic_value_print): Use it.
2415
2416 2020-03-13 Tom Tromey <tom@tromey.com>
2417
2418 * valprint.c (generic_value_print_int): New function.
2419 (generic_value_print): Use it.
2420
2421 2020-03-13 Tom Tromey <tom@tromey.com>
2422
2423 * valprint.c (generic_value_print_bool): New function.
2424 (generic_value_print): Use it.
2425
2426 2020-03-13 Tom Tromey <tom@tromey.com>
2427
2428 * valprint.c (generic_val_print_func): Simplify.
2429 (generic_val_print, generic_value_print): Update.
2430
2431 2020-03-13 Tom Tromey <tom@tromey.com>
2432
2433 * valprint.c (generic_val_print_flags): Remove.
2434 (generic_val_print, generic_value_print): Update.
2435 (val_print_type_code_flags): Add original_value parameter.
2436
2437 2020-03-13 Tom Tromey <tom@tromey.com>
2438
2439 * valprint.c (generic_val_print): Update.
2440 (generic_value_print): Update.
2441 * valprint.c (generic_val_print_enum): Don't call
2442 val_print_scalar_formatted.
2443
2444 2020-03-13 Tom Tromey <tom@tromey.com>
2445
2446 * valprint.c (generic_value_print): Call generic_value_print_ptr.
2447 * valprint.c (generic_value_print_ptr): New function.
2448
2449 2020-03-13 Tom Tromey <tom@tromey.com>
2450
2451 * valprint.c (generic_value_print): Rewrite.
2452
2453 2020-03-13 Tom Tromey <tom@tromey.com>
2454
2455 * p-valprint.c (pascal_object_print_value_fields)
2456 (pascal_object_print_value): New functions.
2457
2458 2020-03-13 Tom Tromey <tom@tromey.com>
2459
2460 * p-valprint.c (pascal_value_print_inner): Rewrite.
2461
2462 2020-03-13 Tom Tromey <tom@tromey.com>
2463
2464 * f-valprint.c (f_value_print_innner): Rewrite.
2465
2466 2020-03-13 Tom Tromey <tom@tromey.com>
2467
2468 * m2-valprint.c (m2_print_unbounded_array): New overload.
2469 (m2_print_unbounded_array): Update.
2470 (m2_print_array_contents): Take a struct value.
2471 (m2_value_print_inner): Rewrite.
2472
2473 2020-03-13 Tom Tromey <tom@tromey.com>
2474
2475 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
2476 (d_value_print_inner): New function.
2477 * d-lang.h (d_value_print_inner): Declare.
2478 * d-lang.c (d_language_defn): Use d_value_print_inner.
2479
2480 2020-03-13 Tom Tromey <tom@tromey.com>
2481
2482 * go-valprint.c (go_value_print_inner): New function.
2483 * go-lang.h (go_value_print_inner): Declare.
2484 * go-lang.c (go_language_defn): Use go_value_print_inner.
2485
2486 2020-03-13 Tom Tromey <tom@tromey.com>
2487
2488 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
2489 API.
2490 (rust_val_print): Rewrite.
2491 (rust_value_print_inner): New function, from rust_val_print.
2492 (rust_language_defn): Use rust_value_print_inner.
2493
2494 2020-03-13 Tom Tromey <tom@tromey.com>
2495
2496 * ada-valprint.c (ada_value_print_inner): New function.
2497 * ada-lang.h (ada_value_print_inner): Declare.
2498 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
2499
2500 2020-03-13 Tom Tromey <tom@tromey.com>
2501
2502 * f-valprint.c (f_value_print_innner): New function.
2503 * f-lang.h (f_value_print_innner): Declare.
2504 * f-lang.c (f_language_defn): Use f_value_print_innner.
2505
2506 2020-03-13 Tom Tromey <tom@tromey.com>
2507
2508 * p-valprint.c (pascal_value_print_inner): New function.
2509 * p-lang.h (pascal_value_print_inner): Declare.
2510 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
2511
2512 2020-03-13 Tom Tromey <tom@tromey.com>
2513
2514 * m2-valprint.c (m2_value_print_inner): New function.
2515 * m2-lang.h (m2_value_print_inner): Declare.
2516 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
2517
2518 2020-03-13 Tom Tromey <tom@tromey.com>
2519
2520 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
2521 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
2522 * c-valprint.c (c_value_print_inner): New function.
2523 * c-lang.h (c_value_print_inner): Declare.
2524 * c-lang.c (c_language_defn, cplus_language_defn)
2525 (asm_language_defn, minimal_language_defn): Use
2526 c_value_print_inner.
2527
2528 2020-03-13 Tom Tromey <tom@tromey.com>
2529
2530 * p-valprint.c (pascal_object_print_value_fields): Now static.
2531 * p-lang.h (pascal_object_print_value_fields): Don't declare.
2532
2533 2020-03-13 Tom Tromey <tom@tromey.com>
2534
2535 * c-valprint.c (c_val_print_array): Simplify.
2536
2537 2020-03-13 Tom Tromey <tom@tromey.com>
2538
2539 * valprint.c (value_print_array_elements): New function.
2540 * valprint.h (value_print_array_elements): Declare.
2541
2542 2020-03-13 Tom Tromey <tom@tromey.com>
2543
2544 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
2545 * mips-tdep.c (mips_print_register): Use
2546 value_print_scalar_formatted.
2547
2548 2020-03-13 Tom Tromey <tom@tromey.com>
2549
2550 * valprint.h (value_print_scalar_formatted): Declare.
2551 * valprint.c (value_print_scalar_formatted): New function.
2552
2553 2020-03-13 Tom Tromey <tom@tromey.com>
2554
2555 * valprint.h (generic_value_print): Declare.
2556 * valprint.c (generic_value_print): New function.
2557
2558 2020-03-13 Tom Tromey <tom@tromey.com>
2559
2560 * valprint.c (do_val_print): Call la_value_print_inner, if
2561 available.
2562 * rust-lang.c (rust_language_defn): Update.
2563 * p-lang.c (pascal_language_defn): Update.
2564 * opencl-lang.c (opencl_language_defn): Update.
2565 * objc-lang.c (objc_language_defn): Update.
2566 * m2-lang.c (m2_language_defn): Update.
2567 * language.h (struct language_defn) <la_value_print_inner>: New
2568 member.
2569 * language.c (unknown_language_defn, auto_language_defn): Update.
2570 * go-lang.c (go_language_defn): Update.
2571 * f-lang.c (f_language_defn): Update.
2572 * d-lang.c (d_language_defn): Update.
2573 * c-lang.c (c_language_defn, cplus_language_defn)
2574 (asm_language_defn, minimal_language_defn): Update.
2575 * ada-lang.c (ada_language_defn): Update.
2576
2577 2020-03-13 Tom Tromey <tom@tromey.com>
2578
2579 * c-valprint.c (c_value_print): Use common_val_print.
2580
2581 2020-03-13 Tom Tromey <tom@tromey.com>
2582
2583 * cp-valprint.c (cp_print_static_field): Use common_val_print.
2584
2585 2020-03-13 Tom Tromey <tom@tromey.com>
2586
2587 * f-valprint.c (f77_print_array_1, f_val_print): Use
2588 common_val_print.
2589
2590 2020-03-13 Tom Tromey <tom@tromey.com>
2591
2592 * riscv-tdep.c (riscv_print_one_register_info): Use
2593 common_val_print.
2594
2595 2020-03-13 Tom Tromey <tom@tromey.com>
2596
2597 * mi/mi-main.c (output_register): Use common_val_print.
2598
2599 2020-03-13 Tom Tromey <tom@tromey.com>
2600
2601 * infcmd.c (default_print_one_register_info): Use
2602 common_val_print.
2603
2604 2020-03-13 Tom Tromey <tom@tromey.com>
2605
2606 * valprint.h (common_val_print_checked): Declare.
2607 * valprint.c (common_val_print_checked): New function.
2608 * stack.c (print_frame_arg): Use common_val_print_checked.
2609
2610 2020-03-13 Tom Tromey <tom@tromey.com>
2611
2612 * valprint.c (do_val_print): New function, from val_print.
2613 (val_print): Use do_val_print.
2614 (common_val_print): Use do_val_print.
2615
2616 2020-03-13 Tom Tromey <tom@tromey.com>
2617
2618 * valprint.c (value_print): Use scoped_value_mark.
2619
2620 2020-03-13 Tom de Vries <tdevries@suse.de>
2621
2622 PR symtab/25646
2623 * psymtab.c (partial_symtab::partial_symtab): Don't set
2624 globals_offset and statics_offset. Push element onto
2625 current_global_psymbols and current_static_psymbols stacks.
2626 (concat): New function.
2627 (end_psymtab_common): Set globals_offset and statics_offset. Pop
2628 element from current_global_psymbols and current_static_psymbols
2629 stacks. Concat popped elements to global_psymbols and
2630 static_symbols.
2631 (add_psymbol_to_list): Use current_global_psymbols and
2632 current_static_psymbols stacks.
2633 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
2634 current_static_psymbols fields.
2635
2636 2020-03-12 Christian Biesinger <cbiesinger@google.com>
2637
2638 * corelow.c (sniff_core_bfd): Remove.
2639 (class core_target) <m_core_vec>: Remove.
2640 (core_target::core_target): Update.
2641 (core_file_fns): Remove.
2642 (deprecated_add_core_fns): Remove.
2643 (default_core_sniffer): Remove.
2644 (sniff_core_bfd): Remove.
2645 (default_check_format): Remove.
2646 (gdb_check_format): Remove.
2647 (core_target_open): Update.
2648 (core_target::get_core_register_section): Update.
2649 (get_core_registers_cb): Update.
2650 (core_target::fetch_registers): Update.
2651 * gdbcore.h (struct core_fns): Remove.
2652 (deprecated_add_core_fns): Remove.
2653 (default_core_sniffer): Remove.
2654 (default_check_format): Remove.
2655
2656 2020-03-12 Tom Tromey <tom@tromey.com>
2657
2658 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
2659 CORE_ADDR.
2660 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
2661
2662 2020-03-12 Tom Tromey <tom@tromey.com>
2663
2664 * remote.c (remote_target::download_tracepoint)
2665 (remote_target::enable_tracepoint)
2666 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
2667 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
2668 sprintf_vma.
2669
2670 2020-03-12 Tom Tromey <tom@tromey.com>
2671
2672 * symfile-mem.c: Update CORE_ADDR size assert.
2673
2674 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2675
2676 * selftest.m4: Move to gdbsupport/.
2677 * acinclude.m4: Update path to selftest.m4.
2678
2679 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2680
2681 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
2682 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
2683 gdbarch-selfselftests.c and selftest-arch.c.
2684 (SUBDIR_UNITTESTS_OBS): Rename to...
2685 (SELFTESTS_OBS): ... this.
2686 (COMMON_SFILES): Remove disasm-selftests.c and
2687 gdbarch-selftests.c.
2688 * configure.ac: Don't add selftest-arch.{c,o} to
2689 CONFIG_{SRCS,OBS}.
2690 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
2691 preprocessor conditions.
2692
2693 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2694
2695 * configure.ac: Don't source bfd/development.sh.
2696 * selftest.m4: Modify comment.
2697 * configure: Re-generate.
2698
2699 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
2700
2701 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
2702 not "true" or "false".
2703 * configure: Re-generate.
2704
2705 2020-03-12 Christian Biesinger <cbiesinger@google.com>
2706
2707 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
2708 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
2709 renamed to arm_nbsd_supply_gregset.
2710 (fetch_register): Update to call arm_nbsd_supply_gregset.
2711 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
2712 (arm_netbsd_nat_target::fetch_registers): Update.
2713 (fetch_elfcore_registers): Removed.
2714 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
2715 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
2716 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
2717 not require NetBSD system headers.
2718 (arm_nbsd_regset): New struct.
2719 (arm_nbsd_iterate_over_regset_sections): New function.
2720 (arm_netbsd_init_abi_common): Updated to call
2721 set_gdbarch_iterate_over_regset_sections.
2722 * arm-nbsd-tdep.h: New file.
2723
2724 2020-03-11 Kevin Buettner <kevinb@redhat.com>
2725
2726 * symtab.c (find_pc_sect_line): Add check which prevents infinite
2727 recursion.
2728
2729 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * configure: Re-generate.
2732
2733 2020-03-11 Tom Tromey <tromey@adacore.com>
2734
2735 * ada-typeprint.c (print_choices): Fix comment.
2736
2737 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
2738
2739 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
2740 previous item in the list, when the list has no items.
2741
2742 2020-03-11 Tom de Vries <tdevries@suse.de>
2743
2744 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
2745 PROP_LOCLIST handling code.
2746
2747 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
2748
2749 * buildsym-legacy.c (record_line): Pass extra parameter to
2750 record_line.
2751 * buildsym.c (buildsym_compunit::record_line): Take an extra
2752 parameter, reduce duplication in the line table, and record the
2753 is_stmt flag in the line table.
2754 * buildsym.h (buildsym_compunit::record_line): Add extra
2755 parameter.
2756 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
2757 non-statement lines.
2758 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
2759 this to the symtab builder.
2760 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
2761 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
2762 through to dwarf_record_line_1.
2763 * infrun.c (process_event_stop_test): When stepping, don't stop at
2764 a non-statement instruction, and only refresh the step info when
2765 we land in the middle of a line's range. Also add an extra
2766 comment.
2767 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
2768 field.
2769 * record-btrace.c (btrace_find_line_range): Only record lines
2770 marked as is-statement.
2771 * stack.c (frame_show_address): Show the frame address if we are
2772 in a non-statement sal.
2773 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
2774 (maintenance_print_one_line_table): Print a header for the is_stmt
2775 column, and include is_stmt information in the output.
2776 * symtab.c (find_pc_sect_line): Find lines marked as statements in
2777 preference to non-statements.
2778 (find_pcs_for_symtab_line): Prefer is-statement entries.
2779 (find_line_common): Likewise.
2780 * symtab.h (struct linetable_entry): Add is_stmt field.
2781 (struct symtab_and_line): Likewise.
2782 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
2783 arranging the line table.
2784
2785 2020-03-07 Tom de Vries <tdevries@suse.de>
2786
2787 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
2788 DIE.
2789
2790 2020-03-07 Tom Tromey <tom@tromey.com>
2791
2792 * valops.c (value_literal_complex): Remove obsolete comment.
2793 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
2794 comment.
2795
2796 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * infrun.h: Forward-declare thread_info.
2799 (set_step_info): Add thread_info parameter, add doc.
2800 * infrun.c (set_step_info): Add thread_info parameter, move doc
2801 to header.
2802 * infrun.c (process_event_stop_test): Pass thread to
2803 set_step_info call.
2804 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
2805 set_step_info.
2806 (prepare_one_step): Add thread_info parameter, pass it to
2807 set_step_frame and prepare_one_step (recursive) call.
2808 (step_1): Pass thread to prepare_one_step call.
2809 (step_command_fsm::should_stop): Pass thread to
2810 prepare_one_step.
2811 (until_next_fsm): Pass thread to set_step_frame call.
2812 (finish_command): Pass thread to set_step_info call.
2813
2814 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
2815
2816 * windows-tdep.c (windows_solib_create_inferior_hook):
2817 Check if inferior is running.
2818
2819 2020-03-06 Tom de Vries <tdevries@suse.de>
2820
2821 * NEWS: Fix "the the".
2822 * ctfread.c: Same.
2823
2824 2020-03-06 Tom de Vries <tdevries@suse.de>
2825
2826 * psymtab.c (psymtab_to_symtab): Don't print "done.".
2827
2828 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
2829
2830 * .dir-locals.el: Add a comment referencing the other copies of
2831 this file.
2832
2833 2020-03-05 John Baldwin <jhb@FreeBSD.org>
2834
2835 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
2836 psargs.
2837
2838 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2839
2840 * .gitattributes: New file.
2841
2842 2020-03-04 Tom Tromey <tom@tromey.com>
2843
2844 * symmisc.c (print_symbol_bcache_statistics)
2845 (print_objfile_statistics): Update.
2846 * symfile.c (allocate_symtab): Use intern.
2847 * psymtab.c (partial_symtab::partial_symtab): Use intern.
2848 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
2849 macro_cache>: Remove.
2850 <string_cache>: New member.
2851 (struct objfile) <intern>: New methods.
2852 * elfread.c (elf_symtab_read): Use intern.
2853 * dwarf2/read.c (fixup_go_packaging): Intern package name.
2854 (dwarf2_compute_name, dwarf2_physname)
2855 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
2856 names.
2857 (guess_partial_die_structure_name): Update.
2858 (partial_die_info::fixup): Intern name.
2859 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
2860 name.
2861 (dwarf2_name): Intern name. Update.
2862 * buildsym.c (buildsym_compunit::get_macro_table): Use
2863 string_cache.
2864
2865 2020-03-04 Tom Tromey <tom@tromey.com>
2866
2867 * jit.c (bfd_open_from_target_memory): Make "target" const.
2868 * corefile.c (gnutarget): Now const.
2869 * gdbcore.h (gnutarget): Now const.
2870
2871 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
2872
2873 * NEWS: Mention support for WOW64 processes.
2874 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
2875 (amd64_windows_segment_register_p): Remove static.
2876 (_initialize_amd64_windows_nat): Update.
2877 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
2878 * i386-windows-nat.c (context_offset): Update.
2879 (i386_mappings): Rename and remove static.
2880 (i386_windows_segment_register_p): Remove static.
2881 (_initialize_i386_windows_nat): Update.
2882 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
2883 (STATUS_WX86_SINGLE_STEP): New macro.
2884 (EnumProcessModulesEx): New macro.
2885 (Wow64SuspendThread): New macro.
2886 (Wow64GetThreadContext): New macro.
2887 (Wow64SetThreadContext): New macro.
2888 (Wow64GetThreadSelectorEntry): New macro.
2889 (windows_set_context_register_offsets): Add static.
2890 (windows_set_segment_register_p): Likewise.
2891 (windows_add_thread): Adapt for WOW64 processes.
2892 (windows_fetch_one_register): Likewise.
2893 (windows_nat_target::fetch_registers): Likewise.
2894 (windows_store_one_register): Likewise.
2895 (display_selector): Likewise.
2896 (display_selectors): Likewise.
2897 (handle_exception): Likewise.
2898 (windows_continue): Likewise.
2899 (windows_nat_target::resume): Likewise.
2900 (windows_add_all_dlls): Likewise.
2901 (do_initial_windows_stuff): Likewise.
2902 (windows_nat_target::attach): Likewise.
2903 (windows_get_exec_module_filename): Likewise.
2904 (windows_nat_target::create_inferior): Likewise.
2905 (windows_xfer_siginfo): Likewise.
2906 (_initialize_loadable): Initialize Wow64SuspendThread,
2907 Wow64GetThreadContext, Wow64SetThreadContext,
2908 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
2909 * windows-nat.h (windows_set_context_register_offsets):
2910 Remove declaration.
2911 (windows_set_segment_register_p): Likewise.
2912 (i386_windows_segment_register_p): Add declaration.
2913 (amd64_windows_segment_register_p): Likewise.
2914
2915 2020-03-04 Luis Machado <luis.machado@linaro.org>
2916
2917 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
2918 in "info registers" for AArch64/ARM.
2919
2920 The change caused "info registers" to not print GPR's.
2921
2922 gdb/ChangeLog:
2923
2924 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
2925
2926 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2927 when reg->group is empty and reggroup is not.
2928
2929 2020-03-03 Tom Tromey <tromey@adacore.com>
2930
2931 * dwarf2/frame.c (struct dwarf2_frame_cache)
2932 <checked_tailcall_bottom, entry_cfa_sp_offset,
2933 entry_cfa_sp_offset_p>: Remove members.
2934 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
2935 (dwarf2_frame_prev_register): Don't call
2936 dwarf2_tailcall_sniffer_first.
2937 (dwarf2_append_unwinders): Don't append tailcall unwinder.
2938 * frame-unwind.c (add_unwinder): New fuction.
2939 (frame_unwind_init): Use it. Add tailcall unwinder.
2940
2941 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
2942 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2943
2944 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
2945 value should be printed as true.
2946
2947 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
2948
2949 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
2950 (windows_init_abi): Set and use windows_so_ops.
2951
2952 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
2953
2954 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
2955 when verifying if dealing with a convenience variable.
2956
2957 2020-03-03 Luis Machado <luis.machado@linaro.org>
2958
2959 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
2960
2961 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 * infrun.c (gdbarch_supports_displaced_stepping): New.
2964 (use_displaced_stepping): Break up conditions in smaller pieces.
2965 Use gdbarch_supports_displaced_stepping.
2966 (displaced_step_prepare_throw): Use
2967 gdbarch_supports_displaced_stepping.
2968
2969 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * NEWS: Mention new behaviour of the history filename.
2972 * top.c (write_history_p): Add comment.
2973 (show_write_history_p): Add header comment, give a different
2974 message when history writing is on, but the history filename is
2975 empty.
2976 (history_filename): Add comment.
2977 (history_filename_empty): New function.
2978 (show_history_filename): Add header comment, give a different
2979 message when the filename is empty.
2980 (init_history): Compare history_filename against nullptr, and only
2981 read history if the filename is not empty.
2982 (set_history_filename): Add header comment, and only make
2983 non-empty filenames absolute.
2984 (init_main): Make the filename argument to 'set history filename'
2985 optional.
2986
2987 2020-03-02 Christian Biesinger <cbiesinger@google.com>
2988
2989 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
2990 (arm_supply_vfpregset): ...this, and update to use VFP registers.
2991 (fetch_fp_register): Update.
2992 (fetch_fp_regs): Update.
2993 (store_fp_register): Update.
2994 (store_fp_regs): Update.
2995 (arm_netbsd_nat_target::read_description): New function.
2996 (fetch_elfcore_registers): Update.
2997
2998 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
2999
3000 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
3001 general_thread if the stop reply is missing a thread-id.
3002 (remote_target::process_stop_reply): Use the first non-exited
3003 thread if the target didn't pass a thread-id.
3004 * infrun.c (do_target_wait): Move call to
3005 switch_to_inferior_no_thread to ....
3006 (do_target_wait_1): ... here.
3007
3008 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
3009
3010 * debuginfod-support.c: Include defs.h first.
3011
3012 2020-02-28 Tom de Vries <tdevries@suse.de>
3013
3014 * symfile.c (set_initial_language): Use default language for lookup.
3015
3016 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
3017
3018 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
3019 reader variable, pass `this` to read_cutu_die_from_dwo.
3020
3021 2020-02-27 Aaron Merey <amerey@redhat.com>
3022
3023 * source.c (open_source_file): Check for nullptr when computing
3024 srcpath.
3025
3026 2020-02-27 Tom Tromey <tromey@adacore.com>
3027
3028 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
3029 member.
3030 (dwarf2_add_field): Don't update nfields.
3031 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
3032
3033 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
3034
3035 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
3036 abs.
3037
3038 2020-02-26 Tom Tromey <tom@tromey.com>
3039
3040 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
3041 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
3042 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
3043 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
3044 per_cu_data.
3045
3046 2020-02-26 Tom Tromey <tom@tromey.com>
3047
3048 * dwarf2/index-write.c (psym_index_map): Change type.
3049 (add_address_entry_worker, write_one_signatured_type)
3050 (recursively_count_psymbols, recursively_write_psymbols)
3051 (class debug_names, psyms_seen_size, write_gdbindex)
3052 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
3053
3054 2020-02-26 Aaron Merey <amerey@redhat.com>
3055
3056 * Makefile.in: Handle optional debuginfod support.
3057 * NEWS: Update.
3058 * README: Add --with-debuginfod summary.
3059 * config.in: Regenerate.
3060 * configure: Regenerate.
3061 * configure.ac: Handle optional debuginfod support.
3062 * debuginfod-support.c: debuginfod helper functions.
3063 * debuginfod-support.h: Ditto.
3064 * doc/gdb.texinfo: Add --with-debuginfod to configure options
3065 summary.
3066 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
3067 when a dwz file cannot be found.
3068 * elfread.c (elf_symfile_read): Query debuginfod servers when a
3069 debuginfo file cannot be found.
3070 * source.c (open_source_file): Query debuginfod servers when a
3071 source file cannot be found.
3072 * top.c (print_gdb_configuration): Include
3073 --{with,without}-debuginfod in the output.
3074
3075 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3076
3077 * thread.c (thr_try_catch_cmd): Print thread name.
3078
3079 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
3080
3081 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
3082 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3083 dwarf2_fetch_die_type_sect_off): Move to...
3084 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3085 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3086 dwarf2_fetch_die_type_sect_off): ... here.
3087 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3088 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3089 dwarf2_fetch_die_type_sect_off): Move doc to header file.
3090
3091 2020-02-26 Tom de Vries <tdevries@suse.de>
3092
3093 PR gdb/25603
3094 * symfile.c (set_initial_language): Exit-early if
3095 language_mode == language_mode_manual.
3096
3097 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3098
3099 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
3100 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
3101 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
3102
3103 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3104
3105 * gdbtypes.c (create_array_type_with_stride): Handle negative
3106 array strides.
3107 * valarith.c (value_subscripted_rvalue): Likewise.
3108
3109 2020-02-25 Luis Machado <luis.machado@linaro.org>
3110
3111 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
3112
3113 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
3114
3115 * loc.h (dwarf2_get_die_type): Move to...
3116 * read.h (dwarf2_get_die_type): ... here.
3117 * read.c (dwarf2_get_die_type): Move doc to header.
3118
3119 2020-02-25 Joel Brobecker <brobecker@adacore.com>
3120
3121 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
3122 'gnulib/Makefile.in' to the list.
3123
3124 2020-02-24 Tom Tromey <tom@tromey.com>
3125
3126 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
3127 Remove.
3128 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
3129 XOBNEWVEC.
3130
3131 2020-02-24 Tom Tromey <tom@tromey.com>
3132
3133 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
3134 New method.
3135 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
3136 (dw2_do_instantiate_symtab, dw2_get_file_names)
3137 (build_type_psymtab_dependencies, load_full_type_unit): Update.
3138
3139 2020-02-24 Tom Tromey <tom@tromey.com>
3140
3141 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
3142 make_scoped_restore.
3143 (dwarf2_psymtab::read_symtab): Don't clear
3144 reading_partial_symbols.
3145
3146 2020-02-24 Tom de Vries <tdevries@suse.de>
3147
3148 PR gdb/25592
3149 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
3150
3151 2020-02-24 Tom de Vries <tdevries@suse.de>
3152
3153 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
3154 commands layout next/prev/regs.
3155
3156 2020-02-22 Tom Tromey <tom@tromey.com>
3157
3158 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
3159 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
3160
3161 2020-02-22 Tom Tromey <tom@tromey.com>
3162
3163 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
3164
3165 2020-02-22 Tom Tromey <tom@tromey.com>
3166
3167 * tui/tui-win.c (_initialize_tui_win): Add usage text.
3168 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
3169 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
3170 * tui/tui.c (_initialize_tui): Add usage text.
3171
3172 2020-02-22 Tom Tromey <tom@tromey.com>
3173
3174 * tui/tui-win.c (tui_set_focus_command)
3175 (tui_set_win_height_command): Use error_no_arg.
3176 (_initialize_tui_win): Update help text.
3177 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
3178
3179 2020-02-22 Tom Tromey <tom@tromey.com>
3180
3181 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
3182 * tui/tui-disasm.h (struct tui_disasm_window)
3183 <display_start_addr>: Declare.
3184 * tui/tui-source.h (struct tui_source_window)
3185 <display_start_addr>: Declare.
3186 * tui/tui-winsource.h (struct tui_source_window_base)
3187 <show_source_line, display_start_addr>: New methods.
3188 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
3189 Rename and move to protected section.
3190 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
3191 (tui_source_window_base::do_erase_source_content): Update.
3192 (tui_source_window_base::show_source_line): Now a method.
3193 (tui_source_window_base::show_source_content)
3194 (tui_source_window_base::tui_source_window_base)
3195 (tui_source_window_base::rerender)
3196 (tui_source_window_base::refill)
3197 (tui_source_window_base::do_scroll_horizontal)
3198 (tui_source_window_base::set_is_exec_point_at)
3199 (tui_source_window_base::update_breakpoint_info)
3200 (tui_source_window_base::update_exec_info): Update.
3201 * tui/tui-source.c (tui_source_window::set_contents)
3202 (tui_source_window::showing_source_p)
3203 (tui_source_window::do_scroll_vertical)
3204 (tui_source_window::location_matches_p)
3205 (tui_source_window::line_is_displayed): Update.
3206 (tui_source_window::display_start_addr): New method.
3207 * tui/tui-disasm.c (tui_disasm_window::set_contents)
3208 (tui_disasm_window::do_scroll_vertical)
3209 (tui_disasm_window::location_matches_p): Update.
3210 (tui_disasm_window::display_start_addr): New method.
3211
3212 2020-02-22 Tom Tromey <tom@tromey.com>
3213
3214 * NEWS: Add entry for gdb.register_window_type.
3215 * tui/tui-layout.h (window_factory): New typedef.
3216 (tui_register_window): Declare.
3217 * tui/tui-layout.c (saved_tui_windows): New global.
3218 (tui_apply_current_layout): Use it.
3219 (tui_register_window): New function.
3220 * python/python.c (do_start_initialization): Call
3221 gdbpy_initialize_tui.
3222 (python_GdbMethods): Add "register_window_type" function.
3223 * python/python-internal.h (gdbpy_register_tui_window)
3224 (gdbpy_initialize_tui): Declare.
3225 * python/py-tui.c: New file.
3226 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
3227
3228 2020-02-22 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
3231
3232 2020-02-22 Tom Tromey <tom@tromey.com>
3233
3234 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
3235 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
3236 * tui/tui-data.c (tui_set_win_with_focus): Remove.
3237 (tui_set_win_focus_to): Move from tui-win.c.
3238
3239 2020-02-22 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-layout.c (make_standard_window, get_locator_window): New
3242 functions.
3243 (known_window_types): New global.
3244 (tui_get_window_by_name): Reimplement.
3245 (initialize_known_windows): New function.
3246 (validate_window_name): Rewrite.
3247 (_initialize_tui_layout): Call initialize_known_windows.
3248
3249 2020-02-22 Tom Tromey <tom@tromey.com>
3250
3251 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
3252 Remove constants.
3253 * tui/tui-winsource.h (struct tui_source_window_base)
3254 <tui_source_window_base>: Remove parameter.
3255 * tui/tui-winsource.c
3256 (tui_source_window_base::tui_source_window_base): Remove
3257 parameter.
3258 (tui_source_window_base::refill): Update.
3259 * tui/tui-stack.h (struct tui_locator_window)
3260 <tui_locator_window>: Update.
3261 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
3262 Default the constructor.
3263 * tui/tui-regs.h (struct tui_data_item_window)
3264 <tui_data_item_window>: Default the constructor.
3265 (struct tui_data_window) <tui_data_window>: Likewise.
3266 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
3267 Default the constructor.
3268 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
3269 Default the constructor.
3270 <type>: Remove.
3271 (struct tui_win_info) <tui_win_info>: Default the constructor.
3272 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
3273 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
3274 Default the constructor.
3275
3276 2020-02-22 Tom Tromey <tom@tromey.com>
3277
3278 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
3279 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
3280 * tui/tui-win.c (tui_resize_all): Don't call
3281 tui_delete_invisible_windows.
3282 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
3283 done.
3284 (tui_set_layout): Update.
3285 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
3286 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
3287 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
3288
3289 2020-02-22 Tom Tromey <tom@tromey.com>
3290
3291 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
3292 correctly.
3293
3294 2020-02-22 Tom Tromey <tom@tromey.com>
3295
3296 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
3297
3298 2020-02-22 Tom Tromey <tom@tromey.com>
3299
3300 * tui/tui-winsource.h (struct tui_source_window_iterator)
3301 <inner_iterator>: New etytypedef.
3302 <tui_source_window_iterator>: Take "end" parameter.
3303 <tui_source_window_iterator>: Take iterator.
3304 <operator*, advance>: Update.
3305 <m_iter>: Change type.
3306 <m_end>: New field.
3307 (struct tui_source_windows) <begin, end>: Update.
3308 * tui/tui-layout.c (tui_windows): New global.
3309 (tui_apply_current_layout): Clear tui_windows.
3310 (tui_layout_window::apply): Update tui_windows.
3311 * tui/tui-data.h (tui_windows): Declare.
3312 (all_tui_windows): Now inline function.
3313 (class tui_window_iterator, struct all_tui_windows): Remove.
3314
3315 2020-02-22 Tom Tromey <tom@tromey.com>
3316
3317 PR tui/17850:
3318 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
3319 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
3320 "height" argument.
3321 (class tui_layout_window) <get_sizes>: Likewise.
3322 (class tui_layout_split) <tui_layout_split>: Add "vertical"
3323 argument.
3324 <get_sizes>: Add "height" argument.
3325 <m_vertical>: New field.
3326 * tui/tui-layout.c (tui_layout_split::clone): Update.
3327 (tui_layout_split::get_sizes): Add "height" argument.
3328 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
3329 (tui_new_layout_command): Parse "-horizontal".
3330 (_initialize_tui_layout): Update help string.
3331 (tui_layout_split::specification): Add "-horizontal" when needed.
3332 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
3333 argument.
3334 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
3335 New methods.
3336
3337 2020-02-22 Tom Tromey <tom@tromey.com>
3338
3339 * tui/tui-layout.h (enum tui_adjust_result): New.
3340 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
3341 (class tui_layout_window) <adjust_size>: Return
3342 tui_adjust_result. Rewrite.
3343 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
3344 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
3345
3346 2020-02-22 Tom Tromey <tom@tromey.com>
3347
3348 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
3349 parameter and return types.
3350 (class tui_layout_base) <specification>: Add "depth".
3351 (class tui_layout_window) <specification>: Add "depth".
3352 (class tui_layout_split) <specification>: Add "depth".
3353 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
3354 and return types.
3355 (tui_new_layout_command): Parse sub-layouts.
3356 (_initialize_tui_layout): Update help string.
3357 (tui_layout_window::specification): Add "depth".
3358 (add_layout_command): Update.
3359
3360 2020-02-22 Tom Tromey <tom@tromey.com>
3361
3362 * NEWS: Add "tui new-layout" item.
3363 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
3364 Add new-layout command to help text.
3365 (validate_window_name): New function.
3366 (tui_new_layout_command): New function.
3367 (_initialize_tui_layout): Register "new-layout".
3368 (tui_layout_window::specification): New method.
3369 (tui_layout_window::specification): New method.
3370 * tui/tui-layout.h (class tui_layout_base) <specification>: New
3371 method.
3372 (class tui_layout_window) <specification>: New method.
3373 (class tui_layout_split) <specification>: New method.
3374
3375 2020-02-22 Tom Tromey <tom@tromey.com>
3376
3377 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
3378 * tui/tui-win.c (window_name_completer): Update comment.
3379 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
3380 Declare method.
3381 (class tui_layout_window) <replace_window>: Likewise.
3382 (class tui_layout_split) <replace_window>: Likewise.
3383 (tui_set_layout): Don't declare.
3384 (tui_set_initial_layout): Declare function.
3385 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
3386 (asm_regs_layout): New globals.
3387 (tui_current_layout, show_layout): Remove.
3388 (tui_set_layout, tui_add_win_to_layout): Rewrite.
3389 (find_layout, tui_apply_layout): New function.
3390 (layout_completer): Remove.
3391 (tui_next_layout): Reimplement.
3392 (tui_next_layout_command): New function.
3393 (tui_set_initial_layout, tui_prev_layout_command): New functions.
3394 (tui_regs_layout): Reimplement.
3395 (tui_regs_layout_command): New function.
3396 (extract_display_start_addr): Rewrite.
3397 (next_layout, prev_layout): Remove.
3398 (tui_layout_window::replace_window): New method.
3399 (tui_layout_split::replace_window): New method.
3400 (destroy_layout): New function.
3401 (layout_list): New global.
3402 (add_layout_command): New function.
3403 (initialize_layouts): Update.
3404 (tui_layout_command): New function.
3405 (_initialize_tui_layout): Install "layout" commands.
3406 * tui/tui-data.h (enum tui_layout_type): Remove.
3407 (tui_current_layout): Don't declare.
3408
3409 2020-02-22 Tom Tromey <tom@tromey.com>
3410
3411 * tui/tui-regs.c (tui_reg_layout): Remove.
3412 (tui_reg_command): Use tui_regs_layout.
3413 * tui/tui-layout.h (tui_reg_command): Declare.
3414 * tui/tui-layout.c (tui_reg_command): New function.
3415
3416 2020-02-22 Tom Tromey <tom@tromey.com>
3417
3418 * tui/tui.c (tui_rl_delete_other_windows): Call
3419 tui_remove_some_windows.
3420 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
3421 Declare method.
3422 (class tui_layout_window) <remove_windows>: New method.
3423 (class tui_layout_split) <remove_windows>: Declare.
3424 (tui_remove_some_windows): Declare.
3425 * tui/tui-layout.c (tui_remove_some_windows): New function.
3426 (tui_layout_split::remove_windows): New method.
3427
3428 2020-02-22 Tom Tromey <tom@tromey.com>
3429
3430 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
3431 * tui/tui-layout.h (tui_next_layout): Declare.
3432 * tui/tui-layout.c (tui_next_layout): New function.
3433
3434 2020-02-22 Tom Tromey <tom@tromey.com>
3435
3436 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
3437 correct coordinates.
3438
3439 2020-02-22 Tom Tromey <tom@tromey.com>
3440
3441 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
3442 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
3443 DATA_WIN case.
3444
3445 2020-02-22 Tom Tromey <tom@tromey.com>
3446
3447 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
3448 TUI_DISASM_WIN, not tui_win_list.
3449
3450 2020-02-22 Tom Tromey <tom@tromey.com>
3451
3452 * valprint.c (generic_val_print_enum_1)
3453 (val_print_type_code_flags): Style member names.
3454 * rust-lang.c (val_print_struct, rust_print_enum)
3455 (rust_print_struct_def, rust_internal_print_type): Style member
3456 names.
3457 * p-valprint.c (pascal_object_print_value_fields): Style member
3458 names. Only call fprintf_symbol_filtered for static members.
3459 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
3460 * f-valprint.c (f_val_print): Style member names.
3461 * f-typeprint.c (f_type_print_base): Style member names.
3462 * cp-valprint.c (cp_print_value_fields): Style member names. Only
3463 call fprintf_symbol_filtered for static members.
3464 (cp_print_class_member): Style member names.
3465 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
3466 member names.
3467 * ada-valprint.c (ada_print_scalar): Style enum names.
3468 (ada_val_print_enum): Likewise.
3469 * ada-typeprint.c (print_enum_type): Style enum names.
3470
3471 2020-02-21 Tom Tromey <tom@tromey.com>
3472
3473 * psympriv.h (struct partial_symtab): Update comment.
3474
3475 2020-02-21 Tom Tromey <tromey@adacore.com>
3476
3477 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
3478 type is CORE_ADDR.
3479
3480 2020-02-21 Tom de Vries <tdevries@suse.de>
3481
3482 PR gdb/25534
3483 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
3484 if dependencies[i]->user != NULL.
3485
3486 2020-02-21 Ali Tamur <tamur@google.com>
3487
3488 * dwarf2/read.c (dwarf2_name): Add null check.
3489
3490 2020-02-20 Tom Tromey <tom@tromey.com>
3491
3492 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
3493 ">=", in binary search.
3494 (dwarf2_find_containing_comp_unit): New overload.
3495 (run_test): New self-test.
3496 (_initialize_dwarf2_read): Register new test.
3497
3498 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
3499
3500 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
3501 * riscv-tdep.h: Likewise.
3502 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
3503 rv32-only CSR.
3504 * features/riscv/64bit-csr.xml: Regenerated.
3505
3506 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3507 Tom Tromey <tom@tromey.com>
3508
3509 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
3510 of 'fputc_unfiltered'.
3511 (putchar_unfiltered): Call 'fputc_unfiltered'.
3512 (fputc_unfiltered): Call 'fputs_unfiltered'.
3513
3514 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
3515
3516 * config.in: Regenerate.
3517 * configure: Regenerate.
3518 * configure.ac: Add --with-python-libdir option.
3519 * main.c: Use WITH_PYTHON_LIBDIR.
3520
3521 2020-02-19 Tom Tromey <tom@tromey.com>
3522
3523 * symtab.c (general_symbol_info::compute_and_set_names): Use
3524 obstack_strndup. Simplify call to symbol_set_demangled_name.
3525
3526 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * dwarf2/read.c (allocate_signatured_type_table,
3529 allocate_dwo_unit_table, allocate_type_unit_groups_table,
3530 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
3531 Remove objfile parameter, update all callers.
3532
3533 2020-02-19 Doug Evans <dje@google.com>
3534
3535 PR rust/25535
3536 * rust-lang.c (rust_print_enum): Apply embedded_offset to
3537 rust_enum_variant calculation.
3538
3539 2020-02-19 Tom Tromey <tromey@adacore.com>
3540
3541 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
3542
3543 2020-02-19 Tom Tromey <tromey@adacore.com>
3544
3545 * ada-lang.c (cache_symbol): Use obstack_strdup.
3546
3547 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3548
3549 * configure: Regenerate.
3550
3551 2020-02-19 Tom Tromey <tromey@adacore.com>
3552
3553 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
3554 NULL check.
3555
3556 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
3557
3558 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
3559
3560 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
3561
3562 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
3563 if GDBSERVER is not defined.
3564 (riscv_tdesc_cache): Likewise, also store const target_desc.
3565 (STATIC_IN_GDB): Define.
3566 (riscv_create_target_description): Update declaration with
3567 STATIC_IN_GDB.
3568 (riscv_lookup_target_description): New function, only define if
3569 GDBSERVER is not defined.
3570 * arch/riscv.h (riscv_create_target_description): Declare only
3571 when GDBSERVER is defined.
3572 (riscv_lookup_target_description): New declaration when GDBSERVER
3573 is not defined.
3574 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
3575 (riscv_linux_read_features): ...this, and return
3576 riscv_gdbarch_features instead of target_desc.
3577 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
3578 (riscv_linux_read_description): Rename to...
3579 (riscv_linux_read_features): ...this.
3580 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
3581 Update to use riscv_gdbarch_features and
3582 riscv_lookup_target_description.
3583 * riscv-tdep.c (riscv_find_default_target_description): Use
3584 riscv_lookup_target_description instead of
3585 riscv_create_target_description.
3586
3587 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3588
3589 * valprint.c (generic_val_print_enum_1): When printing a flag
3590 enum with value 0 and there is no enumerator with value 0, print
3591 just "0" instead of "(unknown: 0x0)".
3592
3593 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * valprint.c (generic_val_print_enum_1): Print unknown part of
3596 flag enum in hex.
3597
3598 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3599
3600 * dwarf2/read.c (update_enumeration_type_from_children): Allow
3601 flag enums to contain duplicate enumerators.
3602 * valprint.c (generic_val_print_enum_1): Update comment.
3603
3604 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3605
3606 * dwarf2/read.c: Include "count-one-bits.h".
3607 (update_enumeration_type_from_children): If an enumerator has
3608 multiple bits set, don't treat the enumeration as a "flag enum".
3609 * valprint.c (generic_val_print_enum_1): Assert that enumerators
3610 of flag enums have 0 or 1 bit set.
3611
3612 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
3613
3614 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
3615 conversion.
3616 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3617 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3618 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3619 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3620 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3621
3622 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
3623
3624 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
3625
3626 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3627
3628 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
3629 displaced_step_closure_up.
3630 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3631 (struct displaced_step_closure_up):
3632 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3633 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3634 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
3635 Likewise.
3636 * gdbarch.sh (displaced_step_copy_insn): Likewise.
3637 * gdbarch.c, gdbarch.h: Re-generate.
3638 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
3639 displaced_step_closure_up.
3640 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3641 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3642 * infrun.h (displaced_step_closure_up): New type alias.
3643 (struct displaced_step_inferior_state) <step_closure>: Change
3644 type to displaced_step_closure_up.
3645 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
3646 displaced_step_closure_up.
3647 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3648
3649 2020-02-14 Tom Tromey <tom@tromey.com>
3650
3651 * minidebug.c (gnu_debug_key): New global.
3652 (find_separate_debug_file_in_section): Use it.
3653
3654 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3655
3656 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
3657 std::unique_ptr.
3658 * gdbarch.c: Re-generate.
3659 * gdbarch.h: Re-generate.
3660 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
3661 change.
3662 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
3663 type to std::unique_ptr.
3664 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
3665 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
3666 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
3667 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
3668 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
3669 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
3670 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
3671 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
3672 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
3673
3674 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
3677 std::unique_ptr.
3678 (displaced_step_clear): Rename to...
3679 (displaced_step_reset): ... this. Just call displaced->reset ().
3680 (displaced_step_clear_cleanup): Rename to...
3681 (displaced_step_reset_cleanup): ... this.
3682 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
3683 (displaced_step_fixup): Likewise.
3684 (resume_1): Likewise.
3685 (handle_inferior_event): Restore child's memory before calling
3686 displaced_step_fixup on the parent.
3687 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
3688 to std::unique_ptr.
3689 <step_closure>: Change type to std::unique_ptr.
3690
3691 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
3692
3693 * arm-tdep.c: Include count-one-bits.h.
3694 (cleanup_block_store_pc): Use count_one_bits.
3695 (cleanup_block_load_pc): Use count_one_bits.
3696 (arm_copy_block_xfer): Use count_one_bits.
3697 (thumb2_copy_block_xfer): Use count_one_bits.
3698 (thumb_copy_pop_pc_16bit): Use count_one_bits.
3699 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
3700 (thumb_get_next_pcs_raw): Use count_one_bits.
3701 (arm_get_next_pcs_raw): Use count_one_bits_l.
3702 * arch/arm.c (bitcount): Remove.
3703 * arch/arm.h (bitcount): Remove.
3704
3705 2020-02-14 Tom Tromey <tromey@adacore.com>
3706
3707 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
3708 Update.
3709 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
3710 * dwarf2/loc.c (call_site_find_chain_1): Return
3711 unique_xmalloc_ptr.
3712 (call_site_find_chain): Likewise.
3713
3714 2020-02-14 Richard Biener <rguenther@suse.de>
3715
3716 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
3717 on expression with division operators.
3718
3719 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3720
3721 * MAINTAINERS (Write After Approval): Adding myself.
3722
3723 2020-02-12 Tom Tromey <tom@tromey.com>
3724
3725 * event-loop.c (event_data, gdb_event, event_handler_func):
3726 Remove.
3727
3728 2020-02-12 Tom Tromey <tom@tromey.com>
3729
3730 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
3731 (dwarf2_frame_objfile_data): Add comment.
3732 (find_comp_unit, set_comp_unit): New functions.
3733 (dwarf2_frame_find_fde): Use find_comp_unit.
3734 (dwarf2_build_frame_info): Use set_comp_unit.
3735
3736 2020-02-12 Tom Tromey <tom@tromey.com>
3737
3738 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
3739 (comp_unit): Don't initialize objfile.
3740 (execute_cfa_program): Add text_offset parameter.
3741 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
3742 (dwarf2_frame_cache): Update.
3743 (dwarf2_build_frame_info): Don't set "objfile" member.
3744
3745 2020-02-12 Tom Tromey <tom@tromey.com>
3746
3747 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
3748 (decode_frame_entry): Likewise.
3749 (dwarf2_build_frame_info): Update.
3750
3751 2020-02-12 Tom Tromey <tom@tromey.com>
3752
3753 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
3754 (decode_frame_entry_1): Use the comp_unit obstack.
3755
3756 2020-02-12 Tom Tromey <tom@tromey.com>
3757
3758 * dwarf2/frame.c (struct comp_unit): Add initializers and
3759 constructor.
3760 (dwarf2_frame_objfile_data): Store a comp_unit.
3761 (dwarf2_frame_find_fde): Update.
3762 (dwarf2_build_frame_info): Use "new".
3763
3764 2020-02-12 Tom Tromey <tom@tromey.com>
3765
3766 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
3767 (dwarf2_fde_table): Typedef for std::vector.
3768 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
3769 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
3770 (decode_frame_entry): Update.
3771 (dwarf2_build_frame_info): Use "new".
3772
3773 2020-02-12 Christian Biesinger <cbiesinger@google.com>
3774
3775 * arm-tdep.c (arm_gdbarch_init): Update.
3776 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
3777 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
3778 have_neon, is_m>: Change to bool.
3779
3780 2020-02-12 Christian Biesinger <cbiesinger@google.com>
3781
3782 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
3783
3784 2020-02-12 Tom Tromey <tom@tromey.com>
3785
3786 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
3787
3788 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
3789
3790 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
3791 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
3792
3793 2020-02-11 Tom Tromey <tom@tromey.com>
3794
3795 * psymtab.h: Update comment.
3796
3797 2020-02-11 Tom Tromey <tom@tromey.com>
3798
3799 * gdb_obstack.h (struct auto_obstack): Use
3800 DISABLE_COPY_AND_ASSIGN.
3801
3802 2020-02-11 Tom Tromey <tom@tromey.com>
3803
3804 * dwarf2/frame.h (struct objfile): Don't forward declare.
3805
3806 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3807
3808 * cris-tdep.c (cris_supply_gregset): Change signature to match
3809 what struct regset expects.
3810 (cris_regset): New struct.
3811 (fetch_core_registers): Remove.
3812 (cris_iterate_over_regset_sections): New function.
3813 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
3814 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
3815
3816 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3817
3818 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
3819 registers.
3820
3821 2020-02-11 Christian Biesinger <cbiesinger@google.com>
3822
3823 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
3824
3825 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3826
3827 * configure: Re-generate.
3828
3829 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3830
3831 * configure: Re-generate.
3832
3833 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
3834
3835 * acinclude: Update warning.m4 path.
3836 * warning.m4: Move to gdbsupport.
3837
3838 2020-02-11 Tom Tromey <tromey@adacore.com>
3839
3840 * remote.c (remote_console_output): Update.
3841 * printcmd.c (printf_command): Update.
3842 * event-loop.c (gdb_wait_for_event): Update.
3843 * linux-nat.c (sigchld_handler): Update.
3844 * remote-sim.c (gdb_os_write_stdout): Update.
3845 (gdb_os_flush_stdout): Update.
3846 (gdb_os_flush_stderr): Update.
3847 (gdb_os_write_stderr): Update.
3848 * exceptions.c (print_exception): Update.
3849 * remote-fileio.c (remote_fileio_func_read): Update.
3850 (remote_fileio_func_write): Update.
3851 * tui/tui.c (tui_enable): Update.
3852 * tui/tui-interp.c (tui_interp::init): Update.
3853 * utils.c (init_page_info): Update.
3854 (putchar_unfiltered, fputc_unfiltered): Update.
3855 (gdb_flush): Update.
3856 (emit_style_escape): Update.
3857 (flush_wrap_buffer, fputs_maybe_filtered): Update.
3858 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
3859 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
3860 (stderr_file::write): Update.
3861 (stderr_file::puts): Update.
3862 * ui-file.h (ui_file_isatty, ui_file_write)
3863 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
3864 (ui_file_puts): Don't declare.
3865
3866 2020-02-10 Tom de Vries <tdevries@suse.de>
3867
3868 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
3869 sentinel to char *.
3870
3871 2020-02-09 Tom de Vries <tdevries@suse.de>
3872
3873 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
3874 filename if it matches "<artificial>".
3875
3876 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3877
3878 * windows-tdep.c (struct enum_value_name): New struct.
3879 (create_enum): New function.
3880 (windows_get_siginfo_type): Create and use enum types.
3881
3882 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
3883
3884 * NEWS: Mention $_siginfo support for Windows.
3885 * windows-nat.c (handle_exception): Set siginfo_er.
3886 (windows_nat_target::mourn_inferior): Reset siginfo_er.
3887 (windows_xfer_siginfo): New function.
3888 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
3889 * windows-tdep.c (struct windows_gdbarch_data): New struct.
3890 (init_windows_gdbarch_data): New function.
3891 (get_windows_gdbarch_data): New function.
3892 (windows_get_siginfo_type): New function.
3893 (windows_init_abi): Register windows_get_siginfo_type.
3894 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
3895
3896 2020-02-08 Tom Tromey <tom@tromey.com>
3897
3898 * dwarf2/read.c (class cutu_reader) <cutu_reader,
3899 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
3900 <keep>: Declare method.
3901 <m_keep>: Remove member.
3902 <~cutu_reader>: Remove.
3903 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3904 (cutu_reader::cutu_reader): Update.
3905 (cutu_reader::keep): Rename from ~cutu_reader.
3906 (process_psymtab_comp_unit, build_type_psymtabs_1)
3907 (process_skeletonless_type_unit, load_partial_comp_unit)
3908 (load_full_comp_unit, dwarf2_read_addr_index)
3909 (read_signatured_type): Update.
3910
3911 2020-02-08 Tom Tromey <tom@tromey.com>
3912
3913 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
3914 "want_partial_unit" parameter.
3915 (process_psymtab_comp_unit): Change want_partial_unit to bool.
3916 Inline check for DW_TAG_partial_unit.
3917 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
3918
3919 2020-02-08 Tom Tromey <tom@tromey.com>
3920
3921 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
3922 read.c.
3923 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
3924 read.c.
3925
3926 2020-02-08 Tom Tromey <tom@tromey.com>
3927
3928 * dwarf2/read.c (read_address): Move to comp-unit.c.
3929 (dwarf2_rnglists_process, dwarf2_ranges_process)
3930 (read_attribute_value, dwarf_decode_lines_1)
3931 (var_decode_location, decode_locdesc): Update.
3932 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
3933 read.c. Remove "cu" parameter.
3934 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
3935 method.
3936
3937 2020-02-08 Tom Tromey <tom@tromey.com>
3938
3939 * dwarf2/read.c (read_attribute_value, read_indirect_string)
3940 (read_indirect_line_string): Update.
3941 * dwarf2/comp-unit.c (read_offset): Remove.
3942 (read_comp_unit_head): Update.
3943 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
3944 method.
3945 (read_offset): Don't declare.
3946
3947 2020-02-08 Tom Tromey <tom@tromey.com>
3948
3949 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
3950 * dwarf2/read.c (struct comp_unit_head): Move to
3951 dwarf2/comp-unit.h.
3952 (enum class rcuh_kind): Move to comp-unit.h.
3953 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
3954 (read_comp_unit_head, error_check_comp_unit_head)
3955 (read_and_check_comp_unit_head): Move to comp-unit.c.
3956 (read_offset, dwarf_unit_type_name): Likewise.
3957 (create_debug_type_hash_table, read_cutu_die_from_dwo)
3958 (cutu_reader::cutu_reader, read_call_site_scope)
3959 (find_partial_die, follow_die_offset): Update.
3960 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
3961
3962 2020-02-08 Tom Tromey <tom@tromey.com>
3963
3964 * dwarf2/read.c (read_offset_1): Move to leb.c.
3965 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
3966 (dwarf_decode_macro_bytes): Update.
3967 * dwarf2/leb.c (read_offset): Rename; move from read.c.
3968 * dwarf2/leb.h (read_offset): Declare.
3969
3970 2020-02-08 Tom Tromey <tom@tromey.com>
3971
3972 * dwarf2/read.c (dwarf2_section_size): Remove.
3973 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
3974 Update.
3975 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
3976
3977 2020-02-08 Tom Tromey <tom@tromey.com>
3978
3979 * dwarf2/read.c (read_initial_length): Move to leb.c.
3980 * dwarf2/leb.h (read_initial_length): Declare.
3981 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
3982 handle_nonstd parameter.
3983 * dwarf2/frame.c (read_initial_length): Remove.
3984 (decode_frame_entry_1): Update.
3985
3986 2020-02-08 Tom Tromey <tom@tromey.com>
3987
3988 * dwarf2/loc.c (dwarf2_find_location_expression)
3989 (dwarf_evaluate_loc_desc::get_tls_address)
3990 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
3991 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
3992 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
3993 (dwarf2_compile_property_to_c)
3994 (dwarf2_loc_desc_get_symbol_read_needs)
3995 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
3996 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
3997 (loclist_describe_location, loclist_tracepoint_var_ref)
3998 (loclist_generate_c_location): Update.
3999 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
4000 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
4001 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
4002 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
4003 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
4004 (dwarf2_per_cu_data::addr_size)
4005 (dwarf2_per_cu_data::ref_addr_size)
4006 (dwarf2_per_cu_data::text_offset)
4007 (dwarf2_per_cu_data::addr_type): Now methods.
4008 (per_cu_header_read_in): Make per_cu "const".
4009 (dwarf2_version): Remove.
4010 (dwarf2_per_cu_data::int_type): Now a method.
4011 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
4012 (set_die_type, read_array_type, read_subrange_index_type)
4013 (read_tag_string_type, read_subrange_type): Update.
4014 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
4015 offset_size, ref_addr_size, text_offset, addr_type, version,
4016 objfile, int_type, addr_sized_int_type>: Declare methods.
4017
4018 2020-02-08 Tom Tromey <tom@tromey.com>
4019
4020 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
4021 Move earlier.
4022
4023 2020-02-08 Tom Tromey <tom@tromey.com>
4024
4025 * dwarf2/read.h (dwarf_line_debug): Declare.
4026 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
4027 * dwarf2/read.c: Move line_header code to new files.
4028 (dwarf_line_debug): No longer static.
4029 * dwarf2/line-header.c: New file.
4030 * dwarf2/line-header.h: New file.
4031
4032 2020-02-08 Tom Tromey <tom@tromey.com>
4033
4034 * dwarf2/read.c (struct line_header) <file_full_name,
4035 file_file_name>: Return unique_xmalloc_ptr.
4036 (line_header::file_file_name): Update.
4037 (line_header::file_full_name): Update.
4038 (dw2_get_file_names_reader): Update.
4039 (macro_start_file): Update.
4040
4041 2020-02-08 Tom Tromey <tom@tromey.com>
4042
4043 * dwarf2/read.c (struct line_header) <file_full_name,
4044 file_file_name>: Declare methods.
4045 (dw2_get_file_names_reader): Update.
4046 (file_file_name): Now a method.
4047 (file_full_name): Likewise.
4048 (macro_start_file): Update.
4049
4050 2020-02-08 Tom Tromey <tom@tromey.com>
4051
4052 * dwarf2/read.c (dwarf_always_disassemble)
4053 (show_dwarf_always_disassemble): Move to loc.c.
4054 (_initialize_dwarf2_read): Move "always-disassemble" registration
4055 to loc.c.
4056 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
4057 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
4058 static.
4059 (show_dwarf_always_disassemble): Move from read.c.
4060 (_initialize_dwarf2loc): Move always-disassemble from read.c.
4061
4062 2020-02-08 Tom Tromey <tom@tromey.com>
4063
4064 * dwarf2/read.c (~dwarf2_per_objfile): Update.
4065 (create_quick_file_names_table): Return htab_up.
4066 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
4067 Update.
4068 * dwarf2/read.h (struct dwarf2_per_objfile)
4069 <quick_file_names_table>: Now htab_up.
4070
4071 2020-02-08 Tom Tromey <tom@tromey.com>
4072
4073 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
4074
4075 2020-02-08 Tom Tromey <tom@tromey.com>
4076
4077 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
4078 Rewrite.
4079 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
4080 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
4081 (abbrev_table::abbrev_table): No longer inline.
4082 (ABBREV_HASH_SIZE): Remove.
4083 (abbrev_table::m_abbrevs): Now an htab_up.
4084
4085 2020-02-08 Tom Tromey <tom@tromey.com>
4086
4087 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
4088 (cutu_reader): Update.
4089 (build_type_psymtabs_1): Update.
4090 * dwarf2/abbrev.c (abbrev_table::read): Rename.
4091 (abbrev_table::alloc_abbrev): Update.
4092 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
4093 (abbrev_table::read): New static method, renamed from
4094 abbrev_table_read_table.
4095 (abbrev_table::alloc_abbrev)
4096 (abbrev_table::add_abbrev): Now private.
4097 (abbrev_table::abbrev_table): Now private.
4098 (abbrev_table::m_abbrev_obstack): Now private. Rename.
4099
4100 2020-02-08 Tom Tromey <tom@tromey.com>
4101
4102 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
4103 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
4104 htab_up.
4105
4106 2020-02-08 Tom Tromey <tom@tromey.com>
4107
4108 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
4109 htab_up.
4110 (lookup_dwo_unit_in_dwp): Update.
4111 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
4112 on obstack.
4113
4114 2020-02-08 Tom Tromey <tom@tromey.com>
4115
4116 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
4117 obstack.
4118
4119 2020-02-08 Tom Tromey <tom@tromey.com>
4120
4121 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
4122 line_header_hash.
4123 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
4124 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
4125 Change type to htab_up.
4126
4127 2020-02-08 Tom Tromey <tom@tromey.com>
4128
4129 * dwarf2/read.c (allocate_type_unit_groups_table): Return
4130 htab_up. Don't allocate on obstack.
4131 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
4132 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
4133 Change type to htab_up.
4134
4135 2020-02-08 Tom Tromey <tom@tromey.com>
4136
4137 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
4138 Change type to htab_up.
4139 * dwarf2/read.c (create_signatured_type_table_from_index)
4140 (create_signatured_type_table_from_debug_names)
4141 (create_all_type_units, add_type_unit)
4142 (lookup_dwo_signatured_type, lookup_signatured_type)
4143 (process_skeletonless_type_unit): Update.
4144 (create_debug_type_hash_table, create_debug_types_hash_table):
4145 Change type of types_htab.
4146 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
4147 htab_up. Don't allocate on obstack.
4148 (create_cus_hash_table): Change type of cus_htab parameter.
4149 (struct dwo_file) <cus, tus>: Now htab_up.
4150 (lookup_dwo_signatured_type, lookup_dwo_cutu)
4151 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
4152 (queue_and_load_all_dwo_tus): Update.
4153 * dwarf2/index-write.c (write_gdbindex): Update.
4154 (write_debug_names): Update.
4155
4156 2020-02-08 Tom Tromey <tom@tromey.com>
4157
4158 * dwarf2/read.h (struct dwarf2_queue_item): Move from
4159 dwarf2/read.c. Remove "next" member. Add constructor ntad
4160 destructor.
4161 (struct dwarf2_per_objfile) <queue>: New member.
4162 * dwarf2/read.c (struct dwarf2_queue_item): Move to
4163 dwarf2/read.h.
4164 (dwarf2_queue, dwarf2_queue_tail): Remove.
4165 (class dwarf2_queue_guard): Add parameter to constructor. Use
4166 DISABLE_COPY_AND_ASSIGN.
4167 <m_per_objfile>: New member.
4168 <~dwarf2_queue_guard>: Rewrite.
4169 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
4170 Update.
4171 (~dwarf2_queue_item): New.
4172
4173 2020-02-08 Tom Tromey <tom@tromey.com>
4174
4175 * dwarf2/read.c (struct die_info) <has_children>: New member.
4176 (dw2_get_file_names_reader): Remove has_children.
4177 (dw2_get_file_names): Update.
4178 (read_cutu_die_from_dwo): Remove has_children.
4179 (cutu_reader::init_tu_and_read_dwo_dies)
4180 (cutu_reader::cutu_reader): Update.
4181 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
4182 Remove has_children.
4183 (build_type_psymtabs_1, process_skeletonless_type_unit)
4184 (load_partial_comp_unit, load_full_comp_unit): Update.
4185 (create_dwo_cu_reader): Remove has_children.
4186 (create_cus_hash_table, read_die_and_children): Update.
4187 (read_full_die_1,read_full_die): Remove has_children.
4188 (read_signatured_type): Update.
4189 (class cutu_reader) <has_children>: Remove.
4190
4191 2020-02-08 Tom Tromey <tom@tromey.com>
4192
4193 * dwarf2/expr.c: Rename from dwarf2expr.c.
4194 * dwarf2/expr.h: Rename from dwarf2expr.h.
4195 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
4196 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
4197 * dwarf2/frame.c: Rename from dwarf2-frame.c.
4198 * dwarf2/frame.h: Rename from dwarf2-frame.h.
4199 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
4200 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
4201 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
4202 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
4203 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
4204 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
4205 * dwarf2/loc.c: Rename from dwarf2loc.c.
4206 * dwarf2/loc.h: Rename from dwarf2loc.h.
4207 * dwarf2/read.c: Rename from dwarf2read.c.
4208 * dwarf2/read.h: Rename from dwarf2read.h.
4209 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
4210 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
4211 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
4212 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
4213 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
4214 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
4215 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
4216 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
4217 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
4218 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
4219 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
4220 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
4221 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
4222 Update.
4223 * Makefile.in (COMMON_SFILES): Update.
4224 (HFILES_NO_SRCDIR): Update.
4225
4226 2020-02-08 Tom Tromey <tom@tromey.com>
4227
4228 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
4229 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
4230
4231 2020-02-08 Tom Tromey <tom@tromey.com>
4232
4233 * dwarf2read.h (struct die_info): Don't declare.
4234
4235 2020-02-08 Tom Tromey <tom@tromey.com>
4236
4237 * dwarf2read.h (die_info_ptr): Remove typedef.
4238
4239 2020-02-08 Tom Tromey <tom@tromey.com>
4240
4241 * dwarf2read.c (read_call_site_scope)
4242 (handle_data_member_location, dwarf2_add_member_fn)
4243 (mark_common_block_symbol_computed, read_common_block)
4244 (attr_to_dynamic_prop, partial_die_info::read)
4245 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
4246 (dwarf2_symbol_mark_computed, set_die_type): Update.
4247 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
4248 method.
4249 (attr_form_is_block): Don't declare.
4250 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
4251
4252 2020-02-08 Tom Tromey <tom@tromey.com>
4253
4254 * dwarf2read.c (dwarf2_find_base_address, )
4255 (read_call_site_scope, rust_containing_type)
4256 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
4257 (handle_data_member_location, dwarf2_add_member_fn)
4258 (get_alignment, read_structure_type, process_structure_scope)
4259 (mark_common_block_symbol_computed, read_common_block)
4260 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
4261 (partial_die_info::read, read_attribute_value, new_symbol)
4262 (lookup_die_type, dwarf2_get_ref_die_offset)
4263 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
4264 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
4265 (dwarf2_symbol_mark_computed): Update.
4266 * dwarf2/attribute.h (struct attribute) <value_as_address,
4267 form_is_section_offset, form_is_constant, form_is_ref>: Declare
4268 methods.
4269 (value_as_address, attr_form_is_section_offset)
4270 (attr_form_is_constant, attr_form_is_ref): Don't declare.
4271 * dwarf2/attribute.c (attribute::value_as_address)
4272 (attribute::form_is_section_offset, attribute::form_is_constant)
4273 (attribute::form_is_ref): Now methods.
4274
4275 2020-02-08 Tom Tromey <tom@tromey.com>
4276
4277 * dwarf2read.c (struct attribute, DW_STRING)
4278 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
4279 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
4280 (attr_form_is_block, attr_form_is_section_offset)
4281 (attr_form_is_constant, attr_form_is_ref): Move.
4282 * dwarf2/attribute.h: New file.
4283 * dwarf2/attribute.c: New file, from dwarf2read.c.
4284 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
4285
4286 2020-02-08 Tom Tromey <tom@tromey.com>
4287
4288 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
4289 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
4290 Move.
4291 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
4292 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
4293 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
4294 abbrev.c.
4295 * dwarf2/abbrev.h: New file.
4296 * dwarf2/abbrev.c: New file, from dwarf2read.c.
4297 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
4298
4299 2020-02-08 Tom Tromey <tom@tromey.com>
4300
4301 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
4302 (dwarf2_section_size, dwarf2_get_section_info)
4303 (create_signatured_type_table_from_debug_names)
4304 (create_addrmap_from_aranges, read_debug_names_from_section)
4305 (get_gdb_index_contents_from_section, read_comp_unit_head)
4306 (error_check_comp_unit_head, read_abbrev_offset)
4307 (create_debug_type_hash_table, init_cu_die_reader)
4308 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
4309 (read_comp_units_from_section, create_cus_hash_table)
4310 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4311 (create_dwp_v2_section, dwarf2_rnglists_process)
4312 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
4313 (abbrev_table_read_table, read_indirect_string_at_offset_from)
4314 (read_indirect_string_from_dwz, read_addr_index_1)
4315 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
4316 (dwarf_decode_macro_bytes, dwarf_decode_macros)
4317 (fill_in_loclist_baton): Update.
4318 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
4319 get_containing_section, get_bfd_owner, get_bfd_section,
4320 get_file_name, get_id, get_flags, empty, read>: Declare methods.
4321 (dwarf2_read_section, get_section_name, get_section_file_name)
4322 (get_containing_section, get_section_bfd_owner)
4323 (get_section_bfd_section, get_section_name, get_section_file_name)
4324 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
4325 declare.
4326 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
4327 (dwarf2_section_info::get_bfd_owner)
4328 (dwarf2_section_info::get_bfd_section)
4329 (dwarf2_section_info::get_name)
4330 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
4331 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
4332 (dwarf2_section_info::read): Now methods.
4333 * dwarf-index-write.c (class debug_names): Update.
4334
4335 2020-02-08 Tom Tromey <tom@tromey.com>
4336
4337 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
4338 Move to dwarf2/section.h.
4339 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
4340 (get_section_bfd_section, get_section_name)
4341 (get_section_file_name, get_section_id, get_section_flags)
4342 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
4343 dwarf2/section.c.
4344 * dwarf2/section.h: New file.
4345 * dwarf2/section.c: New file, from dwarf2read.c.
4346 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
4347
4348 2020-02-08 Tom Tromey <tom@tromey.com>
4349
4350 * dwarf2read.h (read_unsigned_leb128): Don't declare.
4351 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
4352 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
4353 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
4354 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
4355 * dwarf2/leb.h: New file, from dwarf2read.c.
4356 * dwarf2/leb.c: New file, from dwarf2read.c.
4357 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
4358 Remove.
4359 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
4360 (COMMON_SFILES): Add dwarf2/leb.c.
4361
4362 2020-02-08 Joel Brobecker <brobecker@adacore.com>
4363
4364 GDB 9.1 released.
4365
4366 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4367
4368 PR gdb/25190:
4369 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
4370 * gdb/remote.c (remote_console_output): Update.
4371 * gdb/ui-file.c (fputs_unfiltered): Rename to...
4372 (ui_file_puts): ...this.
4373 * gdb/ui-file.h (ui_file_puts): Add declaration.
4374 * gdb/utils.c (emit_style_escape): Update.
4375 (flush_wrap_buffer): Update.
4376 (fputs_maybe_filtered): Update.
4377 (fputs_unfiltered): Add function.
4378
4379 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
4380
4381 * gdb/event-loop.c (gdb_wait_for_event): Update.
4382 * gdb/printcmd.c (printf_command): Update.
4383 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
4384 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
4385 (gdb_os_flush_stderr): Update.
4386 * gdb/remote.c (remote_console_output): Update.
4387 * gdb/ui-file.c (gdb_flush): Rename to...
4388 (ui_file_flush): ...this.
4389 (stderr_file::write): Update.
4390 (stderr_file::puts): Update.
4391 * gdb/ui-file.h (gdb_flush): Rename to...
4392 (ui_file_flush): ...this.
4393 * gdb/utils.c (gdb_flush): Add function.
4394 * gdb/utils.h (gdb_flush): Add declaration.
4395
4396 2020-02-07 Tom Tromey <tromey@adacore.com>
4397
4398 PR breakpoints/24915:
4399 * source.c (find_and_open_source): Do not check basenames_may_differ.
4400
4401 2020-02-07 Tom Tromey <tom@tromey.com>
4402
4403 * README: Update gdbserver documentation.
4404 * gdbserver: Move to top level.
4405 * configure.tgt (build_gdbserver): Remove.
4406 * configure.ac: Remove --enable-gdbserver.
4407 * configure: Rebuild.
4408 * Makefile.in (distclean): Don't mention gdbserver.
4409
4410 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4411
4412 * source-cache.c (source_cache::ensure): Surround
4413 get_plain_source_lines with a try/catch.
4414 (source_cache::get_line_charpos): Get rid of try/catch
4415 and only check for the return value of "ensure".
4416 * tui/tui-source.c (tui_source_window::set_contents):
4417 Simplify "nlines" calculation.
4418
4419 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
4420
4421 * MAINTAINERS (Write After Approval): Add myself.
4422
4423 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4424
4425 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
4426 function call.
4427
4428 2020-02-05 Christian Biesinger <cbiesinger@google.com>
4429
4430 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
4431
4432 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
4433
4434 * nat/riscv-linux-tdesc.h: New file.
4435 * nat/riscv-linux-tdesc.c: New file, taking code from...
4436 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
4437 ... here.
4438 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
4439 NATDEPFILES.
4440
4441 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
4442
4443 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
4444 we don't set the fake simulator ptid to the null_ptid.
4445
4446 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
4447
4448 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
4449 * gdbthread.h (class thread_info) <resumed>: Likewise.
4450 * infrun.c (resume_1): Likewise.
4451 (proceed): Likewise.
4452 (infrun_thread_stop_requested): Likewise.
4453 (stop_all_threads): Likewise.
4454 (handle_inferior_event): Likewise.
4455 (restart_threads): Likewise.
4456 (finish_step_over): Likewise.
4457 (keep_going_stepped_thread): Likewise.
4458 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
4459 (linux_handle_extended_wait): Likewise.
4460 * record-btrace.c (get_thread_current_frame_id): Likewise.
4461 * record-full.c (record_full_wait_1): Likewise.
4462 * remote.c (remote_target::process_initial_stop_replies): Likewise.
4463 * target.c (target_resume): Likewise.
4464 * thread.c (set_running_thread): Likewise.
4465
4466 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4467
4468 * f-valprint.c (f77_print_array_1): Changed datatype of index
4469 variable to LONGEST from int to enable it to contain bound
4470 values correctly.
4471
4472 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
4473
4474 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
4475 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
4476 offsets according to FLEN determined.
4477 (riscv_linux_nat_target::read_description): Determine FLEN
4478 dynamically.
4479 (riscv_linux_nat_target::fetch_registers): Size regset buffer
4480 according to FLEN determined.
4481 (riscv_linux_nat_target::store_registers): Likewise.
4482
4483 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
4484
4485 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
4486 when reg->group is empty and reggroup is not.
4487
4488 2020-01-31 Tom Tromey <tromey@adacore.com>
4489
4490 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
4491 Call beneath target's mourn_inferior after unpushing.
4492
4493 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4494
4495 PR tui/9765
4496 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
4497 have enough lines to fill the screen, still return the lowest
4498 address we found.
4499
4500 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
4501
4502 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
4503 '-', '<', and '>' commands.
4504
4505 2020-01-29 Pedro Alves <palves@redhat.com>
4506 Sergio Durigan Junior <sergiodj@redhat.com>
4507
4508 * infcmd.c (construct_inferior_arguments): Assert that
4509 'argc' is greater than 0.
4510
4511 2020-01-29 Luis Machado <luis.machado@linaro.org>
4512
4513 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
4514 (BRK_INSN_MASK): Define to 0xd4200000.
4515 (aarch64_program_breakpoint_here_p): New function.
4516 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
4517 * arch-utils.c (default_program_breakpoint_here_p): Moved from
4518 breakpoint.c.
4519 * arch-utils.h (default_program_breakpoint_here_p): Moved from
4520 breakpoint.h
4521 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
4522 call gdbarch_program_breakpoint_here_p.
4523 (program_breakpoint_here): Moved to arch-utils.c, renamed to
4524 default_program_breakpoint_here_p, changed return type to bool and
4525 simplified.
4526 * breakpoint.h (program_breakpoint_here): Moved prototype to
4527 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
4528 return type to bool.
4529 * gdbarch.c: Regenerate.
4530 * gdbarch.h: Regenerate.
4531 * gdbarch.sh (program_breakpoint_here_p): New method.
4532 * infrun.c (handle_signal_stop): Call
4533 gdbarch_program_breakpoint_here_p.
4534
4535 2020-01-26 Tom Tromey <tom@tromey.com>
4536
4537 * ctfread.c (struct ctf_fp_info): Reindent.
4538 (_initialize_ctfread): Remove.
4539
4540 2020-01-26 Tom Tromey <tom@tromey.com>
4541
4542 * psymtab.c (partial_map_expand_apply)
4543 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4544 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4545 (psym_print_stats, psym_expand_symtabs_for_function)
4546 (psym_map_symbol_filenames, psym_map_matching_symbols)
4547 (psym_expand_symtabs_matching)
4548 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4549 (maintenance_check_psymtabs): Use new methods.
4550 * psympriv.h (struct partial_symtab) <readin_p,
4551 get_compunit_symtab>: New methods.
4552 <readin, compunit_symtab>: Remove members.
4553 (struct standard_psymtab): New.
4554 (struct legacy_psymtab): Derive from standard_psymtab.
4555 * dwarf2read.h (struct dwarf2_psymtab): Derive from
4556 standard_psymtab.
4557 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
4558
4559 2020-01-26 Tom Tromey <tom@tromey.com>
4560
4561 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
4562 read_dependencies. Add assert.
4563 * psymtab.c (partial_symtab::read_dependencies): New method.
4564 * psympriv.h (struct partial_symtab) <read_dependencies>: New
4565 method.
4566 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
4567 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
4568 read_dependencies.
4569 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
4570 Add assert.
4571
4572 2020-01-26 Tom Tromey <tom@tromey.com>
4573
4574 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
4575 Call expand_psymtab.
4576 (xcoff_read_symtab): Call expand_psymtab.
4577 (xcoff_start_psymtab, xcoff_end_psymtab): Set
4578 legacy_expand_psymtab.
4579 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
4580 method.
4581 (struct legacy_psymtab) <expand_psymtab>: Implement.
4582 <legacy_expand_psymtab>: New member.
4583 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
4584 (parse_partial_symbols): Set legacy_expand_psymtab.
4585 (psymtab_to_symtab_1): Change argument order. Call
4586 expand_psymtab.
4587 (new_psymtab): Set legacy_expand_psymtab.
4588 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
4589 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
4590 expand_psymtab.
4591 (dwarf2_psymtab::expand_psymtab): Rename from
4592 psymtab_to_symtab_1. Call expand_psymtab.
4593 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
4594 (dbx_end_psymtab): Likewise.
4595 (dbx_psymtab_to_symtab_1): Change argument order. Call
4596 expand_psymtab.
4597 (dbx_read_symtab): Call expand_psymtab.
4598 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
4599 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
4600 (ctf_psymtab::read_symtab): Call expand_psymtab.
4601
4602 2020-01-26 Tom Tromey <tom@tromey.com>
4603
4604 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
4605 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
4606 messages.
4607 * mdebugread.c (mdebug_read_symtab): Remove prints.
4608 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
4609 assert.
4610 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
4611
4612 2020-01-26 Tom Tromey <tom@tromey.com>
4613
4614 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
4615 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
4616 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
4617 legacy_symtab.
4618 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
4619 * psymtab.c (psymtab_to_symtab): Call method.
4620 (dump_psymtab): Update.
4621 * psympriv.h (struct partial_symtab): Add virtual destructor.
4622 <read_symtab>: New method.
4623 (struct legacy_symtab): New.
4624 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
4625 (struct pst_map) <pst>: Now a legacy_psymtab.
4626 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
4627 (new_psymtab): Use legacy_psymtab.
4628 * dwarf2read.h (struct dwarf2_psymtab): New.
4629 (struct dwarf2_per_cu_data) <psymtab>: Use it.
4630 * dwarf2read.c (dwarf2_create_include_psymtab)
4631 (dwarf2_build_include_psymtabs, create_type_unit_group)
4632 (create_partial_symtab, process_psymtab_comp_unit_reader)
4633 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
4634 (set_partial_user): Use dwarf2_psymtab.
4635 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
4636 (psymtab_to_symtab_1, process_full_comp_unit)
4637 (process_full_type_unit, dwarf2_ranges_read)
4638 (dwarf2_get_pc_bounds, psymtab_include_file_name)
4639 (dwarf_decode_lines): Use dwarf2_psymtab.
4640 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
4641 (add_address_entry_worker, write_one_signatured_type)
4642 (recursively_count_psymbols, recursively_write_psymbols)
4643 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
4644 (write_debug_names): Likewise.
4645 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
4646 <pst>: Now a legacy_psymtab.
4647 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
4648 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
4649 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
4650 * ctfread.c (struct ctf_psymtab): New.
4651 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
4652 ctf_psymtab.
4653 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
4654 (create_partial_symtab): Return a ctf_psymtab.
4655 (scan_partial_symbols): Update.
4656
4657 2020-01-26 Tom Tromey <tom@tromey.com>
4658
4659 * xcoffread.c (xcoff_start_psymtab): Use new.
4660 * psymtab.c (partial_symtab::partial_symtab): New constructor,
4661 renamed from start_psymtab_common.
4662 * psympriv.h (struct partial_symtab): Add new constructor.
4663 (start_psymtab_common): Don't declare.
4664 * mdebugread.c (parse_partial_symbols): Use new.
4665 * dwarf2read.c (create_partial_symtab): Use new.
4666 * dbxread.c (start_psymtab): Use new.
4667 * ctfread.c (create_partial_symtab): Use new.
4668
4669 2020-01-26 Tom Tromey <tom@tromey.com>
4670
4671 * xcoffread.c (xcoff_end_psymtab): Use new.
4672 * psymtab.c (start_psymtab_common): Use new.
4673 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
4674 Update.
4675 * psympriv.h (struct partial_symtab): Add parameters to
4676 constructor. Don't inline.
4677 (allocate_psymtab): Don't declare.
4678 * mdebugread.c (new_psymtab): Use new.
4679 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
4680 * dbxread.c (dbx_end_psymtab): Use new.
4681
4682 2020-01-26 Tom Tromey <tom@tromey.com>
4683
4684 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
4685 allocate_psymtab. Update documentation.
4686 * psymtab.c (psymtab_storage::install_psymtab): Rename from
4687 allocate_psymtab. Do not use new.
4688 (allocate_psymtab): Use new. Update.
4689
4690 2020-01-26 Tom Tromey <tom@tromey.com>
4691
4692 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
4693 * psymtab.c (psym_print_stats): Update.
4694 * psympriv.h (struct partial_symtab) <readin,
4695 psymtabs_addrmap_supported, anonymous>: Now bool.
4696 * mdebugread.c (psymtab_to_symtab_1): Update.
4697 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
4698 (build_type_psymtabs_reader, psymtab_to_symtab_1)
4699 (process_full_comp_unit, process_full_type_unit): Update.
4700 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
4701 * ctfread.c (psymtab_to_symtab): Update.
4702
4703 2020-01-26 Tom Tromey <tom@tromey.com>
4704
4705 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
4706 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
4707 * psymtab.c (psymtab_storage): Delete psymtabs.
4708 (psymtab_storage::allocate_psymtab): Use new.
4709 (psymtab_storage::discard_psymtab): Use delete.
4710 * psympriv.h (struct partial_symtab): Add constructor and
4711 initializers.
4712
4713 2020-01-26 Tom Tromey <tom@tromey.com>
4714
4715 * machoread.c: Do not include psympriv.h.
4716
4717 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4718
4719 * NEWS: Mention the new option and the set/show commands.
4720
4721 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4722
4723 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
4724 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
4725 (validate_exec_file): New variables, enums, functions.
4726 (exec_file_locate_attach, print_section_info): Style the filenames.
4727 (_initialize_exec): Install show_exec_file_mismatch_command and
4728 set_exec_file_mismatch_command.
4729 * gdbcore.h (validate_exec_file): Declare.
4730 * infcmd.c (attach_command): Call validate_exec_file.
4731 * remote.c ( remote_target::remote_add_inferior): Likewise.
4732
4733 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4734
4735 * frame.c (find_frame_sal): Move call to get_next_frame into more
4736 inner scope.
4737 * inline-frame.c (inilne_state) <inline_state>: Update argument
4738 types.
4739 (inilne_state) <skipped_symbol>: Rename to...
4740 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
4741 (skip_inline_frames): Build vector of skipped symbols and use this
4742 to reate the inline_state.
4743 (inline_skipped_symbol): Add a comment and some assertions, fetch
4744 skipped symbol from the list.
4745
4746 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4747
4748 * buildsym.c (lte_is_less_than): Delete.
4749 (buildsym_compunit::end_symtab_with_blockvector): Create local
4750 lambda function to sort line table entries, and use
4751 std::stable_sort instead of std::sort.
4752 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
4753 markers when looking for a previous line.
4754
4755 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4756
4757 * dwarf2read.c (lnp_state_machine::record_line): Include
4758 end_sequence parameter in debug print out. Record the line if we
4759 are at an end_sequence marker even if it's not the start of a
4760 statement.
4761 * symmisc.c (maintenance_print_one_line_table): Print end of
4762 sequence markers with 'END' not '0'.
4763
4764 2020-01-24 Pedro Alves <palves@redhat.com>
4765
4766 PR gdb/25410
4767 * thread.c (scoped_restore_current_thread::restore): Use
4768 switch_to_inferior_no_thread.
4769 * exec.c: Include "progspace-and-thread.h".
4770 (add_target_sections, remove_target_sections):
4771 scoped_restore_current_pspace_and_thread instead of
4772 scoped_restore_current_thread.
4773 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
4774 and aspace to the inferior before calling clone_program_space.
4775 Remove stale comment.
4776
4777 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4778
4779 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
4780 (arm_netbsd_nat_target::fetch_registers): ...this.
4781 (arm_nbsd_nat_target::store_registers): Rename to...
4782 (arm_netbsd_nat_target::store_registers): ...this.
4783
4784 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4785
4786 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
4787 register_t.
4788
4789 2020-01-24 Christian Biesinger <cbiesinger@google.com>
4790
4791 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
4792 Update comment.
4793 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
4794 Likewise.
4795 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
4796 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
4797 the correct replacement (iterate_over_regset_sections).
4798 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
4799 Update comment.
4800
4801 2020-01-24 Graham Markall <graham.markall@embecosm.com>
4802
4803 PR gdb/23718
4804 * gdb/python/python.c (execute_gdb_command): Call
4805 async_enable_stdin in catch block.
4806
4807 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4808
4809 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
4810 SWITCH_THRU_ALL_UIS.
4811
4812 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
4813
4814 PR tui/9765
4815 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
4816 comment, add extra parameter, and update to store previous symbol
4817 when appropriate.
4818 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
4819 add extra parameter.
4820 * tui/tui-disasm.c (tui_disassemble): Update header comment,
4821 remove unneeded parameter, add try/catch around gdb_print_insn,
4822 rewrite to add items to asm_lines vector.
4823 (tui_find_backward_disassembly_start_address): New function.
4824 (tui_find_disassembly_address): Updated throughout.
4825 (tui_disasm_window::set_contents): Update for changes to
4826 tui_disassemble.
4827 (tui_disasm_window::do_scroll_vertical): No need to adjust the
4828 number of lines to scroll.
4829
4830 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
4831
4832 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
4833 (SECT_OFF_DATA): Likewise.
4834 (SECT_OFF_RODATA): Likewise.
4835 (SECT_OFF_TEXT): Likewise.
4836 (SECT_OFF_BSS): Likewise.
4837 (struct objfile) <text_section_offset, data_section_offset>: New
4838 methods.
4839 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
4840 objfile::text_section_offset.
4841 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
4842 * coffread.c (coff_symtab_read): Likewise.
4843 (enter_linenos): Likewise.
4844 (process_coff_symbol): Likewise.
4845 * ctfread.c (get_objfile_text_range): Likewise.
4846 * dtrace-probe.c (dtrace_probe::get_relocated_address):
4847 Use objfile::data_section_offset.
4848 * dwarf2-frame.c (execute_cfa_program): Use
4849 objfile::text_section_offset.
4850 (dwarf2_frame_find_fde): Likewise.
4851 * dwarf2read.c (create_addrmap_from_index): Likewise.
4852 (create_addrmap_from_aranges): Likewise.
4853 (dw2_find_pc_sect_compunit_symtab): Likewise.
4854 (process_psymtab_comp_unit_reader): Likewise.
4855 (add_partial_symbol): Likewise.
4856 (add_partial_subprogram): Likewise.
4857 (process_full_comp_unit): Likewise.
4858 (read_file_scope): Likewise.
4859 (read_func_scope): Likewise.
4860 (read_lexical_block_scope): Likewise.
4861 (read_call_site_scope): Likewise.
4862 (dwarf2_rnglists_process): Likewise.
4863 (dwarf2_ranges_process): Likewise.
4864 (dwarf2_ranges_read): Likewise.
4865 (dwarf_decode_lines_1): Likewise.
4866 (new_symbol): Likewise.
4867 (dwarf2_fetch_die_loc_sect_off): Likewise.
4868 (dwarf2_per_cu_text_offset): Likewise.
4869 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4870 * hppa-tdep.c (read_unwind_info): Likewise.
4871 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
4872 * psympriv.h (struct partial_symtab): Likewise.
4873 * psymtab.c (find_pc_sect_psymtab): Likewise.
4874 * solib-svr4.c (enable_break): Likewise.
4875 * stap-probe.c (relocate_address): Use
4876 objfile::data_section_offset.
4877 * xcoffread.c (enter_line_range): Use
4878 objfile::text_section_offset.
4879 (read_xcoff_symtab): Likewise.
4880
4881 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
4884 declaration to narrower scopes.
4885
4886 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * darwin-nat.h (struct darwin_exception_msg, enum
4889 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
4890 Move up.
4891 (class darwin_nat_target) <wait_1, check_new_threads,
4892 decode_exception_message, decode_message, stop_inferior,
4893 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
4894 * darwin-nat.c (darwin_check_new_threads): Rename to...
4895 (darwin_nat_target::check_new_threads): ... this.
4896 (darwin_suspend_inferior_it): Remove.
4897 (darwin_decode_exception_message): Rename to...
4898 (darwin_nat_target::decode_exception_message): ... this.
4899 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
4900 (darwin_decode_message): Rename to...
4901 (darwin_nat_target::decode_message): ... this.
4902 (cancel_breakpoint): Rename to...
4903 (darwin_nat_target::cancel_breakpoint): ... this.
4904 (darwin_wait): Rename to...
4905 (darwin_nat_target::wait_1): ... this. Use range-based for loop
4906 instead of iterate_over_inferiors.
4907 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
4908 (darwin_stop_inferior): Rename to...
4909 (darwin_nat_target::stop_inferior): ... this.
4910 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
4911 (darwin_init_thread_list): Rename to...
4912 (darwin_nat_target::init_thread_list): ... this.
4913 (darwin_ptrace_him): Rename to...
4914 (darwin_nat_target::ptrace_him): ... this.
4915 (darwin_nat_target::create_inferior): Pass lambda function to
4916 fork_inferior.
4917 (darwin_nat_target::detach): Call stop_inferior instead of
4918 darwin_stop_inferior.
4919 * fork-inferior.h (fork_inferior): Change init_trace_fun
4920 parameter to gdb::function_view.
4921 * fork-inferior.c (fork_inferior): Likewise.
4922
4923 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
4924
4925 * i386-cygwin-tdep.c (core_process_module_section): Update.
4926 * windows-nat.c (struct lm_info_windows): Add text_offset.
4927 (windows_xfer_shared_libraries): Update.
4928 * windows-tdep.c (windows_xfer_shared_library):
4929 Add text_offset_cached argument.
4930 * windows-tdep.h (windows_xfer_shared_library): Update.
4931
4932 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4933
4934 * gdbarch.sh: Add declaration for _initialize_gdbarch.
4935
4936 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4937
4938 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
4939 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
4940 replace with range-based for.
4941 (gdbsim_interrupt_inferior): Remove.
4942 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
4943 with a range-based for. Inline code from
4944 gdbsim_interrupt_inferior.
4945
4946 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * infrun.c (proceed): Fix indentation.
4949
4950 2020-01-21 Tom Tromey <tromey@adacore.com>
4951
4952 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
4953 * python/python.c (python_extension_ops): Update.
4954 (gdbpy_colorize): New function.
4955 * python/lib/gdb/__init__.py (colorize): New function.
4956 * extension.h (ext_lang_colorize): Declare.
4957 * extension.c (ext_lang_colorize): New function.
4958 * extension-priv.h (struct extension_language_ops) <colorize>: New
4959 member.
4960 * cli/cli-style.c (_initialize_cli_style): Update help text.
4961
4962 2020-01-21 Luis Machado <luis.machado@linaro.org>
4963
4964 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
4965 <cond>: Change type to bool.
4966 (aarch64_displaced_step_b_cond): Update cond to use bool type.
4967 (aarch64_displaced_step_cb): Likewise.
4968 (aarch64_displaced_step_tb): Likewise.
4969
4970 2020-01-21 Luis Machado <luis.machado@linaro.org>
4971
4972 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
4973 output.
4974
4975 2020-01-21 Luis Machado <luis.machado@linaro.org>
4976
4977 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
4978 <pc_adjust>: Adjust the documentation.
4979 (aarch64_displaced_step_fixup): Check if PC really moved before
4980 adjusting it.
4981
4982 2020-01-19 Tom Tromey <tom@tromey.com>
4983
4984 * disasm.c (~gdb_disassembler): New destructor.
4985 (gdb_buffered_insn_length): Call disassemble_free_target.
4986 * disasm.h (class gdb_disassembler): Declare destructor. Use
4987 DISABLE_COPY_AND_ASSIGN.
4988
4989 2020-01-19 Tom Tromey <tom@tromey.com>
4990
4991 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
4992 (die_reader_func_ftype): Remove.
4993 (cutu_reader): New class.
4994 (dw2_get_file_names_reader): Remove "data" parameter.
4995 (dw2_get_file_names): Use cutu_reader.
4996 (create_debug_type_hash_table): Update.
4997 (read_cutu_die_from_dwo): Update comment.
4998 (lookup_dwo_unit): Add dwo_name parameter.
4999 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
5000 die_reader_func_ftype and data parameters.
5001 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
5002 Remove die_reader_func_ftype and data parameters.
5003 (~cutu_reader): New; from init_cutu_and_read_dies.
5004 (cutu_reader::cutu_reader): Rename from
5005 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
5006 and data parameters.
5007 (init_cutu_and_read_dies_simple): Remove.
5008 (struct process_psymtab_comp_unit_data): Remove.
5009 (process_psymtab_comp_unit_reader): Remove data parameter; add
5010 want_partial_unit and pretend_language parameters.
5011 (process_psymtab_comp_unit): Use cutu_reader.
5012 (build_type_psymtabs_reader): Remove data parameter.
5013 (build_type_psymtabs_1): Use cutu_reader.
5014 (process_skeletonless_type_unit): Likewise.
5015 (load_partial_comp_unit_reader): Remove.
5016 (load_partial_comp_unit): Use cutu_reader.
5017 (load_full_comp_unit_reader): Remove.
5018 (load_full_comp_unit): Use cutu_reader.
5019 (struct create_dwo_cu_data): Remove.
5020 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
5021 dwo_unit parameters.
5022 (create_cus_hash_table): Use cutu_reader.
5023 (struct dwarf2_read_addr_index_data): Remove.
5024 (dwarf2_read_addr_index_reader): Remove.
5025 (dwarf2_read_addr_index): Use cutu_reader.
5026 (read_signatured_type_reader): Remove.
5027 (read_signatured_type): Use cutu_reader.
5028
5029 2020-01-19 Tom Tromey <tom@tromey.com>
5030
5031 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
5032 * tui/tui-wingeneral.h (class tui_suppress_output): New.
5033 (tui_wrefresh): Declare.
5034 * tui/tui-wingeneral.c (suppress_output): New global.
5035 (tui_suppress_output, ~tui_suppress_output): New constructor and
5036 destructor.
5037 (tui_wrefresh): New function.
5038 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
5039 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
5040 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
5041 method.
5042 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
5043 tui_wrefresh.
5044 (tui_data_window::no_refresh): New method.
5045 (tui_data_item_window::refresh_window): Call tui_wrefresh.
5046 (tui_reg_command): Use tui_suppress_output
5047 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
5048 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
5049 method.
5050 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
5051
5052 2020-01-19 Tom Tromey <tom@tromey.com>
5053
5054 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5055 Handle case where symtab is null.
5056
5057 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
5058
5059 * linux-fork.c (one_fork_p): Simplify.
5060
5061 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5062
5063 * top.c (struct qt_args): Remove.
5064 (kill_or_detach): Change return type to void, replace `void *`
5065 parameter with a proper one.
5066 (print_inferior_quit_action): Likewise.
5067 (quit_confirm): Use range-based for loop to iterate over inferiors.
5068 (quit_force): Likewise.
5069
5070 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5071
5072 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
5073 `void *` parameter with proper parameters.
5074 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
5075 (print_one_inferior): Change return type to void, replace `void *`
5076 parameter with proper parameters.
5077 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
5078 inferiors.
5079 (get_other_inferior): Remove.
5080 (mi_cmd_remove_inferior): Use range-based loop to iterate over
5081 inferiors.
5082
5083 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5084
5085 * mi/mi-interp.c (report_initial_inferior): Remove.
5086 (mi_interp::init): Use range-based for to iterate over inferiors.
5087
5088 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
5089
5090 * python/py-inferior.c (build_inferior_list): Remove.
5091 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
5092
5093 2020-01-16 Christian Biesinger <cbiesinger@google.com>
5094
5095 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
5096 (btrace_stitch_trace): Likewise.
5097 * charset.c (intermediate_encoding): Likewise (vaild).
5098 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
5099 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
5100 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
5101
5102 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
5103
5104 * windows-tdep.c (windows_get_tlb_type):
5105 Add rtl_user_process_parameters type.
5106
5107 2020-01-16 Pedro Alves <palves@redhat.com>
5108 Norbert Lange <nolange79@gmail.com>
5109
5110 PR build/24805
5111 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
5112 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
5113 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
5114 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
5115 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
5116 (ps_plog): Redeclare exported functions with default visibility.
5117
5118 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
5119
5120 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
5121 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
5122
5123 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
5124
5125 * infcmd.c (post_create_inferior): Use get_thread_regcache
5126 instead of get_current_regcache.
5127
5128 2020-01-14 Tom Tromey <tom@tromey.com>
5129
5130 PR symtab/12535:
5131 * python/python.c (gdbpy_decode_line): Treat empty string the same
5132 as no argument.
5133
5134 2020-01-14 Tom Tromey <tom@tromey.com>
5135
5136 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
5137
5138 2020-01-14 Tom Tromey <tom@tromey.com>
5139
5140 * nat/linux-btrace.c: Don't include <config.h>.
5141 * nat/linux-ptrace.c: Don't include <config.h>.
5142 * nat/x86-linux-dregs.c: Don't include <config.h>.
5143
5144 2020-01-14 Tom Tromey <tom@tromey.com>
5145
5146 * configure: Rebuild.
5147 * configure.ac: Move many checks to ../gdbsupport/common.m4.
5148
5149 2020-01-14 Tom Tromey <tom@tromey.com>
5150
5151 * nat/x86-linux-dregs.c: Include configh.h.
5152 * nat/linux-ptrace.c: Include configh.h.
5153 * nat/linux-btrace.c: Include configh.h.
5154 * defs.h: Include config.h, bfd.h.
5155 * configure.ac: Don't source common.host.
5156 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
5157 * configure: Rebuild.
5158 * acinclude.m4: Update path.
5159 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
5160 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
5161 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
5162 (CLIBS): Add LIBSUPPORT.
5163 (CDEPS): Likewise.
5164 (COMMON_SFILES): Remove gdbsupport files.
5165 (HFILES_NO_SRCDIR): Likewise.
5166 (stamp-version): Update path to create-version.sh.
5167 (ALLDEPFILES): Remove gdbsupport files.
5168
5169 2020-01-14 Tom Tromey <tom@tromey.com>
5170
5171 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
5172 USE_WIN32API when needed.
5173 * configure.ac (USE_WIN32API): Don't define.
5174 (WIN32LIBS): Use WIN32APILIBS.
5175 * configure: Rebuild.
5176
5177 2020-01-14 Tom Tromey <tom@tromey.com>
5178
5179 * configure: Rebuild.
5180 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
5181
5182 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5183
5184 * skip.c (skip_function_command): Make skip w/o arguments use the
5185 name of the inlined function if pc is inside any inlined function.
5186
5187 2020-01-14 Luis Machado <luis.machado@linaro.org>
5188
5189 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
5190 * infrun.c (resume_1): Likewise.
5191 (handle_inferior_event): Remove stale comment.
5192 * linux-nat.c (linux_nat_target::resume): Update comments.
5193 (save_stop_reason): Likewise.
5194 (linux_nat_filter_event): Likewise.
5195 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
5196
5197 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 * elfread.c (record_minimal_symbol): Set section index to 0 for
5200 non-allocatable sections.
5201
5202
5203 2020-01-13 Ali Tamur <tamur@google.com>
5204
5205 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
5206 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
5207 to gdb::optional. Update comments.
5208 (dwo_file): Update comments.
5209 (read_attribute): Update API to take an additional out parameter,
5210 need_reprocess. This is used to mark attributes that need other
5211 attributes (e.g. str_offsets_base) for correct computation which may not
5212 have been read yet.
5213 (read_attribute_reprocess): New function declaration.
5214 (read_addr_index): Likewise.
5215 (read_dwo_str_index): Likewise.
5216 (read_stub_str_index): Likewise.
5217 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
5218 (lookup_addr_base): New function definition.
5219 (lookup_ranges_base): Likewise.
5220 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
5221 lookup_ranges_base.
5222 (init_cutu_and_read_dies): Update comments.
5223 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
5224 unit. This is used to inherit parent's str_offsets_base and addr_base.
5225 Update comments.
5226 (init_cutu_and_read_dies_simple): Reflect API changes.
5227 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
5228 (create_cus_hash_table): Change API to take parent compile unit.
5229 Reflect API changes.
5230 (open_and_init_dwo_file): Reflect API changes.
5231 (dwarf2_get_pc_bounds): Update comments.
5232 (dwarf2_record_block_ranges): Likewise.
5233 (read_full_die_1): Change implementation to reprocess attributes that
5234 need str_offsets_base and addr_base.
5235 (partial_die_info::read): Likewise.
5236 (read_attribute_reprocess): New function definition.
5237 (read_attribute_value): Change API to take an additional out parameter,
5238 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
5239 when a non-dwo compile unit has index based attributes.
5240 (read_attribute): Reflect API changes.
5241 (read_addr_index_1): Reflect API changes. Update comments.
5242 (dwarf2_read_addr_index_data): Reflect API changes.
5243 (dwarf2_read_addr_index): Likewise.
5244 (read_str_index): Change API and implementation. This becomes a helper
5245 to be used by the new string index related methods. Update error
5246 message and comments.
5247 (read_dwo_str_index): New function definition.
5248 (read_stub_str_index): Likewise.
5249 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
5250 * symfile.h (dwarf2_debug_sections): Likewise.
5251 * xcoffread.c (dwarf2_debug_sections): Likewise.
5252
5253 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5254
5255 * gdbcore.h (struct core_fns) <core_read_registers>: Change
5256 core_reg_sect type to gdb_byte *.
5257 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
5258 * cris-tdep.c (fetch_core_registers): Likewise.
5259 * corelow.c (core_target::get_core_register_section): Change
5260 type of `contents` to gdb::byte_vector.
5261
5262 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5263
5264 * tui/tui-wingeneral.c (box_win): Position the title in the center
5265 of the border.
5266
5267 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5268
5269 * corelow.c (core_target::get_core_register_section): Use
5270 std::vector instead of alloca.
5271
5272 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5273
5274 * warning.m4: Add -Wmissing-declarations to build_warnings.
5275 * configure: Re-generate.
5276
5277 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5278
5279 * python/python.c (init__gdb_module): Add declaration.
5280
5281 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
5282
5283 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
5284 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
5285 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
5286 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
5287 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
5288 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
5289 * ada-exp.y (_initialize_ada_exp): Add declaration.
5290 * ada-lang.c (_initialize_ada_language): Add declaration.
5291 * ada-tasks.c (_initialize_tasks): Add declaration.
5292 * agent.c (_initialize_agent): Add declaration.
5293 * aix-thread.c (_initialize_aix_thread): Add declaration.
5294 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
5295 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
5296 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
5297 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
5298 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
5299 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
5300 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
5301 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
5302 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
5303 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
5304 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
5305 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
5306 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
5307 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
5308 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
5309 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
5310 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
5311 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
5312 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
5313 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
5314 * annotate.c (_initialize_annotate): Add declaration.
5315 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
5316 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
5317 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
5318 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
5319 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
5320 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
5321 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
5322 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
5323 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
5324 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
5325 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
5326 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
5327 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
5328 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
5329 * auto-load.c (_initialize_auto_load): Add declaration.
5330 * auxv.c (_initialize_auxv): Add declaration.
5331 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
5332 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
5333 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
5334 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
5335 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
5336 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
5337 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
5338 * breakpoint.c (_initialize_breakpoint): Add declaration.
5339 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
5340 * btrace.c (_initialize_btrace): Add declaration.
5341 * charset.c (_initialize_charset): Add declaration.
5342 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
5343 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
5344 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
5345 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
5346 * cli/cli-script.c (_initialize_cli_script): Add declaration.
5347 * cli/cli-style.c (_initialize_cli_style): Add declaration.
5348 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
5349 * coffread.c (_initialize_coffread): Add declaration.
5350 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
5351 * compile/compile.c (_initialize_compile): Add declaration.
5352 * complaints.c (_initialize_complaints): Add declaration.
5353 * completer.c (_initialize_completer): Add declaration.
5354 * copying.c (_initialize_copying): Add declaration.
5355 * corefile.c (_initialize_core): Add declaration.
5356 * corelow.c (_initialize_corelow): Add declaration.
5357 * cp-abi.c (_initialize_cp_abi): Add declaration.
5358 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
5359 * cp-support.c (_initialize_cp_support): Add declaration.
5360 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
5361 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
5362 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
5363 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
5364 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
5365 * ctfread.c (_initialize_ctfread): Add declaration.
5366 * d-lang.c (_initialize_d_language): Add declaration.
5367 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
5368 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
5369 * dbxread.c (_initialize_dbxread): Add declaration.
5370 * dcache.c (_initialize_dcache): Add declaration.
5371 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
5372 * disasm.c (_initialize_disasm): Add declaration.
5373 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
5374 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
5375 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
5376 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
5377 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
5378 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
5379 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
5380 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
5381 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
5382 * elfread.c (_initialize_elfread): Add declaration.
5383 * exec.c (_initialize_exec): Add declaration.
5384 * extension.c (_initialize_extension): Add declaration.
5385 * f-lang.c (_initialize_f_language): Add declaration.
5386 * f-valprint.c (_initialize_f_valprint): Add declaration.
5387 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
5388 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
5389 * filesystem.c (_initialize_filesystem): Add declaration.
5390 * findcmd.c (_initialize_mem_search): Add declaration.
5391 * findvar.c (_initialize_findvar): Add declaration.
5392 * fork-child.c (_initialize_fork_child): Add declaration.
5393 * frame-base.c (_initialize_frame_base): Add declaration.
5394 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
5395 * frame.c (_initialize_frame): Add declaration.
5396 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
5397 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
5398 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
5399 * gcore.c (_initialize_gcore): Add declaration.
5400 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
5401 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
5402 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
5403 * gdbarch.c (_initialize_gdbarch): Add declaration.
5404 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
5405 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
5406 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
5407 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
5408 * go-lang.c (_initialize_go_language): Add declaration.
5409 * go32-nat.c (_initialize_go32_nat): Add declaration.
5410 * guile/guile.c (_initialize_guile): Add declaration.
5411 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
5412 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
5413 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
5414 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
5415 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
5416 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
5417 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
5418 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
5419 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
5420 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
5421 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
5422 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
5423 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
5424 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
5425 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
5426 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
5427 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
5428 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
5429 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
5430 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
5431 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
5432 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
5433 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
5434 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
5435 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
5436 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
5437 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
5438 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
5439 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
5440 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
5441 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
5442 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
5443 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
5444 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
5445 * infcall.c (_initialize_infcall): Add declaration.
5446 * infcmd.c (_initialize_infcmd): Add declaration.
5447 * inflow.c (_initialize_inflow): Add declaration.
5448 * infrun.c (_initialize_infrun): Add declaration.
5449 * interps.c (_initialize_interpreter): Add declaration.
5450 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
5451 * jit.c (_initialize_jit): Add declaration.
5452 * language.c (_initialize_language): Add declaration.
5453 * linux-fork.c (_initialize_linux_fork): Add declaration.
5454 * linux-nat.c (_initialize_linux_nat): Add declaration.
5455 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
5456 * linux-thread-db.c (_initialize_thread_db): Add declaration.
5457 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
5458 * m2-lang.c (_initialize_m2_language): Add declaration.
5459 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
5460 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
5461 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
5462 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
5463 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
5464 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
5465 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
5466 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
5467 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
5468 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
5469 * machoread.c (_initialize_machoread): Add declaration.
5470 * macrocmd.c (_initialize_macrocmd): Add declaration.
5471 * macroscope.c (_initialize_macroscope): Add declaration.
5472 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
5473 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
5474 * maint.c (_initialize_maint_cmds): Add declaration.
5475 * mdebugread.c (_initialize_mdebugread): Add declaration.
5476 * memattr.c (_initialize_mem): Add declaration.
5477 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
5478 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
5479 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
5480 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
5481 * mi/mi-main.c (_initialize_mi_main): Add declaration.
5482 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
5483 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
5484 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
5485 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
5486 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
5487 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
5488 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
5489 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
5490 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
5491 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
5492 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
5493 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
5494 * mipsread.c (_initialize_mipsread): Add declaration.
5495 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
5496 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
5497 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
5498 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
5499 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
5500 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
5501 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
5502 * nto-procfs.c (_initialize_procfs): Add declaration.
5503 * objc-lang.c (_initialize_objc_language): Add declaration.
5504 * observable.c (_initialize_observer): Add declaration.
5505 * opencl-lang.c (_initialize_opencl_language): Add declaration.
5506 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
5507 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
5508 * osabi.c (_initialize_gdb_osabi): Add declaration.
5509 * osdata.c (_initialize_osdata): Add declaration.
5510 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
5511 * parse.c (_initialize_parse): Add declaration.
5512 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
5513 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
5514 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
5515 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
5516 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
5517 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
5518 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
5519 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
5520 * printcmd.c (_initialize_printcmd): Add declaration.
5521 * probe.c (_initialize_probe): Add declaration.
5522 * proc-api.c (_initialize_proc_api): Add declaration.
5523 * proc-events.c (_initialize_proc_events): Add declaration.
5524 * proc-service.c (_initialize_proc_service): Add declaration.
5525 * procfs.c (_initialize_procfs): Add declaration.
5526 * producer.c (_initialize_producer): Add declaration.
5527 * psymtab.c (_initialize_psymtab): Add declaration.
5528 * python/python.c (_initialize_python): Add declaration.
5529 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
5530 * record-btrace.c (_initialize_record_btrace): Add declaration.
5531 * record-full.c (_initialize_record_full): Add declaration.
5532 * record.c (_initialize_record): Add declaration.
5533 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
5534 * regcache.c (_initialize_regcache): Add declaration.
5535 * reggroups.c (_initialize_reggroup): Add declaration.
5536 * remote-notif.c (_initialize_notif): Add declaration.
5537 * remote-sim.c (_initialize_remote_sim): Add declaration.
5538 * remote.c (_initialize_remote): Add declaration.
5539 * reverse.c (_initialize_reverse): Add declaration.
5540 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
5541 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
5542 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
5543 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
5544 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
5545 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
5546 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
5547 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
5548 Add declaration.
5549 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
5550 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
5551 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
5552 * rust-exp.y (_initialize_rust_exp): Add declaration.
5553 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
5554 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
5555 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
5556 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
5557 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
5558 * score-tdep.c (_initialize_score_tdep): Add declaration.
5559 * ser-go32.c (_initialize_ser_dos): Add declaration.
5560 * ser-mingw.c (_initialize_ser_windows): Add declaration.
5561 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
5562 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
5563 * ser-uds.c (_initialize_ser_socket): Add declaration.
5564 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
5565 * serial.c (_initialize_serial): Add declaration.
5566 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
5567 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
5568 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
5569 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
5570 * skip.c (_initialize_step_skip): Add declaration.
5571 * sol-thread.c (_initialize_sol_thread): Add declaration.
5572 * solib-aix.c (_initialize_solib_aix): Add declaration.
5573 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
5574 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
5575 * solib-frv.c (_initialize_frv_solib): Add declaration.
5576 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
5577 * solib-target.c (_initialize_solib_target): Add declaration.
5578 * solib.c (_initialize_solib): Add declaration.
5579 * source-cache.c (_initialize_source_cache): Add declaration.
5580 * source.c (_initialize_source): Add declaration.
5581 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
5582 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
5583 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
5584 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
5585 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
5586 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
5587 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
5588 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
5589 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
5590 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
5591 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
5592 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
5593 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
5594 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
5595 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
5596 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
5597 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
5598 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
5599 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
5600 * stabsread.c (_initialize_stabsread): Add declaration.
5601 * stack.c (_initialize_stack): Add declaration.
5602 * stap-probe.c (_initialize_stap_probe): Add declaration.
5603 * std-regs.c (_initialize_frame_reg): Add declaration.
5604 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
5605 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
5606 * symfile.c (_initialize_symfile): Add declaration.
5607 * symmisc.c (_initialize_symmisc): Add declaration.
5608 * symtab.c (_initialize_symtab): Add declaration.
5609 * target.c (_initialize_target): Add declaration.
5610 * target-connection.c (_initialize_target_connection): Add
5611 declaration.
5612 * target-dcache.c (_initialize_target_dcache): Add declaration.
5613 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
5614 * thread.c (_initialize_thread): Add declaration.
5615 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
5616 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
5617 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
5618 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
5619 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
5620 * tracectf.c (_initialize_ctf): Add declaration.
5621 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
5622 * tracefile.c (_initialize_tracefile): Add declaration.
5623 * tracepoint.c (_initialize_tracepoint): Add declaration.
5624 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
5625 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
5626 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
5627 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
5628 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
5629 * tui/tui-win.c (_initialize_tui_win): Add declaration.
5630 * tui/tui.c (_initialize_tui): Add declaration.
5631 * typeprint.c (_initialize_typeprint): Add declaration.
5632 * ui-style.c (_initialize_ui_style): Add declaration.
5633 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
5634 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
5635 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
5636 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
5637 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
5638 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
5639 * unittests/filtered_iterator-selftests.c
5640 (_initialize_filtered_iterator_selftests): Add declaration.
5641 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
5642 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
5643 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
5644 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
5645 * unittests/main-thread-selftests.c
5646 (_initialize_main_thread_selftests): Add declaration.
5647 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
5648 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
5649 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
5650 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
5651 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
5652 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
5653 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
5654 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
5655 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
5656 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
5657 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
5658 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
5659 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
5660 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
5661 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
5662 declaration.
5663 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
5664 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
5665 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
5666 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
5667 * user-regs.c (_initialize_user_regs): Add declaration.
5668 * utils.c (_initialize_utils): Add declaration.
5669 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
5670 * valops.c (_initialize_valops): Add declaration.
5671 * valprint.c (_initialize_valprint): Add declaration.
5672 * value.c (_initialize_values): Add declaration.
5673 * varobj.c (_initialize_varobj): Add declaration.
5674 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
5675 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
5676 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
5677 * windows-nat.c (_initialize_windows_nat): Add declaration.
5678 (_initialize_check_for_gdb_ini): Add declaration.
5679 (_initialize_loadable): Add declaration.
5680 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
5681 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
5682 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
5683 * xcoffread.c (_initialize_xcoffread): Add declaration.
5684 * xml-support.c (_initialize_xml_support): Add declaration.
5685 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
5686 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
5687 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
5688 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
5689
5690 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * regformats/regdat.sh: Generate declaration for init function.
5693
5694 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5695
5696 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
5697 up.
5698 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
5699 close_one_inferior>: New methods.
5700 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
5701 pass down target to find_inferior_pid.
5702 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
5703 Pass down target to find_inferior_ptid.
5704 (gdbsim_target::create_inferior): Pass down target to
5705 add_thread_silent.
5706 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
5707 target down to find_inferior_ptid and switch_to_thread.
5708 (gdbsim_target::close): Update to call close_one_inferior.
5709 (struct resume_data): Remove.
5710 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
5711 directly, rather than through a void pointer.
5712 (gdbsim_target::resume): Update to call resume_one_inferior.
5713
5714 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5715
5716 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
5717
5718 2020-01-12 Pedro Alves <palves@redhat.com>
5719
5720 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
5721 directly for the current inferior instead of
5722 discard_all_inferiors.
5723 (discard_all_inferiors): Delete.
5724
5725 2020-01-11 Tom Tromey <tom@tromey.com>
5726
5727 * tui/tui-wingeneral.c (box_win): Check cli_styling.
5728 * tui/tui-winsource.c (tui_source_window_base::refill): Use
5729 deprecated_safe_get_selected_frame.
5730
5731 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5732
5733 * inferior.c (print_inferior): Switch inferior before printing it.
5734
5735 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
5736 Pedro Alves <palves@redhat.com>
5737
5738 * progspace-and-thread.c (switch_to_program_space_and_thread):
5739 Assert there's an inferior for PSPACE. Use
5740 switch_to_inferior_no_thread to switch the inferior too.
5741 * progspace.c (program_space::~program_space): Call
5742 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
5743 (program_space::free_all_objfiles): Don't call clear_symtab_users
5744 here.
5745 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
5746
5747 2020-01-10 Pedro Alves <palves@redhat.com>
5748
5749 * NEWS: Mention multi-target debugging, "info connections", and
5750 "add-inferior -no-connection".
5751
5752 2020-01-10 Pedro Alves <palves@redhat.com>
5753
5754 * infrun.c: Include "target-connection.h".
5755 (check_multi_target_resumption): New.
5756 (proceed): Call it.
5757 * target-connection.c (make_target_connection_string): Make
5758 extern.
5759 * target-connection.h (make_target_connection_string): Declare.
5760
5761 2020-01-10 Pedro Alves <palves@redhat.com>
5762
5763 * Makefile.in (COMMON_SFILES): Add target-connection.c.
5764 * inferior.c (uiout_field_connection): New function.
5765 (print_inferior): Add new "connection-id" column.
5766 (add_inferior_command): Show connection number/string of added
5767 inferior.
5768 * process-stratum-target.h
5769 (process_stratum_target::connection_string): New virtual method.
5770 (process_stratum_target::connection_number): New field.
5771 * remote.c (remote_target::connection_string): New override.
5772 * target-connection.c: New file.
5773 * target-connection.h: New file.
5774 * target.c (decref_target): Remove process_stratum targets from
5775 the connection list.
5776 (target_stack::push): Add process_stratum targets to the
5777 connection list.
5778
5779 2020-01-10 Pedro Alves <palves@redhat.com>
5780
5781 Revert:
5782 2016-04-12 Pedro Alves <palves@redhat.com>
5783 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
5784 Remove references to name.
5785 * serial.h (struct serial) <name>: Delete.
5786
5787 2020-01-10 Pedro Alves <palves@redhat.com>
5788
5789 * gdbarch-selftests.c (register_to_value_test): Remove "target
5790 already pushed" check.
5791
5792 2020-01-10 Pedro Alves <palves@redhat.com>
5793 John Baldwin <jhb@FreeBSD.org>
5794
5795 * aarch64-linux-nat.c
5796 (aarch64_linux_nat_target::thread_architecture): Adjust.
5797 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
5798 (task_command_1): Likewise.
5799 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
5800 (aix_thread_target::wait, aix_thread_target::fetch_registers)
5801 (aix_thread_target::store_registers)
5802 (aix_thread_target::thread_alive): Adjust.
5803 * amd64-fbsd-tdep.c: Include "inferior.h".
5804 (amd64fbsd_get_thread_local_address): Pass down target.
5805 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
5806 thread's gdbarch instead of target_gdbarch.
5807 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
5808 get_last_target_status.
5809 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
5810 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
5811 inferiors.
5812 (update_inserted_breakpoint_locations): Skip if inferiors with no
5813 execution.
5814 (update_global_location_list): When handling moribund locations,
5815 find representative inferior for location's pspace, and use thread
5816 count of its process_stratum target.
5817 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
5818 * bsd-uthread.c (bsd_uthread_target::wait): Use
5819 as_process_stratum_target and adjust thread_change_ptid and
5820 add_thread calls.
5821 (bsd_uthread_target::update_thread_list): Use
5822 as_process_stratum_target and adjust find_thread_ptid,
5823 thread_change_ptid and add_thread calls.
5824 * btrace.c (maint_btrace_packet_history_cmd): Adjust
5825 find_thread_ptid call.
5826 * corelow.c (add_to_thread_list): Adjust add_thread call.
5827 (core_target_open): Adjust add_thread_silent and thread_count
5828 calls.
5829 (core_target::pid_to_str): Adjust find_inferior_ptid call.
5830 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
5831 * event-top.c (async_disconnect): Pop targets from all inferiors.
5832 * exec.c (add_target_sections): Push exec target on all inferiors
5833 sharing the program space.
5834 (remove_target_sections): Remove the exec target from all
5835 inferiors sharing the program space.
5836 (exec_on_vfork): New.
5837 * exec.h (exec_on_vfork): Declare.
5838 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
5839 Pass it down.
5840 (fbsd_nat_target::update_thread_list): Adjust.
5841 (fbsd_nat_target::resume): Adjust.
5842 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
5843 down.
5844 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
5845 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
5846 get_thread_arch_regcache call.
5847 * fork-child.c (gdb_startup_inferior): Pass target down to
5848 startup_inferior and set_executing.
5849 * gdbthread.h (struct process_stratum_target): Forward declare.
5850 (add_thread, add_thread_silent, add_thread_with_info)
5851 (in_thread_list): Add process_stratum_target parameter.
5852 (find_thread_ptid(inferior*, ptid_t)): New overload.
5853 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
5854 parameter.
5855 (all_threads()): Delete overload.
5856 (all_threads, all_non_exited_threads): Add process_stratum_target
5857 parameter.
5858 (all_threads_safe): Use brace initialization.
5859 (thread_count): Add process_stratum_target parameter.
5860 (set_resumed, set_running, set_stop_requested, set_executing)
5861 (threads_are_executing, finish_thread_state): Add
5862 process_stratum_target parameter.
5863 (switch_to_thread): Use is_current_thread.
5864 * i386-fbsd-tdep.c: Include "inferior.h".
5865 (i386fbsd_get_thread_local_address): Pass down target.
5866 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
5867 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
5868 have_inferiors check.
5869 * inf-ptrace.c (inf_ptrace_target::create_inferior)
5870 (inf_ptrace_target::attach): Adjust.
5871 * infcall.c (run_inferior_call): Adjust.
5872 * infcmd.c (run_command_1): Pass target to
5873 scoped_finish_thread_state.
5874 (proceed_thread_callback): Skip inferiors with no execution.
5875 (continue_command): Rename 'all_threads' local to avoid hiding
5876 'all_threads' function. Adjust get_last_target_status call.
5877 (prepare_one_step): Adjust set_running call.
5878 (signal_command): Use user_visible_resume_target. Compare thread
5879 pointers instead of inferior_ptid.
5880 (info_program_command): Adjust to pass down target.
5881 (attach_command): Mark target's 'thread_executing' flag.
5882 (stop_current_target_threads_ns): New, factored out from ...
5883 (interrupt_target_1): ... this. Switch inferior before making
5884 target calls.
5885 * inferior-iter.h
5886 (struct all_inferiors_iterator, struct all_inferiors_range)
5887 (struct all_inferiors_safe_range)
5888 (struct all_non_exited_inferiors_range): Filter on
5889 process_stratum_target too. Remove explicit.
5890 * inferior.c (inferior::inferior): Push dummy target on target
5891 stack.
5892 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
5893 Add process_stratum_target parameter, and pass it down.
5894 (have_live_inferiors): Adjust.
5895 (switch_to_inferior_and_push_target): New.
5896 (add_inferior_command, clone_inferior_command): Handle
5897 "-no-connection" parameter. Use
5898 switch_to_inferior_and_push_target.
5899 (_initialize_inferior): Mention "-no-connection" option in
5900 the help of "add-inferior" and "clone-inferior" commands.
5901 * inferior.h: Include "process-stratum-target.h".
5902 (interrupt_target_1): Use bool.
5903 (struct inferior) <push_target, unpush_target, target_is_pushed,
5904 find_target_beneath, top_target, process_target, target_at,
5905 m_stack>: New.
5906 (discard_all_inferiors): Delete.
5907 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
5908 (all_inferiors, all_non_exited_inferiors): Add
5909 process_stratum_target parameter.
5910 * infrun.c: Include "gdb_select.h" and <unordered_map>.
5911 (target_last_proc_target): New global.
5912 (follow_fork_inferior): Push target on new inferior. Pass target
5913 to add_thread_silent. Call exec_on_vfork. Handle target's
5914 reference count.
5915 (follow_fork): Adjust get_last_target_status call. Also consider
5916 target.
5917 (follow_exec): Push target on new inferior.
5918 (struct execution_control_state) <target>: New field.
5919 (user_visible_resume_target): New.
5920 (do_target_resume): Call target_async.
5921 (resume_1): Set target's threads_executing flag. Consider resume
5922 target.
5923 (commit_resume_all_targets): New.
5924 (proceed): Also consider resume target. Skip threads of inferiors
5925 with no execution. Commit resumtion in all targets.
5926 (start_remote): Pass current inferior to wait_for_inferior.
5927 (infrun_thread_stop_requested): Consider target as well. Pass
5928 thread_info pointer to clear_inline_frame_state instead of ptid.
5929 (infrun_thread_thread_exit): Consider target as well.
5930 (random_pending_event_thread): New inferior parameter. Use it.
5931 (do_target_wait): Rename to ...
5932 (do_target_wait_1): ... this. Add inferior parameter, and pass it
5933 down.
5934 (threads_are_resumed_pending_p, do_target_wait): New.
5935 (prepare_for_detach): Adjust calls.
5936 (wait_for_inferior): New inferior parameter. Handle it. Use
5937 do_target_wait_1 instead of do_target_wait.
5938 (fetch_inferior_event): Adjust. Switch to representative
5939 inferior. Pass target down.
5940 (set_last_target_status): Add process_stratum_target parameter.
5941 Save target in global.
5942 (get_last_target_status): Add process_stratum_target parameter and
5943 handle it.
5944 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
5945 (context_switch): Check inferior_ptid == null_ptid before calling
5946 inferior_thread().
5947 (get_inferior_stop_soon): Pass down target.
5948 (wait_one): Rename to ...
5949 (poll_one_curr_target): ... this.
5950 (struct wait_one_event): New.
5951 (wait_one): New.
5952 (stop_all_threads): Adjust.
5953 (handle_no_resumed, handle_inferior_event): Adjust to consider the
5954 event's target.
5955 (switch_back_to_stepped_thread): Also consider target.
5956 (print_stop_event): Update.
5957 (normal_stop): Update. Also consider the resume target.
5958 * infrun.h (wait_for_inferior): Remove declaration.
5959 (user_visible_resume_target): New declaration.
5960 (get_last_target_status, set_last_target_status): New
5961 process_stratum_target parameter.
5962 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5963 process_stratum_target parameter, and use it.
5964 (clear_inline_frame_state (thread_info*)): New.
5965 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
5966 process_stratum_target parameter.
5967 (clear_inline_frame_state (thread_info*)): Declare.
5968 * linux-fork.c (delete_checkpoint_command): Pass target down to
5969 find_thread_ptid.
5970 (checkpoint_command): Adjust.
5971 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
5972 instead of just tweaking inferior_ptid.
5973 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
5974 (exit_lwp): Pass target down to find_thread_ptid.
5975 (attach_proc_task_lwp_callback): Pass target down to
5976 add_thread/set_running/set_executing.
5977 (linux_nat_target::attach): Pass target down to
5978 thread_change_ptid.
5979 (get_detach_signal): Pass target down to find_thread_ptid.
5980 Consider last target status's target.
5981 (linux_resume_one_lwp_throw, resume_lwp)
5982 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
5983 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
5984 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
5985 (linux_nat_target::async_wait_fd): New.
5986 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
5987 target down.
5988 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
5989 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
5990 * linux-thread-db.c (struct thread_db_info::process_target): New
5991 field.
5992 (add_thread_db_info): Save target.
5993 (get_thread_db_info): New process_stratum_target parameter. Also
5994 match target.
5995 (delete_thread_db_info): New process_stratum_target parameter.
5996 Also match target.
5997 (thread_from_lwp): Adjust to pass down target.
5998 (thread_db_notice_clone): Pass down target.
5999 (check_thread_db_callback): Pass down target.
6000 (try_thread_db_load_1): Always push the thread_db target.
6001 (try_thread_db_load, record_thread): Pass target down.
6002 (thread_db_target::detach): Pass target down. Always unpush the
6003 thread_db target.
6004 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
6005 target down. Always unpush the thread_db target.
6006 (find_new_threads_callback, thread_db_find_new_threads_2)
6007 (thread_db_target::update_thread_list): Pass target down.
6008 (thread_db_target::pid_to_str): Pass current inferior down.
6009 (thread_db_target::get_thread_local_address): Pass target down.
6010 (thread_db_target::resume, maintenance_check_libthread_db): Pass
6011 target down.
6012 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
6013 * procfs.c (procfs_target::procfs_init_inferior): Declare.
6014 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
6015 (procfs_init_inferior): Rename to ...
6016 (procfs_target::procfs_init_inferior): ... this and adjust.
6017 (procfs_target::create_inferior, procfs_notice_thread)
6018 (procfs_do_thread_registers): Adjust.
6019 * ppc-fbsd-tdep.c: Include "inferior.h".
6020 (ppcfbsd_get_thread_local_address): Pass down target.
6021 * proc-service.c (ps_xfer_memory): Switch current inferior and
6022 program space as well.
6023 (get_ps_regcache): Pass target down.
6024 * process-stratum-target.c
6025 (process_stratum_target::thread_address_space)
6026 (process_stratum_target::thread_architecture): Pass target down.
6027 * process-stratum-target.h
6028 (process_stratum_target::threads_executing): New field.
6029 (as_process_stratum_target): New.
6030 * ravenscar-thread.c
6031 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
6032 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
6033 down.
6034 * record-btrace.c (record_btrace_target::info_record): Adjust.
6035 (record_btrace_target::record_method)
6036 (record_btrace_target::record_is_replaying)
6037 (record_btrace_target::fetch_registers)
6038 (get_thread_current_frame_id, record_btrace_target::resume)
6039 (record_btrace_target::wait, record_btrace_target::stop): Pass
6040 target down.
6041 * record-full.c (record_full_wait_1): Switch to event thread.
6042 Pass target down.
6043 * regcache.c (regcache::regcache)
6044 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
6045 process_stratum_target parameter and handle it.
6046 (current_thread_target): New global.
6047 (get_thread_regcache): Add process_stratum_target parameter and
6048 handle it. Switch inferior before calling target method.
6049 (get_thread_regcache): Pass target down.
6050 (get_thread_regcache_for_ptid): Pass target down.
6051 (registers_changed_ptid): Add process_stratum_target parameter and
6052 handle it.
6053 (registers_changed_thread, registers_changed): Pass target down.
6054 (test_get_thread_arch_aspace_regcache): New.
6055 (current_regcache_test): Define a couple local test_target_ops
6056 instances and use them for testing.
6057 (readwrite_regcache): Pass process_stratum_target parameter.
6058 (cooked_read_test, cooked_write_test): Pass mock_target down.
6059 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
6060 (get_thread_arch_aspace_regcache): Add process_stratum_target
6061 parameter.
6062 (regcache::target): New method.
6063 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
6064 (regcache::registers_changed_ptid): Add process_stratum_target
6065 parameter.
6066 (regcache::m_target): New field.
6067 (registers_changed_ptid): Add process_stratum_target parameter.
6068 * remote.c (remote_state::supports_vCont_probed): New field.
6069 (remote_target::async_wait_fd): New method.
6070 (remote_unpush_and_throw): Add remote_target parameter.
6071 (get_current_remote_target): Adjust.
6072 (remote_target::remote_add_inferior): Push target.
6073 (remote_target::remote_add_thread)
6074 (remote_target::remote_notice_new_inferior)
6075 (get_remote_thread_info): Pass target down.
6076 (remote_target::update_thread_list): Skip threads of inferiors
6077 bound to other targets. (remote_target::close): Don't discard
6078 inferiors. (remote_target::add_current_inferior_and_thread)
6079 (remote_target::process_initial_stop_replies)
6080 (remote_target::start_remote)
6081 (remote_target::remote_serial_quit_handler): Pass down target.
6082 (remote_target::remote_unpush_target): New remote_target
6083 parameter. Unpush the target from all inferiors.
6084 (remote_target::remote_unpush_and_throw): New remote_target
6085 parameter. Pass it down.
6086 (remote_target::open_1): Check whether the current inferior has
6087 execution instead of checking whether any inferior is live. Pass
6088 target down.
6089 (remote_target::remote_detach_1): Pass down target. Use
6090 remote_unpush_target.
6091 (extended_remote_target::attach): Pass down target.
6092 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
6093 (remote_target::append_resumption): Pass down target.
6094 (remote_target::append_pending_thread_resumptions)
6095 (remote_target::remote_resume_with_hc, remote_target::resume)
6096 (remote_target::commit_resume): Pass down target.
6097 (remote_target::remote_stop_ns): Check supports_vCont_probed.
6098 (remote_target::interrupt_query)
6099 (remote_target::remove_new_fork_children)
6100 (remote_target::check_pending_events_prevent_wildcard_vcont)
6101 (remote_target::remote_parse_stop_reply)
6102 (remote_target::process_stop_reply): Pass down target.
6103 (first_remote_resumed_thread): New remote_target parameter. Pass
6104 it down.
6105 (remote_target::wait_as): Pass down target.
6106 (unpush_and_perror): New remote_target parameter. Pass it down.
6107 (remote_target::readchar, remote_target::remote_serial_write)
6108 (remote_target::getpkt_or_notif_sane_1)
6109 (remote_target::kill_new_fork_children, remote_target::kill): Pass
6110 down target.
6111 (remote_target::mourn_inferior): Pass down target. Use
6112 remote_unpush_target.
6113 (remote_target::core_of_thread)
6114 (remote_target::remote_btrace_maybe_reopen): Pass down target.
6115 (remote_target::pid_to_exec_file)
6116 (remote_target::thread_handle_to_thread_info): Pass down target.
6117 (remote_target::async_wait_fd): New.
6118 * riscv-fbsd-tdep.c: Include "inferior.h".
6119 (riscv_fbsd_get_thread_local_address): Pass down target.
6120 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
6121 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
6122 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
6123 Adjust.
6124 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
6125 * solib-svr4.c (enable_break): Pass down target.
6126 * spu-multiarch.c (parse_spufs_run): Pass down target.
6127 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
6128 * target-delegates.c: Regenerate.
6129 * target.c (g_target_stack): Delete.
6130 (current_top_target): Return the current inferior's top target.
6131 (target_has_execution_1): Refer to the passed-in inferior's top
6132 target.
6133 (target_supports_terminal_ours): Check whether the initial
6134 inferior was already created.
6135 (decref_target): New.
6136 (target_stack::push): Incref/decref the target.
6137 (push_target, push_target, unpush_target): Adjust.
6138 (target_stack::unpush): Defref target.
6139 (target_is_pushed): Return bool. Adjust to refer to the current
6140 inferior's target stack.
6141 (dispose_inferior): Delete, and inline parts ...
6142 (target_preopen): ... here. Only dispose of the current inferior.
6143 (target_detach): Hold strong target reference while detaching.
6144 Pass target down.
6145 (target_thread_name): Add assertion.
6146 (target_resume): Pass down target.
6147 (target_ops::beneath, find_target_at): Adjust to refer to the
6148 current inferior's target stack.
6149 (get_dummy_target): New.
6150 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
6151 has a thread running.
6152 (initialize_targets): Rename to ...
6153 (_initialize_target): ... this.
6154 * target.h: Include "gdbsupport/refcounted-object.h".
6155 (struct target_ops): Inherit refcounted_object.
6156 (target_ops::shortname, target_ops::longname): Make const.
6157 (target_ops::async_wait_fd): New method.
6158 (decref_target): Declare.
6159 (struct target_ops_ref_policy): New.
6160 (target_ops_ref): New typedef.
6161 (get_dummy_target): Declare function.
6162 (target_is_pushed): Return bool.
6163 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
6164 (all_matching_threads_iterator::all_matching_threads_iterator):
6165 Handle filter target.
6166 * thread-iter.h (struct all_matching_threads_iterator, struct
6167 all_matching_threads_range, class all_non_exited_threads_range):
6168 Filter by target too. Remove explicit.
6169 * thread.c (threads_executing): Delete.
6170 (inferior_thread): Pass down current inferior.
6171 (clear_thread_inferior_resources): Pass down thread pointer
6172 instead of ptid_t.
6173 (add_thread_silent, add_thread_with_info, add_thread): Add
6174 process_stratum_target parameter. Use it for thread and inferior
6175 searches.
6176 (is_current_thread): New.
6177 (thread_info::deletable): Use it.
6178 (find_thread_ptid, thread_count, in_thread_list)
6179 (thread_change_ptid, set_resumed, set_running): New
6180 process_stratum_target parameter. Pass it down.
6181 (set_executing): New process_stratum_target parameter. Pass it
6182 down. Adjust reference to 'threads_executing'.
6183 (threads_are_executing): New process_stratum_target parameter.
6184 Adjust reference to 'threads_executing'.
6185 (set_stop_requested, finish_thread_state): New
6186 process_stratum_target parameter. Pass it down.
6187 (switch_to_thread): Also match inferior.
6188 (switch_to_thread): New process_stratum_target parameter. Pass it
6189 down.
6190 (update_threads_executing): Reimplement.
6191 * top.c (quit_force): Pop targets from all inferior.
6192 (gdb_init): Don't call initialize_targets.
6193 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
6194 Declare.
6195 (windows_add_thread, windows_delete_thread): Adjust.
6196 (get_windows_debug_event): Rename to ...
6197 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
6198 * tracefile-tfile.c (tfile_target_open): Pass down target.
6199 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
6200 Forward declare.
6201 (switch_to_thread): Add process_stratum_target parameter.
6202 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
6203 parameter. Use it.
6204 (mi_on_resume): Pass target down.
6205 * nat/fork-inferior.c (startup_inferior): Add
6206 process_stratum_target parameter. Pass it down.
6207 * nat/fork-inferior.h (startup_inferior): Add
6208 process_stratum_target parameter.
6209 * python/py-threadevent.c (py_get_event_thread): Pass target down.
6210
6211 2020-01-10 Pedro Alves <palves@redhat.com>
6212
6213 * remote.c (remote_target::start_remote): Don't set inferior_ptid
6214 directly. Instead find the first thread in the thread list and
6215 use switch_to_thread.
6216
6217 2020-01-10 Pedro Alves <palves@redhat.com>
6218
6219 * remote.c (remote_target::remote_add_inferior): Don't bind a
6220 process to the current inferior if the current inferior is already
6221 bound to a process.
6222
6223 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6224 Pedro Alves <palves@redhat.com>
6225
6226 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
6227 If no process is specified, return null_ptid instead of
6228 inferior_ptid.
6229 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
6230 TARGET_WAITKIND_SIGNALLED with no pid.
6231
6232 2020-01-10 Pedro Alves <palves@redhat.com>
6233
6234 * remote.c (first_remote_resumed_thread): New.
6235 (remote_target::wait_as): Use it as default event_ptid instead of
6236 inferior_ptid.
6237
6238 2020-01-10 Pedro Alves <palves@redhat.com>
6239
6240 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
6241
6242 2020-01-10 Pedro Alves <palves@redhat.com>
6243
6244 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
6245 not -1.
6246
6247 2020-01-10 Pedro Alves <palves@redhat.com>
6248
6249 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
6250 ptid to get_last_target_status.
6251 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
6252 ptid to get_last_target_status.
6253 * infcmd.c (continue_command): Don't pass a target_waitstatus to
6254 get_last_target_status.
6255 (info_program_command): Don't pass a target_waitstatus to
6256 get_last_target_status.
6257 * infrun.c (init_wait_for_inferior): Use
6258 nullify_last_target_wait_ptid.
6259 (get_last_target_status): Handle nullptr arguments.
6260 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
6261 (print_stop_event): Don't pass a ptid to get_last_target_status.
6262 (normal_stop): Don't pass a ptid to get_last_target_status.
6263 * infrun.h (get_last_target_status, set_last_target_status): Move
6264 comments here and update.
6265 (nullify_last_target_wait_ptid): Declare.
6266 * linux-fork.c (fork_load_infrun_state): Remove local extern
6267 declaration of nullify_last_target_wait_ptid.
6268 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
6269 to get_last_target_status.
6270
6271 2020-01-10 Pedro Alves <palves@redhat.com>
6272
6273 * gdbthread.h (scoped_restore_current_thread)
6274 <dont_restore, restore, m_dont_restore>: Declare.
6275 * thread.c (thread_alive): Add assertion. Return bool.
6276 (switch_to_thread_if_alive): New.
6277 (prune_threads): Switch inferior/thread.
6278 (print_thread_info_1): Switch thread before calling target methods.
6279 (scoped_restore_current_thread::restore): New, factored out from
6280 ...
6281 (scoped_restore_current_thread::~scoped_restore_current_thread):
6282 ... this.
6283 (scoped_restore_current_thread::scoped_restore_current_thread):
6284 Add assertion.
6285 (thread_apply_all_command, thread_select): Use
6286 switch_to_thread_if_alive.
6287 * infrun.c (proceed, restart_threads, handle_signal_stop)
6288 (switch_back_to_stepped_thread): Switch current thread before
6289 calling target methods.
6290
6291 2020-01-10 Pedro Alves <palves@redhat.com>
6292
6293 * inferior.c (switch_to_inferior_no_thread): New function,
6294 factored out from ...
6295 (inferior_command): ... here.
6296 * inferior.h (switch_to_inferior_no_thread): Declare.
6297 * mi/mi-main.c (run_one_inferior): Use
6298 switch_to_inferior_no_thread.
6299
6300 2020-01-10 Pedro Alves <palves@redhat.com>
6301
6302 * infcmd.c (kill_command): Remove dead code.
6303
6304 2020-01-10 Pedro Alves <palves@redhat.com>
6305
6306 * remote.c (remote_target::mourn_inferior): No longer check
6307 whether the target is running.
6308
6309 2020-01-10 Pedro Alves <palves@redhat.com>
6310
6311 * corelow.c (core_target::has_execution): Change parameter type to
6312 inferior pointer.
6313 * inferior.c (number_of_live_inferiors): Use
6314 inferior::has_execution instead of target_has_execution_1.
6315 * inferior.h (inferior::has_execution): New.
6316 * linux-thread-db.c (thread_db_target::update_thread_list): Use
6317 inferior::has_execution instead of target_has_execution_1.
6318 * process-stratum-target.c
6319 (process_stratum_target::has_execution): Change parameter type to
6320 inferior pointer. Check the inferior's PID instead of
6321 inferior_ptid.
6322 * process-stratum-target.h
6323 (process_stratum_target::has_execution): Change parameter type to
6324 inferior pointer.
6325 * record-full.c (record_full_core_target::has_execution): Change
6326 parameter type to inferior pointer.
6327 * target.c (target_has_execution_1): Change parameter type to
6328 inferior pointer.
6329 (target_has_execution_current): Adjust.
6330 * target.h (target_ops::has_execution): Change parameter type to
6331 inferior pointer.
6332 (target_has_execution_1): Change parameter type to inferior
6333 pointer. Change return type to bool.
6334 * tracefile.h (tracefile_target::has_execution): Change parameter
6335 type to inferior pointer.
6336
6337 2020-01-10 Pedro Alves <palves@redhat.com>
6338
6339 * exceptions.c (print_flush): Remove current_top_target() check.
6340
6341 2020-01-10 Pedro Alves <palves@redhat.com>
6342
6343 * remote.c (show_remote_exec_file): Show the current inferior's
6344 exec-file instead of the command variable's value.
6345
6346 2020-01-10 Pedro Alves <palves@redhat.com>
6347
6348 * record-full.c (record_full_resume_ptid): New global.
6349 (record_full_target::resume): Set it.
6350 (record_full_wait_1): Use record_full_resume_ptid instead of
6351 inferior_ptid.
6352
6353 2020-01-10 Pedro Alves <palves@redhat.com>
6354
6355 * gdbthread.h (scoped_restore_current_thread)
6356 <dont_restore, restore, m_dont_restore>: Declare.
6357 * thread.c (thread_alive): Add assertion. Return bool.
6358 (switch_to_thread_if_alive): New.
6359 (prune_threads): Switch inferior/thread.
6360 (print_thread_info_1): Switch thread before calling target methods.
6361 (scoped_restore_current_thread::restore): New, factored out from
6362 ...
6363 (scoped_restore_current_thread::~scoped_restore_current_thread):
6364 ... this.
6365 (scoped_restore_current_thread::scoped_restore_current_thread):
6366 Add assertion.
6367 (thread_apply_all_command, thread_select): Use
6368 switch_to_thread_if_alive.
6369
6370 2020-01-10 George Barrett <bob@bob131.so>
6371
6372 * stap-probe.c (stap_modify_semaphore): Don't check for null
6373 semaphores.
6374 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
6375 for null semaphores.
6376
6377 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6378
6379 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
6380 all source windows, and maintain horizontal scroll status while
6381 doing so.
6382
6383 2020-01-09 Tom Tromey <tom@tromey.com>
6384
6385 PR tui/18932:
6386 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
6387 update_source_window, not print_source_lines.
6388
6389 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6390
6391 * tui/tui.c (tui_enable): Register tui hooks after calling
6392 tui_display_main.
6393
6394 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6395
6396 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
6397
6398 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
6399
6400 * thread.c (print_thread_info_1): Fix indentation.
6401
6402 2020-01-09 Christian Biesinger <cbiesinger@google.com>
6403
6404 * symtab.c (general_symbol_info::compute_and_set_names): Move the
6405 unique_xmalloc_ptr outside the if to always free the demangled name.
6406
6407 2020-01-08 Tom Tromey <tromey@adacore.com>
6408
6409 * xcoffread.c (enter_line_range, read_xcoff_symtab)
6410 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
6411 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
6412 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
6413 Remove.
6414 (section_offsets): New typedef.
6415 * symtab.c (fixup_section, get_msymbol_address): Update.
6416 * symmisc.c (dump_msymbols): Update.
6417 * symfile.h (relative_addr_info_to_section_offsets)
6418 (symfile_map_offsets_to_segments): Update.
6419 * symfile.c (build_section_addr_info_from_objfile)
6420 (init_objfile_sect_indices): Update.
6421 (struct place_section_arg): Change type of "offsets".
6422 (place_section): Update.
6423 (relative_addr_info_to_section_offsets): Change type of
6424 "section_offsets". Remove "num_sections" parameter.
6425 (default_symfile_offsets, syms_from_objfile_1)
6426 (set_objfile_default_section_offset): Update.
6427 (reread_symbols): No need to preserve section offsets by hand.
6428 (symfile_map_offsets_to_segments): Change type of "offsets".
6429 * stap-probe.c (relocate_address): Update.
6430 * stabsread.h (process_one_symbol): Update.
6431 * solib-target.c (struct lm_info_target) <offsets>: Change type.
6432 (solib_target_relocate_section_addresses): Update.
6433 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
6434 Update.
6435 * solib-frv.c (frv_relocate_main_executable): Update.
6436 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
6437 * solib-aix.c (solib_aix_get_section_offsets): Change return
6438 type.
6439 (solib_aix_solib_create_inferior_hook): Update.
6440 * remote.c (remote_target::get_offsets): Update.
6441 * psymtab.c (find_pc_sect_psymtab): Update.
6442 * psympriv.h (struct partial_symbol) <address, text_low,
6443 text_high>: Update.
6444 * objfiles.h (obj_section_offset): Update.
6445 (struct objfile) <section_offsets>: Change type.
6446 <num_sections>: Remove.
6447 (objfile_relocate): Update.
6448 * objfiles.c (entry_point_address_query): Update
6449 (relocate_one_symbol): Change type of "section_offsets".
6450 (objfile_relocate1, objfile_relocate1): Change type of
6451 "new_offsets".
6452 (objfile_rebase1): Update.
6453 * mipsread.c (mipscoff_symfile_read): Update.
6454 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
6455 parameter.
6456 * mdebugread.c (parse_symbol): Change type of "section_offsets".
6457 (parse_external, psymtab_to_symtab_1): Update.
6458 * machoread.c (macho_symfile_offsets): Update.
6459 * ia64-tdep.c (ia64_find_unwind_table): Update.
6460 * hppa-tdep.c (read_unwind_info): Update.
6461 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
6462 * dwarf2read.c (create_addrmap_from_index)
6463 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6464 (process_psymtab_comp_unit_reader, add_partial_symbol)
6465 (add_partial_subprogram, process_full_comp_unit)
6466 (read_file_scope, read_func_scope, read_lexical_block_scope)
6467 (read_call_site_scope, dwarf2_rnglists_process)
6468 (dwarf2_ranges_process, dwarf2_ranges_read)
6469 (dwarf_decode_lines_1, var_decode_location, new_symbol)
6470 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
6471 Update.
6472 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
6473 Update.
6474 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
6475 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
6476 (process_one_symbol): Change type of "section_offsets".
6477 * ctfread.c (get_objfile_text_range): Update.
6478 * coffread.c (coff_symtab_read, enter_linenos)
6479 (process_coff_symbol): Update.
6480 * coff-pe-read.c (add_pe_forwarded_sym): Update.
6481 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
6482
6483 2020-01-08 Tom Tromey <tromey@adacore.com>
6484
6485 * dwarf2read.c (parse_macro_definition): Use std::string.
6486 (parse_macro_definition): Likewise.
6487
6488 2020-01-08 Tom Tromey <tromey@adacore.com>
6489
6490 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
6491 (ATTR_ALLOC_CHUNK): Remove.
6492
6493 2020-01-08 Tom Tromey <tromey@adacore.com>
6494
6495 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
6496
6497 2020-01-08 Tom Tromey <tromey@adacore.com>
6498
6499 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
6500 (dwarf2_compute_name, open_dwo_file): Likewise.
6501 (process_enumeration_scope): Use std::vector.
6502 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
6503 (partial_die_info::fixup, dwarf2_start_subfile)
6504 (guess_full_die_structure_name, dwarf2_name): Likewise.
6505 (determine_prefix): Update.
6506 (guess_full_die_structure_name): Make return type const.
6507 (partial_die_full_name): Return unique_xmalloc_ptr.
6508 (DW_FIELD_ALLOC_CHUNK): Remove.
6509
6510 2020-01-07 Tom Tromey <tromey@adacore.com>
6511
6512 PR build/24937:
6513 * stap-probe.c (class stap_static_probe_ops): Add constructor.
6514
6515 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6516
6517 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
6518
6519 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
6520
6521 * stack.c (print_frame_info): Move disassemble_next_line code
6522 inside source_print block.
6523
6524 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6525
6526 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
6527 gdb/signals.h, as we are now using native signal symbols.
6528
6529 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
6530
6531 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
6532 overflow by an early check of content vs threshold.
6533 * tui/tui-source.c (tui_source_window::line_is_displayed):
6534 Likewise.
6535
6536 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6537
6538 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
6539
6540 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
6541
6542 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
6543 export table if no section contains it's RVA.
6544
6545 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6546
6547 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
6548
6549 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
6550
6551 * source.c (print_source_lines_base): Set last_line_listed.
6552
6553 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
6554
6555 * tui/tui-disasm.c: Remove trailing spaces.
6556
6557 2020-01-06 Eli Zaretskii <eliz@gnu.org>
6558 Pedro Alves <palves@redhat.com>
6559
6560 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
6561 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
6562 (windows_gdb_signal_to_target): New function, uses the above
6563 enumeration to convert GDB internal signal codes to equivalent
6564 Windows codes.
6565 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
6566 * windows-nat.c: Include "gdb_wait.h".
6567 (get_windows_debug_event): Extract the fatal exception from the
6568 exit status and convert to the equivalent Posix signal number.
6569 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
6570 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
6571 * gdbsupport/gdb_wait.c: New file, implements
6572 windows_status_to_termsig.
6573 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
6574 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
6575
6576 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
6577
6578 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
6579 show_layout.
6580
6581 2020-01-05 Luis Machado <luis.machado@linaro.org>
6582
6583 * aarch64-linux-nat.c
6584 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
6585 and bfd_mach_aarch64.
6586
6587 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6588
6589 * ui-file.c (stdio_file::can_emit_style_escape)
6590 (tee_file::can_emit_style_escape): Ensure style is used also on
6591 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
6592 to gdb_stdout.
6593 * main.c (set_gdb_data_directory): Use file style to output the
6594 warning that the given pathname is not a directory.
6595 * top.c (show_history_filename, gdb_safe_append_history)
6596 (show_gdb_datadir): Use file style.
6597
6598 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
6599
6600 * solib-target.c (struct lm_info_target):
6601 Change offsets to be a unique_xmalloc_ptr.
6602 (solib_target_relocate_section_addresses): Update.
6603
6604 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
6605
6606 * windows-nat.c (windows_clear_solib): Free so_list linked list.
6607
6608 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
6609
6610 * MAINTAINERS (Write After Approval): Add myself.
6611
6612 2020-01-02 Luis Machado <luis.machado@linaro.org>
6613
6614 * proc-service.c (get_ps_regcache): Remove reference to obsolete
6615 Cell BE architecture.
6616 * target.h (struct target_ops) <thread_architecture>: Likewise.
6617
6618 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
6619
6620 * Makefile.in: Use INSTALL_PROGRAM_ENV.
6621
6622 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
6623
6624 * MAINTAINERS (Write After Approval): Add myself.
6625
6626 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6627
6628 * gdbarch.sh: Update copyright year range of generated files.
6629
6630 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6631
6632 Update copyright year range in all GDB files.
6633
6634 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6635
6636 * copyright.py: Convert to Python 3.
6637
6638 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6639
6640 * copyright.py: Adapt after move of gnulib directory from gdb
6641 directory to toplevel directory.
6642
6643 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6644
6645 * copyright.py (main): Exit if run from the wrong directory.
6646
6647 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6648
6649 * top.c (print_gdb_version): Change copyright year to 2020.
6650
6651 2020-01-01 Joel Brobecker <brobecker@adacore.com>
6652
6653 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
6654
6655 For older changes see ChangeLog-2019.
6656 \f
6657 Local Variables:
6658 mode: change-log
6659 left-margin: 8
6660 fill-column: 74
6661 version-control: never
6662 coding: utf-8
6663 End:
This page took 0.157482 seconds and 5 git commands to generate.