1 2020-09-26 Gareth Rees <grees@undo.io> (tiny change)
4 * cli/cli-script.c (execute_control_commands): don't set
5 instream to nullptr here as this breaks the from_tty argument
6 to gdb.execute in Python.
7 (execute_user_command): set instream to nullptr here instead.
9 2020-09-25 Simon Marchi <simon.marchi@efficios.com>
11 * infrun.h (infrun_debug_printf): Fix formatting.
12 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
14 2020-09-25 Saagar Jha <saagar@saagarjha.com>
16 * compile/compile-object-load.h (struct munmap_list): Add
17 explicitly-defined move constructor.
19 2020-09-24 Tom Tromey <tromey@adacore.com>
22 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
24 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
25 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
26 (tui_prev_win): Rewrite.
28 2020-09-23 Hannes Domani <ssbssa@yahoo.de>
30 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
31 in WOW64 processes as SIGINT.
32 * nat/windows-nat.h: Make wow64_process a shared variable.
33 * windows-nat.c: Remove static wow64_process variable.
35 2020-09-23 Tom Tromey <tom@tromey.com>
38 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
40 * printcmd.c (print_scalar_formatted): Handle zero-length
42 (print_scalar_formatted): Use bit_size_differs_p.
43 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
45 (union type_specific): <int_stuff>: New member.
46 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
48 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
50 (recursive_dump_type, copy_type_recursive): Update.
51 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
52 DW_AT_data_bit_offset.
54 2020-09-23 Tom Tromey <tom@tromey.com>
56 * utils.h (class gdb_argv): Add move operators.
57 <append>: New methods.
58 * compile/compile.c (build_argc_argv): Remove.
59 (compile_args_argc): Remove.
60 (compile_args_argv): Change type.
61 (set_compile_args): Simplify.
62 (append_args): Remove.
63 (filter_args): Remove argcp parameter.
64 (get_args): Return gdb_argv. Simplify.
65 (compile_to_object): Update.
67 2020-09-23 Tom Tromey <tom@tromey.com>
69 * compile/compile-object-run.c (do_module_cleanup)
70 <~do_module_cleanup> :Remove.
71 (do_module_cleanup): Update.
72 * compile/compile-object-load.h (struct munmap_list): Add move
74 <source_file>: Now a std::string.
75 <munmap_list>: Rename. No longer a pointer.
76 * compile/compile-object-load.c (struct setup_sections_data): Add
78 <setup_one_section>: Declare.
79 <munmap_list>: Move earlier.
81 <m_last_size, m_last_section_first, m_last_prot,
82 m_last_max_alignment>: Rename, add initializers where needed.
83 (setup_sections_data::setup_one_section): Rename from
84 setup_sections. Update.
85 (compile_object_load): Update. Don't use bfd_map_over_sections.
87 2020-09-23 Tom Tromey <tom@tromey.com>
89 * compile/compile-object-run.c (struct do_module_cleanup): Add
90 parameters to constructor. Update destructor.
91 <source_file, scope, scope_data, out_value_type, out_value_addr,
92 munmap_list_head, objfile_name_string>: Remove.
94 (do_module_cleanup): Update.
95 (compile_object_run): Update.
97 2020-09-23 Tom Tromey <tom@tromey.com>
99 * compile/compile.c (eval_compile_command): Update.
100 * compile/compile-object-run.h (compile_object_run): Take a
102 * compile/compile-object-run.c (compile_object_run): Take a
104 * compile/compile-object-load.h (struct compile_module): Add
105 constructor, destructor.
106 (compile_module_up): New typedef.
107 (compile_object_load): Return compile_object_up.
108 * compile/compile-object-load.c (compile_object_load): Return
111 2020-09-23 Tom Tromey <tom@tromey.com>
113 * compile/compile-object-run.c (struct do_module_cleanup): Add
114 constructor, destructor.
115 <objfile_name_string>: Don't use struct hack.
116 (do_module_cleanup): Use delete.
117 (compile_object_run): Use new.
119 2020-09-23 Tom Tromey <tom@tromey.com>
121 * compile/compile-cplus-types.c
122 (compile_cplus_convert_struct_or_union): Use std::vector.
123 (compile_cplus_convert_func): Likewise.
124 * compile/compile-c-types.c (convert_func): Use std::vector.
126 2020-09-21 Tom Tromey <tromey@adacore.com>
128 * sparc-tdep.c (sparc32_skip_prologue): Use
129 skip_prologue_using_sal.
131 2020-09-19 Tom Tromey <tom@tromey.com>
133 * symfile.c (add_section_size_callback): Remove.
134 (load_one_section): Rename from load_section_callback. Change
136 (generic_load): Use foreach.
138 2020-09-19 Tom Tromey <tom@tromey.com>
140 * exec.c (add_to_section_table): Remove.
141 (build_section_table): Use foreach.
143 2020-09-19 Tom Tromey <tom@tromey.com>
145 * elfread.c (elf_locate_sections): Change parameters.
146 (elf_symfile_read): Use foreach.
148 2020-09-19 Tom Tromey <tom@tromey.com>
150 * cli/cli-dump.c (struct callback_data): Remove.
151 (restore_one_section): Rename from restore_section_callback.
153 (restore_binary_file): Change parameters.
154 (restore_command): Use foreach.
156 2020-09-19 Tom Tromey <tom@tromey.com>
158 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
159 (gcore_copy_callback): Likewise.
160 (gcore_memory_sections): Use foreach.
162 2020-09-19 Tom Tromey <tom@tromey.com>
164 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
165 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
167 (generic_elf_osabi_sniffer): Use foreach.
168 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
169 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
171 2020-09-19 Tom Tromey <tom@tromey.com>
173 * dwarf2/read.c (locate_dwz_sections): Change parameters.
174 (dwarf2_get_dwz_file): Use foreach.
175 (dwarf2_locate_dwo_sections): Change parameters.
176 (open_and_init_dwo_file): Use foreach.
177 (dwarf2_locate_common_dwp_sections): Change parameters.
178 (open_and_init_dwp_file): Use foreach.
180 2020-09-19 Tom Tromey <tom@tromey.com>
182 * symfile.h: (find_lowest_section): Don't declare.
183 * symfile.c (find_lowest_section): Now static. Change
185 (struct place_section_arg): Remove.
186 (place_section): Change parameters.
187 (addr_info_make_relative): Use foreach.
188 (symfile_dummy_outputs): Remove.
189 (default_symfile_relocate): Use foreach.
191 2020-09-19 Tom Tromey <tom@tromey.com>
193 * objfiles.c (add_to_objfile_sections): Rename from
194 add_to_objfile_sections_full.
195 (add_to_objfile_sections): Remove.
196 (build_objfile_section_table): Use foreach.
198 2020-09-19 Tom Tromey <tom@tromey.com>
200 * stap-probe.c (get_stap_base_address_1): Remove.
201 (get_stap_base_address): Use foreach.
203 2020-09-19 Tom Tromey <tom@tromey.com>
205 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
207 (gdb_bfd_close_or_warn): Use foreach.
209 2020-09-19 Tom Tromey <tom@tromey.com>
211 * corelow.c (add_to_thread_list): Change parameters.
212 (core_target_open): Use foreach.
214 2020-09-19 Tom Tromey <tom@tromey.com>
216 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
219 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
221 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
224 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
226 * eval.c: Remove 'f-lang.h' include.
227 (value_f90_subarray): Moved to f-lang.c.
228 (eval_call): Renamed to...
229 (evaluate_subexp_do_call): ...this, is no longer static, header
230 comment moved into header file.
231 (evaluate_funcall): Update call to eval_call.
232 (skip_undetermined_arglist): Moved to f-lang.c.
233 (fortran_value_subarray): Likewise.
234 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
235 moved to evaluate_subexp_f.
236 (calc_f77_array_dims): Moved to f-lang.c
237 * expprint.c (print_subexp_funcall): New function.
238 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
239 moved to print_subexp_f, OP_FUNCALL uses new function.
240 (dump_subexp_body_funcall): New function.
241 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
242 moved to dump_subexp_f, OP_FUNCALL uses new function.
243 * expression.h (evaluate_subexp_do_call): Declare.
244 * f-lang.c (value_f90_subarray): Moved from eval.c.
245 (skip_undetermined_arglist): Likewise.
246 (calc_f77_array_dims): Likewise.
247 (fortran_value_subarray): Likewise.
248 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
249 (operator_length_f): Likewise.
250 (print_subexp_f): Likewise.
251 (dump_subexp_body_f): Likewise.
252 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
253 declaration of this operation to here.
254 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
255 support moved to operator_length_f.
256 * parser-defs.h (dump_subexp_body_funcall): Declare.
257 (print_subexp_funcall): Declare.
258 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
259 fortran-operator.def.
261 2020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
263 * eval.c (fortran_value_subarray): New function, content is taken
265 (evaluate_subexp_standard): ...here, in two places. Now arrays
266 and strings both call the new function.
267 (calc_f77_array_dims): Add header comment, handle strings.
269 2020-09-18 Victor Collod <vcollod@nvidia.com>
272 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
273 (i386_analyze_prologue): Call i386_skip_endbr.
275 2020-09-18 Tom Tromey <tromey@adacore.com>
277 * windows-nat.c (struct windows_nat_target) <wait>: Update.
278 (windows_nat_target::wait): Update.
279 * target/wait.h (enum target_wait_flag): New. Use
281 * target/target.h (target_wait): Change type of options.
282 * target.h (target_options_to_string, default_target_wait):
284 (struct target_ops) <wait>: Change type of options.
285 * target.c (target_wait, default_target_wait, do_option): Change
287 (target_options_to_string): Likewise.
288 * target-delegates.c: Rebuild.
289 * target-debug.h (target_debug_print_target_wait_flags): Rename
290 from target_debug_print_options.
291 * sol-thread.c (class sol_thread_target) <wait>: Update.
292 (sol_thread_target::wait): Update.
293 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
294 (rs6000_nat_target::wait): Update.
295 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
297 (remote_target::wait_ns, remote_target::wait_as): Change type of
299 (remote_target::wait): Update.
300 * remote-sim.c (struct gdbsim_target) <wait>: Update.
301 (gdbsim_target::wait): Update.
302 * record-full.c (class record_full_base_target) <wait>: Update.
303 (record_full_wait_1): Change type of "options".
304 (record_full_base_target::wait): Update.
305 * record-btrace.c (class record_btrace_target) <wait>: Update.
306 (record_btrace_target::wait): Update.
307 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
309 (ravenscar_thread_target::wait): Update.
310 * procfs.c (class procfs_target) <wait>: Update.
311 (procfs_target::wait): Update.
312 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
313 * obsd-nat.c (obsd_nat_target::wait): Update.
314 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
315 (nto_procfs_target::wait): Update.
316 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
317 * nbsd-nat.c (nbsd_wait): Change type of "options".
318 (nbsd_nat_target::wait): Update.
319 * linux-thread-db.c (class thread_db_target) <wait>: Update.
320 (thread_db_target::wait): Update.
321 * linux-nat.h (class linux_nat_target) <wait>: Update.
322 * linux-nat.c (linux_nat_target::wait): Update.
323 (linux_nat_wait_1): Update.
324 * infrun.c (do_target_wait_1, do_target_wait): Change type of
326 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
327 * inf-ptrace.c (inf_ptrace_target::wait): Update.
328 * go32-nat.c (struct go32_nat_target) <wait>: Update.
329 (go32_nat_target::wait): Update.
330 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
331 * gnu-nat.c (gnu_nat_target::wait): Update.
332 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
333 * fbsd-nat.c (fbsd_nat_target::wait): Update.
334 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
335 * darwin-nat.c (darwin_nat_target::wait): Update.
336 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
337 (bsd_uthread_target::wait): Update.
338 * aix-thread.c (class aix_thread_target) <wait>: Update.
339 (aix_thread_target::wait): Update.
341 2020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
343 * compile/compile-object-run.c (create_copied_type_recursive): New
345 (compile_object_run): Use new function.
347 2020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
349 * NEWS: Mention x86_64 Cygwin core file support.
351 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
353 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
354 (core_process_module_section): Handle NOTE_INFO_MODULE64.
356 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
358 * windows-tdep.h: Add prototypes.
359 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
360 (i386_windows_core_pid_to_str): Move and rename ...
361 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
362 (windows_core_pid_to_str): ... and here.
363 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
365 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
366 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
367 (amd64_windows_init_abi_common): ... and register.
369 2020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
371 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
372 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
374 2020-09-18 Pedro Alves <pedro@palves.net>
377 * thread.c (thread_find_command): Switch inferior before calling
380 2020-09-17 Tom Tromey <tromey@adacore.com>
382 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
383 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
384 (tdesc_arch_data_up): New typedef.
385 (tdesc_use_registers, tdesc_data_alloc): Update.
386 (tdesc_data_cleanup): Don't declare.
387 * target-descriptions.c (tdesc_data_alloc): Return a
389 (tdesc_arch_data_deleter::operator()): Rename from
390 tdesc_data_cleanup. Change argument type.
391 (tdesc_use_registers): Change early_data to an rvalue reference.
392 (tdesc_use_registers): Don't use delete.
393 * sparc-tdep.c (sparc32_gdbarch_init): Update.
394 * s390-tdep.c (s390_gdbarch_init): Update.
395 * rx-tdep.c (rx_gdbarch_init): Update.
396 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
397 * riscv-tdep.c (riscv_gdbarch_init): Update.
398 * or1k-tdep.c (or1k_gdbarch_init): Update.
399 * nios2-tdep.c (nios2_gdbarch_init): Update.
400 * nds32-tdep.c (nds32_gdbarch_init): Update.
401 * mips-tdep.c (mips_gdbarch_init): Update.
402 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
403 * m68k-tdep.c (m68k_gdbarch_init): Update.
404 * i386-tdep.c (i386_gdbarch_init): Update.
405 * arm-tdep.c (arm_gdbarch_init): Update.
406 * arc-tdep.c (arc_tdesc_init): Update.
407 (arc_gdbarch_init): Update.
408 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
410 2020-09-17 Hannes Domani <ssbssa@yahoo.de>
412 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
415 2020-09-17 Tom Tromey <tom@tromey.com>
417 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
419 2020-09-17 Tom Tromey <tom@tromey.com>
421 * value.c (preserve_values): Update.
422 * python/py-type.c (save_objfile_types): Update.
423 * guile/scm-type.c (save_objfile_types): Update.
424 * gdbtypes.h (create_copied_types_hash): Return htab_up.
425 * gdbtypes.c (create_copied_types_hash): Return htab_up.
426 * compile/compile-object-run.c (compile_object_run): Update.
428 2020-09-17 Tom Tromey <tom@tromey.com>
430 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
432 <m_table>: Now htab_up.
433 * typeprint.c (typedef_hash_table::recursively_update)
434 (typedef_hash_table::add_template_parameters)
435 (typedef_hash_table::typedef_hash_table): Update.
436 (typedef_hash_table::~typedef_hash_table): Remove.
437 (typedef_hash_table::typedef_hash_table)
438 (typedef_hash_table::find_global_typedef)
439 (typedef_hash_table::find_typedef): Update.
441 2020-09-17 Tom Tromey <tom@tromey.com>
443 * target-descriptions.c (tdesc_use_registers): Use htab_up.
445 2020-09-17 Tom Tromey <tom@tromey.com>
447 * linespec.c (class decode_compound_collector)
448 <~decode_compound_collector>: Remove.
449 <m_unique_syms>: Now htab_up.
450 (decode_compound_collector::operator ()): Update.
451 (class symtab_collector) <~symtab_collector>: Remove.
452 <m_symtab_table>: Now htab_up.
453 (symtab_collector::operator ()): Update.
455 2020-09-17 Tom Tromey <tom@tromey.com>
457 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
458 (filename_seen_cache::clear): Update.
459 (~filename_seen_cache): Remove.
460 (filename_seen_cache::seen): Update.
461 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
463 <~filename_seen_cache>: Remove.
466 2020-09-17 Tom Tromey <tom@tromey.com>
468 * completer.c (completion_tracker::discard_completions)
469 (completion_tracker::~completion_tracker)
470 (completion_tracker::maybe_add_completion)
471 (completion_tracker::remove_completion)
472 (completion_tracker::recompute_lowest_common_denominator)
473 (completion_tracker::build_completion_result): Update.
474 * completer.h (class completion_tracker) <have_completions>:
476 <m_entries_hash>: Now htab_up.
478 2020-09-17 Tom Tromey <tom@tromey.com>
480 * breakpoint.c (ambiguous_names_p): Use htab_up.
482 2020-09-17 Tom Tromey <tom@tromey.com>
484 * auto-load.c (struct auto_load_pspace_info)
485 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
486 <loaded_script_files, loaded_script_texts>: Change type to
488 (~auto_load_pspace_info) Remove.
489 (init_loaded_scripts_info, maybe_add_script_file)
490 (maybe_add_script_text, auto_load_info_scripts): Update.
492 2020-09-17 Tom Tromey <tromey@adacore.com>
494 * c-exp.y (name_obstack): Now static.
496 2020-09-17 Chungyi Chi <demonic@csie.io>
498 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
500 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
502 * breakpoint.h (init_catchpoint): Change int parameter to bool.
503 (add_solib_catchpoint): Likewise.
504 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
506 (add_solib_catchpoint): Change int parameter/variable to bool.
507 (catch_load_or_unload): Likewise.
508 (init_catchpoint): Likewise.
509 (create_fork_vfork_event_catchpoint): Likewise.
510 (catch_fork_command_1): Likewise.
511 (catch_exec_command_1): Likewise.
513 2020-09-16 Simon Marchi <simon.marchi@efficios.com>
515 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
516 Change instance_flags to m_instance_flags.
518 2020-09-16 Tom Tromey <tromey@adacore.com>
521 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
523 2020-09-16 John Baldwin <jhb@FreeBSD.org>
525 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
527 (fbsd_nat_target::insert_exec_catchpoint)
528 (fbsd_nat_target::remove_exec_catchpoint): Always define.
529 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
530 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
532 2020-09-16 John Baldwin <jhb@FreeBSD.org>
534 * configure.ac: Remove check for kinfo_getvmmap().
535 * configure, config.in: Regenerate.
536 * fbsd-nat.c (fbsd_read_mapping): Remove
537 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
538 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
539 kinfo_get_vmmap() are always present.
541 2020-09-16 John Baldwin <jhb@FreeBSD.org>
543 * fbsd-nat.c: Always include support for
544 TARGET_OBJECT_SIGNAL_INFO.
546 2020-09-16 John Baldwin <jhb@FreeBSD.org>
548 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
549 sysctl and remove procfs fallback.
551 2020-09-16 John Baldwin <jhb@FreeBSD.org>
553 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
554 * fbsd-nat.h: Likewise.
556 2020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
558 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
561 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
563 * ada-lang.c (ada_language_data): Delete.
564 (ada_language): Remove references to ada_language_data.
565 * c-lang.c (c_language_data): Delete.
566 (c_language): Remove references to c_language_data.
567 (cplus_language_data): Delete.
568 (cplus_language): Remove references to cplus_language_data.
569 (asm_language_data): Delete.
570 (asm_language): Remove references to asm_language_data.
571 (minimal_language_data): Delete.
572 (minimal_language): Remove references to minimal_language_data.
573 * d-lang.c (d_language_data): Delete.
574 (d_language): Remove references to d_language_data.
575 * f-lang.c (f_language_data): Delete.
576 (f_language): Remove references to f_language_data.
577 * go-lang.c (go_language_data): Delete.
578 (go_language): Remove references to go_language_data.
579 * language.c (unknown_language_data): Delete.
580 (unknown_language): Remove references to unknown_language_data.
581 (auto_language_data): Delete.
582 (auto_language): Remove references to auto_language_data.
583 * language.h (language_data): Delete struct.
584 (language_defn): No longer inherit from language_data.
585 * m2-lang.c (m2_language_data): Delete.
586 (m2_language): Remove references to m2_language_data.
587 * objc-lang.c (objc_language_data): Delete.
588 (objc_language): Remove references to objc_language_data.
589 * opencl-lang.c (opencl_language_data): Delete.
590 (opencl_language): Remove references to opencl_language_data.
591 * p-lang.c (pascal_language_data): Delete.
592 (pascal_language): Remove references to pascal_language_data.
593 * rust-lang.c (rust_language_data): Delete.
594 (rust_language): Remove references to rust_language_data.
596 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
598 * ada-lang.c (ada_language_data): Remove la_op_print_tab
600 (ada_language::opcode_print_table): New member function.
601 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
602 (c_language::opcode_print_table): New member function.
603 (cplus_language_data): Remove la_op_print_tab initializer.
604 (cplus_language::opcode_print_table): New member function.
605 (asm_language_data): Remove la_op_print_tab initializer.
606 (asm_language::opcode_print_table): New member function.
607 (minimal_language_data): Remove la_op_print_tab initializer.
608 (minimal_language::opcode_print_table): New member function.
609 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
610 (d_language::opcode_print_table): New member function.
611 * expprint.c (print_subexp_standard): Update call to
613 (op_string): Likewise.
614 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
615 (f_language::opcode_print_table): New member function.
616 * go-lang.c (go_language_data): Remove la_op_print_tab
618 (go_language::opcode_print_table): New member function.
619 * language.c (unknown_language_data): Remove la_op_print_tab
621 (unknown_language::opcode_print_table): New member function.
622 (auto_language_data): Remove la_op_print_tab initializer.
623 (auto_language::opcode_print_table): New member function.
624 * language.h (language_data): Remove la_op_print_tab field.
625 (language_defn::opcode_print_table): Declare new member function.
626 * m2-lang.c (m2_language_data): Remove la_op_print_tab
628 (m2_language::opcode_print_table): New member function.
629 * objc-lang.c (objc_language_data): Remove la_op_print_tab
631 (objc_language::opcode_print_table): New member function.
632 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
634 (opencl_language::opcode_print_table): New member function.
635 * p-lang.c (pascal_language_data): Remove la_op_print_tab
637 (pascal_language::opcode_print_table): New member function.
638 * rust-lang.c (rust_language_data): Remove la_op_print_tab
640 (rust_language::opcode_print_table): New member function.
642 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
644 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
645 (ada_language::expression_ops): New member function.
646 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
647 (c_language::expression_ops): New member function.
648 (cplus_language_data): Remove la_exp_desc initializer.
649 (cplus_language::expression_ops): New member function.
650 (asm_language_data): Remove la_exp_desc initializer.
651 (asm_language::expression_ops): New member function.
652 (minimal_language_data): Remove la_exp_desc initializer.
653 (minimal_language::expression_ops): New member function.
654 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
655 (d_language::expression_ops): New member function.
656 * eval.c (evaluate_subexp): Update call to expression_ops.
657 * expprint.c (print_subexp): Likewise.
659 (dump_subexp_body): Likewise.
660 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
661 (f_language::expression_ops): New member function.
662 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
663 (go_language::expression_ops): New member function.
664 * language.c (language_defn::expression_ops): New function.
665 (unknown_language_data): Remove la_exp_desc initializer.
666 (auto_language_data): Likewise.
667 * language.h (language_data): Remove la_exp_desc field.
668 (language_defn::expression_ops): Declare new member function.
669 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
670 (m2_language::expression_ops): New member function.
671 * objc-lang.c (objc_language_data): Remove la_exp_desc
673 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
675 (opencl_language::expression_ops): New member function.
676 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
677 * parse.c (operator_length): Update call to expression_ops.
678 (exp_iterate): Likewise.
679 * rust-lang.c (rust_language_data): Remove la_exp_desc
681 (ruse_language::expression_ops): New member function.
683 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
685 * ada-lang.c (ada_language_data): Remove la_varobj_ops
687 (ada_language::varobj_ops): New member function.
688 * c-lang.c (c_language_data): Remove la_varobj_ops
690 (cplus_language_data): Likewise.
691 (cplus_language::varobj_ops): New member function.
692 (asm_language_data): Remove la_varobj_ops initializer.
693 (minimal_language_data): Likewise.
694 * d-lang.c (d_language_data): Likewise.
695 * f-lang.c (f_language_data): Likewise.
696 * go-lang.c (go_language_data): Likewise.
697 * language.c (language_defn::varobj_ops): New function.
698 (unknown_language_data): Remove la_varobj_ops
700 (auto_language_data): Likewise.
701 * language.h (language_data): Remove la_varobj_ops field.
702 (language_defn::varobj_ops): Declare new member function.
703 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
704 * objc-lang.c (objc_language_data): Likewise.
705 * opencl-lang.c (opencl_language_data): Likewise.
706 * p-lang.c (pascal_language_data): Likewise.
707 * rust-lang.c (rust_language_data): Likewise.
708 * varobj.c (varobj_create): Update call to varobj_ops.
709 * varobj.h (default_varobj_ops): Delete define.
711 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
713 * ada-lang.c (ada_language_data): Remove la_macro_expansion
715 * c-lang.c (c_language_data): Likewise.
716 (c_language::macro_expansion): New member function.
717 (cplus_language_data): Likewise.
718 (cplus_language::macro_expansion): New member function.
719 (asm_language_data): Likewise.
720 (asm_language::macro_expansion): New member function.
721 (minimal_language_data): Likewise.
722 (minimal_language::macro_expansion): New member function.
723 * d-lang.c (d_language_data): Remove la_macro_expansion
725 * f-lang.c (f_language_data): Likewise.
726 * go-lang.c (go_language_data): Likewise.
727 * language.c (unknown_language_data): Likewise.
728 (auto_language_data): Likewise.
729 * language.h (language_data): Remove la_macro_expansion field.
730 (language_defn::macro_expansion): New member function.
731 * m2-lang.c (m2_language_data): Remove la_macro_expansion
733 * objc-lang.c (objc_language_data): Likewise.
734 (objc_language::macro_expansion): New member function.
735 * opencl-lang.c (opencl_language_data): Likewise.
736 (opencl_language::macro_expansion): New member function.
737 * p-lang.c (pascal_language_data): Remove la_macro_expansion
739 * rust-lang.c (rust_language_data): Likewise.
740 * symtab.c (default_collect_symbol_completion_matches_break_on):
741 Update call to macro_expansion.
743 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
745 * ada-lang.c (ada_language_data): Remove la_array_ordering
747 * c-lang.c (c_language_data): Likewise.
748 (cplus_language_data): Likewise.
749 (asm_language_data): Likewise.
750 (minimal_language_data): Likewise.
751 * d-lang.c (d_language_data): Likewise.
752 * dwarf2/read.c (read_array_order): Update for call to
754 * f-lang.c (f_language_data): Remove la_array_ordering
756 (f_language::array_ordering): New member function.
757 * go-lang.c (go_language_data): Remove la_array_ordering
759 * language.c (unknown_language_data): Likewise.
760 (auto_language_data): Likewise.
761 * language.h (language_data): Delete la_array_ordering field.
762 (language_defn::array_ordering): New member function.
763 * m2-lang.c (m2_language_data): Remove la_array_ordering
765 * objc-lang.c (objc_language_data): Likewise.
766 * opencl-lang.c (opencl_language_data): Likewise.
767 * p-lang.c (pascal_language_data): Likewise.
768 * rust-lang.c (rust_language_data): Likewise.
770 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
772 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
774 * c-lang.c (c_language_data): Likewise.
775 (cplus_language_data): Likewise.
776 (asm_language_data): Likewise.
777 (minimal_language_data): Likewise.
778 * d-lang.c (d_language_data): Likewise.
779 * f-lang.c (f_language_data): Likewise.
780 (f_language::case_sensitivity): New member function.
781 * go-lang.c (go_language_data): Remove la_case_sensitivity
783 * language.c (enum case_mode): Moved here from language.h.
784 (case_mode): Make static.
785 (show_case_command): Update for case_sensitivity being a method.
786 (set_case_command): Likewise.
787 (set_range_case): Likewise.
788 (unknown_language_data): Remove la_case_sensitivity initializer.
789 (auto_language_data): Likewise.
790 * language.h (case_mode): Delete, move enum declaration to
792 (language_data): Delete la_case_sensitivity field.
793 (language_defn::case_sensitivity): New member function.
794 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
796 * objc-lang.c (objc_language_data): Likewise.
797 * opencl-lang.c (opencl_language_data): Likewise.
798 * p-lang.c (pascal_language_data): Likewise.
799 * rust-lang.c (rust_language_data): Likewise.
801 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
803 * ada-lang.c (ada_language_data): Remove la_range_check
805 * c-lang.c (c_language_data): Likewise.
806 (cplus_language_data): Likewise.
807 (asm_language_data): Likewise.
808 (minimal_language_data): Likewise.
809 * d-lang.c (d_language_data): Likewise.
810 * f-lang.c (f_language_data): Likewise.
811 (f_language::range_checking_on_by_default): New member function.
812 * go-lang.c (go_language_data): Remove la_range_check initializer.
813 * language.c (enum range_mode): Moved here from language.h.
814 (range_mode): Made static.
815 (show_range_command): Update to use
816 range_checking_on_by_default.
817 (set_range_command): Likewise.
818 (set_range_case): Likewise.
819 (unknown_language_data): Remove la_range_check initializer.
820 (auto_language_data): Likewise.
821 * language.h (range_mode): Delete. Enum definition moved to
823 (language_data): Remove la_range_check field.
824 (language_defn::range_checking_on_by_default): New member
826 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
827 (m2_language::range_checking_on_by_default): New member function.
828 * objc-lang.c (objc_language_data): Remove la_range_check
830 * opencl-lang.c (opencl_language_data): Likewise.
831 * p-lang.c (pascal_language_data): Likewise.
832 (pascal_language::range_checking_on_by_default): New member
834 * rust-lang.c (rust_language_data): Remove la_range_check
836 (rust_language::range_checking_on_by_default): New member
839 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
841 * dwarf2/read.c (dwarf2_physname): Remove special case for
843 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
846 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
848 * ada-lang.c (ada_language_data): Remove
849 la_store_sym_names_in_linkage_form_p initializer.
850 (ada_language::store_sym_names_in_linkage_form_p): New member
852 * c-lang.c (c_language_data): Remove
853 la_store_sym_names_in_linkage_form_p initializer.
854 (c_language::store_sym_names_in_linkage_form_p): New member
856 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
858 (asm_language_data): Likewise.
859 (asm_language::store_sym_names_in_linkage_form_p): New member
861 (minimal_language_data): Remove
862 la_store_sym_names_in_linkage_form_p initializer.
863 (minimal_language::store_sym_names_in_linkage_form_p): New member
865 * d-lang.c (d_language_data): Remove
866 la_store_sym_names_in_linkage_form_p initializer.
867 * dwarf2/read.c (dwarf2_physname): Update call to
868 store_sym_names_in_linkage_form_p.
869 * f-lang.c (f_language_data): Remove
870 la_store_sym_names_in_linkage_form_p initializer.
871 * go-lang.c (go_language_data): Remove
872 la_store_sym_names_in_linkage_form_p initializer.
873 * language.c (unknown_language_data): Remove
874 la_store_sym_names_in_linkage_form_p initializer.
875 (unknown_language::store_sym_names_in_linkage_form_p): New member
877 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
879 (auto_language::store_sym_names_in_linkage_form_p): New member
881 * language.h (language_data): Remove
882 la_store_sym_names_in_linkage_form_p member variable.
883 (language_defn::store_sym_names_in_linkage_form_p): New member
885 * m2-lang.c (m2_language_data): Remove
886 la_store_sym_names_in_linkage_form_p initializer.
887 * objc-lang.c (objc_language_data): Likewise.
888 * opencl-lang.c (opencl_language_data): Likewise.
889 * p-lang.c (pascal_language_data): Likewise.
890 * rust-lang.c (rust_language_data): Likewise.
892 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
894 * ada-lang.c (ada_language_data): Remove string_lower_bound
896 * c-lang.c (c_language_data): Likewise.
897 (cplus_language_data): Likewise.
898 (asm_language_data): Likewise.
899 (minimal_language_data): Likewise.
900 * d-lang.c (d_language_data): Likewise.
901 * f-lang.c (f_language_data): Likewise.
902 * go-lang.c (go_language_data): Likewise.
903 * language.c (unknown_language_data): Likewise.
904 (auto_language_data): Likewise.
905 * language.h (language_data): Remove string_lower_bound field.
906 (language_defn::string_lower_bound): New member function.
907 * m2-lang.c (m2_language_data): Remove string_lower_bound
909 (m2_language::string_lower_bound): New member function.
910 * objc-lang.c (objc_language_data): Remove string_lower_bound
912 * opencl-lang.c (opencl_language_data): Likewise.
913 * p-lang.c (pascal_language_data): Likewise.
914 * rust-lang.c (rust_language_data): Likewise.
915 * valops.c (value_cstring): Update call to string_lower_bound.
916 (value_string): Likewise.
917 * value.c (allocate_repeated_value): Likewise.
919 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
921 * valops.c (value_repeat): Fix incorrect argument name in comment.
923 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
925 * ada-lang.c (ada_language_data): Remove c_style_arrays
927 (ada_language::c_style_arrays_p): New member fuction.
928 * c-lang.c (c_language_data): Remove c_style_arrays
930 (cplus_language_data): Likewise.
931 (asm_language_data): Likewise.
932 (minimal_language_data): Likewise.
933 * d-lang.c (d_language_data): Likewise.
934 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
935 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
936 (f_language::c_style_arrays_p): New member function.
937 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
938 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
939 * language.c (unknown_language_data): Remove c_style_arrays
941 (auto_language_data): Likewise.
942 * language.h (language_data): Remove c_style_arrays field.
943 (language_defn::c_style_arrays_p): New member function.
944 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
945 (m2_language::c_style_arrays_p): New member function.
946 * objc-lang.c (objc_language_data): Remove c_style_arrays
948 * opencl-lang.c (opencl_language_data): Likewise.
949 * p-lang.c (pascal_language_data): Likewise.
950 * rust-lang.c (rust_language_data): Likewise.
951 * valarith.c (value_subscript): Update call to c_style_arrays_p,
952 and update local variable to a bool.
953 * valops.c (value_cast): Update call to c_style_arrays_p.
954 (value_array): Likewise.
955 * value.c (coerce_array): Likewise.
957 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
959 * ada-lang.c (ada_language_data): Remove la_language initializer.
960 * c-lang.c (c_language_data): Likewise.
961 (cplus_language_data): Likewise.
962 (asm_language_data): Likewise.
963 (minimal_language_data): Likewise.
964 * d-lang.c (d_language_data): Likewise.
965 * f-lang.c (f_language_data): Likewise.
966 * go-lang.c (go_language_data): Likewise.
967 * language.c (unknown_language_data): Likewise.
968 (auto_language_data): Likewise.
969 * language.h (language_data): Remove la_language field.
970 (language_defn::language_defn): Initialise la_language field.
971 (language_defn::la_language): New member variable.
972 * m2-lang.c (m2_language_data): Remove la_language field.
973 * objc-lang.c (objc_language_data): Likewise.
974 * opencl-lang.c (opencl_language_data): Likewise.
975 * p-lang.c (pascal_language_data): Likewise.
976 * rust-lang.c (rust_language_data): Likewise.
978 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
980 * ada-lang.c (ada_extensions): Delete, moved into
981 ada_language::filename_extensions.
982 (ada_language_data): Remove la_filename_extensions initializer.
983 (ada_language::filename_extensions): New member function.
984 * c-lang.c (c_extensions): Delete, moved into
985 c_language::filename_extensions.
986 (c_language_data): Remove la_filename_extensions initializer.
987 (c_language::filename_extensions): New member function.
988 (cplus_extensions): Delete, moved into
989 cplus_language::filename_extensions.
990 (cplus_language_data): Remove la_filename_extensions initializer.
991 (cplus_language::filename_extensions): New member function.
992 (asm_extensions): Delete, moved into
993 asm_language::filename_extensions.
994 (asm_language_data): Remove la_filename_extensions initializer.
995 (asm_language::filename_extensions): New member function.
996 (minimal_language_data): Remove la_filename_extensions
998 * d-lang.c (d_extensions): Delete, moved into
999 d_language::filename_extensions.
1000 (d_language_data): Remove la_filename_extensions initializer.
1001 (d_language::filename_extensions): New member function.
1002 * f-lang.c (f_extensions): Delete, moved into
1003 f_language::filename_extensions.
1004 (f_language_data): Remove la_filename_extensions initializer.
1005 (f_language::filename_extensions): New member function.
1006 * go-lang.c (go_language_data): Remove la_filename_extensions
1008 * language.c (add_set_language_command): Update now that
1009 filename_extensions returns a vector.
1010 (unknown_language_data): Remove la_filename_extensions
1012 (auto_language_data): Likewise.
1013 * language.h (language_data): Remove la_filename_extensions field.
1014 (language_defn::filename_extensions): New member function.
1015 * m2-lang.c (m2_language_data): Remove la_filename_extensions
1017 * objc-lang.c (objc_extensions): Delete, moved into
1018 objc_language::filename_extensions.
1019 (objc_language_data): Remove la_filename_extensions initializer.
1020 (objc_language::filename_extensions): New member function.
1021 * opencl-lang.c (opencl_language_data): Remove
1022 la_filename_extensions initializer.
1023 * p-lang.c (pascal_extensions): Delete, moved into
1024 pascal_language::filename_extensions.
1025 (pascal_language_data): Remove la_filename_extensions initializer.
1026 (pascal_language::filename_extensions): New member function.
1027 * rust-lang.c (rust_extensions): Delete, moved into
1028 rust_language::filename_extensions.
1029 (rust_language_data): Remove la_filename_extensions initializer.
1030 (rust_language::filename_extensions): New member function.
1031 * symfile.c (add_filename_language): Add new assert.
1033 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1035 * ada-lang.c (ada_language_data): Remove la_name and
1036 la_natural_name initializers.
1037 (ada_language::name): New member function.
1038 (ada_language::natural_name): New member function.
1039 * c-lang.c (c_language_data): Remove la_name and
1040 la_natural_name initializers.
1041 (c_language::name): New member function.
1042 (c_language::natural_name): New member function.
1043 (cplus_language_data): Remove la_name and
1044 la_natural_name initializers.
1045 (cplus_language::name): New member function.
1046 (cplus_language::natural_name): New member function.
1047 (asm_language_data): Remove la_name and
1048 la_natural_name initializers.
1049 (asm_language::name): New member function.
1050 (asm_language::natural_name): New member function.
1051 (minimal_language_data): Remove la_name and
1052 la_natural_name initializers.
1053 (minimal_language::name): New member function.
1054 (minimal_language::natural_name): New member function.
1055 * compile/compile.c (compile_to_object): Update call to
1056 lanugage_defn::name.
1057 * d-lang.c (d_language_data): Remove la_name and
1058 la_natural_name initializers.
1059 (d_language::name): New member function.
1060 (d_language::natural_name): New member function.
1061 * expprint.c (print_subexp_standard): Update call to
1062 language_defn::name.
1063 (dump_raw_expression): Likewise
1064 (dump_prefix_expression): Likewise.
1065 * f-lang.c (f_language_data): Remove la_name and
1066 la_natural_name initializers.
1067 (f_language::name): New member function.
1068 (f_language::natural_name): New member function.
1069 * go-lang.c (go_language_data): Remove la_name and
1070 la_natural_name initializers.
1071 (go_language::name): New member function.
1072 (go_language::natural_name): New member function.
1073 * language.c (show_language_command): Update call to
1074 language_defn::name.
1075 (set_language_command): Likewise.
1076 (language_enum): Likewise.
1077 (language_str): Likewise.
1078 (add_set_language_command): Likewise, use
1079 language_defn::natural_name in the doc string.
1080 (unknown_language_data): Remove la_name and
1081 la_natural_name initializers.
1082 (unknown_language::name): New member function.
1083 (unknown_language::natural_name): New member function.
1084 (auto_language_data): Remove la_name and
1085 la_natural_name initializers.
1086 (auto_language::name): New member function.
1087 (auto_language::natural_name): New member function.
1088 (language_lookup_primitive_type_as_symbol): Update call to
1089 language_defn::name.
1090 * language.h (language_data): Remove la_name and la_natural_name
1092 (language_defn::name): New member function.
1093 (language_defn::natural_name): New member function.
1094 * m2-lang.c (m2_language_data): Remove la_name and
1095 la_natural_name initializers.
1096 (m2_language::name): New member function.
1097 (m2_language::natural_name): New member function.
1098 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
1099 language_defn::natural_name.
1100 * objc-lang.c (objc_language_data): Remove la_name and
1101 la_natural_name initializers.
1102 (objc_language::name): New member function.
1103 (objc_language::natural_name): New member function.
1104 * opencl-lang.c (opencl_language_data): Remove la_name and
1105 la_natural_name initializers.
1106 (opencl_language::name): New member function.
1107 (opencl_language::natural_name): New member function.
1108 * p-lang.c (pascal_language_data): Remove la_name and
1109 la_natural_name initializers.
1110 (pascal_language::name): New member function.
1111 (pascal_language::natural_name): New member function.
1112 * rust-lang.c (rust_language_data): Remove la_name and
1113 la_natural_name initializers.
1114 (rust_language::name): New member function.
1115 (rust_language::natural_name): New member function.
1116 * symtab.c (lookup_language_this): Update call to
1117 language_defn::name.
1119 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1121 * ada-lang.c (ada_language_data): Remove la_name_of_this
1123 * ax-gdb.c (gen_expr): Update call to name_of_this.
1124 * c-exp.y (classify_name): Likewise.
1125 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
1126 (cplus_language_data): Likewise.
1127 (cplus_language::name_of_this): New member function.
1128 (asm_language_data): Remove la_name_of_this initializer.
1129 (minimal_language_data): Likewise.
1130 * d-lang.c (d_language_data): Likewise.
1131 (d_language::name_of_this): New member function.
1132 * expprint.c (print_subexp_standard): Update call to name_of_this.
1133 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
1134 * go-lang.c (go_language_data): Likewise.
1135 * language.c (unknown_language_data): Likewise.
1136 (unknown_language::name_of_this): New member function.
1137 (auto_language_data): Remove la_name_of_this initializer.
1138 (auto_language::name_of_this): New member function.
1139 * language.h (language_data): Delete la_name_of_this member
1141 (language_defn::name_of_this): New member function.
1142 * m2-lang.c (m2_language_data): Remove la_name_of_this
1144 * objc-lang.c (objc_language_data): Likewise.
1145 (objc_language::name_of_this): New member function.
1146 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
1148 * p-lang.c (pascal_language_data): Likewise.
1149 (pascal_language::name_of_this): New member function.
1150 * rust-lang.c (rust_language_data): Remove la_name_of_this
1152 * symtab.c (lookup_language_this): Update call to name_of_this.
1153 (lookup_symbol_aux): Likewise.
1154 * valops.c (value_of_this): Likewise.
1156 2020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
1158 * ada-lang.c (ada_language_data): Remove
1159 la_struct_too_deep_ellipsis initializer.
1160 (ada_language::struct_too_deep_ellipsis): New member function.
1161 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
1163 (cplus_language_data): Likewise.
1164 (asm_language_data): Likewise.
1165 (minimal_language_data): Likewise.
1166 * cp-valprint.c (cp_print_value): Update call to
1167 struct_too_deep_ellipsis.
1168 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
1170 * f-lang.c (f_language_data): Likewise.
1171 (f_language::struct_too_deep_ellipsis): New member function.
1172 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
1174 * language.c (unknown_language_data): Likewise.
1175 (auto_language_data): Likewise.
1176 * language.h (language_data): Delete la_struct_too_deep_ellipsis
1178 (language_defn::struct_too_deep_ellipsis): New member function.
1179 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
1181 * objc-lang.c (objc_language_data): Likewise.
1182 * opencl-lang.c (opencl_language_data): Likewise.
1183 * p-lang.c (pascal_language_data): Likewise.
1184 * rust-lang.c (rust_language_data): Likewise.
1185 * valprint.c (val_print_check_max_depth): Update call to
1186 struct_too_deep_ellipsis.
1188 2020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
1190 * MAINTAINERS (Write After Approval): Add myself.
1192 2020-09-15 Tom Tromey <tom@tromey.com>
1194 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
1197 2020-09-15 Tom Tromey <tom@tromey.com>
1199 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1200 and TYPE_CODE_METHODPTR cases.
1201 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1202 (c_value_print_inner): Update.
1203 * valprint.c (generic_value_print_memberptr): New function, from
1204 c_value_print_memberptr.
1205 (generic_value_print): Use it. Call cplus_print_method_ptr.
1207 2020-09-15 Tom Tromey <tromey@adacore.com>
1209 * python/python-internal.h (PyInt_FromLong): Remove define.
1210 * python/py-value.c (convert_value_from_python): Use
1211 gdb_py_object_from_longest.
1212 * python/py-type.c (typy_get_code): Use
1213 gdb_py_object_from_longest.
1214 * python/py-symtab.c (salpy_get_line): Use
1215 gdb_py_object_from_longest.
1216 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1217 gdb_py_object_from_longest.
1218 * python/py-record.c (recpy_gap_reason_code): Use
1219 gdb_py_object_from_longest.
1220 * python/py-record-btrace.c (recpy_bt_insn_size)
1221 (recpy_bt_func_level, btpy_list_count): Use
1222 gdb_py_object_from_longest.
1223 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1224 gdb_py_object_from_longest. Fix error handling.
1225 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1226 gdb_py_object_from_longest.
1227 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1228 gdb_py_object_from_longest.
1229 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1230 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1231 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1233 2020-09-15 Tom Tromey <tromey@adacore.com>
1235 * python/python.c (gdbpy_parameter_value): Use
1236 gdb_py_object_from_ulongest.
1238 2020-09-15 Tom Tromey <tromey@adacore.com>
1240 * python/py-infevents.c (create_register_changed_event_object):
1241 Use gdb_py_object_from_longest.
1242 * python/py-exitedevent.c (create_exited_event_object): Use
1243 gdb_py_object_from_longest.
1245 2020-09-15 Tom Tromey <tromey@adacore.com>
1247 * python/python.c (gdbpy_parameter_value): Use
1248 gdb_py_object_from_longest.
1249 * python/py-type.c (convert_field, typy_range): Use
1250 gdb_py_object_from_longest.
1251 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1252 gdb_py_object_from_longest.
1253 * python/py-lazy-string.c (stpy_get_length): Use
1254 gdb_py_object_from_longest.
1255 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1256 gdb_py_object_from_longest.
1257 * python/py-infevents.c (create_memory_changed_event_object): Use
1258 gdb_py_object_from_longest.
1259 * python/py-inferior.c (infpy_get_num): Use
1260 gdb_py_object_from_longest.
1261 (infpy_get_pid): Likewise.
1263 2020-09-15 Tom Tromey <tromey@adacore.com>
1265 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1267 * python/py-value.c (valpy_long): Use
1268 gdb_py_object_from_ulongest.
1269 * python/py-symtab.c (salpy_get_pc): Use
1270 gdb_py_object_from_ulongest.
1271 (salpy_get_last): Likewise.
1272 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1273 gdb_py_object_from_ulongest.
1274 * python/py-lazy-string.c (stpy_get_address): Use
1275 gdb_py_object_from_ulongest.
1276 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1277 * python/py-arch.c (archpy_disassemble): Use
1278 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1281 2020-09-15 Tom Tromey <tromey@adacore.com>
1283 * python/python-internal.h (gdb_py_long_from_longest): Remove
1285 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1286 * python/py-type.c (convert_field, typy_get_sizeof): Use
1287 gdb_py_object_from_longest.
1288 * python/py-record-btrace.c (btpy_list_index): Use
1289 gdb_py_object_from_longest.
1291 2020-09-15 Tom Tromey <tromey@adacore.com>
1293 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1294 * python/py-record.c (recpy_element_number): Use
1295 gdb_py_object_from_longest.
1296 (recpy_gap_number): Likewise.
1298 2020-09-15 Tom Tromey <tromey@adacore.com>
1300 * top.c (ui::ui): Update.
1301 (highest_ui_num): Remove.
1302 * top.h (struct ui) <num>: Remove.
1304 2020-09-15 Tom Tromey <tromey@adacore.com>
1306 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1307 * ui-style.c (ansi_regex_text): Now array.
1308 * rust-exp.y (number_regex_text): Now array.
1309 * linespec.c (linespec_quote_characters): Now array.
1310 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1313 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1315 * debuginfod-support.c (debuginfod_client_deleter): New.
1316 (debuginfod_client_up): New.
1317 (debuginfod_init): Return debuginfod_client_up.
1318 (debuginfod_source_query): Adjust.
1319 (debuginfod_debuginfo_query): Adjust.
1321 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1323 * debuginfod-support.c (debuginfod_source_query): Use
1324 make_unique_xstrdup.
1326 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1328 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1329 with `type::instance_flags`.
1331 2020-09-14 Michael Mullin <masmullin@gmail.com>
1333 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1334 Remove baton parameter.
1336 2020-09-14 Pedro Alves <pedro@palves.net>
1338 * Makefile.in (SELFTESTS_SRCS): Add
1339 unittests/enum-flags-selftests.c.
1340 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1341 btrace_function_flags instead of enum btrace_function_flag.
1342 * compile/compile-c-types.c (convert_qualified): Use
1344 * compile/compile-cplus-symbols.c (convert_one_symbol)
1345 (convert_symbol_bmsym):
1346 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1347 (compile_cplus_convert_struct_or_union_methods)
1348 (compile_cplus_instance::convert_qualified_base):
1349 * go-exp.y (parse_string_or_char): Add cast to int.
1350 * unittests/enum-flags-selftests.c: New file.
1351 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1352 type to btrace_thread_flags from btrace_thread_flag.
1353 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1354 local's type to btrace_thread_flags from btrace_thread_flag. Add
1357 2020-09-14 Pedro Alves <pedro@palves.net>
1359 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1360 * gdbtypes.c (address_space_name_to_int): Rename to ...
1361 (address_space_name_to_type_instance_flags): ... this.
1362 (address_space_int_to_name): Rename to ...
1363 (address_space_type_instance_flags_to_name): ... this.
1364 * gdbtypes.h (address_space_name_to_int): Rename to ...
1365 (address_space_name_to_type_instance_flags): ... this.
1366 (address_space_int_to_name): Rename to ...
1367 (address_space_type_instance_flags_to_name): ... this.
1368 * type-stack.c (type_stack::insert): Adjust to rename.
1369 * type-stack.h (type_stack::insert): Likewise.
1371 2020-09-14 Pedro Alves <pedro@palves.net>
1372 Andrew Burgess <andrew.burgess@embecosm.com>
1374 * avr-tdep.c (avr_address_class_type_flags): Return
1375 type_instance_flags.
1376 (avr_address_class_type_flags_to_name): Take a
1377 type_instance_flags.
1378 (avr_address_class_name_to_type_flags): Return bool and take a
1379 type_instance_flags.
1380 * d-lang.c (build_d_types): Use type::set_instance_flags.
1381 * ft32-tdep.c (ft32_address_class_type_flags): Return
1382 type_instance_flags.
1383 (ft32_address_class_type_flags_to_name): Take a
1384 type_instance_flags.
1385 (ft32_address_class_name_to_type_flags): Return bool and take a
1386 type_instance_flags.
1387 (ft32_gdbarch_init): Use type::set_instance_flags.
1388 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1389 * gdbarch.h, gdbarch.c: Regenerate.
1390 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1391 (address_class_name_to_type_flags): Use type_instance_flags and
1393 * gdbtypes.c (address_space_name_to_int)
1394 (address_space_int_to_name, make_qualified_type): Use
1395 type_instance_flags.
1396 (make_qualified_type): Use type_instance_flags and
1397 type::set_instance_flags.
1398 (make_type_with_address_space, make_cv_type, make_vector_type)
1399 (check_typedef): Use type_instance_flags.
1400 (recursive_dump_type): Cast type_instance_flags to unsigned for
1402 (copy_type_recursive): Use type::set_instance_flags.
1403 (gdbtypes_post_init): Use type::set_instance_flags.
1404 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1405 <m_instance_flags>: ... this.
1406 <instance_flags, set_instance_flags>: New methods.
1407 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1408 (SET_TYPE_INSTANCE_FLAGS): New.
1409 (address_space_name_to_int, address_space_int_to_name)
1410 (make_type_with_address_space): Pass flags using
1411 type_instance_flags instead of int.
1412 * stabsread.c (cleanup_undefined_types_noname): Use
1413 type::set_instance_flags.
1414 * s390-tdep.c (s390_address_class_type_flags): Return
1415 type_instance_flags.
1416 (s390_address_class_type_flags_to_name): Take a
1417 type_instance_flags.
1418 (s390_address_class_name_to_type_flags): Return bool and take a
1419 type_instance_flags.
1420 * type-stack.c (type_stack::follow_types): Use
1421 type_instance_flags.
1422 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1424 2020-09-14 Tom Tromey <tromey@adacore.com>
1426 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1427 * x86-tdep.c (x86_is_thunk_register_name)
1428 (x86_in_indirect_branch_thunk): Update.
1429 * sparc64-tdep.c (sparc64_fpu_register_names)
1430 (sparc64_cp0_register_names, sparc64_register_names)
1431 (sparc64_pseudo_register_names): Now const.
1432 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1433 cp0_registers_num>: Now const.
1434 * sparc-tdep.c (sparc_core_register_names)
1435 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1436 (sparc32_pseudo_register_names): Now const.
1437 (validate_tdesc_registers): Update.
1438 * rust-lang.c (rust_extensions): Now const.
1439 * p-lang.c (p_extensions): Now const.
1440 * objc-lang.c (objc_extensions): Now const.
1441 * nto-tdep.c (nto_thread_state_str): Now const.
1442 * moxie-tdep.c (moxie_register_names): Now const.
1443 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1445 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1446 (mips_linux_reg_names): Now const.
1447 (mips_gdbarch_init): Update.
1448 * microblaze-tdep.c (microblaze_register_names): Now const.
1449 * m68k-tdep.c (m68k_register_names): Now const.
1450 * m32r-tdep.c (m32r_register_names): Now const.
1451 * ia64-tdep.c (ia64_register_names): Now const.
1452 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1453 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1454 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1455 ymm_avx512_register_names, pkeys_register_names>: Now const.
1456 * i386-tdep.c (i386_register_names, i386_zmm_names)
1457 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1458 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1459 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1460 * f-lang.c (f_extensions): Now const.
1461 * d-lang.c (d_extensions): Now const.
1462 * csky-tdep.c (csky_register_names): Now const.
1463 * charset.c (default_charset_names, charset_enum): Now const.
1464 (_initialize_charset): Update.
1465 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1467 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1468 (bsd_uthread_solib_loaded): Update.
1469 (bsd_uthread_state): Now const.
1470 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1471 (amd64_ymm_avx512_names, amd64_ymmh_names)
1472 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1473 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1474 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1475 (amd64_dword_names): Now const.
1476 * agent.c (can_use_agent_enum): Now const.
1477 * ada-tasks.c (task_states, long_task_states): Now const.
1478 * ada-lang.c (known_runtime_file_name_patterns)
1479 (known_auxiliary_function_name_patterns, attribute_names)
1480 (standard_exc, ada_extensions): Now const.
1482 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1484 * bcache.h (struct bcache) <bcache>: Remove constructor.
1485 <m_hash_function, m_compare_function>: Remove.
1486 <~bcache>: Make virtual.
1487 <compare>: Remove static method, introduce virtual method.
1488 <default_hash>: Remove.
1489 <hash>: New virtual method.
1490 * bcache.c (bcache::expand_hash_table): Update.
1491 (bcache::insert): Update.
1492 (bcache::hash): New.
1493 (bcache::compare): Update comment and parameter names.
1494 * gdbtypes.c (types_deeply_equal): Update.
1495 * psymtab.h (struct psymbol_bcache): New struct.
1496 (class psymtab_storage) <psymtab_storage>: Make default.
1497 <psymbol_cache>: Change type to psymbol_bcache.
1498 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1499 (psymbol_hash): Change to...
1500 (psymbol_bcache::hash): ... this.
1501 (psymbol_compare): Change to...
1502 (psymbol_bcache::compare): ... this.
1504 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1506 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1507 checking for initial lwp.
1509 2020-09-14 Tom Tromey <tromey@adacore.com>
1511 * m68k-tdep.c (m68k_extract_return_value): Use
1512 pointer_result_regnum.
1513 (m68k_store_return_value): Likewise.
1514 (m68k_reg_struct_return_p): Handle vectors and arrays.
1515 (m68k_return_value): Handle arrays.
1516 (m68k_svr4_return_value): Fix single-element aggregate handling.
1517 Handle long double. Adjust for embedded ABI.
1518 (m68k_svr4_init_abi): Set pointer_result_regnum.
1519 (m68k_embedded_init_abi): New function.
1520 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1521 (m68k_osabi_sniffer): New function.
1522 (_initialize_m68k_tdep): Register osabi sniffer.
1523 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1526 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1528 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1529 with gdb::unique_xmalloc_ptr<char>.
1531 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1533 * xml-support.h (xml_fetch_another): Change type to be a
1535 (xml_process_xincludes): Remove baton parameter.
1536 (xml_fetch_content_from_file): Change baton parameter to
1538 * xml-support.c (struct xinclude_parsing_data)
1539 <xinclude_parsing_data>: Remove baton parameter.
1540 <fetcher_baton>: Remove.
1541 (xinclude_start_include): Adjust.
1542 (xml_process_xincludes): Adjust.
1543 (xml_fetch_content_from_file): Replace baton parameter with
1545 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1546 (xml_init_syscalls_info): Use a lambda.
1547 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1548 (file_read_description_xml): Use a lambda.
1549 (fetch_available_features_from_target): Change baton parameter
1551 (target_read_description_xml): Use a lambda.
1552 (target_fetch_description_xml): Use a lambda.
1553 (string_read_description_xml): Update.
1555 2020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1557 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1558 uses with type::endianity_is_not_default.
1560 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1562 * gdbtypes.h (struct type) <endianity_is_not_default,
1563 set_endianity_is_not_default>: New methods.
1564 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1565 type::endianity_is_not_default, change all write call sites to
1566 use type::set_endianity_is_not_default.
1568 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1570 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1571 uses with type::is_fixed_instance.
1573 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1575 * gdbtypes.h (struct type) <is_fixed_instance,
1576 set_is_fixed_instance>: New methods.
1577 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1578 write call sites to use type::set_is_fixed_instance.
1580 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1582 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1583 uses with type::is_gnu_ifunc.
1585 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1587 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1588 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1589 use type::set_is_gnu_ifunc.
1591 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1593 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1594 uses with type::stub_is_supported.
1596 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1598 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1599 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1600 use type::set_stub_is_supported.
1602 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1604 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1605 uses with type::is_vector.
1607 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1609 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1610 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1611 use type::set_is_vector.
1613 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1615 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1616 uses with type::has_varargs.
1618 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1620 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1621 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1622 use type::set_has_varargs.
1624 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1626 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1627 uses with type::is_prototyped.
1629 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1631 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1633 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1634 call sites to use type::set_is_prototyped.
1636 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1638 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1639 uses with type::target_is_stub.
1641 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1643 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1645 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1646 sites to use type::set_target_is_stub.
1648 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1650 * gdbtypes.h (TYPE_STUB): Remove, replace all
1651 uses with type::is_stub.
1653 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1655 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1656 (TYPE_STUB): Use type::is_stub, change all write call sites to
1657 use type::set_is_stub.
1659 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1661 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1662 type::has_no_signedness.
1664 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1666 * gdbtypes.h (struct type) <has_no_signedness,
1667 set_has_no_signedness>: New methods.
1668 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1669 call sites to use type::set_has_no_signedness.
1671 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1673 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1676 2020-09-14 Simon Marchi <simon.marchi@efficios.com>
1678 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1680 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1681 sites to use type::set_is_unsigned.
1683 2020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1684 Adam Renquinha <arenquinha@cimeq.qc.ca>
1686 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1687 pointer and stack frame offset when unwinding.
1689 2020-09-13 Pedro Alves <pedro@palves.net>
1691 * NEWS: Document "-break-insert --qualified".
1692 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1694 2020-09-13 Pedro Alves <pedro@palves.net>
1696 * linespec.c (classify_mtype, compare_msyms): Delete.
1697 (search_minsyms_for_name): Remove classification logic. Instead
1698 filter out trampoline symbols if we also found an external
1699 function of the same name.
1701 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1703 * NEWS: Create a new section for the next release branch.
1704 Rename the section of the current branch, now that it has
1707 2020-09-13 Joel Brobecker <brobecker@adacore.com>
1709 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1710 * version.in: Bump version to 11.0.50.DATE-git.
1712 2020-09-12 Joel Brobecker <brobecker@adacore.com>
1714 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1716 2020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1717 Felix Willgerodt <Felix.Willgerodt@intel.com>
1719 * gdbarch.sh: Added bfloat16 type.
1720 * gdbarch.c: Regenerated.
1721 * gdbarch.h: Regenerated.
1722 * gdbtypes.c (floatformats_bfloat16): New struct.
1723 (gdbtypes_post_init): Add builtin_bfloat16.
1724 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1725 (floatformats_bfloat16): New struct.
1726 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1727 (i386_ymm_type): Add field "v16_bfloat16"
1728 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1729 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1730 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1731 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1732 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1733 * features/i386/64bit-avx512.c: Regenerated.
1734 * features/i386/64bit-sse.xml: Add bfloat16 type.
1735 * features/i386/64bit-sse.c: Regenerated.
1737 2020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1739 * i386-tdep.c (i386_zmm_type): Fix field names.
1740 (i386_ymm_type): Fix field names.
1742 2020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1744 * breakpoint.c: Fix typo in the help message of the
1745 "set breakpoint condition-evaluation" command.
1747 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1749 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1750 * (nbsd_nat_target::pid_to_exec_file)
1751 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1752 (nbsd_nat_target::post_startup_inferior)
1753 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1754 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1755 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1756 * (nbsd_thread_lister): Remove.
1758 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1760 * fork-inferior.c (startup_inferior): Avoid double free.
1762 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1764 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1765 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1767 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1769 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1770 * netbsd-nat.c: Include <sys/ptrace.h>.
1771 * (netbsd_nat::enable_proc_events): Add.
1773 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1775 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1776 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1777 (netbsd_nat::for_each_thread): Add.
1778 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1779 "gdbsupport/common-debug.h".
1780 * (netbsd_nat::netbsd_thread_lister)
1781 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1782 (netbsd_nat::for_each_thread): Add.
1784 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1786 * netbsd-nat.h: Include <unistd.h>.
1787 * (netbsd_nat::pid_to_exec_file): Add.
1788 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1789 * (netbsd_nat::pid_to_exec_file) Add.
1791 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1793 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1795 2020-09-10 Kamil Rytarowski <n54@gmx.com>
1797 * netbsd-nat.h: New file.
1798 * netbsd-nat.c: Likewise.
1800 2020-09-09 Tom Tromey <tromey@adacore.com>
1802 * ada-lang.c (remove_extra_symbols): Do not increment when
1805 2020-09-08 Tom Tromey <tromey@adacore.com>
1807 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1809 2020-09-08 Tom Tromey <tromey@adacore.com>
1812 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1813 (gdb_bfd_init_data): New function.
1814 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1816 2020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1818 * infrun.c (fetch_inferior_event): Use
1819 `switch_to_target_no_thread` to switch the target.
1821 2020-09-06 Tom Tromey <tom@tromey.com>
1823 * symfile.h (dwarf2_free_objfile): Don't declare.
1825 2020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1827 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1828 to match 16 byte real/complex type generated by Flang compiler.
1830 2020-09-03 Tom de Vries <tdevries@suse.de>
1833 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1834 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1836 2020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1838 * maint.c (index_digits): New function.
1839 (struct maint_print_section_data): Remove.
1840 (print_bfd_section_info): Remove print_data parameter, add arg
1842 (print_objfile_section_info): Likewise.
1843 (print_bfd_section_info_maybe_relocated): Likewise (plus
1845 (maintenance_info_sections): Adjust calls.
1847 2020-09-02 Tom Tromey <tromey@adacore.com>
1849 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1851 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1853 2020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1855 * bcache.h (struct bcache) <insert>: Change type of `added` to
1857 * bcache.c (bcache::insert): Likewise.
1858 * gdbtypes.c (check_types_worklist): Adjust.
1859 * psymtab.c (add_psymbol_to_bcache): Adjust.
1861 2020-08-31 Kevin Buettner <kevinb@redhat.com>
1863 * corelow.c (unordered_set): Include.
1864 (class core_target): Add field 'm_core_unavailable_mappings'.
1865 (core_target::build_file_mappings): Print only one warning
1866 per inaccessible file. Add unavailable/broken mappings
1867 to m_core_unavailable_mappings.
1868 (core_target::xfer_partial): Call...
1869 (core_target::xfer_memory_via_mappings): New method.
1871 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1873 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1876 2020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1878 * dwarf2/read.c (struct field_info): Fix indentation.
1880 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1882 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1883 ordering in comment.
1884 * frame.c (frame_id_eq): Fix indentation.
1886 2020-08-31 Scott Linder <scott@scottlinder.com>
1887 Simon Marchi <simon.marchi@efficios.com>
1889 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1890 inline frame ids in outer frame.
1892 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1894 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1895 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1896 (outer_frame_id): Use FID_STACK_OUTER instead of
1898 (frame_id_p): Don't check for outer_frame_id.
1900 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1902 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1903 regnum/frame in value. Call allocate_value_lazy.
1904 * frame.c (frame_unwind_register_value): Use
1905 val_print_not_saved.
1907 2020-08-31 Simon Marchi <simon.marchi@efficios.com>
1909 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1911 2020-08-29 Pedro Alves <pedro@palves.net>
1913 * progspace.c (print_program_space): Use all_inferiors. Switch to
1914 the inferior before calling target_pid_to_str.
1916 2020-08-28 Tom Tromey <tom@tromey.com>
1918 * xcoffread.c (xcoff_end_psymtab): Update comment.
1919 * dbxread.c (dbx_end_psymtab): Update comment.
1921 2020-08-28 Tom de Vries <tdevries@suse.de>
1924 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1926 (create_breakpoint): Same.
1927 (base_breakpoint_decode_location): Same.
1928 (bkpt_create_sals_from_location): Same.
1929 (bkpt_decode_location): Same.
1930 (bkpt_probe_create_sals_from_location): Same.
1931 (bkpt_probe_decode_location): Same.
1932 (tracepoint_create_sals_from_location): Same.
1933 (tracepoint_decode_location): Same.
1934 (tracepoint_probe_decode_location): Same.
1935 (strace_marker_create_sals_from_location): Same.
1936 (strace_marker_decode_location): Same.
1937 (create_sals_from_location_default): Same.
1938 (decode_location_default): Same.
1939 * breakpoint.h (struct breakpoint_ops): Same.
1940 (create_breakpoint): Same.
1941 * linespec.h (decode_line_full): Same.
1942 * linespec.c (decode_line_full): Same. Throw error if
1943 result.size () == 0.
1945 2020-08-27 Pedro Alves <pedro@palves.net>
1948 * breakpoint.c (until_break_fsm) <location_breakpoint,
1949 caller_breakpoint>: Delete fields.
1950 <breakpoints>: New field.
1951 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1952 two individual breakpoints.
1953 (until_break_fsm::should_stop): Loop over breakpoints in the
1955 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1957 (until_break_command): Handle location expanding into multiple
1960 2020-08-27 Pedro Alves <pedro@palves.net>
1963 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1964 bp_until breakpoints user-specified locations. Update intro
1967 2020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1969 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1970 gdb_bfd_sections): New.
1971 * maint.c (print_bfd_section_info): Change param type to
1972 maint_print_section_data.
1973 (print_objfile_section_info): Likewise.
1974 (print_bfd_section_info_maybe_relocated): Likewise.
1975 (maintenance_info_sections): Use gdb_bfd_sections.
1977 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1979 * MAINTAINERS: Add ARC target and maintainer.
1981 2020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1983 * configure.tgt: ARC support for GNU/Linux.
1984 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1985 * arc-linux-tdep.c: New file.
1986 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1987 * arc-tdep.c (arc_write_pc): Use it.
1989 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1991 * arc-tdep.c (arc_check_for_hardware_loop): New.
1992 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1994 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
1996 * arc-tdep.h: Include "gdbarch.h".
1998 2020-08-25 Shahab Vahedi <shahab@synopsys.com>
2001 (arc_gdbarch_features): New class to stir the selection of target XML.
2002 (arc_create_target_description): Use FEATURES to choose XML target.
2003 (arc_lookup_target_description): Use arc_create_target_description
2004 to create _new_ target descriptions or return the already created
2005 ones if the FEATURES is the same.
2006 * arch/arc.c: Implementation of prototypes described above.
2007 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
2008 (arc_gdbarch_features_init): Initialize the FEATURES struct.
2009 * arc-tdep.c (*_feature_name): Make feature names consistent.
2010 (arc_register_feature): A new struct to hold information about
2011 registers of a particular target/feature.
2012 (arc_check_tdesc_feature): Check if XML provides registers in
2013 compliance with ARC_REGISTER_FEATURE structs.
2014 (arc_update_acc_reg_names): Add aliases for r58 and r59.
2015 (determine_*_reg_feature_set): Which feature name to look for.
2016 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
2017 (mach_type_to_arc_isa): Convert from a set of binutils machine types
2018 to expected ISA enums to be used in arc_gdbarch_features structs.
2019 * features/Makefile (FEATURE_XMLFILES): Add new files.
2020 * gdb/features/arc/v1-aux.c: New file.
2021 * gdb/features/arc/v1-aux.xml: Likewise.
2022 * gdb/features/arc/v1-core.c: Likewise.
2023 * gdb/features/arc/v1-core.xml: Likewise.
2024 * gdb/features/arc/v2-aux.c: Likewise.
2025 * gdb/features/arc/v2-aux.xml: Likewise.
2026 * gdb/features/arc/v2-core.c: Likewise.
2027 * gdb/features/arc/v2-core.xml: Likewise.
2028 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
2030 2020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
2031 Andrew Burgess <andrew.burgess@embecosm.com>
2034 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
2035 an assert. Remove single element array indexing pattern as the
2036 MULTI_SUBSCRIPT support will handle this case too.
2038 2020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
2040 * value.h (valprint_check_validity): Move declaration from
2042 * valprint.h (valprint_check_validity): ... to here.
2044 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2046 * debug.h: New file.
2047 * debug.c (debug_prefixed_vprintf): New function.
2048 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
2049 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
2051 2020-08-24 Simon Marchi <simon.marchi@efficios.com>
2053 * infrun.h (infrun_debug_printf_1): New function declaration.
2054 (infrun_debug_printf): New macro.
2055 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
2057 (infrun_debug_printf): New function.
2058 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
2059 (handle_jit_event): Likewise.
2061 2020-08-21 Mark Wielaard <mark@klomp.org>
2063 * ada-lex.l: Extend register warnings diagnostics comment for g++.
2065 2020-08-22 Simon Marchi <simon.marchi@efficios.com>
2067 * frame.c (enum class frame_id_status): New.
2068 (struct frame_info) <this_id::p>: Change type to frame_id_status.
2069 (fprintf_frame): Update.
2070 (compute_frame_id): Set frame id status to "computing" on entry.
2071 Set it back to "not_computed" on failure and to "computed" on
2073 (get_frame_id): Assert the frame id is not being computed.
2074 (create_sentinel_frame): Use frame_id_status::COMPUTED.
2075 (create_new_frame): Likewise.
2076 (frame_cleanup_after_sniffer): Update assert.
2078 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2080 * regcache.c (pid_ptid_regcache_map): New type.
2081 (target_ptid_regcache_map): Remove.
2082 (target_pid_ptid_regcache_map): New type.
2083 (regcaches): Change type to target_pid_ptid_regcache_map.
2084 (get_thread_arch_aspace_regcache): Update.
2085 (regcache_thread_ptid_changed): Update, handle pid-like ptid
2087 (regcaches_size): Update.
2088 (regcache_count): Update.
2089 (registers_changed_ptid_target_pid_test): New.
2090 (_initialize_regcache): Register new test.
2092 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2094 * regcache.c (regcache_count): New.
2095 (struct regcache_test_data): New.
2096 (regcache_test_data_up): New.
2097 (populate_regcaches_for_test): New.
2098 (regcaches_test): Remove.
2099 (get_thread_arch_aspace_regcache_test): New.
2100 (registers_changed_ptid_all_test): New.
2101 (registers_changed_ptid_target_test): New.
2102 (registers_changed_ptid_target_ptid_test): New.
2103 (regcache_thread_ptid_changed): Remove regcache_count lambda.
2104 (_initialize_regcache): Register new tests.
2106 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2108 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
2109 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
2110 gdbarch and aspace parameter. Use current inferior's aspace.
2111 Validate regcache's arch value.
2112 (regcaches_test): Update.
2114 2020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
2116 * regcache.c (regcaches_test): Call registers_changed.
2118 2020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2120 * infrun.c (process_event_stop_test): Fix typo "breapoint".
2122 2020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2124 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
2125 to find the end of prologue for flang compiled binaries.
2126 * arm-tdep.c (arm_skip_prologue): Likewise.
2127 * i386-tdep.c (i386_skip_prologue): Likewise.
2128 * producer.c (producer_is_llvm): New function.
2129 (producer_parsing_tests): Added new tests for clang/flang.
2130 * producer.h (producer_is_llvm): New declaration.
2132 2020-08-18 Simon Marchi <simon.marchi@efficios.com>
2134 * linux-nat.c (linux_nat_debug_printf): New function.
2135 (linux_nat_debug_printf_1): New macro. Use throughout the file.
2137 2020-08-18 Aaron Merey <amerey@redhat.com>
2139 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
2140 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
2141 (CLIBS): Add DEBUGINFOD_LIBS.
2143 2020-08-17 Sergei Trofimovich <siarheit@google.com>
2145 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
2148 2020-08-17 Tom Tromey <tromey@adacore.com>
2150 * ada-varobj.c (ada_varobj_decode_var): Handle case where
2151 ada_get_decoded_value returns NULL.
2153 2020-08-17 Tom Tromey <tromey@adacore.com>
2155 * python/py-inferior.c (infpy_search_memory): Use
2156 gdb_py_object_from_ulongest.
2157 * python/py-infevents.c (create_inferior_call_event_object)
2158 (create_memory_changed_event_object): Use
2159 gdb_py_object_from_ulongest.
2160 * python/py-linetable.c (ltpy_entry_get_pc): Use
2161 gdb_py_object_from_ulongest.
2163 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2165 * loc.c (class symbol_needs_eval_context): Fix indentation.
2167 2020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
2169 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
2172 2020-08-17 Tom de Vries <tdevries@suse.de>
2175 * gdbtypes.c (dump_dynamic_prop): New function.
2176 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
2178 2020-08-15 Tom de Vries <tdevries@suse.de>
2181 * stack.c (print_frame_args): Temporarily set the selected
2182 frame to FRAME while printing the frame's arguments.
2184 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2186 PR breakpoints/26385
2187 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
2188 Always clear watchpoint with PTRACE_SET_DEBUGREG.
2190 2020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2192 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
2193 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
2194 and >= to check return value instead of == -1 and != -1.
2196 2020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2198 * utils.h (class gdb_argv) <as_array_view>: New method.
2199 * utils.c (gdb_argv_as_array_view_test): New.
2200 (_initialize_utils): Register selftest.
2201 * maint.c (maintenance_selftest): Use the new method.
2203 2020-08-13 Kamil Rytarowski <n54@gmx.com>
2205 * target.h (supports_dumpcore, dumpcore): New
2206 function declarations.
2207 * target.c (supports_dumpcore, dumpcore): New
2209 * target-delegates.c: Rebuild.
2210 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2211 and target_dumpcore ().
2213 2020-08-13 Aaron Merey <amerey@redhat.com>
2215 * debuginfod-support.c: Replace global variables with user_data.
2217 2020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2219 * maint.c (maintenance_selftest): Split args and pass array_view
2222 2020-08-12 Luis Machado <luis.machado@linaro.org>
2224 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2226 Use %s and pulongest to print the length.
2228 2020-08-12 Pedro Alves <palves@redhat.com>
2230 * NEWS: Move "Multi-target debugging support" item to the
2231 "Changes since GDB 9" section.
2233 2020-08-12 Pedro Alves <palves@redhat.com>
2236 * progspace.c (program_space::remove_objfile): Invalidate the
2239 2020-08-11 Tom de Vries <tdevries@suse.de>
2241 * MAINTAINERS: Mark ms1 as deleted.
2243 2020-08-10 Luis Machado <luis.machado@linaro.org>
2247 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2249 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2250 movz/str/stur/stp skipping behavior.
2252 2020-08-10 Luis Machado <luis.machado@linaro.org>
2254 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2255 struct user_sve_header instead of struct sve_context.
2257 2020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2259 * read.h (dwarf2_fetch_die_loc_sect_off,
2260 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2261 `void *` parameter with function_view.
2262 * read.c (dwarf2_fetch_die_loc_sect_off,
2263 dwarf2_fetch_die_loc_cu_off): Likewise.
2264 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2265 (per_cu_dwarf_call): Adjust.
2266 (get_frame_address_in_block_wrapper): Remove.
2267 (indirect_synthetic_pointer): Adjust.
2268 (get_ax_pc): Remove.
2269 (dwarf2_compile_expr_to_ax): Adjust.
2271 2020-08-08 Tom de Vries <tdevries@suse.de>
2274 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2276 * regcache.c (get_thread_arch_aspace_regcache): Same.
2278 2020-08-07 Tom Tromey <tromey@adacore.com>
2280 * ravenscar-thread.c
2281 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2283 (ravenscar_thread_target::wait): Check
2284 runtime_initialized.
2285 (ravenscar_thread_target::prepare_to_store)
2286 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2287 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2288 (ravenscar_thread_target::stopped_by_watchpoint)
2289 (ravenscar_thread_target::stopped_data_address)
2290 (ravenscar_thread_target::core_of_thread): Use
2291 scoped_restore_current_thread and
2292 set_base_thread_from_ravenscar_task.
2294 2020-08-07 Tom Tromey <tromey@adacore.com>
2296 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2298 2020-08-07 Tom Tromey <tromey@adacore.com>
2300 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2301 update_inferior_ptid before update_thread_list.
2302 (temporarily_change_regcache_ptid): New class.
2303 (ravenscar_thread_target::fetch_registers)
2304 (ravenscar_thread_target::store_registers)
2305 (ravenscar_thread_target::prepare_to_store): Use base thread when
2306 forwarding operation.
2308 2020-08-07 Tom Tromey <tromey@adacore.com>
2310 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2313 2020-08-07 Tom Tromey <tromey@adacore.com>
2315 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2317 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2319 (ravenscar_thread_target::add_thread): Rename from
2320 ravenscar_add_thread.
2321 (ravenscar_thread_target::update_thread_list): Use a lambda.
2322 (ravenscar_thread_target::xfer_partial): New method.
2324 2020-08-07 Tom Tromey <tromey@adacore.com>
2326 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2328 (iterate_over_live_ada_tasks): Change type of argument.
2329 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2332 2020-08-07 Tom Tromey <tromey@adacore.com>
2334 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2336 (ravenscar_thread_target::extra_thread_info): Remove.
2337 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2338 defer to target beneath for non-Ravenscar threads.
2340 2020-08-07 Tom Tromey <tromey@adacore.com>
2342 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2343 get_base_thread_from_ravenscar_task>: Now methods.
2344 <m_cpu_map>: New member.
2345 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2346 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2347 (ravenscar_thread_target::task_is_currently_active): Update.
2348 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2350 (ravenscar_thread_target::add_active_thread): Put initial thread
2353 2020-08-07 Tom Tromey <tromey@adacore.com>
2355 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2358 2020-08-07 Tom Tromey <tromey@adacore.com>
2360 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2361 runtime_initialized.
2363 2020-08-07 Tom Tromey <tromey@adacore.com>
2365 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2367 (ravenscar_thread_target::add_active_thread): Now public.
2368 (ravenscar_inferior_created): Call add_active_thread after pushing
2371 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2373 * regcache.c (ptid_regcache_map): New type.
2374 (target_ptid_regcache_map): New type.
2375 (regcaches): Change type to target_ptid_regcache_map.
2376 (get_thread_arch_aspace_regcache): Update to regcaches' new
2378 (regcache_thread_ptid_changed): Likewise.
2379 (registers_changed_ptid): Likewise.
2380 (regcaches_size): Likewise.
2381 (regcaches_test): Update.
2382 (regcache_thread_ptid_changed): Update.
2383 * regcache.h (regcache_up): New type.
2384 * gdbsupport/ptid.h (hash_ptid): New struct.
2386 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
2388 * observable.h (thread_ptid_changed): Add parameter
2389 `process_stratum_target *`.
2390 * infrun.c (infrun_thread_ptid_changed): Add parameter
2391 `process_stratum_target *` and use it.
2392 (selftests): New namespace.
2393 (infrun_thread_ptid_changed): New function.
2394 (_initialize_infrun): Register selftest.
2395 * regcache.c (regcache_thread_ptid_changed): Add parameter
2396 `process_stratum_target *` and use it.
2397 (regcache_thread_ptid_changed): New function.
2398 (_initialize_regcache): Register selftest.
2399 * thread.c (thread_change_ptid): Pass target to
2400 thread_ptid_changed observable.
2402 2020-08-06 Caroline Tice <cmtice@google.com>
2404 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2405 (struct dwp_sections): Update field comments. Add loclists and
2407 (struct virtual_v2_dwo_sections): Rename struct to
2408 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2409 size & offset fields for loclists and rnglists.
2410 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2411 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2412 skipping dummy type units.
2413 (create_dwp_hash_table): Update the large comment above the function to
2414 discuss Version 5 DWP files as well, with references. Update all the
2415 version checks in the function to check for version 5 as well. Add new
2416 section at the end to create dwp hash table for version 5.
2417 (create_dwp_v2_section): Rename function to
2418 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2419 Add V5 to error message text.
2420 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2421 into calls to create_dwp_v2_or_v5_section.
2422 (create_dwo_unit_in_dwp_v5): New function.
2423 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2424 check for version2; add else clause to handle version 5.
2425 (open_and_init_dwo_file): Add code to check dwarf version & only call
2426 create_debug_types_hash_table (with sections.types) if version is not 5;
2427 else call create_debug_type_hash_table, with sections.info.
2428 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2430 (dwarf2_locate_v5_dwp_sections): New function.
2431 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2432 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
2434 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2436 * regcache.h (class regcache): Remove friend
2437 registers_changed_ptid.
2438 <regcache_thread_ptid_changed>: Remove.
2439 <regcaches>: Remove.
2440 * regcache.c (regcache::regcaches): Rename to...
2441 (regcaches): ... this. Make static.
2442 (get_thread_arch_aspace_regcache): Update.
2443 (regcache::regcache_thread_ptid_changed): Rename to...
2444 (regcache_thread_ptid_changed): ... this. Update.
2445 (class regcache_access): Remove.
2446 (regcaches_test): Update.
2447 (_initialize_regcache): Update.
2448 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2451 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
2453 * regcache.h (class regcache) <current_regcache>: Rename to...
2454 <regcaches>: ... this. Move doc here.
2455 * regcache.c (regcache::current_regcache) Rename to...
2456 (regcache::regcaches): ... this. Move doc to header.
2457 (get_thread_arch_aspace_regcache): Update.
2458 (regcache::regcache_thread_ptid_changed): Update.
2459 (registers_changed_ptid): Update.
2460 (class regcache_access) <current_regcache_size>: Rename to...
2461 <regcaches_size>: ... this.
2462 (current_regcache_test): Rename to...
2463 (regcaches_test): ... this.
2464 (_initialize_regcache): Update.
2466 2020-08-06 Victor Collod <vcollod@nvidia.com>
2468 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2470 2020-08-05 Kevin Buettner <kevinb@redhat.com>
2472 * corelow.c (core_target::build_file_mappings): Don't output
2473 null pathname in warning.
2475 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2477 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2478 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2479 gdb.dwarf2/dw2-single-line-discriminators.exp,
2480 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2482 2020-08-05 Tom Tromey <tromey@adacore.com>
2485 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2486 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2487 Fix off-by-one and type size errors in ordinary case.
2489 2020-08-05 Tom de Vries <tdevries@suse.de>
2491 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2492 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2494 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2496 * frame.h (frame_id_p): Return bool.
2497 (frame_id_artificial_p): Return bool.
2498 (frame_id_eq): Return bool.
2499 (has_stack_frames): Return bool.
2500 (get_selected_frame): Fix typo in comment.
2501 (get_frame_pc_if_available): Return bool.
2502 (get_frame_address_in_block_if_available): Return bool.
2503 (get_frame_func_if_available): Return bool.
2504 (read_frame_register_unsigned): Return bool.
2505 (get_frame_register_bytes): Return bool.
2506 (safe_frame_unwind_memory): Return bool.
2507 (deprecated_frame_register_read): Return bool.
2508 (frame_unwinder_is): Return bool.
2509 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2511 <this_id::p>: Likewise.
2513 (frame_stash_add): Return bool.
2514 (get_frame_id): Use bool.
2515 (frame_id_build_special) Use bool.
2516 (frame_id_build_unavailable_stack): Use bool.
2517 (frame_id_build): Use bool.
2518 (frame_id_p): Return bool, use true/false instead of 1/0.
2519 (frame_id_artificial_p): Likewise.
2520 (frame_id_eq): Likewise.
2521 (frame_id_inner): Likewise.
2522 (get_frame_func_if_available): Likewise.
2523 (read_frame_register_unsigned): Likewise.
2524 (deprecated_frame_register_read): Likewise.
2525 (get_frame_register_bytes): Likewise.
2526 (has_stack_frames): Likewise.
2527 (inside_main_func): Likewise.
2528 (inside_entry_func): Likewise.
2529 (get_frame_pc_if_available): Likewise.
2530 (get_frame_address_in_block_if_available): Likewise.
2531 (frame_unwinder_is): Likewise.
2532 (safe_frame_unwind_memory): Likewise.
2533 (frame_unwind_arch): Likewise.
2535 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
2537 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2538 type to cached_copy_status.
2539 (fprintf_frame): Adjust.
2540 (get_frame_func_if_available): Adjust.
2541 (frame_cleanup_after_sniffer): Adjust.
2543 2020-08-04 Mark Wielaard <mark@klomp.org>
2545 * MAINTAINERS (Write After Approval): Update email address.
2547 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2549 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2550 dynamic_prop::const_val.
2552 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2554 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2557 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2559 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2561 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2563 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2565 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
2566 Jose E. Marchesi <jose.marchesi@oracle.com>
2568 * configure.tgt: Add entry for bpf-*-*.
2569 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2570 (ALLDEPFILES): Add bpf-tdep.c.
2571 * bpf-tdep.c: New file.
2572 * MAINTAINERS: Add bpf target and maintainer.
2573 * NEWS: Mention the support for the new target.
2575 2020-08-04 Tom de Vries <tdevries@suse.de>
2578 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2581 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2583 * syscalls/freebsd.xml: Regenerate.
2585 2020-08-03 John Baldwin <jhb@FreeBSD.org>
2587 * syscalls/update-freebsd.sh: Fix usage and year range.
2589 2020-08-03 Tom de Vries <tdevries@suse.de>
2592 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2593 DW_LNE_lo_user/DW_LNE_hi_user range.
2595 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2598 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2601 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2603 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2605 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2607 * breakpoint.c (set_breakpoint_condition): Update the condition
2608 expressions after checking that the input condition string parses
2609 successfully and does not contain junk at the end.
2611 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2613 * breakpoint.c (set_breakpoint_condition): Update the
2614 condition string after parsing the new condition successfully.
2616 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2618 * proc-api.c (_STRUCTURED_PROC): Don't define.
2619 * proc-events.c: Likewise.
2620 * proc-flags.c: Likewise.
2621 * proc-why.c: Likewise.
2622 * procfs.c: Likewise.
2624 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2625 * configure, config.in: Regenerate.
2627 2020-07-30 Tom de Vries <tdevries@suse.de>
2630 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2631 m_red/m_green/m_blue in a union.
2633 2020-07-29 Tom de Vries <tdevries@suse.de>
2636 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2638 2020-07-28 Tom Tromey <tromey@adacore.com>
2641 * symtab.h (find_pc_partial_function_sym): Declare.
2642 * cli/cli-cmds.c (disassemble_command): Use
2643 find_pc_partial_function_sym. Check asm_demangle.
2644 * blockframe.c (cache_pc_function_sym): New global.
2645 (cache_pc_function_name): Remove.
2646 (clear_pc_function_cache): Update.
2647 (find_pc_partial_function_sym): New function, from
2648 find_pc_partial_function.
2649 (find_pc_partial_function): Rewrite using
2650 find_pc_partial_function_sym.
2652 2020-07-28 Tom Tromey <tromey@adacore.com>
2654 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2657 2020-07-28 Tom Tromey <tromey@adacore.com>
2659 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2660 <DW_OP_GNU_variable_value>: Cast to address type.
2662 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2664 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2665 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2666 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2667 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2668 (nbsd_get_siginfo_type): New.
2669 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2670 (_initialize_nbsd_tdep): New.
2672 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2675 * configure: Regenerated.
2677 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2680 * configure: Regenerated.
2682 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2684 * python/py-frame.c: Remove 'user-regs.h' include.
2685 (frapy_read_register): Rewrite to make use of
2686 gdbpy_parse_register_id.
2687 * python/py-registers.c (gdbpy_parse_register_id): New function,
2688 moved here from python/py-unwind.c. Updated the return type, and
2689 also accepts register descriptor objects.
2690 * python/py-unwind.c: Remove 'user-regs.h' include.
2691 (pyuw_parse_register_id): Moved to python/py-registers.c.
2692 (unwind_infopy_add_saved_register): Update to use
2693 gdbpy_parse_register_id.
2694 (pending_framepy_read_register): Likewise.
2695 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2697 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2699 * python/py-registers.c: Add 'user-regs.h' include.
2700 (register_descriptor_iter_find): New function.
2701 (register_descriptor_iterator_object_methods): New static global
2703 (register_descriptor_iterator_object_type): Add pointer to methods
2706 2020-07-27 John Baldwin <jhb@FreeBSD.org>
2708 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2709 for all architectures on FreeBSD 11.3 and later.
2711 2020-07-27 Tom Tromey <tromey@adacore.com>
2713 * gcore.h (load_corefile): Don't declare.
2715 2020-07-27 Tom de Vries <tdevries@suse.de>
2717 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2718 * config.in: Regenerate.
2719 * configure: Regenerate.
2721 2020-07-26 Eli Zaretskii <eliz@gnu.org>
2723 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2724 ws2tcpip.h. When checking whether socklen_t type is defined, use
2725 ws2tcpip.h if it is available and sys/socket.h isn't.
2726 * configure: Regenerate.
2727 * config.in: Regenerate.
2729 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2733 * valops.c (value_ind): Pass address to
2734 readjust_indirect_value_type.
2735 * value.c (readjust_indirect_value_type): Make parameter
2736 non-const, and add extra address parameter. Resolve original type
2738 * value.h (readjust_indirect_value_type): Update function
2739 signature and comment.
2741 2020-07-25 Tom de Vries <tdevries@suse.de>
2744 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2747 2020-07-24 Aaron Merey <amerey@redhat.com>
2749 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2750 * configure: Rebuild.
2752 2020-07-23 Kevin Buettner <kevinb@redhat.com>
2755 * corelow.c (_initialize_corelow): Add period to help text
2756 for "maintenance print core-file-backed-mappings".
2758 2020-07-23 Pedro Alves <pedro@palves.net>
2760 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2761 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2763 * frame.c (frame_cache_generation, get_frame_cache_generation):
2765 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2766 (get_prev_frame_if_no_cycle): On exception, don't touch
2767 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2768 * frame.h (get_frame_cache_generation): Declare.
2770 2020-07-23 Tom de Vries <tdevries@suse.de>
2773 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2774 New default constructor.
2776 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2778 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2779 exclude non-statement entries.
2781 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2783 * NEWS (New commands): Mention new command
2784 "maintenance print core-file-backed-mappings".
2786 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2788 * corelow.c (gdbcmd.h): Include.
2789 (core_target::info_proc_mappings): New method.
2790 (get_current_core_target): New function.
2791 (maintenance_print_core_file_backed_mappings): New function.
2792 (_initialize_corelow): Add core-file-backed-mappings to
2793 "maint print" commands.
2795 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2797 * linux-tdep.c (dump_note_entry_p): New function.
2798 (linux_dump_mapping_p_ftype): New typedef.
2799 (linux_find_memory_regions_full): Add new parameter,
2800 should_dump_mapping_p.
2801 (linux_find_memory_regions): Adjust call to
2802 linux_find_memory_regions_full.
2803 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2804 call to linux_find_memory_regions_full.
2806 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2808 * corelow.c (solist.h, unordered_map): Include.
2809 (class core_target): Add field m_core_file_mappings and
2810 method build_file_mappings.
2811 (core_target::core_target): Call build_file_mappings.
2812 (core_target::~core_target): Free memory associated with
2813 m_core_file_mappings.
2814 (core_target::build_file_mappings): New method.
2815 (core_target::xfer_partial): Use m_core_file_mappings
2816 for memory transfers.
2817 * linux-tdep.c (linux_read_core_file_mappings): New
2819 (linux_core_info_proc_mappings): Rewrite to use
2820 linux_read_core_file_mappings.
2821 (linux_init_abi): Register linux_read_core_file_mappings.
2823 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2825 * arch-utils.c (default_read_core_file_mappings): New function.
2826 * arch-utils.c (default_read_core_file_mappings): Declare.
2827 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2828 * gdbarch.h, gdbarch.c: Regenerate.
2830 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2833 * corelow.c (core_target:xfer_partial): Revise
2834 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2835 case after first checking the stratum beneath the core
2837 (has_all_memory): Return true.
2838 * target.c (raw_memory_xfer_partial): Revise comment
2839 regarding use of has_all_memory.
2841 2020-07-22 Kevin Buettner <kevinb@redhat.com>
2843 * exec.h (section_table_xfer_memory): Revise declaration,
2844 replacing section name parameter with an optional callback
2846 * exec.c (section_table_xfer_memory): Likewise.
2847 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2848 of section_table_xfer_memory.
2850 2020-07-22 Tom Tromey <tromey@adacore.com>
2852 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2853 lookup_symbol_search_name.
2855 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2857 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2858 redundant local variable.
2859 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2860 reference, not pointer, update code accordingly.
2862 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2863 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2865 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2866 * jit.c (jit_breakpoint_re_set_internal): Use the
2867 `skip_jit_symbol_lookup` field.
2869 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2870 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2872 * jit.c (jit_read_descriptor): Define the descriptor address once,
2874 (jit_breakpoint_deleted): Move the declaration of the loop variable
2875 `iter` into the loop header.
2876 (jit_breakpoint_re_set_internal): Move the declaration of the local
2877 variable `objf_data` to the first point of definition.
2878 (jit_event_handler): Move the declaration of local variables
2879 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2880 Rename `objf` to `jited`.
2882 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2884 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2886 * jit.c (get_jiter_objfile_data): Update.
2888 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2889 Simon Marchi <simon.marchi@polymtl.ca>
2891 * jit.c (struct jit_program_space_data): Remove.
2892 (jit_program_space_key): Remove.
2893 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2895 (get_jit_program_space_data): Remove.
2896 (jit_breakpoint_deleted): Iterate on all of the program space's
2898 (jit_inferior_init): Likewise.
2899 (jit_breakpoint_re_set_internal): Likewise. Also change return
2901 (jit_breakpoint_re_set): Pass current_program_space to
2902 jit_breakpoint_re_set_internal.
2904 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2906 * jit.h (struct jiter_objfile_data) <cached_code_address,
2907 jit_breakpoint>: Move to here from ...
2908 * jit.c (jit_program_space_data): ... here.
2909 (jiter_objfile_data::~jiter_objfile_data): Update.
2910 (jit_breakpoint_deleted): Update.
2911 (jit_breakpoint_re_set_internal): Update.
2913 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2915 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2917 (jit_read_descriptor): Remove NULL check.
2918 (jit_event_handler): Add an assertion.
2920 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2922 * jit.h (struct jit_objfile_data): Split into...
2923 (struct jiter_objfile_data): ... this ...
2924 (struct jited_objfile_data): ... and this.
2925 * objfiles.h (struct objfile) <jit_data>: Remove.
2926 <jiter_data, jited_data>: New fields.
2927 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2928 (jiter_objfile_data::~jiter_objfile_data): ... this.
2929 (get_jit_objfile_data): Rename to ...
2930 (get_jiter_objfile_data): ... this.
2931 (add_objfile_entry): Update.
2932 (jit_read_descriptor): Use get_jiter_objfile_data.
2933 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2934 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2935 (jit_inferior_exit_hook): Use objfile's jited_data field.
2937 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2939 * jit.h: Forward-declare `struct minimal_symbol`.
2940 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2941 constructor, destructor, and an objfile* field.
2942 * jit.c (jit_objfile_data): Remove.
2943 (struct jit_objfile_data): Migrate from here to jit.h.
2944 (jit_objfile_data::~jit_objfile_data): New destructor
2945 implementation with code moved from free_objfile_data.
2946 (free_objfile_data): Delete.
2947 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2948 (jit_find_objf_with_entry_addr): Ditto.
2949 (jit_inferior_exit_hook): Ditto.
2950 (_initialize_jit): Remove the call to
2951 register_objfile_data_with_cleanup.
2952 * objfiles.h (struct objfile) <jit_data>: New field.
2954 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2956 * jit.h: Forward-declare `struct objfile`.
2957 (jit_event_handler): Add a second parameter, the JITer objfile.
2958 * jit.c (jit_read_descriptor): Change the signature to take the
2959 JITer objfile as an argument instead of the jit_program_space_data.
2960 (jit_inferior_init): Update the call to jit_read_descriptor.
2961 (jit_event_handler): Use the new JITer objfile argument when calling
2962 jit_read_descriptor.
2963 * breakpoint.c (handle_jit_event): Update the call to
2964 jit_event_handler to pass the JITer objfile.
2966 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2968 * gdbarch.c: Regenerate.
2969 * gdbarch.h: Regenerate.
2970 * gdbarch.sh (handle_segmentation_fault): Remove method.
2971 * infrun.c (handle_segmentation_fault): Remove.
2972 (print_signal_received_reason): Remove call to
2973 handle_segmentation_fault.
2975 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2977 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2978 Rename to sparc64_linux_report_signal_info and add siggnal
2980 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2981 instead of sparc64_linux_handle_segmentation_fault.
2983 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2985 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2986 i386_linux_report_signal_info instead of
2987 i386_linux_handle_segmentation_fault.
2988 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2989 to i386_linux_report_signal_info and add siggnal argument.
2990 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2991 of i386_linux_handle_segmentation_fault.
2992 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2993 to i386_linux_report_signal_info and add siggnal argument.
2995 2020-07-21 John Baldwin <jhb@FreeBSD.org>
2997 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
3000 2020-07-21 John Baldwin <jhb@FreeBSD.org>
3002 * gdbarch.c: Regenerate.
3003 * gdbarch.h: Regenerate.
3004 * gdbarch.sh (report_signal_info): New method.
3005 * infrun.c (print_signal_received_reason): Invoke gdbarch
3006 report_signal_info hook if present.
3008 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3010 * python/py-registers.c : Add 'unordered_map' include.
3011 (gdbpy_new_reggroup): Renamed to...
3012 (gdbpy_get_reggroup): ...this. Update to only create register
3013 group descriptors when needed.
3014 (gdbpy_reggroup_iter_next): Update.
3016 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
3018 * python/py-registers.c (gdbpy_register_object_data): New static
3020 (gdbpy_register_object_data_init): New function.
3021 (gdbpy_new_register_descriptor): Renamed to...
3022 (gdbpy_get_register_descriptor): ...this, and update to reuse
3023 existing register descriptors where possible.
3024 (gdbpy_register_descriptor_iter_next): Update.
3025 (gdbpy_initialize_registers): Register new gdbarch data.
3027 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
3029 * linux-nat.c (stopped_pids): Make static.
3031 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
3034 * gdbtypes.c (ada_discrete_type_low_bound,
3035 ada_discrete_type_high_bound): Handle undefined bounds.
3037 2020-07-21 Kamil Rytarowski <n54@gmx.com>
3039 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
3041 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
3044 2020-07-20 John Baldwin <jhb@FreeBSD.org>
3046 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
3047 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
3048 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
3049 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
3050 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
3053 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3055 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
3056 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
3057 which are deprecated in Guile 3.0.
3058 * configure.ac (try_guile_versions): Add "guile-3.0".
3059 * configure (try_guile_versions): Regenerate.
3060 * NEWS: Update entry.
3062 2020-07-20 Ludovic Courtès <ludo@gnu.org>
3063 Doug Evans <dje@google.com>
3066 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
3067 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
3068 USING_GUILE_BEFORE_2_2.
3069 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
3070 Change type to 'scm_t_port_type *'.
3071 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
3072 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
3073 parameter and honor it. Update callers.
3074 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
3075 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
3077 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
3078 USING_GUILE_BEFORE_2_2.
3079 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
3080 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
3081 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
3082 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
3083 and 'SCM_PORT_TYPE'.
3084 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
3085 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
3086 (gdbscm_memory_port_read, gdbscm_memory_port_write)
3087 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
3088 [!USING_GUILE_BEFORE_2_2]: New functions.
3089 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
3090 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
3091 'gdbscm_memory_port_read'.
3092 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
3093 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
3094 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
3096 (ioscm_init_memory_port): Remove.
3097 (ioscm_init_memory_port_stream): New function
3098 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
3100 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3101 Return scm_from_uint (0).
3102 (gdbscm_set_memory_port_read_buffer_size_x)
3103 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3104 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
3105 Return scm_from_uint (0).
3106 (gdbscm_set_memory_port_write_buffer_size_x)
3107 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
3108 * configure.ac (try_guile_versions): Add "guile-2.2".
3109 * configure: Regenerate.
3112 2020-07-18 Tom Tromey <tom@tromey.com>
3114 * linux-nat.c (linux_multi_process): Remove.
3115 (linux_nat_target::supports_multi_process): Return true.
3117 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
3119 * arch/riscv.c (riscv_tdesc_cache): Change map type.
3120 (riscv_lookup_target_description): Return pointer out of
3122 * target-descriptions.c (allocate_target_description): Add
3124 (target_desc_deleter::operator()): Likewise.
3125 * target-descriptions.h (struct target_desc_deleter): Moved to
3127 (target_desc_up): Likewise.
3129 2020-07-17 Tom Tromey <tromey@adacore.com>
3131 * linux-nat.c (linux_nat_target::supports_non_stop)
3132 (linux_nat_target::always_non_stop_p): Use "true".
3133 (linux_nat_target::supports_disable_randomization): Use "true" and
3136 2020-07-16 Caroline Tice <cmtice@google.com>
3138 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
3139 (RNGLIST_HEADER_SIZE64): New constant definition.
3140 (struct dwop_section_names): Add rnglists_dwo.
3141 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
3142 (struct loclist_header): Rename to 'loclists_rnglists_header'.
3143 (struct dwo_sections): Add rnglists field.
3144 (read_attribut_reprocess): Add tag parameter.
3145 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
3146 (cu_debug_rnglists_section): New function (decl & definition).
3147 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
3148 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
3149 die whose range is being checked; get rnglist section from
3150 cu_debug_rnglists_section, to get from either objfile or dwo file as
3151 appropriate. Add cases for DW_RLE_base_addressx,
3152 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
3153 the base address to DW_RLE_offset_pairs (not to all ranges), moving
3154 test inside if-condition and updating complaint message.
3155 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
3156 dwarf2_rnglists_process.
3157 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
3158 dwarf2_ranges_process.
3159 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
3160 need_ranges_base and update comment appropriately. Also pass die tag
3161 to dwarf2_ranges_read.
3162 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
3163 need_ranges_base and update comment appropriately. Also pass die tag
3164 to dwarf2_ranges_process.
3165 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
3166 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
3167 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
3168 need_ranges_base and update comment appropriately. Also pass die tag
3169 to read_attribute_reprocess and dwarf2_ranges_read.
3170 (read_loclist_header): Rename function to read_loclists_rnglists_header,
3171 and update function comment appropriately.
3172 (read_loclist_index): Call read_loclists_rnglists_header instead of
3173 read_loclist_header.
3174 (read_rnglist_index): New function.
3175 (read_attribute_reprocess): Add tag parameter. Add code for
3176 DW_FORM_rnglistx, passing tag to read_rnglist_index.
3177 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
3179 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
3181 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
3184 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
3186 * arch-utils.c (show_architecture): Update formatting of messages.
3188 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3190 * gdbtypes.h (struct type) <bounds>: Handle array and string
3192 * ada-lang.c (assign_aggregate): Use type::bounds on
3194 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
3195 * c-varobj.c (c_number_of_children): Likewise.
3196 (c_describe_child): Likewise.
3197 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3198 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3199 (f_type_print_base): Likewise.
3200 * f-valprint.c (f77_array_offset_tbl): Likewise.
3201 (f77_get_upperbound): Likewise.
3202 (f77_print_array_1): Likewise.
3203 * guile/scm-type.c (gdbscm_type_range): Likewise.
3204 * m2-typeprint.c (m2_array): Likewise.
3205 (m2_is_long_set_of_type): Likewise.
3206 * m2-valprint.c (get_long_set_bounds): Likewise.
3207 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3208 * python/py-type.c (typy_range): Likewise.
3209 * rust-lang.c (rust_internal_print_type): Likewise.
3210 * type-stack.c (type_stack::follow_types): Likewise.
3211 * valarith.c (value_subscripted_rvalue): Likewise.
3212 * valops.c (value_cast): Likewise.
3214 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3216 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3217 callers to use the equivalent accessor methods.
3219 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3221 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3222 (struct type) <bit_stride>: New method.
3223 (TYPE_BIT_STRIDE): Remove.
3224 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3226 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3228 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3229 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3230 callers to use the equivalent accessor methods instead.
3232 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3234 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3235 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3236 callers to use the equivalent accessor methods instead.
3238 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3240 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3241 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3242 to use dynamic_prop::kind.
3244 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3246 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3247 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3248 to get the bound property's kind and check against
3251 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3253 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3254 all callers to use type::range_bounds followed by
3255 dynamic_prop::{low,high}.
3257 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3259 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3260 const_val, set_const_val, baton, set_locexpr, set_loclist,
3261 set_addr_offset, variant_parts, set_variant_parts,
3262 original_type, set_original_type>: New methods.
3263 <kind>: Rename to...
3264 <m_kind>: ... this. Update all users to use the new methods
3266 <data>: Rename to...
3267 <m_data>: ... this. Update all users to use the new methods
3270 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3272 * gdbtypes.c (get_discrete_bounds): Return failure if
3273 the range type's bounds are not both defined and constant
3275 (get_array_bounds): Update comment. Remove undefined bound check.
3277 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3279 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3280 the type::bounds method directly.
3282 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
3284 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3285 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3286 are used to set the range type's bounds to use set_bounds.
3288 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3290 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3292 2020-07-10 Pedro Alves <pedro@palves.net>
3294 * gdbthread.h (inferior_ref): Define.
3295 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3296 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3298 (scoped_restore_current_thread::restore):
3299 Adjust to gdb::ref_ptr.
3300 (scoped_restore_current_thread::~scoped_restore_current_thread):
3301 Remove manual decref handling.
3302 (scoped_restore_current_thread::scoped_restore_current_thread):
3304 inferior_ref::new_reference/thread_info_ref::new_reference.
3305 Incref the thread before calling get_frame_id instead of after.
3306 Let TARGET_CLOSE_ERROR propagate.
3308 2020-07-10 Pedro Alves <pedro@palves.net>
3310 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3311 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3312 NOT_AVAILABLE_ERROR.
3313 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3314 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3316 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3317 Pedro Alves <pedro@palves.net>
3320 * infrun.c (threads_are_resumed_pending_p): Delete.
3321 (do_target_wait): Remove threads_are_executing and
3322 threads_are_resumed_pending_p checks from the inferior_matches
3323 lambda. Update comments.
3325 2020-07-10 Pedro Alves <pedro@palves.net>
3328 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3331 2020-07-10 Pedro Alves <pedro@palves.net>
3334 * infrun.c (handle_no_resumed): Handle multiple targets.
3336 2020-07-10 Pedro Alves <pedro@palves.net>
3339 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3342 2020-07-10 Pedro Alves <pedro@palves.net>
3345 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3346 threads, not all threads.
3348 2020-07-10 Pedro Alves <pedro@palves.net>
3351 * remote.c (remote_target::open_1): Pass remote target pointer as
3352 data to create_async_event_handler.
3353 (remote_async_inferior_event_handler): Mark async event handler
3354 before returning if the remote target still has either pending
3355 events or unacknowledged notifications.
3357 2020-07-10 John Baldwin <jhb@FreeBSD.org>
3359 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3361 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3364 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3366 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3369 2020-07-09 John Baldwin <jhb@FreeBSD.org>
3371 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3372 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3373 AT_FREEBSD_PS_STRINGS.
3375 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
3377 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3378 of debugfile path on Windows.
3380 2020-07-08 John Baldwin <jhb@FreeBSD.org>
3382 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3385 2020-07-08 Tom Tromey <tromey@adacore.com>
3387 * ada-lang.c (ada_exception_message_1): Use read_memory.
3389 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3392 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3393 special handling for inline frames.
3394 * findvar.c (value_of_register_lazy): Skip inline frames when
3395 creating lazy register values.
3396 * frame.c (frame_id_computed_p): Delete definition.
3397 * frame.h (frame_id_computed_p): Delete declaration.
3399 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3401 * NEWS: Mention additions to Python API.
3402 * python/py-arch.c (archpy_register_groups): New function.
3403 (arch_object_methods): Add 'register_groups' method.
3404 * python/py-registers.c (reggroup_iterator_object): New struct.
3405 (reggroup_object): New struct.
3406 (gdbpy_new_reggroup): New function.
3407 (gdbpy_reggroup_to_string): New function.
3408 (gdbpy_reggroup_name): New function.
3409 (gdbpy_reggroup_iter): New function.
3410 (gdbpy_reggroup_iter_next): New function.
3411 (gdbpy_new_reggroup_iterator): New function
3412 (gdbpy_initialize_registers): Register new types.
3413 (reggroup_iterator_object_type): Define new Python type.
3414 (gdbpy_reggroup_getset): New static global.
3415 (reggroup_object_type): Define new Python type.
3416 * python/python-internal.h
3418 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3420 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3421 * python/py-arch.c (archpy_registers): New function.
3422 (arch_object_methods): Add 'registers' method.
3423 * python/py-registers.c: New file.
3424 * python/python-internal.h
3425 (gdbpy_new_register_descriptor_iterator): Declare.
3426 (gdbpy_initialize_registers): Declare.
3427 * python/python.c (do_start_initialization): Call
3428 gdbpy_initialize_registers.
3429 * NEWS: Mention additions to the Python API.
3431 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3433 * NEWS: Mention new Python API method.
3434 * python/py-unwind.c (pending_framepy_architecture): New function.
3435 (pending_frame_object_methods): Add architecture method.
3437 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3439 * gdbarch.c: Regenerate.
3440 * gdbarch.h: Regenerate.
3441 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3442 (gdbarch_data): Use internal_error for the case where
3443 deprecated_set_gdbarch_data was originally needed.
3444 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3445 and use passed in obstack.
3446 (libunwind_frame_set_descr): Should no longer get back NULL from
3448 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3450 * user-regs.c (user_regs_init): Update parameters, and use passed
3452 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3453 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3455 2020-07-06 Tom de Vries <tdevries@suse.de>
3457 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3458 End-Of-Sequence in lte_is_less_than.
3459 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3460 "gdb: Don't reorder line table entries too much when sorting".
3462 2020-07-06 Tom de Vries <tdevries@suse.de>
3465 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3467 2020-07-05 Tom de Vries <tdevries@suse.de>
3470 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3471 std::uncaught_exceptions instead of deprecated
3472 std::uncaught_exception.
3474 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3476 * macroexp.h (macro_stringify): Return
3477 gdb::unique_xmalloc_ptr<char>.
3478 * macroexp.c (macro_stringify): Likewise.
3479 * macrotab.c (fixup_definition): Update.
3481 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3483 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3484 (lex_one_token): Update.
3485 * macroexp.c (struct macro_buffer) <release>: Return
3486 gdb::unique_xmalloc_ptr<char>.
3487 (macro_stringify): Update.
3488 (macro_expand): Update.
3489 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3490 * macroexp.h (macro_expand_next): Likewise.
3492 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
3494 * macroexp.h (macro_lookup_ftype): Remove.
3495 (macro_expand, macro_expand_once, macro_expand_next): Remove
3496 lookup function parameters, add scope parameter.
3497 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3498 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3499 * macroscope.h (standard_macro_lookup): Change parameter type
3501 * macroscope.c (standard_macro_lookup): Likewise.
3502 * c-exp.y (lex_one_token): Update.
3503 * macrocmd.c (macro_expand_command): Likewise.
3504 (macro_expand_once_command): Likewise.
3506 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3508 * inf-loop.c (inferior_event_handler): Remove client_data param.
3509 * inf-loop.h (inferior_event_handler): Likewise.
3510 * infcmd.c (step_1): Adjust.
3511 * infrun.c (proceed): Adjust.
3512 (fetch_inferior_event): Remove client_data param.
3513 (infrun_async_inferior_event_handler): Adjust.
3514 * infrun.h (fetch_inferior_event): Remove `void *` param.
3515 * linux-nat.c (handle_target_event): Adjust.
3516 * record-btrace.c (record_btrace_handle_async_inferior_event):
3518 * record-full.c (record_full_async_inferior_event_handler):
3520 * remote.c (remote_async_inferior_event_handler): Adjust.
3522 2020-07-01 Tom Tromey <tom@tromey.com>
3524 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3525 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3527 2020-07-01 Tom Tromey <tom@tromey.com>
3529 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3531 (tui_win_info::make_window): Merge with
3532 tui_gen_win_info::make_window.
3533 (tui_win_info::make_visible): Move from tui_gen_win_info.
3534 * tui/tui-win.c (tui_win_info::max_width): Move from
3536 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3538 <window_factory>: Likewise.
3539 * tui/tui-layout.c (tui_win_info::resize): Move from
3541 (make_standard_window): Change return type.
3542 (get_locator_window, tui_get_window_by_name): Likewise.
3543 (tui_layout_window::apply): Remove a cast.
3544 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3545 (struct tui_win_info): Merge with tui_gen_win_info.
3546 (struct tui_gen_win_info): Remove.
3548 2020-07-01 Tom Tromey <tom@tromey.com>
3550 * tui/tui-stack.h (struct tui_locator_window): Derive from
3552 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3553 <can_box>: New method.
3555 2020-07-01 Tom Tromey <tom@tromey.com>
3557 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3559 2020-07-01 Tom Tromey <tom@tromey.com>
3561 * tui/tui-regs.c (tui_data_window::display_registers_from)
3562 (tui_data_window::display_registers_from)
3563 (tui_data_window::first_data_item_displayed)
3564 (tui_data_window::delete_data_content_windows): Update.
3565 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3567 (tui_data_window::check_register_values): Update.
3568 (tui_data_item_window::rerender): Add parameters. Update.
3569 (tui_data_item_window::refresh_window): Remove.
3570 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3572 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3574 <refresh_window, max_height, min_height>: Remove.
3575 <rerender>: Add parameters.
3576 <x, y, visible>: New members.
3577 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3578 <m_item_width>: New member.
3580 2020-07-01 Tom Tromey <tom@tromey.com>
3582 * tui/tui-regs.c (tui_data_window::show_register_group)
3583 (tui_data_window::check_register_values): Update.
3584 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3587 2020-07-01 Tom Tromey <tom@tromey.com>
3589 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3592 2020-07-01 Tom Tromey <tom@tromey.com>
3594 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3595 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3597 2020-07-01 Tom Tromey <tom@tromey.com>
3599 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3600 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3601 (struct tui_line_or_address): Move from tui-data.h.
3602 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3603 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3604 (tui_cmd_window, tui_source_window_base, tui_source_window)
3605 (tui_disasm_window): Don't declare.
3606 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3608 (SINGLE_KEY): Move to tui-stack.c.
3610 2020-07-01 Tom Tromey <tom@tromey.com>
3612 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3614 * tui/tui-regs.c (class tab_expansion_file): New.
3615 (tab_expansion_file::write): New method.
3616 (tui_register_format): Change return type. Use
3618 (tui_get_register, tui_data_window::display_registers_from)
3619 (tui_data_item_window::rerender): Update.
3620 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3621 * tui/tui-io.c (tui_expand_tabs): Remove.
3623 2020-07-01 Tom Tromey <tom@tromey.com>
3625 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3627 2020-07-01 Fangrui Song <maskray@google.com>
3629 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3631 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3633 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3634 forms for DW_AT_associated and DW_AT_allocated attributes,
3635 which is already checked in function attr_to_dynamic_prop.
3637 2020-06-30 Tom Tromey <tromey@adacore.com>
3639 * dwarf2/read.c (quirk_rust_enum): Correctly call
3640 alloc_rust_variant for default-less enum.
3642 2020-06-30 Tom Tromey <tromey@adacore.com>
3645 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3648 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
3650 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3651 * gdbarch.h: Re-generate.
3653 2020-06-28 Tom Tromey <tom@tromey.com>
3655 * command.h (cmd_types): Remove.
3656 (cmd_type): Don't declare.
3657 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3659 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3660 * cli/cli-decode.c (cmd_type): Remove.
3662 2020-06-27 Pedro Alves <palves@redhat.com>
3664 * fork-child.c (prefork_hook): Adjust.
3665 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3667 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3668 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3669 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3670 Remove declarations.
3671 (struct inferior) <set_tty, tty>: New methods.
3672 (struct inferior) <terminal>: Rename to ...
3673 (struct inferior) <m_terminal>: ... this and make private.
3674 * main.c (captured_main_1): Adjust.
3675 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3676 (mi_cmd_inferior_tty_show): Adjust.
3677 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3678 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3680 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
3682 * configure.ac: Add --enable-libctf: handle --disable-static
3684 * acinclude.m4: sinclude ../config/enable.m4.
3685 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3686 (LIBCTF): Substitute in.
3687 (CTF_DEPS): New, likewise.
3688 (CLIBS): libctf needs symbols from libbfd: move earlier.
3689 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3691 * ctfread.c: Surround in ENABLE_LIBCTF.
3692 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3693 * configure: Regenerate.
3694 * config.in: Likewise.
3696 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3698 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3700 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
3702 * inferior.h (struct inferior) <terminal>: Change type to
3703 gdb::unique_xmalloc_ptr<char>.
3704 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3705 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3706 field, adjust to unique pointer.
3707 (get_inferior_io_terminal): Adjust to unique pointer.
3709 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3711 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3712 registers, not just the known core set of registers.
3714 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3716 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3717 fflags, frm, and fcsr registers.
3718 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3720 (riscv_tdesc_unknown_reg): New function.
3721 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3722 tdesc_use_registers.
3723 * riscv-tdep.h (struct gdbarch_tdep): Add
3724 unknown_csrs_first_regnum, unknown_csrs_count,
3725 duplicate_fflags_regnum, duplicate_frm_regnum, and
3726 duplicate_fcsr_regnum fields.
3728 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3730 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3731 callback, use the callback (when not null) to help number unknown
3733 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3734 (tdesc_use_registers): Add extra parameter to declaration.
3736 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3738 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3740 (class riscv_pending_register_alias): Likewise.
3741 (riscv_register_feature::register_info): Change 'required_p' field
3742 to 'required', and change its type. Add 'check' member function.
3743 (riscv_register_feature::register_info::check): Define new member
3745 (riscv_xreg_feature): Change initialisation of 'required' field.
3746 (riscv_freg_feature): Likewise.
3747 (riscv_virtual_feature): Likewise.
3748 (riscv_csr_feature): Likewise.
3749 (riscv_check_tdesc_feature): Take extra parameter, the csr
3750 tdesc_feature, rewrite the function to use the new
3751 riscv_register_feature::register_info::check function.
3752 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3754 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3756 * features/Makefile: Remove all references to the deleted files
3758 * features/riscv/32bit-csr.c: Deleted.
3759 * features/riscv/32bit-csr.xml: Deleted.
3760 * features/riscv/64bit-csr.c: Deleted.
3761 * features/riscv/64bit-csr.xml: Deleted.
3762 * features/riscv/rebuild-csr-xml.sh: Deleted.
3764 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3766 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3767 whitespace error for declaration of names member variable.
3768 (struct riscv_register_feature): Add new prefer_first_name member
3769 variable, and fix whitespace error in declaration of registers.
3770 (riscv_xreg_feature): Initialize prefer_first_name field.
3771 (riscv_freg_feature): Likewise.
3772 (riscv_virtual_feature): Likewise.
3773 (riscv_csr_feature): Likewise.
3774 (riscv_register_name): Expand on comments. Remove register name
3775 modifications for CSR and virtual registers.
3777 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3779 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3782 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3784 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3786 (class riscv_pending_register_alias): New class.
3787 (riscv_check_tdesc_feature): Take vector of pending aliases and
3788 populate it as appropriate.
3789 (riscv_setup_register_aliases): Delete.
3790 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3791 to riscv_check_tdesc_feature in all cases. Use the vector to
3792 create the register aliases.
3794 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3796 * sol2-tdep.c (sol2_static_transform_name): Remove.
3797 (sol2_init_abi): Don't register it.
3798 * gdbarch.sh (static_transform_name): Remove.
3799 * gdbarch.c, gdbarch.h: Regenerate.
3801 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3802 gdbarch_static_transform_name.
3803 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3804 * stabsread.c (define_symbol) <'X'>: Remove.
3805 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3808 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3809 <'S'>: Remove call to gdbarch_static_transform_name.
3811 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3813 * procfs.c (procfs_pre_trace): New function.
3814 (procfs_target::create_inferior): Pass it to fork_inferior.
3816 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3818 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3819 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3820 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3821 sol2-tdep.o, sparc-sol2-tdep.o.
3822 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3823 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3824 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3825 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3827 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3829 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3830 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3832 Remove calls to set_gdbarch_skip_solib_resolver,
3833 set_gdbarch_core_pid_to_str.
3834 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3835 (i386_sol2_static_transform_name): Remove.
3836 (i386_sol2_init_abi): Call sol2_init_abi.
3837 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3838 set_gdbarch_static_transform_name,
3839 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3840 Use sol2_sigtramp_p.
3841 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3842 (sol2_sigtramp_p): New function.
3843 (sol2_static_transform_name): New function.
3844 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3845 (sol2_init_abi): New function.
3846 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3847 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3848 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3849 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3850 (sparc_sol2_static_transform_name): Remove.
3851 (sparc32_sol2_init_abi): Call sol2_init_abi.
3852 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3853 set_gdbarch_static_transform_name,
3854 set_gdbarch_skip_solib_resolver,
3855 set_gdbarch_core_pid_to_str.
3856 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3857 (sparc_sol2_static_transform_name): Remove
3858 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3859 call sol2_sigtramp_p.
3860 (sparc64_sol2_init_abi): Call sol2_init_abi.
3861 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3862 set_gdbarch_static_transform_name,
3863 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3865 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3867 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3868 * exec.c (validate_exec_file): If from_tty, set both
3869 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3870 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3871 and from_tty, unconditionally ask a confirmation.
3873 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3875 * target-descriptions.c (tdesc_architecture_name): Protect against
3876 NULL pointer dereference.
3877 (maint_print_xml_tdesc_cmd): New function.
3878 (_initialize_target_descriptions): Register new 'maint print
3879 xml-tdesc' command and give it the filename completer.
3880 * NEWS: Mention new 'maint print xml-tdesc' command.
3882 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3884 * target-descriptions.c (class tdesc_compatible_info): New class.
3885 (struct target_desc): Change type of compatible vector.
3886 (tdesc_compatible_p): Update for change in type of
3887 target_desc::compatible.
3888 (tdesc_compatible_info_list): New function.
3889 (tdesc_compatible_info_arch_name): New function.
3890 (tdesc_add_compatible): Update for change in type of
3891 target_desc::compatible.
3892 (print_c_tdesc::visit_pre): Likewise.
3894 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3896 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3897 whitespace to underscore.
3898 (maint_print_c_tdesc_cmd): Use fake filename for target
3899 descriptions that came from the target.
3900 (_initialize_target_descriptions): Add filename command completion
3901 for 'maint print c-tdesc'.
3903 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3905 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3908 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
3910 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3912 (dwarf2_find_location_expression): Likewise.
3913 (call_site_parameter_matches): Likewise.
3914 (dwarf2_compile_expr_to_ax): Likewise.
3915 (disassemble_dwarf_expression): Likewise.
3916 (loclist_describe_location): Likewise.
3918 2020-06-23 Pedro Alves <palves@redhat.com>
3920 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3921 progspace-and-thread.h. Include scoped-mock-context.h instead.
3922 (register_to_value_test): Use scoped_mock_context.
3923 * regcache.c: Include "scoped-mock-context.h".
3924 (cooked_read_test): Don't error out if a target is already pushed.
3925 Use scoped_mock_context. Adjust.
3926 * scoped-mock-context.h: New file.
3928 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3930 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3932 (ada_language::is_string_type_p): New member function.
3933 * c-lang.c (c_language_data): Delete la_is_string_type_p
3935 (cplus_language_data): Likewise.
3936 (asm_language_data): Likewise.
3937 (minimal_language_data): Likewise.
3938 * d-lang.c (d_language_data): Likewise.
3939 * f-lang.c (f_is_string_type_p): Delete function, implementation
3940 moved to f_language::is_string_type_p.
3941 (f_language_data): Delete la_is_string_type_p initializer.
3942 (f_language::is_string_type_p): New member function,
3943 implementation from f_is_string_type_p.
3944 * go-lang.c (go_is_string_type_p): Delete function, implementation
3945 moved to go_language::is_string_type_p.
3946 (go_language_data): Delete la_is_string_type_p initializer.
3947 (go_language::is_string_type_p): New member function,
3948 implementation from go_is_string_type_p.
3949 * language.c (language_defn::is_string_type_p): Define new member
3951 (default_is_string_type_p): Make static, add comment copied from
3953 (unknown_language_data): Delete la_is_string_type_p initializer.
3954 (unknown_language::is_string_type_p): New member function.
3955 (auto_language_data): Delete la_is_string_type_p initializer.
3956 (auto_language::is_string_type_p): New member function.
3957 * language.h (language_data): Delete la_is_string_type_p field.
3958 (language_defn::is_string_type_p): Declare new function.
3959 (default_is_string_type_p): Delete desclaration, move comment to
3961 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3962 moved to m2_language::is_string_type_p.
3963 (m2_language_data): Delete la_is_string_type_p initializer.
3964 (m2_language::is_string_type_p): New member function,
3965 implementation from m2_is_string_type_p.
3966 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3968 * opencl-lang.c (opencl_language_data): Likewise.
3969 * p-lang.c (pascal_is_string_type_p): Delete function,
3970 implementation moved to pascal_language::is_string_type_p.
3971 (pascal_language_data): Delete la_is_string_type_p initializer.
3972 (pascal_language::is_string_type_p): New member function,
3973 implementation from pascal_is_string_type_p.
3974 * rust-lang.c (rust_is_string_type_p): Delete function,
3975 implementation moved to rust_language::is_string_type_p.
3976 (rust_language_data): Delete la_is_string_type_p initializer.
3977 (rust_language::is_string_type_p): New member function,
3978 implementation from rust_is_string_type_p.
3979 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3982 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3984 * ada-lang.c (ada_language_data): Delete la_print_typedef
3986 (ada_language::print_typedef): New member function.
3987 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3988 (cplus_language_data): Likewise.
3989 (asm_language_data): Likewise.
3990 (minimal_language_data): Likewise.
3991 * d-lang.c (d_language_data): Likewise.
3992 * f-lang.c (f_language_data): Likewise.
3993 (f_language::print_typedef): New member function.
3994 * go-lang.c (go_language_data): Delete la_print_typedef
3996 * language.c (language_defn::print_typedef): Define member
3998 (unknown_language_data): Delete la_print_typedef initializer.
3999 (unknown_language::print_typedef): New member function.
4000 (auto_language_data): Delete la_print_typedef initializer.
4001 (auto_language::print_typedef): New member function.
4002 * language.h (language_data): Delete la_print_typedef field.
4003 (language_defn::print_typedef): Declare new member function.
4004 (LA_PRINT_TYPEDEF): Update call to print_typedef.
4005 (default_print_typedef): Delete declaration.
4006 * m2-lang.c (m2_language_data): Delete la_print_typedef
4008 (m2_language::print_typedef): New member function.
4009 * objc-lang.c (objc_language_data): Delete la_print_typedef
4011 * opencl-lang.c (opencl_language_data): Likewise.
4012 * p-lang.c (pascal_language_data): Likewise.
4013 (pascal_language::print_typedef): New member function.
4014 * rust-lang.c (rust_print_typedef): Delete function,
4015 implementation moved to rust_language::print_typedef.
4016 (rust_language): Delete la_print_typedef initializer.
4017 (rust_language::print_typedef): New member function,
4018 implementation from rust_print_typedef.
4019 * typeprint.c (default_print_typedef): Delete.
4021 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4023 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
4024 (ada_language::printstr): New member function.
4025 * c-lang.c (c_language_data): Delete la_printstr initializer.
4026 (cplus_language_data): Likewise.
4027 (asm_language_data): Likewise.
4028 (minimal_language_data): Likewise.
4029 * d-lang.c (d_language_data): Likewise.
4030 * f-lang.c (f_printstr): Rename to f_language::printstr.
4031 (f_language_data): Delete la_printstr initializer.
4032 (f_language::printstr): New member function, implementation from
4034 * go-lang.c (go_language_data): Delete la_printstr initializer.
4035 * language.c (language_defn::printstr): Define new member
4037 (unk_lang_printstr): Delete.
4038 (unknown_language_data): Delete la_printstr initializer.
4039 (unknown_language::printstr): New member function.
4040 (auto_language_data): Delete la_printstr initializer.
4041 (auto_language::printstr): New member function.
4042 * language.h (language_data): Delete la_printstr field.
4043 (language_defn::printstr): Declare new member function.
4044 (LA_PRINT_STRING): Update call to printstr.
4045 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
4046 (m2_language_data): Delete la_printstr initializer.
4047 (m2_language::printstr): New member function, implementation from
4049 * objc-lang.c (objc_language_data): Delete la_printstr
4051 * opencl-lang.c (opencl_language_data): Likewise.
4052 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
4053 (pascal_language_data): Delete la_printstr initializer.
4054 (pascal_language::printstr): New member function, implementation
4055 from pascal_printstr.
4056 * p-lang.h (pascal_printstr): Delete declaration.
4057 * rust-lang.c (rust_printstr): Update header comment.
4058 (rust_language_data): Delete la_printstr initializer.
4059 (rust_language::printstr): New member function.
4061 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4063 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
4064 (ada_language::printchar): New member function.
4065 * c-lang.c (c_language_data): Delete la_printchar initializer.
4066 (cplus_language_data): Likewise.
4067 (asm_language_data): Likewise.
4068 (minimal_language_data): Likewise.
4069 * d-lang.c (d_language_data): Likewise.
4070 * f-lang.c (f_printchar): Rename to f_language::printchar.
4071 (f_language_data): Delete la_printchar initializer.
4072 (f_language::printchar): New member function, implementation from
4074 * go-lang.c (go_language_data): Delete la_printchar initializer.
4075 * language.c (unk_lang_printchar): Delete.
4076 (language_defn::printchar): Define new member function.
4077 (unknown_language_data): Delete la_printchar initializer.
4078 (unknown_language::printchar): New member function.
4079 (auto_language_data): Delete la_printchar initializer.
4080 (auto_language::printchar): New member function.
4081 * language.h (language_data): Delete la_printchar field.
4082 (language_defn::printchar): Declare new member function.
4083 (LA_PRINT_CHAR): Update call to printchar.
4084 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
4085 (m2_language::printchar): New member function.
4086 * objc-lang.c (objc_language_data): Delete la_printchar
4088 * opencl-lang.c (opencl_language_data): Likewise.
4089 * p-lang.c (pascal_language_data): Delete la_printchar
4091 (pascal_language::printchar): New member function.
4092 * rust-lang.c (rust_printchar): Rename to
4093 rust_language::printchar.
4094 (rust_language_data): Delete la_printchar initializer.
4095 (rust_language::printchar): New member function, implementation
4096 from rust_printchar.
4098 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4100 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
4101 (ada_language_data): Delete la_emitchar initializer.
4102 (ada_language::emitchar): New member function, implementation from
4104 * c-lang.c (c_language_data): Delete la_emitchar initializer.
4105 (cplus_language_data): Likewise.
4106 (asm_language_data): Likewise.
4107 (minimal_language_data): Likewise.
4108 * d-lang.c (d_language_data): Likewise.
4109 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
4110 (f_language_data): Delete la_emitchar initializer.
4111 (f_language::emitchar): New member function, implementation from
4113 * go-lang.c (go_language_data): Delete la_emitchar initializer.
4114 * language.c (unk_lang_emit_char): Delete.
4115 (language_defn::emitchar): New member function definition.
4116 (unknown_language_data): Delete la_emitchar initializer.
4117 (unknown_language::emitchar): New member function.
4118 (auto_language_data): Delete la_emitchar initializer.
4119 (auto_language::emitchar): New member function.
4120 * language.h (language_data): Delete la_emitchar field.
4121 (language_defn::emitchar): New member field declaration.
4122 (LA_EMIT_CHAR): Update call to emitchar.
4123 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
4124 (m2_language_data): Delete la_emitchar initializer.
4125 (m2_language::emitchar): New member function, implementation from
4127 * objc-lang.c (objc_language_data): Delete la_emitchar
4129 * opencl-lang.c (opencl_language_data): Likewise.
4130 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
4131 (pascal_language_data): Delete la_emitchar initializer.
4132 (pascal_language::emitchar): New member function, implementation
4133 from pascal_emit_char.
4134 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
4135 (rust_language_data): Delete la_emitchar initializer.
4136 (rust_language::emitchar): New member function, implementation
4139 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4141 * ada-lang.c (resolve): Rename to ada_language::post_parser.
4142 (ada_language_data): Delete la_post_parser initializer.
4143 (ada_language::post_parser): New member function.
4144 * c-lang.c (c_language_data): Delete la_post_parser initializer.
4145 (cplus_language_data): Likewise.
4146 (asm_language_data): Likewise.
4147 (minimal_language_data): Likewise.
4148 * d-lang.c (d_language_data): Likewise.
4149 * f-lang.c (f_language_data): Likewise.
4150 * go-lang.c (go_language_data): Likewise.
4151 * language.c (unknown_language_data): Likewise.
4152 (auto_language_data): Likewise.
4153 * language.h (language_data): Delete la_post_parser field.
4154 (language_defn::post_parser): New member function.
4155 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
4156 * objc-lang.c (objc_language_data): Likewise.
4157 * opencl-lang.c (opencl_language_data): Likewise.
4158 * p-lang.c (pascal_language_data): Likewise.
4159 * parse.c (parse_exp_in_context): Update call to post_parser.
4160 (null_post_parser): Delete definition.
4161 * parser-defs.h (null_post_parser): Delete declaration.
4162 * rust-lang.c (rust_language_data): Delete la_post_parser
4165 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4167 * ada-lang.c (parse): Rename to ada_language::parser.
4168 (ada_language_data): Delete la_parser initializer.
4169 (ada_language::parser): New member function, implementation from
4171 * c-lang.c (c_language_data): Delete la_parser initializer.
4172 (cplus_language_data): Likewise.
4173 (asm_language_data): Likewise.
4174 (minimal_language_data): Likewise.
4175 * d-lang.c (d_language_data): Likewise.
4176 (d_language::parser): New member function.
4177 * f-lang.c (f_language_data): Delete la_parser initializer.
4178 (f_language::parser): New member function.
4179 * go-lang.c (go_language_data): Delete la_parser initializer.
4180 (go_language::parser): New member function.
4181 * language.c (unk_lang_parser): Delete.
4182 (language_defn::parser): Define new member function.
4183 (unknown_language_data): Delete la_parser initializer.
4184 (unknown_language::parser): New member function.
4185 (auto_language_data): Delete la_parser initializer.
4186 (auto_language::parser): New member function.
4187 * language.h (language_data): Delete la_parser field.
4188 (language_defn::parser): Declare new member function.
4189 * m2-lang.c (m2_language_data): Delete la_parser initializer.
4190 (m2_language::parser): New member function.
4191 * objc-lang.c (objc_language_data): Delete la_parser initializer.
4192 * opencl-lang.c (opencl_language_data): Likewise.
4193 * p-lang.c (pascal_language_data): Likewise.
4194 (pascal_language::parser): New member function.
4195 * parse.c (parse_exp_in_context): Update call to parser.
4196 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4197 (rust_language::parser): New member function.
4199 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4201 * top.c (print_gdb_configuration): Print --with-python-libdir
4202 configuration value.
4204 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4206 * NEWS: Mention change to the alias command.
4208 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4210 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4211 (alias_command_completer)
4212 (make_alias_options_def_group): New functions.
4213 (alias_opts, alias_option_defs): New struct and array.
4214 (alias_usage_error): Update usage.
4215 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4216 Use option framework.
4217 (_initialize_cli_cmds): Update alias command help.
4218 Update aliases command help.
4220 Add NULL for new default_args lookup_cmd argument.
4221 (valid_command_p): Rename to validate_aliased_command.
4222 Add NULL for new default_args lookup_cmd argument. Verify that the
4223 aliased_command has no default args.
4224 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4225 (lookup_cmd_1, lookup_cmd): New argument default_args.
4227 Add NULL for new default_args lookup_cmd argument.
4228 (print_help_for_command): Show default args under the layout
4229 alias some_alias = some_aliased_cmd some_alias_default_arg.
4230 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4231 xfree default_args in destructor.
4232 * cli/cli-script.c (process_next_line, do_define_command):
4233 Add NULL for new default_args lookup_cmd argument.
4234 * command.h: Declare new default_args argument in lookup_cmd
4236 * completer.c (complete_line_internal_1):
4237 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4238 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4239 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4241 * infcmd.c (_initialize_infcmd): Likewise.
4242 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4243 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4244 * python/py-param.c (add_setshow_generic): Likewise.
4245 * remote.c (_initialize_remote): Likewise.
4246 * top.c (execute_command): Prepend default_args if command has some.
4248 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4249 * tracepoint.c (validate_actionline, encode_actions_1):
4250 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4252 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4254 * jit.c (jit_read_descriptor): Use bool as the return type.
4255 (jit_breakpoint_re_set_internal): Use bool as the return type.
4256 Invert the return value logic; return true if the jit breakpoint
4257 has been successfully initialized.
4258 (jit_inferior_init): Update the call to
4259 jit_breakpoint_re_set_internal.
4261 2020-06-22 Pedro Alves <palves@redhat.com>
4264 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4265 Use the current inferior instead. Don't return
4266 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4268 * sol-thread.c (sol_thread_target::wait): Don't reference
4270 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4271 (sol_update_thread_list_callback): Use the current inferior's pid
4272 instead of inferior_ptid.
4274 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4276 * procfs.c: Cleanup many comments.
4278 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4279 (AFTER_WATCHFLAG): Replace by value.
4281 (MAIN_PROC_NAME_FORMAT): Inline ...
4282 (create_procinfo): ... here.
4284 (procfs_debug_inferior): Remove SYS_exec handling.
4285 (syscall_is_exec): Likewise.
4286 (procfs_set_exec_trap): Likewise.
4288 (syscall_is_lwp_exit): Inline in callers.
4289 (syscall_is_exit): Likewise.
4290 (syscall_is_exec): Likewise.
4291 (syscall_is_lwp_create): Likewise.
4293 (invalidate_cache): Remove #if 0 code.
4295 (make_signal_thread_runnable): Remove.
4296 (procfs_target::resume): Remove #if 0 code.
4298 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4301 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4303 (procfs_target::create_inferior): ... here.
4305 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4307 * exec.c (validate_exec_file): Ensure the build-id is up to
4308 date by calling reopen_exec_file (that checks file timestamp
4309 to decide to re-read the file).
4311 2020-06-18 Pedro Alves <palves@redhat.com>
4314 * gdbthread.h (delete_thread, delete_thread_silent)
4315 (find_thread_ptid): Update comments.
4316 * thread.c (current_thread_): New global.
4317 (is_current_thread): Move higher, and reimplement.
4318 (inferior_thread): Reimplement.
4319 (set_thread_exited): Use bool. Add assertions.
4320 (add_thread_silent): Simplify thread-reuse handling by always
4321 calling delete_thread.
4322 (delete_thread): Remove intro comment.
4323 (find_thread_ptid): Skip exited threads.
4324 (switch_to_thread_no_regs): Write to current_thread_.
4325 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4326 INFERIOR_PTID. Clear current_thread_.
4328 2020-06-18 Pedro Alves <palves@redhat.com>
4330 * aix-thread.c (pd_update): Use switch_to_thread.
4332 2020-06-18 Pedro Alves <palves@redhat.com>
4334 * ravenscar-thread.c (ravenscar_thread_target): Update.
4335 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4336 (ravenscar_thread_target::add_active_thread): ... this. Don't
4337 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4338 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4340 2020-06-18 Pedro Alves <palves@redhat.com>
4342 * nat/windows-nat.c (current_windows_thread): Remove.
4343 * nat/windows-nat.h (current_windows_thread): Remove.
4344 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4346 (display_selectors): Adjust to fetch the current
4347 windows_thread_info based on inferior_ptid.
4348 (fake_create_process): No longer write to current_windows_thread.
4349 (windows_nat_target::get_windows_debug_event):
4350 Don't set inferior_ptid or current_windows_thread.
4351 (windows_nat_target::wait): Adjust to not rely on
4352 current_windows_thread.
4353 (do_initial_windows_stuff): Now a method of windows_nat_target.
4354 Switch to the last_ptid thread.
4355 (windows_nat_target::attach): Adjust.
4356 (windows_nat_target::detach): Use switch_to_no_thread instead of
4357 writing to inferior_ptid directly.
4358 (windows_nat_target::create_inferior): Adjust.
4360 2020-06-18 Pedro Alves <palves@redhat.com>
4362 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4364 2020-06-18 Pedro Alves <palves@redhat.com>
4366 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4367 after creating it, instead of writing to inferior_ptid. Don't
4368 write to inferior_ptid.
4370 2020-06-18 Pedro Alves <palves@redhat.com>
4372 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4374 2020-06-18 Pedro Alves <palves@redhat.com>
4376 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4377 it, instead of writing to inferior_ptid.
4379 2020-06-18 Pedro Alves <palves@redhat.com>
4381 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4384 2020-06-18 Pedro Alves <palves@redhat.com>
4386 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4387 instead of writing to inferior_ptid directly.
4389 2020-06-18 Pedro Alves <palves@redhat.com>
4391 * corelow.c (core_target::close): Use switch_to_no_thread instead
4392 of writing to inferior_ptid directly.
4393 (add_to_thread_list, core_target_open): Use switch_to_thread
4394 instead of writing to inferior_ptid directly.
4396 2020-06-18 Pedro Alves <palves@redhat.com>
4398 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4400 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4402 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4403 inferior_ptid directly.
4404 (darwin_nat_target::init_thread_list): Switch to thread, instead
4405 of writing to inferior_ptid.
4406 (darwin_nat_target::attach): Don't write to inferior_ptid.
4407 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4409 2020-06-18 Pedro Alves <palves@redhat.com>
4411 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4413 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4414 Instead use switch_to_thread.
4415 (gnu_nat_target::detach): Use switch_to_no_thread
4416 instead of writing to inferior_ptid directly. Used passed-in
4417 inferior instead of looking up the inferior by pid.
4419 2020-06-18 Pedro Alves <palves@redhat.com>
4421 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4424 2020-06-18 Pedro Alves <palves@redhat.com>
4426 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4428 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4430 (nto_procfs_target::detach): Avoid referencing
4431 inferior_ptid. Use switch_to_no_thread instead of writing to
4432 inferior_ptid directly.
4433 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4434 instead of writing to inferior_ptid directly.
4435 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4438 2020-06-18 Pedro Alves <palves@redhat.com>
4440 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4441 after creating it, instead of writing to inferior_ptid.
4442 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4443 to inferior_ptid directly.
4444 (gdbsim_target::wait): Don't write to inferior_ptid.
4446 2020-06-18 Pedro Alves <palves@redhat.com>
4448 * remote.c (remote_target::remote_notice_new_inferior): Use
4449 switch_to_thread instead of writing to inferior_ptid directly.
4450 (remote_target::add_current_inferior_and_thread): Use
4451 switch_to_no_thread instead of writing to inferior_ptid directly.
4452 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4453 and switch_to_thread instead of using set_current_inferior or
4454 writing to inferior_ptid directly.
4456 2020-06-18 Pedro Alves <palves@redhat.com>
4458 * tracectf.c (ctf_target_open): Switch to added thread instead of
4459 writing to inferior_ptid directly.
4460 (ctf_target::close): Use switch_to_no_thread instead of writing to
4461 inferior_ptid directly.
4463 2020-06-18 Pedro Alves <palves@redhat.com>
4465 * tracefile-tfile.c (tfile_target_open): Don't write to
4466 inferior_ptid directly, instead switch to added thread.
4467 (tfile_target::close): Use switch_to_no_thread instead of writing
4468 to inferior_ptid directly.
4470 2020-06-18 Pedro Alves <palves@redhat.com>
4472 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4473 (procfs_target::detach): Use switch_to_no_thread
4474 instead of writing to inferior_ptid directly.
4475 (do_attach): Change return type to void. Switch to the added
4477 (procfs_target::create_inferior): Switch to the added thread.
4478 (procfs_do_thread_registers): Don't write to inferior_ptid.
4480 2020-06-18 Pedro Alves <palves@redhat.com>
4482 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4483 of writing to inferior_ptid.
4484 (scoped_restore_exited_inferior): Delete.
4485 (handle_vfork_child_exec_or_exit): Simplify using
4486 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4487 instead of writing to inferior_ptid.
4488 (THREAD_STOPPED_BY): Delete.
4489 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4490 (thread_stopped_by_hw_breakpoint): Delete.
4491 (save_waitstatus): Use
4492 scoped_restore_current_thread+switch_to_thread, and call
4493 target_stopped_by_watchpoint instead of
4494 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4495 instead of thread_stopped_by_sw_breakpoint, and
4496 target_stopped_by_hw_breakpoint instead of
4497 thread_stopped_by_hw_breakpoint.
4498 (handle_inferior_event)
4499 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4500 inferior_ptid directly, nor
4501 set_current_inferior/set_current_program_space. Use
4502 switch_to_thread / switch_to_inferior_no_thread instead.
4504 2020-06-18 Pedro Alves <palves@redhat.com>
4506 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4507 instead of writing to inferior_ptid.
4509 2020-06-18 Pedro Alves <palves@redhat.com>
4511 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4513 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4514 to the added thread.
4515 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4516 instead of writing to inferior_ptid.
4518 2020-06-18 Pedro Alves <palves@redhat.com>
4520 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4521 (register_to_value_test): Mock a program_space too. Heap-allocate
4522 the address space. Don't write to inferior_ptid. Use
4523 switch_to_thread instead.
4525 2020-06-18 Pedro Alves <palves@redhat.com>
4527 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4529 (find_signalled_thread()): New, factored out from
4530 linux_make_corefile_notes and adjusted to handle exited threads.
4531 (linux_make_corefile_notes): Adjust to use the new
4532 find_signalled_thread.
4534 2020-06-18 Pedro Alves <palves@redhat.com>
4536 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4537 of saving/restoring inferior_ptid.
4539 2020-06-17 Tom Tromey <tom@tromey.com>
4541 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4542 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4544 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4546 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
4548 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4551 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4553 * regformats/reg-arm.dat: Remove.
4554 * regformats/reg-bfin.dat: Remove.
4555 * regformats/reg-cris.dat: Remove.
4556 * regformats/reg-crisv32.dat: Remove.
4557 * regformats/reg-m32r.dat: Remove.
4558 * regformats/reg-tilegx.dat: Remove.
4559 * regformats/reg-tilegx32.dat: Remove.
4561 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4563 * features/Makefile (WHICH): Remove arm files.
4564 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4565 * regformats/arm/arm-with-neon.dat: Remove.
4566 * regformats/arm/arm-with-vfpv2.dat: Remove.
4567 * regformats/arm/arm-with-vfpv3.dat: Remove.
4569 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
4571 * features/Makefile (XMLTOC): Remove rx.xml.
4573 2020-06-17 Pedro Alves <palves@redhat.com>
4575 * gdbthread.h (thread_control_state) <trap_expected> Update
4578 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4580 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4581 ada_language::lookup_symbol_nonlocal.
4582 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4583 (ada_language::lookup_symbol_nonlocal): New member function,
4584 implementation from ada_lookup_symbol_nonlocal.
4585 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4587 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4589 (cplus_language::lookup_symbol_nonlocal): New member function.
4590 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4591 (minimal_language_data) Likewise.
4592 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4593 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4595 (d_language::lookup_symbol_nonlocal): New member function.
4596 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4598 (f_language::lookup_symbol_nonlocal): New member function.
4599 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4601 * language.c (unknown_language_data): Likewise.
4602 (auto_language_data): Likewise.
4603 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4605 (language_defn::lookup_symbol_nonlocal): New member function.
4606 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4608 * objc-lang.c (objc_language_data): Likewise.
4609 * opencl-lang.c (opencl_language_data): Likewise.
4610 * p-lang.c (pascal_language_data): Likewise.
4611 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4612 rust_language::lookup_symbol_nonlocal.
4613 (rust_language_data): Delete la_lookup_symbol_nonlocal
4615 (rust_language::lookup_symbol_nonlocal): New member function,
4616 implementation from rust_lookup_symbol_nonlocal.
4617 * symtab.c (lookup_symbol_aux): Update call to
4618 lookup_symbol_nonlocal.
4619 (basic_lookup_symbol_nonlocal): Rename to...
4620 (language_defn::lookup_symbol_nonlocal): ...this, and update
4621 header comment. Remove language_defn parameter, and replace with
4623 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4625 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4627 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4629 (ada_language::value_print_inner): New member function.
4630 * c-lang.c (c_language_data): Delete la_value_print_inner
4632 (cplus_language_data): Likewise.
4633 (asm_language_data): Likewise.
4634 (minimal_language_data): Likewise.
4635 * d-lang.c (d_language_data): Likewise.
4636 (d_language::value_print_inner): New member function.
4637 * f-lang.c (f_language_data): Delete la_value_print_inner
4639 (f_language::value_print_inner): New member function.
4640 * f-lang.h (f_value_print_innner): Rename to...
4641 (f_value_print_inner): ...this (note spelling of 'inner').
4642 * f-valprint.c (f_value_print_innner): Rename to...
4643 (f_value_print_inner): ...this (note spelling of 'inner').
4644 * go-lang.c (go_language_data): Delete la_value_print_inner
4646 (go_language::value_print_inner): New member function.
4647 * language.c (language_defn::value_print_inner): Define new member
4649 (unk_lang_value_print_inner): Delete.
4650 (unknown_language_data): Delete la_value_print_inner initializer.
4651 (unknown_language::value_print_inner): New member function.
4652 (auto_language_data): Delete la_value_print_inner initializer.
4653 (auto_language::value_print_inner): New member function.
4654 * language.h (language_data): Delete la_value_print_inner field.
4655 (language_defn::value_print_inner): Delcare new member function.
4656 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4658 (m2_language::value_print_inner): New member function.
4659 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4661 * opencl-lang.c (opencl_language_data): Likewise.
4662 * p-lang.c (pascal_language_data): Likewise.
4663 (pascal_language::value_print_inner): New member function.
4664 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4666 (rust_language::value_print_inner): New member function.
4667 * valprint.c (do_val_print): Update call to value_print_inner.
4669 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4671 * ada-lang.c (ada_language_data): Delete la_value_print
4673 (ada_language::value_print): New member function.
4674 * c-lang.c (c_language_data): Delete la_value_print initializer.
4675 (cplus_language_data): Likewise.
4676 (asm_language_data): Likewise.
4677 (minimal_language_data): Likewise.
4678 * d-lang.c (d_language_data): Likewise.
4679 * f-lang.c (f_language_data): Likewise.
4680 * go-lang.c (go_language_data): Likewise.
4681 * language.c (unk_lang_value_print): Delete.
4682 (language_defn::value_print): Define new member function.
4683 (unknown_language_data): Delete la_value_print initializer.
4684 (unknown_language::value_print): New member function.
4685 (auto_language_data): Delete la_value_print initializer.
4686 (auto_language::value_print): New member function.
4687 * language.h (language_data): Delete la_value_print field.
4688 (language_defn::value_print): Declare new member function.
4689 (LA_VALUE_PRINT): Update call to value_print.
4690 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4691 * objc-lang.c (objc_language_data): Likewise.
4692 * opencl-lang.c (opencl_language_data): Likewise.
4693 * p-lang.c (pascal_language_data): Likewise.
4694 (pascal_language::value_print): New member function.
4695 * rust-lang.c (rust_language_data): Delete la_value_print
4698 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4700 * ada-lang.c (ada_watch_location_expression): Rename to
4701 ada_language::watch_location_expression.
4702 (ada_language_data): Delete la_watch_location_expression
4704 (ada_language::watch_location_expression): New member function,
4705 implementation from ada_watch_location_expression.
4706 * breakpoint.c (watch_command_1): Update call to
4707 watch_location_expression.
4708 * c-lang.c (c_watch_location_expression): Rename to
4709 language_defn::watch_location_expression.
4710 (c_language_data): Delete la_watch_location_expression
4712 (cplus_language_data): Likewise.
4713 (asm_language_data): Likewise.
4714 (minimal_language_data): Likewise.
4715 * c-lang.h (c_watch_location_expression): Delete declaration.
4716 * d-lang.c (d_language_data): Delete la_watch_location_expression
4718 * f-lang.c (f_language_data): Likewise.
4719 * go-lang.c (go_language_data): Likewise.
4720 * language.c (language_defn::watch_location_expression): Member
4721 function implementation from c_watch_location_expression.
4722 (unknown_language_data): Delete la_watch_location_expression
4724 (auto_language_data): Likewise.
4725 * language.h (language_data): Delete la_watch_location_expression
4727 (language_defn::watch_location_expression): Declare new member
4729 * m2-lang.c (m2_language_data): Delete
4730 la_watch_location_expression initializer.
4731 * objc-lang.c (objc_language_data): Likewise.
4732 * opencl-lang.c (opencl_language_data): Likewise.
4733 * p-lang.c (pascal_language_data): Likewise.
4734 * rust-lang.c (rust_watch_location_expression): Rename to
4735 rust_language::watch_location_expression.
4736 (rust_language_data): Delete la_watch_location_expression
4738 (rust_language::watch_location_expression): New member function,
4739 implementation from rust_watch_location_expression.
4741 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4743 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4744 ada_language::collect_symbol_completion_matches.
4745 (ada_language_data): Delete la_collect_symbol_completion_matches
4747 (ada_language::collect_symbol_completion_matches): New member
4748 function, implementation from
4749 ada_collect_symbol_completion_matches.
4750 * c-lang.c (c_language_data): Delete
4751 la_collect_symbol_completion_matches initializer.
4752 (cplus_language_data): Likewise.
4753 (asm_language_data): Likewise.
4754 (minimal_language_data): Likewise.
4755 * d-lang.c (d_language_data): Likewise.
4756 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4757 f_language::collect_symbol_completion_matches.
4758 (f_language_data): Delete la_collect_symbol_completion_matches
4760 (f_language::collect_symbol_completion_matches) New member
4761 function, implementation from f_collect_symbol_completion_matches.
4762 * go-lang.c (go_language_data): Delete
4763 la_collect_symbol_completion_matches initializer.
4764 * language.c (unknown_language_data): Likewise.
4765 (auto_language_data): Likewise.
4766 * language.h (language_data): Delete
4767 la_collect_symbol_completion_matches field.
4768 (language_defn::collect_symbol_completion_matches): New member
4770 * m2-lang.c (m2_language_data): Delete
4771 la_collect_symbol_completion_matches initializer.
4772 * objc-lang.c (objc_language_data): Likewise.
4773 * opencl-lang.c (opencl_language_data): Likewise.
4774 * p-lang.c (pascal_language_data): Likewise.
4775 * rust-lang.c (rust_language_data): Likewise.
4776 * symtab.c (default_collect_symbol_completion_matches): Delete.
4777 (collect_symbol_completion_matches): Update call to
4778 collect_symbol_completion_matches.
4779 (collect_symbol_completion_matches_type): Likewise.
4780 * symtab.h (default_collect_symbol_completion_matches): Delete
4783 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4785 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4786 (ada_language_data): Delete la_word_break_characters initializer.
4787 (ada_language::word_break_characters): New member function.
4788 * c-lang.c (c_language_data): Delete la_word_break_characters
4790 (cplus_language_data): Likewise.
4791 (asm_language_data): Likewise.
4792 (minimal_language_data): Likewise.
4793 * completer.c: Update global comment.
4794 (advance_to_expression_complete_word_point): Update call to
4795 word_break_characters.
4796 (complete_files_symbols): Likewise.
4797 (complete_line_internal_1): Likewise.
4798 (default_completer_handle_brkchars): Likewise.
4799 (skip_quoted_chars): Likewise.
4800 * d-lang.c (d_language_data): Delete la_word_break_characters
4802 * f-lang.c (f_word_break_characters): Delete.
4803 (f_language_data): Delete la_word_break_characters initializer.
4804 (f_language::word_break_characters): New member function.
4805 * go-lang.c (go_language_data): Delete la_word_break_characters
4807 * language.c (unknown_language_data): Likewise.
4808 (auto_language_data): Likewise.
4809 * language.h (default_word_break_characters): Move declaration to
4810 earlier in the file.
4811 (language_data): Delete la_word_break_characters field.
4812 (language_defn::word_break_characters): New member function.
4813 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4815 * objc-lang.c (objc_language_data): Likewise.
4816 * opencl-lang.c (opencl_language_data): Likewise.
4817 * p-lang.c (pascal_language_data): Likewise.
4818 * rust-lang.c (rust_language_data): Likewise.
4820 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4822 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4823 (ada_language_data): Delete la_get_symbol_name_matcher
4825 (language_defn::get_symbol_name_matcher_inner): New member
4827 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4829 (cplus_language_data): Likewise.
4830 (cplus_language::get_symbol_name_matcher_inner): New member
4832 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4833 (minimal_language_data): Likewise.
4834 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4835 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4837 * dictionary.c (iter_match_first_hashed): Update call to
4838 get_symbol_name_matcher.
4839 (iter_match_next_hashed): Likewise.
4840 (iter_match_next_linear): Likewise.
4841 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4842 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4844 (f_language::get_symbol_name_matcher_inner): New member function.
4845 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4847 * language.c (default_symbol_name_matcher): Update header comment,
4849 (language_defn::get_symbol_name_matcher): New definition.
4850 (language_defn::get_symbol_name_matcher_inner): Likewise.
4851 (get_symbol_name_matcher): Delete.
4852 (unknown_language_data): Delete la_get_symbol_name_matcher
4854 (auto_language_data): Likewise.
4855 * language.h (language_data): Delete la_get_symbol_name_matcher
4857 (language_defn::get_symbol_name_matcher): New member function.
4858 (language_defn::get_symbol_name_matcher_inner): Likewise.
4859 (default_symbol_name_matcher): Delete declaration.
4860 * linespec.c (find_methods): Update call to
4861 get_symbol_name_matcher.
4862 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4864 * minsyms.c (lookup_minimal_symbol): Update call to
4865 get_symbol_name_matcher.
4866 (iterate_over_minimal_symbols): Likewise.
4867 * objc-lang.c (objc_language_data): Delete
4868 la_get_symbol_name_matcher initializer.
4869 * opencl-lang.c (opencl_language_data): Likewise.
4870 * p-lang.c (pascal_language_data): Likewise.
4871 * psymtab.c (psymbol_name_matches): Update call to
4872 get_symbol_name_matcher.
4873 * rust-lang.c (rust_language_data): Delete
4874 la_get_symbol_name_matcher initializer.
4875 * symtab.c (symbol_matches_search_name): Update call to
4876 get_symbol_name_matcher.
4877 (compare_symbol_name): Likewise.
4879 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4881 * ada-lang.c (ada_language_data): Delete la_compute_program
4883 * c-lang.c (c_language_data): Likewise.
4884 (c_language::compute_program): New member function.
4885 (cplus_language_data): Delete la_compute_program initializer.
4886 (cplus_language::compute_program): New member function.
4887 (asm_language_data): Delete la_compute_program initializer.
4888 (minimal_language_data): Likewise.
4889 * c-lang.h (c_compute_program): Update comment.
4890 (cplus_compute_program): Likewise.
4891 * compile/compile-c-support.c (c_compute_program): Likewise.
4892 (cplus_compute_program): Likewise.
4893 * compile/compile.c (compile_to_object): Update call to
4895 * d-lang.c (d_language_data): Delete la_compute_program
4897 * f-lang.c (f_language_data): Likewise.
4898 * go-lang.c (go_language_data): Likewise.
4899 * language.c (unknown_language_data): Likewise.
4900 (auto_language_data): Likewise.
4901 * language.h (language_data): Delete la_compute_program field.
4902 (language_defn::compute_program): New member function.
4903 * m2-lang.c (m2_language_data): Delete la_compute_program
4905 * objc-lang.c (objc_language_data): Likewise.
4906 * opencl-lang.c (opencl_language_data): Likewise.
4907 * p-lang.c (pascal_language_data): Likewise.
4908 * rust-lang.c (rust_language_data): Likewise.
4910 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4912 * ada-lang.c (ada_language_data) Delete
4913 la_class_name_from_physname initializer.
4914 * c-lang.c (c_language_data): Likewise.
4915 (cplus_language_data): Likewise.
4916 (cplus_language::class_name_from_physname): New member function.
4917 (asm_language_data): Delete la_class_name_from_physname
4919 (minimal_language_data): Likewise.
4920 * d-lang.c (d_language_data): Likewise.
4921 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4922 method on language_defn class.
4923 (guess_full_die_structure_name): Likewise.
4924 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4926 * go-lang.c (go_language_data): Likewise.
4927 * language.c (language_class_name_from_physname): Delete.
4928 (unk_lang_class_name): Delete.
4929 (unknown_language_data): Delete la_class_name_from_physname
4931 (auto_language_data): Likewise.
4932 * language.h (language_data): Delete la_class_name_from_physname
4934 (language_defn::class_name_from_physname): New function.
4935 (language_class_name_from_physname): Delete declaration.
4936 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4938 * objc-lang.c (objc_language_data): Likewise.
4939 * opencl-lang.c (opencl_language_data): Likewise.
4940 * p-lang.c (pascal_language_data): Likewise.
4941 * rust-lang.c (rust_language_data): Likewise.
4943 2020-06-16 Tom Tromey <tom@tromey.com>
4945 * tui/tui-data.h (STATUS_NAME): New macro.
4946 * tui/tui-layout.c (tui_remove_some_windows)
4947 (initialize_known_windows, tui_register_window)
4948 (tui_layout_split::remove_windows, initialize_layouts)
4949 (tui_new_layout_command): Don't use hard-coded window names.
4951 2020-06-16 Tom Tromey <tom@tromey.com>
4954 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4955 tui_initialize_readline. Only run once. Call rl_initialize.
4956 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4957 tui_initialize_readline.
4958 * tui/tui-io.c (tui_setup_io): Call
4959 tui_ensure_readline_initialized.
4960 * tui/tui-interp.c (tui_interp::init): Update.
4962 2020-06-16 Tom Tromey <tom@tromey.com>
4964 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4965 Also preserve the status window.
4967 2020-06-16 Tom Tromey <tom@tromey.com>
4969 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4970 where m_window==nullptr.
4972 2020-06-15 Tom Tromey <tromey@adacore.com>
4974 * windows-nat.c (windows_nat::handle_output_debug_string):
4976 (windows_nat::handle_ms_vc_exception): Update.
4977 * target.h (target_read_string): Change API.
4978 * target.c (target_read_string): Change API.
4979 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4981 * solib-frv.c (frv_current_sos): Update.
4982 * solib-dsbt.c (dsbt_current_sos): Update.
4983 * solib-darwin.c (darwin_current_sos): Update.
4984 * linux-thread-db.c (inferior_has_bug): Update.
4985 * expprint.c (print_subexp_standard): Update.
4986 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4987 (ada_exception_message_1): Update.
4989 2020-06-15 Tom Tromey <tromey@adacore.com>
4991 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4993 2020-06-15 Tom Tromey <tromey@adacore.com>
4995 * valprint.c (read_string): Update comment.
4996 * target.c (MIN): Remove.
4997 (target_read_string): Rewrite.
4999 2020-06-15 Tom Tromey <tromey@adacore.com>
5001 * corefile.c (read_memory_string): Remove.
5002 * ada-valprint.c (ada_value_print_ptr): Update.
5003 * ada-lang.h (ada_tag_name): Change return type.
5004 * ada-lang.c (type_from_tag): Update.
5005 (ada_tag_name_from_tsd): Change return type. Use
5007 (ada_tag_name): Likewise.
5008 * gdbcore.h (read_memory_string): Don't declare.
5010 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
5012 * symtab.c (rbreak_command): Ignore Windows drive colon.
5014 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
5016 * NEWS: Mention removed GDBserver host support.
5018 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
5020 * features/riscv/rebuild-csr-xml.sh: Updated.
5022 2020-06-11 Tom Tromey <tom@tromey.com>
5025 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
5027 2020-06-09 Jonny Grant <jg@jguk.org>
5028 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
5030 * main.c (captured_main_1): Don't print new line after help.
5031 (print_gdb_help): add mailing list and IRC channel information
5032 to --help. Add new lines between items in the footer. Remove
5033 quotes around bug url.
5035 2020-06-11 Keith Seitz <keiths@redhat.com>
5038 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
5039 Resolve typedefs for type length calculations.
5041 2020-06-10 Tom de Vries <tdevries@suse.de>
5044 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
5045 (write_psymbols): Enable .gdb_index for ada.
5046 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
5049 2020-06-10 Tom de Vries <tdevries@suse.de>
5051 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
5052 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
5053 namei" instead of "const char *name" argument.
5054 (dw2_map_matching_symbols): Use "offset_type namei" variant of
5055 dw2_symtab_iter_init.
5057 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5059 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
5060 to use type::field and field::type instead.
5062 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5064 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
5065 to use field::type instead.
5067 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5069 * gdbtypes.h (struct field) <type, set_type>: New methods.
5070 Rename `type` field to...
5071 <m_type>: ... this. Change references throughout to use type or
5073 (FIELD_TYPE): Use field::type. Change call sites that modify
5074 the field's type to use field::set_type instead.
5076 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5078 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
5079 to use type::index_type instead.
5081 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
5083 * gdbtypes.h (struct type) <index_type, set_index_type>: New
5085 (TYPE_INDEX_TYPE): Use type::index_type.
5086 * gdbtypes.c (create_array_type_with_stride): Likewise.
5088 2020-06-07 Tom Tromey <tom@tromey.com>
5090 * valprint.c (generic_val_print_float): Remove "embedded_offset"
5092 (generic_value_print): Update.
5094 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5096 Revert commit 982a38f60b0.
5097 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
5099 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
5101 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
5102 avoid use after free.
5104 2020-06-05 Tom de Vries <tdevries@suse.de>
5108 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
5110 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
5112 (dwarf2_read_debug_names): Likewise.
5113 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
5114 object when re-using a per_bfd object with an index.
5116 2020-06-03 Tom de Vries <tdevries@suse.de>
5119 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
5121 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
5124 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5126 * ada-lang.c (ada_language_data): Delete skip_trampoline
5128 * c-lang.c (c_language_data): Likewise.
5129 (cplus_language_data): Likewise.
5130 (cplus_language::skip_trampoline): New member function.
5131 (asm_language_data): Delete skip_trampoline initializer.
5132 (minimal_language_data): Likewise.
5133 * d-lang.c (d_language_data): Likewise.
5134 * f-lang.c (f_language_data): Likewise.
5135 * go-lang.c (go_language_data): Likewise.
5136 * language.c (unk_lang_trampoline): Delete function.
5137 (skip_language_trampoline): Update.
5138 (unknown_language_data): Delete skip_trampoline initializer.
5139 (auto_language_data): Likewise.
5140 * language.h (language_data): Delete skip_trampoline field.
5141 (language_defn::skip_trampoline): New function.
5142 * m2-lang.c (m2_language_data): Delete skip_trampoline
5144 * objc-lang.c (objc_skip_trampoline): Delete function, move
5145 implementation to objc_language::skip_trampoline.
5146 (objc_language_data): Delete skip_trampoline initializer.
5147 (objc_language::skip_trampoline): New member function with
5148 implementation from objc_skip_trampoline.
5149 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
5151 * p-lang.c (pascal_language_data): Likewise.
5152 * rust-lang.c (rust_language_data): Likewise.
5154 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5156 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
5157 (ada_language::demangle): New member function.
5158 * c-lang.c (c_language_data): Delete la_demangle initializer.
5159 (cplus_language_data): Delete la_demangle initializer.
5160 (cplus_language::demangle): New member function.
5161 (asm_language_data): Delete la_demangle initializer.
5162 (minimal_language_data): Delete la_demangle initializer.
5163 * d-lang.c (d_language_data): Delete la_demangle initializer.
5164 (d_language::demangle): New member function.
5165 * f-lang.c (f_language_data): Delete la_demangle initializer.
5166 (f_language::demangle): New member function.
5167 * go-lang.c (go_language_data): Delete la_demangle initializer.
5168 (go_language::demangle): New member function.
5169 * language.c (language_demangle): Update.
5170 (unk_lang_demangle): Delete.
5171 (unknown_language_data): Delete la_demangle initializer.
5172 (unknown_language::demangle): New member function.
5173 (auto_language_data): Delete la_demangle initializer.
5174 (auto_language::demangle): New member function.
5175 * language.h (language_data): Delete la_demangle field.
5176 (language_defn::demangle): New function.
5177 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
5178 * objc-lang.c (objc_language_data): Delete la_demangle
5180 (objc_language::demangle): New member function.
5181 * opencl-lang.c (opencl_language_data): Delete la_demangle
5183 * p-lang.c (pascal_language_data): Likewise.
5184 * rust-lang.c (rust_language_data): Likewise.
5185 (rust_language::demangle): New member function.
5187 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5189 * ada-lang.c (ada_language_data): Delete la_print_type
5191 (ada_language::print_type): New member function.
5192 * c-lang.c (c_language_data): Delete la_print_type initializer.
5193 (c_language::print_type): New member function.
5194 (cplus_language_data): Delete la_print_type initializer.
5195 (cplus_language::print_type): New member function.
5196 (asm_language_data): Delete la_print_type initializer.
5197 (asm_language::print_type): New member function.
5198 (minimal_language_data): Delete la_print_type initializer.
5199 (minimal_language::print_type): New member function.
5200 * d-lang.c (d_language_data): Delete la_print_type initializer.
5201 (d_language::print_type): New member function.
5202 * f-lang.c (f_language_data): Delete la_print_type initializer.
5203 (f_language::print_type): New member function.
5204 * go-lang.c (go_language_data): Delete la_print_type initializer.
5205 (go_language::print_type): New member function.
5206 * language.c (unk_lang_print_type): Delete.
5207 (unknown_language_data): Delete la_print_type initializer.
5208 (unknown_language::print_type): New member function.
5209 (auto_language_data): Delete la_print_type initializer.
5210 (auto_language::print_type): New member function.
5211 * language.h (language_data): Delete la_print_type field.
5212 (language_defn::print_type): New function.
5213 (LA_PRINT_TYPE): Update.
5214 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5215 (m2_language::print_type): New member function.
5216 * objc-lang.c (objc_language_data): Delete la_print_type
5218 (objc_language::print_type): New member function.
5219 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5220 to opencl_language::print_type.
5221 (opencl_language_data): Delete la_print_type initializer.
5222 (opencl_language::print_type): New member function, implementation
5223 from opencl_print_type.
5224 * p-lang.c (pascal_language_data): Delete la_print_type
5226 (pascal_language::print_type): New member function.
5227 * rust-lang.c (rust_print_type): Delete, implementation moved to
5228 rust_language::print_type.
5229 (rust_language_data): Delete la_print_type initializer.
5230 (rust_language::print_type): New member function, implementation
5231 from rust_print_type.
5233 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5235 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5236 implementation moves to...
5237 (ada_language::sniff_from_mangled_name): ...here. Update return
5239 (ada_language_data): Delete la_sniff_from_mangled_name
5241 * c-lang.c (c_language_data): Likewise.
5242 (cplus_language_data): Likewise.
5243 (cplus_language::sniff_from_mangled_name): New member function,
5244 implementation taken from gdb_sniff_from_mangled_name.
5245 (asm_language_data): Delete la_sniff_from_mangled_name
5247 (minimal_language_data): Likewise.
5248 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5249 implementation moves to cplus_language::sniff_from_mangled_name.
5250 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5251 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5253 (d_language::sniff_from_mangled_name): ...here.
5254 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5255 * f-lang.c (f_language_data): Likewise.
5256 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5258 (go_language::sniff_from_mangled_name): ...here.
5259 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5260 * language.c (language_sniff_from_mangled_name): Delete.
5261 (unknown_language_data): Delete la_sniff_from_mangled_name
5263 (auto_language_data): Likewise.
5264 * language.h (language_data): Delete la_sniff_from_mangled_name
5266 (language_defn::sniff_from_mangled_name): New function.
5267 (language_sniff_from_mangled_name): Delete declaration.
5268 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5270 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5271 implementation moves to...
5272 (objc_language::sniff_from_mangled_name): ...here.
5273 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5274 * opencl-lang.c (opencl_language_data): Likewise.
5275 * p-lang.c (pascal_language_data): Likewise.
5276 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5277 implementation moves to...
5278 (rust_language::sniff_from_mangled_name): ...here.
5279 (rust_language_data): Delete la_sniff_from_mangled_name
5281 * symtab.c (symbol_find_demangled_name): Call
5282 sniff_from_mangled_name member function.
5284 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5286 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5288 * c-lang.c (c_language_data): Likewise.
5289 (cplus_language_data): Likewise.
5290 (cplus_language::search_name_hash): New member function.
5291 (asm_language_data): Delete la_search_name_hash initializer.
5292 (minimal_language_data): Likewise.
5293 * d-lang.c (d_language_data): Likewise.
5294 * dictionary.c (default_search_name_hash): Rename to...
5295 (language_defn::search_name_hash): ...this.
5296 * f-lang.c (f_language_data): Likewise.
5297 (f_language::search_name_hash): New member function.
5298 * go-lang.c (go_language_data): Delete la_search_name_hash
5300 * language.c (unknown_language_data): Likewise.
5301 (auto_language_data): Likewise.
5302 * language.h (struct language_data): Delete la_search_name_hash
5304 (language_defn::search_name_hash): Declare new member function.
5305 (default_search_name_hash): Delete declaration.
5306 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5308 * objc-lang.c (objc_language_data): Likewise.
5309 * opencl-lang.c (opencl_language_data): Likewise.
5310 * p-lang.c (pascal_language_data): Likewise.
5311 * rust-lang.c (rust_language_data): Likewise.
5312 * symtab.c (search_name_hash): Update call.
5314 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5316 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5318 * c-lang.c (class compile_instance): Declare.
5319 (c_language_data): Delete la_get_compile_instance initializer.
5320 (c_language::get_compile_instance): New member function.
5321 (cplus_language_data): Delete la_get_compile_instance initializer.
5322 (cplus_language::get_compile_instance): New member function.
5323 (asm_language_data): Delete la_get_compile_instance initializer.
5324 (minimal_language_data): Likewise.
5325 * c-lang.h (c_get_compile_context): Update comment.
5326 (cplus_get_compile_context): Update comment.
5327 * compile/compile.c (compile_to_object): Update calls, don't rely
5328 on function pointer being NULL.
5329 * d-lang.c (d_language_data): Delete la_get_compile_instance
5331 * f-lang.c (f_language_data): Likewise.
5332 * go-lang.c (go_language_data): Likewise.
5333 * language.c (unknown_language_data): Likewise.
5334 (auto_language_data): Likewise.
5335 * language.h (language_data): Delete la_get_compile_instance field.
5336 (language_defn::get_compile_instance): New member function.
5337 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5339 * objc-lang.c (objc_language_data): Likewise.
5340 * opencl-lang.c (opencl_language_data): Likewise.
5341 * p-lang.c (pascal_language_data): Likewise.
5342 * rust-lang.c (rust_language_data): Likewise.
5344 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5346 * ada-lang.c (ada_add_all_symbols): Update comment.
5347 (ada_iterate_over_symbols): Delete, move implementation to...
5348 (ada_language::iterate_over_symbols): ...here, a new member
5349 function, rewrite to use range based for loop.
5350 (ada_language_data): Delete la_iterate_over_symbols initializer.
5351 * c-lang.c (c_language_data): Likewise.
5352 (cplus_language_data): Likewise.
5353 (asm_language_data): Likewise.
5354 (minimal_language_data): Likewise.
5355 * d-lang.c (d_language_data): Likewise.
5356 * f-lang.c (f_language_data): Likewise.
5357 * go-lang.c (go_language_data): Likewise.
5358 * language.c (unknown_language_data): Likewise.
5359 (auto_language_data): Likewise.
5360 * language.h (language_data): Delete la_iterate_over_symbols field.
5361 (language_defn::iterate_over_symbols): New member function.
5362 (LA_ITERATE_OVER_SYMBOLS): Update.
5363 * linespec.c (iterate_over_all_matching_symtabs): Update.
5364 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5366 * objc-lang.c (objc_language_data): Likewise.
5367 * opencl-lang.c (opencl_language_data): Likewise.
5368 * p-lang.c (pascal_language_data): Likewise.
5369 * rust-lang.c (rust_language_data): Likewise.
5371 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5373 * ada-lang.c (ada_language_data): Delete
5374 la_lookup_transparent_type initializer.
5375 * c-lang.c (c_language_data): Likewise.
5376 (cplus_language_data): Likewise.
5377 (cplus_language::lookup_transparent_type): New member function.
5378 (asm_language_data): Delete la_lookup_transparent_type
5380 (minimal_language_data): Likewise.
5381 * d-lang.c (d_language_data): Likewise.
5382 * f-lang.c (f_language_data): Likewise.
5383 * go-lang.c (go_language_data): Likewise.
5384 * language.c (unknown_language_data): Likewise.
5385 (auto_language_data): Likewise.
5386 * language.h (struct language_data): Delete
5387 la_lookup_transparent_type field.
5388 (language_defn::lookup_transparent_type): New member function.
5389 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5391 * objc-lang.c (objc_language_data): Likewise.
5392 * opencl-lang.c (opencl_language_data): Likewise.
5393 * p-lang.c (pascal_language_data): Likewise.
5394 * rust-lang.c (rust_language_data): Likewise.
5395 * symtab.c (symbol_matches_domain): Update call.
5397 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5399 * ada-lang.c (ada_language_arch_info): Delete function, move
5400 implementation to...
5401 (ada_language::language_arch_info): ...here, a new member
5403 (ada_language_data): Delete la_language_arch_info.
5404 * c-lang.c (c_language_data): Likewise.
5405 (c_language::language_arch_info): New member function.
5406 (cplus_language_arch_info): Delete function, move
5407 implementation to...
5408 (cplus_language::language_arch_info): ...here, a new member
5410 (cplus_language_data): Delete la_language_arch_info.
5411 (asm_language_data): Likewise.
5412 (asm_language::language_arch_info): New member function.
5413 (minimal_language_data): Delete la_language_arch_info.
5414 (minimal_language::language_arch_info): New member function.
5415 * d-lang.c (d_language_arch_info): Delete function, move
5416 implementation to...
5417 (d_language::language_arch_info): ...here, a new member
5419 (d_language_data): Delete la_language_arch_info.
5420 * f-lang.c (f_language_arch_info): Delete function, move
5421 implementation to...
5422 (f_language::language_arch_info): ...here, a new member
5424 (f_language_data): Delete la_language_arch_info.
5425 * go-lang.c (go_language_arch_info): Delete function, move
5426 implementation to...
5427 (go_language::language_arch_info): ...here, a new member
5429 (go_language_data): Delete la_language_arch_info.
5430 * language.c (unknown_language_data): Likewise.
5431 (unknown_language::language_arch_info): New member function.
5432 (auto_language_data): Delete la_language_arch_info.
5433 (auto_language::language_arch_info): New member function.
5434 (language_gdbarch_post_init): Update call to
5435 la_language_arch_info.
5436 * language.h (language_data): Delete la_language_arch_info
5438 (language_defn::language_arch_info): New function.
5439 * m2-lang.c (m2_language_arch_info): Delete function, move
5440 implementation to...
5441 (m2_language::language_arch_info): ...here, a new member
5443 (m2_language_data): Delete la_language_arch_info.
5444 * objc-lang.c (objc_language_arch_info): Delete function, move
5445 implementation to...
5446 (objc_language::language_arch_info): ...here, a new member
5448 (objc_language_data): Delete la_language_arch_info.
5449 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5450 implementation to...
5451 (opencl_language::language_arch_info): ...here, a new member
5453 (opencl_language_data): Delete la_language_arch_info.
5454 * p-lang.c (pascal_language_arch_info): Delete function, move
5455 implementation to...
5456 (pascal_language::language_arch_info): ...here, a new member
5458 (pascal_language_data): Delete la_language_arch_info.
5459 * rust-lang.c (rust_language_arch_info): Delete function, move
5460 implementation to...
5461 (rust_language::language_arch_info): ...here, a new member
5463 (rust_language_data): Delete la_language_arch_info.
5465 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5467 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5469 * c-lang.c (c_language_data): Likewise.
5470 (cplus_language_data): Likewise.
5471 (cplus_language::pass_by_reference_info): New method.
5472 (asm_language_data): Delete la_pass_by_reference initializer.
5473 (minimal_language_data): Likewise.
5474 * cp-abi.c (cp_pass_by_reference): Remove use of
5475 default_pass_by_reference.
5476 * d-lang.c (d_language_data): Likewise.
5477 * f-lang.c (f_language_data): Likewise.
5478 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5479 default_pass_by_reference.
5480 * go-lang.c (go_language_data): Likewise.
5481 * language.c (language_pass_by_reference): Update.
5482 (default_pass_by_reference): Delete.
5483 (unknown_language_data): Delete la_pass_by_reference
5485 (auto_language_data): Likewise.
5486 * language.h (struct language_data): Delete la_pass_by_reference
5488 (language_defn::pass_by_reference_info): New member function.
5489 (default_pass_by_reference): Delete declaration.
5490 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5492 * objc-lang.c (objc_language_data): Likewise.
5493 * opencl-lang.c (opencl_language_data): Likewise.
5494 * p-lang.c (pascal_language_data): Likewise.
5495 * rust-lang.c (rust_language_data): Likewise.
5497 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5499 * ada-lang.c (ada_read_var_value): Delete function, move
5500 implementation to...
5501 (ada_language::read_var_value): ...here.
5502 (ada_language_data): Delete la_read_var_value initializer.
5503 * c-lang.c (c_language_data): Likewise.
5504 (cplus_language_data): Likewise.
5505 (minimal_language_data): Likewise.
5506 * d-lang.c (d_language_data): Likewise.
5507 * f-lang.c (f_language_data): Likewise.
5508 * findvar.c (default_read_var_value): Rename to...
5509 (language_defn::read_var_value): ...this.
5510 * findvar.c (read_var_value): Update header comment, and change to
5511 call member function instead of function pointer.
5512 * go-lang.c (go_language_data): Likewise.
5513 * language.c (unknown_language_data): Delete la_read_var_value
5515 (auto_language_data): Likewise.
5516 * language.h (struct language_data): Delete la_read_var_value
5518 (language_defn::read_var_value): New member function.
5519 (default_read_var_value): Delete declaration.
5520 * m2-lang.c (m2_language_data): Delete la_read_var_value
5522 * objc-lang.c (objc_language_data): Likewise.
5523 * opencl-lang.c (opencl_language_data): Likewise.
5524 * p-lang.c (pascal_language_data): Likewise.
5525 * rust-lang.c (rust_language_data): Likewise.
5526 * value.h (default_read_var_value): Delete declaration.
5528 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5530 * ada-lang.c (ada_print_array_index): Delete function, move
5531 implementation to...
5532 (ada_language::print_array_index): ...here.
5533 (ada_language_data): Delete la_print_array_index initializer.
5534 * c-lang.c (c_language_data): Likewise.
5535 (cplus_language_data): Likewise.
5536 (minimal_language_data): Likewise.
5537 * d-lang.c (d_language_data): Likewise.
5538 * f-lang.c (f_language_data): Likewise.
5539 * go-lang.c (go_language_data): Likewise.
5540 * language.c (default_print_array_index): Delete function, move
5541 implementation to...
5542 (language_defn::print_array_index): ...here.
5543 (unknown_language_data): Delete la_print_array_index initializer.
5544 (auto_language_data): Likewise.
5545 * language.h (struct language_data): Delete la_print_array_index
5547 (language_defn::print_array_index): New member function.
5548 (LA_PRINT_ARRAY_INDEX): Update.
5549 (default_print_array_index): Delete declaration.
5550 * m2-lang.c (m2_language_data): Delete la_print_array_index
5552 * objc-lang.c (objc_language_data): Likewise.
5553 * opencl-lang.c (opencl_language_data): Likewise.
5554 * p-lang.c (pascal_language_data): Likewise.
5555 * rust-lang.c (rust_language_data): Likewise.
5557 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5559 * gdb/ada-lang.c (ada_language_defn): Convert to...
5560 (ada_language_data): ...this.
5561 (class ada_language): New class.
5562 (ada_language_defn): New static global.
5563 * gdb/c-lang.c (c_language_defn): Convert to...
5564 (c_language_data): ...this.
5565 (class c_language): New class.
5566 (c_language_defn): New static global.
5567 (cplus_language_defn): Convert to...
5568 (cplus_language_data): ...this.
5569 (class cplus_language): New class.
5570 (cplus_language_defn): New static global.
5571 (asm_language_defn): Convert to...
5572 (asm_language_data): ...this.
5573 (class asm_language): New class.
5574 (asm_language_defn): New static global.
5575 (minimal_language_defn): Convert to...
5576 (minimal_language_data): ...this.
5577 (class minimal_language): New class.
5578 (minimal_language_defn): New static global.
5579 * gdb/d-lang.c (d_language_defn): Convert to...
5580 (d_language_data): ...this.
5581 (class d_language): New class.
5582 (d_language_defn): New static global.
5583 * gdb/f-lang.c (f_language_defn): Convert to...
5584 (f_language_data): ...this.
5585 (class f_language): New class.
5586 (f_language_defn): New static global.
5587 * gdb/go-lang.c (go_language_defn): Convert to...
5588 (go_language_data): ...this.
5589 (class go_language): New class.
5590 (go_language_defn): New static global.
5591 * gdb/language.c (unknown_language_defn): Remove declaration.
5592 (current_language): Initialize to nullptr, real initialization is
5593 moved to _initialize_language.
5594 (languages): Delete global.
5595 (language_defn::languages): Define.
5596 (set_language_command): Use language_defn::languages.
5597 (set_language): Likewise.
5598 (range_error): Likewise.
5599 (language_enum): Likewise.
5600 (language_def): Likewise.
5601 (add_set_language_command): Use language_def::languages for the
5602 language list, and language_def to lookup language pointers.
5603 (skip_language_trampoline): Use language_defn::languages.
5604 (unknown_language_defn): Convert to...
5605 (unknown_language_data): ...this.
5606 (class unknown_language): New class.
5607 (unknown_language_defn): New static global.
5608 (auto_language_defn): Convert to...
5609 (auto_language_data): ...this.
5610 (class auto_language): New class.
5611 (auto_language_defn): New static global.
5612 (language_gdbarch_post_init): Use language_defn::languages.
5613 (_initialize_language): Initialize current_language.
5614 * gdb/language.h (struct language_defn): Rename to...
5615 (struct language_data): ...this.
5616 (struct language_defn): New.
5617 (auto_language_defn): Delete.
5618 (unknown_language_defn): Delete.
5619 (minimal_language_defn): Delete.
5620 (ada_language_defn): Delete.
5621 (asm_language_defn): Delete.
5622 (c_language_defn): Delete.
5623 (cplus_language_defn): Delete.
5624 (d_language_defn): Delete.
5625 (f_language_defn): Delete.
5626 (go_language_defn): Delete.
5627 (m2_language_defn): Delete.
5628 (objc_language_defn): Delete.
5629 (opencl_language_defn): Delete.
5630 (pascal_language_defn): Delete.
5631 (rust_language_defn): Delete.
5632 * gdb/m2-lang.c (m2_language_defn): Convert to...
5633 (m2_language_data): ...this.
5634 (class m2_language): New class.
5635 (m2_language_defn): New static global.
5636 * gdb/objc-lang.c (objc_language_defn): Convert to...
5637 (objc_language_data): ...this.
5638 (class objc_language): New class.
5639 (objc_language_defn): New static global.
5640 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5641 (opencl_language_data): ...this.
5642 (class opencl_language): New class.
5643 (opencl_language_defn): New static global.
5644 * gdb/p-lang.c (pascal_language_defn): Convert to...
5645 (pascal_language_data): ...this.
5646 (class pascal_language): New class.
5647 (pascal_language_defn): New static global.
5648 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5649 language pointer, update comment format.
5650 * gdb/rust-lang.c (rust_language_defn): Convert to...
5651 (rust_language_data): ...this.
5652 (class rust_language): New class.
5653 (rust_language_defn): New static global.
5655 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5657 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5659 <m_stmt_at_address>: New member variable.
5660 (lnp_state_machine::record_line): Don't record some lines, update
5661 tracking of is_stmt at the same address.
5662 (lnp_state_machine::lnp_state_machine): Initialise new member
5665 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5667 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5668 "-include gnu-nat-mig.h".
5669 * gnu-nat-mig.h: New file.
5670 * gnu-nat.c: Include "gnu-nat-mig.h".
5671 (exc_server, msg_reply_server, notify_server,
5672 process_reply_server): Remove declarations.
5674 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5676 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5677 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5678 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5679 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5680 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5681 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5682 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5683 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5684 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5685 to gnu_nat_target class.
5686 * gnu-nat.c: Likewise.
5687 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5688 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5689 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5691 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5692 instead of `gnu_target'.
5694 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5696 * i386-gnu-tdep.c: Include "gdbcore.h"
5697 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5698 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5699 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5700 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5701 i386_gnu_sigcontext_addr): New functions
5702 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5703 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5706 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5708 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5709 before fork_inferior call. Avoid calling it if target_is_pushed returns
5712 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5714 * gnu-nat.h (gnu_target): New variable declaration.
5715 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5717 * gnu-nat.c (gnu_target): New variable.
5718 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5719 add_thread_silent, and add_thread calls.
5720 (gnu_nat_target::create_inferior): Pass gnu_target to
5721 add_thread_silent, thread_change_ptid call.
5722 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5725 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5727 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5728 (gnu_nat_target::find_memory_regions): Remove unused
5729 `old_address' variable.
5731 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5733 * gnu-nat.c: Include "gdbarch.h".
5735 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5737 * reply_mig_hack.awk (Error return): Cast function through
5738 void *, to bypass compiler function call check.
5740 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5742 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5743 $(srcdir)/reply_mig_hack.awk.
5745 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5747 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5749 2020-05-30 Jonny Grant <jg@jguk.org>
5751 * configure.ac (ACX_BUGURL): change bug URL to https.
5753 2020-05-30 Pedro Alves <palves@redhat.com>
5755 * cp-support.c (replace_typedefs_template): New.
5756 (replace_typedefs_qualified_name): Handle
5757 DEMANGLE_COMPONENT_TEMPLATE.
5759 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
5761 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5762 dwarf2/index-cache.h, dwarf2/index-write.c,
5763 dwarf2/index-write.h, dwarf2/line-header.c,
5764 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5765 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5766 variables and fields from `dwarf2_per_objfile` to just
5767 `per_objfile` throughout.
5769 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5771 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5772 <push_dwarf_reg_entry_value>: Add comment.
5774 2020-05-28 Kevin Buettner <kevinb@redhat.com>
5775 Keith Seitz <keiths@redhat.com>
5777 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5778 instead of PyEval_ReleaseLock.
5779 (class gdbpy_gil): Move to earlier in file.
5780 (finalize_python): Set gdb_python_initialized.
5781 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5782 when not initialized.
5784 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
5786 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5787 <push_dwarf_reg_entry_value>: Remove assert. Override
5788 per_objfile with caller_per_objfile.
5790 2020-05-28 Tom de Vries <tdevries@suse.de>
5792 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5793 PR gold/15646 workaround to symbol kind "type".
5795 2020-05-27 Tom Tromey <tromey@adacore.com>
5797 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5799 2020-05-27 Tom Tromey <tromey@adacore.com>
5801 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5802 Use htab_find_with_hash.
5803 <add_abbrev>: Remove "abbrev_number" parameter.
5804 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5805 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5806 (hash_abbrev): Add comment.
5807 (abbrev_table::lookup_abbrev): Move to header file.
5808 (abbrev_table::read): Update.
5810 2020-05-27 Tom Tromey <tromey@adacore.com>
5812 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5814 <canonical_name>: New member.
5815 <raw_name>: Rename from "name".
5816 (partial_die_info): Initialize canonical_name.
5817 (scan_partial_symbols): Check raw_name.
5818 (partial_die_parent_scope, partial_die_full_name)
5819 (add_partial_symbol, add_partial_subprogram)
5820 (add_partial_enumeration, load_partial_dies): Use "name" method.
5821 (partial_die_info::name): New method.
5822 (partial_die_info::read, guess_partial_die_structure_name)
5823 (partial_die_info::fixup): Update.
5825 2020-05-27 Tom Tromey <tromey@adacore.com>
5827 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5828 <get_ref_die_offset>: Inline.
5829 <get_ref_die_offset_complaint>: New method.
5830 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5831 (attribute::get_ref_die_offset_complaint): Rename from
5832 get_ref_die_offset. Just issue complaint.
5834 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5836 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5838 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5840 * exec.c (exec_file_attach): Use errno value of first openp failure.
5842 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
5844 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5845 Don't close thread handle.
5847 2020-05-27 Tom Tromey <tom@tromey.com>
5848 Simon Marchi <simon.marchi@efficios.com>
5850 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5852 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5854 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5855 dwarf2_per_bfd_objfile_data_key>: New globals.
5856 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5857 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5858 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5860 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5861 short-circuit when sharing.
5862 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5863 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5865 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5867 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5869 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5870 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5872 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5874 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5875 build_name_components, find_name_components_bounds>:
5876 Add per_objfile parameter.
5877 (struct mapped_index) <symbol_name_at>: Likewise.
5878 (struct mapped_debug_names): Remove constructor.
5879 <dwarf2_per_objfile>: Remove field.
5880 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5881 (mapped_index_base::find_name_components_bounds,
5882 mapped_index_base::build_name_components,
5883 dw2_expand_symtabs_matching_symbol): Likewise.
5884 (class mock_mapped_index) <symbol_name_at>: Likewise.
5885 (check_match): Likewise.
5886 (check_find_bounds_finds): Likewise.
5887 (test_mapped_index_find_name_component_bounds): Update.
5888 (CHECK_MATCH): Update.
5889 (dw2_expand_symtabs_matching): Update.
5890 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5891 per_objfile parameter.
5892 <find_vec_in_debug_names>: Likewise.
5893 <m_per_objfile>: New field.
5894 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5896 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5897 (dw2_debug_names_iterator::next): Update.
5898 (dw2_debug_names_lookup_symbol): Update.
5899 (dw2_debug_names_expand_symtabs_for_function): Update.
5900 (dw2_debug_names_map_matching_symbols): Update.
5901 (dw2_debug_names_expand_symtabs_matching): Update.
5902 (dwarf2_read_debug_names): Update.
5904 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5906 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5907 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5908 move to dwarf2_per_objfile.
5909 <read_in_chain>: Remove.
5910 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5911 remove_all_cus, age_comp_units>: New methods.
5912 <m_dwarf2_cus>: New member.
5913 (struct dwarf2_per_cu_data) <cu>: Remove.
5914 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5915 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5916 moved to methods of dwarf2_per_objfile.
5917 (dwarf2_clear_marks): Remove.
5918 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5919 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5920 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5921 (dwarf2_per_objfile::remove_all_cus): New.
5922 (class free_cached_comp_units) <~free_cached_comp_units>:
5925 (dw2_do_instantiate_symtab): Adjust.
5926 (fill_in_sig_entry_from_dwo_entry): Adjust.
5927 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5928 (cutu_reader::cutu_reader): Likewise.
5929 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5930 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5931 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5932 and dwarf2_per_objfile::age_comp_units.
5933 (load_partial_comp_unit): Update.
5934 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5935 (process_queue): Likewise.
5936 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5938 (dwarf2_read_addr_index): Likewise.
5939 (follow_die_offset): Likewise.
5940 (dwarf2_fetch_die_loc_sect_off): Likewise.
5941 (dwarf2_fetch_constant_bytes): Likewise.
5942 (dwarf2_fetch_die_type_sect_off): Likewise.
5943 (follow_die_sig_1): Likewise.
5944 (load_full_type_unit): Likewise.
5945 (read_signatured_type): Likewise.
5946 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5947 (dwarf2_cu::~dwarf2_cu): Remove.
5948 (dwarf2_per_objfile::get_cu): New.
5949 (dwarf2_per_objfile::set_cu): New.
5950 (age_cached_comp_units): Rename to...
5951 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5952 to std::unordered_map.
5953 (free_one_cached_comp_unit): Rename to...
5954 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5955 to std::unordered_map.
5956 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5957 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5958 a dwarf2_per_objfile in data.
5959 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5960 (dwarf2_clear_marks): Remove.
5962 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
5964 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5965 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5966 (init_tu_and_read_dwo_dies): Likewise.
5967 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5968 (cutu_reader::cutu_reader): Likewise.
5969 (load_partial_comp_unit): Likewise.
5970 (process_psymtab_comp_unit): Update.
5971 (build_type_psymtabs_1): Update.
5972 (process_skeletonless_type_unit): Update.
5973 (load_full_comp_unit): Update.
5974 (find_partial_die): Update.
5975 (dwarf2_read_addr_index): Update.
5976 (read_signatured_type): Update.
5978 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5980 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5981 m_header_read_in>: New fields.
5982 <get_header>: New method.
5983 * dwarf2/read.c (per_cu_header_read_in): Remove.
5984 (dwarf2_per_cu_data::get_header): New.
5985 (dwarf2_per_cu_data::addr_size): Update.
5986 (dwarf2_per_cu_data::offset_size): Update.
5987 (dwarf2_per_cu_data::ref_addr_size): Update.
5989 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5991 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5992 (dw2_do_instantiate_symtab): Update.
5993 (queue_and_load_all_dwo_tus): Change parameter from
5994 dwarf2_per_cu_data to dwarf2_cu.
5995 (dwarf2_fetch_die_loc_sect_off): Update.
5996 (dwarf2_fetch_constant_bytes): Update.
5997 (dwarf2_fetch_die_type_sect_off): Update.
5999 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6001 * dwarf2/read.c (process_full_comp_unit,
6002 process_full_type_unit): Remove per_cu, per_objfile paramters.
6003 Add dwarf2_cu parameter.
6004 (process_queue): Update.
6006 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6008 * dwarf2/read.c (create_cu_from_index_list): Replace
6009 dwarf2_per_objfile parameter with dwarf2_per_bfd.
6010 (create_cus_from_index_list): Likewise.
6011 (create_cus_from_index): Likewise.
6012 (create_signatured_type_table_from_index): Likewise.
6013 (create_cus_from_debug_names_list): Likewise.
6014 (create_cus_from_debug_names): Likewise.
6015 (dwarf2_read_gdb_index): Update.
6016 (dwarf2_read_debug_names): Update.
6018 2020-05-27 Tom Tromey <tom@tromey.com>
6019 Simon Marchi <simon.marchi@efficios.com>
6021 * dwarf2/read.h (struct dwarf2_per_objfile)
6022 <get_type_for_signatured_type, set_type_for_signatured_type>:
6024 <m_type_map>: New member.
6025 (struct signatured_type) <type>: Remove.
6027 (dwarf2_per_objfile::get_type_for_signatured_type,
6028 dwarf2_per_objfile::set_type_for_signatured_type): New.
6029 (get_signatured_type): Use new methods.
6031 2020-05-27 Tom Tromey <tom@tromey.com>
6032 Simon Marchi <simon.marchi@efficios.com>
6034 * dwarf2/read.h (struct type_unit_group_unshareable): New.
6035 (struct dwarf2_per_objfile) <type_units>: New member.
6036 <get_type_unit_group_unshareable>: New method.
6037 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
6038 num_symtabs, symtabs>: Remove; move to
6039 type_unit_group_unshareable.
6040 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
6041 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
6042 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
6044 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6046 * dwarf2/read.h (struct dwarf2_per_cu_data):
6047 <dwarf2_per_objfile>: Remove.
6048 * dwarf2/read.c (create_cu_from_index_list): Don't assign
6050 (create_signatured_type_table_from_index): Likewise.
6051 (create_signatured_type_table_from_debug_names): Likewise.
6052 (create_debug_type_hash_table): Likewise.
6053 (fill_in_sig_entry_from_dwo_entry): Likewise.
6054 (create_type_unit_group): Likewise.
6055 (read_comp_units_from_section): Likewise.
6056 (create_cus_hash_table): Likewise.
6058 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6060 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
6061 dwarf2_per_cu_data::dwarf2_per_objfile.
6062 (compute_compunit_symtab_includes): Likewise.
6063 (dwarf2_cu::start_symtab): Likewise.
6065 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6067 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
6069 * dwarf2/read.c (get_die_type_at_offset): Likewise.
6070 (read_namespace_alias): Update.
6071 (lookup_die_type): Update.
6072 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
6073 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
6075 (disassemble_dwarf_expression): Update.
6077 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6079 * dwarf2/read.h (struct dwarf2_queue_item): Add
6080 dwarf2_per_objfile parameter, assign new parameter.
6081 <per_objfile>: New field.
6082 * dwarf2/read.c (free_one_cached_comp_unit): Add
6083 dwarf2_per_objfile parameter.
6084 (queue_comp_unit): Likewise.
6085 (dw2_do_instantiate_symtab): Update.
6086 (process_psymtab_comp_unit): Update.
6087 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
6088 (process_imported_unit_die): Update.
6089 (queue_and_load_dwo_tu): Update.
6090 (follow_die_offset): Update.
6091 (follow_die_sig_1): Update.
6093 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6095 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
6096 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
6097 (read_call_site_scope): Assign per_objfile.
6098 (dwarf2_per_cu_data::objfile): Remove.
6099 * gdbtypes.h (struct call_site) <per_objfile>: New member.
6100 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
6101 dwarf2_per_objfile parameter.
6102 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
6103 dwarf2_per_objfile parameter.
6104 (dwarf_expr_reg_to_entry_parameter): Add output
6105 dwarf2_per_objfile parameter.
6106 (locexpr_get_frame_base): Update.
6107 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
6108 <push_dwarf_reg_entry_value>: Update.
6109 <call_site_to_target_addr>: Update.
6110 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
6112 (value_of_dwarf_reg_entry): Update.
6113 (rw_pieced_value): Update.
6114 (indirect_synthetic_pointer): Update.
6115 (dwarf2_evaluate_property): Update.
6116 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
6118 (locexpr_read_variable): Update.
6119 (locexpr_get_symbol_read_needs): Update.
6120 (loclist_read_variable): Update.
6122 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6124 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
6125 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6126 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6128 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
6129 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
6130 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
6132 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
6133 sect_variable_value): Add dwarf2_per_objfile parameter.
6134 (class dwarf_evaluate_loc_desc) <dwarf_call,
6135 dwarf_variable_value>: Update.
6136 (fetch_const_value_from_synthetic_pointer): Add
6137 dwarf2_per_objfile parameter.
6138 (fetch_const_value_from_synthetic_pointer): Update.
6139 (coerced_pieced_ref): Update.
6140 (class symbol_needs_eval_context) <dwarf_call,
6141 dwarf_variable_value>: Update.
6142 (dwarf2_compile_expr_to_ax): Update.
6144 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6146 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
6148 (dwarf2_evaluate_loc_desc_full): Update.
6150 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6152 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
6154 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
6155 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
6156 dwarf2_per_objfile parameter.
6157 (decode_debug_loc_dwo_addresses): Likewise.
6158 (dwarf2_find_location_expression): Update.
6159 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
6160 (locexpr_describe_location_piece): Add dwarf2_per_objfile
6162 (disassemble_dwarf_expression): Add dwarf2_per_objfile
6164 (locexpr_describe_location_1): Likewise.
6165 (locexpr_describe_location): Update.
6167 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6169 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
6171 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
6172 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
6173 (dwarf2_compile_property_to_c): Update.
6174 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
6175 use text offset from objfile.
6176 (locexpr_tracepoint_var_ref): Update.
6177 (locexpr_generate_c_location): Update.
6178 (loclist_describe_location): Update.
6179 (loclist_tracepoint_var_ref): Update.
6180 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
6181 dwarf2_per_objfile parameter.
6182 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
6183 use text offset from objfile.
6184 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
6186 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6188 * dwarf2/expr.h (struct dwarf_expr_context)
6189 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
6191 <per_objfile>: New member.
6192 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
6193 dwarf2_per_objfile parameter. Don't set offset, set
6195 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
6196 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6197 a dwarf2_per_objfile object instead of an offset.
6198 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6200 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6201 to dwarf2_expr_executor constructor. Don't set offset.
6202 (dwarf2_fetch_cfa_info): Update.
6203 (struct dwarf2_frame_cache) <text_offset>: Remove.
6204 <per_objfile>: New field.
6205 (dwarf2_frame_cache): Update.
6206 (dwarf2_frame_prev_register): Update.
6207 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6208 <dwarf_evaluate_loc_desc>: Add constructor.
6209 (dwarf2_evaluate_loc_desc_full): Update.
6210 (dwarf2_locexpr_baton_eval): Update.
6211 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6213 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6215 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6217 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6218 addr_sized_int_type>: Move to dwarf2_cu.
6219 <int_type>: Move to dwarf2_per_objfile.
6220 (struct dwarf2_per_objfile) <int_type>: Move here.
6221 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6222 addr_sized_int_type>: Move here.
6223 (read_func_scope): Update.
6224 (read_array_type): Update.
6225 (read_tag_string_type): Update.
6226 (attr_to_dynamic_prop): Update.
6227 (dwarf2_per_cu_data::int_type): Rename to...
6228 (dwarf2_per_objfile::int_type): ... this.
6229 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6230 (dwarf2_cu::addr_sized_int_type): ... this.
6231 (read_subrange_type): Update.
6232 (dwarf2_per_cu_data::addr_type): Rename to...
6233 (dwarf2_cu::addr_type): ... this.
6234 (set_die_type): Update.
6236 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6238 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6239 data through per_cu->cu.
6241 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6243 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6244 dwarf2_per_cu_data parameter fo dwarf2_cu.
6245 (lookup_dwo_type_unit): Likewise.
6246 (read_cutu_die_from_dwo): Likewise.
6247 (lookup_dwo_unit): Likewise.
6248 (open_and_init_dwo_file): Likewise.
6249 (lookup_dwo_cutu): Likewise.
6250 (lookup_dwo_comp_unit): Likewise.
6251 (lookup_dwo_type_unit): Likewise.
6252 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6253 (cutu_reader::cutu_reader): Update.
6255 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6257 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6259 (process_full_type_unit): Likewise.
6260 (process_queue): Update.
6262 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6264 * dwarf2/read.c (recursively_compute_inclusions): Add
6265 dwarf2_per_objfile parameter.
6266 (compute_compunit_symtab_includes): Likewise.
6267 (process_cu_includes): Update.
6269 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6271 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6273 (create_type_unit_group): Update.
6274 (process_psymtab_comp_unit_reader): Update.
6275 (build_type_psymtabs_reader): Update.
6277 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6279 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6280 object through m_this_cu->cu.
6282 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6284 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6286 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6288 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6290 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6291 per_objfile parameter.
6292 (load_full_type_unit): Add per_objfile parameter.
6293 (read_signatured_type): Likewise.
6294 (load_full_comp_unit): Likewise.
6295 (load_cu): Likewise.
6296 (dw2_do_instantiate_symtab): Likewise.
6297 (dw2_get_file_names): Likewise.
6298 (dw2_map_symtabs_matching_filename): Update.
6299 (dw_expand_symtabs_matching_file_matcher): Update.
6300 (dw2_map_symbol_filenames): Update.
6301 (process_psymtab_comp_unit): Add per_objfile parameter.
6302 (build_type_psymtabs_1): Update.
6303 (process_skeletonless_type_unit): Update.
6304 (dwarf2_build_psymtabs_hard): Update.
6305 (load_partial_comp_unit): Add per_objfile parameter.
6306 (scan_partial_symbols): Update.
6307 (load_full_comp_unit): Add per_objfile parameter.
6308 (process_imported_unit_die): Update.
6309 (create_cus_hash_table): Update.
6310 (find_partial_die): Update.
6311 (dwarf2_read_addr_index): Update.
6312 (follow_die_offset): Update.
6313 (dwarf2_fetch_die_loc_sect_off): Update.
6314 (dwarf2_fetch_constant_bytes): Update.
6315 (dwarf2_fetch_die_type_sect_off): Update.
6316 (follow_die_sig_1): Update.
6317 (load_full_type_unit): Add per_objfile parameter.
6318 (read_signatured_type): Likewise.
6320 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6322 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6325 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6327 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6328 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6329 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6331 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6332 (create_cus_from_index): Update.
6333 (dwarf2_read_gdb_index): Update.
6334 (create_cus_from_debug_names): Update.
6335 (dwarf2_read_debug_names): Update.
6336 (get_abbrev_section_for_cu): Update.
6337 (create_all_comp_units): Update.
6338 (read_attribute_value): Update.
6339 (get_debug_line_section): Update.
6340 * dwarf2/index-cache.c (index_cache::store): Update.
6341 * dwarf2/index-write.c (save_gdb_index_command): Update.
6342 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6344 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6346 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6348 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6349 dwarf2_per_cu_data::per_bfd.
6350 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6351 (create_type_unit_group): Likewise.
6352 (queue_comp_unit): Remove reference to
6353 per_cu->dwarf2_per_objfile.
6354 (maybe_queue_comp_unit): Likewise.
6355 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6356 (create_cus_hash_table): Assign new field.
6358 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6360 * dwarf2/read.c: Replace
6361 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6362 dwarf2_cu->per_objfile throughout.
6364 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6366 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6367 parameter, don't use per_cu->dwarf2_per_objfile.
6368 (dw2_instantiate_symtab): Likewise.
6369 (dw2_find_last_source_symtab): Update.
6370 (dw2_map_expand_apply): Update.
6371 (dw2_lookup_symbol): Update.
6372 (dw2_expand_symtabs_for_function): Update.
6373 (dw2_expand_all_symtabs): Update.
6374 (dw2_expand_symtabs_with_fullname): Update.
6375 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6376 don't use per_cu->dwarf2_per_objfile.
6377 (dw2_expand_marked_cus): Update.
6378 (dw2_find_pc_sect_compunit_symtab): Update.
6379 (dw2_debug_names_lookup_symbol): Update.
6380 (dw2_debug_names_expand_symtabs_for_function): Update.
6381 (dw2_debug_names_map_matching_symbols): Update.
6382 (dwarf2_psymtab::expand_psymtab): Update.
6384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6386 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6387 <per_objfile>: New member.
6388 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6389 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6391 (cutu_reader::cutu_reader): Update.
6392 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6394 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
6396 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6397 struct dwarf2_per_objfile.
6398 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6400 * dwarf2/read.c (set_die_type): Update.
6401 (get_die_type_at_offset): Update.
6403 2020-05-27 Tom Tromey <tom@tromey.com>
6404 Simon Marchi <simon.marchi@efficios.com>
6406 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6408 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6409 get_symtab, set_symtab>: New methods.
6410 <m_symtabs>: New field.
6411 (struct dwarf2_psymtab): Derive from partial_symtab.
6412 <readin_p, get_compunit_symtab>: Declare methods.
6413 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6414 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6416 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6417 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6418 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6419 (dw2_symtab_iter_next, dw2_print_stats)
6420 (dw2_expand_symtabs_with_fullname)
6421 (dw2_expand_symtabs_matching_one)
6422 (dw_expand_symtabs_matching_file_matcher)
6423 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6424 (dw2_debug_names_iterator::next)
6425 (dw2_debug_names_map_matching_symbols)
6426 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6427 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6428 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6430 (get_compunit_symtab, process_full_comp_unit)
6431 (process_full_type_unit): Update.
6432 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6434 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6436 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6437 then introduce a new dwarf2_per_objfile type.
6438 <read_line_string>: Move to the new dwarf2_per_objfile type.
6439 <objfile>: Likewise.
6440 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6441 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6442 dwarf2_per_objfile->per_bfd.
6443 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6444 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6445 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6446 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6447 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6448 (dwarf2_per_objfile::locate_sections): Rename to...
6449 (dwarf2_per_bfd::locate_sections): ... this.
6450 (dwarf2_per_objfile::get_cutu): Rename to...
6451 (dwarf2_per_bfd::get_cutu): ... this.
6452 (dwarf2_per_objfile::get_cu): Rename to...
6453 (dwarf2_per_bfd::get_cu): ... this.
6454 (dwarf2_per_objfile::get_tu): Rename to...
6455 (dwarf2_per_bfd::get_tu): ... this.
6456 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6457 (dwarf2_per_bfd::allocate_per_cu): ... this.
6458 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6459 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6460 (get_gdb_index_contents_ftype): Change parameter from
6461 dwarf2_per_objfile to dwarf2_per_bfd.
6462 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6463 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6465 2020-05-27 Tom Tromey <tom@tromey.com>
6466 Simon Marchi <simon.marchi@efficios.com>
6468 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6469 (allocate_piece_closure): Set "per_objfile" member.
6470 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6471 (locexpr_describe_location, loclist_describe_location): Use new
6473 * dwarf2/read.c (read_call_site_scope)
6474 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6475 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6476 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6477 handle_data_member_location): Set per_objfile member.
6478 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6480 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6482 2020-05-27 Tom Tromey <tom@tromey.com>
6484 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6485 allocate_signatured_type>: Declare new methods.
6486 <m_num_psymtabs>: New member.
6487 (struct dwarf2_per_cu_data) <index>: New member.
6488 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6489 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6490 (create_cu_from_index_list): Use allocate_per_cu.
6491 (create_signatured_type_table_from_index)
6492 (create_signatured_type_table_from_debug_names)
6493 (create_debug_type_hash_table, add_type_unit)
6494 (read_comp_units_from_section): Use allocate_signatured_type.
6496 2020-05-27 Tom Tromey <tom@tromey.com>
6498 * psymtab.c (partial_map_expand_apply)
6499 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6500 (psym_lookup_global_symbol_language)
6501 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6502 (psym_print_stats, psym_expand_symtabs_for_function)
6503 (psym_map_symbol_filenames, psym_map_matching_symbols)
6504 (psym_expand_symtabs_matching)
6505 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6506 (maintenance_check_psymtabs): Update.
6507 * psympriv.h (struct partial_symtab) <readin_p,
6508 get_compunit_symtab>: Add objfile parameter.
6509 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6511 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6512 get_compunit_symtab>: Likewise.
6513 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6515 2020-05-27 Tom Tromey <tom@tromey.com>
6517 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6519 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6520 (create_cu_from_index_list)
6521 (create_signatured_type_table_from_index)
6522 (create_signatured_type_table_from_debug_names)
6523 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6524 (dwarf2_create_include_psymtab)
6525 (create_debug_type_hash_table, add_type_unit)
6526 (create_type_unit_group, read_comp_units_from_section)
6527 (dwarf2_compute_name, create_cus_hash_table)
6528 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6529 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6531 (dw2_get_real_path): Likewise. Change argument to
6534 2020-05-27 Luis Machado <luis.machado@linaro.org>
6537 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6538 for ldrd (immediate).
6540 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6542 * command.h: Add comment giving the name of class_tui.
6543 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6544 create the fake command for the help for class_tui.
6546 2020-05-26 Tom Tromey <tromey@adacore.com>
6548 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6549 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6550 (val_atr): New function.
6551 (value_val_atr): Use it.
6552 * ada-valprint.c (print_optional_low_bound): Change low bound
6554 (val_print_packed_array_elements): Don't call discrete_position.
6555 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6556 discrete_position for enum types.
6557 * language.c (default_print_array_index): Change type.
6558 * language.h (struct language_defn) <la_print_array_index>: Add
6559 index_type parameter, change type of index_value.
6560 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6561 (default_print_array_index): Update.
6562 * valprint.c (maybe_print_array_index): Don't call
6563 value_from_longest. Update.
6564 (value_print_array_elements): Don't call discrete_position.
6566 2020-05-26 Tom Tromey <tromey@adacore.com>
6568 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6569 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6571 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6574 * avr-tdep.c (avr_integer_to_address): Return data or code
6575 address accordingly to the second 'type' argument of the
6578 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6580 * infcmd.c, inferior.h: (construct_inferior_arguments):
6581 Moved function from here to gdbsupport/common-inferior.{h,cc}
6583 2020-05-23 Tom Tromey <tom@tromey.com>
6585 Revert commit eca1f90c:
6586 * NEWS: Remove entry for completion styling.
6587 * completer.c (_rl_completion_prefix_display_length): Move
6589 (gdb_fnprint): Revert.
6590 (gdb_display_match_list_1): Likewise.
6591 * cli/cli-style.c (completion_prefix_style)
6592 (completion_difference_style, completion_suffix_style): Remove.
6593 (_initialize_cli_style): Revert.
6594 * cli/cli-style.h (completion_prefix_style)
6595 (completion_difference_style, completion_suffix_style): Don't
6598 2020-05-24 Pedro Alves <palves@redhat.com>
6600 * symtab.c (completion_list_add_name): Return boolean indication
6601 of whether the symbol matched.
6602 (completion_list_add_symbol): Don't try to remove C++ aliases if
6603 the symbol didn't match in the first place.
6604 * symtab.h (completion_list_add_name): Return bool.
6606 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6608 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6611 2020-05-23 Joel Brobecker <brobecker@adacore.com>
6615 2020-05-23 Tom Tromey <tom@tromey.com>
6617 * NEWS: Add entry for completion styling.
6618 * completer.c (_rl_completion_prefix_display_length): Move
6619 declaration earlier.
6620 (gdb_fnprint): Use completion_style.
6621 (gdb_display_match_list_1): Likewise.
6622 * cli/cli-style.c (completion_prefix_style)
6623 (completion_difference_style, completion_suffix_style): New
6625 (_initialize_cli_style): Register new globals.
6626 * cli/cli-style.h (completion_prefix_style)
6627 (completion_difference_style, completion_suffix_style): Declare.
6629 2020-05-23 Pedro Alves <palves@redhat.com>
6631 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6632 (parse_escape): Use ISDIGIT instead of isdigit.
6633 (puts_debug): Use gdb_isprint instead of isprint.
6634 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6635 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6636 ISSPACE instead of isspace.
6637 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6639 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6640 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6641 instead of isxdigit and ISDIGIT instead of isdigit.
6643 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6645 * gdbtypes.h (struct type) <field>: New method.
6646 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6649 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6651 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6652 (TYPE_FIELDS): Use type::fields. Change all call sites that
6653 modify the propery to use type::set_fields instead.
6655 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6657 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6658 type::num_fields instead.
6660 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
6662 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6664 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6665 that modify the number of fields to use type::set_num_fields
6668 2020-05-22 Tom Tromey <tromey@adacore.com>
6670 * compile/compile-object-load.h (munmap_list_free): Don't
6673 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6675 * annotate.c (annotate_source_line): Update return type, add call
6676 to update current symtab and line.
6677 * annotate.h (annotate_source_line): Update return type, and
6678 extend header comment.
6679 * source.c (info_line_command): Check annotation_level before
6680 calling annotate_source_line.
6681 * stack.c (print_frame_info): If calling annotate_source_line
6682 returns true, then don't print any other source line information.
6684 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6686 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6688 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
6690 * coffread.c (patch_type): Remove NULL check before xfree.
6691 * corefile.c (set_gnutarget): Likewise.
6692 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6693 * exec.c (build_section_table): Likewise.
6694 * remote.c (remote_target::pass_signals): Likewise.
6695 * utils.c (n_spaces): Likewise.
6696 * cli/cli-script.c (document_command): Likewise.
6697 * i386-windows-tdep.c (core_process_module_section): Likewise.
6698 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6700 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
6702 * symfile.c (reread_symbols): Clear objfile's section_offsets
6703 vector and section indices, re-compute them by calling
6706 2020-05-20 Tom Tromey <tromey@adacore.com>
6708 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
6709 (desc_one_bound, desc_index_type): Compute field name.
6711 2020-05-20 Tom de Vries <tdevries@suse.de>
6714 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6716 2020-05-20 Alan Modra <amodra@gmail.com>
6719 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6721 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6722 passed to bfd_set_filename.
6723 * symfile-mem.c (add_vsyscall_page): Likewise for string
6724 passed to symbol_file_add_from_memory.
6725 (symbol_file_add_from_memory): Make name param a const char* and
6728 2020-05-20 Alan Modra <amodra@gmail.com>
6730 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6731 rather than accessing bfd->filename directly.
6732 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6733 and use bfd_section_name.
6734 * dwarf2/frame.c (decode_frame_entry): Likewise.
6735 * exec.c (exec_set_section_address): Likewise.
6736 * solib-aix.c (solib_aix_bfd_open): Likewise.
6737 * stap-probe.c (get_stap_base_address): Likewise.
6738 * symfile.c (reread_symbols): Likewise.
6740 2020-05-19 Tom Tromey <tromey@adacore.com>
6742 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6744 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6746 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6748 2020-05-19 Pedro Alves <palves@redhat.com>
6750 * NEWS (set exec-file-mismatch): Adjust entry.
6751 * exec.c: Include "build-id.h".
6752 (validate_exec_file): Try to match build IDs instead of filenames.
6753 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6754 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6755 and pass down 'warn_if_slow'.
6756 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6757 gdb_bfd_open_closure to pass it down.
6758 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6760 2020-05-19 Pedro Alves <palves@redhat.com>
6762 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6763 * target.c (target_fileio_open_1): Rename to target_fileio_open
6764 and make extern. Use bool.
6765 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6766 (target_fileio_read_alloc_1): Adjust.
6767 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6768 (target_fileio_open_warn_if_slow): Delete declaration.
6770 2020-05-19 Pedro Alves <palves@redhat.com>
6772 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6775 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6777 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6778 whether disp is negative.
6780 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6782 * symfile.h (struct symfile_segment_data)
6783 <~symfile_segment_data>: Remove.
6784 <segment_info>: Change to std::vector.
6785 * symfile.c (default_symfile_segments): Update.
6786 * elfread.c (elf_symfile_segments): Update.
6788 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6790 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6792 <segment_bases, segment_sizes>: Remove.
6793 * symfile.c (default_symfile_segments): Update.
6794 * elfread.c (elf_symfile_segments): Update.
6795 * remote.c (remote_target::get_offsets): Update.
6796 * solib-target.c (solib_target_relocate_section_addresses):
6799 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
6801 * symfile.h (struct symfile_segment_data): Initialize fields.
6802 <~symfile_segment_data>: Add.
6803 (symfile_segment_data_up): New.
6804 (struct sym_fns) <sym_segments>: Return a
6805 symfile_segment_data_up.
6806 (default_symfile_segments): Return a symfile_segment_data_up.
6807 (free_symfile_segment_data): Remove.
6808 (get_symfile_segment_data): Return a symfile_segment_data_up.
6809 * symfile.c (default_symfile_segments): Likewise.
6810 (get_symfile_segment_data): Likewise.
6811 (free_symfile_segment_data): Remove.
6812 (symfile_find_segment_sections): Update.
6813 * elfread.c (elf_symfile_segments): Return a
6814 symfile_segment_data_up.
6815 * remote.c (remote_target::get_offsets): Update.
6816 * solib-target.c (solib_target_relocate_section_addresses):
6818 * symfile-debug.c (debug_sym_segments): Return a
6819 symfile_segment_data_up.
6821 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6824 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6825 Hardcode register numbers.
6828 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6829 procfs_find_LDT_entry): Remove.
6830 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6831 procfs_find_LDT_entry): Remove.
6832 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6835 2020-05-17 Pedro Alves <palves@redhat.com>
6836 Andrew Burgess <andrew.burgess@embecosm.com>
6837 Keno Fischer <keno@juliacomputing.com>
6840 * breakpoint.c (build_target_condition_list): Update comments.
6841 (build_target_command_list): Update comments and skip matching
6843 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6844 a separate function. Simplify "set breakpoint auto-hw off"
6846 (insert_breakpoints): Update comment.
6847 (tracepoint_locations_match): New parameter. For breakpoints,
6848 compare location types too, if the caller wants to.
6849 (handle_automatic_hardware_breakpoints): New functions.
6850 (bp_location_is_less_than): Also sort by location type and
6851 hardware breakpoint length.
6852 (update_global_location_list): Handle "set breakpoint auto-hw on"
6854 (update_breakpoint_locations): Ask breakpoint_locations_match to
6855 ignore location types.
6857 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6859 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6862 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6864 * gdbtypes.h (struct type) <name, set_name>: New methods.
6865 (TYPE_CODE): Use type::name. Change all call sites used to set
6866 the name to use type::set_name instead.
6868 2020-05-16 Tom Tromey <tom@tromey.com>
6870 * top.c (quit_force): Update.
6871 * infrun.c (handle_no_resumed): Update.
6872 * top.h (all_uis): New function.
6875 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
6877 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6879 2020-05-16 Pedro Alves <palves@redhat.com>
6882 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6884 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6886 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
6888 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6889 (sparc64_adi_info): Likewise.
6891 2020-05-15 Tom Tromey <tom@tromey.com>
6893 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6895 (lookup_objfile_from_block): Remove.
6896 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6897 (lookup_global_symbol): Use block_objfile.
6898 * symtab.h (lookup_objfile_from_block): Don't declare.
6899 * printcmd.c (clear_dangling_display_expressions): Use
6901 * parse.c (operator_check_standard): Use block_objfile.
6903 2020-05-15 Tom Tromey <tom@tromey.com>
6905 * language.c (language_alloc_type_symbol): Set
6907 * symtab.c (initialize_objfile_symbol): Remove.
6908 (allocate_symbol): Remove.
6909 (allocate_template_symbol): Remove.
6910 * dwarf2/read.c (fixup_go_packaging): Use "new".
6911 (new_symbol): Use "new".
6912 (read_variable): Don't call initialize_objfile_symbol. Use
6914 (read_func_scope): Use "new".
6915 * xcoffread.c (process_xcoff_symbol): Don't call
6916 initialize_objfile_symbol.
6917 (SYMBOL_DUP): Remove.
6918 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6920 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6921 (allocate_template_symbol): Don't declare.
6922 (struct symbol): Add copy constructor. Change defaults.
6923 * jit.c (finalize_symtab): Use "new".
6924 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6926 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6927 (common_block_end): Use "new".
6928 * mdebugread.c (parse_symbol): Use "new".
6929 (new_symbol): Likewise.
6931 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6933 * NEWS: Mention changes to help and apropos.
6935 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6937 * command.h (enum command_class): Improve comments, document
6938 that class_alias is for user-defined aliases, give the class
6939 name for each class, remove unused class_xdb.
6940 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6941 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6943 * infcmd.c (_initialize_infcmd): Likewise.
6944 * reverse.c (_initialize_reverse): Likewise.
6945 * stack.c (_initialize_stack): Likewise.
6946 * symfile.c (_initialize_symfile): Likewise.
6947 * tracepoint.c (_initialize_tracepoint): Likewise.
6949 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6951 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6952 when their aliased command is traversed.
6953 (help_cmd): Add fput_command_names_styled call to
6954 output command name and aliases when command has an alias.
6956 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6958 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6959 * cli/cli-decode.c (help_cmd_list): Declare as static,
6960 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6961 a command together with the command.
6962 (fput_command_name_styled, fput_command_names_styled): New functions.
6963 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6964 fput_command_name_styled.
6965 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6966 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6968 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6970 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6971 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6972 * command.h (cmd_show_list): Likewise.
6973 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6974 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6976 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6978 * unittests/command-def-selftests.c (traverse_command_structure):
6979 Verify all commands of a list have the same prefix command and
6980 that only the top cmdlist commands have a null prefix.
6982 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6984 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6985 as prefix, not one of its aliases.
6986 (set_cmd_prefix): Remove.
6987 (do_add_cmd): Centralize the setting of the prefix of a command, when
6988 command is defined after its full chain of prefix commands.
6989 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6990 (add_setshow_cmd_full): Likewise.
6991 (update_prefix_field_of_prefixed_commands): New function.
6992 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6993 update_prefix_field_of_prefixed_commands.
6994 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6995 addresses of remote_set_cmdlist and remote_show_cmdlist given
6996 as argument, not the address of an argument.
6997 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6998 * gdb/remote.c (_initialize_remote): Likewise.
7000 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7002 * cli/cli-cmds.c (alias_command): Check for an existing alias
7003 using lookup_cmd_composition, as valid_command_p is too strict
7004 and forbids aliases that are the prefix of an existing alias
7006 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
7007 command is properly recognised as a valid command.
7009 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7011 * unittests/help-doc-selftests.c: Rename to
7012 unittests/command-def-selftests.c
7013 * unittests/command-def-selftests.c (help_doc_tests): Update some
7015 (command_structure_tests, traverse_command_structure): New namespace
7017 (command_structure_invariants_tests): New function.
7018 (_initialize_command_def_selftests) Renamed from
7019 _initialize_help_doc_selftests, register command_structure_invariants
7022 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7024 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
7027 2020-05-15 Joel Brobecker <brobecker@adacore.com>
7029 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
7030 ada_is_fixed_point_type. Update all callers.
7031 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
7033 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
7035 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
7036 print_fixed_point_type. Update all callers.
7037 * ada-valprint.c (ada_value_print_num): Replace call to
7038 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
7040 2020-05-14 Kevin Buettner <kevinb@redhat.com>
7042 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
7044 (cpu_supports_bts): Add CV_AMD case.
7046 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
7047 Simon Marchi <simon.marchi@efficios.com>
7049 * infrun.c (stop_all_threads): Collect multiple wait events at
7052 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7054 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
7057 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
7059 * gdbtypes.h (struct type) <code, set_code>: New methods.
7060 (TYPE_CODE): Use type::code. Change all call sites used to set
7061 the code to use type::set_code instead.
7063 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7064 Tom de Vries <tdevries@suse.de>
7065 Pedro Alves <palves@redhat.com>
7068 * infrun.c (stop_all_threads): Do NOT ignore
7069 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
7070 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
7072 (handle_no_resumed): Remove code handling a live inferior with no
7074 * remote.c (has_single_non_exited_thread): New.
7075 (remote_target::update_thread_list): Do not delete a thread if is
7076 the last thread of the process.
7077 * thread.c (thread_select): Call delete_exited_threads instead of
7080 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7082 * infrun.c (stop_all_threads): Enable/disable thread events of all
7083 targets. Move a debug message denoting the end of the function
7084 into the SCOPED_EXIT block.
7086 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7088 * process-stratum-target.h: Include <set>.
7089 (all_non_exited_process_targets, switch_to_target_no_thread): New
7090 function declarations.
7091 * process-stratum-target.c (all_non_exited_process_targets)
7092 (switch_to_target_no_thread): New function implementations.
7094 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7096 * infrun.c (handle_inferior_event): Extract out a piece of code
7098 (mark_non_executing_threads): ...this new function.
7100 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7102 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
7105 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7107 * regcache.c (regcache_read_pc_protected): New function
7108 implementation that returns 0 if the PC cannot read via
7110 * infrun.c (proceed): Call 'regcache_read_pc_protected'
7111 instead of 'regcache_read_pc'.
7112 (keep_going_pass_signal): Ditto.
7114 2020-05-13 Tom Tromey <tromey@adacore.com>
7116 * ada-lang.c (align_value): Remove.
7117 (ada_template_to_fixed_record_type_1): Use align_up.
7119 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7121 * async-event.c: Update the copyright year.
7122 * async-event.h: Update the copyright year.
7124 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
7126 * objfiles.h (is_addr_in_objfile,
7127 shared_objfile_contains_address_p): Return bool.
7128 * objfile.c (is_addr_in_objfile,
7129 shared_objfile_contains_address_p): Return bool.
7131 2020-05-11 Tom Tromey <tromey@adacore.com>
7133 * cli/cli-cmds.c (info_command): Restore.
7134 (_initialize_cli_cmds): Use add_prefix_command for "info".
7135 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
7137 2020-05-11 Tom Tromey <tromey@adacore.com>
7139 * ada-lang.c (ada_value_primitive_field): Now public.
7140 * ada-lang.h (ada_value_primitive_field): Declare.
7141 * ada-valprint.c (print_field_values): Use
7142 ada_value_primitive_field for wrapper fields.
7144 2020-05-11 Tom de Vries <tdevries@suse.de>
7146 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
7149 2020-05-11 Tom de Vries <tdevries@suse.de>
7152 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
7153 with length 0, if not gdb-produced.
7154 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
7156 2020-05-09 Tom de Vries <tdevries@suse.de>
7159 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
7162 2020-05-09 Tom Tromey <tom@tromey.com>
7164 * top.c (server_command): Now bool.
7165 * top.h (server_command): Now bool.
7167 2020-05-08 Tom Tromey <tromey@adacore.com>
7169 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
7170 already being processed.
7172 2020-05-08 Tom Tromey <tom@tromey.com>
7174 * printcmd.c (struct display) <next>: Remove.
7175 <display>: New constructor.
7176 <exp_string>: Now a std::string.
7177 <enabled_p>: Now a bool.
7178 (display_number): Move definition earlier.
7179 (displays): Rename from display_chain. Now a std::vector.
7180 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
7181 (display_command): Update.
7182 (do_one_display, disable_display)
7183 (enable_disable_display_command, do_enable_disable_display):
7185 (free_display): Remove.
7186 (clear_displays): Rewrite.
7187 (delete_display): Update.
7188 (map_display_numbers): Use function_view. Remove "data"
7190 (do_delete_display): Remove.
7191 (undisplay_command): Update.
7192 (do_one_display, do_displays, disable_display)
7193 (info_display_command): Update.
7194 (do_enable_disable_display): Remove.
7195 (enable_disable_display_command)
7196 (clear_dangling_display_expressions): Update.
7198 2020-05-08 Tom Tromey <tom@tromey.com>
7200 * symtab.c (set_symbol_cache_size)
7201 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7202 (maintenance_print_symbol_cache_statistics): Update.
7203 * symmisc.c (print_symbol_bcache_statistics)
7204 (print_objfile_statistics, maintenance_print_objfiles)
7205 (maintenance_info_symtabs, maintenance_check_symtabs)
7206 (maintenance_expand_symtabs, maintenance_info_line_tables):
7208 * symfile-debug.c (set_debug_symfile): Update.
7209 * source.c (forget_cached_source_info): Update.
7210 * python/python.c (gdbpy_progspaces): Update.
7211 * psymtab.c (maintenance_info_psymtabs): Update.
7212 * probe.c (parse_probes): Update.
7213 * linespec.c (iterate_over_all_matching_symtabs)
7214 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7215 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7216 * exec.c (exec_target::close): Update.
7217 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7218 * breakpoint.c (print_one_breakpoint_location)
7219 (create_longjmp_master_breakpoint)
7220 (create_std_terminate_master_breakpoint): Update.
7221 * progspace.c (program_spaces): Now a std::vector.
7222 (maybe_new_address_space): Update.
7223 (add_program_space): Remove.
7224 (program_space::program_space): Update.
7225 (remove_program_space): Update.
7226 (number_of_program_spaces): Remove.
7227 (print_program_space, update_address_spaces): Update.
7228 * progspace.h (program_spaces): Change type.
7229 (ALL_PSPACES): Remove.
7230 (number_of_program_spaces): Don't declare.
7231 (struct program_space) <next>: Remove.
7233 2020-05-08 Tom Tromey <tom@tromey.com>
7235 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7236 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7237 (enable_break): Update.
7238 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7239 (frv_fdpic_find_canonical_descriptor): Update.
7240 (frv_fetch_objfile_link_map): Update.
7241 * progspace.c (program_space::free_all_objfiles): Update.
7242 (program_space::solibs): New method.
7243 * progspace.h (struct program_space) <solibs>: New method.
7244 * solist.h (master_so_list): Don't declare.
7245 (ALL_SO_LIBS): Remove.
7246 * solib.h (so_list_head): Remove.
7247 (update_solib_list): Update comment.
7248 * solib.c (master_so_list): Remove.
7249 (solib_used, update_solib_list, solib_add)
7250 (info_sharedlibrary_command, clear_solib)
7251 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7253 2020-05-08 Tom Tromey <tom@tromey.com>
7255 * extension.c (extension_languages): Now a std::array.
7256 (ALL_EXTENSION_LANGUAGES): Remove.
7257 (get_ext_lang_defn, get_ext_lang_of_file)
7258 (eval_ext_lang_from_control_command): Update.
7259 (finish_ext_lang_initialization)
7260 (auto_load_ext_lang_scripts_for_objfile)
7261 (ext_lang_type_printers::ext_lang_type_printers)
7262 (apply_ext_lang_type_printers)
7263 (ext_lang_type_printers::~ext_lang_type_printers)
7264 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7265 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7266 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7267 (get_matching_xmethod_workers, ext_lang_colorize)
7268 (ext_lang_before_prompt): Update.
7269 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7271 2020-05-08 Tom Tromey <tom@tromey.com>
7273 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7275 <swap_string, m_string>: Remove.
7276 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7278 * stabsread.c (define_symbol, read_type): Update.
7279 * linespec.c (find_linespec_symbols): Update.
7280 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7281 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7282 * dbxread.c (read_dbx_symtab): Update.
7283 * cp-support.h (cp_canonicalize_string_full)
7284 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7285 Return unique_xmalloc_ptr.
7286 * cp-support.c (inspect_type): Update.
7287 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7288 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7290 * c-typeprint.c (print_name_maybe_canonical): Update.
7291 * break-catch-throw.c (check_status_exception_catchpoint):
7294 2020-05-08 Tom de Vries <tdevries@suse.de>
7296 * infrun.c (follow_fork): Copy current_line and current_symtab to
7299 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7301 * async-event.c (struct async_signal_handler, struct
7302 async_event_handler): Reformat, remove typedef.
7304 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7306 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7307 access thistype->main_type->dyn_prop_list directly.
7309 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7311 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7312 (remove_dyn_prop): Remove. Update all users to use
7313 type::remove_dyn_prop.
7314 * gdbtypes.c (remove_dyn_prop): Rename to...
7315 (type::remove_dyn_prop): ... this.
7317 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7319 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7320 (add_dyn_prop): Remove. Update all users to use
7322 * gdbtypes.c (add_dyn_prop): Rename to...
7323 (type::add_dyn_prop): ... this.
7325 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
7327 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7328 (get_dyn_prop): Remove. Update all users to use
7330 * gdbtypes.c (get_dyn_prop): Rename to...
7331 (type::dyn_prop): ... this.
7333 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7335 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7337 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
7339 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7340 instruction, skip it if it's there.
7342 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
7344 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7346 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
7348 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7349 * gdbtypes.c (recursive_dump_type): Remove use of
7352 2020-05-03 Tom Tromey <tom@tromey.com>
7354 * breakpoint.c (catch_command, tcatch_command): Remove.
7355 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7356 add_show_prefix_cmd.
7357 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7358 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7360 (add_internal_problem_command): Use add_basic_prefix_cmd,
7361 add_show_prefix_cmd.
7362 * mips-tdep.c (set_mipsfpu_command): Remove.
7363 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7364 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7365 (_initialize_index_cache): Use add_basic_prefix_cmd.
7366 * memattr.c (dummy_cmd): Remove.
7367 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7368 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7369 (_initialize_tui_win): Use add_basic_prefix_cmd,
7370 add_show_prefix_cmd.
7371 * cli/cli-logging.c (set_logging_command): Remove.
7372 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7373 add_show_prefix_cmd.
7374 (show_logging_command): Remove.
7375 * target.c (target_command): Remove.
7376 (add_target): Use add_basic_prefix_cmd.
7378 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
7380 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7382 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7384 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7387 2020-04-30 Kamil Rytarowski <n54@gmx.com>
7389 * nbsd-nat.c (nbsd_enable_proc_events)
7390 (nbsd_nat_target::post_startup_inferior): Add.
7391 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7392 (nbsd_nat_target::update_thread_list): Rewrite.
7393 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7394 "PTRACE_LWP_CREATE".
7395 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7397 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7399 * stack.c (_initialize_stack): Remove duplicated creation
7400 of "frame" command and "f" alias.
7402 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7405 * gdbtypes.c (check_typedef): Calculate size of array of
7408 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
7411 * i386-tdep.c (i386_push_dummy_call): Call
7412 i386_thiscall_push_dummy_call.
7413 (i386_thiscall_push_dummy_call): New function.
7414 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7415 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7416 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7418 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7420 * gdbarch.sh (do_read): Add shellcheck disable directive for
7423 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7425 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7426 "referenced but not assigned" warning.
7428 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7430 * gdbarch.sh: Remove code that sets fallbackdefault.
7432 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7434 * gdbarch.sh: Use shell operators && and || instead of
7437 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7439 * gdbarch.sh: Use $(...) instead of `...`.
7441 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7443 * gdbarch.sh: Use double quotes around variables.
7445 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
7447 * gdbarch.sh: Use %s with printf, instead of variables in the
7450 2020-04-29 Tom Tromey <tromey@adacore.com>
7453 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7455 (read_enumeration_type): Call
7456 update_enumeration_type_from_children later. Update comments.
7457 (process_enumeration_scope): Don't create type fields.
7459 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7461 * nbsd-tdep.c: Include "xml-syscall.h".
7462 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7464 2020-04-29 Kamil Rytarowski <n54@gmx.com>
7466 * nbsd-nat.c: Include "sys/wait.h".
7467 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7468 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7469 (nbsd_nat_target::remove_exec_catchpoint)
7470 (nbsd_nat_target::set_syscall_catchpoint): Add.
7471 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7472 (nbsd_nat_target::insert_exec_catchpoint)
7473 (nbsd_nat_target::remove_exec_catchpoint)
7474 (nbsd_nat_target::set_syscall_catchpoint): Add.
7475 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7476 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7477 `nbsd_get_syscall_number'.
7479 2020-04-29 Tom Tromey <tom@tromey.com>
7481 * stack.c (print_block_frame_labels): Remove.
7483 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
7486 * ada-valprint.c (val_print_packed_array_elements): Move array
7487 end bracket to new line.
7488 (ada_val_print_string): Remove extra spaces before first array
7490 * c-valprint.c (c_value_print_array): Likewise.
7491 * m2-valprint.c (m2_print_array_contents): Likewise.
7492 (m2_value_print_inner): Likewise.
7493 * p-valprint.c (pascal_value_print_inner): Likewise.
7494 * valprint.c (generic_val_print_array): Likewise.
7495 (value_print_array_elements): Move first array element and array
7496 end bracket to new line.
7498 2020-04-29 Tom de Vries <tdevries@suse.de>
7501 * linespec.c (find_method): Fix ix calculation.
7503 2020-04-28 Kamil Rytarowski <n54@gmx.com>
7505 * syscalls/update-netbsd.sh: New file.
7506 * syscalls/netbsd.xml: Regenerate.
7507 * data-directory/Makefile.in: Register `netbsd.xml' in
7510 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7512 * syscalls/update-freebsd.sh: Add double quotes.
7514 2020-04-28 Tom Tromey <tom@tromey.com>
7517 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7518 (cmdpy_init): Allow class_tui.
7520 2020-04-28 Mark Williams <mark@myosotissp.com>
7523 * dwarf2read.c: Add missing assingments to list_in_scope when
7524 start_symtab was already called.
7526 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
7529 * dwarf2/read.c (offset_map_type): Use
7530 gdb:hash_enum<sect_offset> as hash function.
7532 2020-04-28 Tom de Vries <tdevries@suse.de>
7534 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7535 with DW_AT_signature.
7537 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
7539 * configure.ac: Remove check for fs_base/gs_base in
7541 * configure: Re-generate.
7542 * config.in: Re-generate.
7543 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7544 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7545 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7547 2020-04-27 Luis Machado <luis.machado@linaro.org>
7549 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7550 problematic inline frame unwinding situation.
7551 * frame.c (frame_id_computed_p): New function.
7552 * frame.h (frame_id_computed_p): New prototype.
7554 2020-04-26 Tom Tromey <tom@tromey.com>
7556 * command.h (enum command_class) <class_pseudo>: Remove.
7558 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7560 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7563 2020-04-25 Kamil Rytarowski <n54@gmx.com>
7565 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7566 `PT_GET_PROCESS_STATE' block.
7568 2020-04-24 Tom Tromey <tom@tromey.com>
7570 * symtab.h (symbol_get_demangled_name): Don't declare.
7571 * symtab.c (symbol_get_demangled_name): Remove.
7572 (general_symbol_info::natural_name)
7573 (general_symbol_info::demangled_name): Update.
7575 2020-04-24 Tom Tromey <tom@tromey.com>
7578 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7580 2020-04-24 Tom Tromey <tom@tromey.com>
7583 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7585 (new_symbol): Likewise.
7586 * compile/compile-object-load.c (get_out_value_type): Use
7587 symbol_matches_search_name.
7589 2020-04-24 Tom Tromey <tom@tromey.com>
7591 * dwarf2/read.c (add_partial_symbol): Do not call
7592 compute_and_set_names.
7594 2020-04-24 Tom Tromey <tom@tromey.com>
7596 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7599 2020-04-24 Tom Tromey <tom@tromey.com>
7601 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7602 (add_psymbol_to_list): New overload. Make old overload call new
7604 * psympriv.h (add_psymbol_to_list): New overload.
7606 2020-04-24 Tom Tromey <tom@tromey.com>
7608 * dwarf2/read.c (partial_die_info::read) <case
7609 DW_AT_linkage_name>: Use value_as_string.
7610 (dwarf2_string_attr): Use value_as_string.
7611 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7613 * dwarf2/attribute.c (attribute::value_as_string): New method.
7615 2020-04-24 Tom Tromey <tom@tromey.com>
7617 * symtab.c (general_symbol_info::natural_name)
7618 (general_symbol_info::demangled_name): Check for language_rust.
7620 2020-04-24 Tom Tromey <tom@tromey.com>
7622 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7623 (dwarf2_physname): ... from here.
7624 (partial_die_info::read): Add Rust "{" hack.
7626 2020-04-24 Tom Tromey <tom@tromey.com>
7628 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7630 (symbol_set_demangled_name): Don't declare.
7631 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7632 symbol_set_demangled_name.
7633 (general_symbol_info::set_language)
7634 (general_symbol_info::compute_and_set_names): Update.
7635 * minsyms.c (minimal_symbol_reader::install): Update.
7636 * dwarf2/read.c (new_symbol): Update.
7638 2020-04-24 Tom Tromey <tromey@adacore.com>
7641 * python/py-type.c (convert_field): Handle
7642 FIELD_LOC_KIND_DWARF_BLOCK.
7643 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7644 (typy_get_dynamic): Nw function.
7645 (type_object_getset): Add "dynamic".
7648 2020-04-24 Tom Tromey <tromey@adacore.com>
7650 * ada-typeprint.c (print_choices, print_variant_part)
7651 (print_record_field_types_dynamic): New functions.
7652 (print_record_field_types): Use print_record_field_types_dynamic.
7654 2020-04-24 Tom Tromey <tromey@adacore.com>
7656 * dwarf2/read.c (handle_data_member_location): New overload.
7657 (dwarf2_add_field): Use it.
7658 (decode_locdesc): Add "computed" parameter. Update comment.
7659 * gdbtypes.c (is_dynamic_type_internal): Also look for
7660 FIELD_LOC_KIND_DWARF_BLOCK.
7661 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7662 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7663 virtual base classes.
7664 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7665 FIELD_LOC_KIND_DWARF_BLOCK.
7667 2020-04-24 Tom Tromey <tromey@adacore.com>
7669 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7670 * gdbtypes.c (is_dynamic_type_internal): Check
7671 TYPE_HAS_DYNAMIC_LENGTH.
7672 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7673 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7675 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7678 2020-04-24 Tom Tromey <tromey@adacore.com>
7680 * dwarf2/read.c (struct variant_field): Rewrite.
7681 (struct variant_part_builder): New.
7682 (struct nextfield): Remove "variant" field. Add "offset".
7683 (struct field_info): Add "current_variant_part" and
7685 (alloc_discriminant_info): Remove.
7686 (alloc_rust_variant): New function.
7687 (quirk_rust_enum): Update.
7688 (dwarf2_add_field): Set "offset" member. Don't handle
7689 DW_TAG_variant_part.
7690 (offset_map_type): New typedef.
7691 (convert_variant_range, create_one_variant)
7692 (create_one_variant_part, create_variant_parts)
7693 (add_variant_property): New functions.
7694 (dwarf2_attach_fields_to_type): Call add_variant_property.
7695 (read_structure_type): Don't handle DW_TAG_variant_part.
7696 (handle_variant_part, handle_variant): New functions.
7697 (handle_struct_member_die): Use them.
7698 (process_structure_scope): Don't handle variant parts.
7699 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7700 (struct discriminant_info): Remove.
7701 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7702 (struct main_type) <flag_discriminated_union>: Remove.
7703 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7704 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7705 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7707 * valops.c (value_union_variant): Remove.
7708 * value.h (value_union_variant): Don't declare.
7710 2020-04-24 Tom Tromey <tromey@adacore.com>
7712 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7713 (ada_value_primitive_packed_val): Update.
7714 * ada-valprint.c (ada_value_print_1): Update.
7715 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7716 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7717 just an address. Use evaluate_for_locexpr_baton.
7718 (dwarf2_evaluate_property): Update.
7719 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7721 * findvar.c (default_read_var_value): Update.
7722 * gdbtypes.c (compute_variant_fields_inner)
7723 (resolve_dynamic_type_internal): Update.
7724 (resolve_dynamic_type): Change type of valaddr parameter.
7725 * gdbtypes.h (resolve_dynamic_type): Update.
7726 * valarith.c (value_subscripted_rvalue): Update.
7727 * value.c (value_from_contents_and_address): Update.
7729 2020-04-24 Tom Tromey <tromey@adacore.com>
7731 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7732 "push_initial_value" parameter.
7733 (dwarf2_evaluate_property): Likewise.
7734 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7736 2020-04-24 Tom Tromey <tromey@adacore.com>
7738 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7739 (variant::matches, compute_variant_fields_recurse)
7740 (compute_variant_fields_inner, compute_variant_fields): New
7742 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7743 Use resolved_type after type is made.
7744 (operator==): Add new cases.
7745 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7746 (struct discriminant_range, struct variant, struct variant_part):
7748 (union dynamic_prop_data) <variant_parts, original_type>: New
7750 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7751 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7753 * value.c (unpack_bits_as_long): Now public.
7754 * value.h (unpack_bits_as_long): Declare.
7756 2020-04-24 Tom Tromey <tromey@adacore.com>
7758 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7759 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7761 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
7763 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7765 2020-04-24 Kamil Rytarowski <n54@gmx.com>
7767 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7768 (remove_fork_catchpoint, post_startup_inferior)
7769 (post_attach): Move...
7770 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7771 (remove_fork_catchpoint, post_startup_inferior)
7772 (post_attach): ...here.
7773 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7774 (remove_fork_catchpoint, post_startup_inferior)
7775 (post_attach): Move...
7776 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7777 (remove_fork_catchpoint, post_startup_inferior)
7778 (post_attach): ...here.
7780 2020-04-24 Tom Tromey <tromey@adacore.com>
7782 * nat/windows-nat.h (struct windows_thread_info)
7783 <pc_adjusted>: New member.
7784 * windows-nat.c (windows_fetch_one_register): Check
7786 (windows_nat_target::get_windows_debug_event)
7787 (windows_nat_target::wait): Set pc_adjusted.
7789 2020-04-24 Tom de Vries <tdevries@suse.de>
7791 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7792 Run gdb-add-index inside temp dir.
7794 2020-04-23 Tom Tromey <tromey@adacore.com>
7796 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7799 2020-04-23 Luis Machado <luis.machado@linaro.org>
7801 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7802 get_frame_register instead of gdbarch_unwind_pc.
7804 2020-04-23 Tom de Vries <tdevries@suse.de>
7806 * symtab.c (lookup_global_symbol): Prefer def over decl.
7808 2020-04-23 Tom de Vries <tdevries@suse.de>
7811 * block.c (best_symbol, better_symbol): Promote to external.
7812 * block.h (best_symbol, better_symbol): Declare.
7813 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7816 2020-04-23 Tom Tromey <tromey@adacore.com>
7819 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7820 "const char *", not a "const std::string &".
7821 <name_and_matcher::operator==>: Update.
7822 * unittests/lookup_name_info-selftests.c: Change type of
7825 2020-04-23 Tom Tromey <tom@tromey.com>
7827 * inferior.h (iterate_over_inferiors): Don't declare.
7828 * inferior.c (iterate_over_inferiors): Remove.
7829 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7831 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7832 use iterate_over_inferiors.
7833 (darwin_resume_inferior_it)
7834 (struct resume_inferior_threads_param)
7835 (darwin_resume_inferior_threads_it): Remove.
7836 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7838 2020-04-23 Tom de Vries <tdevries@suse.de>
7840 * blockframe.c (find_pc_partial_function): Use
7841 find_pc_sect_compunit_symtab rather than
7842 objfile->sf->qf->find_pc_sect_compunit_symtab.
7844 2020-04-22 Tom de Vries <tdevries@suse.de>
7847 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7850 2020-04-22 Tom de Vries <tdevries@suse.de>
7853 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7856 2020-04-22 Tom de Vries <tdevries@suse.de>
7859 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7860 CU if already created.
7862 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7864 * infrun.c (displaced_step_fixup): Switch to the event_thread
7865 before calling displaced_step_restore, not after.
7867 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7869 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7870 its inferior is not recorded by us.
7871 (record_btrace_target_open): Replace call to
7872 all_non_exited_threads () with call to current_inferior
7873 ()->non_exited_threads ().
7874 (record_btrace_target::stop_recording): Likewise.
7875 (record_btrace_target::close): Likewise.
7876 (record_btrace_target::wait): Likewise.
7877 (record_btrace_target::record_stop_replaying): Likewise.
7879 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7881 * btrace.c (btrace_enable): Throw an error on double enables and
7882 when enabling recording fails.
7883 (btrace_disable): Throw an error if the thread is not recorded.
7885 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7887 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7888 request if we do not have a thread_info.
7890 2020-04-21 Tom de Vries <tdevries@suse.de>
7894 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7895 exception in get_frame_id.
7897 2020-04-20 Tom Tromey <tromey@adacore.com>
7899 * python/python.c (struct gdbpy_event): Mark move constructor as
7901 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7902 constructor as noexcept.
7903 * completer.h (struct completion_result): Mark move constructor as
7905 * completer.c (completion_result::completion_result): Use
7906 initialization style. Don't call reset_match_list.
7908 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7910 * MAINTAINERS (Write After Approval): Add myself.
7912 2020-04-18 Tom Tromey <tom@tromey.com>
7914 * windows-tdep.c (init_w32_command_list)
7915 (w32_prefix_command_valid): Restore.
7916 (_initialize_windows_tdep): Call init_w32_command_list.
7918 2020-04-18 Tom Tromey <tom@tromey.com>
7920 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7921 * value.c (value_fn_field): Update.
7922 * valops.c (find_function_in_inferior)
7923 (value_allocate_space_in_inferior): Update.
7924 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7926 * tui/tui-source.c (tui_source_window::set_contents): Update.
7927 * symtab.c (lookup_global_or_static_symbol)
7928 (find_function_start_sal_1, skip_prologue_sal)
7929 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7930 * symmisc.c (dump_msymbols, dump_symtab_1)
7931 (maintenance_print_one_line_table): Update.
7932 * symfile.c (init_entry_point_info, section_is_mapped)
7933 (list_overlays_command, simple_read_overlay_table)
7934 (simple_overlay_update_1): Update.
7935 * stap-probe.c (handle_stap_probe): Update.
7936 * stabsread.c (dbx_init_float_type, define_symbol)
7937 (read_one_struct_field, read_enum_type, read_range_type): Update.
7938 * source.c (info_line_command): Update.
7939 * python/python.c (gdbpy_source_objfile_script)
7940 (gdbpy_execute_objfile_script): Update.
7941 * python/py-type.c (save_objfile_types): Update.
7942 * python/py-objfile.c (py_free_objfile): Update.
7943 * python/py-inferior.c (python_new_objfile): Update.
7944 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7945 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7946 (maintenance_check_psymtabs): Update.
7947 * printcmd.c (info_address_command): Update.
7948 * objfiles.h (struct objfile) <arch>: New method, from
7950 (get_objfile_arch): Don't declare.
7951 * objfiles.c (get_objfile_arch): Remove.
7952 (filter_overlapping_sections): Update.
7953 * minsyms.c (msymbol_is_function): Update.
7954 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7955 (output_nondebug_symbol): Update.
7956 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7957 (mdebug_expand_psymtab): Update.
7958 * machoread.c (macho_add_oso_symfile): Update.
7959 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7961 * linux-fork.c (checkpoint_command): Update.
7962 * linespec.c (convert_linespec_to_sals): Update.
7963 * jit.c (finalize_symtab): Update.
7964 * infrun.c (insert_exception_resume_from_probe): Update.
7965 * ia64-tdep.c (ia64_find_unwind_table): Update.
7966 * hppa-tdep.c (internalize_unwinds): Update.
7967 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7969 * gcore.c (call_target_sbrk): Update.
7970 * elfread.c (record_minimal_symbol, elf_symtab_read)
7971 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7972 (elf_gnu_ifunc_resolve_by_got): Update.
7973 * dwarf2/read.c (create_addrmap_from_index)
7974 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7975 (read_debug_names_from_section)
7976 (process_psymtab_comp_unit_reader, add_partial_symbol)
7977 (add_partial_subprogram, process_full_comp_unit)
7978 (read_file_scope, read_func_scope, read_lexical_block_scope)
7979 (read_call_site_scope, dwarf2_ranges_read)
7980 (dwarf2_record_block_ranges, dwarf2_add_field)
7981 (mark_common_block_symbol_computed, read_tag_pointer_type)
7982 (read_tag_string_type, dwarf2_init_float_type)
7983 (dwarf2_init_complex_target_type, read_base_type)
7984 (partial_die_info::read, partial_die_info::read)
7985 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7986 (dwarf2_fetch_die_loc_sect_off): Update.
7987 * dwarf2/loc.c (dwarf2_find_location_expression)
7988 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7989 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7990 (dwarf2_loc_desc_get_symbol_read_needs)
7991 (locexpr_describe_location_piece, locexpr_describe_location_1)
7992 (loclist_describe_location): Update.
7993 * dwarf2/index-write.c (write_debug_names): Update.
7994 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7995 * dtrace-probe.c (dtrace_process_dof): Update.
7996 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7997 (process_one_symbol): Update.
7998 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7999 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
8000 (coff_read_enum_type): Update.
8001 * cli/cli-cmds.c (edit_command, list_command): Update.
8002 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
8003 * breakpoint.c (create_overlay_event_breakpoint)
8004 (create_longjmp_master_breakpoint)
8005 (create_std_terminate_master_breakpoint)
8006 (create_exception_master_breakpoint, get_sal_arch): Update.
8007 * block.c (block_gdbarch): Update.
8008 * annotate.c (annotate_source_line): Update.
8010 2020-04-17 Tom Tromey <tromey@adacore.com>
8012 * auto-load.c (show_auto_load_cmd): Remove.
8013 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
8014 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
8015 (maintenance_print_arc_command): Remove.
8016 * tui/tui-win.c (tui_command): Remove.
8017 (tui_get_cmd_list): Use add_basic_prefix_cmd.
8018 * tui/tui-layout.c (tui_layout_command): Remove.
8019 (_initialize_tui_layout): Use add_basic_prefix_cmd.
8020 * python/python.c (user_set_python, user_show_python): Remove.
8021 (_initialize_python): Use add_basic_prefix_cmd,
8022 add_show_prefix_cmd.
8023 * guile/guile.c (set_guile_command, show_guile_command): Remove.
8024 (install_gdb_commands): Use add_basic_prefix_cmd,
8025 add_show_prefix_cmd.
8026 (info_guile_command): Remove.
8027 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
8028 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
8029 add_show_prefix_cmd.
8030 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
8031 Remove do_set and do_show parameters.
8032 * cli/cli-style.c (set_style, show_style): Remove.
8033 (_initialize_cli_style): Use add_basic_prefix_cmd,
8034 add_show_prefix_cmd.
8035 (cli_style_option::add_setshow_commands): Remove do_set and
8037 (cli_style_option::add_setshow_commands): Use
8038 add_basic_prefix_cmd, add_show_prefix_cmd.
8039 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
8040 (set_style_name): Remove.
8041 * cli/cli-dump.c (dump_command, append_command): Remove.
8042 (srec_dump_command, ihex_dump_command, verilog_dump_command)
8043 (tekhex_dump_command, binary_dump_command)
8044 (binary_append_command): Remove.
8045 (_initialize_cli_dump): Use add_basic_prefix_cmd.
8046 * windows-tdep.c (w32_prefix_command_valid): Remove global.
8047 (init_w32_command_list): Remove; move into ...
8048 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
8049 * valprint.c (set_print, show_print, set_print_raw)
8050 (show_print_raw): Remove.
8051 (_initialize_valprint): Use add_basic_prefix_cmd,
8052 add_show_prefix_cmd.
8053 * typeprint.c (set_print_type, show_print_type): Remove.
8054 (_initialize_typeprint): Use add_basic_prefix_cmd,
8055 add_show_prefix_cmd.
8056 * record.c (set_record_command, show_record_command): Remove.
8057 (_initialize_record): Use add_basic_prefix_cmd,
8058 add_show_prefix_cmd.
8059 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
8060 add_show_prefix_cmd.
8061 (info_command, show_command, set_debug, show_debug): Remove.
8062 * top.h (set_history, show_history): Don't declare.
8063 * top.c (set_history, show_history): Remove.
8064 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
8065 (unset_tdesc_cmd): Remove.
8066 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
8067 add_show_prefix_cmd.
8068 * symtab.c (info_module_command): Remove.
8069 (_initialize_symtab): Use add_basic_prefix_cmd.
8070 * symfile.c (overlay_command): Remove.
8071 (_initialize_symfile): Use add_basic_prefix_cmd.
8072 * sparc64-tdep.c (info_adi_command): Remove.
8073 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
8074 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
8075 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
8076 add_show_prefix_cmd.
8077 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
8078 (_initialize_serial): Use add_basic_prefix_cmd,
8079 add_show_prefix_cmd.
8080 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
8081 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
8082 add_show_prefix_cmd.
8083 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
8084 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
8085 add_show_prefix_cmd.
8086 * riscv-tdep.c (show_riscv_command, set_riscv_command)
8087 (show_debug_riscv_command, set_debug_riscv_command): Remove.
8088 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
8089 add_show_prefix_cmd.
8090 * remote.c (remote_command, set_remote_cmd): Remove.
8091 (_initialize_remote): Use add_basic_prefix_cmd.
8092 * record-full.c (set_record_full_command)
8093 (show_record_full_command): Remove.
8094 (_initialize_record_full): Use add_basic_prefix_cmd,
8095 add_show_prefix_cmd.
8096 * record-btrace.c (cmd_set_record_btrace)
8097 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
8098 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
8099 (cmd_show_record_btrace_pt): Remove.
8100 (_initialize_record_btrace): Use add_basic_prefix_cmd,
8101 add_show_prefix_cmd.
8102 * ravenscar-thread.c (set_ravenscar_command)
8103 (show_ravenscar_command): Remove.
8104 (_initialize_ravenscar): Use add_basic_prefix_cmd,
8105 add_show_prefix_cmd.
8106 * mips-tdep.c (show_mips_command, set_mips_command)
8107 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
8108 add_show_prefix_cmd.
8109 * maint.c (maintenance_command, maintenance_info_command)
8110 (maintenance_check_command, maintenance_print_command)
8111 (maintenance_set_cmd, maintenance_show_cmd): Remove.
8112 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
8113 add_show_prefix_cmd.
8114 (show_per_command_cmd): Remove.
8115 * maint-test-settings.c (maintenance_set_test_settings_cmd):
8117 (maintenance_show_test_settings_cmd): Remove.
8118 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
8119 add_show_prefix_cmd.
8120 * maint-test-options.c (maintenance_test_options_command):
8122 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
8123 * macrocmd.c (macro_command): Remove
8124 (_initialize_macrocmd): Use add_basic_prefix_cmd.
8125 * language.c (set_check, show_check): Remove.
8126 (_initialize_language): Use add_basic_prefix_cmd,
8127 add_show_prefix_cmd.
8128 * infcmd.c (unset_command): Remove.
8129 (_initialize_infcmd): Use add_basic_prefix_cmd.
8130 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
8131 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
8132 add_show_prefix_cmd.
8133 * go32-nat.c (go32_info_dos_command): Remove.
8134 (_initialize_go32_nat): Use add_basic_prefix_cmd.
8135 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
8136 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
8137 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
8138 (_initialize_frame): Use add_basic_prefix_cmd,
8139 add_show_prefix_cmd.
8140 * dcache.c (set_dcache_command, show_dcache_command): Remove.
8141 (_initialize_dcache): Use add_basic_prefix_cmd,
8142 add_show_prefix_cmd.
8143 * cp-support.c (maint_cplus_command): Remove.
8144 (_initialize_cp_support): Use add_basic_prefix_cmd.
8145 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
8146 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
8147 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
8148 add_basic_prefix_cmd, add_show_prefix_cmd.
8149 * breakpoint.c (save_command): Remove.
8150 (_initialize_breakpoint): Use add_basic_prefix_cmd.
8151 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
8152 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
8153 add_show_prefix_cmd.
8154 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
8155 (set_ada_command, show_ada_command): Remove.
8156 (_initialize_ada_language): Use add_basic_prefix_cmd,
8157 add_show_prefix_cmd.
8158 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
8160 2020-04-16 Kamil Rytarowski <n54@gmx.com>
8162 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
8163 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
8165 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8167 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
8170 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
8172 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
8173 import table is not at beginning of .idata section.
8175 2020-04-16 Pedro Alves <palves@redhat.com>
8177 * inferior.c (delete_inferior): Use delete operator directly
8178 instead of delete_program_space.
8179 * progspace.c (add_program_space): New, factored out from
8180 program_space::program_space.
8181 (remove_program_space): New, factored out from
8182 delete_program_space.
8183 (program_space::program_space): Remove intro comment. Rewrite.
8184 (program_space::~program_space): Remove intro comment. Call
8185 remove_program_space.
8186 (delete_program_space): Delete.
8187 * progspace.h (program_space::program_space): Make explicit. Move
8188 intro comment here, adjusted.
8189 (program_space::~program_space): Move intro comment here,
8191 (delete_program_space): Remove.
8193 2020-04-16 Tom Tromey <tromey@adacore.com>
8195 * windows-nat.c (windows_nat::handle_access_violation): New
8197 * nat/windows-nat.h (handle_access_violation): Declare.
8198 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8199 windows-nat.c. Call handle_access_violation.
8201 2020-04-16 Tom de Vries <tdevries@suse.de>
8204 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8205 CUs without psymtab.
8207 2020-04-16 Kevin Buettner <kevinb@redhat.com>
8209 * python/python.c (do_start_initialization): Don't call
8210 PyEval_InitThreads for Python 3.9 and beyond.
8212 2020-04-15 Kamil Rytarowski <n54@gmx.com>
8214 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8216 (obsd_nat_target::wait): Likewise.
8218 2020-04-15 Tom Tromey <tromey@adacore.com>
8220 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8221 (DEBUG_EXCEPT): Use debug_printf.
8223 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8225 * completer.c (class completion_tracker::completion_hash_entry)
8226 <hash_name>: New member function.
8227 (completion_tracker::discard_completions): New callback to hash a
8228 completion_hash_entry, pass this to htab_create_alloc.
8230 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8232 * windows-nat.c (windows_make_so): Warn rather than stopping with
8233 an error if realpath() fails.
8235 2020-04-14 Kamil Rytarowski <n54@gmx.com>
8237 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8238 (nbsd_nat_target::info_proc): Add do_status.
8240 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8241 Tom de Vries <tdevries@suse.de>
8244 * psympriv.h (struct partial_symtab::read_symtab)
8245 (struct partial_symtab::expand_psymtab)
8246 (struct partial_symtab::read_dependencies): Update comments.
8247 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8248 read_symtab for includer.
8249 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8250 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8251 (struct dwarf2_include_psymtab::m_readin): Remove.
8252 (struct dwarf2_include_psymtab::includer): New member function.
8253 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8255 2020-04-14 Tom de Vries <tdevries@suse.de>
8258 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8259 with NULL symbol_matcher and lookup_name.
8260 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8262 * dwarf2/read.c (dw2_expand_symtabs_matching)
8263 (dw2_debug_names_expand_symtabs_matching): Same.
8264 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8265 Make lookup_name a pointer. Update comment.
8266 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8267 lookup_name being a pointer.
8268 * symfile.c (expand_symtabs_matching): Same.
8269 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8270 * linespec.c (iterate_over_all_matching_symtabs): Same.
8272 2020-04-13 Tom Tromey <tom@tromey.com>
8274 * run-on-main-thread.c: Update include.
8275 * unittests/main-thread-selftests.c: Update include.
8276 * tui/tui-win.c: Update include.
8277 * tui/tui-io.c: Update include.
8278 * tui/tui-interp.c: Update include.
8279 * tui/tui-hooks.c: Update include.
8280 * top.h: Update include.
8281 * top.c: Update include.
8282 * ser-base.c: Update include.
8283 * remote.c: Update include.
8284 * remote-notif.c: Update include.
8285 * remote-fileio.c: Update include.
8286 * record-full.c: Update include.
8287 * record-btrace.c: Update include.
8288 * python/python.c: Update include.
8289 * posix-hdep.c: Update include.
8290 * mingw-hdep.c: Update include.
8291 * mi/mi-main.c: Update include.
8292 * mi/mi-interp.c: Update include.
8293 * main.c: Update include.
8294 * linux-nat.c: Update include.
8295 * interps.c: Update include.
8296 * infrun.c: Update include.
8297 * inf-loop.c: Update include.
8298 * event-top.c: Update include.
8299 * event-loop.c: Move to ../gdbsupport/.
8300 * event-loop.h: Move to ../gdbsupport/.
8301 * async-event.h: Update include.
8302 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8304 2020-04-13 Tom Tromey <tom@tromey.com>
8306 * tui/tui-win.c: Include async-event.h.
8307 * remote.c: Include async-event.h.
8308 * remote-notif.c: Include async-event.h.
8309 * record-full.c: Include async-event.h.
8310 * record-btrace.c: Include async-event.h.
8311 * infrun.c: Include async-event.h.
8312 * event-top.c: Include async-event.h.
8313 * event-loop.h: Move some declarations to async-event.h.
8314 * event-loop.c: Don't include ser-event.h or top.h. Move some
8315 code to async-event.c.
8316 * async-event.h: New file.
8317 * async-event.c: New file.
8318 * Makefile.in (COMMON_SFILES): Add async-event.c.
8319 (HFILES_NO_SRCDIR): Add async-event.h.
8321 2020-04-13 Tom Tromey <tom@tromey.com>
8323 * utils.c (flush_streams): New function.
8324 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8326 2020-04-13 Tom Tromey <tom@tromey.com>
8328 * event-loop.c (handle_file_event): Use warning, not
8331 2020-04-13 Tom Tromey <tom@tromey.com>
8333 * event-loop.c: Include <chrono>.
8335 2020-04-13 Tom Tromey <tom@tromey.com>
8337 * gdb_select.h: Move to ../gdbsupport/.
8338 * event-loop.c: Update include path.
8339 * top.c: Update include path.
8340 * ser-base.c: Update include path.
8341 * ui-file.c: Update include path.
8342 * ser-tcp.c: Update include path.
8343 * guile/scm-ports.c: Update include path.
8344 * posix-hdep.c: Update include path.
8345 * ser-unix.c: Update include path.
8346 * gdb_usleep.c: Update include path.
8347 * mingw-hdep.c: Update include path.
8348 * inflow.c: Update include path.
8349 * infrun.c: Update include path.
8350 * event-top.c: Update include path.
8352 2020-04-13 Tom Tromey <tom@tromey.com>
8354 * configure: Rebuild.
8355 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8357 2020-04-13 Tom Tromey <tom@tromey.com>
8359 * event-loop.h (start_event_loop): Don't declare.
8360 * event-loop.c (start_event_loop): Move...
8361 * main.c (start_event_loop): ...here. Now static.
8363 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8365 * MAINTAINERS: Update my email address.
8367 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8369 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8372 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8374 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
8375 (nbsd_nat_target::info_proc): Add do_cmdline.
8377 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8379 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
8380 (nbsd_nat_target::info_proc): Add do_cwd.
8382 2020-04-12 Kamil Rytarowski <n54@gmx.com>
8384 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8386 2020-04-11 Kamil Rytarowski <n54@gmx.com>
8388 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8389 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8390 (nbsd_nat_target::info_proc): New functions.
8391 * nbsd-nat.c (kinfo_get_vmmap): New function.
8392 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8393 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8394 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8395 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8397 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8398 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8399 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8400 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8401 (KINFO_VME_FLAG_GROWS_DOWN): New.
8403 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8405 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8408 2020-04-10 Tom Tromey <tromey@adacore.com>
8410 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8412 2020-04-10 Tom Tromey <tromey@adacore.com>
8414 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8415 separate debug files.
8417 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
8419 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8421 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8423 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8424 Check for STATUS_WX86_BREAKPOINT.
8425 (windows_nat_target::wait): Same.
8427 2020-04-10 Tom de Vries <tdevries@suse.de>
8430 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8432 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8434 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8435 (Write After Approval): Remove Tom de Vries.
8437 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8440 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8442 * buildsym.c (record_line): Fix undefined behavior and preserve
8445 2020-04-09 Kamil Rytarowski <n54@gmx.com>
8447 * auxv.h (svr4_auxv_parse): New.
8448 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8449 and generic_auxv_parse.
8450 (svr4_auxv_parse): Add.
8451 * obsd-tdep.c: Include "auxv.h".
8452 (obsd_auxv_parse): Remove.
8453 (obsd_init_abi): Remove comment.
8454 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8455 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8456 * nbsd-tdep.c: Include "auxv.h".
8457 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8459 2020-04-08 Tom Tromey <tromey@adacore.com>
8461 * nat/windows-nat.h (last_wait_event): Don't declare.
8462 (wait_for_debug_event): Update comment.
8463 * nat/windows-nat.c (last_wait_event): Now static.
8465 2020-04-08 Tom Tromey <tromey@adacore.com>
8467 * windows-nat.c (wait_for_debug_event): Move to
8469 * nat/windows-nat.h (wait_for_debug_event): Declare.
8470 * nat/windows-nat.c (wait_for_debug_event): Move from
8471 windows-nat.c. No longer static.
8473 2020-04-08 Tom Tromey <tromey@adacore.com>
8475 * windows-nat.c (get_windows_debug_event): Use
8477 * nat/windows-nat.h (fetch_pending_stop): Declare.
8478 * nat/windows-nat.c (fetch_pending_stop): New function.
8480 2020-04-08 Tom Tromey <tromey@adacore.com>
8482 * windows-nat.c (windows_continue): Use matching_pending_stop and
8483 continue_last_debug_event.
8484 * nat/windows-nat.h (matching_pending_stop)
8485 (continue_last_debug_event): Declare.
8486 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8487 (matching_pending_stop, continue_last_debug_event): New
8490 2020-04-08 Tom Tromey <tromey@adacore.com>
8492 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8493 (handle_exception_result): Move to nat/windows-nat.h.
8494 (DEBUG_EXCEPTION_SIMPLE): Remove.
8495 (windows_nat::handle_ms_vc_exception): New function.
8496 (handle_exception): Move to nat/windows-nat.c.
8497 (get_windows_debug_event): Update.
8498 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8500 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8501 (handle_exception_result): Move from windows-nat.c.
8502 (handle_exception): Declare.
8503 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8504 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8507 2020-04-08 Tom Tromey <tromey@adacore.com>
8509 * windows-nat.c (exception_count, event_count): Remove.
8510 (handle_exception, get_windows_debug_event)
8511 (do_initial_windows_stuff): Update.
8513 2020-04-08 Tom Tromey <tromey@adacore.com>
8515 * windows-nat.c (windows_nat::handle_load_dll)
8516 (windows_nat::handle_unload_dll): Rename. No longer static.
8517 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8520 2020-04-08 Tom Tromey <tromey@adacore.com>
8522 * complaints.h (stop_whining): Declare at top-level.
8523 (complaint): Don't declare stop_whining.
8525 2020-04-08 Tom Tromey <tromey@adacore.com>
8527 * windows-nat.c (windows_nat::handle_output_debug_string):
8528 Rename. No longer static.
8529 * nat/windows-nat.h (handle_output_debug_string): Declare.
8531 2020-04-08 Tom Tromey <tromey@adacore.com>
8533 * windows-nat.c (current_process_handle, current_process_id)
8534 (main_thread_id, last_sig, current_event, last_wait_event)
8535 (current_windows_thread, desired_stop_thread_id, pending_stops)
8536 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8537 (display_selectors, fake_create_process)
8538 (get_windows_debug_event): Update.
8539 * nat/windows-nat.h (current_process_handle, current_process_id)
8540 (main_thread_id, last_sig, current_event, last_wait_event)
8541 (current_windows_thread, desired_stop_thread_id, pending_stops)
8542 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8543 * nat/windows-nat.c (current_process_handle, current_process_id)
8544 (main_thread_id, last_sig, current_event, last_wait_event)
8545 (current_windows_thread, desired_stop_thread_id, pending_stops)
8546 (siginfo_er): New globals. Move from windows-nat.c.
8548 2020-04-08 Tom Tromey <tromey@adacore.com>
8550 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8551 (handle_load_dll): Update.
8552 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8554 2020-04-08 Tom Tromey <tromey@adacore.com>
8556 * windows-nat.c (enum thread_disposition_type): Move to
8558 (windows_nat::thread_rec): Rename from thread_rec. No longer
8560 (windows_add_thread, windows_nat_target::fetch_registers)
8561 (windows_nat_target::store_registers, handle_exception)
8562 (windows_nat_target::resume, get_windows_debug_event)
8563 (windows_nat_target::get_tib_address)
8564 (windows_nat_target::thread_name)
8565 (windows_nat_target::thread_alive): Update.
8566 * nat/windows-nat.h (enum thread_disposition_type): Move from
8568 (thread_rec): Declare.
8570 2020-04-08 Tom Tromey <tromey@adacore.com>
8572 * windows-nat.c: Add "using namespace".
8573 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8574 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8576 2020-04-08 Tom Tromey <tromey@adacore.com>
8578 * nat/windows-nat.h (struct windows_thread_info): Declare
8580 * nat/windows-nat.c (~windows_thread_info): New.
8582 2020-04-08 Tom Tromey <tromey@adacore.com>
8585 * windows-nat.c (current_event): Update comment.
8586 (last_wait_event, desired_stop_thread_id): New globals.
8587 (struct pending_stop): New.
8588 (pending_stops): New global.
8589 (windows_nat_target) <stopped_by_sw_breakpoint>
8590 <supports_stopped_by_sw_breakpoint>: New methods.
8591 (windows_fetch_one_register): Add assertions. Adjust PC.
8592 (windows_continue): Handle pending stops. Suspend other threads
8593 when stepping. Use last_wait_event
8594 (wait_for_debug_event): New function.
8595 (get_windows_debug_event): Use wait_for_debug_event. Handle
8596 pending stops. Queue spurious stops.
8597 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8598 (windows_nat_target::kill): Use wait_for_debug_event.
8599 * nat/windows-nat.h (struct windows_thread_info)
8600 <stopped_at_software_breakpoint>: New field.
8601 * nat/windows-nat.c (windows_thread_info::resume): Clear
8602 stopped_at_software_breakpoint.
8604 2020-04-08 Tom Tromey <tromey@adacore.com>
8606 * windows-nat.c (enum thread_disposition_type): New.
8607 (thread_rec): Replace "get_context" parameter with "disposition";
8609 (windows_add_thread, windows_nat_target::fetch_registers)
8610 (windows_nat_target::store_registers, handle_exception)
8611 (windows_nat_target::resume, get_windows_debug_event)
8612 (windows_nat_target::get_tib_address)
8613 (windows_nat_target::thread_name)
8614 (windows_nat_target::thread_alive): Update.
8616 2020-04-08 Tom Tromey <tromey@adacore.com>
8618 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8619 (windows_continue): Use windows_continue::resume.
8620 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8621 resume>: Declare new methods.
8622 * nat/windows-nat.c: New file.
8623 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8625 2020-04-08 Tom Tromey <tromey@adacore.com>
8627 * windows-nat.c (windows_add_thread, windows_delete_thread)
8628 (windows_nat_target::fetch_registers)
8629 (windows_nat_target::store_registers, fake_create_process)
8630 (windows_nat_target::resume, windows_nat_target::resume)
8631 (get_windows_debug_event, windows_nat_target::wait)
8632 (windows_nat_target::pid_to_str)
8633 (windows_nat_target::get_tib_address)
8634 (windows_nat_target::get_ada_task_ptid)
8635 (windows_nat_target::thread_name)
8636 (windows_nat_target::thread_alive): Use lwp, not tid.
8638 2020-04-08 Tom Tromey <tromey@adacore.com>
8640 * windows-nat.c (handle_exception)
8641 (windows_nat_target::thread_name): Update.
8642 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8643 <name>: Now unique_xmalloc_ptr.
8645 2020-04-08 Tom Tromey <tromey@adacore.com>
8647 * windows-nat.c (thread_rec)
8648 (windows_nat_target::fetch_registers): Update.
8649 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8651 <debug_registers_changed, reload_context>: Now bool.
8653 2020-04-08 Tom Tromey <tromey@adacore.com>
8655 * windows-nat.c (windows_add_thread): Use new.
8656 (windows_init_thread_list, windows_delete_thread): Use delete.
8657 (get_windows_debug_event): Update.
8658 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8659 destructor, and initializers.
8661 2020-04-08 Tom Tromey <tromey@adacore.com>
8663 * windows-nat.c (struct windows_thread_info): Remove.
8664 * nat/windows-nat.h: New file.
8666 2020-04-08 Tom Tromey <tromey@adacore.com>
8668 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8669 (thread_rec, windows_add_thread, windows_delete_thread)
8670 (windows_continue): Update.
8672 2020-04-08 Tom Tromey <tromey@adacore.com>
8674 * windows-nat.c (struct windows_thread_info): Remove typedef.
8675 (thread_head): Remove.
8676 (thread_list): New global.
8677 (thread_rec, windows_add_thread, windows_init_thread_list)
8678 (windows_delete_thread, windows_continue): Update.
8680 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8682 * windows-tdep.h (windows_init_abi): Add comment.
8683 (cygwin_init_abi): New declaration.
8684 * windows-tdep.c: Split signal enumeration in two, one for
8685 Windows and one for Cygwin.
8686 (windows_gdb_signal_to_target): Only deal with signal of the
8688 (cygwin_gdb_signal_to_target): New function.
8689 (windows_init_abi): Rename to windows_init_abi_common, don't set
8690 gdb_signal_to_target gdbarch method. Add new new function with
8692 (cygwin_init_abi): New function.
8693 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8694 comment. Don't call windows_init_abi.
8695 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8696 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8697 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8698 i386_windows_init_abi_common, don't call windows_init_abi. Add
8699 a new function of this name.
8700 (i386_cygwin_init_abi): New function.
8701 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8704 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8706 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8708 (dwarf2_read_gdb_index): Update.
8710 2020-04-07 Kamil Rytarowski <n54@gmx.com>
8712 * nbsd-tdep.c: Include "objfiles.h".
8713 (nbsd_skip_solib_resolver): New.
8714 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8716 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8718 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8719 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8720 with DW_LLE_base_addressx are being emitted in DWARFv5.
8721 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8722 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8725 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8727 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8728 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8729 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8730 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8731 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8732 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8733 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8736 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8738 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8739 (read_loclist_index): New function definition.
8740 (lookup_loclist_base): New function definition.
8741 (read_loclist_header): New function definition.
8742 (dwarf2_cu): Add loclist_base and loclist_header field.
8743 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8744 (read_full_die_1): Read the value of DW_AT_loclists_base.
8745 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8746 (read_attribute_value): Handle DW_FORM_loclistx.
8747 (skip_one_die): Handle DW_FORM_loclistx.
8748 (loclist_header): New structure declaration.
8749 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8751 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8753 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8754 constructor. Remove `addr` parameter from other constructor and
8755 add `per_cu` parameter.
8756 * dwarf2/read.c (create_partial_symtab): Update.
8758 2020-04-07 Tom de Vries <tdevries@suse.de>
8761 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8762 (partial_die_info::fixup): Inherit has_const_value.
8764 2020-04-07 Tom de Vries <tdevries@suse.de>
8766 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8767 symbols without address.
8769 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8771 * nbsd-nat.h (struct thread_info): Add forward declaration.
8772 (nbsd_nat_target::thread_alive): Add.
8773 (nbsd_nat_target::thread_name): Likewise.
8774 (nbsd_nat_target::update_thread_list): Likewise.
8775 (update_thread_list::post_attach): Likewise.
8776 (post_attach::pid_to_str): Likewise.
8777 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8778 (nbsd_thread_lister): Add.
8779 (nbsd_nat_target::thread_alive): Likewise.
8780 (nbsd_nat_target::thread_name): Likewise.
8781 (nbsd_add_threads): Likewise.
8782 (update_thread_list::post_attach): Likewise.
8783 (nbsd_nat_target::update_thread_list): Likewise.
8784 (post_attach::pid_to_str): Likewise.
8786 2020-04-06 Tom Tromey <tromey@adacore.com>
8788 * ada-valprint.c (print_variant_part): Extract the variant field.
8789 (print_field_values): Use the field as the outer value when
8792 2020-04-06 Tom Tromey <tromey@adacore.com>
8794 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8795 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8796 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8797 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8798 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8800 2020-04-06 Tom Tromey <tromey@adacore.com>
8802 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8805 2020-04-06 Kamil Rytarowski <n54@gmx.com>
8807 * nbsd-tdep.c: Include "gdbarch.h".
8808 Define enum with NetBSD signal numbers.
8809 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8810 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8811 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8812 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8813 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8814 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8815 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8816 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8817 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8818 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8819 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8820 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8822 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
8825 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8827 2020-04-03 Tom Tromey <tromey@adacore.com>
8829 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8830 Read constant block.
8832 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8834 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8835 (gdb_bfd_get_full_section_contents): New declaration.
8836 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8837 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8838 gdb_bfd_get_full_section_contents.
8840 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8842 * exec.c (build_section_table): Replace internal_error with
8844 (section_table_xfer_memory_partial): Likewise.
8845 * mdebugread.c (parse_partial_symbols): Likewise.
8846 * psymtab.c (lookup_partial_symbol): Likewise.
8847 * utils.c (wrap_here): Likewise.
8849 2020-04-02 Tom Tromey <tromey@adacore.com>
8851 * f-lang.c (build_fortran_types): Use arch_type to initialize
8852 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8854 2020-04-02 Tom Tromey <tromey@adacore.com>
8856 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8859 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8860 Bernd Edlinger <bernd.edlinger@hotmail.de>
8861 Tom Tromey <tromey@adacore.com>
8863 * buildsym.c (buildsym_compunit::record_line): Remove
8866 2020-04-02 Tom de Vries <tdevries@suse.de>
8869 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8871 2020-04-02 Tom de Vries <tdevries@suse.de>
8873 * dwarf2/read.c (dwarf2_gdb_index_functions,
8874 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8876 * psymtab.c (psym_lookup_global_symbol_language): New function.
8877 (psym_functions): Init psym_lookup_global_symbol_language with
8878 psym_lookup_global_symbol_language.
8879 * symfile-debug.c (debug_sym_quick_functions): Init
8880 lookup_global_symbol_language with NULL.
8881 * symfile.c (set_initial_language): Remove fixme comment.
8882 * symfile.h (struct quick_symbol_functions): Add
8883 lookup_global_symbol_language.
8884 * symtab.c (find_quick_global_symbol_language): New function.
8885 (find_main_name): Use find_quick_global_symbol_language.
8887 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8889 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8891 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8893 * buildsym.c (record_line): Fix undefined behavior and preserve
8896 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8898 * buildsym.c (record_line): Fix the resizing condition.
8900 2020-04-01 Tom Tromey <tom@tromey.com>
8902 * value.h (value_literal_complex): Add comment.
8903 * valops.c (value_literal_complex): Refer to value.h.
8905 2020-04-01 Tom Tromey <tom@tromey.com>
8907 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8908 (scalar_type): New rule, from typebase.
8909 (typebase): Use scalar_type. Recognize complex types.
8910 (field_name): Handle FLOAT_KEYWORD.
8911 (ident_tokens): Add _Complex and __complex__.
8913 2020-04-01 Tom Tromey <tom@tromey.com>
8916 * valarith.c (promotion_type, complex_binop): New functions.
8917 (scalar_binop): Handle complex numbers. Use promotion_type.
8918 (value_pos, value_neg, value_complement): Handle complex numbers.
8920 2020-04-01 Tom Tromey <tom@tromey.com>
8922 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8923 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8924 (parse_number): Handle complex numbers.
8926 2020-04-01 Tom Tromey <tom@tromey.com>
8928 * c-valprint.c (c_decorations): Change complex suffix to "i".
8930 2020-04-01 Tom Tromey <tom@tromey.com>
8932 * valprint.c (generic_value_print_complex): Use accessors.
8933 * value.h (value_real_part, value_imaginary_part): Declare.
8934 * valops.c (value_real_part, value_imaginary_part): New
8936 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8938 2020-04-01 Tom Tromey <tom@tromey.com>
8940 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8941 (read_range_type): Update.
8942 * mdebugread.c (basic_type): Update.
8943 * go-lang.c (build_go_types): Use init_complex_type.
8944 * gdbtypes.h (struct main_type) <complex_type>: New member.
8945 (init_complex_type): Update.
8946 (arch_complex_type): Don't declare.
8947 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8948 Make name if none given. Use alloc_type_copy. Look for cached
8950 (arch_complex_type): Remove.
8951 (gdbtypes_post_init): Use init_complex_type.
8952 * f-lang.c (build_fortran_types): Use init_complex_type.
8953 * dwarf2/read.c (read_base_type): Update.
8954 * d-lang.c (build_d_types): Use init_complex_type.
8955 * ctfread.c (read_base_type): Update.
8957 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8959 * infrun.c (stop_all_threads): Update assertion, plus when
8960 stopping threads, take into account that we might be trying
8961 to stop an all-stop target.
8962 (stop_waiting): Call 'stop_all_threads' if there exists a
8965 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8967 * target.h (exists_non_stop_target): New function declaration.
8968 * target.c (exists_non_stop_target): New function.
8970 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
8973 * eval.c (is_integral_or_integral_reference): New function.
8974 (evaluate_subexp_standard): Allow integer references in
8977 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8979 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8980 check for no ptid in the stop reply when the target is non-stop.
8982 2020-04-01 Tom Tromey <tromey@adacore.com>
8984 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8985 "name" parameter to rvalue reference. Initialize m_name_holder.
8986 <lookup_name_info>: New overloads.
8987 <name>: Return gdb::string_view.
8988 <c_str>: New method.
8989 <make_ignore_params>: Update.
8990 <search_name_hash>: Update.
8991 <language_lookup_name>: Return const char *.
8992 <m_name>: Change type.
8993 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8994 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8995 (lookup_name_info::match_any): Update.
8996 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8998 * minsyms.c (linkage_name_str): Update.
8999 * language.c (default_symbol_name_matcher): Update.
9000 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
9002 * ada-lang.c (ada_fold_name): Change parameter to string_view.
9003 (ada_lookup_name_info::ada_lookup_name_info): Update.
9004 (literal_symbol_name_matcher): Update.
9006 2020-04-01 Tom Tromey <tromey@adacore.com>
9008 * psymtab.c (psymtab_search_name): Remove function.
9009 (psym_lookup_symbol): Create search name and lookup name here.
9010 (lookup_partial_symbol): Remove "name" parameter; add
9012 (psym_expand_symtabs_for_function): Update.
9014 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
9017 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
9019 2020-03-31 Tom Tromey <tromey@adacore.com>
9021 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
9024 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
9026 * features/riscv/32bit-csr.xml: Regenerated.
9027 * features/riscv/64bit-csr.xml: Regenerated.
9029 2020-03-30 Tom Tromey <tromey@adacore.com>
9031 * ada-valprint.c (print_variant_part): Update.
9032 * ada-lang.h (ada_which_variant_applies): Update.
9033 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
9034 outer_valaddr parameters; replace with "outer" value parameter.
9035 (to_fixed_variant_branch_type): Update.
9037 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9039 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
9040 <list>. Remove inclusion of observable.h.
9041 (PPC_DEBUG_CURRENT_VERSION): Move up define.
9042 (struct arch_lwp_info): New struct.
9043 (class ppc_linux_dreg_interface): New class.
9044 (struct ppc_linux_process_info): New struct.
9045 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
9046 <low_new_clone, low_forget_process, low_prepare_to_resume>
9047 <copy_thread_dreg_state, mark_thread_stale>
9048 <mark_debug_registers_changed, register_hw_breakpoint>
9049 <clear_hw_breakpoint, register_wp, clear_wp>
9050 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
9051 <num_memory_accesses, get_trigger_type>
9052 <create_watchpoint_request, hwdebug_point_cmp>
9053 <init_arch_lwp_info, get_arch_lwp_info>
9054 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
9056 <struct ptid_hash>: New inner struct.
9057 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
9059 (saved_dabr_value, hwdebug_info, max_slots_number)
9060 (struct hw_break_tuple, struct thread_points, ppc_threads)
9061 (have_ptrace_hwdebug_interface)
9062 (hwdebug_find_thread_points_by_tid)
9063 (hwdebug_insert_point, hwdebug_remove_point): Remove.
9064 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
9065 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
9066 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
9067 use m_dreg_interface.
9068 (hwdebug_point_cmp): Change to...
9069 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
9070 reference arguments instead of pointers.
9071 (ppc_linux_nat_target::ranged_break_num_registers): Use
9073 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
9074 m_dreg_interface. Call register_hw_breakpoint.
9075 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
9076 m_dreg_interface. Call clear_hw_breakpoint.
9077 (get_trigger_type): Change to...
9078 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
9080 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
9081 use m_dreg_interface. Call register_hw_breakpoint.
9082 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
9083 use m_dreg_interface. Call clear_hw_breakpoint.
9084 (can_use_watchpoint_cond_accel): Change to...
9085 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
9086 method. Update comment, use m_dreg_interface and
9088 (calculate_dvc): Change to...
9089 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
9091 (num_memory_accesses): Change to...
9092 (ppc_linux_nat_target::num_memory_accesses): ...this method.
9093 (check_condition): Change to...
9094 (ppc_linux_nat_target::check_condition): ...this method.
9095 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
9096 comment, use m_dreg_interface.
9097 (create_watchpoint_request): Change to...
9098 (ppc_linux_nat_target::create_watchpoint_request): ...this
9099 method. Use m_dreg_interface.
9100 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
9101 m_dreg_interface. Call register_hw_breakpoint or register_wp.
9102 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
9103 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
9104 (ppc_linux_nat_target::low_forget_process)
9105 (ppc_linux_nat_target::low_new_fork)
9106 (ppc_linux_nat_target::low_new_clone)
9107 (ppc_linux_nat_target::low_delete_thread)
9108 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
9109 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
9110 only call mark_thread_stale.
9111 (ppc_linux_thread_exit): Remove.
9112 (ppc_linux_nat_target::stopped_data_address): Change to...
9113 (ppc_linux_nat_target::low_stopped_data_address): This. Add
9114 comment, use m_dreg_interface and m_thread_hw_breakpoints.
9115 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
9116 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
9117 comment. Call low_stopped_data_address.
9118 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
9120 (ppc_linux_nat_target::masked_watch_num_registers): Use
9122 (ppc_linux_nat_target::copy_thread_dreg_state)
9123 (ppc_linux_nat_target::mark_thread_stale)
9124 (ppc_linux_nat_target::mark_debug_registers_changed)
9125 (ppc_linux_nat_target::register_hw_breakpoint)
9126 (ppc_linux_nat_target::clear_hw_breakpoint)
9127 (ppc_linux_nat_target::register_wp)
9128 (ppc_linux_nat_target::clear_wp)
9129 (ppc_linux_nat_target::init_arch_lwp_info)
9130 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
9131 (_initialize_ppc_linux_nat): Remove observer callback.
9133 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9135 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
9136 (ppc_linux_nat_target::auxv_parse)
9137 (ppc_linux_nat_target::read_description)
9138 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
9141 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
9143 * linux-nat.h (low_new_clone): New method.
9144 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
9146 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9148 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
9149 (dbx_expand_psymtab): ... this.
9150 (start_psymtab): Update.
9151 * mdebugread.c (psymtab_to_symtab_1): Rename to...
9152 (mdebug_expand_psymtab): ... this.
9153 (parse_partial_symbols): Update.
9154 (new_psymtab): Update.
9155 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
9156 (xcoff_expand_psymtab): ... this.
9157 (xcoff_start_psymtab): Update.
9159 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9161 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
9162 <expand_dependencies>: ... this.
9163 * psymtab.c (partial_symtab::read_dependencies): Rename to...
9164 (partial_symtab::expand_dependencies): ... this.
9165 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
9167 (dwarf2_psymtab::expand_psymtab): Update.
9168 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9169 * mdebugread.c (psymtab_to_symtab_1): Update.
9170 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9172 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
9174 * psympriv.h (discard_psymtab): Remove.
9175 * dbxread.c (dbx_end_psymtab): Update.
9176 * xcoffread.c (xcoff_end_psymtab): Update.
9178 2020-03-28 Tom Tromey <tom@tromey.com>
9180 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
9183 2020-03-28 Tom Tromey <tom@tromey.com>
9185 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
9187 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
9189 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9191 2020-03-26 John Baldwin <jhb@FreeBSD.org>
9193 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
9195 2020-03-26 Tom Tromey <tom@tromey.com>
9197 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9198 (mark_common_block_symbol_computed, read_tag_string_type)
9199 (attr_to_dynamic_prop, read_subrange_type): Update.
9200 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9201 to be methods on struct attribute.
9202 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9203 (read_call_site_scope, partial_die_info::read)
9204 (partial_die_info::read, lookup_die_type, follow_die_ref):
9206 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9207 from dwarf2_get_ref_die_offset.
9208 (attribute::constant_value): New method, from
9209 dwarf2_get_attr_constant_value.
9210 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9212 <constant_value>: New method.
9214 2020-03-26 Tom Tromey <tom@tromey.com>
9216 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9217 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9218 (dwarf_type_encoding_name): Move to stringify.c.
9219 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9220 * dwarf2/stringify.c: New file.
9221 * dwarf2/stringify.h: New file.
9223 2020-03-26 Tom Tromey <tom@tromey.com>
9225 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9228 2020-03-26 Tom Tromey <tom@tromey.com>
9230 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9232 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9233 (lookup_ranges_base): Likewise.
9234 (read_cutu_die_from_dwo, read_full_die_1): Update.
9236 2020-03-26 Tom Tromey <tom@tromey.com>
9238 * dwarf2/read.c (read_import_statement, read_file_scope)
9239 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9240 (read_lexical_block_scope, read_call_site_scope)
9241 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9242 (handle_struct_member_die, process_structure_scope)
9243 (update_enumeration_type_from_children)
9244 (process_enumeration_scope, read_array_type, read_common_block)
9245 (read_namespace, read_module, read_subroutine_type): Update.
9246 (sibling_die): Remove.
9248 2020-03-26 Tom Tromey <tom@tromey.com>
9250 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9251 (build_type_psymtabs_reader, read_structure_type)
9252 (read_enumeration_type, read_full_die_1): Update.
9253 (dwarf2_attr_no_follow): Move to die.h.
9254 * dwarf2/die.h (struct die_info) <attr>: New method.
9256 2020-03-26 Tom Tromey <tom@tromey.com>
9258 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9259 <base_address>: Now an optional.
9260 (dwarf2_find_base_address, dwarf2_rnglists_process)
9261 (dwarf2_ranges_process, fill_in_loclist_baton)
9262 (dwarf2_symbol_mark_computed): Update.
9264 2020-03-26 Tom Tromey <tom@tromey.com>
9266 * dwarf2/read.c (struct die_info): Move to die.h.
9267 * dwarf2/die.h: New file.
9269 2020-03-26 Tom Tromey <tom@tromey.com>
9271 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9273 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9274 Move to line-header.c.
9275 (read_checked_initial_length_and_offset, read_formatted_entries):
9277 (dwarf_decode_line_header): Split into two.
9278 * dwarf2/line-header.c
9279 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9281 (read_checked_initial_length_and_offset, read_formatted_entries):
9283 (dwarf_decode_line_header): New function, split from read.c.
9285 2020-03-26 Tom Tromey <tom@tromey.com>
9287 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9289 * dwarf2/read.c (read_attribute_value): Update.
9290 (dwarf2_per_objfile::read_line_string): Rename from
9291 read_indirect_line_string.
9292 (read_formatted_entries): Update.
9294 2020-03-26 Tom Tromey <tom@tromey.com>
9296 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9299 2020-03-26 Tom Tromey <tom@tromey.com>
9301 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9303 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9304 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9307 2020-03-26 Tom Tromey <tom@tromey.com>
9309 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9310 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9311 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9312 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9314 2020-03-26 Tom Tromey <tom@tromey.com>
9316 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9317 file_names_size, file_full_name, file_file_name>: Use const.
9318 <file_name_at, file_names>: Add const overload.
9319 * dwarf2/line-header.c (line_header::file_file_name)
9320 (line_header::file_full_name): Update.
9322 2020-03-26 Tom Tromey <tom@tromey.com>
9324 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9325 (macro_start_file, consume_improper_spaces)
9326 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9327 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9328 (dwarf_decode_macros): Move to macro.c.
9329 * dwarf2/macro.c: New file.
9330 * dwarf2/macro.h: New file.
9331 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9333 2020-03-26 Tom Tromey <tom@tromey.com>
9335 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9337 * dwarf2/section.c: New method. From
9338 read_indirect_string_at_offset_from.
9339 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9340 (read_indirect_string_at_offset_from): Move to section.c.
9341 (read_indirect_string_at_offset): Rewrite.
9342 (read_indirect_line_string_at_offset): Remove.
9343 (read_indirect_string, read_indirect_line_string)
9344 (dwarf_decode_macro_bytes): Update.
9346 2020-03-26 Tom Tromey <tom@tromey.com>
9348 * dwarf2/section.h (struct dwarf2_section_info)
9349 <overload_complaint>: Declare.
9350 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9351 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9352 Rename from dwarf2_section_buffer_overflow_complaint.
9353 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9354 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9356 2020-03-26 Tom Tromey <tom@tromey.com>
9358 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9360 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9362 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9365 2020-03-26 Tom Tromey <tom@tromey.com>
9367 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9369 2020-03-26 Tom Tromey <tom@tromey.com>
9371 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9373 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9375 (dwarf_decode_macros): Update.
9377 2020-03-26 Tom Tromey <tom@tromey.com>
9379 * dwarf2/read.c (read_attribute_value): Update.
9380 (read_indirect_string_from_dwz): Move to dwz.c; change into
9382 (dwarf_decode_macro_bytes): Update.
9383 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9384 * dwarf2/dwz.c: New file.
9385 * Makefile.in (COMMON_SFILES): Add dwz.c.
9387 2020-03-26 Tom Tromey <tom@tromey.com>
9389 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9390 * dwarf2/read.c: Add include.
9391 * dwarf2/index-write.c: Add include.
9392 * dwarf2/index-cache.c: Add include.
9393 * dwarf2/dwz.h: New file.
9395 2020-03-25 Tom Tromey <tom@tromey.com>
9397 * compile/compile-object-load.c (get_out_value_type): Mention
9398 correct symbol name in error message.
9400 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
9402 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9404 2020-03-25 Tom de Vries <tdevries@suse.de>
9406 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9407 * symmisc.c (dump_symtab_1): Print user and includes fields.
9408 (maintenance_info_symtabs): Same.
9410 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9413 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9414 (riscv_regcache_cooked_write): New function.
9415 (riscv_push_dummy_call): Use new function.
9416 (riscv_return_value): Likewise.
9418 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9420 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9421 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9422 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9423 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9424 * infrun.c (follow_fork): Likewise.
9425 (follow_fork_inferior): Likewise.
9426 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9427 * linux-nat.h (class linux_nat_target): Likewise.
9428 * remote.c (class remote_target) <follow_fork>: Likewise.
9429 (remote_target::follow_fork): Likewise.
9430 * target-delegates.c: Re-generate.
9431 * target.c (default_follow_fork): Likewise.
9432 (target_follow_fork): Likewise.
9433 * target.h (struct target_ops) <follow_fork>: Likewise.
9434 (target_follow_fork): Likewise.
9436 2020-03-24 Tom de Vries <tdevries@suse.de>
9438 * psymtab.c (maintenance_info_psymtabs): Print user field.
9440 2020-03-20 Tom Tromey <tromey@adacore.com>
9442 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9444 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9447 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
9449 * ptrace.m4: Don't check for ptrace declaration.
9450 * config.in: Re-generate.
9451 * configure: Re-generate.
9452 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9455 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9457 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9459 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9460 * sparc-nat.c (gdb_ptrace): Likewise.
9461 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9463 2020-03-20 Tom Tromey <tromey@adacore.com>
9465 * c-exp.y (lex_one_token): Fix assert.
9467 2020-03-20 Tom Tromey <tromey@adacore.com>
9469 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9470 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9473 2020-03-20 Tom Tromey <tromey@adacore.com>
9475 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9477 2020-03-20 Tom Tromey <tromey@adacore.com>
9479 * ada-valprint.c (print_variant_part): Remove parameters; switch
9481 (print_field_values): Likewise.
9482 (ada_val_print_struct_union): Likewise.
9483 (ada_value_print_1): Update.
9485 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9487 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9488 nbsd_nat_target instead of inf_ptrace_target.
9489 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9492 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9494 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9495 it to the ptrace call.
9496 * (store_registers): Likewise.
9498 2020-03-20 Kamil Rytarowski <n54@gmx.com>
9500 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9501 it to the ptrace call.
9502 * (store_registers): Likewise.
9504 2020-03-19 Luis Machado <luis.machado@linaro.org>
9506 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9507 valid, fetch vg value from ptrace.
9509 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9510 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9511 * inf-ptrace.c: Likewise.
9512 * (gdb_ptrace): Add.
9513 * (inf_ptrace_target::resume): Update.
9514 * (inf_ptrace_target::xfer_partial): Likewise.
9515 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9516 * (inf_ptrace_peek_poke): Update.
9518 2020-03-19 Kamil Rytarowski <n54@gmx.com>
9520 * x86-bsd-nat.c (gdb_ptrace): New.
9521 * (x86bsd_dr_set): Add new argument `ptid'.
9522 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9523 x86bsd_dr_set_addr): Update.
9525 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9527 * remote.c (remote_target::process_stop_reply): Handle events for
9528 all threads differently.
9530 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9532 * completer.c (completion_tracker::remove_completion): Define new
9534 * completer.h (completion_tracker::remove_completion): Declare new
9536 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9537 when adding a C++ function symbol.
9539 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9541 * completer.c (completion_tracker::completion_hash_entry): Define
9543 (advance_to_filename_complete_word_point): Call
9544 recompute_lowest_common_denominator.
9545 (completion_tracker::completion_tracker): Call discard_completions
9546 to setup the hash table.
9547 (completion_tracker::discard_completions): Allow for being called
9548 from the constructor, pass new equal function, and element deleter
9549 when constructing the hash table. Initialise new class member
9551 (completion_tracker::maybe_add_completion): Remove use of
9552 m_entries_vec, and store more information into m_entries_hash.
9553 (completion_tracker::recompute_lcd_visitor): New function, most
9554 content taken from...
9555 (completion_tracker::recompute_lowest_common_denominator):
9556 ...here, this now just visits each item in the hash calling the
9558 (completion_tracker::build_completion_result): Remove use of
9559 m_entries_vec, call recompute_lowest_common_denominator.
9560 * completer.h (completion_tracker::have_completions): Remove use
9562 (completion_tracker::completion_hash_entry): Declare new class.
9563 (completion_tracker::recompute_lowest_common_denominator): Change
9565 (completion_tracker::recompute_lcd_visitor): Declare new function.
9566 (completion_tracker::m_entries_vec): Delete.
9567 (completion_tracker::m_entries_hash): Initialize to NULL.
9568 (completion_tracker::m_lowest_common_denominator_valid): New
9570 (completion_tracker::m_lowest_common_denominator_max_length): New
9573 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9575 * regformats/regdef.h: Put reg in gdb namespace.
9577 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9579 * i386-bsd-nat.c (gdb_ptrace): New.
9580 * (i386bsd_fetch_inferior_registers,
9581 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9582 * (i386bsd_fetch_inferior_registers,
9583 i386bsd_store_inferior_registers) Use gdb_ptrace.
9585 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9587 * amd64-bsd-nat.c (gdb_ptrace): New.
9588 * (amd64bsd_fetch_inferior_registers,
9589 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9590 * (amd64bsd_fetch_inferior_registers,
9591 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9593 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9595 * user-regs.c (user_reg::read): Rename to...
9596 (user_reg::xread): ...this.
9597 * (append_user_reg): Rename argument `read' to `xread'.
9598 * (user_reg_add_builtin): Likewise.
9599 * (user_reg_add): Likewise.
9600 * (value_of_user_reg): Likewise.
9602 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9604 * sparc-nat.c (gdb_ptrace): New.
9605 * sparc-nat.c (sparc_fetch_inferior_registers)
9606 (sparc_store_inferior_registers) Remove obsolete comment.
9607 * sparc-nat.c (sparc_fetch_inferior_registers)
9608 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9609 * sparc-nat.c (sparc_fetch_inferior_registers)
9610 (sparc_store_inferior_registers) Use gdb_ptrace.
9612 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9614 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9615 it to the ptrace call.
9616 * sh-nbsd-nat.c (store_registers): Likewise.
9618 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9620 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9621 nbsd_nat_target instead of inf_ptrace_target.
9622 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9625 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9627 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9629 2020-03-17 Kamil Rytarowski <n54@gmx.com>
9631 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9633 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9635 2020-03-17 Tom de Vries <tdevries@suse.de>
9638 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9640 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9642 (process_imported_unit_die): Skip import of c++ CUs.
9644 2020-03-16 Tom Tromey <tom@tromey.com>
9646 * p-valprint.c (pascal_object_print_value): Initialize
9649 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9650 Shahab Vahedi <shahab@synopsys.com>
9652 * Makefile.in: Add arch/arc.o
9653 * configure.tgt: Likewise.
9654 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9655 (_initialize_arc_tdep): Don't initialize old target descriptions.
9656 (arc_read_description): New function to cache target descriptions.
9657 * arc-tdep.h (arc_read_description): Add proto type.
9658 * arch/arc.c: New file.
9659 * arch/arc.h: Likewise.
9660 * features/Makefile: Replace old target descriptions with new.
9661 * features/arc-arcompact.c: Remove.
9662 * features/arc-arcompact.xml: Likewise.
9663 * features/arc-v2.c: Likewise
9664 * features/arc-v2.xml: Likewise
9665 * features/arc/aux-arcompact.xml: New file.
9666 * features/arc/aux-v2.xml: Likewise.
9667 * features/arc/core-arcompact.xml: Likewise.
9668 * features/arc/core-v2.xml: Likewise.
9669 * features/arc/aux-arcompact.c: Generate.
9670 * features/arc/aux-v2.c: Likewise.
9671 * features/arc/core-arcompact.c: Likewise.
9672 * features/arc/core-v2.c: Likewise.
9673 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9675 2020-03-16 Tom Tromey <tromey@adacore.com>
9678 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9679 putting value into bcache.
9681 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9684 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9686 (amd64_windows_init_abi_common): ... this. Don't set size of
9688 (amd64_windows_init_abi): New function.
9689 (amd64_cygwin_init_abi): New function.
9690 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9692 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9695 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9697 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9698 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9699 (pe_import_directory_entry): New struct type.
9700 (is_linked_with_cygwin_dll): New function.
9701 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9702 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9703 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9705 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9707 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9708 i386_cygwin_core_osabi_sniffer.
9710 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9712 * i386-cygwin-tdep.c: Rename to...
9713 * i386-windows-tdep.c: ... this.
9714 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9715 i386-windows-tdep.c.
9716 * configure.tgt: Likewise.
9718 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9720 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9721 * osabi.c (gdb_osabi_names): Add "Windows".
9722 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9723 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9724 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9725 i386_cygwin_osabi_sniffer.
9726 (_initialize_i386_cygwin_tdep): Register OS ABI
9727 GDB_OSABI_WINDOWS for i386.
9728 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9729 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9730 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9732 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9733 when the target matches '*-*-mingw*'.
9735 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9737 * defs.h (enum gdb_osabi): Move to...
9738 * osabi.h (enum gdb_osabi): ... here.
9739 * gdbarch.sh: Include osabi.h in gdbarch.h.
9740 * gdbarch.h: Re-generate.
9742 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
9744 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9746 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9748 2020-03-14 Tom Tromey <tom@tromey.com>
9750 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9752 (c_type_print_modifier): Likewise. Add "language" parameter.
9753 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9754 (c_type_print_base_1): Update.
9755 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9757 * type-stack.c (type_stack::insert): Handle tp_atomic and
9759 (type_stack::follow_type_instance_flags): Likewise.
9760 (type_stack::follow_types): Likewise. Merge type-following code.
9761 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9762 (space_identifier, cv_with_space_id)
9763 (const_or_volatile_or_space_identifier_noopt)
9764 (const_or_volatile_or_space_identifier): Remove.
9765 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9767 (ptr_operator, typebase): Update.
9768 (enum token_flag) <FLAG_C>: New constant.
9769 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9771 (lex_one_token): Handle FLAG_C.
9773 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9775 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9776 it to the ptrace call.
9777 * m68k-bsd-nat.c (store_registers): Likewise.
9779 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9781 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9783 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9784 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9785 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9787 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9789 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9790 nbsd_nat_target instead of inf_ptrace_target.
9791 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9794 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9796 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9799 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9801 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9802 it to the ptrace call.
9803 * alpha-bsd-nat.c (store_registers): Likewise.
9805 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9807 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9809 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9810 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9811 fill_fpregset): Likewise.
9813 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9815 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9816 nbsd_nat_target instead of inf_ptrace_target.
9817 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9820 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9822 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9825 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9827 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9828 it to the ptrace call.
9829 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9830 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9831 * arm-nbsd-nat.c (store_register): Likewise.
9832 * arm-nbsd-nat.c (store_regs): Likewise.
9833 * arm-nbsd-nat.c (store_fp_register): Likewise.
9834 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9836 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9838 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9839 nbsd_nat_target instead of inf_ptrace_target.
9840 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9843 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9845 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9846 it to the ptrace call.
9847 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9849 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9851 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9852 it to the ptrace call.
9853 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9855 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9857 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9859 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9861 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9863 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9864 instead of inf_ptrace_target.
9865 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9868 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9870 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9873 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9875 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9878 2020-03-14 Kamil Rytarowski <n54@gmx.com>
9880 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9883 2020-03-13 Tom Tromey <tom@tromey.com>
9885 * value.h (val_print): Don't declare.
9886 * valprint.h (val_print_array_elements)
9887 (val_print_scalar_formatted, generic_val_print): Don't declare.
9888 * valprint.c (generic_val_print_array): Take a struct value.
9889 (generic_val_print_ptr, generic_val_print_memberptr)
9890 (generic_val_print_bool, generic_val_print_int)
9891 (generic_val_print_char, generic_val_print_complex)
9892 (generic_val_print): Remove.
9893 (generic_value_print): Update.
9894 (do_val_print): Remove unused parameters. Don't call
9896 (val_print): Remove.
9897 (common_val_print): Update. Don't call value_check_printable.
9898 (val_print_scalar_formatted, val_print_array_elements): Remove.
9899 * rust-lang.c (rust_val_print): Remove.
9900 (rust_language_defn): Update.
9901 * p-valprint.c (pascal_val_print): Remove.
9902 (pascal_value_print_inner): Update.
9903 (pascal_object_print_val_fields, pascal_object_print_val):
9905 (pascal_object_print_static_field): Update.
9906 * p-lang.h (pascal_val_print): Don't declare.
9907 * p-lang.c (pascal_language_defn): Update.
9908 * opencl-lang.c (opencl_language_defn): Update.
9909 * objc-lang.c (objc_language_defn): Update.
9910 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9911 * m2-lang.h (m2_val_print): Don't declare.
9912 * m2-lang.c (m2_language_defn): Update.
9913 * language.h (struct language_defn) <la_val_print>: Remove.
9914 * language.c (unk_lang_value_print_inner): Rename. Change
9916 (unknown_language_defn, auto_language_defn): Update.
9917 * go-valprint.c (go_val_print): Remove.
9918 * go-lang.h (go_val_print): Don't declare.
9919 * go-lang.c (go_language_defn): Update.
9920 * f-valprint.c (f_val_print): Remove.
9921 * f-lang.h (f_value_print): Don't declare.
9922 * f-lang.c (f_language_defn): Update.
9923 * d-valprint.c (d_val_print): Remove.
9924 * d-lang.h (d_value_print): Don't declare.
9925 * d-lang.c (d_language_defn): Update.
9926 * cp-valprint.c (cp_print_value_fields)
9927 (cp_print_value_fields_rtti, cp_print_value): Remove.
9928 (cp_print_static_field): Update.
9929 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9930 (c_val_print_struct, c_val_print_union, c_val_print_int)
9931 (c_val_print_memberptr, c_val_print): Remove.
9932 * c-lang.h (c_val_print_array, cp_print_value_fields)
9933 (cp_print_value_fields_rtti): Don't declare.
9934 * c-lang.c (c_language_defn, cplus_language_defn)
9935 (asm_language_defn, minimal_language_defn): Update.
9936 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9937 (ada_val_print_enum): Take a struct value.
9938 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9939 (ada_val_print): Remove.
9940 (ada_value_print_1): Update.
9941 (printable_val_type): Remove.
9942 * ada-lang.h (ada_val_print): Don't declare.
9943 * ada-lang.c (ada_language_defn): Update.
9945 2020-03-13 Tom Tromey <tom@tromey.com>
9947 * valprint.c (do_val_print): Update.
9948 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9950 (value_to_value_object_no_release): Declare.
9951 * python/py-value.c (value_to_value_object_no_release): New
9953 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9955 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9957 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9959 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9961 (gdbscm_apply_val_pretty_printer): Take a struct value.
9962 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9964 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9966 * extension-priv.h (struct extension_language_ops)
9967 <apply_val_pretty_printer>: Take a struct value.
9968 * cp-valprint.c (cp_print_value): Create a struct value.
9969 (cp_print_value): Update.
9971 2020-03-13 Tom Tromey <tom@tromey.com>
9973 * ada-valprint.c (print_field_values): Call common_val_print.
9975 2020-03-13 Tom Tromey <tom@tromey.com>
9977 * ada-valprint.c (val_print_packed_array_elements): Remove
9978 bitoffset and val parameters. Call common_val_print.
9979 (ada_val_print_string): Remove offset, address, and original_value
9981 (ada_val_print_array): Update.
9982 (ada_value_print_array): New function.
9983 (ada_value_print_1): Call it.
9985 2020-03-13 Tom Tromey <tom@tromey.com>
9987 * ada-valprint.c (ada_value_print): Use common_val_print.
9989 2020-03-13 Tom Tromey <tom@tromey.com>
9991 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9993 2020-03-13 Tom Tromey <tom@tromey.com>
9995 * ada-valprint.c (ada_value_print_num): New function.
9996 (ada_value_print_1): Use it.
9998 2020-03-13 Tom Tromey <tom@tromey.com>
10000 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
10002 2020-03-13 Tom Tromey <tom@tromey.com>
10004 * ada-valprint.c (ada_value_print_ptr): New function.
10005 (ada_value_print_1): Use it.
10007 2020-03-13 Tom Tromey <tom@tromey.com>
10009 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
10010 call common_val_print.
10011 (ada_val_print_1): Update.
10012 (ada_value_print_1): New function.
10013 (ada_value_print_inner): Rewrite.
10015 2020-03-13 Tom Tromey <tom@tromey.com>
10017 * cp-valprint.c (cp_print_value_fields): Update.
10018 (cp_print_value): New function.
10020 2020-03-13 Tom Tromey <tom@tromey.com>
10022 * m2-valprint.c (m2_value_print_inner): Use
10023 cp_print_value_fields.
10024 * cp-valprint.c (cp_print_value_fields): New function.
10025 * c-valprint.c (c_value_print_struct): New function.
10026 (c_value_print_inner): Use c_value_print_struct.
10027 * c-lang.h (cp_print_value_fields): Declare.
10029 2020-03-13 Tom Tromey <tom@tromey.com>
10031 * c-valprint.c (c_value_print_array): New function.
10032 (c_value_print_inner): Use it.
10034 2020-03-13 Tom Tromey <tom@tromey.com>
10036 * c-valprint.c (c_value_print_memberptr): New function.
10037 (c_value_print_inner): Use it.
10039 2020-03-13 Tom Tromey <tom@tromey.com>
10041 * c-valprint.c (c_value_print_int): New function.
10042 (c_value_print_inner): Use it.
10044 2020-03-13 Tom Tromey <tom@tromey.com>
10046 * c-valprint.c (c_value_print_ptr): New function.
10047 (c_value_print_inner): Use it.
10049 2020-03-13 Tom Tromey <tom@tromey.com>
10051 * c-valprint.c (c_value_print_inner): Rewrite.
10053 2020-03-13 Tom Tromey <tom@tromey.com>
10055 * valprint.c (generic_value_print_complex): New function.
10056 (generic_value_print): Use it.
10058 2020-03-13 Tom Tromey <tom@tromey.com>
10060 * valprint.c (generic_val_print_float): Don't call
10061 val_print_scalar_formatted.
10062 (generic_val_print, generic_value_print): Update.
10064 2020-03-13 Tom Tromey <tom@tromey.com>
10066 * valprint.c (generic_value_print_char): New function
10067 (generic_value_print): Use it.
10069 2020-03-13 Tom Tromey <tom@tromey.com>
10071 * valprint.c (generic_value_print_int): New function.
10072 (generic_value_print): Use it.
10074 2020-03-13 Tom Tromey <tom@tromey.com>
10076 * valprint.c (generic_value_print_bool): New function.
10077 (generic_value_print): Use it.
10079 2020-03-13 Tom Tromey <tom@tromey.com>
10081 * valprint.c (generic_val_print_func): Simplify.
10082 (generic_val_print, generic_value_print): Update.
10084 2020-03-13 Tom Tromey <tom@tromey.com>
10086 * valprint.c (generic_val_print_flags): Remove.
10087 (generic_val_print, generic_value_print): Update.
10088 (val_print_type_code_flags): Add original_value parameter.
10090 2020-03-13 Tom Tromey <tom@tromey.com>
10092 * valprint.c (generic_val_print): Update.
10093 (generic_value_print): Update.
10094 * valprint.c (generic_val_print_enum): Don't call
10095 val_print_scalar_formatted.
10097 2020-03-13 Tom Tromey <tom@tromey.com>
10099 * valprint.c (generic_value_print): Call generic_value_print_ptr.
10100 * valprint.c (generic_value_print_ptr): New function.
10102 2020-03-13 Tom Tromey <tom@tromey.com>
10104 * valprint.c (generic_value_print): Rewrite.
10106 2020-03-13 Tom Tromey <tom@tromey.com>
10108 * p-valprint.c (pascal_object_print_value_fields)
10109 (pascal_object_print_value): New functions.
10111 2020-03-13 Tom Tromey <tom@tromey.com>
10113 * p-valprint.c (pascal_value_print_inner): Rewrite.
10115 2020-03-13 Tom Tromey <tom@tromey.com>
10117 * f-valprint.c (f_value_print_innner): Rewrite.
10119 2020-03-13 Tom Tromey <tom@tromey.com>
10121 * m2-valprint.c (m2_print_unbounded_array): New overload.
10122 (m2_print_unbounded_array): Update.
10123 (m2_print_array_contents): Take a struct value.
10124 (m2_value_print_inner): Rewrite.
10126 2020-03-13 Tom Tromey <tom@tromey.com>
10128 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
10129 (d_value_print_inner): New function.
10130 * d-lang.h (d_value_print_inner): Declare.
10131 * d-lang.c (d_language_defn): Use d_value_print_inner.
10133 2020-03-13 Tom Tromey <tom@tromey.com>
10135 * go-valprint.c (go_value_print_inner): New function.
10136 * go-lang.h (go_value_print_inner): Declare.
10137 * go-lang.c (go_language_defn): Use go_value_print_inner.
10139 2020-03-13 Tom Tromey <tom@tromey.com>
10141 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
10143 (rust_val_print): Rewrite.
10144 (rust_value_print_inner): New function, from rust_val_print.
10145 (rust_language_defn): Use rust_value_print_inner.
10147 2020-03-13 Tom Tromey <tom@tromey.com>
10149 * ada-valprint.c (ada_value_print_inner): New function.
10150 * ada-lang.h (ada_value_print_inner): Declare.
10151 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
10153 2020-03-13 Tom Tromey <tom@tromey.com>
10155 * f-valprint.c (f_value_print_innner): New function.
10156 * f-lang.h (f_value_print_innner): Declare.
10157 * f-lang.c (f_language_defn): Use f_value_print_innner.
10159 2020-03-13 Tom Tromey <tom@tromey.com>
10161 * p-valprint.c (pascal_value_print_inner): New function.
10162 * p-lang.h (pascal_value_print_inner): Declare.
10163 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
10165 2020-03-13 Tom Tromey <tom@tromey.com>
10167 * m2-valprint.c (m2_value_print_inner): New function.
10168 * m2-lang.h (m2_value_print_inner): Declare.
10169 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
10171 2020-03-13 Tom Tromey <tom@tromey.com>
10173 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
10174 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
10175 * c-valprint.c (c_value_print_inner): New function.
10176 * c-lang.h (c_value_print_inner): Declare.
10177 * c-lang.c (c_language_defn, cplus_language_defn)
10178 (asm_language_defn, minimal_language_defn): Use
10179 c_value_print_inner.
10181 2020-03-13 Tom Tromey <tom@tromey.com>
10183 * p-valprint.c (pascal_object_print_value_fields): Now static.
10184 * p-lang.h (pascal_object_print_value_fields): Don't declare.
10186 2020-03-13 Tom Tromey <tom@tromey.com>
10188 * c-valprint.c (c_val_print_array): Simplify.
10190 2020-03-13 Tom Tromey <tom@tromey.com>
10192 * valprint.c (value_print_array_elements): New function.
10193 * valprint.h (value_print_array_elements): Declare.
10195 2020-03-13 Tom Tromey <tom@tromey.com>
10197 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10198 * mips-tdep.c (mips_print_register): Use
10199 value_print_scalar_formatted.
10201 2020-03-13 Tom Tromey <tom@tromey.com>
10203 * valprint.h (value_print_scalar_formatted): Declare.
10204 * valprint.c (value_print_scalar_formatted): New function.
10206 2020-03-13 Tom Tromey <tom@tromey.com>
10208 * valprint.h (generic_value_print): Declare.
10209 * valprint.c (generic_value_print): New function.
10211 2020-03-13 Tom Tromey <tom@tromey.com>
10213 * valprint.c (do_val_print): Call la_value_print_inner, if
10215 * rust-lang.c (rust_language_defn): Update.
10216 * p-lang.c (pascal_language_defn): Update.
10217 * opencl-lang.c (opencl_language_defn): Update.
10218 * objc-lang.c (objc_language_defn): Update.
10219 * m2-lang.c (m2_language_defn): Update.
10220 * language.h (struct language_defn) <la_value_print_inner>: New
10222 * language.c (unknown_language_defn, auto_language_defn): Update.
10223 * go-lang.c (go_language_defn): Update.
10224 * f-lang.c (f_language_defn): Update.
10225 * d-lang.c (d_language_defn): Update.
10226 * c-lang.c (c_language_defn, cplus_language_defn)
10227 (asm_language_defn, minimal_language_defn): Update.
10228 * ada-lang.c (ada_language_defn): Update.
10230 2020-03-13 Tom Tromey <tom@tromey.com>
10232 * c-valprint.c (c_value_print): Use common_val_print.
10234 2020-03-13 Tom Tromey <tom@tromey.com>
10236 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10238 2020-03-13 Tom Tromey <tom@tromey.com>
10240 * f-valprint.c (f77_print_array_1, f_val_print): Use
10243 2020-03-13 Tom Tromey <tom@tromey.com>
10245 * riscv-tdep.c (riscv_print_one_register_info): Use
10248 2020-03-13 Tom Tromey <tom@tromey.com>
10250 * mi/mi-main.c (output_register): Use common_val_print.
10252 2020-03-13 Tom Tromey <tom@tromey.com>
10254 * infcmd.c (default_print_one_register_info): Use
10257 2020-03-13 Tom Tromey <tom@tromey.com>
10259 * valprint.h (common_val_print_checked): Declare.
10260 * valprint.c (common_val_print_checked): New function.
10261 * stack.c (print_frame_arg): Use common_val_print_checked.
10263 2020-03-13 Tom Tromey <tom@tromey.com>
10265 * valprint.c (do_val_print): New function, from val_print.
10266 (val_print): Use do_val_print.
10267 (common_val_print): Use do_val_print.
10269 2020-03-13 Tom Tromey <tom@tromey.com>
10271 * valprint.c (value_print): Use scoped_value_mark.
10273 2020-03-13 Tom de Vries <tdevries@suse.de>
10276 * psymtab.c (partial_symtab::partial_symtab): Don't set
10277 globals_offset and statics_offset. Push element onto
10278 current_global_psymbols and current_static_psymbols stacks.
10279 (concat): New function.
10280 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10281 element from current_global_psymbols and current_static_psymbols
10282 stacks. Concat popped elements to global_psymbols and
10284 (add_psymbol_to_list): Use current_global_psymbols and
10285 current_static_psymbols stacks.
10286 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10287 current_static_psymbols fields.
10289 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10291 * corelow.c (sniff_core_bfd): Remove.
10292 (class core_target) <m_core_vec>: Remove.
10293 (core_target::core_target): Update.
10294 (core_file_fns): Remove.
10295 (deprecated_add_core_fns): Remove.
10296 (default_core_sniffer): Remove.
10297 (sniff_core_bfd): Remove.
10298 (default_check_format): Remove.
10299 (gdb_check_format): Remove.
10300 (core_target_open): Update.
10301 (core_target::get_core_register_section): Update.
10302 (get_core_registers_cb): Update.
10303 (core_target::fetch_registers): Update.
10304 * gdbcore.h (struct core_fns): Remove.
10305 (deprecated_add_core_fns): Remove.
10306 (default_core_sniffer): Remove.
10307 (default_check_format): Remove.
10309 2020-03-12 Tom Tromey <tom@tromey.com>
10311 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10313 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10315 2020-03-12 Tom Tromey <tom@tromey.com>
10317 * remote.c (remote_target::download_tracepoint)
10318 (remote_target::enable_tracepoint)
10319 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10320 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10323 2020-03-12 Tom Tromey <tom@tromey.com>
10325 * symfile-mem.c: Update CORE_ADDR size assert.
10327 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10329 * selftest.m4: Move to gdbsupport/.
10330 * acinclude.m4: Update path to selftest.m4.
10332 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10334 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10335 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10336 gdbarch-selfselftests.c and selftest-arch.c.
10337 (SUBDIR_UNITTESTS_OBS): Rename to...
10338 (SELFTESTS_OBS): ... this.
10339 (COMMON_SFILES): Remove disasm-selftests.c and
10340 gdbarch-selftests.c.
10341 * configure.ac: Don't add selftest-arch.{c,o} to
10343 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10344 preprocessor conditions.
10346 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10348 * configure.ac: Don't source bfd/development.sh.
10349 * selftest.m4: Modify comment.
10350 * configure: Re-generate.
10352 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
10354 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10355 not "true" or "false".
10356 * configure: Re-generate.
10358 2020-03-12 Christian Biesinger <cbiesinger@google.com>
10360 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10361 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10362 renamed to arm_nbsd_supply_gregset.
10363 (fetch_register): Update to call arm_nbsd_supply_gregset.
10364 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10365 (arm_netbsd_nat_target::fetch_registers): Update.
10366 (fetch_elfcore_registers): Removed.
10367 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10368 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10369 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10370 not require NetBSD system headers.
10371 (arm_nbsd_regset): New struct.
10372 (arm_nbsd_iterate_over_regset_sections): New function.
10373 (arm_netbsd_init_abi_common): Updated to call
10374 set_gdbarch_iterate_over_regset_sections.
10375 * arm-nbsd-tdep.h: New file.
10377 2020-03-11 Kevin Buettner <kevinb@redhat.com>
10379 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10382 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
10384 * configure: Re-generate.
10386 2020-03-11 Tom Tromey <tromey@adacore.com>
10388 * ada-typeprint.c (print_choices): Fix comment.
10390 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10392 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10393 previous item in the list, when the list has no items.
10395 2020-03-11 Tom de Vries <tdevries@suse.de>
10397 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10398 PROP_LOCLIST handling code.
10400 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10402 * buildsym-legacy.c (record_line): Pass extra parameter to
10404 * buildsym.c (buildsym_compunit::record_line): Take an extra
10405 parameter, reduce duplication in the line table, and record the
10406 is_stmt flag in the line table.
10407 * buildsym.h (buildsym_compunit::record_line): Add extra
10409 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10410 non-statement lines.
10411 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10412 this to the symtab builder.
10413 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10414 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10415 through to dwarf_record_line_1.
10416 * infrun.c (process_event_stop_test): When stepping, don't stop at
10417 a non-statement instruction, and only refresh the step info when
10418 we land in the middle of a line's range. Also add an extra
10420 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10422 * record-btrace.c (btrace_find_line_range): Only record lines
10423 marked as is-statement.
10424 * stack.c (frame_show_address): Show the frame address if we are
10425 in a non-statement sal.
10426 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10427 (maintenance_print_one_line_table): Print a header for the is_stmt
10428 column, and include is_stmt information in the output.
10429 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10430 preference to non-statements.
10431 (find_pcs_for_symtab_line): Prefer is-statement entries.
10432 (find_line_common): Likewise.
10433 * symtab.h (struct linetable_entry): Add is_stmt field.
10434 (struct symtab_and_line): Likewise.
10435 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10436 arranging the line table.
10438 2020-03-07 Tom de Vries <tdevries@suse.de>
10440 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10443 2020-03-07 Tom Tromey <tom@tromey.com>
10445 * valops.c (value_literal_complex): Remove obsolete comment.
10446 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10449 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10451 * infrun.h: Forward-declare thread_info.
10452 (set_step_info): Add thread_info parameter, add doc.
10453 * infrun.c (set_step_info): Add thread_info parameter, move doc
10455 * infrun.c (process_event_stop_test): Pass thread to
10456 set_step_info call.
10457 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10459 (prepare_one_step): Add thread_info parameter, pass it to
10460 set_step_frame and prepare_one_step (recursive) call.
10461 (step_1): Pass thread to prepare_one_step call.
10462 (step_command_fsm::should_stop): Pass thread to
10464 (until_next_fsm): Pass thread to set_step_frame call.
10465 (finish_command): Pass thread to set_step_info call.
10467 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
10469 * windows-tdep.c (windows_solib_create_inferior_hook):
10470 Check if inferior is running.
10472 2020-03-06 Tom de Vries <tdevries@suse.de>
10474 * NEWS: Fix "the the".
10477 2020-03-06 Tom de Vries <tdevries@suse.de>
10479 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10481 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10483 * .dir-locals.el: Add a comment referencing the other copies of
10486 2020-03-05 John Baldwin <jhb@FreeBSD.org>
10488 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10491 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10493 * .gitattributes: New file.
10495 2020-03-04 Tom Tromey <tom@tromey.com>
10497 * symmisc.c (print_symbol_bcache_statistics)
10498 (print_objfile_statistics): Update.
10499 * symfile.c (allocate_symtab): Use intern.
10500 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10501 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10502 macro_cache>: Remove.
10503 <string_cache>: New member.
10504 (struct objfile) <intern>: New methods.
10505 * elfread.c (elf_symtab_read): Use intern.
10506 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10507 (dwarf2_compute_name, dwarf2_physname)
10508 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10510 (guess_partial_die_structure_name): Update.
10511 (partial_die_info::fixup): Intern name.
10512 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10514 (dwarf2_name): Intern name. Update.
10515 * buildsym.c (buildsym_compunit::get_macro_table): Use
10518 2020-03-04 Tom Tromey <tom@tromey.com>
10520 * jit.c (bfd_open_from_target_memory): Make "target" const.
10521 * corefile.c (gnutarget): Now const.
10522 * gdbcore.h (gnutarget): Now const.
10524 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
10526 * NEWS: Mention support for WOW64 processes.
10527 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10528 (amd64_windows_segment_register_p): Remove static.
10529 (_initialize_amd64_windows_nat): Update.
10530 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10531 * i386-windows-nat.c (context_offset): Update.
10532 (i386_mappings): Rename and remove static.
10533 (i386_windows_segment_register_p): Remove static.
10534 (_initialize_i386_windows_nat): Update.
10535 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10536 (STATUS_WX86_SINGLE_STEP): New macro.
10537 (EnumProcessModulesEx): New macro.
10538 (Wow64SuspendThread): New macro.
10539 (Wow64GetThreadContext): New macro.
10540 (Wow64SetThreadContext): New macro.
10541 (Wow64GetThreadSelectorEntry): New macro.
10542 (windows_set_context_register_offsets): Add static.
10543 (windows_set_segment_register_p): Likewise.
10544 (windows_add_thread): Adapt for WOW64 processes.
10545 (windows_fetch_one_register): Likewise.
10546 (windows_nat_target::fetch_registers): Likewise.
10547 (windows_store_one_register): Likewise.
10548 (display_selector): Likewise.
10549 (display_selectors): Likewise.
10550 (handle_exception): Likewise.
10551 (windows_continue): Likewise.
10552 (windows_nat_target::resume): Likewise.
10553 (windows_add_all_dlls): Likewise.
10554 (do_initial_windows_stuff): Likewise.
10555 (windows_nat_target::attach): Likewise.
10556 (windows_get_exec_module_filename): Likewise.
10557 (windows_nat_target::create_inferior): Likewise.
10558 (windows_xfer_siginfo): Likewise.
10559 (_initialize_loadable): Initialize Wow64SuspendThread,
10560 Wow64GetThreadContext, Wow64SetThreadContext,
10561 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10562 * windows-nat.h (windows_set_context_register_offsets):
10563 Remove declaration.
10564 (windows_set_segment_register_p): Likewise.
10565 (i386_windows_segment_register_p): Add declaration.
10566 (amd64_windows_segment_register_p): Likewise.
10568 2020-03-04 Luis Machado <luis.machado@linaro.org>
10570 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10571 in "info registers" for AArch64/ARM.
10573 The change caused "info registers" to not print GPR's.
10577 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10579 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10580 when reg->group is empty and reggroup is not.
10582 2020-03-03 Tom Tromey <tromey@adacore.com>
10584 * dwarf2/frame.c (struct dwarf2_frame_cache)
10585 <checked_tailcall_bottom, entry_cfa_sp_offset,
10586 entry_cfa_sp_offset_p>: Remove members.
10587 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10588 (dwarf2_frame_prev_register): Don't call
10589 dwarf2_tailcall_sniffer_first.
10590 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10591 * frame-unwind.c (add_unwinder): New fuction.
10592 (frame_unwind_init): Use it. Add tailcall unwinder.
10594 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10595 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10597 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10598 value should be printed as true.
10600 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
10602 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10603 (windows_init_abi): Set and use windows_so_ops.
10605 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10607 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10608 when verifying if dealing with a convenience variable.
10610 2020-03-03 Luis Machado <luis.machado@linaro.org>
10612 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10614 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10616 * infrun.c (gdbarch_supports_displaced_stepping): New.
10617 (use_displaced_stepping): Break up conditions in smaller pieces.
10618 Use gdbarch_supports_displaced_stepping.
10619 (displaced_step_prepare_throw): Use
10620 gdbarch_supports_displaced_stepping.
10622 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10624 * NEWS: Mention new behaviour of the history filename.
10625 * top.c (write_history_p): Add comment.
10626 (show_write_history_p): Add header comment, give a different
10627 message when history writing is on, but the history filename is
10629 (history_filename): Add comment.
10630 (history_filename_empty): New function.
10631 (show_history_filename): Add header comment, give a different
10632 message when the filename is empty.
10633 (init_history): Compare history_filename against nullptr, and only
10634 read history if the filename is not empty.
10635 (set_history_filename): Add header comment, and only make
10636 non-empty filenames absolute.
10637 (init_main): Make the filename argument to 'set history filename'
10640 2020-03-02 Christian Biesinger <cbiesinger@google.com>
10642 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10643 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10644 (fetch_fp_register): Update.
10645 (fetch_fp_regs): Update.
10646 (store_fp_register): Update.
10647 (store_fp_regs): Update.
10648 (arm_netbsd_nat_target::read_description): New function.
10649 (fetch_elfcore_registers): Update.
10651 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10653 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10654 general_thread if the stop reply is missing a thread-id.
10655 (remote_target::process_stop_reply): Use the first non-exited
10656 thread if the target didn't pass a thread-id.
10657 * infrun.c (do_target_wait): Move call to
10658 switch_to_inferior_no_thread to ....
10659 (do_target_wait_1): ... here.
10661 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10663 * debuginfod-support.c: Include defs.h first.
10665 2020-02-28 Tom de Vries <tdevries@suse.de>
10667 * symfile.c (set_initial_language): Use default language for lookup.
10669 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
10671 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10672 reader variable, pass `this` to read_cutu_die_from_dwo.
10674 2020-02-27 Aaron Merey <amerey@redhat.com>
10676 * source.c (open_source_file): Check for nullptr when computing
10679 2020-02-27 Tom Tromey <tromey@adacore.com>
10681 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10683 (dwarf2_add_field): Don't update nfields.
10684 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10686 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10688 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10691 2020-02-26 Tom Tromey <tom@tromey.com>
10693 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10694 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10695 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10696 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10699 2020-02-26 Tom Tromey <tom@tromey.com>
10701 * dwarf2/index-write.c (psym_index_map): Change type.
10702 (add_address_entry_worker, write_one_signatured_type)
10703 (recursively_count_psymbols, recursively_write_psymbols)
10704 (class debug_names, psyms_seen_size, write_gdbindex)
10705 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10707 2020-02-26 Aaron Merey <amerey@redhat.com>
10709 * Makefile.in: Handle optional debuginfod support.
10711 * README: Add --with-debuginfod summary.
10712 * config.in: Regenerate.
10713 * configure: Regenerate.
10714 * configure.ac: Handle optional debuginfod support.
10715 * debuginfod-support.c: debuginfod helper functions.
10716 * debuginfod-support.h: Ditto.
10717 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10719 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10720 when a dwz file cannot be found.
10721 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10722 debuginfo file cannot be found.
10723 * source.c (open_source_file): Query debuginfod servers when a
10724 source file cannot be found.
10725 * top.c (print_gdb_configuration): Include
10726 --{with,without}-debuginfod in the output.
10728 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10730 * thread.c (thr_try_catch_cmd): Print thread name.
10732 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
10734 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10735 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10736 dwarf2_fetch_die_type_sect_off): Move to...
10737 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10738 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10739 dwarf2_fetch_die_type_sect_off): ... here.
10740 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10741 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10742 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10744 2020-02-26 Tom de Vries <tdevries@suse.de>
10747 * symfile.c (set_initial_language): Exit-early if
10748 language_mode == language_mode_manual.
10750 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10752 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10753 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10754 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10756 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10758 * gdbtypes.c (create_array_type_with_stride): Handle negative
10760 * valarith.c (value_subscripted_rvalue): Likewise.
10762 2020-02-25 Luis Machado <luis.machado@linaro.org>
10764 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10766 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10768 * loc.h (dwarf2_get_die_type): Move to...
10769 * read.h (dwarf2_get_die_type): ... here.
10770 * read.c (dwarf2_get_die_type): Move doc to header.
10772 2020-02-25 Joel Brobecker <brobecker@adacore.com>
10774 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10775 'gnulib/Makefile.in' to the list.
10777 2020-02-24 Tom Tromey <tom@tromey.com>
10779 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10781 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10784 2020-02-24 Tom Tromey <tom@tromey.com>
10786 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10788 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10789 (dw2_do_instantiate_symtab, dw2_get_file_names)
10790 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10792 2020-02-24 Tom Tromey <tom@tromey.com>
10794 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10795 make_scoped_restore.
10796 (dwarf2_psymtab::read_symtab): Don't clear
10797 reading_partial_symbols.
10799 2020-02-24 Tom de Vries <tdevries@suse.de>
10802 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10804 2020-02-24 Tom de Vries <tdevries@suse.de>
10806 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10807 commands layout next/prev/regs.
10809 2020-02-22 Tom Tromey <tom@tromey.com>
10811 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10812 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10814 2020-02-22 Tom Tromey <tom@tromey.com>
10816 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10818 2020-02-22 Tom Tromey <tom@tromey.com>
10820 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10821 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10822 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10823 * tui/tui.c (_initialize_tui): Add usage text.
10825 2020-02-22 Tom Tromey <tom@tromey.com>
10827 * tui/tui-win.c (tui_set_focus_command)
10828 (tui_set_win_height_command): Use error_no_arg.
10829 (_initialize_tui_win): Update help text.
10830 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10832 2020-02-22 Tom Tromey <tom@tromey.com>
10834 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10835 * tui/tui-disasm.h (struct tui_disasm_window)
10836 <display_start_addr>: Declare.
10837 * tui/tui-source.h (struct tui_source_window)
10838 <display_start_addr>: Declare.
10839 * tui/tui-winsource.h (struct tui_source_window_base)
10840 <show_source_line, display_start_addr>: New methods.
10841 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10842 Rename and move to protected section.
10843 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10844 (tui_source_window_base::do_erase_source_content): Update.
10845 (tui_source_window_base::show_source_line): Now a method.
10846 (tui_source_window_base::show_source_content)
10847 (tui_source_window_base::tui_source_window_base)
10848 (tui_source_window_base::rerender)
10849 (tui_source_window_base::refill)
10850 (tui_source_window_base::do_scroll_horizontal)
10851 (tui_source_window_base::set_is_exec_point_at)
10852 (tui_source_window_base::update_breakpoint_info)
10853 (tui_source_window_base::update_exec_info): Update.
10854 * tui/tui-source.c (tui_source_window::set_contents)
10855 (tui_source_window::showing_source_p)
10856 (tui_source_window::do_scroll_vertical)
10857 (tui_source_window::location_matches_p)
10858 (tui_source_window::line_is_displayed): Update.
10859 (tui_source_window::display_start_addr): New method.
10860 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10861 (tui_disasm_window::do_scroll_vertical)
10862 (tui_disasm_window::location_matches_p): Update.
10863 (tui_disasm_window::display_start_addr): New method.
10865 2020-02-22 Tom Tromey <tom@tromey.com>
10867 * NEWS: Add entry for gdb.register_window_type.
10868 * tui/tui-layout.h (window_factory): New typedef.
10869 (tui_register_window): Declare.
10870 * tui/tui-layout.c (saved_tui_windows): New global.
10871 (tui_apply_current_layout): Use it.
10872 (tui_register_window): New function.
10873 * python/python.c (do_start_initialization): Call
10874 gdbpy_initialize_tui.
10875 (python_GdbMethods): Add "register_window_type" function.
10876 * python/python-internal.h (gdbpy_register_tui_window)
10877 (gdbpy_initialize_tui): Declare.
10878 * python/py-tui.c: New file.
10879 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10881 2020-02-22 Tom Tromey <tom@tromey.com>
10883 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10885 2020-02-22 Tom Tromey <tom@tromey.com>
10887 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10888 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10889 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10890 (tui_set_win_focus_to): Move from tui-win.c.
10892 2020-02-22 Tom Tromey <tom@tromey.com>
10894 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10896 (known_window_types): New global.
10897 (tui_get_window_by_name): Reimplement.
10898 (initialize_known_windows): New function.
10899 (validate_window_name): Rewrite.
10900 (_initialize_tui_layout): Call initialize_known_windows.
10902 2020-02-22 Tom Tromey <tom@tromey.com>
10904 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10906 * tui/tui-winsource.h (struct tui_source_window_base)
10907 <tui_source_window_base>: Remove parameter.
10908 * tui/tui-winsource.c
10909 (tui_source_window_base::tui_source_window_base): Remove
10911 (tui_source_window_base::refill): Update.
10912 * tui/tui-stack.h (struct tui_locator_window)
10913 <tui_locator_window>: Update.
10914 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10915 Default the constructor.
10916 * tui/tui-regs.h (struct tui_data_item_window)
10917 <tui_data_item_window>: Default the constructor.
10918 (struct tui_data_window) <tui_data_window>: Likewise.
10919 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10920 Default the constructor.
10921 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10922 Default the constructor.
10924 (struct tui_win_info) <tui_win_info>: Default the constructor.
10925 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10926 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10927 Default the constructor.
10929 2020-02-22 Tom Tromey <tom@tromey.com>
10931 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10932 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10933 * tui/tui-win.c (tui_resize_all): Don't call
10934 tui_delete_invisible_windows.
10935 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10937 (tui_set_layout): Update.
10938 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10939 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10940 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10942 2020-02-22 Tom Tromey <tom@tromey.com>
10944 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10947 2020-02-22 Tom Tromey <tom@tromey.com>
10949 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10951 2020-02-22 Tom Tromey <tom@tromey.com>
10953 * tui/tui-winsource.h (struct tui_source_window_iterator)
10954 <inner_iterator>: New etytypedef.
10955 <tui_source_window_iterator>: Take "end" parameter.
10956 <tui_source_window_iterator>: Take iterator.
10957 <operator*, advance>: Update.
10958 <m_iter>: Change type.
10959 <m_end>: New field.
10960 (struct tui_source_windows) <begin, end>: Update.
10961 * tui/tui-layout.c (tui_windows): New global.
10962 (tui_apply_current_layout): Clear tui_windows.
10963 (tui_layout_window::apply): Update tui_windows.
10964 * tui/tui-data.h (tui_windows): Declare.
10965 (all_tui_windows): Now inline function.
10966 (class tui_window_iterator, struct all_tui_windows): Remove.
10968 2020-02-22 Tom Tromey <tom@tromey.com>
10971 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10972 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10974 (class tui_layout_window) <get_sizes>: Likewise.
10975 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10977 <get_sizes>: Add "height" argument.
10978 <m_vertical>: New field.
10979 * tui/tui-layout.c (tui_layout_split::clone): Update.
10980 (tui_layout_split::get_sizes): Add "height" argument.
10981 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10982 (tui_new_layout_command): Parse "-horizontal".
10983 (_initialize_tui_layout): Update help string.
10984 (tui_layout_split::specification): Add "-horizontal" when needed.
10985 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10987 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10990 2020-02-22 Tom Tromey <tom@tromey.com>
10992 * tui/tui-layout.h (enum tui_adjust_result): New.
10993 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10994 (class tui_layout_window) <adjust_size>: Return
10995 tui_adjust_result. Rewrite.
10996 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10997 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10999 2020-02-22 Tom Tromey <tom@tromey.com>
11001 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
11002 parameter and return types.
11003 (class tui_layout_base) <specification>: Add "depth".
11004 (class tui_layout_window) <specification>: Add "depth".
11005 (class tui_layout_split) <specification>: Add "depth".
11006 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
11008 (tui_new_layout_command): Parse sub-layouts.
11009 (_initialize_tui_layout): Update help string.
11010 (tui_layout_window::specification): Add "depth".
11011 (add_layout_command): Update.
11013 2020-02-22 Tom Tromey <tom@tromey.com>
11015 * NEWS: Add "tui new-layout" item.
11016 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
11017 Add new-layout command to help text.
11018 (validate_window_name): New function.
11019 (tui_new_layout_command): New function.
11020 (_initialize_tui_layout): Register "new-layout".
11021 (tui_layout_window::specification): New method.
11022 (tui_layout_window::specification): New method.
11023 * tui/tui-layout.h (class tui_layout_base) <specification>: New
11025 (class tui_layout_window) <specification>: New method.
11026 (class tui_layout_split) <specification>: New method.
11028 2020-02-22 Tom Tromey <tom@tromey.com>
11030 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
11031 * tui/tui-win.c (window_name_completer): Update comment.
11032 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
11034 (class tui_layout_window) <replace_window>: Likewise.
11035 (class tui_layout_split) <replace_window>: Likewise.
11036 (tui_set_layout): Don't declare.
11037 (tui_set_initial_layout): Declare function.
11038 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
11039 (asm_regs_layout): New globals.
11040 (tui_current_layout, show_layout): Remove.
11041 (tui_set_layout, tui_add_win_to_layout): Rewrite.
11042 (find_layout, tui_apply_layout): New function.
11043 (layout_completer): Remove.
11044 (tui_next_layout): Reimplement.
11045 (tui_next_layout_command): New function.
11046 (tui_set_initial_layout, tui_prev_layout_command): New functions.
11047 (tui_regs_layout): Reimplement.
11048 (tui_regs_layout_command): New function.
11049 (extract_display_start_addr): Rewrite.
11050 (next_layout, prev_layout): Remove.
11051 (tui_layout_window::replace_window): New method.
11052 (tui_layout_split::replace_window): New method.
11053 (destroy_layout): New function.
11054 (layout_list): New global.
11055 (add_layout_command): New function.
11056 (initialize_layouts): Update.
11057 (tui_layout_command): New function.
11058 (_initialize_tui_layout): Install "layout" commands.
11059 * tui/tui-data.h (enum tui_layout_type): Remove.
11060 (tui_current_layout): Don't declare.
11062 2020-02-22 Tom Tromey <tom@tromey.com>
11064 * tui/tui-regs.c (tui_reg_layout): Remove.
11065 (tui_reg_command): Use tui_regs_layout.
11066 * tui/tui-layout.h (tui_reg_command): Declare.
11067 * tui/tui-layout.c (tui_reg_command): New function.
11069 2020-02-22 Tom Tromey <tom@tromey.com>
11071 * tui/tui.c (tui_rl_delete_other_windows): Call
11072 tui_remove_some_windows.
11073 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
11075 (class tui_layout_window) <remove_windows>: New method.
11076 (class tui_layout_split) <remove_windows>: Declare.
11077 (tui_remove_some_windows): Declare.
11078 * tui/tui-layout.c (tui_remove_some_windows): New function.
11079 (tui_layout_split::remove_windows): New method.
11081 2020-02-22 Tom Tromey <tom@tromey.com>
11083 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
11084 * tui/tui-layout.h (tui_next_layout): Declare.
11085 * tui/tui-layout.c (tui_next_layout): New function.
11087 2020-02-22 Tom Tromey <tom@tromey.com>
11089 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
11090 correct coordinates.
11092 2020-02-22 Tom Tromey <tom@tromey.com>
11094 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
11095 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
11098 2020-02-22 Tom Tromey <tom@tromey.com>
11100 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
11101 TUI_DISASM_WIN, not tui_win_list.
11103 2020-02-22 Tom Tromey <tom@tromey.com>
11105 * valprint.c (generic_val_print_enum_1)
11106 (val_print_type_code_flags): Style member names.
11107 * rust-lang.c (val_print_struct, rust_print_enum)
11108 (rust_print_struct_def, rust_internal_print_type): Style member
11110 * p-valprint.c (pascal_object_print_value_fields): Style member
11111 names. Only call fprintf_symbol_filtered for static members.
11112 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
11113 * f-valprint.c (f_val_print): Style member names.
11114 * f-typeprint.c (f_type_print_base): Style member names.
11115 * cp-valprint.c (cp_print_value_fields): Style member names. Only
11116 call fprintf_symbol_filtered for static members.
11117 (cp_print_class_member): Style member names.
11118 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
11120 * ada-valprint.c (ada_print_scalar): Style enum names.
11121 (ada_val_print_enum): Likewise.
11122 * ada-typeprint.c (print_enum_type): Style enum names.
11124 2020-02-21 Tom Tromey <tom@tromey.com>
11126 * psympriv.h (struct partial_symtab): Update comment.
11128 2020-02-21 Tom Tromey <tromey@adacore.com>
11130 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
11133 2020-02-21 Tom de Vries <tdevries@suse.de>
11136 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
11137 if dependencies[i]->user != NULL.
11139 2020-02-21 Ali Tamur <tamur@google.com>
11141 * dwarf2/read.c (dwarf2_name): Add null check.
11143 2020-02-20 Tom Tromey <tom@tromey.com>
11145 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
11146 ">=", in binary search.
11147 (dwarf2_find_containing_comp_unit): New overload.
11148 (run_test): New self-test.
11149 (_initialize_dwarf2_read): Register new test.
11151 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
11153 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
11154 * riscv-tdep.h: Likewise.
11155 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
11157 * features/riscv/64bit-csr.xml: Regenerated.
11159 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
11160 Tom Tromey <tom@tromey.com>
11162 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
11163 of 'fputc_unfiltered'.
11164 (putchar_unfiltered): Call 'fputc_unfiltered'.
11165 (fputc_unfiltered): Call 'fputs_unfiltered'.
11167 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
11169 * config.in: Regenerate.
11170 * configure: Regenerate.
11171 * configure.ac: Add --with-python-libdir option.
11172 * main.c: Use WITH_PYTHON_LIBDIR.
11174 2020-02-19 Tom Tromey <tom@tromey.com>
11176 * symtab.c (general_symbol_info::compute_and_set_names): Use
11177 obstack_strndup. Simplify call to symbol_set_demangled_name.
11179 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
11181 * dwarf2/read.c (allocate_signatured_type_table,
11182 allocate_dwo_unit_table, allocate_type_unit_groups_table,
11183 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
11184 Remove objfile parameter, update all callers.
11186 2020-02-19 Doug Evans <dje@google.com>
11189 * rust-lang.c (rust_print_enum): Apply embedded_offset to
11190 rust_enum_variant calculation.
11192 2020-02-19 Tom Tromey <tromey@adacore.com>
11194 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
11196 2020-02-19 Tom Tromey <tromey@adacore.com>
11198 * ada-lang.c (cache_symbol): Use obstack_strdup.
11200 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11202 * configure: Regenerate.
11204 2020-02-19 Tom Tromey <tromey@adacore.com>
11206 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11209 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
11211 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11213 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11215 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11216 if GDBSERVER is not defined.
11217 (riscv_tdesc_cache): Likewise, also store const target_desc.
11218 (STATIC_IN_GDB): Define.
11219 (riscv_create_target_description): Update declaration with
11221 (riscv_lookup_target_description): New function, only define if
11222 GDBSERVER is not defined.
11223 * arch/riscv.h (riscv_create_target_description): Declare only
11224 when GDBSERVER is defined.
11225 (riscv_lookup_target_description): New declaration when GDBSERVER
11227 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11228 (riscv_linux_read_features): ...this, and return
11229 riscv_gdbarch_features instead of target_desc.
11230 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11231 (riscv_linux_read_description): Rename to...
11232 (riscv_linux_read_features): ...this.
11233 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11234 Update to use riscv_gdbarch_features and
11235 riscv_lookup_target_description.
11236 * riscv-tdep.c (riscv_find_default_target_description): Use
11237 riscv_lookup_target_description instead of
11238 riscv_create_target_description.
11240 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11242 * valprint.c (generic_val_print_enum_1): When printing a flag
11243 enum with value 0 and there is no enumerator with value 0, print
11244 just "0" instead of "(unknown: 0x0)".
11246 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11248 * valprint.c (generic_val_print_enum_1): Print unknown part of
11251 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11253 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11254 flag enums to contain duplicate enumerators.
11255 * valprint.c (generic_val_print_enum_1): Update comment.
11257 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11259 * dwarf2/read.c: Include "count-one-bits.h".
11260 (update_enumeration_type_from_children): If an enumerator has
11261 multiple bits set, don't treat the enumeration as a "flag enum".
11262 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11263 of flag enums have 0 or 1 bit set.
11265 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11267 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11269 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11270 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11271 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11272 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11273 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11275 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
11277 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11279 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11281 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11282 displaced_step_closure_up.
11283 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11284 (struct displaced_step_closure_up):
11285 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11286 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11287 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11289 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11290 * gdbarch.c, gdbarch.h: Re-generate.
11291 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11292 displaced_step_closure_up.
11293 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11294 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11295 * infrun.h (displaced_step_closure_up): New type alias.
11296 (struct displaced_step_inferior_state) <step_closure>: Change
11297 type to displaced_step_closure_up.
11298 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11299 displaced_step_closure_up.
11300 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11302 2020-02-14 Tom Tromey <tom@tromey.com>
11304 * minidebug.c (gnu_debug_key): New global.
11305 (find_separate_debug_file_in_section): Use it.
11307 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11309 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11311 * gdbarch.c: Re-generate.
11312 * gdbarch.h: Re-generate.
11313 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11315 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11316 type to std::unique_ptr.
11317 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11318 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11319 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11320 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11321 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11322 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11323 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11324 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11325 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11327 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11329 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11331 (displaced_step_clear): Rename to...
11332 (displaced_step_reset): ... this. Just call displaced->reset ().
11333 (displaced_step_clear_cleanup): Rename to...
11334 (displaced_step_reset_cleanup): ... this.
11335 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11336 (displaced_step_fixup): Likewise.
11337 (resume_1): Likewise.
11338 (handle_inferior_event): Restore child's memory before calling
11339 displaced_step_fixup on the parent.
11340 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11341 to std::unique_ptr.
11342 <step_closure>: Change type to std::unique_ptr.
11344 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
11346 * arm-tdep.c: Include count-one-bits.h.
11347 (cleanup_block_store_pc): Use count_one_bits.
11348 (cleanup_block_load_pc): Use count_one_bits.
11349 (arm_copy_block_xfer): Use count_one_bits.
11350 (thumb2_copy_block_xfer): Use count_one_bits.
11351 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11352 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11353 (thumb_get_next_pcs_raw): Use count_one_bits.
11354 (arm_get_next_pcs_raw): Use count_one_bits_l.
11355 * arch/arm.c (bitcount): Remove.
11356 * arch/arm.h (bitcount): Remove.
11358 2020-02-14 Tom Tromey <tromey@adacore.com>
11360 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11362 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11363 * dwarf2/loc.c (call_site_find_chain_1): Return
11364 unique_xmalloc_ptr.
11365 (call_site_find_chain): Likewise.
11367 2020-02-14 Richard Biener <rguenther@suse.de>
11369 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11370 on expression with division operators.
11372 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11374 * MAINTAINERS (Write After Approval): Adding myself.
11376 2020-02-12 Tom Tromey <tom@tromey.com>
11378 * event-loop.c (event_data, gdb_event, event_handler_func):
11381 2020-02-12 Tom Tromey <tom@tromey.com>
11383 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11384 (dwarf2_frame_objfile_data): Add comment.
11385 (find_comp_unit, set_comp_unit): New functions.
11386 (dwarf2_frame_find_fde): Use find_comp_unit.
11387 (dwarf2_build_frame_info): Use set_comp_unit.
11389 2020-02-12 Tom Tromey <tom@tromey.com>
11391 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11392 (comp_unit): Don't initialize objfile.
11393 (execute_cfa_program): Add text_offset parameter.
11394 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11395 (dwarf2_frame_cache): Update.
11396 (dwarf2_build_frame_info): Don't set "objfile" member.
11398 2020-02-12 Tom Tromey <tom@tromey.com>
11400 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11401 (decode_frame_entry): Likewise.
11402 (dwarf2_build_frame_info): Update.
11404 2020-02-12 Tom Tromey <tom@tromey.com>
11406 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11407 (decode_frame_entry_1): Use the comp_unit obstack.
11409 2020-02-12 Tom Tromey <tom@tromey.com>
11411 * dwarf2/frame.c (struct comp_unit): Add initializers and
11413 (dwarf2_frame_objfile_data): Store a comp_unit.
11414 (dwarf2_frame_find_fde): Update.
11415 (dwarf2_build_frame_info): Use "new".
11417 2020-02-12 Tom Tromey <tom@tromey.com>
11419 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11420 (dwarf2_fde_table): Typedef for std::vector.
11421 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11422 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11423 (decode_frame_entry): Update.
11424 (dwarf2_build_frame_info): Use "new".
11426 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11428 * arm-tdep.c (arm_gdbarch_init): Update.
11429 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11430 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11431 have_neon, is_m>: Change to bool.
11433 2020-02-12 Christian Biesinger <cbiesinger@google.com>
11435 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11437 2020-02-12 Tom Tromey <tom@tromey.com>
11439 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11441 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
11443 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11444 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11446 2020-02-11 Tom Tromey <tom@tromey.com>
11448 * psymtab.h: Update comment.
11450 2020-02-11 Tom Tromey <tom@tromey.com>
11452 * gdb_obstack.h (struct auto_obstack): Use
11453 DISABLE_COPY_AND_ASSIGN.
11455 2020-02-11 Tom Tromey <tom@tromey.com>
11457 * dwarf2/frame.h (struct objfile): Don't forward declare.
11459 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11461 * cris-tdep.c (cris_supply_gregset): Change signature to match
11462 what struct regset expects.
11463 (cris_regset): New struct.
11464 (fetch_core_registers): Remove.
11465 (cris_iterate_over_regset_sections): New function.
11466 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11467 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11469 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11471 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11474 2020-02-11 Christian Biesinger <cbiesinger@google.com>
11476 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11478 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11480 * configure: Re-generate.
11482 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11484 * configure: Re-generate.
11486 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
11488 * acinclude: Update warning.m4 path.
11489 * warning.m4: Move to gdbsupport.
11491 2020-02-11 Tom Tromey <tromey@adacore.com>
11493 * remote.c (remote_console_output): Update.
11494 * printcmd.c (printf_command): Update.
11495 * event-loop.c (gdb_wait_for_event): Update.
11496 * linux-nat.c (sigchld_handler): Update.
11497 * remote-sim.c (gdb_os_write_stdout): Update.
11498 (gdb_os_flush_stdout): Update.
11499 (gdb_os_flush_stderr): Update.
11500 (gdb_os_write_stderr): Update.
11501 * exceptions.c (print_exception): Update.
11502 * remote-fileio.c (remote_fileio_func_read): Update.
11503 (remote_fileio_func_write): Update.
11504 * tui/tui.c (tui_enable): Update.
11505 * tui/tui-interp.c (tui_interp::init): Update.
11506 * utils.c (init_page_info): Update.
11507 (putchar_unfiltered, fputc_unfiltered): Update.
11508 (gdb_flush): Update.
11509 (emit_style_escape): Update.
11510 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11511 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11512 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11513 (stderr_file::write): Update.
11514 (stderr_file::puts): Update.
11515 * ui-file.h (ui_file_isatty, ui_file_write)
11516 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11517 (ui_file_puts): Don't declare.
11519 2020-02-10 Tom de Vries <tdevries@suse.de>
11521 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11522 sentinel to char *.
11524 2020-02-09 Tom de Vries <tdevries@suse.de>
11526 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11527 filename if it matches "<artificial>".
11529 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11531 * windows-tdep.c (struct enum_value_name): New struct.
11532 (create_enum): New function.
11533 (windows_get_siginfo_type): Create and use enum types.
11535 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
11537 * NEWS: Mention $_siginfo support for Windows.
11538 * windows-nat.c (handle_exception): Set siginfo_er.
11539 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11540 (windows_xfer_siginfo): New function.
11541 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11542 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11543 (init_windows_gdbarch_data): New function.
11544 (get_windows_gdbarch_data): New function.
11545 (windows_get_siginfo_type): New function.
11546 (windows_init_abi): Register windows_get_siginfo_type.
11547 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11549 2020-02-08 Tom Tromey <tom@tromey.com>
11551 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11552 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11553 <keep>: Declare method.
11554 <m_keep>: Remove member.
11555 <~cutu_reader>: Remove.
11556 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11557 (cutu_reader::cutu_reader): Update.
11558 (cutu_reader::keep): Rename from ~cutu_reader.
11559 (process_psymtab_comp_unit, build_type_psymtabs_1)
11560 (process_skeletonless_type_unit, load_partial_comp_unit)
11561 (load_full_comp_unit, dwarf2_read_addr_index)
11562 (read_signatured_type): Update.
11564 2020-02-08 Tom Tromey <tom@tromey.com>
11566 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11567 "want_partial_unit" parameter.
11568 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11569 Inline check for DW_TAG_partial_unit.
11570 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11572 2020-02-08 Tom Tromey <tom@tromey.com>
11574 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11576 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11579 2020-02-08 Tom Tromey <tom@tromey.com>
11581 * dwarf2/read.c (read_address): Move to comp-unit.c.
11582 (dwarf2_rnglists_process, dwarf2_ranges_process)
11583 (read_attribute_value, dwarf_decode_lines_1)
11584 (var_decode_location, decode_locdesc): Update.
11585 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11586 read.c. Remove "cu" parameter.
11587 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11590 2020-02-08 Tom Tromey <tom@tromey.com>
11592 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11593 (read_indirect_line_string): Update.
11594 * dwarf2/comp-unit.c (read_offset): Remove.
11595 (read_comp_unit_head): Update.
11596 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11598 (read_offset): Don't declare.
11600 2020-02-08 Tom Tromey <tom@tromey.com>
11602 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11603 * dwarf2/read.c (struct comp_unit_head): Move to
11604 dwarf2/comp-unit.h.
11605 (enum class rcuh_kind): Move to comp-unit.h.
11606 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11607 (read_comp_unit_head, error_check_comp_unit_head)
11608 (read_and_check_comp_unit_head): Move to comp-unit.c.
11609 (read_offset, dwarf_unit_type_name): Likewise.
11610 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11611 (cutu_reader::cutu_reader, read_call_site_scope)
11612 (find_partial_die, follow_die_offset): Update.
11613 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11615 2020-02-08 Tom Tromey <tom@tromey.com>
11617 * dwarf2/read.c (read_offset_1): Move to leb.c.
11618 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11619 (dwarf_decode_macro_bytes): Update.
11620 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11621 * dwarf2/leb.h (read_offset): Declare.
11623 2020-02-08 Tom Tromey <tom@tromey.com>
11625 * dwarf2/read.c (dwarf2_section_size): Remove.
11626 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11628 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11630 2020-02-08 Tom Tromey <tom@tromey.com>
11632 * dwarf2/read.c (read_initial_length): Move to leb.c.
11633 * dwarf2/leb.h (read_initial_length): Declare.
11634 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11635 handle_nonstd parameter.
11636 * dwarf2/frame.c (read_initial_length): Remove.
11637 (decode_frame_entry_1): Update.
11639 2020-02-08 Tom Tromey <tom@tromey.com>
11641 * dwarf2/loc.c (dwarf2_find_location_expression)
11642 (dwarf_evaluate_loc_desc::get_tls_address)
11643 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11644 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11645 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11646 (dwarf2_compile_property_to_c)
11647 (dwarf2_loc_desc_get_symbol_read_needs)
11648 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11649 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11650 (loclist_describe_location, loclist_tracepoint_var_ref)
11651 (loclist_generate_c_location): Update.
11652 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11653 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11654 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11655 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11656 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11657 (dwarf2_per_cu_data::addr_size)
11658 (dwarf2_per_cu_data::ref_addr_size)
11659 (dwarf2_per_cu_data::text_offset)
11660 (dwarf2_per_cu_data::addr_type): Now methods.
11661 (per_cu_header_read_in): Make per_cu "const".
11662 (dwarf2_version): Remove.
11663 (dwarf2_per_cu_data::int_type): Now a method.
11664 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11665 (set_die_type, read_array_type, read_subrange_index_type)
11666 (read_tag_string_type, read_subrange_type): Update.
11667 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11668 offset_size, ref_addr_size, text_offset, addr_type, version,
11669 objfile, int_type, addr_sized_int_type>: Declare methods.
11671 2020-02-08 Tom Tromey <tom@tromey.com>
11673 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11676 2020-02-08 Tom Tromey <tom@tromey.com>
11678 * dwarf2/read.h (dwarf_line_debug): Declare.
11679 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11680 * dwarf2/read.c: Move line_header code to new files.
11681 (dwarf_line_debug): No longer static.
11682 * dwarf2/line-header.c: New file.
11683 * dwarf2/line-header.h: New file.
11685 2020-02-08 Tom Tromey <tom@tromey.com>
11687 * dwarf2/read.c (struct line_header) <file_full_name,
11688 file_file_name>: Return unique_xmalloc_ptr.
11689 (line_header::file_file_name): Update.
11690 (line_header::file_full_name): Update.
11691 (dw2_get_file_names_reader): Update.
11692 (macro_start_file): Update.
11694 2020-02-08 Tom Tromey <tom@tromey.com>
11696 * dwarf2/read.c (struct line_header) <file_full_name,
11697 file_file_name>: Declare methods.
11698 (dw2_get_file_names_reader): Update.
11699 (file_file_name): Now a method.
11700 (file_full_name): Likewise.
11701 (macro_start_file): Update.
11703 2020-02-08 Tom Tromey <tom@tromey.com>
11705 * dwarf2/read.c (dwarf_always_disassemble)
11706 (show_dwarf_always_disassemble): Move to loc.c.
11707 (_initialize_dwarf2_read): Move "always-disassemble" registration
11709 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11710 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11712 (show_dwarf_always_disassemble): Move from read.c.
11713 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11715 2020-02-08 Tom Tromey <tom@tromey.com>
11717 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11718 (create_quick_file_names_table): Return htab_up.
11719 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11721 * dwarf2/read.h (struct dwarf2_per_objfile)
11722 <quick_file_names_table>: Now htab_up.
11724 2020-02-08 Tom Tromey <tom@tromey.com>
11726 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11728 2020-02-08 Tom Tromey <tom@tromey.com>
11730 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11732 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11733 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11734 (abbrev_table::abbrev_table): No longer inline.
11735 (ABBREV_HASH_SIZE): Remove.
11736 (abbrev_table::m_abbrevs): Now an htab_up.
11738 2020-02-08 Tom Tromey <tom@tromey.com>
11740 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11741 (cutu_reader): Update.
11742 (build_type_psymtabs_1): Update.
11743 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11744 (abbrev_table::alloc_abbrev): Update.
11745 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11746 (abbrev_table::read): New static method, renamed from
11747 abbrev_table_read_table.
11748 (abbrev_table::alloc_abbrev)
11749 (abbrev_table::add_abbrev): Now private.
11750 (abbrev_table::abbrev_table): Now private.
11751 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11753 2020-02-08 Tom Tromey <tom@tromey.com>
11755 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11756 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11759 2020-02-08 Tom Tromey <tom@tromey.com>
11761 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11763 (lookup_dwo_unit_in_dwp): Update.
11764 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11767 2020-02-08 Tom Tromey <tom@tromey.com>
11769 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11772 2020-02-08 Tom Tromey <tom@tromey.com>
11774 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11776 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11777 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11778 Change type to htab_up.
11780 2020-02-08 Tom Tromey <tom@tromey.com>
11782 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11783 htab_up. Don't allocate on obstack.
11784 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11785 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11786 Change type to htab_up.
11788 2020-02-08 Tom Tromey <tom@tromey.com>
11790 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11791 Change type to htab_up.
11792 * dwarf2/read.c (create_signatured_type_table_from_index)
11793 (create_signatured_type_table_from_debug_names)
11794 (create_all_type_units, add_type_unit)
11795 (lookup_dwo_signatured_type, lookup_signatured_type)
11796 (process_skeletonless_type_unit): Update.
11797 (create_debug_type_hash_table, create_debug_types_hash_table):
11798 Change type of types_htab.
11799 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11800 htab_up. Don't allocate on obstack.
11801 (create_cus_hash_table): Change type of cus_htab parameter.
11802 (struct dwo_file) <cus, tus>: Now htab_up.
11803 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11804 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11805 (queue_and_load_all_dwo_tus): Update.
11806 * dwarf2/index-write.c (write_gdbindex): Update.
11807 (write_debug_names): Update.
11809 2020-02-08 Tom Tromey <tom@tromey.com>
11811 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11812 dwarf2/read.c. Remove "next" member. Add constructor ntad
11814 (struct dwarf2_per_objfile) <queue>: New member.
11815 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11817 (dwarf2_queue, dwarf2_queue_tail): Remove.
11818 (class dwarf2_queue_guard): Add parameter to constructor. Use
11819 DISABLE_COPY_AND_ASSIGN.
11820 <m_per_objfile>: New member.
11821 <~dwarf2_queue_guard>: Rewrite.
11822 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11824 (~dwarf2_queue_item): New.
11826 2020-02-08 Tom Tromey <tom@tromey.com>
11828 * dwarf2/read.c (struct die_info) <has_children>: New member.
11829 (dw2_get_file_names_reader): Remove has_children.
11830 (dw2_get_file_names): Update.
11831 (read_cutu_die_from_dwo): Remove has_children.
11832 (cutu_reader::init_tu_and_read_dwo_dies)
11833 (cutu_reader::cutu_reader): Update.
11834 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11835 Remove has_children.
11836 (build_type_psymtabs_1, process_skeletonless_type_unit)
11837 (load_partial_comp_unit, load_full_comp_unit): Update.
11838 (create_dwo_cu_reader): Remove has_children.
11839 (create_cus_hash_table, read_die_and_children): Update.
11840 (read_full_die_1,read_full_die): Remove has_children.
11841 (read_signatured_type): Update.
11842 (class cutu_reader) <has_children>: Remove.
11844 2020-02-08 Tom Tromey <tom@tromey.com>
11846 * dwarf2/expr.c: Rename from dwarf2expr.c.
11847 * dwarf2/expr.h: Rename from dwarf2expr.h.
11848 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11849 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11850 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11851 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11852 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11853 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11854 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11855 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11856 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11857 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11858 * dwarf2/loc.c: Rename from dwarf2loc.c.
11859 * dwarf2/loc.h: Rename from dwarf2loc.h.
11860 * dwarf2/read.c: Rename from dwarf2read.c.
11861 * dwarf2/read.h: Rename from dwarf2read.h.
11862 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11863 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11864 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11865 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11866 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11867 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11868 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11869 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11870 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11871 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11872 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11873 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11874 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11876 * Makefile.in (COMMON_SFILES): Update.
11877 (HFILES_NO_SRCDIR): Update.
11879 2020-02-08 Tom Tromey <tom@tromey.com>
11881 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11882 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11884 2020-02-08 Tom Tromey <tom@tromey.com>
11886 * dwarf2read.h (struct die_info): Don't declare.
11888 2020-02-08 Tom Tromey <tom@tromey.com>
11890 * dwarf2read.h (die_info_ptr): Remove typedef.
11892 2020-02-08 Tom Tromey <tom@tromey.com>
11894 * dwarf2read.c (read_call_site_scope)
11895 (handle_data_member_location, dwarf2_add_member_fn)
11896 (mark_common_block_symbol_computed, read_common_block)
11897 (attr_to_dynamic_prop, partial_die_info::read)
11898 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11899 (dwarf2_symbol_mark_computed, set_die_type): Update.
11900 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11902 (attr_form_is_block): Don't declare.
11903 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11905 2020-02-08 Tom Tromey <tom@tromey.com>
11907 * dwarf2read.c (dwarf2_find_base_address, )
11908 (read_call_site_scope, rust_containing_type)
11909 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11910 (handle_data_member_location, dwarf2_add_member_fn)
11911 (get_alignment, read_structure_type, process_structure_scope)
11912 (mark_common_block_symbol_computed, read_common_block)
11913 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11914 (partial_die_info::read, read_attribute_value, new_symbol)
11915 (lookup_die_type, dwarf2_get_ref_die_offset)
11916 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11917 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11918 (dwarf2_symbol_mark_computed): Update.
11919 * dwarf2/attribute.h (struct attribute) <value_as_address,
11920 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11922 (value_as_address, attr_form_is_section_offset)
11923 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11924 * dwarf2/attribute.c (attribute::value_as_address)
11925 (attribute::form_is_section_offset, attribute::form_is_constant)
11926 (attribute::form_is_ref): Now methods.
11928 2020-02-08 Tom Tromey <tom@tromey.com>
11930 * dwarf2read.c (struct attribute, DW_STRING)
11931 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11932 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11933 (attr_form_is_block, attr_form_is_section_offset)
11934 (attr_form_is_constant, attr_form_is_ref): Move.
11935 * dwarf2/attribute.h: New file.
11936 * dwarf2/attribute.c: New file, from dwarf2read.c.
11937 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11939 2020-02-08 Tom Tromey <tom@tromey.com>
11941 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11942 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11944 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11945 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11946 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11948 * dwarf2/abbrev.h: New file.
11949 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11950 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11952 2020-02-08 Tom Tromey <tom@tromey.com>
11954 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11955 (dwarf2_section_size, dwarf2_get_section_info)
11956 (create_signatured_type_table_from_debug_names)
11957 (create_addrmap_from_aranges, read_debug_names_from_section)
11958 (get_gdb_index_contents_from_section, read_comp_unit_head)
11959 (error_check_comp_unit_head, read_abbrev_offset)
11960 (create_debug_type_hash_table, init_cu_die_reader)
11961 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11962 (read_comp_units_from_section, create_cus_hash_table)
11963 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11964 (create_dwp_v2_section, dwarf2_rnglists_process)
11965 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11966 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11967 (read_indirect_string_from_dwz, read_addr_index_1)
11968 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11969 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11970 (fill_in_loclist_baton): Update.
11971 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11972 get_containing_section, get_bfd_owner, get_bfd_section,
11973 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11974 (dwarf2_read_section, get_section_name, get_section_file_name)
11975 (get_containing_section, get_section_bfd_owner)
11976 (get_section_bfd_section, get_section_name, get_section_file_name)
11977 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11979 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11980 (dwarf2_section_info::get_bfd_owner)
11981 (dwarf2_section_info::get_bfd_section)
11982 (dwarf2_section_info::get_name)
11983 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11984 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11985 (dwarf2_section_info::read): Now methods.
11986 * dwarf-index-write.c (class debug_names): Update.
11988 2020-02-08 Tom Tromey <tom@tromey.com>
11990 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11991 Move to dwarf2/section.h.
11992 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11993 (get_section_bfd_section, get_section_name)
11994 (get_section_file_name, get_section_id, get_section_flags)
11995 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11997 * dwarf2/section.h: New file.
11998 * dwarf2/section.c: New file, from dwarf2read.c.
11999 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
12001 2020-02-08 Tom Tromey <tom@tromey.com>
12003 * dwarf2read.h (read_unsigned_leb128): Don't declare.
12004 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
12005 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
12006 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
12007 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
12008 * dwarf2/leb.h: New file, from dwarf2read.c.
12009 * dwarf2/leb.c: New file, from dwarf2read.c.
12010 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
12012 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
12013 (COMMON_SFILES): Add dwarf2/leb.c.
12015 2020-02-08 Joel Brobecker <brobecker@adacore.com>
12019 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12022 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
12023 * gdb/remote.c (remote_console_output): Update.
12024 * gdb/ui-file.c (fputs_unfiltered): Rename to...
12025 (ui_file_puts): ...this.
12026 * gdb/ui-file.h (ui_file_puts): Add declaration.
12027 * gdb/utils.c (emit_style_escape): Update.
12028 (flush_wrap_buffer): Update.
12029 (fputs_maybe_filtered): Update.
12030 (fputs_unfiltered): Add function.
12032 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
12034 * gdb/event-loop.c (gdb_wait_for_event): Update.
12035 * gdb/printcmd.c (printf_command): Update.
12036 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
12037 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
12038 (gdb_os_flush_stderr): Update.
12039 * gdb/remote.c (remote_console_output): Update.
12040 * gdb/ui-file.c (gdb_flush): Rename to...
12041 (ui_file_flush): ...this.
12042 (stderr_file::write): Update.
12043 (stderr_file::puts): Update.
12044 * gdb/ui-file.h (gdb_flush): Rename to...
12045 (ui_file_flush): ...this.
12046 * gdb/utils.c (gdb_flush): Add function.
12047 * gdb/utils.h (gdb_flush): Add declaration.
12049 2020-02-07 Tom Tromey <tromey@adacore.com>
12051 PR breakpoints/24915:
12052 * source.c (find_and_open_source): Do not check basenames_may_differ.
12054 2020-02-07 Tom Tromey <tom@tromey.com>
12056 * README: Update gdbserver documentation.
12057 * gdbserver: Move to top level.
12058 * configure.tgt (build_gdbserver): Remove.
12059 * configure.ac: Remove --enable-gdbserver.
12060 * configure: Rebuild.
12061 * Makefile.in (distclean): Don't mention gdbserver.
12063 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12065 * source-cache.c (source_cache::ensure): Surround
12066 get_plain_source_lines with a try/catch.
12067 (source_cache::get_line_charpos): Get rid of try/catch
12068 and only check for the return value of "ensure".
12069 * tui/tui-source.c (tui_source_window::set_contents):
12070 Simplify "nlines" calculation.
12072 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
12074 * MAINTAINERS (Write After Approval): Add myself.
12076 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12078 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
12081 2020-02-05 Christian Biesinger <cbiesinger@google.com>
12083 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
12085 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
12087 * nat/riscv-linux-tdesc.h: New file.
12088 * nat/riscv-linux-tdesc.c: New file, taking code from...
12089 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
12091 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
12094 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
12096 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
12097 we don't set the fake simulator ptid to the null_ptid.
12099 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
12101 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
12102 * gdbthread.h (class thread_info) <resumed>: Likewise.
12103 * infrun.c (resume_1): Likewise.
12104 (proceed): Likewise.
12105 (infrun_thread_stop_requested): Likewise.
12106 (stop_all_threads): Likewise.
12107 (handle_inferior_event): Likewise.
12108 (restart_threads): Likewise.
12109 (finish_step_over): Likewise.
12110 (keep_going_stepped_thread): Likewise.
12111 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
12112 (linux_handle_extended_wait): Likewise.
12113 * record-btrace.c (get_thread_current_frame_id): Likewise.
12114 * record-full.c (record_full_wait_1): Likewise.
12115 * remote.c (remote_target::process_initial_stop_replies): Likewise.
12116 * target.c (target_resume): Likewise.
12117 * thread.c (set_running_thread): Likewise.
12119 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
12121 * f-valprint.c (f77_print_array_1): Changed datatype of index
12122 variable to LONGEST from int to enable it to contain bound
12125 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
12127 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
12128 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
12129 offsets according to FLEN determined.
12130 (riscv_linux_nat_target::read_description): Determine FLEN
12132 (riscv_linux_nat_target::fetch_registers): Size regset buffer
12133 according to FLEN determined.
12134 (riscv_linux_nat_target::store_registers): Likewise.
12136 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
12138 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
12139 when reg->group is empty and reggroup is not.
12141 2020-01-31 Tom Tromey <tromey@adacore.com>
12143 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
12144 Call beneath target's mourn_inferior after unpushing.
12146 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12149 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
12150 have enough lines to fill the screen, still return the lowest
12153 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
12155 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
12156 '-', '<', and '>' commands.
12158 2020-01-29 Pedro Alves <palves@redhat.com>
12159 Sergio Durigan Junior <sergiodj@redhat.com>
12161 * infcmd.c (construct_inferior_arguments): Assert that
12162 'argc' is greater than 0.
12164 2020-01-29 Luis Machado <luis.machado@linaro.org>
12166 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
12167 (BRK_INSN_MASK): Define to 0xd4200000.
12168 (aarch64_program_breakpoint_here_p): New function.
12169 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
12170 * arch-utils.c (default_program_breakpoint_here_p): Moved from
12172 * arch-utils.h (default_program_breakpoint_here_p): Moved from
12174 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
12175 call gdbarch_program_breakpoint_here_p.
12176 (program_breakpoint_here): Moved to arch-utils.c, renamed to
12177 default_program_breakpoint_here_p, changed return type to bool and
12179 * breakpoint.h (program_breakpoint_here): Moved prototype to
12180 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
12181 return type to bool.
12182 * gdbarch.c: Regenerate.
12183 * gdbarch.h: Regenerate.
12184 * gdbarch.sh (program_breakpoint_here_p): New method.
12185 * infrun.c (handle_signal_stop): Call
12186 gdbarch_program_breakpoint_here_p.
12188 2020-01-26 Tom Tromey <tom@tromey.com>
12190 * ctfread.c (struct ctf_fp_info): Reindent.
12191 (_initialize_ctfread): Remove.
12193 2020-01-26 Tom Tromey <tom@tromey.com>
12195 * psymtab.c (partial_map_expand_apply)
12196 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12197 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12198 (psym_print_stats, psym_expand_symtabs_for_function)
12199 (psym_map_symbol_filenames, psym_map_matching_symbols)
12200 (psym_expand_symtabs_matching)
12201 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12202 (maintenance_check_psymtabs): Use new methods.
12203 * psympriv.h (struct partial_symtab) <readin_p,
12204 get_compunit_symtab>: New methods.
12205 <readin, compunit_symtab>: Remove members.
12206 (struct standard_psymtab): New.
12207 (struct legacy_psymtab): Derive from standard_psymtab.
12208 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12210 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12212 2020-01-26 Tom Tromey <tom@tromey.com>
12214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12215 read_dependencies. Add assert.
12216 * psymtab.c (partial_symtab::read_dependencies): New method.
12217 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12219 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12220 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12222 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12225 2020-01-26 Tom Tromey <tom@tromey.com>
12227 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12228 Call expand_psymtab.
12229 (xcoff_read_symtab): Call expand_psymtab.
12230 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12231 legacy_expand_psymtab.
12232 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12234 (struct legacy_psymtab) <expand_psymtab>: Implement.
12235 <legacy_expand_psymtab>: New member.
12236 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12237 (parse_partial_symbols): Set legacy_expand_psymtab.
12238 (psymtab_to_symtab_1): Change argument order. Call
12240 (new_psymtab): Set legacy_expand_psymtab.
12241 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12242 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12244 (dwarf2_psymtab::expand_psymtab): Rename from
12245 psymtab_to_symtab_1. Call expand_psymtab.
12246 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12247 (dbx_end_psymtab): Likewise.
12248 (dbx_psymtab_to_symtab_1): Change argument order. Call
12250 (dbx_read_symtab): Call expand_psymtab.
12251 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12252 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12253 (ctf_psymtab::read_symtab): Call expand_psymtab.
12255 2020-01-26 Tom Tromey <tom@tromey.com>
12257 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12258 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12260 * mdebugread.c (mdebug_read_symtab): Remove prints.
12261 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12263 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12265 2020-01-26 Tom Tromey <tom@tromey.com>
12267 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12268 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12269 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12271 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12272 * psymtab.c (psymtab_to_symtab): Call method.
12273 (dump_psymtab): Update.
12274 * psympriv.h (struct partial_symtab): Add virtual destructor.
12275 <read_symtab>: New method.
12276 (struct legacy_symtab): New.
12277 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12278 (struct pst_map) <pst>: Now a legacy_psymtab.
12279 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12280 (new_psymtab): Use legacy_psymtab.
12281 * dwarf2read.h (struct dwarf2_psymtab): New.
12282 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12283 * dwarf2read.c (dwarf2_create_include_psymtab)
12284 (dwarf2_build_include_psymtabs, create_type_unit_group)
12285 (create_partial_symtab, process_psymtab_comp_unit_reader)
12286 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12287 (set_partial_user): Use dwarf2_psymtab.
12288 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12289 (psymtab_to_symtab_1, process_full_comp_unit)
12290 (process_full_type_unit, dwarf2_ranges_read)
12291 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12292 (dwarf_decode_lines): Use dwarf2_psymtab.
12293 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12294 (add_address_entry_worker, write_one_signatured_type)
12295 (recursively_count_psymbols, recursively_write_psymbols)
12296 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12297 (write_debug_names): Likewise.
12298 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12299 <pst>: Now a legacy_psymtab.
12300 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12301 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12302 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12303 * ctfread.c (struct ctf_psymtab): New.
12304 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12306 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12307 (create_partial_symtab): Return a ctf_psymtab.
12308 (scan_partial_symbols): Update.
12310 2020-01-26 Tom Tromey <tom@tromey.com>
12312 * xcoffread.c (xcoff_start_psymtab): Use new.
12313 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12314 renamed from start_psymtab_common.
12315 * psympriv.h (struct partial_symtab): Add new constructor.
12316 (start_psymtab_common): Don't declare.
12317 * mdebugread.c (parse_partial_symbols): Use new.
12318 * dwarf2read.c (create_partial_symtab): Use new.
12319 * dbxread.c (start_psymtab): Use new.
12320 * ctfread.c (create_partial_symtab): Use new.
12322 2020-01-26 Tom Tromey <tom@tromey.com>
12324 * xcoffread.c (xcoff_end_psymtab): Use new.
12325 * psymtab.c (start_psymtab_common): Use new.
12326 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12328 * psympriv.h (struct partial_symtab): Add parameters to
12329 constructor. Don't inline.
12330 (allocate_psymtab): Don't declare.
12331 * mdebugread.c (new_psymtab): Use new.
12332 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12333 * dbxread.c (dbx_end_psymtab): Use new.
12335 2020-01-26 Tom Tromey <tom@tromey.com>
12337 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12338 allocate_psymtab. Update documentation.
12339 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12340 allocate_psymtab. Do not use new.
12341 (allocate_psymtab): Use new. Update.
12343 2020-01-26 Tom Tromey <tom@tromey.com>
12345 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12346 * psymtab.c (psym_print_stats): Update.
12347 * psympriv.h (struct partial_symtab) <readin,
12348 psymtabs_addrmap_supported, anonymous>: Now bool.
12349 * mdebugread.c (psymtab_to_symtab_1): Update.
12350 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12351 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12352 (process_full_comp_unit, process_full_type_unit): Update.
12353 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12354 * ctfread.c (psymtab_to_symtab): Update.
12356 2020-01-26 Tom Tromey <tom@tromey.com>
12358 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12359 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12360 * psymtab.c (psymtab_storage): Delete psymtabs.
12361 (psymtab_storage::allocate_psymtab): Use new.
12362 (psymtab_storage::discard_psymtab): Use delete.
12363 * psympriv.h (struct partial_symtab): Add constructor and
12366 2020-01-26 Tom Tromey <tom@tromey.com>
12368 * machoread.c: Do not include psympriv.h.
12370 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12372 * NEWS: Mention the new option and the set/show commands.
12374 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12376 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12377 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12378 (validate_exec_file): New variables, enums, functions.
12379 (exec_file_locate_attach, print_section_info): Style the filenames.
12380 (_initialize_exec): Install show_exec_file_mismatch_command and
12381 set_exec_file_mismatch_command.
12382 * gdbcore.h (validate_exec_file): Declare.
12383 * infcmd.c (attach_command): Call validate_exec_file.
12384 * remote.c ( remote_target::remote_add_inferior): Likewise.
12386 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12388 * frame.c (find_frame_sal): Move call to get_next_frame into more
12390 * inline-frame.c (inilne_state) <inline_state>: Update argument
12392 (inilne_state) <skipped_symbol>: Rename to...
12393 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12394 (skip_inline_frames): Build vector of skipped symbols and use this
12395 to reate the inline_state.
12396 (inline_skipped_symbol): Add a comment and some assertions, fetch
12397 skipped symbol from the list.
12399 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12401 * buildsym.c (lte_is_less_than): Delete.
12402 (buildsym_compunit::end_symtab_with_blockvector): Create local
12403 lambda function to sort line table entries, and use
12404 std::stable_sort instead of std::sort.
12405 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12406 markers when looking for a previous line.
12408 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12410 * dwarf2read.c (lnp_state_machine::record_line): Include
12411 end_sequence parameter in debug print out. Record the line if we
12412 are at an end_sequence marker even if it's not the start of a
12414 * symmisc.c (maintenance_print_one_line_table): Print end of
12415 sequence markers with 'END' not '0'.
12417 2020-01-24 Pedro Alves <palves@redhat.com>
12420 * thread.c (scoped_restore_current_thread::restore): Use
12421 switch_to_inferior_no_thread.
12422 * exec.c: Include "progspace-and-thread.h".
12423 (add_target_sections, remove_target_sections):
12424 scoped_restore_current_pspace_and_thread instead of
12425 scoped_restore_current_thread.
12426 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12427 and aspace to the inferior before calling clone_program_space.
12428 Remove stale comment.
12430 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12432 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12433 (arm_netbsd_nat_target::fetch_registers): ...this.
12434 (arm_nbsd_nat_target::store_registers): Rename to...
12435 (arm_netbsd_nat_target::store_registers): ...this.
12437 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12439 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12442 2020-01-24 Christian Biesinger <cbiesinger@google.com>
12444 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12446 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12448 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12449 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12450 the correct replacement (iterate_over_regset_sections).
12451 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12454 2020-01-24 Graham Markall <graham.markall@embecosm.com>
12457 * gdb/python/python.c (execute_gdb_command): Call
12458 async_enable_stdin in catch block.
12460 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12462 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12463 SWITCH_THRU_ALL_UIS.
12465 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12468 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12469 comment, add extra parameter, and update to store previous symbol
12471 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12472 add extra parameter.
12473 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12474 remove unneeded parameter, add try/catch around gdb_print_insn,
12475 rewrite to add items to asm_lines vector.
12476 (tui_find_backward_disassembly_start_address): New function.
12477 (tui_find_disassembly_address): Updated throughout.
12478 (tui_disasm_window::set_contents): Update for changes to
12480 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12481 number of lines to scroll.
12483 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12485 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12486 (SECT_OFF_DATA): Likewise.
12487 (SECT_OFF_RODATA): Likewise.
12488 (SECT_OFF_TEXT): Likewise.
12489 (SECT_OFF_BSS): Likewise.
12490 (struct objfile) <text_section_offset, data_section_offset>: New
12492 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12493 objfile::text_section_offset.
12494 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12495 * coffread.c (coff_symtab_read): Likewise.
12496 (enter_linenos): Likewise.
12497 (process_coff_symbol): Likewise.
12498 * ctfread.c (get_objfile_text_range): Likewise.
12499 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12500 Use objfile::data_section_offset.
12501 * dwarf2-frame.c (execute_cfa_program): Use
12502 objfile::text_section_offset.
12503 (dwarf2_frame_find_fde): Likewise.
12504 * dwarf2read.c (create_addrmap_from_index): Likewise.
12505 (create_addrmap_from_aranges): Likewise.
12506 (dw2_find_pc_sect_compunit_symtab): Likewise.
12507 (process_psymtab_comp_unit_reader): Likewise.
12508 (add_partial_symbol): Likewise.
12509 (add_partial_subprogram): Likewise.
12510 (process_full_comp_unit): Likewise.
12511 (read_file_scope): Likewise.
12512 (read_func_scope): Likewise.
12513 (read_lexical_block_scope): Likewise.
12514 (read_call_site_scope): Likewise.
12515 (dwarf2_rnglists_process): Likewise.
12516 (dwarf2_ranges_process): Likewise.
12517 (dwarf2_ranges_read): Likewise.
12518 (dwarf_decode_lines_1): Likewise.
12519 (new_symbol): Likewise.
12520 (dwarf2_fetch_die_loc_sect_off): Likewise.
12521 (dwarf2_per_cu_text_offset): Likewise.
12522 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12523 * hppa-tdep.c (read_unwind_info): Likewise.
12524 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12525 * psympriv.h (struct partial_symtab): Likewise.
12526 * psymtab.c (find_pc_sect_psymtab): Likewise.
12527 * solib-svr4.c (enable_break): Likewise.
12528 * stap-probe.c (relocate_address): Use
12529 objfile::data_section_offset.
12530 * xcoffread.c (enter_line_range): Use
12531 objfile::text_section_offset.
12532 (read_xcoff_symtab): Likewise.
12534 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12536 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12537 declaration to narrower scopes.
12539 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
12541 * darwin-nat.h (struct darwin_exception_msg, enum
12542 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12544 (class darwin_nat_target) <wait_1, check_new_threads,
12545 decode_exception_message, decode_message, stop_inferior,
12546 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12547 * darwin-nat.c (darwin_check_new_threads): Rename to...
12548 (darwin_nat_target::check_new_threads): ... this.
12549 (darwin_suspend_inferior_it): Remove.
12550 (darwin_decode_exception_message): Rename to...
12551 (darwin_nat_target::decode_exception_message): ... this.
12552 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12553 (darwin_decode_message): Rename to...
12554 (darwin_nat_target::decode_message): ... this.
12555 (cancel_breakpoint): Rename to...
12556 (darwin_nat_target::cancel_breakpoint): ... this.
12557 (darwin_wait): Rename to...
12558 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12559 instead of iterate_over_inferiors.
12560 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12561 (darwin_stop_inferior): Rename to...
12562 (darwin_nat_target::stop_inferior): ... this.
12563 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12564 (darwin_init_thread_list): Rename to...
12565 (darwin_nat_target::init_thread_list): ... this.
12566 (darwin_ptrace_him): Rename to...
12567 (darwin_nat_target::ptrace_him): ... this.
12568 (darwin_nat_target::create_inferior): Pass lambda function to
12570 (darwin_nat_target::detach): Call stop_inferior instead of
12571 darwin_stop_inferior.
12572 * fork-inferior.h (fork_inferior): Change init_trace_fun
12573 parameter to gdb::function_view.
12574 * fork-inferior.c (fork_inferior): Likewise.
12576 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
12578 * i386-cygwin-tdep.c (core_process_module_section): Update.
12579 * windows-nat.c (struct lm_info_windows): Add text_offset.
12580 (windows_xfer_shared_libraries): Update.
12581 * windows-tdep.c (windows_xfer_shared_library):
12582 Add text_offset_cached argument.
12583 * windows-tdep.h (windows_xfer_shared_library): Update.
12585 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12587 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12589 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12591 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12592 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12593 replace with range-based for.
12594 (gdbsim_interrupt_inferior): Remove.
12595 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12596 with a range-based for. Inline code from
12597 gdbsim_interrupt_inferior.
12599 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
12601 * infrun.c (proceed): Fix indentation.
12603 2020-01-21 Tom Tromey <tromey@adacore.com>
12605 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12606 * python/python.c (python_extension_ops): Update.
12607 (gdbpy_colorize): New function.
12608 * python/lib/gdb/__init__.py (colorize): New function.
12609 * extension.h (ext_lang_colorize): Declare.
12610 * extension.c (ext_lang_colorize): New function.
12611 * extension-priv.h (struct extension_language_ops) <colorize>: New
12613 * cli/cli-style.c (_initialize_cli_style): Update help text.
12615 2020-01-21 Luis Machado <luis.machado@linaro.org>
12617 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12618 <cond>: Change type to bool.
12619 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12620 (aarch64_displaced_step_cb): Likewise.
12621 (aarch64_displaced_step_tb): Likewise.
12623 2020-01-21 Luis Machado <luis.machado@linaro.org>
12625 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12628 2020-01-21 Luis Machado <luis.machado@linaro.org>
12630 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12631 <pc_adjust>: Adjust the documentation.
12632 (aarch64_displaced_step_fixup): Check if PC really moved before
12635 2020-01-19 Tom Tromey <tom@tromey.com>
12637 * disasm.c (~gdb_disassembler): New destructor.
12638 (gdb_buffered_insn_length): Call disassemble_free_target.
12639 * disasm.h (class gdb_disassembler): Declare destructor. Use
12640 DISABLE_COPY_AND_ASSIGN.
12642 2020-01-19 Tom Tromey <tom@tromey.com>
12644 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12645 (die_reader_func_ftype): Remove.
12646 (cutu_reader): New class.
12647 (dw2_get_file_names_reader): Remove "data" parameter.
12648 (dw2_get_file_names): Use cutu_reader.
12649 (create_debug_type_hash_table): Update.
12650 (read_cutu_die_from_dwo): Update comment.
12651 (lookup_dwo_unit): Add dwo_name parameter.
12652 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12653 die_reader_func_ftype and data parameters.
12654 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12655 Remove die_reader_func_ftype and data parameters.
12656 (~cutu_reader): New; from init_cutu_and_read_dies.
12657 (cutu_reader::cutu_reader): Rename from
12658 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12659 and data parameters.
12660 (init_cutu_and_read_dies_simple): Remove.
12661 (struct process_psymtab_comp_unit_data): Remove.
12662 (process_psymtab_comp_unit_reader): Remove data parameter; add
12663 want_partial_unit and pretend_language parameters.
12664 (process_psymtab_comp_unit): Use cutu_reader.
12665 (build_type_psymtabs_reader): Remove data parameter.
12666 (build_type_psymtabs_1): Use cutu_reader.
12667 (process_skeletonless_type_unit): Likewise.
12668 (load_partial_comp_unit_reader): Remove.
12669 (load_partial_comp_unit): Use cutu_reader.
12670 (load_full_comp_unit_reader): Remove.
12671 (load_full_comp_unit): Use cutu_reader.
12672 (struct create_dwo_cu_data): Remove.
12673 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12674 dwo_unit parameters.
12675 (create_cus_hash_table): Use cutu_reader.
12676 (struct dwarf2_read_addr_index_data): Remove.
12677 (dwarf2_read_addr_index_reader): Remove.
12678 (dwarf2_read_addr_index): Use cutu_reader.
12679 (read_signatured_type_reader): Remove.
12680 (read_signatured_type): Use cutu_reader.
12682 2020-01-19 Tom Tromey <tom@tromey.com>
12684 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12685 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12686 (tui_wrefresh): Declare.
12687 * tui/tui-wingeneral.c (suppress_output): New global.
12688 (tui_suppress_output, ~tui_suppress_output): New constructor and
12690 (tui_wrefresh): New function.
12691 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12692 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12693 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12695 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12697 (tui_data_window::no_refresh): New method.
12698 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12699 (tui_reg_command): Use tui_suppress_output
12700 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12701 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12703 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12705 2020-01-19 Tom Tromey <tom@tromey.com>
12707 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12708 Handle case where symtab is null.
12710 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12712 * linux-fork.c (one_fork_p): Simplify.
12714 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12716 * top.c (struct qt_args): Remove.
12717 (kill_or_detach): Change return type to void, replace `void *`
12718 parameter with a proper one.
12719 (print_inferior_quit_action): Likewise.
12720 (quit_confirm): Use range-based for loop to iterate over inferiors.
12721 (quit_force): Likewise.
12723 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12725 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12726 `void *` parameter with proper parameters.
12727 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12728 (print_one_inferior): Change return type to void, replace `void *`
12729 parameter with proper parameters.
12730 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12732 (get_other_inferior): Remove.
12733 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12736 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12738 * mi/mi-interp.c (report_initial_inferior): Remove.
12739 (mi_interp::init): Use range-based for to iterate over inferiors.
12741 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
12743 * python/py-inferior.c (build_inferior_list): Remove.
12744 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12746 2020-01-16 Christian Biesinger <cbiesinger@google.com>
12748 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12749 (btrace_stitch_trace): Likewise.
12750 * charset.c (intermediate_encoding): Likewise (vaild).
12751 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12752 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12753 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12755 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
12757 * windows-tdep.c (windows_get_tlb_type):
12758 Add rtl_user_process_parameters type.
12760 2020-01-16 Pedro Alves <palves@redhat.com>
12761 Norbert Lange <nolange79@gmail.com>
12764 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12765 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12766 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12767 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12768 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12769 (ps_plog): Redeclare exported functions with default visibility.
12771 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12773 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12774 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12776 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
12778 * infcmd.c (post_create_inferior): Use get_thread_regcache
12779 instead of get_current_regcache.
12781 2020-01-14 Tom Tromey <tom@tromey.com>
12784 * python/python.c (gdbpy_decode_line): Treat empty string the same
12787 2020-01-14 Tom Tromey <tom@tromey.com>
12789 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12791 2020-01-14 Tom Tromey <tom@tromey.com>
12793 * nat/linux-btrace.c: Don't include <config.h>.
12794 * nat/linux-ptrace.c: Don't include <config.h>.
12795 * nat/x86-linux-dregs.c: Don't include <config.h>.
12797 2020-01-14 Tom Tromey <tom@tromey.com>
12799 * configure: Rebuild.
12800 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12802 2020-01-14 Tom Tromey <tom@tromey.com>
12804 * nat/x86-linux-dregs.c: Include configh.h.
12805 * nat/linux-ptrace.c: Include configh.h.
12806 * nat/linux-btrace.c: Include configh.h.
12807 * defs.h: Include config.h, bfd.h.
12808 * configure.ac: Don't source common.host.
12809 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12810 * configure: Rebuild.
12811 * acinclude.m4: Update path.
12812 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12813 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12814 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12815 (CLIBS): Add LIBSUPPORT.
12817 (COMMON_SFILES): Remove gdbsupport files.
12818 (HFILES_NO_SRCDIR): Likewise.
12819 (stamp-version): Update path to create-version.sh.
12820 (ALLDEPFILES): Remove gdbsupport files.
12822 2020-01-14 Tom Tromey <tom@tromey.com>
12824 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12825 USE_WIN32API when needed.
12826 * configure.ac (USE_WIN32API): Don't define.
12827 (WIN32LIBS): Use WIN32APILIBS.
12828 * configure: Rebuild.
12830 2020-01-14 Tom Tromey <tom@tromey.com>
12832 * configure: Rebuild.
12833 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12835 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12837 * skip.c (skip_function_command): Make skip w/o arguments use the
12838 name of the inlined function if pc is inside any inlined function.
12840 2020-01-14 Luis Machado <luis.machado@linaro.org>
12842 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12843 * infrun.c (resume_1): Likewise.
12844 (handle_inferior_event): Remove stale comment.
12845 * linux-nat.c (linux_nat_target::resume): Update comments.
12846 (save_stop_reason): Likewise.
12847 (linux_nat_filter_event): Likewise.
12848 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12850 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12852 * elfread.c (record_minimal_symbol): Set section index to 0 for
12853 non-allocatable sections.
12856 2020-01-13 Ali Tamur <tamur@google.com>
12858 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12859 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12860 to gdb::optional. Update comments.
12861 (dwo_file): Update comments.
12862 (read_attribute): Update API to take an additional out parameter,
12863 need_reprocess. This is used to mark attributes that need other
12864 attributes (e.g. str_offsets_base) for correct computation which may not
12865 have been read yet.
12866 (read_attribute_reprocess): New function declaration.
12867 (read_addr_index): Likewise.
12868 (read_dwo_str_index): Likewise.
12869 (read_stub_str_index): Likewise.
12870 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12871 (lookup_addr_base): New function definition.
12872 (lookup_ranges_base): Likewise.
12873 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12874 lookup_ranges_base.
12875 (init_cutu_and_read_dies): Update comments.
12876 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12877 unit. This is used to inherit parent's str_offsets_base and addr_base.
12879 (init_cutu_and_read_dies_simple): Reflect API changes.
12880 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12881 (create_cus_hash_table): Change API to take parent compile unit.
12882 Reflect API changes.
12883 (open_and_init_dwo_file): Reflect API changes.
12884 (dwarf2_get_pc_bounds): Update comments.
12885 (dwarf2_record_block_ranges): Likewise.
12886 (read_full_die_1): Change implementation to reprocess attributes that
12887 need str_offsets_base and addr_base.
12888 (partial_die_info::read): Likewise.
12889 (read_attribute_reprocess): New function definition.
12890 (read_attribute_value): Change API to take an additional out parameter,
12891 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12892 when a non-dwo compile unit has index based attributes.
12893 (read_attribute): Reflect API changes.
12894 (read_addr_index_1): Reflect API changes. Update comments.
12895 (dwarf2_read_addr_index_data): Reflect API changes.
12896 (dwarf2_read_addr_index): Likewise.
12897 (read_str_index): Change API and implementation. This becomes a helper
12898 to be used by the new string index related methods. Update error
12899 message and comments.
12900 (read_dwo_str_index): New function definition.
12901 (read_stub_str_index): Likewise.
12902 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12903 * symfile.h (dwarf2_debug_sections): Likewise.
12904 * xcoffread.c (dwarf2_debug_sections): Likewise.
12906 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12908 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12909 core_reg_sect type to gdb_byte *.
12910 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12911 * cris-tdep.c (fetch_core_registers): Likewise.
12912 * corelow.c (core_target::get_core_register_section): Change
12913 type of `contents` to gdb::byte_vector.
12915 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12917 * tui/tui-wingeneral.c (box_win): Position the title in the center
12920 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12922 * corelow.c (core_target::get_core_register_section): Use
12923 std::vector instead of alloca.
12925 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12927 * warning.m4: Add -Wmissing-declarations to build_warnings.
12928 * configure: Re-generate.
12930 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12932 * python/python.c (init__gdb_module): Add declaration.
12934 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
12936 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12937 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12938 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12939 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12940 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12941 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12942 * ada-exp.y (_initialize_ada_exp): Add declaration.
12943 * ada-lang.c (_initialize_ada_language): Add declaration.
12944 * ada-tasks.c (_initialize_tasks): Add declaration.
12945 * agent.c (_initialize_agent): Add declaration.
12946 * aix-thread.c (_initialize_aix_thread): Add declaration.
12947 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12948 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12949 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12950 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12951 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12952 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12953 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12954 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12955 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12956 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12957 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12958 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12959 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12960 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12961 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12962 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12963 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12964 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12965 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12966 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12967 * annotate.c (_initialize_annotate): Add declaration.
12968 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12969 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12970 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12971 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12972 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12973 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12974 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12975 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12976 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12977 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12978 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12979 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12980 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12981 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12982 * auto-load.c (_initialize_auto_load): Add declaration.
12983 * auxv.c (_initialize_auxv): Add declaration.
12984 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12985 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12986 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12987 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12988 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12989 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12990 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12991 * breakpoint.c (_initialize_breakpoint): Add declaration.
12992 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12993 * btrace.c (_initialize_btrace): Add declaration.
12994 * charset.c (_initialize_charset): Add declaration.
12995 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12996 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12997 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12998 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12999 * cli/cli-script.c (_initialize_cli_script): Add declaration.
13000 * cli/cli-style.c (_initialize_cli_style): Add declaration.
13001 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
13002 * coffread.c (_initialize_coffread): Add declaration.
13003 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
13004 * compile/compile.c (_initialize_compile): Add declaration.
13005 * complaints.c (_initialize_complaints): Add declaration.
13006 * completer.c (_initialize_completer): Add declaration.
13007 * copying.c (_initialize_copying): Add declaration.
13008 * corefile.c (_initialize_core): Add declaration.
13009 * corelow.c (_initialize_corelow): Add declaration.
13010 * cp-abi.c (_initialize_cp_abi): Add declaration.
13011 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
13012 * cp-support.c (_initialize_cp_support): Add declaration.
13013 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
13014 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
13015 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
13016 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
13017 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
13018 * ctfread.c (_initialize_ctfread): Add declaration.
13019 * d-lang.c (_initialize_d_language): Add declaration.
13020 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
13021 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
13022 * dbxread.c (_initialize_dbxread): Add declaration.
13023 * dcache.c (_initialize_dcache): Add declaration.
13024 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
13025 * disasm.c (_initialize_disasm): Add declaration.
13026 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
13027 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
13028 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
13029 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
13030 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
13031 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
13032 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
13033 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
13034 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
13035 * elfread.c (_initialize_elfread): Add declaration.
13036 * exec.c (_initialize_exec): Add declaration.
13037 * extension.c (_initialize_extension): Add declaration.
13038 * f-lang.c (_initialize_f_language): Add declaration.
13039 * f-valprint.c (_initialize_f_valprint): Add declaration.
13040 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
13041 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
13042 * filesystem.c (_initialize_filesystem): Add declaration.
13043 * findcmd.c (_initialize_mem_search): Add declaration.
13044 * findvar.c (_initialize_findvar): Add declaration.
13045 * fork-child.c (_initialize_fork_child): Add declaration.
13046 * frame-base.c (_initialize_frame_base): Add declaration.
13047 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
13048 * frame.c (_initialize_frame): Add declaration.
13049 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
13050 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
13051 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
13052 * gcore.c (_initialize_gcore): Add declaration.
13053 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
13054 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
13055 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
13056 * gdbarch.c (_initialize_gdbarch): Add declaration.
13057 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
13058 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
13059 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
13060 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
13061 * go-lang.c (_initialize_go_language): Add declaration.
13062 * go32-nat.c (_initialize_go32_nat): Add declaration.
13063 * guile/guile.c (_initialize_guile): Add declaration.
13064 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
13065 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
13066 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
13067 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
13068 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
13069 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
13070 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
13071 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
13072 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
13073 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
13074 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
13075 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
13076 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
13077 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
13078 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
13079 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
13080 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
13081 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
13082 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
13083 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
13084 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
13085 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
13086 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
13087 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
13088 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
13089 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
13090 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
13091 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
13092 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
13093 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
13094 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
13095 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
13096 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
13097 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
13098 * infcall.c (_initialize_infcall): Add declaration.
13099 * infcmd.c (_initialize_infcmd): Add declaration.
13100 * inflow.c (_initialize_inflow): Add declaration.
13101 * infrun.c (_initialize_infrun): Add declaration.
13102 * interps.c (_initialize_interpreter): Add declaration.
13103 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
13104 * jit.c (_initialize_jit): Add declaration.
13105 * language.c (_initialize_language): Add declaration.
13106 * linux-fork.c (_initialize_linux_fork): Add declaration.
13107 * linux-nat.c (_initialize_linux_nat): Add declaration.
13108 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
13109 * linux-thread-db.c (_initialize_thread_db): Add declaration.
13110 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
13111 * m2-lang.c (_initialize_m2_language): Add declaration.
13112 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
13113 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
13114 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
13115 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
13116 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
13117 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
13118 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
13119 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
13120 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
13121 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
13122 * machoread.c (_initialize_machoread): Add declaration.
13123 * macrocmd.c (_initialize_macrocmd): Add declaration.
13124 * macroscope.c (_initialize_macroscope): Add declaration.
13125 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
13126 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
13127 * maint.c (_initialize_maint_cmds): Add declaration.
13128 * mdebugread.c (_initialize_mdebugread): Add declaration.
13129 * memattr.c (_initialize_mem): Add declaration.
13130 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
13131 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
13132 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
13133 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
13134 * mi/mi-main.c (_initialize_mi_main): Add declaration.
13135 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
13136 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
13137 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
13138 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
13139 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
13140 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
13141 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
13142 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
13143 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
13144 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
13145 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
13146 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
13147 * mipsread.c (_initialize_mipsread): Add declaration.
13148 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
13149 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
13150 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
13151 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
13152 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
13153 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
13154 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
13155 * nto-procfs.c (_initialize_procfs): Add declaration.
13156 * objc-lang.c (_initialize_objc_language): Add declaration.
13157 * observable.c (_initialize_observer): Add declaration.
13158 * opencl-lang.c (_initialize_opencl_language): Add declaration.
13159 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
13160 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
13161 * osabi.c (_initialize_gdb_osabi): Add declaration.
13162 * osdata.c (_initialize_osdata): Add declaration.
13163 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
13164 * parse.c (_initialize_parse): Add declaration.
13165 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
13166 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
13167 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
13168 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
13169 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
13170 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
13171 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
13172 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
13173 * printcmd.c (_initialize_printcmd): Add declaration.
13174 * probe.c (_initialize_probe): Add declaration.
13175 * proc-api.c (_initialize_proc_api): Add declaration.
13176 * proc-events.c (_initialize_proc_events): Add declaration.
13177 * proc-service.c (_initialize_proc_service): Add declaration.
13178 * procfs.c (_initialize_procfs): Add declaration.
13179 * producer.c (_initialize_producer): Add declaration.
13180 * psymtab.c (_initialize_psymtab): Add declaration.
13181 * python/python.c (_initialize_python): Add declaration.
13182 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
13183 * record-btrace.c (_initialize_record_btrace): Add declaration.
13184 * record-full.c (_initialize_record_full): Add declaration.
13185 * record.c (_initialize_record): Add declaration.
13186 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
13187 * regcache.c (_initialize_regcache): Add declaration.
13188 * reggroups.c (_initialize_reggroup): Add declaration.
13189 * remote-notif.c (_initialize_notif): Add declaration.
13190 * remote-sim.c (_initialize_remote_sim): Add declaration.
13191 * remote.c (_initialize_remote): Add declaration.
13192 * reverse.c (_initialize_reverse): Add declaration.
13193 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
13194 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
13195 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
13196 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13197 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13198 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13199 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13200 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13202 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13203 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13204 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13205 * rust-exp.y (_initialize_rust_exp): Add declaration.
13206 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13207 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13208 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13209 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13210 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13211 * score-tdep.c (_initialize_score_tdep): Add declaration.
13212 * ser-go32.c (_initialize_ser_dos): Add declaration.
13213 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13214 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13215 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13216 * ser-uds.c (_initialize_ser_socket): Add declaration.
13217 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13218 * serial.c (_initialize_serial): Add declaration.
13219 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13220 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13221 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13222 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13223 * skip.c (_initialize_step_skip): Add declaration.
13224 * sol-thread.c (_initialize_sol_thread): Add declaration.
13225 * solib-aix.c (_initialize_solib_aix): Add declaration.
13226 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13227 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13228 * solib-frv.c (_initialize_frv_solib): Add declaration.
13229 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13230 * solib-target.c (_initialize_solib_target): Add declaration.
13231 * solib.c (_initialize_solib): Add declaration.
13232 * source-cache.c (_initialize_source_cache): Add declaration.
13233 * source.c (_initialize_source): Add declaration.
13234 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13235 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13236 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13237 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13238 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13239 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13240 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13241 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13242 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13243 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13244 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13245 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13246 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13247 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13248 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13249 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13250 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13251 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13252 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13253 * stabsread.c (_initialize_stabsread): Add declaration.
13254 * stack.c (_initialize_stack): Add declaration.
13255 * stap-probe.c (_initialize_stap_probe): Add declaration.
13256 * std-regs.c (_initialize_frame_reg): Add declaration.
13257 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13258 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13259 * symfile.c (_initialize_symfile): Add declaration.
13260 * symmisc.c (_initialize_symmisc): Add declaration.
13261 * symtab.c (_initialize_symtab): Add declaration.
13262 * target.c (_initialize_target): Add declaration.
13263 * target-connection.c (_initialize_target_connection): Add
13265 * target-dcache.c (_initialize_target_dcache): Add declaration.
13266 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13267 * thread.c (_initialize_thread): Add declaration.
13268 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13269 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13270 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13271 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13272 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13273 * tracectf.c (_initialize_ctf): Add declaration.
13274 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13275 * tracefile.c (_initialize_tracefile): Add declaration.
13276 * tracepoint.c (_initialize_tracepoint): Add declaration.
13277 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13278 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13279 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13280 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13281 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13282 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13283 * tui/tui.c (_initialize_tui): Add declaration.
13284 * typeprint.c (_initialize_typeprint): Add declaration.
13285 * ui-style.c (_initialize_ui_style): Add declaration.
13286 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13287 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13288 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13289 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13290 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13291 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13292 * unittests/filtered_iterator-selftests.c
13293 (_initialize_filtered_iterator_selftests): Add declaration.
13294 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13295 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13296 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13297 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13298 * unittests/main-thread-selftests.c
13299 (_initialize_main_thread_selftests): Add declaration.
13300 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13301 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13302 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13303 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13304 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13305 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13306 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13307 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13308 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13309 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13310 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13311 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13312 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13313 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13314 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13316 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13317 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13318 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13319 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13320 * user-regs.c (_initialize_user_regs): Add declaration.
13321 * utils.c (_initialize_utils): Add declaration.
13322 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13323 * valops.c (_initialize_valops): Add declaration.
13324 * valprint.c (_initialize_valprint): Add declaration.
13325 * value.c (_initialize_values): Add declaration.
13326 * varobj.c (_initialize_varobj): Add declaration.
13327 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13328 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13329 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13330 * windows-nat.c (_initialize_windows_nat): Add declaration.
13331 (_initialize_check_for_gdb_ini): Add declaration.
13332 (_initialize_loadable): Add declaration.
13333 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13334 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13335 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13336 * xcoffread.c (_initialize_xcoffread): Add declaration.
13337 * xml-support.c (_initialize_xml_support): Add declaration.
13338 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13339 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13340 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13341 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13343 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13345 * regformats/regdat.sh: Generate declaration for init function.
13347 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13349 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13351 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13352 close_one_inferior>: New methods.
13353 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13354 pass down target to find_inferior_pid.
13355 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13356 Pass down target to find_inferior_ptid.
13357 (gdbsim_target::create_inferior): Pass down target to
13359 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13360 target down to find_inferior_ptid and switch_to_thread.
13361 (gdbsim_target::close): Update to call close_one_inferior.
13362 (struct resume_data): Remove.
13363 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13364 directly, rather than through a void pointer.
13365 (gdbsim_target::resume): Update to call resume_one_inferior.
13367 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13369 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13371 2020-01-12 Pedro Alves <palves@redhat.com>
13373 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13374 directly for the current inferior instead of
13375 discard_all_inferiors.
13376 (discard_all_inferiors): Delete.
13378 2020-01-11 Tom Tromey <tom@tromey.com>
13380 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13381 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13382 deprecated_safe_get_selected_frame.
13384 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13386 * inferior.c (print_inferior): Switch inferior before printing it.
13388 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13389 Pedro Alves <palves@redhat.com>
13391 * progspace-and-thread.c (switch_to_program_space_and_thread):
13392 Assert there's an inferior for PSPACE. Use
13393 switch_to_inferior_no_thread to switch the inferior too.
13394 * progspace.c (program_space::~program_space): Call
13395 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13396 (program_space::free_all_objfiles): Don't call clear_symtab_users
13398 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13400 2020-01-10 Pedro Alves <palves@redhat.com>
13402 * NEWS: Mention multi-target debugging, "info connections", and
13403 "add-inferior -no-connection".
13405 2020-01-10 Pedro Alves <palves@redhat.com>
13407 * infrun.c: Include "target-connection.h".
13408 (check_multi_target_resumption): New.
13409 (proceed): Call it.
13410 * target-connection.c (make_target_connection_string): Make
13412 * target-connection.h (make_target_connection_string): Declare.
13414 2020-01-10 Pedro Alves <palves@redhat.com>
13416 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13417 * inferior.c (uiout_field_connection): New function.
13418 (print_inferior): Add new "connection-id" column.
13419 (add_inferior_command): Show connection number/string of added
13421 * process-stratum-target.h
13422 (process_stratum_target::connection_string): New virtual method.
13423 (process_stratum_target::connection_number): New field.
13424 * remote.c (remote_target::connection_string): New override.
13425 * target-connection.c: New file.
13426 * target-connection.h: New file.
13427 * target.c (decref_target): Remove process_stratum targets from
13428 the connection list.
13429 (target_stack::push): Add process_stratum targets to the
13432 2020-01-10 Pedro Alves <palves@redhat.com>
13435 2016-04-12 Pedro Alves <palves@redhat.com>
13436 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13437 Remove references to name.
13438 * serial.h (struct serial) <name>: Delete.
13440 2020-01-10 Pedro Alves <palves@redhat.com>
13442 * gdbarch-selftests.c (register_to_value_test): Remove "target
13443 already pushed" check.
13445 2020-01-10 Pedro Alves <palves@redhat.com>
13446 John Baldwin <jhb@FreeBSD.org>
13448 * aarch64-linux-nat.c
13449 (aarch64_linux_nat_target::thread_architecture): Adjust.
13450 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13451 (task_command_1): Likewise.
13452 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13453 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13454 (aix_thread_target::store_registers)
13455 (aix_thread_target::thread_alive): Adjust.
13456 * amd64-fbsd-tdep.c: Include "inferior.h".
13457 (amd64fbsd_get_thread_local_address): Pass down target.
13458 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13459 thread's gdbarch instead of target_gdbarch.
13460 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13461 get_last_target_status.
13462 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13463 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13465 (update_inserted_breakpoint_locations): Skip if inferiors with no
13467 (update_global_location_list): When handling moribund locations,
13468 find representative inferior for location's pspace, and use thread
13469 count of its process_stratum target.
13470 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13471 * bsd-uthread.c (bsd_uthread_target::wait): Use
13472 as_process_stratum_target and adjust thread_change_ptid and
13474 (bsd_uthread_target::update_thread_list): Use
13475 as_process_stratum_target and adjust find_thread_ptid,
13476 thread_change_ptid and add_thread calls.
13477 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13478 find_thread_ptid call.
13479 * corelow.c (add_to_thread_list): Adjust add_thread call.
13480 (core_target_open): Adjust add_thread_silent and thread_count
13482 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13483 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13484 * event-top.c (async_disconnect): Pop targets from all inferiors.
13485 * exec.c (add_target_sections): Push exec target on all inferiors
13486 sharing the program space.
13487 (remove_target_sections): Remove the exec target from all
13488 inferiors sharing the program space.
13489 (exec_on_vfork): New.
13490 * exec.h (exec_on_vfork): Declare.
13491 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13493 (fbsd_nat_target::update_thread_list): Adjust.
13494 (fbsd_nat_target::resume): Adjust.
13495 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13497 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13498 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13499 get_thread_arch_regcache call.
13500 * fork-child.c (gdb_startup_inferior): Pass target down to
13501 startup_inferior and set_executing.
13502 * gdbthread.h (struct process_stratum_target): Forward declare.
13503 (add_thread, add_thread_silent, add_thread_with_info)
13504 (in_thread_list): Add process_stratum_target parameter.
13505 (find_thread_ptid(inferior*, ptid_t)): New overload.
13506 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13508 (all_threads()): Delete overload.
13509 (all_threads, all_non_exited_threads): Add process_stratum_target
13511 (all_threads_safe): Use brace initialization.
13512 (thread_count): Add process_stratum_target parameter.
13513 (set_resumed, set_running, set_stop_requested, set_executing)
13514 (threads_are_executing, finish_thread_state): Add
13515 process_stratum_target parameter.
13516 (switch_to_thread): Use is_current_thread.
13517 * i386-fbsd-tdep.c: Include "inferior.h".
13518 (i386fbsd_get_thread_local_address): Pass down target.
13519 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13520 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13521 have_inferiors check.
13522 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13523 (inf_ptrace_target::attach): Adjust.
13524 * infcall.c (run_inferior_call): Adjust.
13525 * infcmd.c (run_command_1): Pass target to
13526 scoped_finish_thread_state.
13527 (proceed_thread_callback): Skip inferiors with no execution.
13528 (continue_command): Rename 'all_threads' local to avoid hiding
13529 'all_threads' function. Adjust get_last_target_status call.
13530 (prepare_one_step): Adjust set_running call.
13531 (signal_command): Use user_visible_resume_target. Compare thread
13532 pointers instead of inferior_ptid.
13533 (info_program_command): Adjust to pass down target.
13534 (attach_command): Mark target's 'thread_executing' flag.
13535 (stop_current_target_threads_ns): New, factored out from ...
13536 (interrupt_target_1): ... this. Switch inferior before making
13539 (struct all_inferiors_iterator, struct all_inferiors_range)
13540 (struct all_inferiors_safe_range)
13541 (struct all_non_exited_inferiors_range): Filter on
13542 process_stratum_target too. Remove explicit.
13543 * inferior.c (inferior::inferior): Push dummy target on target
13545 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13546 Add process_stratum_target parameter, and pass it down.
13547 (have_live_inferiors): Adjust.
13548 (switch_to_inferior_and_push_target): New.
13549 (add_inferior_command, clone_inferior_command): Handle
13550 "-no-connection" parameter. Use
13551 switch_to_inferior_and_push_target.
13552 (_initialize_inferior): Mention "-no-connection" option in
13553 the help of "add-inferior" and "clone-inferior" commands.
13554 * inferior.h: Include "process-stratum-target.h".
13555 (interrupt_target_1): Use bool.
13556 (struct inferior) <push_target, unpush_target, target_is_pushed,
13557 find_target_beneath, top_target, process_target, target_at,
13559 (discard_all_inferiors): Delete.
13560 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13561 (all_inferiors, all_non_exited_inferiors): Add
13562 process_stratum_target parameter.
13563 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13564 (target_last_proc_target): New global.
13565 (follow_fork_inferior): Push target on new inferior. Pass target
13566 to add_thread_silent. Call exec_on_vfork. Handle target's
13568 (follow_fork): Adjust get_last_target_status call. Also consider
13570 (follow_exec): Push target on new inferior.
13571 (struct execution_control_state) <target>: New field.
13572 (user_visible_resume_target): New.
13573 (do_target_resume): Call target_async.
13574 (resume_1): Set target's threads_executing flag. Consider resume
13576 (commit_resume_all_targets): New.
13577 (proceed): Also consider resume target. Skip threads of inferiors
13578 with no execution. Commit resumtion in all targets.
13579 (start_remote): Pass current inferior to wait_for_inferior.
13580 (infrun_thread_stop_requested): Consider target as well. Pass
13581 thread_info pointer to clear_inline_frame_state instead of ptid.
13582 (infrun_thread_thread_exit): Consider target as well.
13583 (random_pending_event_thread): New inferior parameter. Use it.
13584 (do_target_wait): Rename to ...
13585 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13587 (threads_are_resumed_pending_p, do_target_wait): New.
13588 (prepare_for_detach): Adjust calls.
13589 (wait_for_inferior): New inferior parameter. Handle it. Use
13590 do_target_wait_1 instead of do_target_wait.
13591 (fetch_inferior_event): Adjust. Switch to representative
13592 inferior. Pass target down.
13593 (set_last_target_status): Add process_stratum_target parameter.
13594 Save target in global.
13595 (get_last_target_status): Add process_stratum_target parameter and
13597 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13598 (context_switch): Check inferior_ptid == null_ptid before calling
13600 (get_inferior_stop_soon): Pass down target.
13601 (wait_one): Rename to ...
13602 (poll_one_curr_target): ... this.
13603 (struct wait_one_event): New.
13605 (stop_all_threads): Adjust.
13606 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13608 (switch_back_to_stepped_thread): Also consider target.
13609 (print_stop_event): Update.
13610 (normal_stop): Update. Also consider the resume target.
13611 * infrun.h (wait_for_inferior): Remove declaration.
13612 (user_visible_resume_target): New declaration.
13613 (get_last_target_status, set_last_target_status): New
13614 process_stratum_target parameter.
13615 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13616 process_stratum_target parameter, and use it.
13617 (clear_inline_frame_state (thread_info*)): New.
13618 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13619 process_stratum_target parameter.
13620 (clear_inline_frame_state (thread_info*)): Declare.
13621 * linux-fork.c (delete_checkpoint_command): Pass target down to
13623 (checkpoint_command): Adjust.
13624 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13625 instead of just tweaking inferior_ptid.
13626 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13627 (exit_lwp): Pass target down to find_thread_ptid.
13628 (attach_proc_task_lwp_callback): Pass target down to
13629 add_thread/set_running/set_executing.
13630 (linux_nat_target::attach): Pass target down to
13631 thread_change_ptid.
13632 (get_detach_signal): Pass target down to find_thread_ptid.
13633 Consider last target status's target.
13634 (linux_resume_one_lwp_throw, resume_lwp)
13635 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13636 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13637 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13638 (linux_nat_target::async_wait_fd): New.
13639 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13641 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13642 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13643 * linux-thread-db.c (struct thread_db_info::process_target): New
13645 (add_thread_db_info): Save target.
13646 (get_thread_db_info): New process_stratum_target parameter. Also
13648 (delete_thread_db_info): New process_stratum_target parameter.
13650 (thread_from_lwp): Adjust to pass down target.
13651 (thread_db_notice_clone): Pass down target.
13652 (check_thread_db_callback): Pass down target.
13653 (try_thread_db_load_1): Always push the thread_db target.
13654 (try_thread_db_load, record_thread): Pass target down.
13655 (thread_db_target::detach): Pass target down. Always unpush the
13657 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13658 target down. Always unpush the thread_db target.
13659 (find_new_threads_callback, thread_db_find_new_threads_2)
13660 (thread_db_target::update_thread_list): Pass target down.
13661 (thread_db_target::pid_to_str): Pass current inferior down.
13662 (thread_db_target::get_thread_local_address): Pass target down.
13663 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13665 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13666 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13667 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13668 (procfs_init_inferior): Rename to ...
13669 (procfs_target::procfs_init_inferior): ... this and adjust.
13670 (procfs_target::create_inferior, procfs_notice_thread)
13671 (procfs_do_thread_registers): Adjust.
13672 * ppc-fbsd-tdep.c: Include "inferior.h".
13673 (ppcfbsd_get_thread_local_address): Pass down target.
13674 * proc-service.c (ps_xfer_memory): Switch current inferior and
13675 program space as well.
13676 (get_ps_regcache): Pass target down.
13677 * process-stratum-target.c
13678 (process_stratum_target::thread_address_space)
13679 (process_stratum_target::thread_architecture): Pass target down.
13680 * process-stratum-target.h
13681 (process_stratum_target::threads_executing): New field.
13682 (as_process_stratum_target): New.
13683 * ravenscar-thread.c
13684 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13685 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13687 * record-btrace.c (record_btrace_target::info_record): Adjust.
13688 (record_btrace_target::record_method)
13689 (record_btrace_target::record_is_replaying)
13690 (record_btrace_target::fetch_registers)
13691 (get_thread_current_frame_id, record_btrace_target::resume)
13692 (record_btrace_target::wait, record_btrace_target::stop): Pass
13694 * record-full.c (record_full_wait_1): Switch to event thread.
13696 * regcache.c (regcache::regcache)
13697 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13698 process_stratum_target parameter and handle it.
13699 (current_thread_target): New global.
13700 (get_thread_regcache): Add process_stratum_target parameter and
13701 handle it. Switch inferior before calling target method.
13702 (get_thread_regcache): Pass target down.
13703 (get_thread_regcache_for_ptid): Pass target down.
13704 (registers_changed_ptid): Add process_stratum_target parameter and
13706 (registers_changed_thread, registers_changed): Pass target down.
13707 (test_get_thread_arch_aspace_regcache): New.
13708 (current_regcache_test): Define a couple local test_target_ops
13709 instances and use them for testing.
13710 (readwrite_regcache): Pass process_stratum_target parameter.
13711 (cooked_read_test, cooked_write_test): Pass mock_target down.
13712 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13713 (get_thread_arch_aspace_regcache): Add process_stratum_target
13715 (regcache::target): New method.
13716 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13717 (regcache::registers_changed_ptid): Add process_stratum_target
13719 (regcache::m_target): New field.
13720 (registers_changed_ptid): Add process_stratum_target parameter.
13721 * remote.c (remote_state::supports_vCont_probed): New field.
13722 (remote_target::async_wait_fd): New method.
13723 (remote_unpush_and_throw): Add remote_target parameter.
13724 (get_current_remote_target): Adjust.
13725 (remote_target::remote_add_inferior): Push target.
13726 (remote_target::remote_add_thread)
13727 (remote_target::remote_notice_new_inferior)
13728 (get_remote_thread_info): Pass target down.
13729 (remote_target::update_thread_list): Skip threads of inferiors
13730 bound to other targets. (remote_target::close): Don't discard
13731 inferiors. (remote_target::add_current_inferior_and_thread)
13732 (remote_target::process_initial_stop_replies)
13733 (remote_target::start_remote)
13734 (remote_target::remote_serial_quit_handler): Pass down target.
13735 (remote_target::remote_unpush_target): New remote_target
13736 parameter. Unpush the target from all inferiors.
13737 (remote_target::remote_unpush_and_throw): New remote_target
13738 parameter. Pass it down.
13739 (remote_target::open_1): Check whether the current inferior has
13740 execution instead of checking whether any inferior is live. Pass
13742 (remote_target::remote_detach_1): Pass down target. Use
13743 remote_unpush_target.
13744 (extended_remote_target::attach): Pass down target.
13745 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13746 (remote_target::append_resumption): Pass down target.
13747 (remote_target::append_pending_thread_resumptions)
13748 (remote_target::remote_resume_with_hc, remote_target::resume)
13749 (remote_target::commit_resume): Pass down target.
13750 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13751 (remote_target::interrupt_query)
13752 (remote_target::remove_new_fork_children)
13753 (remote_target::check_pending_events_prevent_wildcard_vcont)
13754 (remote_target::remote_parse_stop_reply)
13755 (remote_target::process_stop_reply): Pass down target.
13756 (first_remote_resumed_thread): New remote_target parameter. Pass
13758 (remote_target::wait_as): Pass down target.
13759 (unpush_and_perror): New remote_target parameter. Pass it down.
13760 (remote_target::readchar, remote_target::remote_serial_write)
13761 (remote_target::getpkt_or_notif_sane_1)
13762 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13764 (remote_target::mourn_inferior): Pass down target. Use
13765 remote_unpush_target.
13766 (remote_target::core_of_thread)
13767 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13768 (remote_target::pid_to_exec_file)
13769 (remote_target::thread_handle_to_thread_info): Pass down target.
13770 (remote_target::async_wait_fd): New.
13771 * riscv-fbsd-tdep.c: Include "inferior.h".
13772 (riscv_fbsd_get_thread_local_address): Pass down target.
13773 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13774 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13775 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13777 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13778 * solib-svr4.c (enable_break): Pass down target.
13779 * spu-multiarch.c (parse_spufs_run): Pass down target.
13780 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13781 * target-delegates.c: Regenerate.
13782 * target.c (g_target_stack): Delete.
13783 (current_top_target): Return the current inferior's top target.
13784 (target_has_execution_1): Refer to the passed-in inferior's top
13786 (target_supports_terminal_ours): Check whether the initial
13787 inferior was already created.
13788 (decref_target): New.
13789 (target_stack::push): Incref/decref the target.
13790 (push_target, push_target, unpush_target): Adjust.
13791 (target_stack::unpush): Defref target.
13792 (target_is_pushed): Return bool. Adjust to refer to the current
13793 inferior's target stack.
13794 (dispose_inferior): Delete, and inline parts ...
13795 (target_preopen): ... here. Only dispose of the current inferior.
13796 (target_detach): Hold strong target reference while detaching.
13798 (target_thread_name): Add assertion.
13799 (target_resume): Pass down target.
13800 (target_ops::beneath, find_target_at): Adjust to refer to the
13801 current inferior's target stack.
13802 (get_dummy_target): New.
13803 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13804 has a thread running.
13805 (initialize_targets): Rename to ...
13806 (_initialize_target): ... this.
13807 * target.h: Include "gdbsupport/refcounted-object.h".
13808 (struct target_ops): Inherit refcounted_object.
13809 (target_ops::shortname, target_ops::longname): Make const.
13810 (target_ops::async_wait_fd): New method.
13811 (decref_target): Declare.
13812 (struct target_ops_ref_policy): New.
13813 (target_ops_ref): New typedef.
13814 (get_dummy_target): Declare function.
13815 (target_is_pushed): Return bool.
13816 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13817 (all_matching_threads_iterator::all_matching_threads_iterator):
13818 Handle filter target.
13819 * thread-iter.h (struct all_matching_threads_iterator, struct
13820 all_matching_threads_range, class all_non_exited_threads_range):
13821 Filter by target too. Remove explicit.
13822 * thread.c (threads_executing): Delete.
13823 (inferior_thread): Pass down current inferior.
13824 (clear_thread_inferior_resources): Pass down thread pointer
13826 (add_thread_silent, add_thread_with_info, add_thread): Add
13827 process_stratum_target parameter. Use it for thread and inferior
13829 (is_current_thread): New.
13830 (thread_info::deletable): Use it.
13831 (find_thread_ptid, thread_count, in_thread_list)
13832 (thread_change_ptid, set_resumed, set_running): New
13833 process_stratum_target parameter. Pass it down.
13834 (set_executing): New process_stratum_target parameter. Pass it
13835 down. Adjust reference to 'threads_executing'.
13836 (threads_are_executing): New process_stratum_target parameter.
13837 Adjust reference to 'threads_executing'.
13838 (set_stop_requested, finish_thread_state): New
13839 process_stratum_target parameter. Pass it down.
13840 (switch_to_thread): Also match inferior.
13841 (switch_to_thread): New process_stratum_target parameter. Pass it
13843 (update_threads_executing): Reimplement.
13844 * top.c (quit_force): Pop targets from all inferior.
13845 (gdb_init): Don't call initialize_targets.
13846 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13848 (windows_add_thread, windows_delete_thread): Adjust.
13849 (get_windows_debug_event): Rename to ...
13850 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13851 * tracefile-tfile.c (tfile_target_open): Pass down target.
13852 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13854 (switch_to_thread): Add process_stratum_target parameter.
13855 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13857 (mi_on_resume): Pass target down.
13858 * nat/fork-inferior.c (startup_inferior): Add
13859 process_stratum_target parameter. Pass it down.
13860 * nat/fork-inferior.h (startup_inferior): Add
13861 process_stratum_target parameter.
13862 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13864 2020-01-10 Pedro Alves <palves@redhat.com>
13866 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13867 directly. Instead find the first thread in the thread list and
13868 use switch_to_thread.
13870 2020-01-10 Pedro Alves <palves@redhat.com>
13872 * remote.c (remote_target::remote_add_inferior): Don't bind a
13873 process to the current inferior if the current inferior is already
13874 bound to a process.
13876 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13877 Pedro Alves <palves@redhat.com>
13879 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13880 If no process is specified, return null_ptid instead of
13882 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13883 TARGET_WAITKIND_SIGNALLED with no pid.
13885 2020-01-10 Pedro Alves <palves@redhat.com>
13887 * remote.c (first_remote_resumed_thread): New.
13888 (remote_target::wait_as): Use it as default event_ptid instead of
13891 2020-01-10 Pedro Alves <palves@redhat.com>
13893 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13895 2020-01-10 Pedro Alves <palves@redhat.com>
13897 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13900 2020-01-10 Pedro Alves <palves@redhat.com>
13902 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13903 ptid to get_last_target_status.
13904 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13905 ptid to get_last_target_status.
13906 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13907 get_last_target_status.
13908 (info_program_command): Don't pass a target_waitstatus to
13909 get_last_target_status.
13910 * infrun.c (init_wait_for_inferior): Use
13911 nullify_last_target_wait_ptid.
13912 (get_last_target_status): Handle nullptr arguments.
13913 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13914 (print_stop_event): Don't pass a ptid to get_last_target_status.
13915 (normal_stop): Don't pass a ptid to get_last_target_status.
13916 * infrun.h (get_last_target_status, set_last_target_status): Move
13917 comments here and update.
13918 (nullify_last_target_wait_ptid): Declare.
13919 * linux-fork.c (fork_load_infrun_state): Remove local extern
13920 declaration of nullify_last_target_wait_ptid.
13921 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13922 to get_last_target_status.
13924 2020-01-10 Pedro Alves <palves@redhat.com>
13926 * gdbthread.h (scoped_restore_current_thread)
13927 <dont_restore, restore, m_dont_restore>: Declare.
13928 * thread.c (thread_alive): Add assertion. Return bool.
13929 (switch_to_thread_if_alive): New.
13930 (prune_threads): Switch inferior/thread.
13931 (print_thread_info_1): Switch thread before calling target methods.
13932 (scoped_restore_current_thread::restore): New, factored out from
13934 (scoped_restore_current_thread::~scoped_restore_current_thread):
13936 (scoped_restore_current_thread::scoped_restore_current_thread):
13938 (thread_apply_all_command, thread_select): Use
13939 switch_to_thread_if_alive.
13940 * infrun.c (proceed, restart_threads, handle_signal_stop)
13941 (switch_back_to_stepped_thread): Switch current thread before
13942 calling target methods.
13944 2020-01-10 Pedro Alves <palves@redhat.com>
13946 * inferior.c (switch_to_inferior_no_thread): New function,
13947 factored out from ...
13948 (inferior_command): ... here.
13949 * inferior.h (switch_to_inferior_no_thread): Declare.
13950 * mi/mi-main.c (run_one_inferior): Use
13951 switch_to_inferior_no_thread.
13953 2020-01-10 Pedro Alves <palves@redhat.com>
13955 * infcmd.c (kill_command): Remove dead code.
13957 2020-01-10 Pedro Alves <palves@redhat.com>
13959 * remote.c (remote_target::mourn_inferior): No longer check
13960 whether the target is running.
13962 2020-01-10 Pedro Alves <palves@redhat.com>
13964 * corelow.c (core_target::has_execution): Change parameter type to
13966 * inferior.c (number_of_live_inferiors): Use
13967 inferior::has_execution instead of target_has_execution_1.
13968 * inferior.h (inferior::has_execution): New.
13969 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13970 inferior::has_execution instead of target_has_execution_1.
13971 * process-stratum-target.c
13972 (process_stratum_target::has_execution): Change parameter type to
13973 inferior pointer. Check the inferior's PID instead of
13975 * process-stratum-target.h
13976 (process_stratum_target::has_execution): Change parameter type to
13978 * record-full.c (record_full_core_target::has_execution): Change
13979 parameter type to inferior pointer.
13980 * target.c (target_has_execution_1): Change parameter type to
13982 (target_has_execution_current): Adjust.
13983 * target.h (target_ops::has_execution): Change parameter type to
13985 (target_has_execution_1): Change parameter type to inferior
13986 pointer. Change return type to bool.
13987 * tracefile.h (tracefile_target::has_execution): Change parameter
13988 type to inferior pointer.
13990 2020-01-10 Pedro Alves <palves@redhat.com>
13992 * exceptions.c (print_flush): Remove current_top_target() check.
13994 2020-01-10 Pedro Alves <palves@redhat.com>
13996 * remote.c (show_remote_exec_file): Show the current inferior's
13997 exec-file instead of the command variable's value.
13999 2020-01-10 Pedro Alves <palves@redhat.com>
14001 * record-full.c (record_full_resume_ptid): New global.
14002 (record_full_target::resume): Set it.
14003 (record_full_wait_1): Use record_full_resume_ptid instead of
14006 2020-01-10 Pedro Alves <palves@redhat.com>
14008 * gdbthread.h (scoped_restore_current_thread)
14009 <dont_restore, restore, m_dont_restore>: Declare.
14010 * thread.c (thread_alive): Add assertion. Return bool.
14011 (switch_to_thread_if_alive): New.
14012 (prune_threads): Switch inferior/thread.
14013 (print_thread_info_1): Switch thread before calling target methods.
14014 (scoped_restore_current_thread::restore): New, factored out from
14016 (scoped_restore_current_thread::~scoped_restore_current_thread):
14018 (scoped_restore_current_thread::scoped_restore_current_thread):
14020 (thread_apply_all_command, thread_select): Use
14021 switch_to_thread_if_alive.
14023 2020-01-10 George Barrett <bob@bob131.so>
14025 * stap-probe.c (stap_modify_semaphore): Don't check for null
14027 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
14028 for null semaphores.
14030 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14032 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
14033 all source windows, and maintain horizontal scroll status while
14036 2020-01-09 Tom Tromey <tom@tromey.com>
14039 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
14040 update_source_window, not print_source_lines.
14042 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14044 * tui/tui.c (tui_enable): Register tui hooks after calling
14047 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14049 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
14051 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
14053 * thread.c (print_thread_info_1): Fix indentation.
14055 2020-01-09 Christian Biesinger <cbiesinger@google.com>
14057 * symtab.c (general_symbol_info::compute_and_set_names): Move the
14058 unique_xmalloc_ptr outside the if to always free the demangled name.
14060 2020-01-08 Tom Tromey <tromey@adacore.com>
14062 * xcoffread.c (enter_line_range, read_xcoff_symtab)
14063 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
14064 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
14065 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
14067 (section_offsets): New typedef.
14068 * symtab.c (fixup_section, get_msymbol_address): Update.
14069 * symmisc.c (dump_msymbols): Update.
14070 * symfile.h (relative_addr_info_to_section_offsets)
14071 (symfile_map_offsets_to_segments): Update.
14072 * symfile.c (build_section_addr_info_from_objfile)
14073 (init_objfile_sect_indices): Update.
14074 (struct place_section_arg): Change type of "offsets".
14075 (place_section): Update.
14076 (relative_addr_info_to_section_offsets): Change type of
14077 "section_offsets". Remove "num_sections" parameter.
14078 (default_symfile_offsets, syms_from_objfile_1)
14079 (set_objfile_default_section_offset): Update.
14080 (reread_symbols): No need to preserve section offsets by hand.
14081 (symfile_map_offsets_to_segments): Change type of "offsets".
14082 * stap-probe.c (relocate_address): Update.
14083 * stabsread.h (process_one_symbol): Update.
14084 * solib-target.c (struct lm_info_target) <offsets>: Change type.
14085 (solib_target_relocate_section_addresses): Update.
14086 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
14088 * solib-frv.c (frv_relocate_main_executable): Update.
14089 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
14090 * solib-aix.c (solib_aix_get_section_offsets): Change return
14092 (solib_aix_solib_create_inferior_hook): Update.
14093 * remote.c (remote_target::get_offsets): Update.
14094 * psymtab.c (find_pc_sect_psymtab): Update.
14095 * psympriv.h (struct partial_symbol) <address, text_low,
14096 text_high>: Update.
14097 * objfiles.h (obj_section_offset): Update.
14098 (struct objfile) <section_offsets>: Change type.
14099 <num_sections>: Remove.
14100 (objfile_relocate): Update.
14101 * objfiles.c (entry_point_address_query): Update
14102 (relocate_one_symbol): Change type of "section_offsets".
14103 (objfile_relocate1, objfile_relocate1): Change type of
14105 (objfile_rebase1): Update.
14106 * mipsread.c (mipscoff_symfile_read): Update.
14107 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
14109 * mdebugread.c (parse_symbol): Change type of "section_offsets".
14110 (parse_external, psymtab_to_symtab_1): Update.
14111 * machoread.c (macho_symfile_offsets): Update.
14112 * ia64-tdep.c (ia64_find_unwind_table): Update.
14113 * hppa-tdep.c (read_unwind_info): Update.
14114 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
14115 * dwarf2read.c (create_addrmap_from_index)
14116 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
14117 (process_psymtab_comp_unit_reader, add_partial_symbol)
14118 (add_partial_subprogram, process_full_comp_unit)
14119 (read_file_scope, read_func_scope, read_lexical_block_scope)
14120 (read_call_site_scope, dwarf2_rnglists_process)
14121 (dwarf2_ranges_process, dwarf2_ranges_read)
14122 (dwarf_decode_lines_1, var_decode_location, new_symbol)
14123 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
14125 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
14127 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
14128 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
14129 (process_one_symbol): Change type of "section_offsets".
14130 * ctfread.c (get_objfile_text_range): Update.
14131 * coffread.c (coff_symtab_read, enter_linenos)
14132 (process_coff_symbol): Update.
14133 * coff-pe-read.c (add_pe_forwarded_sym): Update.
14134 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
14136 2020-01-08 Tom Tromey <tromey@adacore.com>
14138 * dwarf2read.c (parse_macro_definition): Use std::string.
14139 (parse_macro_definition): Likewise.
14141 2020-01-08 Tom Tromey <tromey@adacore.com>
14143 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
14144 (ATTR_ALLOC_CHUNK): Remove.
14146 2020-01-08 Tom Tromey <tromey@adacore.com>
14148 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
14150 2020-01-08 Tom Tromey <tromey@adacore.com>
14152 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
14153 (dwarf2_compute_name, open_dwo_file): Likewise.
14154 (process_enumeration_scope): Use std::vector.
14155 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
14156 (partial_die_info::fixup, dwarf2_start_subfile)
14157 (guess_full_die_structure_name, dwarf2_name): Likewise.
14158 (determine_prefix): Update.
14159 (guess_full_die_structure_name): Make return type const.
14160 (partial_die_full_name): Return unique_xmalloc_ptr.
14161 (DW_FIELD_ALLOC_CHUNK): Remove.
14163 2020-01-07 Tom Tromey <tromey@adacore.com>
14166 * stap-probe.c (class stap_static_probe_ops): Add constructor.
14168 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14170 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
14172 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
14174 * stack.c (print_frame_info): Move disassemble_next_line code
14175 inside source_print block.
14177 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14179 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
14180 gdb/signals.h, as we are now using native signal symbols.
14182 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14184 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
14185 overflow by an early check of content vs threshold.
14186 * tui/tui-source.c (tui_source_window::line_is_displayed):
14189 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14191 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
14193 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
14195 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
14196 export table if no section contains it's RVA.
14198 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14200 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14202 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
14204 * source.c (print_source_lines_base): Set last_line_listed.
14206 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
14208 * tui/tui-disasm.c: Remove trailing spaces.
14210 2020-01-06 Eli Zaretskii <eliz@gnu.org>
14211 Pedro Alves <palves@redhat.com>
14213 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14214 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14215 (windows_gdb_signal_to_target): New function, uses the above
14216 enumeration to convert GDB internal signal codes to equivalent
14218 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14219 * windows-nat.c: Include "gdb_wait.h".
14220 (get_windows_debug_event): Extract the fatal exception from the
14221 exit status and convert to the equivalent Posix signal number.
14222 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14223 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14224 * gdbsupport/gdb_wait.c: New file, implements
14225 windows_status_to_termsig.
14226 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14227 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14229 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14231 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14234 2020-01-05 Luis Machado <luis.machado@linaro.org>
14236 * aarch64-linux-nat.c
14237 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14238 and bfd_mach_aarch64.
14240 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14242 * ui-file.c (stdio_file::can_emit_style_escape)
14243 (tee_file::can_emit_style_escape): Ensure style is used also on
14244 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14246 * main.c (set_gdb_data_directory): Use file style to output the
14247 warning that the given pathname is not a directory.
14248 * top.c (show_history_filename, gdb_safe_append_history)
14249 (show_gdb_datadir): Use file style.
14251 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14253 * solib-target.c (struct lm_info_target):
14254 Change offsets to be a unique_xmalloc_ptr.
14255 (solib_target_relocate_section_addresses): Update.
14257 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
14259 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14261 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14263 * MAINTAINERS (Write After Approval): Add myself.
14265 2020-01-02 Luis Machado <luis.machado@linaro.org>
14267 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14268 Cell BE architecture.
14269 * target.h (struct target_ops) <thread_architecture>: Likewise.
14271 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14273 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14275 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
14277 * MAINTAINERS (Write After Approval): Add myself.
14279 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14281 * gdbarch.sh: Update copyright year range of generated files.
14283 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14285 Update copyright year range in all GDB files.
14287 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14289 * copyright.py: Convert to Python 3.
14291 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14293 * copyright.py: Adapt after move of gnulib directory from gdb
14294 directory to toplevel directory.
14296 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14298 * copyright.py (main): Exit if run from the wrong directory.
14300 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14302 * top.c (print_gdb_version): Change copyright year to 2020.
14304 2020-01-01 Joel Brobecker <brobecker@adacore.com>
14306 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
14308 For older changes see ChangeLog-2019.
14314 version-control: never