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