1 2021-08-06 Simon Marchi <simon.marchi@polymtl.ca>
2 Tom de Vries <tdevries@suse.de>
5 * dwarf2/read.c (dwarf2_rnglists_process, dwarf2_ranges_process):
6 Fix zero address complaint.
8 2021-08-02 Tom Tromey <tromey@adacore.com>
11 * varobj.c (~varobj): Delete 'dynamic' before 'root'.
13 2021-08-02 Shahab Vahedi <shahab@synopsys.com>
16 * gdbtypes.c (gdbtypes_post_init): Use
17 "arch_boolean_type (..., unsigned=1, ...) to construct
19 cp-valprint.c (test_print_flags): New.
20 (_initialize_cp_valprint): Run the "test_print_flags" unit-test.
22 2021-07-28 Tom de Vries <tdevries@suse.de>
24 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_FORM_data16.
26 2021-07-27 Tom de Vries <tdevries@suse.de>
29 * gdb/testsuite/gdb.ada/big_packed_array.exp: Add xfail.
31 2021-07-27 Tom de Vries <tdevries@suse.de>
34 * gdb/testsuite/gdb.ada/array_of_variant.exp: Add xfails.
36 2021-07-26 Frederic Cambus <fred@statdns.com>
38 * syscalls/netbsd.xml: Regenerate.
40 2021-07-26 Shahab Vahedi <shahab@synopsys.com>
41 Simon Marchi <simon.marchi@efficios.com>
44 * valprint.c (val_print_type_code_flags): Merely shift the VAL
45 to the right to get rid of the lower bits.
46 (test_print_flags): New.
47 (_initialize_valprint): Invoke the "test_print_flags" as a unit-test.
49 2021-07-26 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
52 * mi/mi-cmd-break.c (mi_cmd_break_condition): Handle the case
53 of having no condition argument.
55 2021-07-20 Luis Machado <luis.machado@linaro.org>
56 Pedro Alves <pedro@palves.net>
59 * gdbarch.sh: Updated documentation for gdbarch_tagged_address_p.
60 * gdbarch.h: Regenerate.
61 * printcmd.c (should_validate_memtags): Reorder comparisons and only
62 validate tags for pointer and reference types. Skip validation of
63 optimized out or unavailable values.
64 (print_command_1): Guard call memory tagging validation code with
67 2021-07-19 Tom Tromey <tromey@adacore.com>
70 * language.c (auto_or_unknown_language::parser): Call error.
72 2021-07-17 Sergey Belyashov <Sergey.Belyashov@gmail.com>
74 * Makefile.in (ALL_TARGET_OBS): Add z80-tdep.c.
75 * NEWS: Mention z80 support.
76 * configure.tgt: Handle z80*.
77 * features/Makefile (XMLTOC): Add z80.xml.
78 * features/z80-cpu.xml: New.
79 * features/z80.c: Generate.
80 * features/z80.xml: New.
81 * z80-tdep.c: New file.
82 * z80-tdep.h: New file.
84 2021-07-13 Lancelot Six <lsix@lancelotsix.com>
86 * make-init-c: Use /bin/sh as shebang.
88 2021-07-13 Pedro Alves <pedro@palves.net>
91 * gdb_bfd.c (gdb_bfd_close_warning): New.
92 (gdb_bfd_iovec_fileio_close): Wrap target_fileio_close in
93 try/catch and print warning on exception.
94 (gdb_bfd_close_or_warn): Use gdb_bfd_close_warning.
96 2021-07-13 Pedro Alves <pedro@palves.net>
99 * remote.c (remote_unpush_target): Invalidate file I/O target
101 * target.c (fileio_handles_invalidate_target): Make extern.
102 * target.h (fileio_handles_invalidate_target): Declare.
104 2021-07-13 Simon Marchi <simon.marchi@polymtl.ca>
106 * mi/mi-main.c (mi_cmd_exec_interrupt): Use
107 scoped_disable_commit_resumed in the --thread-group case.
109 2021-07-13 John Ericson <git@JohnEricson.me>
111 * sparc-tdep.h: Fix comment.
112 * netbsd-tdep.c (nbsd_info_proc_mappings_header): Fix comment.
113 (nbsd_init_abi): Fix comment.
114 * configure.tgt (*-*-netbsd* | *-*-knetbsd*-gnu): Fix netbsd
116 (alpha*-*-openbsd*): Likewise.
117 (sparc-*-openbsd*): Likewise.
118 (sparc64-*-openbsd*): Likewise.
120 2021-07-11 Tom Tromey <tom@tromey.com>
122 Committed by Joel Brobecker <brobecker@adacore.com>:
123 * gdb/symtab.c (info_sources_filter::matches): Add default
124 case hander in switch statement.
126 2021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
128 * s390-linux-tdep.c (s390_linux_init_abi_any): Pass 1 (number
129 of displaced stepping buffers to linux_init_abi.
130 * s390-tdep.c (s390_gdbarch_init): Don't set the Linux-specific
131 displaced-stepping gdbarch callbacks.
133 2021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
135 * Makefile.in (SUBDIRS): Remove testsuite.
137 2021-07-06 Simon Marchi <simon.marchi@polymtl.ca>
139 * configure.ac: Remove things that were moved from
140 testsuite/configure.ac.
141 * configure: Re-generate.
143 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
145 * config.in, configure: Re-generate.
147 2021-07-04 Simon Marchi <simon.marchi@polymtl.ca>
149 * solib-darwin.c (darwin_solib_create_inferior_hook): Return
150 early if no execution.
152 2021-07-03 Joel Brobecker <brobecker@adacore.com>
154 * version.in: Set GDB version number to 11.0.90.DATE-git.
156 2021-07-03 Joel Brobecker <brobecker@adacore.com>
158 GDB 11.0.90 released.
160 2021-07-03 Joel Brobecker <brobecker@adacore.com>
162 * version.in: Set GDB version number to 11.0.90.
164 2021-07-03 Joel Brobecker <brobecker@adacore.com>
166 * NEWS: Replace "Changes since GDB 10" by "Changes in GDB 11".
168 2021-07-03 Joel Brobecker <brobecker@adacore.com>
170 GDB 11 branch created (4b51505e33441c6165e7789fa2b6d21930242927):
171 * version.in: Bump version to 11.0.90.DATE-git.
173 2021-07-02 Tom Tromey <tromey@adacore.com>
175 * ada-exp.y (chop_selector, chop_separator, write_selectors)
176 (write_ambiguous_var, get_symbol_field_type): Use const.
178 2021-07-02 Pedro Alves <pedro@palves.net>
179 Hannes Domani <ssbssa@yahoo.de>
181 * NEWS: Add new "TUI Improvements" section and mention mouse
182 support and that unrecognized special keys are now passed to
183 GDB. Mention Python Window.click in the Python improvements
186 2021-07-01 Pedro Alves <pedro@palves.net>
190 * linux-nat.c (linux_nat_target::detach): Close the
191 /proc/<pid>/mem file if it was open for this process.
192 (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: Close the
193 /proc/<pid>/mem file if it was open for this process.
194 (linux_nat_target::mourn_inferior): Close the /proc/<pid>/mem file
195 if it was open for this process.
196 (linux_nat_target::xfer_partial): Adjust. Do not fall back to
197 inf_ptrace_target::xfer_partial for memory accesses.
198 (last_proc_mem_file): New.
199 (maybe_close_proc_mem_file): New.
200 (linux_proc_xfer_memory_partial_pid): New, with bits factored out
201 from linux_proc_xfer_partial.
202 (linux_proc_xfer_partial): Delete.
203 (linux_proc_xfer_memory_partial): New.
205 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
207 * frame.h (FRAME_SCOPED_DEBUG_ENTER_EXIT): New.
208 * frame.c (compute_frame_id, get_prev_frame_always_1,
209 get_prev_frame): Use FRAME_SCOPED_DEBUG_ENTER_EXIT.
210 * frame-unwind.c (frame_unwind_find_by_frame): Likewise.
211 (frame_unwind_register_value): Likewise.
213 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
215 * frame-unwind.h (struct frame_unwind) <name>: New. Update
216 instances everywhere to include this field.
217 * frame-unwind.c (frame_unwind_try_unwinder,
218 frame_unwind_find_by_frame): Add debug messages.
220 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
222 * frame.h (frame_debug_printf): New.
223 * frame.c: Use frame_debug_printf throughout when printing frame
225 * amd64-windows-tdep.c: Likewise.
228 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
230 * frame.h (frame_debug): Change type to bool.
231 * frame.c (frame_debug): Change type to bool.
232 (_initialize_frame): Adjust.
234 2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
236 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
238 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
241 * machoread.c (macho_symfile_offsets): Use
242 gdb_bfd_count_sections to allocate objfile::section_offsets.
244 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
246 * objfiles.h (struct obj_section): Move down.
247 <offset, set_offset, addr, endaddr>: New.
248 (obj_section_offset, obj_section_addr, obj_section_endaddr),
249 replace all users to use obj_section methods.
250 (struct objfile) <section_offset, set_section_offset>: New.
252 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
254 * objfiles.h (struct obj_section): Move down.
255 <offset, set_offset, addr, endaddr>: New.
256 (obj_section_offset, obj_section_addr, obj_section_endaddr),
257 replace all users to use obj_section methods.
258 (struct objfile) <section_offset, set_section_offset>: New.
260 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
264 2021-06-28 Luis Machado <luis.machado@linaro.org>
266 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
268 (aarch64_linux_set_memtags): Likewise.
269 (aarch64_linux_get_memtag): Likewise.
270 (aarch64_linux_report_signal_info): Likewise.
272 2021-06-28 Luis Machado <luis.machado@linaro.org>
274 * aarch64-linux-tdep.c
275 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
277 2021-06-28 Luis Machado <luis.machado@linaro.org>
279 * aarch64-linux-tdep.c
280 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
282 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
283 8 and update comments.
285 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
287 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
289 * gdbarch.h: Re-generate.
290 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
291 * arch-utils.c (gdbarch_info_init): Remove.
293 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
295 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
296 (gdbarch_find_by_info): Remove print.
297 * gdbarch.c, gdbarch.h: Re-generate.
299 2021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
301 * remote.c (remote_target::start_remote): Set 'starting_up' using
302 boolean values instead of integers.
304 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
306 * guile/scm-param.c (struct param_smob) <set_command,
307 show_command>: Remove.
309 (pascm_is_valid): Adjust.
310 (add_setshow_generic): Use return values of add_setshow
311 functions, return a set_show_commands.
312 (gdbscm_register_parameter_x): Adjust.
314 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
316 * command.h (add_setshow_enum_cmd): Remove context parameter.
317 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
319 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
322 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
324 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
327 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
329 * cli/cli-decode.h (struct cmd_list_element) <set_context,
331 <context>: Rename to...
332 <m_context>: ... this.
333 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
334 * command.h (set_cmd_context, get_cmd_context): Remove, use
335 cmd_list_element::set_context and cmd_list_element::context
338 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
340 * NEWS: Mention changes to 'info sources'.
341 * symtab.c (info_sources_filter::print): Delete.
342 (struct output_source_filename_data) <print_header>: Delete
343 declaration. <printed_filename_p>: New member function.
344 (output_source_filename_data::print_header): Delete.
345 (info_sources_worker): Update group-by-objfile style output to
346 make it CLI suitable, simplify non-group-by-objfile now this is
347 only used from the MI.
348 (info_sources_command): Make group-by-objfile be the default for
349 CLI info sources command.
350 * symtab.h (struct info_sources_filter) <print>: Delete.
352 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
354 * NEWS: Mention additions to -file-list-exec-source-files.
355 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
356 --group-by-objfile option.
357 * symtab.c (isrc_flag_option_def): Rename to...
358 (isrc_match_flag_option_def): ...this.
359 (info_sources_option_defs): Rename to...
360 (info_sources_match_option_defs): ...this, and update to rename of
361 isrc_flag_option_def.
362 (struct filename_grouping_opts): New struct.
363 (isrc_grouping_flag_option_def): New type.
364 (info_sources_grouping_option_defs): New static global.
365 (make_info_sources_options_def_group): Update to return two option
367 (info_sources_command_completer): Update for changes to
368 make_info_sources_options_def_group.
369 (info_sources_worker): Add extra parameter, use this to display
370 alternative output format.
371 (info_sources_command): Pass extra parameter to
373 (_initialize_symtab): Update for changes to
374 make_info_sources_options_def_group.
375 * symtab.h (info_sources_worker): Add extra parameter.
377 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
379 * NEWS: Mention additions to -file-list-exec-source-files.
380 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
381 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
382 options, and make use of info_sources_worker.
383 * symtab.c (struct info_sources_filter): Moved to symtab.h.
384 (info_sources_filter::print): Take uiout argument, produce output
386 (struct output_source_filename_data)
387 <output_source_filename_data>: Take uiout argument, store into
388 m_uiout. <output>: Rewrite comment, add additional arguments to
389 declaration. <operator()>: Send more arguments to
390 output. <m_uiout>: New member variable.
391 (output_source_filename_data::output): Take extra arguments,
392 produce output through m_uiout, and structure for MI.
393 (output_source_filename_data::print_header): Produce output
395 (info_sources_worker): New function, the implementation is taken
396 from info_sources_command, but modified so produce output through
398 (info_sources_command): The second half of this function has gone
399 to become info_sources_worker.
400 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
401 extra parameter to print member function.
402 (info_sources_worker): Declare.
404 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
406 * symtab.c (struct info_sources_filter): New.
407 (info_sources_filter::info_sources_filter): New function.
408 (info_sources_filter::matches): New function.
409 (info_sources_filter::print): New function.
410 (struct filename_partial_match_opts): Moved to later in the file
411 and update the comment.
412 (struct output_source_filename_data)
413 <output_source_filename_data>: New constructor. <regexp>: Delete,
414 this is now in info_sources_filter. <c_regexp>: Delete, this is
415 now in info_sources_filter. <reset_output>: New member function.
416 <filename_seen_cache>: Rename to m_filename_seen_cache, change
417 from being a pointer, to being an actual object. <first>: Rename
418 to m_first. <print_header>: New member function. <partial_match>:
420 (output_source_filename_data::output): Update now
421 m_filename_seen_cache is no longer a pointer, and for other member
422 variable name changes. Add a header comment.
423 (print_info_sources_header): Renamed to...
424 (output_source_filename_data::print_header): ...this. Update now
425 it's a member function and to take account of member variable
427 (info_sources_command): Add a header comment, delete stack local
428 filename_seen_cache, initialization of output_source_filename_data
429 is now done by the constructor. Call print_header member function
430 instead of print_info_sources_header, call reset_output member
431 function instead of manually performing the reset.
433 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
435 * dwarf2/read.c (struct dwarf2_base_index_functions)
436 <has_unexpanded_symtabs>: Declare.
437 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
439 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
440 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
442 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
444 * quick-symbol.h (struct quick_symbol_functions)
445 <has_unexpanded_symtabs>: Declare.
446 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
449 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
451 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
452 setting prototyped flag.
454 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
456 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
457 an empty gdb::optional when calling value_struct_elt.
458 (desc_data): Likewise.
459 (desc_one_bound): Likewise.
460 * eval.c (structop_base_operation::evaluate_funcall): Pass
461 gdb::array_view, not a gdb::array_view* to value_struct_elt.
462 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
463 an empty gdb::optional when calling value_struct_elt.
464 (eval_op_structop_ptr): Likewise.
465 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
466 * guile/scm-value.c (gdbscm_value_field): Likewise.
467 * m2-lang.c (eval_op_m2_high): Likewise.
468 (eval_op_m2_subscript): Likewise.
469 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
470 * python/py-value.c (valpy_getitem): Likewise.
471 * rust-lang.c (rust_val_print_str): Likewise.
472 (rust_range): Likewise.
473 (rust_subscript): Likewise.
474 (eval_op_rust_structop): Likewise.
475 (rust_aggregate_operation::evaluate): Likewise.
476 * valarith.c (value_user_defined_op): Likewise.
477 * valops.c (search_struct_method): Change parameter type, update
478 function body accordingly, and update header comment.
479 (value_struct_elt): Change parameter type, update function body
481 * value.h (value_struct_elt): Update declaration.
483 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
486 * eval.c (structop_base_operation::evaluate_funcall): Pass
487 array_view instead of array to value_struct_elt.
488 * valarith.c (value_user_defined_op): Likewise.
489 * valops.c (typecmp): Change parameter type from array pointer to
490 array_view. Update header comment, and update body accordingly.
491 (search_struct_method): Likewise.
492 (value_struct_elt): Likewise.
493 * value.h (value_struct_elt): Update declaration.
495 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
498 * eval.c (structop_base_operation::evaluate_funcall): Add a
499 nullptr to the end of the args array, which should not be included
500 in the argument array_view. Pass all the arguments through to
502 * valops.c (search_struct_method): Update header comment.
503 (value_struct_elt): Likewise.
505 2021-06-25 Tom Tromey <tom@tromey.com>
507 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
510 2021-06-25 Tom Tromey <tom@tromey.com>
512 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
513 (scan_partial_symbols, partial_die_parent_scope)
514 (add_partial_symbol, add_partial_subprogram)
515 (compute_delayed_physnames, rust_union_quirks)
516 (process_full_comp_unit, process_full_type_unit)
517 (process_imported_unit_die, process_die, dw2_linkage_name)
518 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
519 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
520 (read_variable, dwarf2_get_subprogram_pc_bounds)
521 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
522 (dwarf2_attach_fn_fields_to_type)
523 (quirk_ada_thick_pointer_struct, read_structure_type)
524 (handle_struct_member_die, process_structure_scope)
525 (read_array_type, read_array_order, prototyped_function_p)
526 (read_subroutine_type, dwarf2_init_complex_target_type)
527 (read_base_type, read_subrange_type, read_unspecified_type)
528 (load_partial_dies, partial_die_info::fixup, set_cu_language)
529 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
530 (dwarf2_canonicalize_name, follow_die_offset)
531 (prepare_one_comp_unit): Update.
532 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
534 2021-06-25 Tom Tromey <tom@tromey.com>
536 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
537 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
538 set language_defn. Handle DW_LANG_OpenCL.
539 (prepare_one_comp_unit): Check producer and set language_defn.
541 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
543 * NEWS: Mention Python BP_CATCHPOINT feature.
544 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
545 (bppy_init): Likewise.
546 (gdbpy_breakpoint_created): Likewise.
548 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
550 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
552 (bpscm_want_scm_wrapper_p): Likewise.
553 (gdbscm_make_breakpoint): Likewise.
554 (breakpoint_integer_constants): Likewise.
556 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
558 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
559 for invalid breakpoint numbers, and unsupported breakpoint
562 2021-06-25 Tom Tromey <tom@tromey.com>
564 * dwarf2/index-write.c (struct addrmap_index_data): Add
566 <operator()>: Declare.
567 (addrmap_index_data::operator()): Rename from
568 add_address_entry_worker. Remove 'datap' parameter.
569 (write_address_map): Update.
570 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
571 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
573 (dump_psymtab_addrmap): Update.
574 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
576 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
577 (struct mutable_foreach_data): Remove.
578 (addrmap_mutable_foreach_worker): Update.
579 (addrmap_mutable_foreach): Remove 'data' parameter.
580 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
581 (addrmap_foreach): Remove 'data' parameter.
583 2021-06-25 Tom Tromey <tromey@adacore.com>
585 * python/py-type.c (typy_get_name): Decode an Ada type name.
587 2021-06-25 Tom Tromey <tromey@adacore.com>
589 * ada-lang.c (ada_decode): Add wrap parameter.
590 * ada-lang.h (ada_decode): Add wrap parameter.
592 2021-06-25 Luis Machado <luis.machado@linaro.org>
594 * corelow.c (core_target::core_target) Update to read target
597 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
599 * python/lib/gdb/__init__.py: Format.
601 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
603 * infrun.c (do_target_wait): Remove wait_ptid parameter.
604 (fetch_inferior_event): Adjust.
606 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
608 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
609 with name of chosen unwinder.
610 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
611 unwinder in debug message.
613 2021-06-22 Andreas Schwab <schwab@suse.de>
616 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
619 2021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
621 * breakpoint.c (insert_bp_location): If we catch a
622 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
625 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
627 * NEWS: Mention new target feature name.
628 * arch/riscv.c (riscv_create_target_description): GDB doesn't
629 currently create target descriptions containing vector registers.
630 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
632 <operator==>: Also compare vlen.
633 <hash>: Also include vlen.
634 * riscv-tdep.c (riscv_feature_name_vector): New static global.
635 (struct riscv_vector_feature): New struct.
636 (riscv_vector_feature): New static global.
637 (riscv_register_reggroup_p): Ensure vector registers are part of
638 the 'all' group, and part of the 'vector' group.
639 (riscv_dwarf_reg_to_regnum): Handle vector registers.
640 (riscv_gdbarch_init): Check vector register feature.
641 * riscv-tdep.h: Add vector registers to GDB's internal register
642 numbers, and to the DWARF register numbers.
644 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
646 * NEWS: Mention the two new methods.
647 * python/py-frame.c (frapy_level): New function.
648 (frame_object_methods): Register 'level' method.
649 * python/py-unwind.c (pending_framepy_level): New function.
650 (pending_frame_object_methods): Register 'level' method.
652 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
654 * python/py-inferior.c (infpy_get_connection_num): Call
655 gdb_py_object_from_longest instead of PyLong_FromLong directly.
657 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
659 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
660 saving user registers.
662 2021-06-19 Mike Frysinger <vapier@gentoo.org>
664 * acinclude.m4: Delete most m4_include's of ../config files.
665 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
666 * aclocal.m4: Regenerate.
667 * configure: Regenerate.
669 2021-06-17 Pedro Alves <pedro@palves.net>
671 * scoped_ignore_signal.h (scoped_ignore_signal): Add
672 ConsumePending template parameter.
673 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
674 sigtimedwait if ConsumePending is false.
675 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
676 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
677 <m_ignore_signal>: Initialize with ConsumePending=false.
679 2021-06-17 Pedro Alves <pedro@palves.net>
681 * Makefile.in (SELFTESTS_SRCS): Add
682 unittests/scoped_ignore_signal-selftests.c.
683 * unittests/scoped_ignore_signal-selftests.c: New.
685 2021-06-17 Pedro Alves <pedro@palves.net>
687 * gdbsupport/scoped_ignore_signal.h: New.
688 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
689 instead of <signal.h>. Don't include <unistd.h>.
690 (scoped_ignore_sigpipe): Remove.
691 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
692 instead of <signal.h>. Don't include <unistd.h>.
694 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
697 2021-06-17 Pedro Alves <pedro@palves.net>
699 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
700 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
701 * inflow.h: Delete, moved to gdbsupport/ under a different name.
702 * ser-unix.c: Don't include "inflow.h". Include
703 "gdbsupport/scoped_ignore_sigttou.h".
705 2021-06-17 Pedro Alves <pedro@palves.net>
707 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
709 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
711 (cur_seq, start_sequence): New.
712 (tui_getc_1): Pass key escape sequences for curses control keys to
713 readline. Handle mouse and ctrl-l here.
714 (tui_resize_all): Disable/reenable the keypad if the command
715 window has the focus too.
716 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
718 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
720 2021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
722 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
724 2021-06-16 Tom de Vries <tdevries@suse.de>
727 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
728 (dwarf2_cu::get_builder): Declare and move ...
729 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
730 of ancestor. Assert return value is non-null.
731 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
732 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
733 (dwarf2_per_objfile): Add sym_cu field.
735 2021-06-15 Alan Modra <amodra@gmail.com>
737 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
739 2021-06-14 Mike Frysinger <vapier@gentoo.org>
741 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
742 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
744 2021-06-14 John Baldwin <jhb@FreeBSD.org>
746 * configure.ac: Check for <sys/procctl.h>.
747 * config.in, configure: Regenerate.
748 * fbsd-nat.c: Include <sys/procctl.h> if present.
749 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
750 (fbsd_nat_target::create_inferior)
751 (fbsd_nat_target::supports_disable_randomization): New.
752 * fbsd-nat.h (fbsd_nat_target::create_inferior)
753 (fbsd_nat_target::supports_disable_randomization): New.
755 2021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
757 * compile/compile.c: Include missing header signal.h.
759 2021-06-12 John Baldwin <jhb@FreeBSD.org>
761 * remote.c (remote_new_objfile): Fix indentation.
763 2021-06-11 Kevin Buettner <kevinb@redhat.com>
765 * solib.c (libpthread_name_p): Match "libc" in addition
767 * linux-thread-db.c (libpthread_objfile_p): New function.
768 (libpthread_name_p): Adjust preexisting callers to use
769 libpthread_objfile_p().
771 2021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
773 * dwarf2/loc.h (struct call_site_stuff): Remove.
775 2021-06-11 Tom Tromey <tom@tromey.com>
778 * rust-parse.c (rust_parser::lex_identifier): Handle raw
780 (rust_lex_tests): Add raw identifier tests.
782 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
784 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
785 instead of '== None'.
786 (FrameVars): Use 'is not None' instead of '!= None'.
787 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
788 Use 'is None' instead of '== None' and 'is not None' instead of '!=
791 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
793 * inferior.h (class inferior) <in_initial_library_scan>: New.
794 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
795 * infrun.c (follow_fork_inferior): Likewise.
796 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
797 by try_thread_db_load_1
798 (thread_db_load): Return early if in_initial_library_scan is
800 * remote.c (remote_new_objfile): Return early if
801 in_initial_library_scan is set.
803 2021-06-07 Pedro Alves <pedro@palves.net>
805 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
807 * symtab.h (struct symbol): Add defaulted copy assignment
810 2021-06-07 Pedro Alves <pedro@palves.net>
812 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
813 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
814 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
817 2021-06-07 Pedro Alves <pedro@palves.net>
819 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
820 (nat_sigval_t): ... this and remove typedef of same name.
821 (struct nat_siginfo): Rename to ...
822 (nat_siginfo_t): ... this and remove typedef of same name.
823 (struct compat_sigval): Rename to ...
824 (compat_sigval_t): ... this and remove typedef of same name.
825 (struct compat_siginfo): Rename to ...
826 (compat_siginfo_t): ... this and remove typedef of same name.
827 (struct compat_x32_siginfo): Rename to ...
828 (compat_x32_siginfo_t): ... this and remove typedef of same name.
829 (amd64_linux_siginfo_fixup_common): Adjust.
831 2021-06-07 Pedro Alves <pedro@palves.net>
833 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
834 __attribute__ __aligned__ from the typedef to the struct.
836 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
839 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
840 type_align, and spot case where the alignment is unknown.
842 2021-06-07 Carl Love <cel@us.ibm.com>
844 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
845 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
846 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
847 ppc64_pcrel_linkage2_target): New functions.
848 (ppc64_standard_linkage9, ppc64_standard_linkage10,
849 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
850 instruction patterns.
851 (ppc64_standard_linkage9, ppc64_standard_linkage10,
852 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
853 in define MAX expression.
854 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
855 ppc64_standard_linkage10, ppc64_standard_linkage11,
856 ppc64_standard_linkage12.
857 * (ppc_insn_prefix_dform): New function.
859 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
862 * sparc-nat.c (sparc_fetch_inferior_registers): Set
863 inferior_ptid instead of using switch_to_thread.
864 (sparc_store_inferior_registers): Likewise.
866 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
868 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
869 (compile_to_object): Ignore SIGPIPE before calling the plugin.
871 2021-06-05 Tom Tromey <tom@tromey.com>
873 * data-directory/Makefile.in (Makefile): Use correct directory
876 2021-06-05 Tom Tromey <tom@tromey.com>
878 * data-directory/Makefile.in (Makefile): Rewrite.
880 2021-06-05 Tom Tromey <tromey@adacore.com>
882 * configure: Rebuild.
883 * configure.ac: Add ACX_NONCANONICAL_TARGET.
885 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
887 * NEWS: Document 'set disassembler-options' support for the ARC
889 * arc-tdep.c (arc_gdbarch_init): Set
890 'gdbarch_valid_disassembler_options'.
892 2021-06-04 Tom Tromey <tromey@adacore.com>
894 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
896 * dwarf2/loc.c (dwarf2_evaluate_property) <case
897 PROP_VARIABLE_NAME>: New case.
898 (compute_var_value): New function.
899 (sect_variable_value): Use compute_var_value.
900 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
901 (var_decl_name): New function.
902 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
903 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
905 (union dynamic_prop_data) <variable_name>: New member.
906 (struct dynamic_prop) <variable_name, set_variable_name>: New
909 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
911 * remote.c (remote_target)
912 <select_thread_for_ambiguous_stop_reply>: Add additional debug
915 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
917 * python/py-tui.c (class tui_py_window): Add click function.
918 (tui_py_window::click): Likewise.
920 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
922 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
923 * tui/tui-data.h (struct tui_win_info): Add click function.
924 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
925 (tui_deprep_terminal): Disable mouse events.
926 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
927 * tui/tui.c (tui_disable): Disable mouse events.
929 2021-06-03 Magne Hov <mhov@undo.io>
932 * eval.c (expression::evaluate): Check inferior_ptid.
934 2021-06-03 Pedro Alves <pedro@palves.net>
936 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
938 (Global Maintainers): Update my address.
939 (Write After Approval): Remove stale entry.
941 2021-06-03 John Baldwin <jhb@FreeBSD.org>
943 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
944 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
945 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
946 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
947 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
948 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
949 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
950 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
951 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
952 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
953 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
954 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
955 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
956 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
957 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
958 (fbsd_report_signal_info): New.
959 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
960 report_signal_info method.
962 2021-06-03 Magne Hov <mhov@undo.io>
964 * MAINTAINERS (Write After Approval): Add Magne Hov.
966 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
968 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
969 gdb.SYMBOL_LABEL_DOMAIN constant.
971 2021-06-01 John Baldwin <jhb@FreeBSD.org>
973 * infrun.c (handle_inferior_event): Only call
974 gdbarch_displaced_step_restore_all_in_ptid if
975 gdbarch_supports_displaced_stepping is true.
977 2021-06-01 Tom Tromey <tromey@adacore.com>
979 * Makefile.in (all-data-directory): Remove.
980 (data-directory/Makefile): Remove.
982 2021-06-01 Tom Tromey <tromey@adacore.com>
984 * configure: Rebuild.
985 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
987 2021-06-01 Tom Tromey <tromey@adacore.com>
989 * silent-rules.mk (ECHO_CC): New variable.
991 2021-06-01 Tom Tromey <tromey@adacore.com>
993 * Makefile.in (SUBDIRS): Add testsuite.
994 (all): Don't exclude testsuite.
996 2021-06-01 Tom Tromey <tromey@adacore.com>
998 * configure.ac: Copy some code from testsuite/configure.ac.
999 (enable_libctf): Subst this, not ENABLE_LIBCTF.
1000 * configure: Rebuild.
1002 2021-06-01 Tom de Vries <tdevries@suse.de>
1005 * minsyms.c (msymbol_is_cold_clone): New function.
1006 (msymbol_is_function): Use msymbol_is_cold_clone.
1008 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
1009 Andrew Burgess <andrew.burgess@embecosm.com>
1012 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
1013 (ALLDEPFILES): Add arm-none-tdep.c
1014 * arm-none-tdep.c: New file.
1015 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
1017 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1018 Richard Bunt <richard.bunt@arm.com>
1020 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
1021 check for why the backtrace stopped.
1023 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1025 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
1027 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
1028 signature parameter, update all callers.
1029 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
1030 signature parameter.
1032 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1034 * dwarf2/read.h (signatured_type_up): New, use where possible.
1036 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1038 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
1040 2021-05-30 Tom Tromey <tom@tromey.com>
1042 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
1044 (create_signatured_type_table_from_index)
1045 (create_signatured_type_table_from_debug_names, add_type_unit)
1046 (read_comp_units_from_section): Update.
1048 2021-05-30 Tom Tromey <tom@tromey.com>
1050 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
1051 m_num_psymtabs>: Remove.
1052 (resize_symtabs): Update.
1053 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
1054 (dwarf2_per_bfd::allocate_signatured_type): Update.
1056 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1058 * Fix tab after space indentation issues throughout.
1060 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1062 * Fix some indentation mistakes throughout.
1064 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1066 * breakpoint.h (iterate_over_bp_locations): Remove. Update
1067 users to use all_bp_locations.
1068 (all_bp_locations): New.
1069 * breakpoint.c (all_bp_locations): Make non-static.
1070 (iterate_over_bp_locations): Remove.
1072 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1074 * breakpoint.h (iterate_over_breakpoints): Remove. Update
1075 callers to use all_breakpoints or all_breakpoints_safe.
1076 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
1077 all_breakpoints_safe): Move here.
1078 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
1080 (iterate_over_breakpoints): Remove.
1081 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1083 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
1085 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
1087 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1089 * breakpoint.c (get_first_locp_gte_addr): Remove.
1090 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
1091 all_bp_locations_at_addr.
1092 (struct bp_locations_at_addr_range): New.
1093 (all_bp_locations_at_addr): New.
1094 (bp_locations_compare_addrs): New.
1096 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1098 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
1100 (all_bp_locations): New.
1102 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1104 * breakpoint.c (bp_locations): Change to std::vector, update all
1106 (bp_locations_count): Remove.
1107 (update_global_location_list): Change to work with indices
1108 rather than bp_location**.
1110 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1112 * breakpoint.h (bp_locations_range): New.
1113 (struct breakpoint) <locations>: New. Use where possible.
1115 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1117 * breakpoint.h (all_tracepoints): Remove.
1118 (breakpoint_iterator): Move here.
1119 (struct tracepoint_filter): New.
1120 (tracepoint_iterator): New.
1121 (tracepoint_range): New.
1122 (all_tracepoints): New.
1123 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
1125 (breakpoint_iterator): Move to header.
1126 (all_tracepoints): New.
1127 * tracepoint.c (start_tracing): Adjust.
1129 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1131 * breakpoint.c (breakpoint_safe_range): New.
1132 (all_breakpoints_safe): New. Use instead of
1133 ALL_BREAKPOINTS_SAFE where possible.
1135 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1137 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
1139 (breakpoint_iterator): New.
1140 (breakpoint_range): New.
1141 (all_breakpoints): New.
1143 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
1145 * python/py-tui.c (tui_py_window::output): Add full_window
1147 (gdbpy_tui_write): Parse "full_window" argument.
1149 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1151 * make-init-c: Add option to reverse function calls.
1153 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1155 * Makefile.in (INIT_FILES_FILTER_OUT): New.
1156 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
1157 (stamp-init): Use make-init-c.
1158 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
1159 * silent-rules.mk (ECHO_INIT_C): Change.
1160 * make-init-c: New file.
1162 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1164 * command.h (add_alias_cmd): Accept target as
1165 cmd_list_element. Update callers.
1167 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1169 * command.h (add_info_alias): Accept target as
1170 cmd_list_element. Update callers.
1172 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1174 * command.h (add_com_alias): Accept target as
1175 cmd_list_element. Update callers.
1177 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1179 * python/py-param.c (add_setshow_generic): Use return values of
1180 add_setshow functions.
1182 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1184 * mi/mi-main.c (_initialize_mi_main):
1185 * python/py-auto-load.c (gdbpy_initialize_auto_load):
1186 * remote.c (_initialize_remote):
1188 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1190 * command.h (set_show_commands): New.
1191 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
1192 add_setshow_boolean_cmd, add_setshow_filename_cmd,
1193 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
1194 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
1195 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
1196 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1197 Return set_show_commands. Adjust callers.
1198 * cli/cli-decode.c (add_setshow_cmd_full): Return
1199 set_show_commands, remove result parameters, adjust callers.
1201 2021-05-27 Tom de Vries <tdevries@suse.de>
1204 * dwarf2/read.c (process_psymtab_comp_unit):
1206 2021-05-27 Tom de Vries <tdevries@suse.de>
1208 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
1211 2021-05-27 Tom de Vries <tdevries@suse.de>
1214 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
1215 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
1216 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
1217 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
1219 (dwarf2_per_cu_data): Remove load_all_dies field.
1221 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
1223 * regcache.c (reg_buffer::reg_buffer): Default-initialize
1226 2021-05-26 Tom Tromey <tom@tromey.com>
1228 * dwarf2/read.c (allocate_type_unit_groups_table)
1229 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
1231 (free_line_header_voidp): Remove.
1233 (completion_tracker::completion_hash_entry::deleter): Remove.
1234 (completion_tracker::discard_completions): Use htab_delete_entry.
1235 * utils.h (htab_delete_entry): New template function.
1237 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
1239 * python/py-tui.c (tui_py_window::refresh_window):
1242 2021-05-23 Tom de Vries <tdevries@suse.de>
1245 * target.h (struct target_ops): Mention target_thread_architecture in
1246 read_description comment.
1247 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1248 pid to determine if process is 64-bit or 32-bit.
1249 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1251 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1252 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1253 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1254 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1255 Likewise, use pid to determine if kernel supports reading VFP
1258 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1260 * main.c (enum cmdarg_kind): Fix option type comments for
1261 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1263 2021-05-21 Tom de Vries <tdevries@suse.de>
1266 * contrib/cc-with-tweaks.sh: Handle -l.
1268 2021-05-21 Tom de Vries <tdevries@suse.de>
1271 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1272 objects. Call get_jiter_objfile_data with the_objfile.
1274 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1276 * linespec.c (linespec_p): Remove. Replace all uses with
1279 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1280 Pedro Alves <pedro@palves.net>
1282 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1283 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1284 command_line_up instead of struct command_line.
1285 (build_command_line): Likewise.
1286 (get_command_line): Update the cmd function call parameter.
1287 (process_next_line): Use unique_ptr command_line_up instead
1288 of struct command_line.
1289 (recurse_read_control_structure): Change the the type of
1290 next to command_line_up.
1291 (read_command_lines_1): Change type of `next' to be
1292 command_line_up and update all references of `next'
1295 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1297 * MAINTAINERS (Write After Approval): Add myself.
1299 2021-05-19 John Baldwin <jhb@FreeBSD.org>
1301 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1303 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1305 * inflow.c (new_tty): Do not leak tty.
1307 2021-05-17 Tom Tromey <tom@tromey.com>
1309 * dwarf2/read.h: Update include.
1310 * dwarf2/read.c: Update include.
1311 * dwarf2/line-header.c: Update include.
1312 * dwarf2/cu.h: Update include.
1313 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1314 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1315 * Makefile.in (COMMON_SFILES): Update.
1317 2021-05-17 Tom Tromey <tom@tromey.com>
1319 * dwarf2/read.c (maybe_queue_comp_unit)
1320 (dwarf2_per_objfile::age_comp_units): Update.
1321 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1323 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1324 add_dependence>: New methods.
1325 <m_dependencies>: Add "m_" prefix. Now private.
1326 <m_mark>: Add "m_" prefix.
1327 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1328 (dwarf2_mark_helper): New function.
1329 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1331 2021-05-17 Tom Tromey <tom@tromey.com>
1333 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1334 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1335 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1336 * dwarf2/cu.c: New file.
1337 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1339 2021-05-17 Tom Tromey <tom@tromey.com>
1341 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1342 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1344 * dwarf2/cu.h: New file.
1346 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1348 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1349 set brace-list-open to 0 for C and C++ modes.
1351 2021-05-17 Tom Tromey <tromey@adacore.com>
1353 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1356 2021-05-17 Tom Tromey <tromey@adacore.com>
1358 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1359 (group_from_gid): Subtract one from strncpy length.
1361 2021-05-17 Tom Tromey <tromey@adacore.com>
1363 * source.c (add_path): Check 'p' before using 'p[-1]'.
1365 2021-05-17 Tom Tromey <tromey@adacore.com>
1367 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1368 (dwarf2_per_cu_data_up): New typedef.
1369 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1370 <all_comp_units>: Use dwarf2_per_cu_data_up.
1371 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1372 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1373 (create_cu_from_index_list): Likewise.
1374 (create_signatured_type_table_from_index)
1375 (create_cus_from_debug_names_list, add_type_unit)
1376 (read_comp_units_from_section): Update.
1377 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1380 2021-05-17 Tom Tromey <tom@tromey.com>
1382 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1383 (sort_tu_by_abbrev_offset): Remove.
1384 (build_type_psymtabs): Update.
1386 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1388 * py-project.toml: New.
1389 * gdb-gdb.py.in: Re-format.
1391 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1393 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1395 * command.h (cmd_func_p): Remove.
1396 * cli/cli-decode.c (cmd_func_p): Remove.
1398 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1400 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1402 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1404 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1406 <alias_target>: ... this.
1407 (add_alias_cmd): Rename old to target.
1408 (add_info_alias): Rename old_name to target_name.
1409 (add_com_alias): Likewise.
1411 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1413 * Rename "prefixlist" parameters to "subcommands" throughout.
1414 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1415 <subcommands>: ... this.
1416 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1417 (lookup_cmd_with_subcommands): ... this.
1419 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1421 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1423 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1425 * cli/cli-decode.h (prefixname): Make const, move implementation
1426 to cli/cli-decode.c.
1427 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1429 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
1431 * ctfread.c (new_symbol): Set function address.
1432 (read_func_kind_type): Remove incorrect type name setting.
1433 Don't copy name returned from ctf_type_ame_raw throughout file.
1435 2021-05-14 Tom Tromey <tom@tromey.com>
1437 * rust-lang.c (rust_language::val_print_struct)
1438 (rust_language::print_enum): Use common_val_print, not
1441 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1443 * python/py-inferior.c (infpy_get_connection_num): New function.
1444 (inferior_object_getset): Add a new element for 'connection_num'.
1445 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1447 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1449 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1450 argument type, update and re-wrap, header comment.
1451 (remote_target::commit_resumed): Convert any_process_wildcard and
1452 may_global_wildcard_vcont from int to bool.
1454 2021-05-14 Kent Cheung <kent.cheung@arm.com>
1456 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1457 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1458 just before printing child values.
1459 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1460 printing string representation.
1461 * python/py-prettyprint.c (print_children): Check max_depth just
1462 before printing child values.
1463 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1464 printing string representation.
1466 2021-05-14 Mike Frysinger <vapier@gentoo.org>
1468 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1469 sim/callback.h & sim/sim.h.
1471 2021-05-13 Mike Frysinger <vapier@gentoo.org>
1473 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1474 sim-regno.h include.
1476 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1478 * inf-child.h (inf_child_target) <follow_exec>: New.
1479 * inf-child.c (inf_child_target::follow_exec): New.
1481 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1483 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1485 (target_follow_exec): Likewise.
1486 * target.c (target_follow_exec): Add ptid_t parameter.
1487 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1488 don't push target nor create thread.
1489 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1490 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1491 (thread_db_target::follow_exec): New.
1492 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1493 (remote_target::follow_exec): Call
1494 process_stratum_target::follow_exec.
1495 * target-delegates.c: Re-generate.
1497 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1499 * infrun.c (follow_exec): Call target_follow_fork when
1500 follow-exec-mode is same.
1501 * target.h (target_follow_fork): Improve doc.
1503 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1505 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1507 * cli/cli-setshow.c (do_show_command): Adjust.
1509 2021-05-13 Luis Machado <luis.machado@linaro.org>
1511 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1512 include the last address in the range.
1514 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1516 * python/python-internal.h (gdbpy_parse_command_name): Return
1517 gdb::unique_xmalloc_ptr.
1518 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1519 (cmdpy_init): Adjust.
1520 * python/py-param.c (parmpy_init): Adjust.
1521 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1524 2021-05-12 George Barrett <bob@bob131.so>
1526 * NEWS (Guile API): Note the addition of the new procedure.
1527 * guile/scm-value.c (gdbscm_value_const_value): Add
1528 implementation of value-const-value procedure.
1529 (value_functions): Add value-const-value procedure.
1531 2021-05-12 George Barrett <bob@bob131.so>
1533 * NEWS (Guile API): Note the addition of new procedures.
1534 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1535 for reference value creation.
1536 (gdbscm_value_reference_value): Add implementation of
1537 value-reference-value procedure.
1538 (gdbscm_value_rvalue_reference_value): Add implementation of
1539 value-rvalue-reference-value procedure.
1540 (value_functions): Add value-reference-value procedure. Add
1541 value-rvalue-reference-value procedure.
1543 2021-05-12 George Barrett <bob@bob131.so>
1545 * guile/scm-type.c (type_integer_constants): Add binding for
1546 TYPE_CODE_RVALUE_REF.
1547 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1548 dereferencing of rvalue references.
1549 * NEWS (Guile API): Note improvements in rvalue reference support.
1551 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1553 * btrace.c (handle_pt_insn_events): Ignore status update enable
1556 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1558 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1561 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1563 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1565 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
1568 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1571 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1573 * nat/linux-waitpid.c (status_to_str): Show signal name.
1575 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1577 * python/py-breakpoint.c (pybp_debug): New static global.
1578 (show_pybp_debug): New function.
1579 (pybp_debug_printf): Define.
1580 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1581 (gdbpy_breakpoint_created): Add some debugging.
1582 (gdbpy_breakpoint_deleted): Likewise.
1583 (gdbpy_breakpoint_modified): Likewise.
1584 (_initialize_py_breakpoint): New function.
1586 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1588 * python/py-unwind.c (pyuw_debug): Convert to bool.
1589 (show_pyuw_debug): New function.
1590 (pyuw_debug_printf): Define.
1591 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1592 (pyuw_this_id): Convert to new debug print macros.
1593 (pyuw_prev_register): Likewise.
1594 (pyuw_sniffer): Likewise.
1595 (pyuw_dealloc_cache): Likewise.
1596 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1597 show function when registering.
1599 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1601 * dummy-frame.c (fprint_dummy_frames): Convert use of
1602 fprint_frame_id to use frame_id::to_string.
1603 * frame.c (fprint_field): Delete.
1604 (fprint_frame_id): Moved to...
1605 (frame_id::to_string): ...this, rewritten to return a string.
1606 (fprint_frame): Convert use of fprint_frame_id to use
1607 frame_id::to_string.
1608 (compute_frame_id): Likewise.
1609 (frame_id_p): Likewise.
1610 (frame_id_eq): Likewise.
1611 (frame_id_inner): Likewise.
1612 * frame.h (struct frame_id) <to_string>: New member function.
1613 (fprint_frame_id): Delete declaration.
1614 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1615 fprint_frame_id to use frame_id::to_string.
1616 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1617 * python/py-unwind.c (unwind_infopy_str): Likewise.
1618 (pyuw_this_id): Likewise.
1620 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1622 * nat/linux-waitpid.c (status_to_str): Return std::string.
1623 * nat/linux-waitpid.h (status_to_str): Likewise.
1624 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1625 (linux_nat_target::attach): Adjust.
1626 (linux_handle_extended_wait): Adjust.
1628 (stop_wait_callback): Adjust.
1629 (linux_nat_filter_event): Adjust.
1630 (linux_nat_wait_1): Adjust.
1631 * nat/linux-waitpid.c (status_to_str): Adjust.
1632 * nat/linux-waitpid.h (status_to_str): Adjust.
1634 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1636 * infrun.h (infrun_debug_printf): Add missing space.
1638 2021-05-08 Pedro Alves <pedro@palves.net>
1640 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1641 Remove references to HAVE_PERSONALITY.
1642 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1643 (maybe_disable_address_space_randomization)
1644 (~maybe_disable_address_space_randomizatio): Remove references to
1646 * config.in, configure: Regenerate.
1648 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1650 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1652 (source_script_with_search): Perform tilde expansion.
1654 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1656 * target-descriptions.c (struct target_desc_info) <filename>:
1658 (copy_inferior_target_desc_info): Adjust.
1659 (target_desc_info_free): Adjust.
1660 (target_find_description): Adjust.
1661 (set_tdesc_filename_cmd): Adjust.
1662 (show_tdesc_filename_cmd): Adjust.
1663 (unset_tdesc_filename_cmd): Adjust.
1664 (maint_print_c_tdesc_cmd): Adjust.
1666 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1668 * target-descriptions.c (struct target_desc_info): Initialize
1670 (get_tdesc_info): Use new.
1671 (target_desc_info_free): Use delete.
1673 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1675 * target-descriptions.c (struct target_desc_info) <fetched>:
1677 (target_find_description): Adjust.
1678 (target_clear_description): Adjust.
1680 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1682 * target-descriptions.c (struct target_desc_info) <tdesc>:
1684 (target_desc_fetched): Remove.
1685 (current_target_desc): Remove.
1686 (target_description_filename): Remove.
1687 (target_find_description): Adjust.
1688 (target_clear_description): Adjust.
1689 (target_current_description): Adjust.
1690 (set_tdesc_filename_cmd): Adjust.
1691 (show_tdesc_filename_cmd): Adjust.
1692 (unset_tdesc_filename_cmd): Adjust.
1693 (maint_print_c_tdesc_cmd): Adjust.
1694 (maint_print_xml_tdesc_cmd): Adjust.
1696 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1698 * infcmd.c (notice_new_inferior): Change parameter type.
1699 * inferior.h (notice_new_inferior): Change parameter type.
1700 * remote.c (remote_notice_new_inferior): Change parameter type to
1701 bool. Also update type of local variable to bool.
1702 (remote_target::update_thread_list): Change type of local variable
1704 (remote_target::process_stop_reply): Pass bool instead of int to
1705 remote_notice_new_inferior.
1707 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1709 * target.c (target_stack::unpush): Call target_ops::find_beneath
1710 to get the target beneath `t`.
1712 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1714 * target.c (target_close): Check in all inferiors that the
1715 target is not pushed.
1717 2021-05-07 Aaron Merey <amerey@redhat.com>
1719 * debuginfod-support.c (debuginfod_init): Remove.
1720 (get_debuginfod_client): New function.
1722 2021-05-07 Tom Tromey <tom@tromey.com>
1724 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1725 * utils.c (streq_hash): Remove.
1726 * utils.h (streq_hash): Don't declare.
1727 * completer.c (completion_tracker::discard_completions): Update
1729 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1731 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1733 * Re-format all Python files using black.
1735 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1737 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1738 function return type.
1739 * guile/guile.c (gdbscm_source_script): Update to handle change in
1740 gdbscm_safe_source_script.
1741 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1742 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1745 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1747 * inferior.h (class inferior) <args>: Change type to
1749 * inferior.c (inferior::~inferior): Don't free args.
1750 * infcmd.c (get_inferior_args): Adjust.
1751 (set_inferior_args): Adjust.
1753 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1755 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1756 breakpoint locations when the breakpoint actually has a location.
1758 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1760 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1761 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1762 mi_cmd_break_condition.
1763 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1764 * breakpoint.h (set_breakpoint_condition): Declare a new
1766 * breakpoint.c (set_breakpoint_condition): New overloaded function
1767 extracted out from ...
1768 (condition_command): ... this.
1769 * NEWS: Mention the change.
1771 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1773 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1774 '--force-condition' flag to force the condition in the
1775 '-break-insert' and '-dprintf-insert' commands.
1776 * NEWS: Mention the change.
1778 2021-05-04 Tom de Vries <tdevries@suse.de>
1781 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1784 2021-04-30 Tom Tromey <tom@tromey.com>
1786 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1787 (add_signatured_type_cu_to_table): Remove.
1788 (create_debug_type_hash_table): Assume dwo_file is non-null.
1789 (create_debug_types_hash_table): Update comment.
1790 (create_all_type_units): Remove.
1791 (sort_tu_by_abbrev_offset): Update comment.
1792 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1793 (build_type_psymtabs): Remove.
1794 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1796 (read_comp_units_from_section): Add types_htab, section_kind
1798 (create_all_comp_units): Read type units.
1800 2021-04-30 Tom Tromey <tom@tromey.com>
1802 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1803 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1804 <get_cu>: Now inline.
1805 <all_type_units>: Remove.
1806 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1807 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1808 (dwarf2_per_bfd::get_tu): Remove.
1809 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1810 (create_signatured_type_table_from_index)
1811 (create_signatured_type_table_from_debug_names)
1812 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1813 (dwarf2_base_index_functions::expand_all_symtabs)
1814 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1815 (dwarf2_base_index_functions::map_symbol_filenames)
1816 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1817 (add_signatured_type_cu_to_table, create_all_type_units)
1818 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1819 (create_all_comp_units): Update.
1820 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1821 (write_debug_names): Update.
1823 2021-04-30 Tom Tromey <tom@tromey.com>
1825 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1826 allocate_signatured_type>: Change return type.
1827 <all_comp_units, all_type_units>: Hold unique pointers.
1828 (struct dwarf2_per_cu_data): Add constructor and initializers.
1829 (struct signatured_type): Derive from dwarf2_per_cu_data.
1830 * dwarf2/read.c (type_unit_group): Derive from
1832 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1833 (dwarf2_per_bfd::get_tu)
1834 (dwarf2_per_bfd::allocate_signatured_type)
1835 (dwarf2_per_bfd::allocate_signatured_type)
1836 (create_cu_from_index_list, create_cus_from_index_list)
1837 (create_signatured_type_table_from_index)
1838 (create_signatured_type_table_from_debug_names)
1839 (create_addrmap_from_aranges)
1840 (dwarf2_base_index_functions::find_last_source_symtab)
1841 (dw_expand_symtabs_matching_file_matcher)
1842 (dwarf2_gdb_index::expand_symtabs_matching)
1843 (dwarf2_base_index_functions::map_symbol_filenames)
1844 (create_cus_from_debug_names_list)
1845 (dw2_debug_names_iterator::next)
1846 (dwarf2_debug_names_index::expand_symtabs_matching)
1847 (create_debug_type_hash_table, add_type_unit)
1848 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1850 (allocate_type_unit_groups_table): Use delete.
1851 (create_type_unit_group): Change return type. Use new.
1852 (get_type_unit_group, build_type_psymtabs_1)
1853 (build_type_psymtab_dependencies)
1854 (process_skeletonless_type_unit, set_partial_user)
1855 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1856 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1857 (read_signatured_type): Update.
1858 (dwarf2_find_containing_comp_unit): Change type of
1861 (dwarf2_per_bfd::allocate_per_cu)
1862 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1864 (add_signatured_type_cu_to_table): Update.
1865 * dwarf2/index-write.c (write_one_signatured_type)
1866 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1867 (write_debug_names): Update.
1869 2021-04-30 Tom Tromey <tromey@adacore.com>
1871 * nat/windows-nat.h (get_image_name): Don't declare.
1872 * nat/windows-nat.c (get_image_name): Now static.
1874 2021-04-30 Tom Tromey <tromey@adacore.com>
1876 * windows-nat.c (windows_nat::handle_load_dll): Update.
1877 (windows_nat_target::get_windows_debug_event): Call
1879 (windows_add_all_dlls, windows_add_dll): Move to
1881 * nat/windows-nat.h (handle_load_dll): Change parameters.
1882 (dll_loaded_event, windows_add_all_dlls): Declare.
1883 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1885 (dll_loaded_event): New function.
1887 2021-04-30 Tom Tromey <tromey@adacore.com>
1889 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1890 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1892 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1893 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1895 2021-04-30 Tom Tromey <tromey@adacore.com>
1897 * windows-nat.c: Move code to nat/windows-nat.[ch].
1898 (_initialize_windows_nat): Call initialize_loadable.
1899 * nat/windows-nat.h (AdjustTokenPrivileges)
1900 (DebugActiveProcessStop, DebugBreakProcess)
1901 (DebugSetProcessKillOnExit, EnumProcessModules)
1902 (EnumProcessModulesEx, GetModuleInformation)
1903 (GetModuleFileNameExA, GetModuleFileNameExW)
1904 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1905 (GetCurrentConsoleFont, Wow64SuspendThread)
1906 (Wow64GetThreadContext, Wow64SetThreadContext)
1907 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1908 (AdjustTokenPrivileges_ftype)
1909 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1910 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1911 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1912 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1913 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1914 (GetConsoleFontSize_ftype)
1915 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1916 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1917 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1918 (initialize_loadable): Declare.
1919 * nat/windows-nat.c (AdjustTokenPrivileges)
1920 (DebugActiveProcessStop, DebugBreakProcess)
1921 (DebugSetProcessKillOnExit, EnumProcessModules)
1922 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1923 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1924 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1925 (Wow64GetThreadContext, Wow64SetThreadContext)
1926 (Wow64GetThreadSelectorEntry): Define.
1927 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1929 (initialize_loadable): Likewise, and rename.
1931 2021-04-30 Tom Tromey <tromey@adacore.com>
1933 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1934 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1935 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1936 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1937 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1938 (bad): New template functions.
1939 (_initialize_loadable): Update.
1941 2021-04-30 Tom Tromey <tromey@adacore.com>
1943 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1945 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1947 * auto-load.h: Split namespace declaration.
1949 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1951 * infrun.c (save_waitstatus): Move variables to inner scope.
1953 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1955 * NEWS: Fix typo and stray full stop.
1957 2021-04-28 Tom Tromey <tromey@adacore.com>
1959 * ada-exp.y (primary): Use new type for null pointer.
1960 * ada-lang.c (ada_type_match): Remove "may_deref"
1961 parameter. Handle null pointer.
1962 (ada_args_match): Update.
1963 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1964 Handle null pointer.
1966 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1968 * NEWS: Mention new commands.
1969 * python/python.c (python_ignore_environment): New static global.
1970 (show_python_ignore_environment): New function.
1971 (set_python_ignore_environment): New function.
1972 (python_dont_write_bytecode): New static global.
1973 (show_python_dont_write_bytecode): New function.
1974 (set_python_dont_write_bytecode): New function.
1975 (_initialize_python): Register new commands.
1977 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1979 * extension-priv.h (struct extension_language_ops): Rename
1980 'finish_initialization' to 'initialize'.
1981 * extension.c (finish_ext_lang_initialization): Renamed to...
1982 (ext_lang_initialization): ...this, update comment, and updated
1983 the calls to reflect the change in struct extension_language_ops.
1984 * extension.h (finish_ext_lang_initialization): Renamed to...
1985 (ext_lang_initialization): ...this.
1986 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1987 (gdbscm_initialize): ...this, update comment at definition.
1988 (guile_extension_ops): Update.
1989 * main.c (captured_main_1): Update call to
1990 finish_ext_lang_initialization.
1991 * python/python.c (gdbpy_finish_initialization): Rename to...
1992 (gdbpy_initialize): ...this, update comment at definition, and
1993 update call to do_finish_initialization.
1994 (python_extension_ops): Update.
1995 (do_finish_initialization): Rename to...
1996 (do_initialize): ...this, and update comment.
1998 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2000 * main.c (captured_main_1): Add a call to
2001 finish_ext_lang_initialization.
2002 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
2004 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2006 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
2007 (gdbscm_finish_initialization): Add code moved from
2009 (_initialize_guile): Move code to gdbscm_finish_initialization.
2010 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
2011 _initialize_scm_arch.
2012 (_initialize_scm_arch): New function.
2013 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
2014 into _initialize_scm_block.
2015 (_initialize_scm_block): New function.
2016 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
2017 into _initialize_scm_frame.
2018 (_initialize_scm_frame): New function.
2019 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
2020 into _initialize_scm_objfile.
2021 (_initialize_scm_objfile): New function.
2022 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
2023 code into _initialize_scm_progspace.
2024 (_initialize_scm_progspace): New function.
2025 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
2026 into _initialize_scm_symbol.
2027 (_initialize_scm_symbol): New function.
2028 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
2029 into _initialize_scm_symtab.
2030 (_initialize_scm_symtab): New function.
2031 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
2032 _initialize_scm_type.
2033 (_initialize_scm_type): New function.
2035 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2037 * python/py-arch.c (_initialize_py_arch): New function.
2038 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
2039 * python/py-block.c (_initialize_py_block): New function.
2040 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
2041 * python/py-inferior.c (_initialize_py_inferior): New function.
2042 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
2043 * python/py-objfile.c (_initialize_py_objfile): New function.
2044 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
2045 * python/py-progspace.c (_initialize_py_progspace): New function.
2046 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
2047 * python/py-registers.c (_initialize_py_registers): New function.
2048 (gdbpy_initialize_registers): Move code to
2049 _initialize_py_registers.
2050 * python/py-symbol.c (_initialize_py_symbol): New function.
2051 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
2052 * python/py-symtab.c (_initialize_py_symtab): New function.
2053 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
2054 * python/py-type.c (_initialize_py_type): New function.
2055 (gdbpy_initialize_types): Move code to _initialize_py_type.
2056 * python/py-unwind.c (_initialize_py_unwind): New function.
2057 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
2058 * python/python.c (_initialize_python): Move call to
2059 do_start_initialization to gdbpy_finish_initialization.
2060 (gdbpy_finish_initialization): Add call to
2061 do_start_initialization.
2063 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2065 * extension.c (struct scoped_default_signal): New struct.
2066 (scoped_default_sigint): New typedef.
2067 (finish_ext_lang_initialization): Make use of
2068 scoped_default_sigint.
2070 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2072 * main.c (captured_main_1): Don't pass argument to gdb_init.
2073 * top.c (gdb_init): Remove unused argument, and add header
2075 * top.h (gdb_init): Remove argument.
2077 2021-04-27 Luis Machado <luis.machado@linaro.org>
2079 * psymtab.c (psymbol_functions::dump): Output newline.
2081 * symmisc.c (dump_objfile): Likewise.
2083 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2084 Simon Marchi <simon.marchi@polymtl.ca>
2086 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
2087 when attaching the 'auto_load_new_objfile' observer, so
2088 other observers can specify it as a dependency.
2089 * gdb/auto-load.h (struct token): Declare
2090 'auto_load_new_objfile_observer_token' as token to be used
2091 for the 'auto_load_new_objfile' observer.
2092 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
2093 'python_new_objfile' observer depend on 'auto_load_new_objfile'
2094 observer, so it gets notified after the latter.
2096 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2097 Simon Marchi <simon.marchi@polymtl.ca>
2099 * unittests/observable-selftests.c (dependency_test_counters):
2101 (observer_token0, observer_token1, observer_token2,
2102 observer_token3, observer_token4, observer_token5): New.
2103 (struct dependency_observer_data): New struct.
2104 (observer_dependency_test_callback): New function.
2105 (test_observers): New.
2106 (run_dependency_test): New function.
2107 (test_dependency): New.
2108 (_initialize_observer_selftest): Register dependency test.
2110 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
2113 * cli/cli-dump.c (dump_binary_file): Check result of
2116 2021-04-25 Sergei Trofimovich <siarheit@google.com>
2118 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
2119 by passing `process_stratum_target*` parameter.
2121 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
2124 * typeprint.h (struct type_print_options): Add print_in_hex
2126 (struct print_offset_data): Add print_in_hex flag, add a
2127 constructor accepting a type_print_options* argument.
2128 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
2129 default value for print_in_hex.
2130 (print_offset_data::indentation): Allow more horizontal space.
2131 (print_offset_data::print_offset_data): Add ctor.
2132 (print_offset_data::maybe_print_hole, print_offset_data::update):
2133 Handle the print_in_hex flag.
2134 (whatis_exp): Handle 'x' and 'd' flags.
2135 (print_offsets_and_sizes_in_hex): Declare.
2136 (set_print_offsets_and_sizes_in_hex): Create.
2137 (show_print_offsets_and_sizes_in_hex): Create.
2138 (_initialize_typeprint): Update help message for the ptype
2139 command, register the 'set print type hex' and 'show print type
2141 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
2142 (c_type_print_base): Construct the print_offset_data
2143 object using the type_print_optons parameter.
2144 * rust-lang.c (rust_language::print_type): Construct the
2145 print_offset_data object using the type_print_optons parameter.
2146 * NEWS: Mention the new flags of the ptype command.
2148 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
2150 * typeprint.h (struct type_print_options): Move before
2153 2021-04-25 Joel Brobecker <brobecker@adacore.com>
2157 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
2159 * observable.c (observer_debug): Change to bool.
2161 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2163 * dwarf2/read.c: Add 'unordered_set' include.
2164 (dwarf2_base_index_functions::map_symbol_filenames): Replace
2165 'visited' hash table with 'qfn_cache' unordered_set. Remove use
2166 of per_Bfd->filenames_cache cache, and use function local
2167 filenames_cache instead. Reindent.
2168 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
2170 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2172 * breakpoint.c (iterate_over_bp_locations): Change callback to
2173 function view, remove data parameter.
2174 * breakpoint.h (iterate_over_bp_locations): Likewise.
2175 * record-full.c (record_full_sync_record_breakpoints): Remove
2178 2021-04-22 Tom Tromey <tom@tromey.com>
2180 * c-typeprint.c (c_type_print_base_struct_union): Use
2181 print_spaces_filtered_with_print_options.
2183 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2186 * python/py-type.c (typy_range): Check that bounds are constant
2187 before accessing them as such.
2188 * guile/scm-type.c (gdbscm_type_range): Likewise.
2190 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2192 * Makefile.in (COMMON_SFILES): Remove continuations.c.
2193 * inferior.c (inferior::add_continuation): New method, adapted
2194 from 'add_inferior_continuation'.
2195 (inferior::do_all_continuations): New method, adapted from
2196 'do_all_inferior_continuations'.
2197 (inferior::~inferior): Clear the list of continuations directly.
2198 * inferior.h (class inferior) <continuations>: Rename into...
2199 <m_continuations>: ...this and make private.
2200 * continuations.c: Remove.
2201 * continuations.h: Remove.
2202 * event-top.c: Don't include "continuations.h".
2204 Update the users below.
2205 * inf-loop.c (inferior_event_handler)
2206 * infcmd.c (attach_command)
2207 (notice_new_inferior): Update.
2209 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2211 * inferior.h (class inferior) <continuations>: Change the type
2212 to be an std::list of std::function's.
2213 Update the references and uses below.
2214 * continuations.c (struct continuation): Delete.
2215 (make_continuation): Delete.
2216 (do_my_continuations_1): Delete.
2217 (do_my_continuations): Delete.
2218 (discard_my_continuations_1): Delete.
2219 (discard_my_continuations): Delete.
2220 (add_inferior_continuation): Update.
2221 (do_all_inferior_continuations): Update.
2222 (discard_all_inferior_continuations): Update.
2223 * continuations.h (add_inferior_continuation): Update to take
2224 an std::function as the parameter.
2225 * infcmd.c (struct attach_command_continuation_args): Delete.
2226 (attach_command_continuation): Delete.
2227 (attach_command_continuation_free_args): Delete.
2228 (attach_command): Update.
2229 (notice_new_inferior): Update.
2231 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2233 * continuations.h: Update the general comment.
2234 * inferior.h (class inferior) <continuations>: Update the comment.
2235 * interps.c: Do not include "continuations.h".
2237 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2239 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2240 parameter. Update the references below.
2241 * continuations.c (do_my_continuations_1)
2242 (do_my_continuations)
2243 (do_all_inferior_continuations): Update.
2244 * inf-loop.c (inferior_event_handler): Update.
2245 * infcmd.c (attach_command_continuation): Update.
2247 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2249 * infcmd.c (attach_post_wait): Update the function comment.
2251 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2253 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2254 Update the references below.
2255 (struct attach_command_continuation_args)
2256 (attach_command_continuation)
2257 (attach_command_continuation_free_args)
2259 (notice_new_inferior): Update to remove the reference to 'args'.
2261 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2262 Tom de Vries <tdevries@suse.de>
2265 * remote.c (remote_target_is_non_stop_p): New function.
2266 * remote.h (remote_target_is_non_stop_p): Declare.
2267 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2268 to check non-stopness using notif_state->remote rather current target.
2270 2021-04-22 Tom Tromey <tom@tromey.com>
2272 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2273 (struct typed_val_int) <val>: Now ULONGEST.
2274 (rust_parser::parse_array_type): Remove negative check.
2275 (rust_lex_int_test): Change 'value' to ULONGEST.
2277 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2279 * arch-utils.c (default_addressable_memory_unit_size): Return a
2280 value based on bfd's bits per byte.
2282 2021-04-21 Tom Tromey <tom@tromey.com>
2284 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2286 (struct dwarf2_per_cu_data): Rearrange.
2287 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2289 (struct comp_unit_head): Rearrange.
2290 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2292 2021-04-21 Tom de Vries <tdevries@suse.de>
2295 * configure.ac: Remove --without-included-regex/--with-included-regex.
2296 * config.in: Regenerate.
2297 * configure: Regenerate.
2298 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2300 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2302 * breakpoint.h (create_breakpoint): Add a new parameter,
2304 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2305 argument when 'parse_extra' is false to check if the condition
2306 is invalid at all of the breakpoint locations.
2307 Update the users below.
2313 (create_tracepoint_from_upload): Update.
2314 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2315 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2316 * python/py-breakpoint.c (bppy_init): Update.
2317 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2319 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2321 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2322 disabled-by-condition locations on MI-like output.
2323 (breakpoint_1): Do not display the disabled-by-condition footnote
2324 if the output is MI-like.
2326 2021-04-21 Frederic Cambus <fred@statdns.com>
2328 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2329 update year range in generated copyright notices.
2331 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2333 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2334 qualifier_seq_noopt.
2336 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2338 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2340 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2342 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2343 (producer_is_icc): Replace use of std::regex with gdb's
2346 2021-04-17 Tom Tromey <tom@tromey.com>
2349 * dwarf2/read.c (class offset_view): New.
2350 (struct symbol_table_slot): Remove.
2351 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2352 <symbol_name_index, symbol_vec_index>: New methods.
2353 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2355 (read_gdb_index_from_buffer): Update.
2356 (struct dw2_symtab_iterator) <vec>: Change type.
2357 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2358 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2359 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2360 <append_array, append_offset>: New methods.
2361 (write_hash_table, add_address_entry, write_gdbindex_1)
2362 (write_debug_names): Update.
2363 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2365 2021-04-17 Tom Tromey <tom@tromey.com>
2367 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2370 2021-04-17 Tom Tromey <tom@tromey.com>
2372 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2373 from map_matching_symbols. Change parameters.
2374 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2375 Rename from map_matching_symbols. Change parameters.
2376 * dwarf2/read.c (struct dwarf2_gdb_index)
2377 <expand_matching_symbols>: Rename from map_matching_symbols.
2379 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2380 Rename from map_matching_symbols. Change parameters.
2381 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2382 dw2_map_matching_symbols. Change parameters.
2383 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2385 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2386 map_matching_symbols. Change parameters.
2387 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2388 from map_matching_symbols. Change parameters.
2389 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2390 map_matching_symbols. Change parameters.
2391 * ada-lang.c (map_matching_symbols): New function.
2392 (add_nonlocal_symbols): Update.
2394 2021-04-17 Tom Tromey <tom@tromey.com>
2396 * quick-symbol.h (struct quick_symbol_functions)
2397 <expand_symtabs_with_fullname>: Remove.
2398 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2400 * psympriv.h (struct psymbol_functions)
2401 <expand_symtabs_with_fullname>: Remove.
2402 * dwarf2/read.c (struct dwarf2_base_index_functions)
2403 <expand_symtabs_with_fullname>: Remove.
2404 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2406 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2408 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2411 2021-04-17 Tom Tromey <tom@tromey.com>
2413 * symfile-debug.c (objfile::expand_symtabs_for_function):
2415 * quick-symbol.h (struct quick_symbol_functions)
2416 <expand_symtabs_for_function>: Remove.
2417 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2419 * psympriv.h (struct psymbol_functions)
2420 <expand_symtabs_for_function>: Remove.
2421 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2423 * dwarf2/read.c (struct dwarf2_gdb_index)
2424 <expand_symtabs_for_function>: Remove.
2425 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2427 (find_slot_in_mapped_hash): Remove.
2428 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2429 (dw2_symtab_iter_init): Remove one overload.
2430 (dwarf2_gdb_index::expand_symtabs_for_function)
2431 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2433 2021-04-17 Tom Tromey <tom@tromey.com>
2435 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2437 * quick-symbol.h (struct quick_symbol_functions)
2438 <map_symtabs_matching_filename>: Remove.
2439 * psymtab.c (partial_map_expand_apply)
2440 (psymbol_functions::map_symtabs_matching_filename): Remove.
2441 * psympriv.h (struct psymbol_functions)
2442 <map_symtabs_matching_filename>: Remove.
2443 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2445 * dwarf2/read.c (struct dwarf2_base_index_functions)
2446 <map_symtabs_matching_filename>: Remove.
2447 (dw2_map_expand_apply)
2448 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2451 2021-04-17 Tom Tromey <tom@tromey.com>
2453 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2454 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2456 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2457 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2458 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2459 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2461 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2462 (dwarf2_gdb_index::lookup_symbol)
2463 (dwarf2_debug_names_index::lookup_symbol): Remove.
2465 2021-04-17 Tom Tromey <tom@tromey.com>
2467 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2468 * symmisc.c (maintenance_expand_symtabs): Update.
2469 * symfile.c (expand_symtabs_matching): Update.
2470 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2472 * quick-symbol.h (struct quick_symbol_functions)
2473 <expand_symtabs_matching>: Add 'domain' parameter.
2474 * psymtab.c (recursively_search_psymtabs)
2475 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2477 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2478 Add 'domain' parameter.
2479 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2481 * linespec.c (iterate_over_all_matching_symtabs): Update.
2482 * dwarf2/read.c (struct dwarf2_gdb_index)
2483 <expand_symtabs_matching>: Add 'domain' parameter.
2484 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2486 (dw2_expand_symtabs_matching)
2487 (dwarf2_gdb_index::expand_symtabs_matching)
2488 (dw2_debug_names_iterator)
2489 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2492 2021-04-17 Tom Tromey <tom@tromey.com>
2494 * symtab.c (global_symbol_searcher::expand_symtabs)
2495 (default_collect_symbol_completion_matches_break_on): Update.
2496 * symmisc.c (maintenance_expand_symtabs): Update.
2497 * symfile.h (expand_symtabs_matching): Add search_flags
2499 * symfile.c (expand_symtabs_matching): Add search_flags
2501 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2502 search_flags parameter.
2503 * quick-symbol.h (struct quick_symbol_functions)
2504 <expand_symtabs_matching>: Add search_flags parameter.
2505 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2506 * psymtab.c (recursively_search_psymtabs)
2507 (psymbol_functions::expand_symtabs_matching): Add search_flags
2509 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2510 Add search_flags parameter.
2511 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2512 search_flags parameter.
2513 * linespec.c (iterate_over_all_matching_symtabs): Update.
2514 * dwarf2/read.c (struct dwarf2_gdb_index)
2515 <expand_symtabs_matching>: Add search_flags parameter.
2516 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2517 search_flags parameter.
2518 (dw2_map_matching_symbols): Update.
2519 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2520 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2522 (dw2_debug_names_iterator): Change block_index to search flags.
2523 <m_block_index>: Likewise.
2524 (dw2_debug_names_iterator::next)
2525 (dwarf2_debug_names_index::lookup_symbol)
2526 (dwarf2_debug_names_index::expand_symtabs_for_function)
2527 (dwarf2_debug_names_index::map_matching_symbols)
2528 (dwarf2_debug_names_index::map_matching_symbols): Update.
2529 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2530 search_flags parameter.
2531 * ada-lang.c (ada_add_global_exceptions)
2532 (collect_symbol_completion_matches): Update.
2534 2021-04-17 Tom Tromey <tom@tromey.com>
2536 * symtab.c (default_collect_symbol_completion_matches_break_on):
2538 * symfile.h (expand_symtabs_matching): Return bool.
2539 * symfile.c (expand_symtabs_matching): Return bool.
2540 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2542 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2543 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2545 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2547 * psympriv.h (struct psymbol_functions)
2548 <expand_symtabs_matching>: Return bool.
2549 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2551 * dwarf2/read.c (struct dwarf2_gdb_index)
2552 <expand_symtabs_matching>: Return bool.
2553 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2555 (dw2_expand_symtabs_matching_symbol): Return bool.
2556 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2557 (dw2_expand_symtabs_matching)
2558 (dwarf2_gdb_index::expand_symtabs_matching)
2559 (dwarf2_debug_names_index::expand_symtabs_matching)
2560 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2562 2021-04-17 Tom Tromey <tom@tromey.com>
2564 * quick-symbol.h (enum block_search_flag_values): New.
2565 (block_search_flags): New enum flags type.
2567 2021-04-16 Tom Tromey <tom@tromey.com>
2569 * rust-parse.c: New file.
2570 * rust-exp.y: Remove.
2571 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2572 (SFILES): Remove rust-exp.y.
2573 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2575 2021-04-16 Luis Machado <luis.machado@linaro.org>
2577 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2579 2021-04-15 John Baldwin <jhb@FreeBSD.org>
2581 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2582 use throughout file.
2584 2021-04-15 Tom Tromey <tromey@adacore.com>
2586 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2589 2021-04-15 Tom Tromey <tromey@adacore.com>
2591 * printcmd.c (print_variable_and_value): Use
2592 common_val_print_checked.
2594 2021-04-15 Tom Tromey <tromey@adacore.com>
2596 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2597 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2599 * p-exp.y (variable): Update.
2600 * m2-exp.y (variable): Update.
2601 * go-exp.y (variable): Update.
2602 * expprint.c (dump_for_expression): New overload.
2603 * expop.h (check_objfile): New overload.
2604 (check_constant): New overload.
2605 (class var_value_operation): Use block_symbol.
2606 <get_symbol>: Rewrite.
2607 * eval.c (var_value_operation::evaluate)
2608 (var_value_operation::evaluate_funcall)
2609 (var_value_operation::evaluate_for_address)
2610 (var_value_operation::evaluate_for_address)
2611 (var_value_operation::evaluate_with_coercion)
2612 (var_value_operation::evaluate_for_sizeof)
2613 (var_value_operation::evaluate_for_cast): Update.
2614 * d-exp.y (PrimaryExpression): Update.
2615 * c-exp.y (variable): Update.
2616 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2617 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2618 (ada_var_value_operation::evaluate)
2619 (ada_var_value_operation::resolve)
2620 (ada_funcall_operation::resolve): Update.
2621 * ada-exp.y (write_var_from_sym, write_object_renaming)
2622 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2623 (maybe_overload): Update.
2624 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2626 2021-04-15 Tom Tromey <tom@tromey.com>
2627 Andrew Burgess <andrew.burgess@embecosm.com>
2630 * main.c (captured_main_1): Call check_quiet_mode.
2631 * top.c (startup_quiet): New global.
2632 (check_quiet_mode): New function.
2633 (show_startup_quiet): New function.
2634 (init_main): Register new command.
2635 * top.h (check_quiet_mode): Declare.
2637 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2640 * NEWS: Mention new early init files and command line options.
2641 * config.in: Regenerate.
2642 * configure: Regenerate.
2643 * configure.ac: Define GDBEARLYINIT.
2644 * main.c (get_earlyinit_files): New function.
2645 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2646 CMDARG_EARLYINIT_COMMAND.
2647 (captured_main_1): Add support for new command line flags, and for
2648 processing startup files.
2649 (print_gdb_help): Include startup files in the output.
2651 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2653 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2654 (relocate_file_path_maybe_in_datadir): ...this.
2655 (class gdb_initfile_finder): New class.
2656 (get_init_files): Now uses gdb_initfile_finder.
2657 (print_gdb_help): Print 'None found' when there are no init files.
2659 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2661 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2662 corresponding child of the abstract DIE when iterating the
2663 children of the concrete DIE.
2665 2021-04-13 Tom de Vries <tdevries@suse.de>
2667 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2670 2021-04-13 Luis Machado <luis.machado@linaro.org>
2672 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2675 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2677 * rs6000-tdep.c: Add support for single-stepping of
2678 prefixed instructions.
2680 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2683 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2684 handle the addpcis/lnia instruction.
2686 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2688 * MAINTAINERS (Write After Approval): Add myself.
2690 2021-4-12 Carl Love <cel@us.ibm.com>
2692 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2693 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2696 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2698 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2699 * nat/windows-nat.h: Likewise.
2701 2021-04-10 Eli Zaretskii <eliz@gnu.org>
2703 * windows-nat.c (windows_nat::handle_load_dll): Call
2704 windows_add_dll if get_image_name failed to glean the name of the
2705 DLL by using the lpImageName pointer.
2706 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2707 (windows_add_dll): Now does what windows_add_all_dlls did before,
2708 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2709 specifies the address where the DLL was loaded into the inferior,
2710 and looks for the single DLL loaded at that address.
2712 2021-04-09 Luis Machado <luis.machado@linaro.org>
2714 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2716 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2718 * darwin-nat.c (darwin_nat_target::resume): Remove status
2721 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2723 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2724 prologue end for Intel compilers.
2725 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2726 * producer.c (producer_is_icc_ge_19): New function.
2727 * producer.h (producer_is_icc_ge_19): New declaration.
2729 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2731 * producer.c: (producer_is_icc): Update for new version scheme.
2732 (producer_parsing_tests): Update names and expected results.
2733 * producer.h: (producer_is_icc): Update comment accordingly.
2735 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2737 * target.h (struct target_ops) <follow_fork>: Return void.
2738 (target_follow_fork): Likewise.
2739 * target.c (default_follow_fork): Likewise.
2740 (target_follow_fork): Likewise.
2741 * infrun.c (follow_fork_inferior): Adjust.
2742 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2743 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2744 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2745 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2746 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2747 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2748 * remote.c (class remote_target) <follow_fork>: Likewise.
2749 (remote_target::follow_fork): Likewise.
2750 * target-delegates.c: Re-generate.
2752 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
2754 * ctfread.c (fetch_tid_type): New function, use throughout file.
2755 (read_forward_type): New function.
2756 (read_type_record): Call read_forward_type.
2758 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2760 * f-exp.h (class fortran_structop_operation): New class.
2761 * f-exp.y (exp): Create fortran_structop_operation instead of the
2762 generic structop_operation.
2763 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2764 expression as EVAL_NORMAL if the result type was dynamic so we can
2765 extract the actual array bounds.
2766 (fortran_structop_operation::evaluate): New function.
2768 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2770 * eval.c (evaluate_subexp_standard): Remove
2771 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2774 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2776 * valops.c (value_cast): Call value_deeply_equal before performing
2779 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2781 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2784 2021-04-07 Caroline Tice <cmtice@google.com>
2786 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2787 the search paths used resolve relative location of .dwo file.
2789 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2791 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2793 (dwarf2_section_info::get_file_name): Add an assert.
2794 (dwarf2_section_info::read_string): Display a minimal, sane error
2795 when the dwarf2_section_info is not associated with a bfd section.
2797 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2799 * top.c (staged_gdb_datadir): Update comment.
2800 (set_gdb_datadir): Copy the value of gdb_datadir back into
2802 (init_main): Initialise staged_gdb_datadir.
2804 2021-04-06 Tom de Vries <tdevries@suse.de>
2806 PR breakpoints/25884
2807 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2810 2021-04-06 Tom de Vries <tdevries@suse.de>
2813 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2816 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2818 * avr-tdep.c (avr_frame_unwind_cache): Use
2819 trad_frame_saved_reg::is_addr.
2821 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2823 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2826 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2828 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2829 objfile parameter for objfile_per_bfd_storage, adjust callers.
2830 (struct standard_psymtab) <standard_psymtab>: Likewise.
2831 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2832 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2833 * ctfread.c (struct ctf_psymtab): Likewise.
2834 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2835 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2836 (dwarf2_create_include_psymtab): Likewise.
2837 * objfiles.h (struct objfile_per_bfd_storage)
2838 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2839 <get_bfd>: New method.
2841 * objfiles.c (get_objfile_bfd_data): Adjust.
2843 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2845 * psymtab.c (partial_symtab::partial_symtab): Change
2846 last_objfile_name to be an std::string.
2847 * symfile.c (allocate_symtab): Likewise.
2849 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2851 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2853 (struct objfile) <intern>: Use
2854 objfile::objfile_per_bfd_storage::intern.
2856 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2858 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2859 with type::is_flag_enum.
2861 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2863 * gdbtypes.h (struct type) <is_flag_enum,
2864 set_is_flag_enum>: New methods.
2865 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2866 write call sites to use type::set_is_flag_enum.
2868 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2870 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2871 with type::is_declared_class.
2873 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2875 * gdbtypes.h (struct type) <is_declared_class,
2876 set_is_declared_class>: New methods.
2877 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2878 write call sites to use type::set_is_declared_class.
2880 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2882 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2883 to avoid deprecation warnings.
2885 2021-04-01 Martin Liska <mliska@suse.cz>
2887 * cp-name-parser.y: Use startswith instead of strncmp.
2888 * m2-exp.y: Likewise.
2889 * macroexp.c (substitute_args): Likewise.
2890 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2891 * rust-exp.y: Likewise.
2893 2021-03-31 Tom Tromey <tom@tromey.com>
2895 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2896 with dw2_map_matching_symbols.
2897 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2898 dw2_expand_symtabs_matching.
2900 2021-03-31 Tom Tromey <tromey@adacore.com>
2902 * dwarf2/stringify.h: Fix typo.
2904 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2907 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2908 with objfiles using READNOW.
2910 2021-03-29 Tom Tromey <tromey@adacore.com>
2912 * top.c (check_frame_language_change): Update.
2913 * language.c (language_info): Remove parameter.
2914 * language.h (language_info): Remove parameter.
2916 2021-03-29 Luis Machado <luis.machado@linaro.org>
2918 * compile/compile.c (get_args): Don't add empty argv entries.
2920 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2923 * procfs.c (procfs_target::attach): Define inf.
2925 (procfs_target::create_inferior): Likewise.
2927 2021-03-28 Tom Tromey <tom@tromey.com>
2929 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2930 (elf_symfile_read): Simplify.
2931 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2932 (make_lazy_dwarf_reader): New function.
2933 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2934 (dwarf2_initialize_objfile): Return void. Remove index_kind
2935 parameter. Push on 'qf' list.
2936 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2937 type. Remove 'index_kind' parameter.
2938 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2940 2021-03-27 Tom Tromey <tom@tromey.com>
2942 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2944 2021-03-27 Tom Tromey <tom@tromey.com>
2946 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2948 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2950 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2953 2021-03-26 Tom Tromey <tom@tromey.com>
2955 * symtab.c (struct output_source_filename_data): Add 'output'
2956 method and operator().
2957 (output_source_filename_data::output): Rename from
2958 output_source_filename.
2959 (output_partial_symbol_filename): Remove.
2960 (info_sources_command): Update.
2961 (struct add_partial_filename_data): Add operator().
2962 (add_partial_filename_data::operator()): Rename from
2963 maybe_add_partial_symtab_filename.
2964 (make_source_files_completion_list): Update.
2965 * symfile.c (quick_symbol_functions): Update.
2966 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2967 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2968 'need_fullname'. Remove 'data' parameter.
2969 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2970 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2971 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2972 Change type of 'fun' and 'need_fullname'. Remove 'data'
2974 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2975 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2976 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2978 (mi_cmd_file_list_exec_source_files): Update.
2980 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2982 2021-03-26 Tom Tromey <tom@tromey.com>
2984 * ada-lang.c (struct match_data): Add operator().
2985 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2986 (callback): Remove 'callback'.
2988 2021-03-26 Tom Tromey <tom@tromey.com>
2990 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2991 call make_ignore_params once.
2993 2021-03-26 Tom Tromey <tom@tromey.com>
2995 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2998 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2999 Pedro Alves <pedro@palves.net>
3001 * async-event.c: Include "infrun.h".
3002 (async_event_handler_marked): New.
3003 * async-event.h (async_event_handler_marked): Declare.
3004 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
3005 inferior before calling target method. Don't commit-resumed if
3006 target_has_pending_events is true.
3007 * remote.c (remote_target::has_pending_events): New.
3008 * target-delegates.c: Regenerate.
3009 * target.c (target_has_pending_events): New.
3010 * target.h (target_ops::has_pending_events): New target method.
3011 (target_has_pending_events): New.
3013 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
3014 Pedro Alves <pedro@palves.net>
3016 * infcmd.c (run_command_1, attach_command, detach_command)
3017 (interrupt_target_1): Use scoped_disable_commit_resumed.
3018 * infrun.c (do_target_resume): Remove
3019 target_commit_resume call.
3020 (commit_resume_all_targets): Remove.
3021 (maybe_set_commit_resumed_all_targets): New.
3022 (maybe_call_commit_resumed_all_targets): New.
3023 (enable_commit_resumed): New.
3024 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
3025 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
3026 (scoped_disable_commit_resumed::reset)
3027 (scoped_disable_commit_resumed::reset_and_commit)
3028 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
3029 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
3031 (proceed): Use scoped_disable_commit_resumed and
3032 maybe_call_commit_resumed_all_targets.
3033 (fetch_inferior_event): Use scoped_disable_commit_resumed.
3034 * infrun.h (struct scoped_disable_commit_resumed): New.
3035 (maybe_call_commit_resumed_all_process_targets): New.
3036 (struct scoped_enable_commit_resumed): New.
3037 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
3038 * process-stratum-target.h (class process_stratum_target):
3039 <commit_resumed_state>: New.
3040 * record-full.c (record_full_wait_1): Change commit_resumed_state
3041 around calling commit_resumed.
3042 * remote.c (class remote_target) <commit_resume>: Rename to...
3043 <commit_resumed>: ... this.
3044 (struct stop_reply): Move up.
3045 (remote_target::commit_resume): Rename to...
3046 (remote_target::commit_resumed): ... this. Check if there is any
3047 thread pending vCont resume.
3048 (remote_target::remote_stop_ns): Generate stop replies for resumed
3049 but pending vCont threads.
3050 (remote_target::wait_ns): Add gdb_assert.
3051 * target-delegates.c: Regenerate.
3052 * target.c (target_wait, target_resume): Assert that the current
3053 process_stratum target isn't in commit-resumed state.
3054 (defer_target_commit_resume): Remove.
3055 (target_commit_resume): Remove.
3056 (target_commit_resumed): New.
3057 (make_scoped_defer_target_commit_resume): Remove.
3058 (target_stop): Assert that the current process_stratum target
3059 isn't in commit-resumed state.
3060 * target.h (struct target_ops) <commit_resume>: Rename to ...
3061 <commit_resumed>: ... this.
3062 (target_commit_resume): Remove.
3063 (target_commit_resumed): New.
3064 (make_scoped_defer_target_commit_resume): Remove.
3065 * top.c (wait_sync_command_done): Use
3066 scoped_enable_commit_resumed.
3068 2021-03-26 Pedro Alves <pedro@palves.net>
3070 * target.c (target_always_non_stop_p): Also check whether the
3073 2021-03-26 Tom Tromey <tom@tromey.com>
3075 * dwarf2/read.c (dwarf2_read_debug_names)
3076 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
3077 (dw2_debug_names_iterator::next, create_type_unit_group):
3080 2021-03-25 Pedro Alves <pedro@palves.net>
3082 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
3083 around setting the breakpoint.
3085 2021-03-25 Pedro Alves <pedro@palves.net>
3088 (remote_target::check_pending_events_prevent_wildcard_vcont):
3089 Check whether the event's ptid is not null_ptid before looking up
3090 the corresponding inferior.
3092 2021-03-24 Changbin Du <changbin.du@gmail.com>
3094 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
3097 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3099 * target.h (current_top_target): Remove, make callers use the
3100 current inferior instead.
3101 * target.c (current_top_target): Remove.
3103 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3105 * target.h (target_shortname): Change to function declaration.
3106 (target_longname): Likewise.
3107 (target_attach_no_wait): Likewise.
3108 (target_post_attach): Likewise.
3109 (target_prepare_to_store): Likewise.
3110 (target_supports_enable_disable_tracepoint): Likewise.
3111 (target_supports_string_tracing): Likewise.
3112 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
3113 (target_supports_dumpcore): Likewise.
3114 (target_dumpcore): Likewise.
3115 (target_can_run_breakpoint_commands): Likewise.
3116 (target_files_info): Likewise.
3117 (target_post_startup_inferior): Likewise.
3118 (target_insert_fork_catchpoint): Likewise.
3119 (target_remove_fork_catchpoint): Likewise.
3120 (target_insert_vfork_catchpoint): Likewise.
3121 (target_remove_vfork_catchpoint): Likewise.
3122 (target_insert_exec_catchpoint): Likewise.
3123 (target_remove_exec_catchpoint): Likewise.
3124 (target_set_syscall_catchpoint): Likewise.
3125 (target_rcmd): Likewise.
3126 (target_can_lock_scheduler): Likewise.
3127 (target_can_async_p): Likewise.
3128 (target_is_async_p): Likewise.
3129 (target_execution_direction): Likewise.
3130 (target_extra_thread_info): Likewise.
3131 (target_pid_to_exec_file): Likewise.
3132 (target_thread_architecture): Likewise.
3133 (target_find_memory_regions): Likewise.
3134 (target_make_corefile_notes): Likewise.
3135 (target_get_bookmark): Likewise.
3136 (target_goto_bookmark): Likewise.
3137 (target_stopped_by_watchpoint): Likewise.
3138 (target_stopped_by_sw_breakpoint): Likewise.
3139 (target_supports_stopped_by_sw_breakpoint): Likewise.
3140 (target_stopped_by_hw_breakpoint): Likewise.
3141 (target_supports_stopped_by_hw_breakpoint): Likewise.
3142 (target_have_steppable_watchpoint): Likewise.
3143 (target_can_use_hardware_watchpoint): Likewise.
3144 (target_region_ok_for_hw_watchpoint): Likewise.
3145 (target_can_do_single_step): Likewise.
3146 (target_insert_watchpoint): Likewise.
3147 (target_remove_watchpoint): Likewise.
3148 (target_insert_hw_breakpoint): Likewise.
3149 (target_remove_hw_breakpoint): Likewise.
3150 (target_can_accel_watchpoint_condition): Likewise.
3151 (target_can_execute_reverse): Likewise.
3152 (target_get_ada_task_ptid): Likewise.
3153 (target_filesystem_is_local): Likewise.
3154 (target_trace_init): Likewise.
3155 (target_download_tracepoint): Likewise.
3156 (target_can_download_tracepoint): Likewise.
3157 (target_download_trace_state_variable): Likewise.
3158 (target_enable_tracepoint): Likewise.
3159 (target_disable_tracepoint): Likewise.
3160 (target_trace_start): Likewise.
3161 (target_trace_set_readonly_regions): Likewise.
3162 (target_get_trace_status): Likewise.
3163 (target_get_tracepoint_status): Likewise.
3164 (target_trace_stop): Likewise.
3165 (target_trace_find): Likewise.
3166 (target_get_trace_state_variable_value): Likewise.
3167 (target_save_trace_data): Likewise.
3168 (target_upload_tracepoints): Likewise.
3169 (target_upload_trace_state_variables): Likewise.
3170 (target_get_raw_trace_data): Likewise.
3171 (target_get_min_fast_tracepoint_insn_len): Likewise.
3172 (target_set_disconnected_tracing): Likewise.
3173 (target_set_circular_trace_buffer): Likewise.
3174 (target_set_trace_buffer_size): Likewise.
3175 (target_set_trace_notes): Likewise.
3176 (target_get_tib_address): Likewise.
3177 (target_set_permissions): Likewise.
3178 (target_static_tracepoint_marker_at): Likewise.
3179 (target_static_tracepoint_markers_by_strid): Likewise.
3180 (target_traceframe_info): Likewise.
3181 (target_use_agent): Likewise.
3182 (target_can_use_agent): Likewise.
3183 (target_augmented_libraries_svr4_read): Likewise.
3184 (target_log_command): Likewise.
3185 * target.c (target_shortname): New.
3186 (target_longname): New.
3187 (target_attach_no_wait): New.
3188 (target_post_attach): New.
3189 (target_prepare_to_store): New.
3190 (target_supports_enable_disable_tracepoint): New.
3191 (target_supports_string_tracing): New.
3192 (target_supports_evaluation_of_breakpoint_conditions): New.
3193 (target_supports_dumpcore): New.
3194 (target_dumpcore): New.
3195 (target_can_run_breakpoint_commands): New.
3196 (target_files_info): New.
3197 (target_post_startup_inferior): New.
3198 (target_insert_fork_catchpoint): New.
3199 (target_remove_fork_catchpoint): New.
3200 (target_insert_vfork_catchpoint): New.
3201 (target_remove_vfork_catchpoint): New.
3202 (target_insert_exec_catchpoint): New.
3203 (target_remove_exec_catchpoint): New.
3204 (target_set_syscall_catchpoint): New.
3206 (target_can_lock_scheduler): New.
3207 (target_can_async_p): New.
3208 (target_is_async_p): New.
3209 (target_execution_direction): New.
3210 (target_extra_thread_info): New.
3211 (target_pid_to_exec_file): New.
3212 (target_thread_architecture): New.
3213 (target_find_memory_regions): New.
3214 (target_make_corefile_notes): New.
3215 (target_get_bookmark): New.
3216 (target_goto_bookmark): New.
3217 (target_stopped_by_watchpoint): New.
3218 (target_stopped_by_sw_breakpoint): New.
3219 (target_supports_stopped_by_sw_breakpoint): New.
3220 (target_stopped_by_hw_breakpoint): New.
3221 (target_supports_stopped_by_hw_breakpoint): New.
3222 (target_have_steppable_watchpoint): New.
3223 (target_can_use_hardware_watchpoint): New.
3224 (target_region_ok_for_hw_watchpoint): New.
3225 (target_can_do_single_step): New.
3226 (target_insert_watchpoint): New.
3227 (target_remove_watchpoint): New.
3228 (target_insert_hw_breakpoint): New.
3229 (target_remove_hw_breakpoint): New.
3230 (target_can_accel_watchpoint_condition): New.
3231 (target_can_execute_reverse): New.
3232 (target_get_ada_task_ptid): New.
3233 (target_filesystem_is_local): New.
3234 (target_trace_init): New.
3235 (target_download_tracepoint): New.
3236 (target_can_download_tracepoint): New.
3237 (target_download_trace_state_variable): New.
3238 (target_enable_tracepoint): New.
3239 (target_disable_tracepoint): New.
3240 (target_trace_start): New.
3241 (target_trace_set_readonly_regions): New.
3242 (target_get_trace_status): New.
3243 (target_get_tracepoint_status): New.
3244 (target_trace_stop): New.
3245 (target_trace_find): New.
3246 (target_get_trace_state_variable_value): New.
3247 (target_save_trace_data): New.
3248 (target_upload_tracepoints): New.
3249 (target_upload_trace_state_variables): New.
3250 (target_get_raw_trace_data): New.
3251 (target_get_min_fast_tracepoint_insn_len): New.
3252 (target_set_disconnected_tracing): New.
3253 (target_set_circular_trace_buffer): New.
3254 (target_set_trace_buffer_size): New.
3255 (target_set_trace_notes): New.
3256 (target_get_tib_address): New.
3257 (target_set_permissions): New.
3258 (target_static_tracepoint_marker_at): New.
3259 (target_static_tracepoint_markers_by_strid): New.
3260 (target_traceframe_info): New.
3261 (target_use_agent): New.
3262 (target_can_use_agent): New.
3263 (target_augmented_libraries_svr4_read): New.
3264 (target_log_command): New.
3265 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3266 * infrun.c (set_schedlock_func): Adjust.
3267 * mi/mi-main.c (exec_reverse_continue): Adjust.
3268 * reverse.c (exec_reverse_once): Adjust.
3269 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3270 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3271 * remote-sim.c (gdbsim_target::detach): Adjust.
3272 (gdbsim_target::files_info): Adjust.
3274 2021-03-24 Tom Tromey <tom@tromey.com>
3276 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3277 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3278 (check_match, dw2_expand_symtabs_matching)
3279 (dwarf2_debug_names_index::map_matching_symbols)
3280 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3282 2021-03-24 Keith Seitz <keiths@redhat.com>
3284 * compile/compile-cplus-types.c
3285 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3288 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3290 * gdbarch.sh (gdbarch_data_registry): Make static.
3291 * gdbarch.c: Re-generate.
3293 2021-03-24 Luis Machado <luis.machado@linaro.org>
3295 * NEWS: Mention memory tagging changes.
3297 2021-03-24 Luis Machado <luis.machado@linaro.org>
3299 * printcmd.c (decode_format): Handle the 'm' modifier.
3300 (do_examine): Display allocation tags when required/supported.
3301 (should_validate_memtags): New function.
3302 (print_command_1): Display memory tag mismatches.
3303 * valprint.c (show_memory_tag_violations): New function.
3304 (value_print_option_defs): Add new option "memory-tag-violations".
3305 (user_print_options) <memory_tag_violations>: Initialize to 1.
3306 * valprint.h (struct format_data) <print_tags>: New field.
3307 (value_print_options) <memory_tag_violations>: New field.
3309 2021-03-24 Luis Machado <luis.machado@linaro.org>
3311 * printcmd.c: Include gdbsupport/rsp-low.h.
3312 (memory_tag_list): New static global.
3313 (process_print_command_args): Factored out of
3315 (print_command_1): Use process_print_command_args.
3316 (show_addr_not_tagged, show_memory_tagging_unsupported)
3317 (memory_tag_command, memory_tag_print_tag_command)
3318 (memory_tag_print_logical_tag_command)
3319 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3320 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3321 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3323 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3325 2021-03-24 Luis Machado <luis.machado@linaro.org>
3327 * aarch64-linux-tdep.c
3328 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3329 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3331 2021-03-24 Luis Machado <luis.machado@linaro.org>
3333 * aarch64-linux-tdep.c
3334 (aarch64_linux_report_signal_info): New function.
3335 (aarch64_linux_init_abi): Register
3336 aarch64_linux_report_signal_info as the report_signal_info hook.
3337 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3338 (SEGV_MTESERR): Define.
3340 2021-03-24 Luis Machado <luis.machado@linaro.org>
3342 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3343 (aarch64_linux_ltag_tests): New function.
3344 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3346 2021-03-24 Luis Machado <luis.machado@linaro.org>
3348 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3349 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3350 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3351 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3353 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3354 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3355 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3356 (aarch64_linux_get_ltag): New functions.
3357 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3358 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3359 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3360 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3362 2021-03-24 Luis Machado <luis.machado@linaro.org>
3364 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3366 (struct smaps_data): New struct.
3367 (decode_vmflags): Handle the 'mt' flag.
3368 (parse_smaps_data): New function, refactored from
3369 linux_find_memory_regions_full.
3370 (linux_address_in_memtag_page): New function.
3371 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3372 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3374 2021-03-24 Luis Machado <luis.machado@linaro.org>
3376 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3377 instead of char arrays.
3379 2021-03-24 Luis Machado <luis.machado@linaro.org>
3381 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3382 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3383 nat/aarch64-mte-linux-ptrace.h.
3384 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3385 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3387 <fetch_memtags>: New method override.
3388 <store_memtags>: New method override.
3389 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3390 (aarch64_linux_nat_target::fetch_memtags): New method.
3391 (aarch64_linux_nat_target::store_memtags): New method.
3392 * arch/aarch64-mte-linux.c: New file.
3393 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3394 (AARCH64_MTE_GRANULE_SIZE): Define.
3395 (aarch64_memtag_type): New enum.
3396 (aarch64_mte_get_tag_granules): New prototype.
3397 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3398 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3399 * nat/aarch64-mte-linux-ptrace.c: New file.
3400 * nat/aarch64-mte-linux-ptrace.h: New file.
3402 2021-03-24 Luis Machado <luis.machado@linaro.org>
3404 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3405 * nat/aarch64-mte-linux-ptrace.h: New file.
3407 2021-03-24 Luis Machado <luis.machado@linaro.org>
3409 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3410 (store_mteregs_to_thread): New function.
3411 (aarch64_linux_nat_target::fetch_registers): Update to call
3412 fetch_mteregs_from_thread.
3413 (aarch64_linux_nat_target::store_registers): Update to call
3414 store_mteregs_to_thread.
3415 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3416 (aarch64_cannot_store_register): Handle MTE registers.
3417 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3418 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3419 <has_mte>: New method.
3420 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3422 2021-03-24 Luis Machado <luis.machado@linaro.org>
3424 * aarch64-linux-nat.c
3425 (aarch64_linux_nat_target::read_description): Take MTE flag into
3427 Slight refactor to hwcap flag checking.
3428 * aarch64-linux-tdep.c
3429 (aarch64_linux_core_read_description): Likewise.
3430 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3432 (aarch64_read_description): Add mte_p parameter and update to use it.
3433 Update the documentation.
3434 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3435 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3436 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3437 (aarch64_create_target_description): Add mte_p parameter and update
3439 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3441 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3442 * features/aarch64-mte.c: New file, generated.
3443 * features/aarch64-mte.xml: New file.
3445 2021-03-24 Luis Machado <luis.machado@linaro.org>
3447 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3448 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3449 * aarch64-linux-tdep.c: Likewise
3450 * arch/aarch64-mte-linux.h: New file.
3452 2021-03-24 Luis Machado <luis.machado@linaro.org>
3454 * remote: Include gdbsupport/selftest.h.
3455 (test_memory_tagging_functions): New function.
3456 (_initialize_remote): Register test_memory_tagging_functions.
3458 2021-03-24 Luis Machado <luis.machado@linaro.org>
3460 * remote.c (PACKET_memory_tagging_feature): New enum.
3461 (remote_memory_tagging_p): New function.
3462 (remote_protocol_features): New "memory-tagging" entry.
3463 (remote_target::remote_query_supported): Handle memory tagging
3465 (remote_target::supports_memory_tagging): Implement.
3466 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3467 (create_store_memtags_request): New functions.
3468 (remote_target::fetch_memtags): Implement.
3469 (remote_target::store_memtags): Implement.
3470 (_initialize_remote): Add new "memory-tagging-feature"
3473 2021-03-24 Luis Machado <luis.machado@linaro.org>
3475 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3476 (default_memtag_matches_p, default_set_memtags)
3477 (default_get_memtag): New functions.
3478 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3479 (default_memtag_matches_p, default_set_memtags)
3480 (default_get_memtag): New prototypes.
3481 * gdbarch.c: Regenerate.
3482 * gdbarch.h: Regenerate.
3483 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3484 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3485 (enum memtag_type): New enum.
3487 2021-03-24 Luis Machado <luis.machado@linaro.org>
3489 * remote.c (remote_target) <supports_memory_tagging>: New method
3491 <fetch_memtags>: New method override.
3492 <store_memtags>: New method override.
3493 (remote_target::supports_memory_tagging): New method.
3494 (remote_target::fetch_memtags): New method.
3495 (remote_target::store_memtags): New method.
3496 * target-delegates.c: Regenerate.
3497 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3499 <fetch_memtags>: New virtual method.
3500 <store_memtags>: New virtual method.
3501 (target_supports_memory_tagging): Define.
3502 (target_fetch_memtags): Define.
3503 (target_store_memtags): Define.
3504 * target-debug.h (target_debug_print_size_t)
3505 (target_debug_print_const_gdb_byte_vector_r)
3506 (target_debug_print_gdb_byte_vector_r): New functions.
3508 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3510 * target.h (target_longname): Remove.
3512 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3514 * target.h (target_is_pushed): Remove, update callers to use
3515 inferior::target_is_pushed instead.
3516 * target.c (target_is_pushed): Remove.
3518 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3520 * target.h (push_target): Remove, update callers to use
3521 inferior::push_target.
3522 * target.c (push_target): Remove.
3523 * inferior.h (class inferior) <push_target>: New overload.
3525 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3527 * target.h (unpush_target): Remove, update all callers
3528 to use `inferior::unpush_target` instead.
3529 (struct target_unpusher) <operator()>: Just declare.
3530 * target.c (unpush_target): Remove.
3531 (target_unpusher::operator()): New.
3533 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3535 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3537 (process_full_comp_unit): Validate the top-level tag before
3538 processing the first DIE.
3539 (read_func_scope): Ensure we have a valid builder.
3541 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3543 * objc-lang.c (objc_demangle): Renamed to
3544 objc_language::demangle_symbol, and moved later in the file.
3545 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3547 (objc_language::demangle_symbol): Defined outside of class
3548 declaration. The definition is the old objc_demangle with NULL
3549 changed to nullptr, and if conditions relating to nullptr pointers
3550 or null character checks made explicit.
3551 * objc-lang.h (objc_demangle): Delete declaration.
3553 2021-03-22 Martin Liska <mliska@suse.cz>
3555 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3556 (_initialize_arm_tdep): Likewise.
3558 2021-03-20 Tom Tromey <tom@tromey.com>
3560 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3561 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3562 * psymtab.h (make_psymbol_functions): Don't declare.
3563 * psymtab.c (make_psymbol_functions): Remove.
3564 (maintenance_print_psymbols): Update.
3565 * psympriv.h (struct psymbol_functions): Add no-argument
3567 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3568 <partial_symtabs>: Remove.
3569 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3570 * elfread.c (read_partial_symbols): Update.
3571 (elf_symfile_read): Remove check for existing partial symbols.
3573 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3575 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3577 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3579 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3580 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3582 2021-03-20 Tom Tromey <tom@tromey.com>
3584 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3585 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3586 * symfile-debug.c (objfile::has_partial_symbols)
3587 (objfile::find_last_source_symtab)
3588 (objfile::forget_cached_source_info)
3589 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3590 (objfile::print_stats, objfile::dump)
3591 (objfile::expand_symtabs_for_function)
3592 (objfile::expand_all_symtabs)
3593 (objfile::expand_symtabs_with_fullname)
3594 (objfile::map_matching_symbols)
3595 (objfile::expand_symtabs_matching)
3596 (objfile::find_pc_sect_compunit_symtab)
3597 (objfile::map_symbol_filenames)
3598 (objfile::find_compunit_symtab_by_address)
3599 (objfile::lookup_global_symbol_language)
3600 (objfile::require_partial_symbols): Update.
3601 * psymtab.c (maintenance_print_psymbols)
3602 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3603 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3604 * objfiles.c (objfile_relocate1): Update.
3605 * elfread.c (elf_symfile_read): Update.
3607 2021-03-20 Tom Tromey <tom@tromey.com>
3609 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3611 2021-03-20 Tom Tromey <tom@tromey.com>
3613 * psymtab.c (psymbol_functions::count_psyms): Rename.
3614 (psymbol_functions::print_stats): Update.
3615 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3618 2021-03-20 Tom Tromey <tom@tromey.com>
3620 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3621 (psymbol_functions::find_pc_sect_psymtab): Rename.
3622 (psymbol_functions::find_pc_sect_compunit_symtab)
3623 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3624 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3626 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3628 2021-03-20 Tom Tromey <tom@tromey.com>
3630 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3631 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3632 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3634 (add_psymbol_to_bcache): Remove.
3635 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3636 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3638 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3639 <add_psymbol>: Likewise.
3640 (standard_psymtab, legacy_psymtab): Likewise.
3641 * mdebugread.c (parse_partial_symbols): Update.
3642 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3643 (handle_psymbol_enumerators): Update.
3644 (new_psymtab): Add partial_symtabs parameter.
3645 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3646 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3648 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3649 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3651 * dbxread.c (read_dbx_symtab): Update.
3652 (start_psymtab): Add partial_symtabs parameter.
3653 (dbx_end_psymtab): Update.
3654 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3655 (ctf_psymtab): Add partial_symtabs parameter.
3656 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3658 (scan_partial_symbols): Add partial_symtabs parameter.
3659 (scan_partial_symbols, elfctf_build_psymtabs)
3660 (ctf_psymtab_add_enums): Update.
3662 2021-03-20 Tom Tromey <tom@tromey.com>
3664 * symfile.c (read_symbols): Use objfile method.
3665 * symfile-debug.c (objfile::require_partial_symbols): New method.
3666 * psymtab.h (require_partial_symbols): Don't declare.
3667 * psymtab.c (require_partial_symbols): Use objfile method. Now
3669 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3670 (psymbol_functions::lookup_symbol)
3671 (psymbol_functions::lookup_global_symbol_language)
3672 (psymbol_functions::find_last_source_symtab)
3673 (psymbol_functions::forget_cached_source_info)
3674 (psymbol_functions::print_stats)
3675 (psymbol_functions::expand_symtabs_for_function)
3676 (psymbol_functions::expand_all_symtabs)
3677 (psymbol_functions::expand_symtabs_with_fullname)
3678 (psymbol_functions::map_symbol_filenames)
3679 (psymbol_functions::map_matching_symbols)
3680 (psymbol_functions::expand_symtabs_matching)
3681 (psymbol_functions::find_compunit_symtab_by_address)
3682 (maintenance_print_psymbols, maintenance_info_psymtabs)
3683 (maintenance_check_psymtabs): Update.
3684 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3687 2021-03-20 Tom Tromey <tom@tromey.com>
3689 * xcoffread.c (xcoff_sym_fns): Update.
3690 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3691 * symfile-debug.c (objfile::has_partial_symbols): Use
3692 can_lazily_read_symbols.
3693 (debug_sym_read_psymbols): Remove.
3694 (debug_sym_fns, install_symfile_debug_logging): Update.
3695 * quick-symbol.h (struct quick_symbol_functions)
3696 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3697 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3698 * mipsread.c (ecoff_sym_fns): Update.
3699 * machoread.c (macho_sym_fns): Update.
3700 * elfread.c (struct lazy_dwarf_reader): New.
3701 (elf_symfile_read): Update.
3702 (read_psyms): Now a method of lazy_dwarf_reader.
3703 (elf_sym_fns): Update.
3704 (elf_sym_fns_lazy_psyms): Remove.
3705 * dbxread.c (aout_sym_fns): Update.
3706 * coffread.c (coff_sym_fns): Update.
3708 2021-03-20 Tom Tromey <tom@tromey.com>
3710 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3711 (reread_symbols): Move reset_psymtabs call later.
3712 * objfiles.c (objfile::objfile): Don't initialize
3715 2021-03-20 Tom Tromey <tom@tromey.com>
3717 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3718 set_partial_symtabs.
3719 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3720 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3722 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3724 (psymbol_functions::find_pc_sect_compunit_symtab)
3725 (psymbol_functions::print_stats, psymbol_functions::dump)
3726 (psymbol_functions::has_symbols): Update.
3727 (make_psymbol_functions, dump_psymtab_addrmap): Add
3728 partial_symtabs parameter.
3729 (maintenance_print_psymbols): Update.
3730 (psymbol_functions::expand_symtabs_matching): Update.
3731 * psympriv.h (struct psymbol_functions): Add constructor.
3732 <m_partial_symtabs>: New member.
3733 <set_partial_symtabs>: New method.
3735 2021-03-20 Tom Tromey <tom@tromey.com>
3737 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3739 (process_psymtab_comp_unit_reader)
3740 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3741 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3742 Reference psymtabs via per_bfd.
3744 2021-03-20 Tom Tromey <tom@tromey.com>
3746 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3748 (add_address_entry): Remove objfile parameter.
3749 (add_address_entry_worker): Update.
3750 (write_address_map): Replace objfile parameter with per_bfd.
3751 (write_gdbindex, write_psymtabs_to_index): Update.
3753 2021-03-20 Tom Tromey <tom@tromey.com>
3755 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3756 print_bcache parameter.
3757 * symfile-debug.c (objfile::print_stats): Add print_bcache
3759 * quick-symbol.h (struct quick_symbol_functions)
3760 <print_stats>: Add print_bcache parameter.
3761 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3763 (print_objfile_statistics): Move psymtab code to psymtab.c.
3764 * psymtab.c (count_psyms): Move from symmisc.c.
3765 (psymbol_functions::print_stats): Print partial symbol and bcache
3766 statistics. Add print_bcache parameter.
3767 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3768 (struct objfile) <print_stats>: Add print_bcache parameter.
3769 * maint.c (maintenance_print_statistics): Update.
3771 2021-03-20 Tom Tromey <tom@tromey.com>
3773 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3775 * dwarf2/read.c (create_addrmap_from_index)
3776 (create_addrmap_from_aranges): Set per_bfd addrmap.
3777 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3778 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3780 (dwarf2_read_debug_names): Don't set partial_symtabs.
3781 (dwarf2_initialize_objfile): Likewise.
3783 2021-03-20 Tom Tromey <tom@tromey.com>
3785 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3788 2021-03-20 Tom Tromey <tom@tromey.com>
3790 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3791 (~psymtab_discarder, keep): Update.
3792 <m_objfile>: Remove.
3793 <m_partial_symtabs>: New member.
3794 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3796 2021-03-20 Tom Tromey <tom@tromey.com>
3798 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3799 (xcoff_end_psymtab): Update.
3800 (scan_xcoff_symtab): Add partial_symtabs parameter.
3801 (xcoff_initial_scan): Update.
3802 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3803 * mdebugread.c (mdebug_build_psymtabs): Update.
3804 (parse_partial_symbols): Add partial_symtabs parameter.
3805 * dbxread.c (dbx_symfile_read): Update.
3806 (read_dbx_symtab): Add partial_symtabs parameter.
3807 (read_dbx_symtab): Update.
3808 (dbx_end_psymtab): Add partial_symtabs parameter.
3810 2021-03-20 Tom Tromey <tom@tromey.com>
3812 * quick-symbol.h (struct quick_symbol_functions)
3813 <relocated>: New method.
3814 * psymtab.h (struct psymbol_functions) <relocated>: New
3816 <fill_psymbol_map>: Declare method.
3817 <m_psymbol_map>: New member.
3818 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3819 (psymbol_functions::find_compunit_symtab_by_address): Update.
3820 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3821 (struct objfile) <psymbol_map>: Remove.
3822 * objfiles.c (objfile_relocate1): Update.
3824 2021-03-20 Tom Tromey <tom@tromey.com>
3826 * psympriv.h (struct psymbol_functions): New.
3827 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3828 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3829 (objfile::lookup_global_symbol_language): Update.
3830 * quick-symbol.h (struct quick_symbol_functions): Convert function
3831 pointers to methods. Add virtual destructor.
3832 (quick_symbol_functions_up): New typedef.
3833 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3834 (dwarf2_debug_names_functions): Don't declare.
3835 (make_psymbol_functions): Declare.
3836 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3837 (psymbol_functions::find_pc_sect_compunit_symtab)
3838 (psymbol_functions::lookup_symbol)
3839 (psymbol_functions::lookup_global_symbol_language)
3840 (psymbol_functions::find_last_source_symtab)
3841 (psymbol_functions::forget_cached_source_info)
3842 (psymbol_functions::print_stats, psymbol_functions::dump)
3843 (psymbol_functions::expand_symtabs_for_function)
3844 (psymbol_functions::expand_all_symtabs)
3845 (psymbol_functions::expand_symtabs_with_fullname)
3846 (psymbol_functions::map_symbol_filenames)
3847 (psymbol_functions::map_matching_symbols)
3848 (psymbol_functions::expand_symtabs_matching)
3849 (psymbol_functions::has_symbols)
3850 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3851 (psym_functions): Remove.
3852 (make_psymbol_functions): New function.
3853 * objfiles.h (struct objfile) <qf>: Change type.
3854 * elfread.c (elf_symfile_read): Update.
3855 * dwarf2/read.c (struct dwarf2_base_index_functions)
3856 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3857 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3858 (dwarf2_base_index_functions::find_last_source_symtab)
3859 (dwarf2_base_index_functions::forget_cached_source_info)
3860 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3861 (dwarf2_gdb_index::lookup_symbol)
3862 (dwarf2_base_index_functions::print_stats)
3863 (dwarf2_gdb_index::dump)
3864 (dwarf2_gdb_index::expand_symtabs_for_function)
3865 (dwarf2_base_index_functions::expand_all_symtabs)
3866 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3868 (dwarf2_gdb_index::map_matching_symbols): New method.
3869 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3870 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3871 (dwarf2_base_index_functions::map_symbol_filenames)
3872 (dwarf2_base_index_functions::has_symbols): Rename.
3873 (dwarf2_gdb_index_functions): Remove.
3874 (dwarf2_debug_names_index::lookup_symbol)
3875 (dwarf2_debug_names_index::dump)
3876 (dwarf2_debug_names_index::expand_symtabs_for_function)
3877 (dwarf2_debug_names_index::map_matching_symbols)
3878 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3879 (dwarf2_debug_names_functions): Remove.
3880 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3883 2021-03-20 Tom Tromey <tom@tromey.com>
3885 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3887 * xcoffread.c (xcoff_sym_fns): Update.
3888 * symfile.h (struct sym_fns) <qf>: Remove.
3889 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3890 * symfile-debug.c (objfile::has_partial_symbols)
3891 (objfile::find_last_source_symtab)
3892 (objfile::forget_cached_source_info)
3893 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3894 (objfile::print_stats, objfile::dump)
3895 (objfile::expand_symtabs_for_function)
3896 (objfile::expand_all_symtabs)
3897 (objfile::expand_symtabs_with_fullname)
3898 (objfile::map_matching_symbols)
3899 (objfile::expand_symtabs_matching)
3900 (objfile::find_pc_sect_compunit_symtab)
3901 (objfile::map_symbol_filenames)
3902 (objfile::find_compunit_symtab_by_address)
3903 (objfile::lookup_global_symbol_language, debug_sym_fns)
3904 (install_symfile_debug_logging): Update.
3905 * objfiles.h (struct objfile) <qf>: New member.
3906 * mipsread.c (ecoff_sym_fns): Update.
3907 * machoread.c (macho_sym_fns): Update.
3908 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3910 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3911 * dbxread.c (aout_sym_fns): Update.
3912 * coffread.c (coff_sym_fns): Update.
3914 2021-03-20 Tom Tromey <tom@tromey.com>
3916 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3917 (expand_symtabs_file_matcher_ftype)
3918 (expand_symtabs_symbol_matcher_ftype)
3919 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3920 Move to quick-symbol.h.
3921 * quick-symbol.h: New file.
3923 2021-03-20 Tom Tromey <tom@tromey.com>
3925 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3926 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3927 (basic_lookup_transparent_type_quick)
3928 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3929 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3931 * symmisc.c (print_objfile_statistics, dump_objfile)
3932 (maintenance_expand_symtabs): Update.
3933 * symfile.c (symbol_file_add_with_addrs)
3934 (expand_symtabs_matching, map_symbol_filenames): Update.
3935 * symfile-debug.c (objfile::has_partial_symbols)
3936 (objfile::find_last_source_symtab)
3937 (objfile::forget_cached_source_info)
3938 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3939 (objfile::print_stats, objfile::dump)
3940 (objfile::expand_symtabs_for_function)
3941 (objfile::expand_all_symtabs)
3942 (objfile::expand_symtabs_with_fullname)
3943 (objfile::map_matching_symbols)
3944 (objfile::expand_symtabs_matching)
3945 (objfile::find_pc_sect_compunit_symtab)
3946 (objfile::map_symbol_filenames)
3947 (objfile::find_compunit_symtab_by_address)
3948 (objfile::lookup_global_symbol_language): New methods.
3949 (debug_sym_quick_functions): Remove.
3950 (debug_sym_fns, install_symfile_debug_logging): Update.
3951 * source.c (forget_cached_source_info_for_objfile)
3952 (select_source_symtab): Update.
3953 * objfiles.h (struct objfile): Add methods corresponding to
3954 quick_symbol_functions.
3955 * objfiles.c (objfile::has_partial_symbols): Move to
3957 * linespec.c (iterate_over_all_matching_symtabs): Update.
3958 * cp-support.c (add_symbol_overload_list_qualified): Update.
3959 * ada-lang.c (add_nonlocal_symbols): Update.
3961 2021-03-20 Tom Tromey <tom@tromey.com>
3963 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3964 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3966 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3967 * psymtab.c (psym_has_symbols): Return bool.
3968 * objfiles.c (objfile::has_partial_symbols): Return bool.
3969 * dwarf2/read.c (dw2_has_symbols): Return bool.
3971 2021-03-20 Tom Tromey <tom@tromey.com>
3973 * symfile.c (read_symbols): Update.
3974 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3975 (objfile_has_partial_symbols): Don't declare.
3976 * objfiles.c (objfile::has_partial_symbols): Rename from
3977 objfile_has_partial_symbols.
3978 (objfile_has_symbols, have_partial_symbols): Update.
3979 * elfread.c (elf_symfile_read): Update.
3980 * dwarf2/read.c (dwarf2_has_info): Update.
3981 * coffread.c (coff_symfile_read): Update.
3983 2021-03-20 Tom Tromey <tom@tromey.com>
3985 * coffread.c: Include dwarf2/public.h.
3986 * dwarf2/frame.c: Include dwarf2/public.h.
3987 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3988 * dwarf2/public.h: New file.
3989 * dwarf2/read.c: Include dwarf2/public.h.
3990 * elfread.c: Include dwarf2/public.h.
3991 * machoread.c: Include dwarf2/public.h.
3992 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3993 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3994 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3995 * xcoffread.c: Include dwarf2/public.h.
3997 2021-03-20 Tom Tromey <tom@tromey.com>
3999 * symfile.h (enum dwarf2_section_enum)
4000 (dwarf2_get_section_info): Move to dwarf2/read.h.
4001 * dwarf2/read.h (enum dwarf2_section_enum)
4002 (dwarf2_get_section_info): Move from symfile.h.
4004 2021-03-19 Pedro Alves <pedro@palves.net>
4006 * thread.c (any_thread_of_inferior): Check if there's a selected
4007 thread before calling inferior_thread().
4009 2021-03-18 Tom Tromey <tromey@adacore.com>
4011 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
4013 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
4014 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
4016 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4018 * python/py-param.c (get_set_value): Update header comment.
4020 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4022 * infrun.c (check_multi_target_resumption): Remove argument to
4023 all_non_exited_inferiors.
4025 2021-03-16 Christian Biesinger <cbiesinger@google.com>
4027 * windows-nat.c (windows_init_thread_list): Add message to
4030 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
4032 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
4033 well as PyLong_Check for Python 2.
4035 2021-03-15 Tom Tromey <tromey@adacore.com>
4038 * rust-exp.y (maker_map): Use gdb::hash_enum.
4039 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
4041 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4043 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
4046 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4048 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
4049 parameter, adjust caller.
4051 2021-03-15 Tom Tromey <tromey@adacore.com>
4053 * ada-exp.y (simple_exp): Always push a result for unary '+'.
4055 2021-03-15 Tom Tromey <tromey@adacore.com>
4057 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
4058 ada_ensure_varsize_limit.
4060 2021-03-15 Tom Tromey <tromey@adacore.com>
4062 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
4064 * ada-exp.y (maybe_overload): New function.
4065 (ada_wrap_overload): New function.
4066 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
4067 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
4068 (or_else_exp, xor_exp, primary): Update.
4070 2021-03-15 Tom Tromey <tromey@adacore.com>
4073 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
4074 call for tagged type.
4076 2021-03-15 Tom Tromey <tromey@adacore.com>
4078 * ada-exp.y (exp1): Handle resolution of the right hand side of an
4081 2021-03-15 Tom Tromey <tromey@adacore.com>
4083 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
4085 (ada_assign_operation::evaluate): Update.
4086 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
4089 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
4091 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
4093 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
4095 * python/python.c (gdbpy_source_objfile_script): Use
4096 make_scoped_restore to restore gdbpy_current_objfile.
4097 (gdbpy_execute_objfile_script): Likewise.
4099 2021-03-14 Tom Tromey <tom@tromey.com>
4101 * dwarf2/read.c (read_attribute_value): Use cu_header
4104 2021-03-14 Tom Tromey <tom@tromey.com>
4106 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
4107 (peek_die_abbrev): Use reader.abfd.
4109 2021-03-14 Tom Tromey <tom@tromey.com>
4111 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
4114 2021-03-13 Tom Tromey <tom@tromey.com>
4116 * dwarf2/read.c (struct partial_die_info): Update.
4117 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
4118 (load_partial_dies, partial_die_info::partial_die_info): Update.
4119 * dwarf2/abbrev.h (lookup_abbrev): Constify.
4121 2021-03-13 Tom Tromey <tom@tromey.com>
4123 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
4125 2021-03-12 Christian Biesinger <cbiesinger@google.com>
4128 * cp-support.c: Use scoped_segv_handler_restore.
4129 * event-top.c (thread_local_segv_handler): Made static.
4130 (scoped_segv_handler_restore::scoped_segv_handler_restore):
4132 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
4134 * event-top.h (class scoped_segv_handler_restore): New class.
4135 (thread_local_segv_handler): Removed.
4137 2021-03-10 Tom Tromey <tromey@adacore.com>
4139 * parser-defs.h (parser_state): Change completion to bool.
4140 <parse_completion>: Likewise.
4141 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4142 (ada_resolve_variable, ada_resolve_function): Update.
4143 * ada-lang.c (ada_find_operator_symbol): Change
4144 parse_completion to bool.
4145 (ada_resolve_funcall, ada_resolve_variable)
4146 (ada_resolve_function): Likewise.
4148 2021-03-09 Tom Tromey <tromey@adacore.com>
4150 * eval.c (operation::evaluate_funcall): Use function formal
4151 parameter types when evaluating.
4153 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4155 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
4156 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
4157 and owner to m_owner.
4159 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
4161 * f-exp.h (eval_op_f_loc): Declare.
4162 (expr::fortran_loc_operation): New typedef.
4163 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
4165 (f77_keywords): Add LOC keyword.
4166 * f-lang.c (eval_op_f_loc): New function.
4167 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
4169 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4171 * f-exp.h (eval_op_f_array_shape): Declare.
4172 (fortran_array_shape_operation): New type.
4173 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
4175 (f77_keywords): Add "shape" keyword.
4176 * f-lang.c (fortran_array_shape): New function.
4177 (eval_op_f_array_shape): New function.
4178 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
4180 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4182 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
4184 (expr::fortran_array_size_1arg): New type.
4185 (expr::fortran_array_size_2arg): Likewise.
4186 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
4187 UNOP_OR_BINOP_INTRINSIC.
4188 (f77_keywords): Add "size" keyword.
4189 * f-lang.c (fortran_array_size): New function.
4190 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
4191 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
4193 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4195 * f-exp.h (eval_op_f_rank): Declare.
4196 (expr::fortran_rank_operation): New typedef.
4197 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
4199 (f77_keywords): Add "rank" keyword.
4200 * f-lang.c (eval_op_f_rank): New function.
4201 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
4203 2021-03-08 Tom Tromey <tom@tromey.com>
4205 * printcmd.c (set_command): Remove null check.
4206 * value.c (init_if_undefined_command): Remove null check.
4208 2021-03-08 Tom Tromey <tom@tromey.com>
4210 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
4212 * p-exp.y (variable): Update.
4213 * go-exp.y (variable): Update.
4214 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
4215 Remove overload for objfile.
4216 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
4218 (check_objfile): Likewise.
4219 (dump_for_expression): Likewise. Remove overload for objfile.
4220 (class var_msym_value_operation): Use bound_minimal_symbol.
4221 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
4223 (var_msym_value_operation::evaluate_for_address)
4224 (var_msym_value_operation::evaluate_for_sizeof)
4225 (var_msym_value_operation::evaluate_for_cast): Update.
4226 * d-exp.y (PrimaryExpression): Update.
4227 * c-exp.y (variable): Update.
4228 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
4229 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4231 * ada-exp.y (write_var_or_type): Update.
4233 2021-03-08 Tom Tromey <tom@tromey.com>
4235 * parser-defs.h (exp_uses_objfile): Return bool.
4236 * parse.c (exp_uses_objfile): Return bool.
4238 2021-03-08 Tom Tromey <tom@tromey.com>
4240 * value.h (eval_skip_value): Don't declare.
4241 * opencl-lang.c (eval_opencl_assign): Update.
4242 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4243 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4244 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4245 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4246 * expop.h (typeof_operation::evaluate)
4247 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4248 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4249 (cxx_cast_operation::evaluate): Update.
4250 * eval.c (eval_skip_value): Remove.
4251 (eval_op_scope, eval_op_var_entry_value)
4252 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4253 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4254 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4255 (eval_op_binary, eval_op_subscript, eval_op_equal)
4256 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4257 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4258 (eval_op_complement, eval_op_lognot, eval_op_ind)
4259 (eval_op_memval, eval_op_preinc, eval_op_predec)
4260 (eval_op_postinc, eval_op_postdec, eval_op_type)
4261 (eval_binop_assign_modify, eval_op_objc_msgcall)
4262 (eval_multi_subscript, logical_and_operation::evaluate)
4263 (logical_or_operation::evaluate, array_operation::evaluate)
4264 (operation::evaluate_for_cast)
4265 (var_msym_value_operation::evaluate_for_cast)
4266 (var_value_operation::evaluate_for_cast): Update.
4267 * c-lang.c (c_string_operation::evaluate): Update.
4268 * c-exp.h (objc_nsstring_operation::evaluate)
4269 (objc_selector_operation::evaluate): Update.
4270 * ada-lang.c (ada_assign_operation::evaluate)
4271 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4272 (ada_atr_size): Update.
4274 2021-03-08 Tom Tromey <tom@tromey.com>
4276 * eval.c: Merge "namespace" scopes.
4278 2021-03-08 Tom Tromey <tom@tromey.com>
4280 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4282 * parse.c (expr_builder::expr_builder, expr_builder::release):
4285 2021-03-08 Tom Tromey <tom@tromey.com>
4287 * parse.c (expression::expression, expression::~expression):
4289 * expression.h (struct expression): Inline constructor. Remove
4292 2021-03-08 Tom Tromey <tom@tromey.com>
4294 * std-operator.def (BINOP_END): Remove.
4295 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4296 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4297 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4298 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4299 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4302 2021-03-08 Tom Tromey <tom@tromey.com>
4304 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4306 2021-03-08 Tom Tromey <tom@tromey.com>
4308 * std-operator.def (OP_EXTENDED0): Remove.
4310 2021-03-08 Tom Tromey <tom@tromey.com>
4312 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4313 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4316 2021-03-08 Tom Tromey <tom@tromey.com>
4318 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4319 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4321 2021-03-08 Tom Tromey <tom@tromey.com>
4323 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4324 * ada-lang.c (ada_binop_minmax): Update.
4325 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4326 Use BINOP_MIN and BINOP_MAX.
4328 2021-03-08 Tom Tromey <tom@tromey.com>
4330 * value.h (evaluate_subexp_with_coercion): Don't declare.
4331 * parse.c (exp_descriptor_standard): Remove.
4332 (expr_builder::expr_builder, expr_builder::release): Update.
4333 (expression::expression): Remove size_t parameter.
4334 (expression::~expression): Simplify.
4335 (expression::resize): Remove.
4336 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4337 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4338 (write_exp_elt_longcst, write_exp_elt_floatcst)
4339 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4340 (write_exp_string_vector, write_exp_bitstring): Remove.
4341 * p-lang.h (class pascal_language) <opcode_print_table,
4342 op_print_tab>: Remove.
4343 * p-lang.c (pascal_language::op_print_tab): Remove.
4344 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4346 * objc-lang.c (objc_op_print_tab): Remove.
4347 (class objc_language) <opcode_print_table>: Remove.
4348 * m2-lang.h (class m2_language) <opcode_print_table,
4349 op_print_tab>: Remove.
4350 * m2-lang.c (m2_language::op_print_tab): Remove.
4351 * language.h (struct language_defn) <post_parser, expression_ops,
4352 opcode_print_table>: Remove.
4353 * language.c (language_defn::expression_ops)
4354 (auto_or_unknown_language::opcode_print_table): Remove.
4355 * go-lang.h (class go_language) <opcode_print_table,
4356 op_print_tab>: Remove.
4357 * go-lang.c (go_language::op_print_tab): Remove.
4358 * f-lang.h (class f_language) <opcode_print_table>: Remove
4359 <op_print_tab>: Remove.
4360 * f-lang.c (f_language::op_print_tab): Remove.
4361 * expression.h (union exp_element): Remove.
4362 (struct expression): Remove size_t parameter from constructor.
4364 <first_opcode>: Update.
4365 <nelts, elts>: Remove.
4366 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4367 (evaluate_subexp_standard, print_expression, op_string)
4368 (dump_raw_expression): Don't declare.
4369 * expprint.c (print_expression, print_subexp)
4370 (print_subexp_funcall, print_subexp_standard, op_string)
4371 (dump_raw_expression, dump_subexp, dump_subexp_body)
4372 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4373 (dump_prefix_expression): Update.
4374 * eval.c (evaluate_subexp): Remove.
4375 (evaluate_expression, evaluate_type): Update.
4376 (evaluate_subexpression_type): Remove.
4377 (fetch_subexp_value): Remove "pc" parameter. Update.
4378 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4379 (evaluate_subexp_standard, evaluate_subexp_for_address)
4380 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4381 (evaluate_subexp_for_cast): Remove.
4382 (parse_and_eval_type): Update.
4383 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4384 * d-lang.c (d_op_print_tab): Remove.
4385 (class d_language) <opcode_print_table>: Remove.
4386 * c-lang.h (c_op_print_tab): Don't declare.
4387 * c-lang.c (c_op_print_tab): Remove.
4388 (class c_language, class cplus_language, class asm_language, class
4389 minimal_language) <opcode_print_table>: Remove.
4390 * breakpoint.c (update_watchpoint, watchpoint_check)
4391 (watchpoint_exp_is_const, watch_command_1): Update.
4392 * ax-gdb.h (union exp_element): Don't declare.
4393 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4394 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4395 (gen_expr_binop_rest): Remove.
4396 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4397 * ada-lang.c (ada_op_print_tab): Remove.
4398 (class ada_language) <post_parser, opcode_print_table>: Remove.
4400 2021-03-08 Tom Tromey <tom@tromey.com>
4402 * go-lang.c (go_language::expression_ops): Don't declare.
4403 * go-lang.h (class go_language) <expression_ops>: Remove.
4404 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4406 (class opencl_language) <expression_ops>: Remove.
4407 * d-lang.c (class d_language) <expression_ops>: Remove.
4408 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4409 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4410 (class c_language, class cplus_language, class asm_language)
4411 (class minimal_language) <expression_ops>: Remove.
4413 2021-03-08 Tom Tromey <tom@tromey.com>
4415 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4416 (evaluate_subexp_type, assign_aggregate)
4417 (aggregate_assign_positional, aggregate_assign_from_choices)
4418 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4419 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4420 (ada_operator_check, ada_forward_operator_length)
4421 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4423 (post_parser): Update.
4424 (class ada_language) <expresssion_ops>: Remove.
4426 2021-03-08 Tom Tromey <tom@tromey.com>
4428 * m2-lang.h (class m2_language) <expresssion_ops,
4429 exp_descriptor_modula2>: Remove.
4430 * m2-lang.c (evaluate_subexp_modula2)
4431 (m2_language::exp_descriptor_modula2): Remove.
4433 2021-03-08 Tom Tromey <tom@tromey.com>
4435 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4436 <exp_descriptor_tab>: Remove.
4437 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4438 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4439 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4440 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4443 2021-03-08 Tom Tromey <tom@tromey.com>
4445 * rust-lang.h (class rust_language) <expression_ops,
4446 exp_descriptor_tab>: Remove.
4447 * rust-lang.c (rust_evaluate_funcall): Remove.
4448 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4450 (rust_evaluate_subexp): Remove.
4451 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4452 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4453 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4455 2021-03-08 Tom Tromey <tom@tromey.com>
4457 * ada-exp.y: Create operations.
4458 (empty_stoken): Remove.
4459 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4460 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4461 (components): New global.
4462 (push_component, choice_component, pop_component, pop_components):
4464 (associations): New global
4465 (push_association, pop_association, pop_associations): New
4467 (ada_parse): Update.
4468 (write_var_from_sym, write_int): Create operations.
4469 (write_exp_op_with_string): Remove.
4470 (write_object_renaming, write_selectors, write_ambiguous_var)
4471 (write_var_or_type, write_name_assoc): Create operations.
4472 * ada-lang.h (ada_index_type): Declare.
4473 * ada-lang.c (ada_index_type): No longer static.
4475 2021-03-08 Tom Tromey <tom@tromey.com>
4477 * f-exp.y: Create operations.
4478 (f_language::parser): Update.
4480 2021-03-08 Tom Tromey <tom@tromey.com>
4482 * m2-exp.y: Create operations.
4483 (m2_language::parser): Update.
4485 2021-03-08 Tom Tromey <tom@tromey.com>
4487 * p-exp.y: Create operations.
4488 (pascal_language::parser): Update.
4490 2021-03-08 Tom Tromey <tom@tromey.com>
4492 * d-exp.y: Create operations.
4495 2021-03-08 Tom Tromey <tom@tromey.com>
4497 * go-exp.y: Create operations.
4498 (go_language::parser): Update.
4500 2021-03-08 Tom Tromey <tom@tromey.com>
4502 * objc-lang.c (end_msglist): Create operations.
4503 * c-exp.y: Change parser to create operations.
4504 (write_destructor_name): Remove.
4507 2021-03-08 Tom Tromey <tom@tromey.com>
4509 * rust-exp.y: Create operations.
4510 (rust_parser::convert_params_to_expression): Change return type.
4511 (binop_maker_ftype): New typedef.
4512 (maker_map): New global.
4513 (rust_parser::convert_ast_to_expression): Change return type.
4514 (rust_language::parser): Update.
4515 (_initialize_rust_exp): Initialize maker_map.
4517 2021-03-08 Tom Tromey <tom@tromey.com>
4519 * stap-probe.c (binop_maker_ftype): New typedef.
4520 (stap_maker_map): New global.
4521 (stap_make_binop): New function.
4522 (stap_parse_register_operand): Return operation_up.
4523 (stap_parse_single_operand, stap_parse_argument_conditionally)
4524 (stap_parse_argument_1): Likewise.
4525 (stap_parse_argument): Create operations.
4526 (stap_probe::parse_arguments): Update.
4527 (_initialize_stap_probe): Initialize stap_maker_map.
4528 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4530 * i386-tdep.h (i386_stap_parse_special_token): Change return
4532 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4533 (i386_stap_parse_special_token_three_arg_disp)
4534 (i386_stap_parse_special_token): Change return type.
4535 * gdbarch.sh (stap_parse_special_token): Change return type.
4536 * gdbarch.c: Rebuild.
4537 * gdbarch.h: Rebuild.
4538 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4540 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4543 2021-03-08 Tom Tromey <tom@tromey.com>
4545 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4546 * gdbarch.h: Rebuild.
4547 * gdbarch.c: Rebuild.
4548 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4549 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4551 (amd64_dtrace_parse_probe_argument): Update.
4553 2021-03-08 Tom Tromey <tom@tromey.com>
4555 * parser-defs.h (struct parser_state) <push, push_new,
4556 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4557 wrap2>: New methods.
4558 <m_operations>: New member.
4559 * parse.c (parser_state::push_c_string)
4560 (parser_state::push_symbol, parser_state::push_dollar): New
4563 2021-03-08 Tom Tromey <tom@tromey.com>
4565 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4567 (struct parser_state) <mark_struct_expression>: New method.
4568 * parse.c (parser_state::mark_struct_expression): Update assert.
4569 (parser_state::mark_struct_expression): New method.
4570 (parser_state::mark_completion_tag): Update assert.
4571 (parse_expression_for_completion): Handle expout_last_op.
4573 2021-03-08 Tom Tromey <tom@tromey.com>
4575 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4577 * value.h (fetch_subexp_value): Add "op" parameter.
4578 * value.c (init_if_undefined_command): Update.
4579 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4580 * stap-probe.c (stap_probe::compile_to_ax): Update.
4581 * printcmd.c (set_command): Update.
4582 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4584 * parser-defs.h (struct expr_builder) <set_operation>: New
4586 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4587 * expression.h (struct expression) <first_opcode>: Update.
4589 * expprint.c (dump_raw_expression, dump_prefix_expression):
4591 * expop.h (class var_value_operation) <get_symbol>: New method.
4592 (class register_operation) <get_name>: New method.
4593 (class equal_operation): No longer a typedef, now a subclass.
4594 (class unop_memval_operation) <get_type>: New method.
4595 (class assign_operation) <get_lhs>: New method.
4596 (class unop_cast_operation) <get_type>: New method.
4597 * eval.c (evaluate_expression, evaluate_type)
4598 (evaluate_subexpression_type): Update.
4599 (fetch_subexp_value): Add "op" parameter.
4600 (parse_and_eval_type): Update.
4601 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4602 * breakpoint.c (update_watchpoint, watchpoint_check)
4603 (watchpoint_exp_is_const, watch_command_1): Update.
4604 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4607 2021-03-08 Tom Tromey <tom@tromey.com>
4609 * ada-lang.c (ada_value_binop): Do not use op_string.
4611 2021-03-08 Tom Tromey <tom@tromey.com>
4613 * expprint.c (dump_for_expression): New overload.
4614 * expop.h (check_objfile, dump_for_expression): Declare new
4616 * ada-lang.c (check_objfile): New overload.
4617 (assign_component, ada_aggregate_component::uses_objfile)
4618 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4619 (ada_aggregate_component::assign_aggregate)
4620 (ada_positional_component::uses_objfile)
4621 (ada_positional_component::dump, ada_positional_component::assign)
4622 (ada_discrete_range_association::uses_objfile)
4623 (ada_discrete_range_association::dump)
4624 (ada_discrete_range_association::assign)
4625 (ada_name_association::uses_objfile, ada_name_association::dump)
4626 (ada_name_association::assign)
4627 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4628 (ada_choices_component::assign)
4629 (ada_others_component::uses_objfile, ada_others_component::dump)
4630 (ada_others_component::assign, ada_assign_operation::evaluate):
4632 * ada-exp.h (ada_string_operation) <get_name>: New method.
4633 (class ada_assign_operation): New.
4634 (class ada_component): New.
4635 (ada_component_up): New typedef.
4636 (class ada_aggregate_operation, class ada_aggregate_component)
4637 (class ada_positional_component, class ada_others_component)
4638 (class ada_association): New.
4639 (ada_association_up): New typedef.
4640 (class ada_choices_component)
4641 (class ada_discrete_range_association)
4642 (class ada_name_association): New.
4644 2021-03-08 Tom Tromey <tom@tromey.com>
4646 * ada-lang.c (ada_var_value_operation::resolve)
4647 (ada_funcall_operation::resolve)
4648 (ada_ternop_slice_operation::resolve): New methods.
4649 * ada-exp.h (struct ada_resolvable): New.
4650 (class ada_var_value_operation): Derive from ada_resolvable.
4651 <get_block, resolve>: New methods.
4652 (class ada_funcall_operation): Derive from ada_resolvable.
4653 <resolve>: New method.
4654 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4655 <resolve>: New method.
4657 2021-03-08 Tom Tromey <tom@tromey.com>
4659 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4660 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4662 (class ada_funcall_operation): New.
4664 2021-03-08 Tom Tromey <tom@tromey.com>
4666 * ada-lang.c (ada_structop_operation::evaluate): New method.
4667 * ada-exp.h (class ada_structop_operation): New.
4669 2021-03-08 Tom Tromey <tom@tromey.com>
4671 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4672 * ada-exp.h (class ada_unop_ind_operation): New.
4674 2021-03-08 Tom Tromey <tom@tromey.com>
4676 * ada-lang.c (ada_binop_exp): No longer static.
4677 * ada-exp.h (ada_binop_exp_operation): New typedef.
4679 2021-03-08 Tom Tromey <tom@tromey.com>
4681 * ada-lang.c (ada_val_atr): No longer static.
4682 (ada_atr_val_operation::evaluate): New method.
4683 * ada-exp.h (class ada_atr_val_operation): New.
4685 2021-03-08 Tom Tromey <tom@tromey.com>
4687 * ada-lang.c (ada_pos_atr): No longer static.
4688 * ada-exp.h (ada_pos_operation): New typedef.
4690 2021-03-08 Tom Tromey <tom@tromey.com>
4692 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4694 (ada_evaluate_subexp): Use it.
4696 2021-03-08 Tom Tromey <tom@tromey.com>
4698 * ada-lang.c (ada_binop_minmax): No longer static.
4699 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4702 2021-03-08 Tom Tromey <tom@tromey.com>
4704 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4706 * ada-exp.h (class ada_var_msym_value_operation): New.
4708 2021-03-08 Tom Tromey <tom@tromey.com>
4710 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4711 (ada_var_value_operation::evaluate): New methods.
4712 * ada-exp.h (class ada_var_value_operation): New.
4714 2021-03-08 Tom Tromey <tom@tromey.com>
4716 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4717 * ada-exp.h (class ada_unop_atr_operation): New.
4719 2021-03-08 Tom Tromey <tom@tromey.com>
4721 * ada-lang.c (ada_binop_in_bounds): No longer static.
4722 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4724 2021-03-08 Tom Tromey <tom@tromey.com>
4726 * ada-lang.c (ada_ternop_slice): No longer static.
4727 * ada-exp.h (class ada_ternop_slice_operation): New.
4729 2021-03-08 Tom Tromey <tom@tromey.com>
4731 * ada-exp.h (ada_bitwise_operation): New template class.
4732 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4733 (ada_bitwise_xor_operation): New typedefs.
4735 2021-03-08 Tom Tromey <tom@tromey.com>
4737 * ada-lang.c (ada_equal_binop): No longer static.
4738 * ada-exp.h (class ada_binop_equal_operation): New.
4740 2021-03-08 Tom Tromey <tom@tromey.com>
4742 * ada-lang.c (ada_mult_binop): No longer static.
4743 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4744 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4746 2021-03-08 Tom Tromey <tom@tromey.com>
4748 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4749 * ada-exp.h (class ada_binop_addsub_operation): New.
4751 2021-03-08 Tom Tromey <tom@tromey.com>
4753 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4754 (ada_resolve_variable): Declare.
4755 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4756 (ada_resolve_variable): New functions.
4757 (resolve_subexp): Update.
4759 2021-03-08 Tom Tromey <tom@tromey.com>
4761 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4763 * c-exp.h (class opencl_ternop_cond_operation): New.
4765 2021-03-08 Tom Tromey <tom@tromey.com>
4767 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4769 * c-exp.h (class opencl_logical_binop_operation): New.
4771 2021-03-08 Tom Tromey <tom@tromey.com>
4773 * opencl-lang.c (opencl_structop_operation::evaluate): New
4775 * c-exp.h (class opencl_structop_operation): New.
4777 2021-03-08 Tom Tromey <tom@tromey.com>
4779 * opencl-lang.c (opencl_logical_not): No longer static. Change
4781 (evaluate_subexp_opencl): Update.
4782 * c-exp.h (opencl_notequal_operation): New typedef.
4784 2021-03-08 Tom Tromey <tom@tromey.com>
4786 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4787 static. Change parameters.
4788 (eval_opencl_assign): No longer static. Add "op" parameter.
4789 (evaluate_subexp_opencl): Update.
4790 * c-exp.h (opencl_binop_operation): New template class.
4791 (opencl_assign_operation, opencl_equal_operation)
4792 (opencl_notequal_operation, opencl_less_operation)
4793 (opencl_gtr_operation, opencl_geq_operation)
4794 (opencl_leq_operation): New typedefs.
4796 2021-03-08 Tom Tromey <tom@tromey.com>
4798 * opencl-lang.c (opencl_value_cast): No longer static.
4799 * c-exp.h (opencl_cast_type_operation): New typedef.
4801 2021-03-08 Tom Tromey <tom@tromey.com>
4803 * f-exp.h (eval_op_f_allocated): Declare.
4804 (fortran_allocated_operation): New typedef.
4805 * f-lang.c (eval_op_f_allocated): No longer static.
4807 2021-03-08 Tom Tromey <tom@tromey.com>
4809 * f-lang.c (eval_op_f_associated): New functions.
4810 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4813 2021-03-08 Tom Tromey <tom@tromey.com>
4815 * f-lang.c (fortran_bound_1arg::evaluate)
4816 (fortran_bound_2arg::evaluate): New methods.
4817 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4820 2021-03-08 Tom Tromey <tom@tromey.com>
4822 * expop.h (class unop_addr_operation) <get_expression>: New
4824 * f-lang.c (fortran_undetermined::value_subarray)
4825 (fortran_undetermined::evaluate): New methods.
4826 (fortran_prepare_argument): New overload.
4827 * f-exp.h (class fortran_range_operation)
4828 (class fortran_undetermined): New classes.
4830 2021-03-08 Tom Tromey <tom@tromey.com>
4832 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4833 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4836 2021-03-08 Tom Tromey <tom@tromey.com>
4838 * expression.h (class operation) <evaluate_funcall>: New methods.
4839 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4840 (class var_value_operation) <evaluate_funcall>: New method.
4841 (class structop_base_operation) <evaluate_funcall>: New method.
4842 (class var_msym_value_operation) <evaluate_funcall>: New method.
4843 (class structop_member_base): New class.
4844 (class structop_member_operation): Derive from
4845 structop_member_base.
4846 (class structop_mptr_operation): Derive from
4847 structop_member_base.
4848 (class funcall_operation): New class.
4849 * eval.c (operation::evaluate_funcall)
4850 (var_value_operation::evaluate_funcall)
4851 (scope_operation::evaluate_funcall)
4852 (structop_member_base::evaluate_funcall)
4853 (structop_base_operation::evaluate_funcall): New methods.
4855 2021-03-08 Tom Tromey <tom@tromey.com>
4857 * expop.h (class array_operation): New.
4858 * eval.c (array_operation::evaluate_struct_tuple)
4859 (array_operation::evaluate): New methods.
4861 2021-03-08 Tom Tromey <tom@tromey.com>
4863 * expop.h (class adl_func_operation): New.
4864 * eval.c (adl_func_operation::evaluate): New method.
4866 2021-03-08 Tom Tromey <tom@tromey.com>
4868 * ada-lang.c (ada_unop_in_range): No longer static.
4869 * ada-exp.h (class ada_unop_range_operation): New.
4871 2021-03-08 Tom Tromey <tom@tromey.com>
4873 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4875 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4876 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4878 2021-03-08 Tom Tromey <tom@tromey.com>
4880 * expop.h (class logical_and_operation)
4881 (class logical_or_operation): New.
4882 * eval.c (logical_and_operation::evaluate)
4883 (logical_or_operation::evaluate): New methods.
4884 * ax-gdb.c (logical_and_operation::do_generate_ax)
4885 (logical_or_operation::do_generate_ax): New methods.
4887 2021-03-08 Tom Tromey <tom@tromey.com>
4889 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4891 * m2-exp.h: New file.
4893 2021-03-08 Tom Tromey <tom@tromey.com>
4895 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4896 * rust-exp.h (class rust_aggregate_operation): New.
4898 2021-03-08 Tom Tromey <tom@tromey.com>
4900 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4902 * rust-exp.h (class rust_struct_anon): New.
4903 (class rust_structop): New.
4905 2021-03-08 Tom Tromey <tom@tromey.com>
4907 * rust-lang.c (rust_range): No longer static.
4908 * rust-exp.h (class rust_range_operation): New.
4910 2021-03-08 Tom Tromey <tom@tromey.com>
4912 * rust-lang.c (rust_subscript): No longer static.
4913 * rust-exp.h (class rust_subscript_operation): New.
4915 2021-03-08 Tom Tromey <tom@tromey.com>
4917 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4919 (rust_evaluate_subexp): Update.
4920 * rust-exp.h (class rust_unop_ind_operation): New.
4922 2021-03-08 Tom Tromey <tom@tromey.com>
4924 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4925 longer static. Add "opcode" parameter.
4926 (rust_evaluate_subexp): Update.
4927 * rust-exp.h: New file.
4929 2021-03-08 Tom Tromey <tom@tromey.com>
4931 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4932 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4933 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4934 (evaluate_subexp_f): Update.
4935 * f-exp.h: New file.
4937 2021-03-08 Tom Tromey <tom@tromey.com>
4939 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4940 * ada-exp.h (class ada_ternop_range_operation): New.
4942 2021-03-08 Tom Tromey <tom@tromey.com>
4944 * ada-lang.c (ada_qual_operation::evaluate): New method.
4945 * ada-exp.h (class ada_qual_operation): New.
4947 2021-03-08 Tom Tromey <tom@tromey.com>
4949 * ada-lang.c (ada_string_operation::evaluate): New method.
4950 * ada-exp.h (class ada_string_operation): New.
4952 2021-03-08 Tom Tromey <tom@tromey.com>
4954 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4955 * ada-exp.h: New file.
4957 2021-03-08 Tom Tromey <tom@tromey.com>
4959 * expop.h (class multi_subscript_operation): New.
4960 * eval.c (multi_subscript_operation::evaluate): New method.
4962 2021-03-08 Tom Tromey <tom@tromey.com>
4964 * eval.c (objc_msgcall_operation::evaluate): New method.
4965 * c-exp.h (class objc_msgcall_operation): New.
4967 2021-03-08 Tom Tromey <tom@tromey.com>
4969 * expop.h (class var_value_operation): New.
4970 * eval.c (var_value_operation::evaluate)
4971 (var_value_operation::evaluate_for_address)
4972 (var_value_operation::evaluate_with_coercion)
4973 (var_value_operation::evaluate_for_sizeof)
4974 (var_value_operation::evaluate_for_cast): New methods.
4975 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4977 2021-03-08 Tom Tromey <tom@tromey.com>
4979 * expop.h (cxx_cast_ftype): New typedef.
4980 (cxx_cast_operation): New template.
4981 (dynamic_cast_operation, reinterpret_cast_operation): New
4984 2021-03-08 Tom Tromey <tom@tromey.com>
4986 * expop.h (class unop_cast_type_operation): New.
4987 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4990 2021-03-08 Tom Tromey <tom@tromey.com>
4992 * expop.h (class unop_cast_operation): New.
4993 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4995 2021-03-08 Tom Tromey <tom@tromey.com>
4997 * expop.h (class assign_modify_operation): New.
4998 * eval.c (eval_binop_assign_modify): No longer static.
4999 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
5001 2021-03-08 Tom Tromey <tom@tromey.com>
5003 * expop.h (class assign_operation): New.
5004 * ax-gdb.c (assign_operation::do_generate_ax): New method.
5006 2021-03-08 Tom Tromey <tom@tromey.com>
5008 * expop.h (class type_instance_operation): New.
5009 * eval.c (type_instance_operation::evaluate): New method.
5011 2021-03-08 Tom Tromey <tom@tromey.com>
5013 * expop.h (class op_this_operation): New.
5014 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
5016 2021-03-08 Tom Tromey <tom@tromey.com>
5018 * expop.h (class unop_memval_operation)
5019 (class unop_memval_type_operation): New.
5020 * eval.c (eval_op_memval): No longer static.
5021 (unop_memval_operation::evaluate_for_address)
5022 (unop_memval_type_operation::evaluate_for_address)
5023 (unop_memval_operation::evaluate_for_sizeof)
5024 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
5025 * ax-gdb.c (unop_memval_operation::do_generate_ax)
5026 (unop_memval_type_operation::do_generate_ax): New methods.
5028 2021-03-08 Tom Tromey <tom@tromey.com>
5030 * expop.h (class unop_alignof_operation): New.
5031 * eval.c (eval_op_alignof): No longer static.
5033 2021-03-08 Tom Tromey <tom@tromey.com>
5035 * expop.h (class unop_sizeof_operation): New.
5036 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
5038 2021-03-08 Tom Tromey <tom@tromey.com>
5040 * expop.h (class unop_addr_operation): New.
5041 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
5043 2021-03-08 Tom Tromey <tom@tromey.com>
5045 * expop.h (class typeid_operation): New.
5047 2021-03-08 Tom Tromey <tom@tromey.com>
5049 * expop.h (class decltype_operation): New.
5051 2021-03-08 Tom Tromey <tom@tromey.com>
5053 * expop.h (class typeof_operation): New.
5055 2021-03-08 Tom Tromey <tom@tromey.com>
5057 * expop.h (class type_operation): New.
5058 * eval.c (eval_op_type): No longer static.
5060 2021-03-08 Tom Tromey <tom@tromey.com>
5062 * expop.h (class unop_ind_base_operation)
5063 (class unop_ind_operation): New.
5064 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
5065 (unop_ind_base_operation::evaluate_for_address)
5066 (unop_ind_base_operation::evaluate_for_sizeof): New method.
5067 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
5069 2021-03-08 Tom Tromey <tom@tromey.com>
5071 * expop.h (unop_incr_operation): New template.
5072 (preinc_operation, predec_operation, postinc_operation)
5073 (postdec_operation): New typedefs.
5074 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
5075 (eval_op_postdec): No longer static.
5077 2021-03-08 Tom Tromey <tom@tromey.com>
5079 * expop.h (unary_ftype): New typedef.
5080 (unop_operation, usual_ax_binop_operation): New templates.
5081 (unary_plus_operation, unary_neg_operation)
5082 (unary_complement_operation, unary_logical_not_operation): New
5084 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
5085 (eval_op_lognot): No longer static.
5086 * ax-gdb.c (gen_expr_unop): New function.
5088 2021-03-08 Tom Tromey <tom@tromey.com>
5090 * ax-gdb.c (comma_operation::do_generate_ax): New method.
5092 2021-03-08 Tom Tromey <tom@tromey.com>
5094 * expop.h (class repeat_operation): New.
5095 * eval.c (eval_op_repeat): No longer static. Remove "op"
5097 (evaluate_subexp_standard): Update.
5098 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
5100 2021-03-08 Tom Tromey <tom@tromey.com>
5102 * expop.h (class comparison_operation): New.
5103 (equal_operation, notequal_operation, less_operation)
5104 (gtr_operation, geq_operation, leq_operation): New typedefs.
5105 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
5106 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
5108 2021-03-08 Tom Tromey <tom@tromey.com>
5110 * expop.h (class subscript_operation): New.
5111 * eval.c (eval_op_subscript): No longer static.
5113 2021-03-08 Tom Tromey <tom@tromey.com>
5115 * expop.h (class binop_operation, class usual_ax_binop_operation):
5117 (exp_operation, intdiv_operation, mod_operation, mul_operation)
5118 (div_operation, rem_operation, lsh_operation, rsh_operation)
5119 (bitwise_and_operation, bitwise_ior_operation)
5120 (bitwise_xor_operation): New typedefs.
5121 * eval.c (eval_op_binary): No longer static.
5123 2021-03-08 Tom Tromey <tom@tromey.com>
5125 * expop.h (class sub_operation): New.
5126 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
5127 (evaluate_subexp_standard): Update.
5129 2021-03-08 Tom Tromey <tom@tromey.com>
5131 * expop.h (class add_operation): New.
5132 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
5133 (evaluate_subexp_standard): Update.
5135 2021-03-08 Tom Tromey <tom@tromey.com>
5137 * expop.h (class concat_operation): New.
5138 * eval.c (eval_op_concat): No longer static. Remove "op"
5140 (evaluate_subexp_standard): Update.
5142 2021-03-08 Tom Tromey <tom@tromey.com>
5144 * expop.h (class structop_member_operation)
5145 (class structop_mptr_operation): New.
5146 * eval.c (eval_op_member): No longer static.
5148 2021-03-08 Tom Tromey <tom@tromey.com>
5150 * expop.h (class structop_ptr_operation): New.
5151 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
5154 2021-03-08 Tom Tromey <tom@tromey.com>
5156 * expop.h (class structop_base_operation)
5157 (class structop_operation): New.
5158 * eval.c (eval_op_structop_struct): No longer static.
5160 2021-03-08 Tom Tromey <tom@tromey.com>
5162 * expop.h (class complex_operation): New.
5164 2021-03-08 Tom Tromey <tom@tromey.com>
5166 * eval.c (eval_op_objc_selector): No longer static.
5167 * c-exp.h (class objc_selector_operation): New.
5169 2021-03-08 Tom Tromey <tom@tromey.com>
5171 * eval.c: Include c-exp.h.
5172 * c-exp.h (class objc_nsstring_operation): New.
5174 2021-03-08 Tom Tromey <tom@tromey.com>
5176 * c-lang.c (c_string_operation::evaluate): New method.
5177 * c-exp.h: New file.
5179 2021-03-08 Tom Tromey <tom@tromey.com>
5181 * expop.h (class ternop_cond_operation): New.
5182 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
5184 2021-03-08 Tom Tromey <tom@tromey.com>
5186 * expop.h (class ternop_slice_operation): New.
5187 * eval.c (eval_op_ternop): No longer static.
5189 2021-03-08 Tom Tromey <tom@tromey.com>
5191 * expop.h (class string_operation): New.
5192 * eval.c (eval_op_string): No longer static.
5194 2021-03-08 Tom Tromey <tom@tromey.com>
5196 * expop.h (class internalvar_operation): New.
5197 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
5199 2021-03-08 Tom Tromey <tom@tromey.com>
5201 * expop.h (class bool_operation): New.
5203 2021-03-08 Tom Tromey <tom@tromey.com>
5205 * expop.h (class register_operation): New.
5206 * eval.c (eval_op_register): No longer static.
5207 * ax-gdb.c (register_operation::do_generate_ax): New method.
5209 2021-03-08 Tom Tromey <tom@tromey.com>
5211 * expop.h (class last_operation): New.
5213 2021-03-08 Tom Tromey <tom@tromey.com>
5215 * expop.h (class func_static_var_operation): New.
5216 * eval.c (eval_op_func_static_var): No longer static.
5218 2021-03-08 Tom Tromey <tom@tromey.com>
5220 * expop.h (class var_entry_value_operation): New.
5221 * eval.c (eval_op_var_entry_value): No longer static.
5223 2021-03-08 Tom Tromey <tom@tromey.com>
5225 * expression.h (class operation) <set_outermost>: New method.
5226 * expop.h (class var_msym_value_operation): New.
5227 * eval.c (eval_op_var_msym_value): No longer static.
5228 (var_msym_value_operation::evaluate_for_address)
5229 (var_msym_value_operation::evaluate_for_sizeof)
5230 (var_msym_value_operation::evaluate_for_cast): New methods.
5231 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5234 2021-03-08 Tom Tromey <tom@tromey.com>
5236 * expop.h (class long_const_operation): New.
5237 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5239 2021-03-08 Tom Tromey <tom@tromey.com>
5241 * expop.h (class scope_operation): New.
5242 * eval.c (eval_op_scope): No longer static.
5243 (scope_operation::evaluate_for_address): New method.
5244 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5246 2021-03-08 Tom Tromey <tom@tromey.com>
5248 * expprint.c (float_const_operation::dump): New method.
5249 * expop.h (float_data): New typedef.
5250 (class float_const_operation): New.
5252 2021-03-08 Tom Tromey <tom@tromey.com>
5254 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5255 * ax-gdb.c (gen_expr_binop): New function.
5256 (gen_expr_structop): Likewise.
5258 2021-03-08 Tom Tromey <tom@tromey.com>
5260 * expprint.c (expr::dump_for_expression): New functions.
5261 * expop.h (dump_for_expression): New overloads.
5262 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5265 2021-03-08 Tom Tromey <tom@tromey.com>
5267 * expression.h (expr::operation): New class.
5268 (expr::make_operation): New function.
5269 (expr::operation_up): New typedef.
5270 * expop.h: New file.
5271 * eval.c (operation::evaluate_for_cast)
5272 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5274 * ax-gdb.c (operation::generate_ax): New method.
5276 2021-03-08 Tom Tromey <tom@tromey.com>
5278 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5279 (gen_expr_binop_rest): New overload.
5281 2021-03-08 Tom Tromey <tom@tromey.com>
5283 * eval.c (eval_multi_subscript): New function.
5284 (evaluate_subexp_standard): Use it.
5286 2021-03-08 Tom Tromey <tom@tromey.com>
5288 * ada-lang.c (ada_binop_exp): New function.
5289 (ada_evaluate_subexp): Use it.
5291 2021-03-08 Tom Tromey <tom@tromey.com>
5293 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5295 (ada_evaluate_subexp): Use it.
5297 2021-03-08 Tom Tromey <tom@tromey.com>
5299 * ada-lang.c (ada_binop_minmax): New function.
5300 (ada_evaluate_subexp): Use it.
5302 2021-03-08 Tom Tromey <tom@tromey.com>
5304 * ada-lang.c (ada_unop_atr): New function.
5305 (ada_evaluate_subexp): Use it.
5307 2021-03-08 Tom Tromey <tom@tromey.com>
5309 * ada-lang.c (ada_binop_in_bounds): New function.
5310 (ada_evaluate_subexp): Use it.
5312 2021-03-08 Tom Tromey <tom@tromey.com>
5314 * ada-lang.c (ada_ternop_slice): New function.
5315 (ada_evaluate_subexp): Use it.
5317 2021-03-08 Tom Tromey <tom@tromey.com>
5319 * ada-lang.c (ada_equal_binop): New function.
5320 (ada_evaluate_subexp): Use it.
5322 2021-03-08 Tom Tromey <tom@tromey.com>
5324 * ada-lang.c (ada_mult_binop): New function.
5325 (ada_evaluate_subexp): Use it.
5327 2021-03-08 Tom Tromey <tom@tromey.com>
5329 * ada-lang.c (ada_abs): New function.
5330 (ada_evaluate_subexp): Use it.
5332 2021-03-08 Tom Tromey <tom@tromey.com>
5334 * ada-lang.c (ada_atr_size): New function.
5335 (ada_evaluate_subexp): Use it.
5337 2021-03-08 Tom Tromey <tom@tromey.com>
5339 * ada-lang.c (ada_atr_tag): New function.
5340 (ada_evaluate_subexp): Use it.
5342 2021-03-08 Tom Tromey <tom@tromey.com>
5344 * ada-lang.c (ada_unop_in_range): New function.
5345 (ada_evaluate_subexp): Use it.
5347 2021-03-08 Tom Tromey <tom@tromey.com>
5349 * ada-lang.c (ada_unop_neg): New function.
5350 (ada_evaluate_subexp): Use it.
5352 2021-03-08 Tom Tromey <tom@tromey.com>
5354 * ada-lang.c (eval_ternop_in_range): New function.
5355 (ada_evaluate_subexp): Use it.
5357 2021-03-08 Tom Tromey <tom@tromey.com>
5359 * opencl-lang.c (eval_opencl_assign): New function.
5360 (evaluate_subexp_opencl): Use it.
5362 2021-03-08 Tom Tromey <tom@tromey.com>
5364 * eval.c (eval_op_objc_msgcall): New function.
5365 (evaluate_subexp_standard): Use it.
5367 2021-03-08 Tom Tromey <tom@tromey.com>
5369 * eval.c (eval_binop_assign_modify): New function.
5370 (evaluate_subexp_standard): Use it.
5372 2021-03-08 Tom Tromey <tom@tromey.com>
5374 * m2-lang.c (eval_op_m2_subscript): New function.
5375 (evaluate_subexp_modula2): Use it.
5377 2021-03-08 Tom Tromey <tom@tromey.com>
5379 * m2-lang.c (eval_op_m2_high): New function.
5380 (evaluate_subexp_modula2): Use it.
5382 2021-03-08 Tom Tromey <tom@tromey.com>
5384 * eval.c (evaluate_subexp_for_address_base): New function.
5385 (evaluate_subexp_for_address): Use it.
5386 (evaluate_subexp_for_sizeof_base): New function.
5387 (evaluate_subexp_for_sizeof): Use it.
5389 2021-03-08 Tom Tromey <tom@tromey.com>
5391 * rust-lang.c (eval_op_rust_structop): New function.
5392 (rust_evaluate_subexp): Use it.
5394 2021-03-08 Tom Tromey <tom@tromey.com>
5396 * rust-lang.c (eval_op_rust_struct_anon): New function.
5397 (rust_evaluate_subexp): Use it.
5399 2021-03-08 Tom Tromey <tom@tromey.com>
5401 * rust-lang.c (eval_op_rust_array): New function.
5402 (rust_evaluate_subexp): Use it.
5404 2021-03-08 Tom Tromey <tom@tromey.com>
5406 * rust-lang.c (eval_op_rust_complement): New function.
5407 (rust_evaluate_subexp): Use it.
5409 2021-03-08 Tom Tromey <tom@tromey.com>
5411 * rust-lang.c (eval_op_rust_ind): New function.
5412 (rust_evaluate_subexp): Use it.
5414 2021-03-08 Tom Tromey <tom@tromey.com>
5416 * rust-lang.c (rust_subscript): Change parameters.
5417 (rust_evaluate_subexp): Update.
5419 2021-03-08 Tom Tromey <tom@tromey.com>
5421 * rust-lang.c (rust_range): Change parameters.
5422 (rust_evaluate_subexp): Update.
5424 2021-03-08 Tom Tromey <tom@tromey.com>
5426 * f-lang.c (eval_op_f_allocated): New function.
5427 (evaluate_subexp_f): Use it.
5429 2021-03-08 Tom Tromey <tom@tromey.com>
5431 * f-lang.c (fortran_require_array): New function.
5432 (evaluate_subexp_f): Use it.
5434 2021-03-08 Tom Tromey <tom@tromey.com>
5436 * f-lang.c (eval_op_f_kind): New function.
5437 (evaluate_subexp_f): Use it.
5439 2021-03-08 Tom Tromey <tom@tromey.com>
5441 * f-lang.c (eval_op_f_cmplx): New function.
5442 (evaluate_subexp_f): Use it.
5444 2021-03-08 Tom Tromey <tom@tromey.com>
5446 * f-lang.c (eval_op_f_modulo): New function.
5447 (evaluate_subexp_f): Use it.
5449 2021-03-08 Tom Tromey <tom@tromey.com>
5451 * f-lang.c (eval_op_f_floor): New function.
5452 (evaluate_subexp_f): Use it.
5454 2021-03-08 Tom Tromey <tom@tromey.com>
5456 * f-lang.c (eval_op_f_ceil): New function.
5457 (evaluate_subexp_f): Use it.
5459 2021-03-08 Tom Tromey <tom@tromey.com>
5461 * f-lang.c (eval_op_f_mod): New function.
5462 (evaluate_subexp_f): Use it.
5464 2021-03-08 Tom Tromey <tom@tromey.com>
5466 * f-lang.c (eval_op_f_abs): New function.
5467 (evaluate_subexp_f): Use it.
5469 2021-03-08 Tom Tromey <tom@tromey.com>
5471 * eval.c (eval_op_type): New function.
5472 (evaluate_subexp_standard): Use it.
5474 2021-03-08 Tom Tromey <tom@tromey.com>
5476 * eval.c (eval_op_postdec): New function.
5477 (evaluate_subexp_standard): Use it.
5479 2021-03-08 Tom Tromey <tom@tromey.com>
5481 * eval.c (eval_op_postinc): New function.
5482 (evaluate_subexp_standard): Use it.
5484 2021-03-08 Tom Tromey <tom@tromey.com>
5486 * eval.c (eval_op_predec): New file.
5487 (evaluate_subexp_standard): Use it.
5489 2021-03-08 Tom Tromey <tom@tromey.com>
5491 * eval.c (eval_op_preinc): New function.
5492 (evaluate_subexp_standard): Use it.
5494 2021-03-08 Tom Tromey <tom@tromey.com>
5496 * eval.c (eval_op_memval): New function.
5497 (evaluate_subexp_standard): Use it.
5499 2021-03-08 Tom Tromey <tom@tromey.com>
5501 * eval.c (eval_op_alignof): New function.
5502 (evaluate_subexp_standard): Use it.
5504 2021-03-08 Tom Tromey <tom@tromey.com>
5506 * eval.c (eval_op_ind): New function.
5507 (evaluate_subexp_standard): Use it.
5509 2021-03-08 Tom Tromey <tom@tromey.com>
5511 * eval.c (eval_op_lognot): New function.
5512 (evaluate_subexp_standard): Use it.
5514 2021-03-08 Tom Tromey <tom@tromey.com>
5516 * eval.c (eval_op_complement): New function.
5517 (evaluate_subexp_standard): Use it.
5519 2021-03-08 Tom Tromey <tom@tromey.com>
5521 * eval.c (eval_op_neg): New function.
5522 (evaluate_subexp_standard): Use it.
5524 2021-03-08 Tom Tromey <tom@tromey.com>
5526 * eval.c (eval_op_plus): New function.
5527 (evaluate_subexp_standard): Use it.
5529 2021-03-08 Tom Tromey <tom@tromey.com>
5531 * eval.c (eval_op_repeat): New function.
5532 (evaluate_subexp_standard): Use it.
5534 2021-03-08 Tom Tromey <tom@tromey.com>
5536 * eval.c (eval_op_leq): New function.
5537 (evaluate_subexp_standard): Use it.
5539 2021-03-08 Tom Tromey <tom@tromey.com>
5541 * eval.c (eval_op_geq): New function.
5542 (evaluate_subexp_standard): Use it.
5544 2021-03-08 Tom Tromey <tom@tromey.com>
5546 * eval.c (eval_op_gtr): New function.
5547 (evaluate_subexp_standard): Use it.
5549 2021-03-08 Tom Tromey <tom@tromey.com>
5551 * eval.c (eval_op_less): New function.
5552 (evaluate_subexp_standard): Use it.
5554 2021-03-08 Tom Tromey <tom@tromey.com>
5556 * eval.c (eval_op_notequal): New function.
5557 (evaluate_subexp_standard): Use it.
5559 2021-03-08 Tom Tromey <tom@tromey.com>
5561 * eval.c (eval_op_equal): New function.
5562 (evaluate_subexp_standard): Use it.
5564 2021-03-08 Tom Tromey <tom@tromey.com>
5566 * eval.c (eval_op_subscript): New function.
5567 (evaluate_subexp_standard): Use it.
5569 2021-03-08 Tom Tromey <tom@tromey.com>
5571 * eval.c (eval_op_binary): New function.
5572 (evaluate_subexp_standard): Use it.
5574 2021-03-08 Tom Tromey <tom@tromey.com>
5576 * eval.c (eval_op_sub): New function.
5577 (evaluate_subexp_standard): Use it.
5579 2021-03-08 Tom Tromey <tom@tromey.com>
5581 * eval.c (eval_op_add): New function.
5582 (evaluate_subexp_standard): Use it.
5584 2021-03-08 Tom Tromey <tom@tromey.com>
5586 * eval.c (eval_op_member): New function.
5587 (evaluate_subexp_standard): Use it.
5589 2021-03-08 Tom Tromey <tom@tromey.com>
5591 * eval.c (eval_op_structop_ptr): New function.
5592 (evaluate_subexp_standard): Use it.
5594 2021-03-08 Tom Tromey <tom@tromey.com>
5596 * eval.c (eval_op_structop_struct): New function.
5597 (evaluate_subexp_standard): Use it.
5599 2021-03-08 Tom Tromey <tom@tromey.com>
5601 * eval.c (eval_op_ternop): New function.
5602 (evaluate_subexp_standard): Use it.
5604 2021-03-08 Tom Tromey <tom@tromey.com>
5606 * eval.c (eval_op_concat): New function.
5607 (evaluate_subexp_standard): Use it.
5609 2021-03-08 Tom Tromey <tom@tromey.com>
5611 * eval.c (eval_op_objc_selector): New function.
5612 (evaluate_subexp_standard): Use it.
5614 2021-03-08 Tom Tromey <tom@tromey.com>
5616 * eval.c (eval_op_string): New function.
5617 (evaluate_subexp_standard): Use it.
5619 2021-03-08 Tom Tromey <tom@tromey.com>
5621 * eval.c (eval_op_register): New function.
5622 (evaluate_subexp_standard): Use it.
5624 2021-03-08 Tom Tromey <tom@tromey.com>
5626 * eval.c (eval_op_func_static_var): New function.
5627 (evaluate_subexp_standard): Use it.
5629 2021-03-08 Tom Tromey <tom@tromey.com>
5631 * eval.c (eval_op_var_msym_value): New function.
5632 (evaluate_subexp_standard): Use it.
5634 2021-03-08 Tom Tromey <tom@tromey.com>
5636 * eval.c (eval_op_var_entry_value): New function.
5637 (evaluate_subexp_standard): Use it.
5639 2021-03-08 Tom Tromey <tom@tromey.com>
5641 * eval.c (eval_op_scope): New function.
5642 (evaluate_subexp_standard): Use it.
5644 2021-03-06 Chernov Sergey <klen_s@mail.ru>
5647 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5649 2021-03-06 Tom Tromey <tom@tromey.com>
5651 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5652 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5653 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5654 (locate_dwz_sections, dwz_search_other_debugdirs)
5655 (dwarf2_get_dwz_file): Move to dwz.c.
5656 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5658 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5659 (dwarf2_get_dwz_file): Move from read.c.
5661 2021-03-06 Tom Tromey <tom@tromey.com>
5663 * debuginfod-support.h: Include scoped_fd.h.
5665 2021-03-06 Tom Tromey <tom@tromey.com>
5667 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5668 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5669 (get_abbrev_section_for_cu, read_attribute_value)
5670 (get_debug_line_section): Update.
5671 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5673 2021-03-06 Tom Tromey <tom@tromey.com>
5675 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5677 * dwarf2/read.c (section_is_p): Remove.
5678 (dwarf2_per_bfd::locate_sections)
5679 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5680 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5681 (dwarf2_locate_common_dwp_sections)
5682 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5685 2021-03-06 Tom Tromey <tom@tromey.com>
5687 * xcoffread.c: Include sect-names.h.
5688 * symfile.h (struct dwarf2_section_names, struct
5689 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5690 * dwarf2/sect-names.h: New file, from symfile.h.
5691 * dwarf2/read.c: Include sect-names.h.
5693 2021-03-06 Tom Tromey <tom@tromey.com>
5695 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5696 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5697 (abbrev_table::read): Update.
5698 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5699 (struct abbrev_info): Reformat.
5700 <attrs>: Now an array.
5701 (struct abbrev_table) <alloc_abbrev>: Remove.
5703 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5705 * ctfread.c (ctf_psymtab_add_enums): New function.
5706 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5708 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5710 * ctfread.c (read_func_kind_type): Set up function arguments.
5712 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5713 Andrew Burgess <andrew.burgess@embecosm.com>
5715 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5717 (riscv_csrset): New static global.
5718 (riscv_update_csrmap): New function.
5719 (riscv_iterate_over_regset_sections): Process CSRs.
5721 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5723 * riscv-tdep.c (riscv_feature_name_csr): Define.
5724 (riscv_feature_name_cpu): Define.
5725 (riscv_feature_name_fpu): Define.
5726 (riscv_feature_name_virtual): Define.
5727 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5728 (riscv_freg_feature): Use riscv_feature_name_fpu.
5729 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5730 (riscv_csr_feature): Use riscv_feature_name_csr.
5731 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5733 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5734 Craig Blackmore <craig.blackmore@embecosm.com>
5736 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5737 (ALLDEPFILES): Add riscv-none-tdep.c.
5738 * configure: Regenerate.
5739 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5741 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5742 * elf-none-tdep.c: New file.
5743 * elf-none-tdep.h: New file.
5744 * riscv-none-tdep.c: New file.
5746 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5747 Andrew Burgess <andrew.burgess@embecosm.com>
5749 * corelow.c: Add 'xml-tdesc.h' include.
5750 (core_target::read_description): Load the target description from
5751 the core file when possible.
5752 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5754 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5755 (gcore_elf_make_tdesc_note): New function.
5756 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5757 * linux-tdep.c (linux_make_corefile_notes): Add target description
5760 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5762 * Makefile.in (SFILES): Add gcore-elf.c.
5763 (HFILES_NO_SRCDIR): Add gcore-elf.h
5764 * configure: Regenerate.
5765 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5767 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5768 (struct fbsd_collect_regset_section_cb_data): Delete.
5769 (fbsd_collect_regset_section_cb): Delete.
5770 (fbsd_collect_thread_registers): Delete.
5771 (struct fbsd_corefile_thread_data): Delete.
5772 (fbsd_corefile_thread): Delete.
5773 (fbsd_make_corefile_notes): Call
5774 gcore_elf_build_thread_register_notes instead of the now deleted
5776 * gcore-elf.c: New file, the content was moved here from
5777 linux-tdep.c, functions were renamed and given minor cleanup.
5778 * gcore-elf.h: New file.
5779 * gcore.c (gcore_find_signalled_thread): Moved here from
5780 linux-tdep.c and given a new name. Minor cleanups.
5781 * gcore.h (gcore_find_signalled_thread): Declare.
5782 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5783 (struct linux_collect_regset_section_cb_data): Delete.
5784 (linux_collect_regset_section_cb): Delete.
5785 (linux_collect_thread_registers): Delete.
5786 (linux_corefile_thread): Call
5787 gcore_elf_build_thread_register_notes.
5788 (find_signalled_thread): Delete.
5789 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5791 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5794 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5795 process_stratum_target parameter,
5796 sparc_store_inferior_registers): update callers.
5797 * sparc-nat.c (sparc_fetch_inferior_registers,
5798 sparc_store_inferior_registers): Add process_stratum_target
5799 parameter. Switch current thread before calling
5800 sparc_supply_gregset / sparc_collect_rwindow.
5801 (sparc_store_inferior_registers): Likewise.
5802 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5803 (sparc32obsd_collect_uthread): Likewise.
5804 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5806 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5807 sparc64obsd_supply_uthread): Add assertion.
5809 2021-03-04 Tom Tromey <tromey@adacore.com>
5811 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5812 (aux_add_nonlocal_symbols): Update.
5813 (ada_add_block_symbols): Change "found_sym" to bool.
5815 2021-03-03 Tom Tromey <tromey@adacore.com>
5817 * ada-lang.c (ada_resolve_function): Update comment.
5818 (is_nonfunction, add_symbols_from_enclosing_procs)
5819 (remove_extra_symbols): Likewise.
5820 (struct match_data): Add constructor, initializers.
5821 (add_nonlocal_symbols): Remove memset.
5822 (aux_add_nonlocal_symbols): Update comment.
5823 (ada_add_block_renamings, add_nonlocal_symbols)
5824 (ada_add_all_symbols): Likewise.
5825 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5827 2021-03-02 Tom Tromey <tromey@adacore.com>
5829 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5830 (cast_to_gnat_encoded_fixed_point_type): Remove.
5831 (ada_value_cast, ada_evaluate_subexp): Update.
5832 (gnat_encoded_fixed_point_type_info)
5833 (ada_is_gnat_encoded_fixed_point_type)
5834 (gnat_encoded_fixed_point_delta)
5835 (gnat_encoded_fixed_point_scaling_factor): Remove.
5836 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5837 (gnat_encoded_fixed_point_delta)
5838 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5839 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5840 (ada_print_type): Update.
5841 * ada-valprint.c (ada_value_print_num): Update.
5842 * dwarf2/read.c (ada_get_gnat_encoded_number)
5843 (ada_get_gnat_encoded_ratio): New functions.
5844 (finish_fixed_point_type): Use them. Add parameters.
5845 (GNAT_FIXED_POINT_SUFFIX): New define.
5846 (gnat_encoded_fixed_point_type_info): New function.
5847 (read_base_type): Handle gnat encodings.
5849 2021-03-02 Tom Tromey <tromey@adacore.com>
5851 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5852 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5854 (GROW_VECT): Remove.
5855 (grow_vect): Remove.
5857 2021-03-02 Tom Tromey <tromey@adacore.com>
5859 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5860 * ada-lang.c (resolve_subexp): Update.
5861 (ada_resolve_function): Accept a vector.
5862 (is_nonfunction, add_defn_to_vec)
5863 (add_symbols_from_enclosing_procs): Likewise.
5864 (num_defns_collected, defns_collected): Remove.
5865 (remove_extra_symbols): Return a vector.
5866 (remove_irrelevant_renamings): Return void.
5867 (ada_add_local_symbols): Accept a vector.
5868 (struct match_data) <obstackp>: Remove.
5869 <resultp>: New member.
5870 (aux_add_nonlocal_symbols): Update.
5871 (ada_add_block_renamings, add_nonlocal_symbols)
5872 (ada_add_all_symbols): Accept a vector.
5873 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5875 (ada_lookup_symbol): Update.
5876 (ada_add_block_symbols): Accept a vector.
5877 (get_var_value, iterate_over_symbols): Update.
5878 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5881 2021-03-02 Tom Tromey <tromey@adacore.com>
5883 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5885 2021-03-02 Tom Tromey <tromey@adacore.com>
5887 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5890 (ada_pspace_data): Remove destructor.
5891 <sym_cache>: Now a unique_ptr.
5892 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5893 (ada_get_symbol_cache): Use 'new'.
5894 (ada_clear_symbol_cache): Rewrite.
5896 2021-03-02 Tom Tromey <tromey@adacore.com>
5898 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5901 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5904 * source.c (add_path): Skip empty dirnames.
5906 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5908 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5909 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5911 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5914 * target.c (target_mourn_inferior): Only compare pids in
5915 target_mourn_inferior.
5917 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5920 * remote.c (remote_target::start_remote): Ensure the single
5921 thread, automatically added for remote targets without the
5922 concept of threading, is initially in set to the "resumed"
5924 * remote.c (remote_target::add_current_inferior_and_thread):
5925 Add return value - return the main thread.
5927 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5929 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5930 (mi_tsv_created): Likewise.
5931 (mi_tsv_deleted): Likewise.
5933 2021-02-25 Tom de Vries <tdevries@suse.de>
5936 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5937 section_kind for &dwo_file->sections.info.
5939 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5942 * f-lang.c (fortran_argument_convert): Delete declaration.
5943 (fortran_prepare_argument): New function.
5944 (evaluate_subexp_f): Move logic to new function
5945 fortran_prepare_argument.
5947 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5949 * f-exp.y (f77_keywords): Add 'associated'.
5950 * f-lang.c (fortran_associated): New function.
5951 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5952 (operator_length_f): Likewise.
5953 (print_unop_or_binop_subexp_f): New function.
5954 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5955 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5956 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5957 (operator_check_f): Likewise.
5958 * std-operator.def: Add FORTRAN_ASSOCIATED.
5960 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5962 * f-exp.y (fortran_operators): Add ".xor.".
5964 2021-02-24 Tom de Vries <tdevries@suse.de>
5967 * dwarf2/attribute.c (attribute::form_is_signed): New function
5969 * dwarf2/attribute.h (attribute::as_signed): ... here.
5970 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5971 (attribute::form_is_signed): Declare.
5972 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5973 for DW_AT_decl_file.
5975 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5977 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5978 order for <sys/ptrace.h> and <asm/ptrace.h>.
5980 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5982 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5985 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5987 * exec.c (set_section_command): Move variable declarations into
5988 the function body, and use std::string instead of a fixed size
5991 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5993 * exec.c (exec_target::get_section_table): Delete member function.
5994 (section_table_read_available_memory): Use current_top_target, not
5995 just the exec_ops target.
5996 * target-delegates.c: Regenerate.
5997 * target.c (default_get_section_table): New function.
5998 * target.h (target_ops::get_section_table): Change default
5999 behaviour to call default_get_section_table.
6000 (default_get_section_table): Declare.
6002 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6004 * exec.c (exec_target::close): Call new clear_target_sections
6006 (program_space::add_target_sections): Update name of member
6008 (program_space::add_target_sections): Update name of member
6010 (program_space::remove_target_sections): Likewise.
6011 (exec_one_fork): Use new target_sections member function.
6012 (exec_target::get_section_table): Likewise.
6013 (exec_target::files_info): Likewise.
6014 (set_section_command): Likewise.
6015 (exec_set_section_address): Likewise.
6016 (exec_target::has_memory): Use new target_sections member
6018 * progspace.h (program_space::clear_target_sections): New member
6020 (program_space::target_sections): Rename member variable to
6021 m_target_sections, replace with a new member function.
6022 (program_space::m_target_sections): New member variable.
6023 * solib-dsbt.c (scan_dyntag): Use new member function.
6024 * solib-svr4.c (scan_dyntag): Likewise.
6026 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6028 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
6030 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
6031 (section_table_read_available_memory): Make local const.
6032 (exec_target::xfer_partial): Make local const.
6033 (print_section_info): Make parameter const.
6034 * gdb/exec.h (print_section_info): Likewise.
6035 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
6037 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
6039 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
6041 * gdb/s390-tdep.c (s390_load): Likewise.
6042 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
6043 * gdb/solib-svr4.c (scan_dyntag): Likewise.
6044 * gdb/target-debug.h (target_debug_print_target_section_table_p):
6046 (target_debug_print_const_target_section_table_p): ...this.
6047 * gdb/target-delegates.c: Regenerate.
6048 * gdb/target.c (target_get_section_table): Make return type const.
6049 (target_section_by_addr): Likewise. Also make some locals const.
6050 (memory_xfer_partial_1): Make some locals const.
6051 * gdb/target.h (struct target_ops) <get_section_table>: Make
6053 (target_section_by_addr): Likewise.
6054 (target_get_section_table): Likewise.
6056 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6058 * NEWS: Mention new 'maint info target-sections' command.
6059 * maint.c (maintenance_info_target_sections): New function.
6060 (_initialize_maint_cmds): Register new command.
6062 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6064 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
6065 (riscv_features_from_bfd): ...this. Change parameter type to
6066 'bfd*', and update as required.
6067 (riscv_find_default_target_description): Update call to
6068 riscv_features_from_bfd. Select a default xlen based on
6070 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
6072 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6074 * eval.c (evaluate_subexp_standard): Call value_ind for points to
6075 dynamic types in UNOP_IND.
6077 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6080 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
6082 (~dwarf2_queue_guard): Clear queue.
6083 (queue_comp_unit): Assert that queue is
6085 (process_queue): Adjust.
6086 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
6088 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6091 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
6092 to decide whether or not to enqueue it for expansion.
6093 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
6094 after calling maybe_queue_comp_unit.
6096 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6098 * linux-nat.c (linux_nat_filter_event): Return void.
6100 2021-02-22 Tom Tromey <tromey@adacore.com>
6102 * solib-svr4.c (enable_break): Update.
6103 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
6105 (target_bfd_reopen): Change parameter type.
6106 * bfd-target.h (target_bfd_reopen): Change parameter type.
6108 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6110 * thread.c (add_thread_silent): Add assert.
6111 (find_thread_ptid): Add assert.
6113 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6116 * inf-ptrace.c (struct target_unpusher): Move to target.h.
6117 (target_unpush_up): Likewise.
6118 * procfs.c (procfs_target::attach): Push target early. Use
6119 target_unpush_up to unpush target in case of error.
6120 * target.h (struct target_unpusher): Move here.
6121 (target_unpush_up): Likewise.
6123 2021-02-19 Kevin Buettner <kevinb@redhat.com>
6125 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
6126 (which in turn includes <gnulib/config.h>) before include
6129 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
6132 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
6133 (decode_j_type_insn): Likewise.
6134 (decode_cj_type_insn): Likewise.
6135 (decode_b_type_insn): Likewise.
6138 2021-02-18 Tom Tromey <tom@tromey.com>
6140 * expression.h (struct expression) <evaluate>: Declare method.
6141 * eval.c (evaluate_subexp): Simplify.
6142 (expression::evaluate): New method.
6143 (evaluate_expression, evaluate_type): Use expression::evaluate.
6145 2021-02-17 Kevin Buettner <kevinb@redhat.com>
6147 * ada-lang.c (ada_fold_name): Check for non-empty string prior
6149 (ada_lookup_name_info): Likewise.
6151 2021-02-13 Mike Frysinger <vapier@gentoo.org>
6153 * aclocal.m4: Regenerate.
6155 2021-02-12 Tom de Vries <tdevries@suse.de>
6158 * linux-nat.c (lin_thread_get_thread_signals): Remove.
6159 (lin_thread_signals): New static var.
6160 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6162 * linux-nat.h (lin_thread_get_thread_signals): Remove.
6163 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6165 * linux-thread-db.c (check_thread_signals): Use
6166 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
6168 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
6170 * f-exp.y (f77_keywords): Add allocated.
6171 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
6172 (operator_length_f): Likewise.
6173 (print_subexp_f): Likewise.
6174 (dump_subexp_body_f): Likewise.
6175 (operator_check_f): Likewise.
6176 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
6178 2021-02-11 Tom de Vries <tdevries@suse.de>
6181 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
6182 Return true for DW_FORM_strx.
6184 2021-02-11 Tom Tromey <tromey@adacore.com>
6187 * parse.c (write_exp_symbol_reference): Write sym.block.
6189 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6191 * NEWS: Mention changes to 'maint info sections'.
6192 * maint.c (match_substring): Return a bool, fix whitespace issue.
6193 (struct single_bfd_flag_info): New struct.
6194 (bfd_flag_info): New static global.
6195 (match_bfd_flags): Return a bool, use bfd_flag_info.
6196 (print_bfd_flags): Use bfd_flag_info.
6197 (maint_print_section_info): Delete trailing whitespace.
6198 (struct maint_info_sections_opts): New struct.
6199 (maint_info_sections_option_defs): New static global.
6200 (maint_info_sections_completer): New function.
6201 (maintenance_info_sections): Use option parsing mechanism.
6202 (_initialize_maint_cmds): Update command help text for 'maint info
6203 sections' and register a command completer.
6205 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6207 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
6208 functionality merged into...
6209 (maint_print_all_sections): ...this new function.
6210 (maintenance_info_sections): Make use of maint_print_all_sections,
6211 allow all objects to be printed even where there's no executable.
6213 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6215 * breakpoint.c (resolve_sal_pc): Make use of
6216 bound_minimal_symbol::obj_section.
6217 * maint.c (maintenance_translate_address): Likewise.
6218 * minsyms.c (minimal_symbol_upper_bound): Likewise.
6219 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
6221 * printcmd.c (info_address_command): Make use of
6222 bound_minimal_symbol::obj_section.
6224 2021-02-11 Alan Modra <amodra@gmail.com>
6226 * arm-symbian-tdep.c: Delete.
6227 * NEWS: Mention arm-symbian removal.
6228 * Makefile.in: Remove arm-symbian-tdep entries.
6229 * configure.tgt: Remove arm*-*-symbianelf*.
6230 * doc/gdb.texinfo: Remove mention of SymbianOS.
6231 * osabi.c (gdb_osabi_names): Remove "Symbian".
6232 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6233 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6234 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6236 * testsuite/gdb.base/dup-sect.exp: Likewise.
6237 * testsuite/gdb.base/long_long.exp: Likewise.
6238 * testsuite/gdb.base/solib-weak.exp: Likewise.
6239 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6240 * testsuite/gdb.python/py-section-script.exp: Likewise.
6241 * testsuite/lib/dwarf.exp: Likewise.
6242 * testsuite/lib/gdb.exp: Likewise.
6244 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6246 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6247 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6248 (one_or_two_args): New pattern.
6249 (f77_keywords): Add lbound and ubound.
6250 * f-lang.c (fortran_bounds_all_dims): New function.
6251 (fortran_bounds_for_dimension): New function.
6252 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6253 (operator_length_f): Likewise.
6254 (print_subexp_f): Likewise.
6255 (dump_subexp_body_f): Likewise.
6256 (operator_check_f): Likewise.
6257 * std-operator.def (FORTRAN_LBOUND): Define.
6258 (FORTRAN_UBOUND): Define.
6260 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6262 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6263 and set_section_index member functions where appropriate.
6264 * coffread.c (coff_symtab_read): Likewise.
6265 (process_coff_symbol): Likewise.
6266 * ctfread.c (set_symbol_address): Likewise.
6267 * dwarf2/read.c (add_partial_symbol): Likewise.
6268 (var_decode_location): Likewise.
6269 * language.c: Likewise.
6270 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6271 (compact_minimal_symbols): Likewise.
6272 (minimal_symbol_upper_bound): Likewise.
6273 * objfiles.c (relocate_one_symbol): Likewise.
6274 * psympriv.h (partial_symbol::obj_section): Likewise.
6275 (partial_symbol::address): Likewise.
6276 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6277 * stabsread.c (scan_file_globals): Likewise.
6278 * symmisc.c (dump_msymbols): Likewise.
6279 * symtab.c (general_symbol_info::obj_section): Likewise.
6280 (fixup_section): Likewise.
6281 (get_msymbol_address): Likewise.
6282 * symtab.h (general_symbol_info::section): Rename to...
6283 (general_symbol_info::m_section): ...this.
6284 (general_symbol_info::set_section_index): New member function.
6285 (general_symbol_info::section_index): Likewise.
6286 (SYMBOL_SECTION): Delete.
6287 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6288 set_section_index member functions where appropriate.
6289 (MSYMBOL_SECTION): Delete.
6290 (symbol::symbol): Update to initialize 'm_section'.
6291 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6292 (process_xcoff_symbol): Likewise.
6294 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6296 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6297 MSYMBOL_OBJ_SECTION.
6298 * findvar.c (language_defn::read_var_value): Likewise.
6299 * infcmd.c (jump_command): Likewise.
6300 * linespec.c (minsym_found): Likewise.
6301 * maint.c (maintenance_translate_address): Likewise.
6302 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6303 (minimal_symbol_upper_bound): Likewise.
6304 * parse.c (find_minsym_type_and_address): Likewise.
6305 (operator_check_standard): Likewise.
6306 * printcmd.c (info_address_command): Likewise.
6307 * symmisc.c (dump_msymbols): Likewise.
6308 (print_symbol): Likewise.
6309 * symtab.c (general_symbol_info::obj_section): Define new
6311 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6312 (find_pc_sect_compunit_symtab): Likewise.
6313 (find_function_start_sal): Likewise.
6314 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6315 MSYMBOL_OBJ_SECTION.
6316 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6318 (SYMBOL_OBJ_SECTION): Delete.
6319 (MSYMBOL_OBJ_SECTION): Delete.
6321 2021-02-09 Tom Tromey <tom@tromey.com>
6323 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6325 2021-02-09 Tom de Vries <tdevries@suse.de>
6328 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6329 construct an array type. Add assert to ensure that element_type is
6332 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6334 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6335 (gcore_collect_regset_section_cb): Delete.
6336 (gcore_collect_thread_registers): Delete.
6337 (gcore_build_thread_register_notes): Delete.
6338 (gcore_find_signalled_thread): Delete.
6339 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6340 'gdbarch' and 'thread_info' declarations.
6341 (gcore_build_thread_register_notes): Delete declaration.
6342 (gcore_find_signalled_thread): Likewise.
6343 * fbsd-tdep.c: Remove 'gcore.h' include.
6344 (struct fbsd_collect_regset_section_cb_data): New struct.
6345 (fbsd_collect_regset_section_cb): New function.
6346 (fbsd_collect_thread_registers): New function.
6347 (struct fbsd_corefile_thread_data): New struct.
6348 (fbsd_corefile_thread): New function.
6349 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6350 * linux-tdep.c: Remove 'gcore.h' include.
6351 (struct linux_collect_regset_section_cb_data): New struct.
6352 (linux_collect_regset_section_cb): New function.
6353 (linux_collect_thread_registers): New function.
6354 (linux_corefile_thread): Call Linux specific code.
6355 (find_signalled_thread): New function.
6356 (linux_make_corefile_notes): Call find_signalled_thread.
6358 2021-02-09 Tom Tromey <tromey@adacore.com>
6360 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6362 * value.c (value_contents_copy_raw): Now static.
6363 * value.h (value_contents_copy_raw): Don't declare.
6365 2021-02-09 Tom Tromey <tromey@adacore.com>
6367 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6370 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
6373 * arc-linux-tdep.c (handle_atomic_sequence): New.
6374 (arc_linux_software_single_step): Call handle_atomic_sequence().
6376 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6378 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6380 (REQUIRE_WINDOW): Call is_valid member function.
6381 (REQUIRE_WINDOW_FOR_SETTER): New define.
6382 (gdbpy_tui_is_valid): Call is_valid member function.
6383 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6384 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6386 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6387 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6390 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6392 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6393 for the title is not nullptr.
6395 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6397 * tui-layout.c (saved_tui_windows): Delete.
6398 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6399 call new get_windows member function instead.
6400 (tui_get_window_by_name): Check in tui_windows.
6401 (tui_layout_window::apply): Don't add to tui_windows.
6402 * tui-layout.h (tui_layout_base::get_windows): New member function.
6403 (tui_layout_window::get_windows): Likewise.
6404 (tui_layout_split::get_windows): Likewise.
6406 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6408 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6409 of the window objects.
6411 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6413 * python/python.c (gdbpy_print_stack): Reformat an error message.
6415 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6417 * tui/tui-interp.c (tui_command_line_handler): New function.
6418 (tui_interp::resume): Register tui_command_line_handler as the
6420 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6422 (tui_getc_1): Delete handling of '\n' and '\r'.
6423 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6425 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6427 * tui/tui-regs.c (tui_data_window::display_registers_from):
6428 Mark invisible register sub windows.
6429 (tui_data_window::check_register_values): Ignore invisible
6430 register sub windows.
6432 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6434 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6435 n_spaces with a negative value.
6437 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6439 * tui/tui-regs.c (tui_data_window::display_registers_from):
6440 Add refresh_window call.
6442 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6444 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6446 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6448 * symmisc.c (std_in, std_out, std_err): Remove.
6449 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6451 2021-02-05 Tom de Vries <tdevries@suse.de>
6453 PR breakpoints/27330
6454 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6455 glibc object file has debug info.
6457 2021-02-05 Tom de Vries <tdevries@suse.de>
6460 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6462 2021-02-05 Tom de Vries <tdevries@suse.de>
6464 PR breakpoints/27313
6465 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6468 2021-02-05 Tom Tromey <tom@tromey.com>
6470 * compile/compile-c-support.c (get_compile_context)
6471 (c_get_compile_context, cplus_get_compile_context): Change return
6473 * language.c (language_defn::get_compile_instance): New method.
6474 * language.h (language_defn::get_compile_instance): Change return
6475 type. No longer inline.
6476 * c-lang.c (c_language::get_compile_instance): Change return type.
6477 (cplus_language::get_compile_instance): Change return type.
6478 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6480 * compile/compile.c (compile_to_object): Update.
6482 2021-02-05 Tom Tromey <tom@tromey.com>
6484 * parser-defs.h (write_exp_symbol_reference): Declare.
6485 * parse.c (write_exp_symbol_reference): New function.
6486 * p-exp.y (variable): Use write_exp_symbol_reference.
6487 * m2-exp.y (variable): Use write_exp_symbol_reference.
6488 * f-exp.y (variable): Use write_exp_symbol_reference.
6489 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6490 * c-exp.y (variable): Use write_exp_symbol_reference.
6492 2021-02-05 Tom de Vries <tdevries@suse.de>
6495 * valarith.c (complex_binop): Throw an error if complex type can't
6498 2021-02-05 Tom de Vries <tdevries@suse.de>
6501 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6504 2021-02-05 Tom de Vries <tdevries@suse.de>
6506 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6508 2021-02-04 Mike Frysinger <vapier@gentoo.org>
6510 * configure.tgt (riscv*-*-*): Set gdb_sim.
6512 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6514 * target.c (target_is_non_stop_p): Return bool.
6515 * target.h (target_is_non_stop_p): Return bool.
6517 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6519 * record-full.c (record_full_async_inferior_event_handler):
6520 Don't clear async event handler.
6521 (record_full_base_target::wait): Clear async event handler at
6524 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6526 * record-btrace.c (record_btrace_handle_async_inferior_event):
6527 Don't clear async event handler.
6528 (record_btrace_target::wait): Clear async event handler at
6531 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6533 * remote.c (remote_target::wait): Clear async event handler at
6534 beginning, mark if needed at the end.
6535 (remote_async_inferior_event_handler): Don't set or clear async
6538 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6540 * async-event.h (async_event_handler_func): Add documentation.
6541 * async-event.c (check_async_event_handlers): Don't clear
6542 async_event_handler ready flag.
6543 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6545 * record-btrace.c (record_btrace_handle_async_inferior_event):
6547 * record-full.c (record_full_async_inferior_event_handler):
6549 * remote-notif.c (remote_async_get_pending_events_handler):
6551 * remote.c (remote_async_inferior_event_handler): Likewise.
6553 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6555 * infrun.c (handle_inferior_event): Move stop_soon variable to
6558 2021-02-03 Pedro Alves <pedro@palves.net>
6560 * infcmd.c (detach_command): Hold strong reference to target, and
6561 if all-stop on entry, restart threads on exit.
6562 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6563 (restart_stepped_thread): ... this new function. Also handle
6565 (restart_after_all_stop_detach): New function.
6566 * infrun.h (restart_after_all_stop_detach): Declare.
6568 2021-02-03 Pedro Alves <pedro@palves.net>
6570 * infrun.c (struct step_over_info): Initialize fields.
6571 (prepare_for_detach): Handle ongoing in-line step over.
6573 2021-02-03 Pedro Alves <pedro@palves.net>
6575 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6577 * remote.c (remote_target::remote_detach_1): ... and here ...
6578 * target.c (target_detach): ... instead of here.
6579 * target.h (target_ops::detach): Add comment.
6581 2021-02-03 Pedro Alves <pedro@palves.net>
6583 * infrun.c (struct wait_one_event): Move higher up.
6584 (prepare_for_detach): Abort in-progress displaced steps instead of
6585 letting them complete.
6586 (handle_one): If the inferior is detaching, don't add the thread
6587 back to the global step-over chain.
6588 (restart_threads): Don't restart threads if detaching.
6589 (handle_signal_stop): Remove inferior::detaching reference.
6591 2021-02-03 Pedro Alves <pedro@palves.net>
6593 * infrun.c (prepare_for_detach): Don't release scoped_restore
6596 2021-02-03 Pedro Alves <pedro@palves.net>
6598 * infrun.c (handle_one): New function, factored out from ...
6599 (stop_all_threads): ... here.
6601 2021-02-03 Pedro Alves <pedro@palves.net>
6603 * remote.c (remote_notif_stop_ack): Don't error out on
6604 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6605 (remote_target::discard_pending_stop_replies): Don't delete
6606 in-flight notification; instead, clear its contents.
6608 2021-02-03 Pedro Alves <pedro@palves.net>
6610 * remote.c (extended_remote_target::attach): Set target async in
6611 the target-non-stop path too.
6613 2021-02-03 Pedro Alves <pedro@palves.net>
6616 * infrun.c (handle_signal_stop): Move main context_switch call
6617 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6619 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6621 * NEWS (Changed commands): Add entry for the behavior change of
6622 the inferior command.
6623 * inferior.c (inferior_command): When no argument is given to the
6624 inferior command, display info about the currently selected
6627 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6629 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6631 (read_attribute_reprocess): Adjust.
6633 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6635 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6636 <gnu_ranges_base>: ... this...
6637 <rnglists_base>: ... and this.
6638 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6639 <gnu_ranges_base>: ... this...
6640 <rnglists_base>: ... and this.
6641 (read_cutu_die_from_dwo): Adjust
6642 (dwarf2_get_pc_bounds): Adjust
6643 (dwarf2_record_block_ranges): Adjust.
6644 (read_full_die_1): Adjust
6645 (partial_die_info::read): Adjust.
6646 (read_rnglist_index): Adjust.
6648 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6651 * dwarf2/read.c (read_loclists_rnglists_header): Add
6652 header_offset parameter and use it.
6653 (read_loclist_index): Read header of the current contribution,
6654 not the one at the beginning of the section.
6655 (read_rnglist_index): Likewise.
6657 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6660 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6661 requires_reprocessing flag.
6662 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6664 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6665 and DW_FORM_loclistx.
6666 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6667 instead of set_address for DW_FORM_loclistx and
6670 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6672 * dwarf2/read.c (read_loclist_index): Remove bound check for
6674 (read_rnglist_index): Likewise.
6676 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6678 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6681 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6683 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6685 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6687 * dwarf2/read.c (read_loclist_index): Change complaints into
6690 2021-02-02 Tom de Vries <tdevries@suse.de>
6693 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6696 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6698 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6699 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6700 here from linux-tdep.c and given a new name. Minor cleanups.
6701 (gcore_collect_regset_section_cb): Likewise.
6702 (gcore_collect_thread_registers): Likewise.
6703 (gcore_build_thread_register_notes): Likewise.
6704 (gcore_find_signalled_thread): Likewise.
6705 * gcore.h (gcore_build_thread_register_notes): Declare.
6706 (gcore_find_signalled_thread): Declare.
6707 * fbsd-tdep.c: Add 'gcore.h' include.
6708 (struct fbsd_collect_regset_section_cb_data): Delete.
6709 (fbsd_collect_regset_section_cb): Delete.
6710 (fbsd_collect_thread_registers): Delete.
6711 (struct fbsd_corefile_thread_data): Delete.
6712 (fbsd_corefile_thread): Delete.
6713 (fbsd_make_corefile_notes): Call
6714 gcore_build_thread_register_notes instead of the now deleted
6716 * linux-tdep.c: Add 'gcore.h' include.
6717 (struct linux_collect_regset_section_cb_data): Delete.
6718 (linux_collect_regset_section_cb): Delete.
6719 (linux_collect_thread_registers): Delete.
6720 (linux_corefile_thread): Call
6721 gcore_build_thread_register_notes.
6722 (find_signalled_thread): Delete.
6723 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6725 2021-01-29 Tom de Vries <tdevries@suse.de>
6727 PR breakpoints/26063
6728 * infrun.c (process_event_stop_test): Reset
6729 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6732 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6734 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6735 assert. Extend the header comment.
6737 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6739 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6740 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6741 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6742 (tui_locator_win_info_ptr): Delete declaration.
6743 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6744 (tui_disasm_window::set_contents): Fetch state from tui_location
6746 (tui_get_begin_asm_address): Likewise.
6747 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6749 (get_locator_window): Delete.
6750 (initialize_known_windows): Treat locator window just like all the
6752 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6753 (tui_source_window::set_contents): Fetch state from tui_location
6755 (tui_source_window::showing_source_p): Likewise.
6756 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6758 (tui_locator_win_info_ptr): Delete.
6759 (tui_locator_window::make_status_line): Fetch state from
6760 tui_location global.
6761 (tui_locator_window::rerender): Remove check of 'handle',
6762 reindent function body.
6763 (tui_locator_window::set_locator_fullname): Delete.
6764 (tui_locator_window::set_locator_info): Delete.
6765 (tui_update_locator_fullname): Delete.
6766 (tui_show_frame_info): Likewise.
6767 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6768 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6769 tui/tui-location.h and renamed to
6770 tui_location_tracker::set_location.
6771 (tui_locator_window::set_locator_fullname): Moved to
6772 tui/tui-location.h and renamed to
6773 tui_location_tracker::set_fullname.
6774 (tui_locator_window::full_name): Delete.
6775 (tui_locator_window::proc_name): Delete.
6776 (tui_locator_window::line_no): Delete.
6777 (tui_locator_window::addr): Delete.
6778 (tui_locator_window::gdbarch): Delete.
6779 (tui_update_locator_fullname): Delete declaration.
6780 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6782 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6783 (tui_display_main): Call function on tui_location directly.
6784 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6785 * tui/tui-location.c: New file.
6786 * tui/tui-location.h: New file.
6788 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6790 * gdbtypes.h (get_type_arch): Rename to...
6791 (struct type) <arch>: ... this, update all users.
6793 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6795 * gdbtypes.h (struct type) <arch>: Rename to...
6796 <arch_owner>: ... this, update all users.
6797 <objfile>: Rename to...
6798 <objfile_owner>: ... this, update all users.
6800 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6802 * gdbcmd.h (execute_command_to_string): Update comment.
6803 * top.c (execute_command_to_string): Update header comment.
6805 2021-01-28 Tom de Vries <tdevries@suse.de>
6807 PR breakpoints/27205
6808 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6809 (create_longjmp_master_breakpoint_names): New function, factored out
6811 (create_longjmp_master_breakpoint): ... here. Only try to install
6812 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6813 breakpoint in libc.so failed.
6815 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6818 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6819 unique_ptr is released when the wrapped pointer is kept for later
6822 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6824 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6825 BLR and BR instructions.
6826 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6827 (enum aarch64_masks): New.
6829 2021-01-26 Tom Tromey <tromey@adacore.com>
6831 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6832 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6833 (windows_init_thread_list, windows_nat::handle_load_dll)
6834 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6835 (windows_nat_target::resume)
6836 (windows_nat_target::get_windows_debug_event)
6837 (windows_nat_target::interrupt, windows_xfer_memory)
6838 (windows_nat_target::close): Update.
6839 * nat/windows-nat.c (DEBUG_EVENTS): Use
6840 debug_prefixed_printf_cond.
6841 (matching_pending_stop, fetch_pending_stop)
6842 (continue_last_debug_event): Update.
6844 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6846 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6847 elfcore_write_file_note.
6849 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6851 * arc-tdep.c (arc_add_reggroups): New function.
6852 (arc_gdbarch_init): Call arc_add_reggroups.
6854 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6856 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6858 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6859 Simon Marchi <simon.marchi@polymtl.ca>
6860 Tom de Vries <tdevries@suse.de>
6862 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6865 2021-01-25 Tom Tromey <tromey@adacore.com>
6867 * dwarf2/read.c (get_mpz): New function.
6868 (get_dwarf2_rational_constant): Use it.
6870 2021-01-25 Tom Tromey <tromey@adacore.com>
6872 * ada-lang.c (resolve_subexp): Handle array context.
6874 2021-01-23 Tom Tromey <tom@tromey.com>
6877 * compile/compile-loc2c.c (note_register): New function.
6878 (pushf_register_address, pushf_register): Use it.
6880 2021-01-23 Tom Tromey <tom@tromey.com>
6882 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6883 Change type of "registers_used".
6884 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6885 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6886 (locexpr_generate_c_location, loclist_generate_c_location): Change
6887 type of "registers_used".
6888 * compile/compile.h (compile_dwarf_expr_to_c)
6889 (compile_dwarf_bounds_to_c): Update.
6890 * compile/compile-loc2c.c (pushf_register_address)
6891 (pushf_register, do_compile_dwarf_expr_to_c)
6892 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6893 of "registers_used".
6894 * compile/compile-c.h (generate_c_for_variable_locations):
6896 * compile/compile-c-symbols.c (generate_vla_size)
6897 (generate_c_for_for_one_variable): Change type of
6899 (generate_c_for_variable_locations): Return std::vector.
6900 * compile/compile-c-support.c (generate_register_struct): Change
6901 type of "registers_used".
6904 2021-01-23 Tom Tromey <tom@tromey.com>
6906 * compile/compile-internal.h (class compile_instance)
6907 <set_arguments>: Change return type.
6908 * compile/compile.c (compile_to_object): Remove call to reset.
6909 (compile_instance::set_arguments): Change return type.
6911 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6913 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6914 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6916 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6918 * Makefile.in (SELFTESTS_SRCS): Add
6919 unittests/gdb_tilde_expand-selftests.c.
6920 * unittests/gdb_tilde_expand-selftests.c: New file.
6922 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6925 * NEWS: Mention new command.
6926 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6927 (version_style): Define.
6928 (cli_style_option::cli_style_option): Add intensity parameter, and
6930 (_initialize_cli_style): Register version style set/show commands.
6931 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6932 (version_style): Declare.
6933 * top.c (print_gdb_version): Use version_stype, and styled_string
6934 to print the GDB version string.
6936 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6938 * utils.c (emit_style_escape): Only emit an escape sequence if the
6939 requested style is different than the current applied style.
6940 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6941 current applied_style.
6942 (fputs_styled): Remove is_default check.
6943 (fputs_styled_unfiltered): Likewise.
6944 (vfprintf_styled_no_gdbfmt): Likewise.
6946 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6948 * remote.h (remote_debug_printf): New.
6949 (remote_debug_printf_nofunc): New.
6950 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6951 * remote.c: Use above macros throughout file.
6953 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6955 * remote.h (remote_debug): Change to bool.
6956 * remote.c (remote_debug): Change to bool.
6957 (_initialize_remote): Adjust.
6959 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6961 * target.h (remote_debug): Move to...
6962 * remote.h (remote_debug): ... here.
6963 * top.c (remote_debug): Move to...
6964 * remote.c (remote_debug): ... here.
6965 * remote-sim.c: Include remote.h.
6967 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6969 * cli/cli-cmds.c (show_remote_debug): Remove.
6970 (show_remote_timeout): Remove.
6971 (_initialize_cli_cmds): Don't register commands.
6972 * remote.c (show_remote_debug): Move here.
6973 (show_remote_timeout): Move here.
6974 (_initialize_remote): Register commands.
6976 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6978 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6979 type::objfile method instead.
6981 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6983 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6984 use the type::is_objfile_owned method.
6986 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6988 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6989 (TYPE_OWNER): Remove.
6990 (TYPE_OBJFILE): Adjust.
6991 (struct main_type) <flag_objfile_owned>: Rename to...
6992 <m_flag_objfile_owned>: ... this.
6993 <owner>: Rename to...
6994 <m_owner>: ... this.
6995 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6997 (TYPE_ALLOC): Adjust.
6998 * gdbtypes.c (alloc_type): Adjust.
6999 (alloc_type_arch): Adjust.
7000 (alloc_type_copy): Adjust.
7001 (get_type_arch): Adjust.
7002 (smash_type): Adjust.
7003 (lookup_array_range_type): Adjust.
7004 (recursive_dump_type): Adjust.
7005 (copy_type_recursive): Adjust.
7006 * compile/compile-c-types.c (convert_func): Adjust.
7007 (convert_type_basic): Adjust.
7008 * compile/compile-cplus-types.c (compile_cplus_convert_func):
7011 (language_arch_info::type_and_symbol::alloc_type_symbol):
7014 2021-01-21 Luis Machado <luis.machado@linaro.org>
7016 * coffread.c (enter_linenos): Passing string to complaint.
7017 * valops.c (value_assign): Make array view.
7019 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7021 * auto-load.h (debug_auto_load): Move here.
7022 (auto_load_debug_printf): New.
7023 * auto-load.c: Use auto_load_debug_printf.
7024 (debug_auto_load): Move to header.
7025 * linux-thread-db.c (try_thread_db_load): Use
7026 auto_load_debug_printf.
7027 * main.c (captured_main_1): Likewise.
7029 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7031 * f-valprint.c (f77_array_offset_tbl): Remove.
7033 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7035 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
7037 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7039 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
7042 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
7045 * python/py-breakpoint.c (bppy_get_location): Handle
7046 bp_hardware_breakpoint.
7047 (bppy_init): Likewise.
7048 (gdbpy_breakpoint_created): Likewise.
7050 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7052 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
7054 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7056 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
7057 (_initialize_gdb_bfd): Adjust.
7059 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7062 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
7064 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7066 * dwarf2/read.c (follow_die_offset): Add logging.
7067 (dwarf2_per_objfile::age_comp_units): Add logging.
7069 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7071 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
7072 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
7073 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
7074 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
7075 * arm-tdep.c (struct frame_unwind): Make static.
7076 * auto-load.c (auto_load_safe_path_vec): Make static.
7077 * csky-tdep.c (csky_stub_unwind): Make static.
7078 * gdbarch.c (gdbarch_data_registry): Make static.
7079 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
7080 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
7081 * i386-tdep.c (i386_frame_setup_skip_insns,
7082 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
7084 * infrun.c (observer_mode): Make static.
7085 * linux-nat.c (sigchld_action): Make static.
7086 * linux-thread-db.c (thread_db_list): Make static.
7087 * maint-test-options.c (maintenance_test_options_list):
7088 * mep-tdep.c (mep_csr_registers): Make static.
7089 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
7090 (stats): Make static.
7091 * nat/linux-osdata.c (struct osdata_type): Make static.
7092 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
7093 * progspace.c (last_program_space_num): Make static.
7094 * python/py-param.c (struct parm_constant): Remove struct type
7096 (parm_constants): Make static.
7097 * python/py-record-btrace.c (btpy_list_methods): Make static.
7098 * python/py-record.c (recpy_gap_type): Make static.
7099 * record.c (record_goto_cmdlist): Make static.
7100 * regcache.c (regcache_descr_handle): Make static.
7101 * registry.h (DEFINE_REGISTRY): Make definition static.
7102 * symmisc.c (std_in, std_out, std_err): Make static.
7103 * top.c (previous_saved_command_line): Make static.
7104 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
7106 * unittests/command-def-selftests.c (nr_duplicates,
7107 nr_invalid_prefixcmd, lists): Make static.
7108 * unittests/observable-selftests.c (test_notification): Make
7110 * unittests/optional/assignment/1.cc (counter): Make static.
7111 * unittests/optional/assignment/2.cc (counter): Make static.
7112 * unittests/optional/assignment/3.cc (counter): Make static.
7113 * unittests/optional/assignment/4.cc (counter): Make static.
7114 * unittests/optional/assignment/5.cc (counter): Make static.
7115 * unittests/optional/assignment/6.cc (counter): Make static.
7117 2021-01-20 Joel Sherrill <joel@rtems.org>
7120 * remote.c (struct remote_thread_info) <resume_state>: Rename
7122 <get_resume_state>: ... this.
7123 (remote_target::resume): Adjust.
7124 (remote_target::commit_resume): Adjust.
7125 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
7127 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
7128 Tom Tromey <tom@tromey.com>
7130 * stap-probe.c (stap_parse_single_operand): Handle '!'
7132 (stap_parse_argument_conditionally): Likewise.
7133 Skip spaces after processing open-parenthesis sub-expression.
7134 (stap_parse_argument_1): Skip spaces after call to
7135 stap_parse_argument_conditionally.
7136 Handle case when right-side expression is a parenthesized
7138 Skip spaces after call to stap_parse_argument_1.
7140 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
7142 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
7144 2021-01-19 Luis Machado <luis.machado@linaro.org>
7146 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
7147 memory and save data.
7148 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
7149 (trad_frame_set_unknown, trad_frame_set_value_bytes)
7150 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7151 (trad_frame_value_bytes_p): Remove.
7152 (trad_frame_reset_saved_regs): Adjust documentation.
7153 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
7154 constructor and reset the state of the registers.
7155 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7156 (trad_frame_value_bytes_p, trad_frame_set_value)
7157 (trad_frame_set_realreg, trad_frame_set_addr)
7158 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
7159 (trad_frame_set_reg_realreg): Update to call member function.
7160 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
7161 (trad_frame_get_prev_register): Likewise.
7163 * aarch64-tdep.c (aarch64_analyze_prologue)
7164 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
7165 (aarch64_prologue_prev_register): Update to use member functions.
7166 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
7167 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
7168 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
7169 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
7170 (arm_make_epilogue_frame_cache): Likewise.
7171 * avr-tdep.c (avr_frame_unwind_cache)
7172 (avr_frame_prev_register): Likewise.
7173 * cris-tdep.c (cris_scan_prologue): Likewise.
7174 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
7175 * frv-tdep.c (frv_analyze_prologue): Likewise.
7176 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
7177 * lm32-tdep.c (lm32_frame_cache): Likewise.
7178 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
7179 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7180 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
7181 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
7182 (reset_saved_regs): Adjust to set realreg.
7183 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
7184 call member functions.
7185 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
7186 * s390-tdep.c (s390_prologue_frame_unwind_cache)
7187 (s390_backchain_frame_unwind_cache): Likewise.
7188 * score-tdep.c (score7_analyze_prologue)
7189 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
7190 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
7191 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
7192 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
7193 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
7194 * tilegx-tdep.c (tilegx_analyze_prologue)
7195 (tilegx_frame_cache): Likewise.
7196 * v850-tdep.c (v850_frame_cache): Likewise.
7197 * vax-tdep.c (vax_frame_cache): Likewise.
7199 2021-01-19 Luis Machado <luis.machado@linaro.org>
7201 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
7203 (put_frame_register_bytes): Likewise.
7204 Adjust documentation.
7205 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
7206 (safe_frame_unwind_memory): Likewise.
7207 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
7208 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
7210 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
7211 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
7212 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
7213 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
7214 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
7215 * dwarf2/loc.c (rw_pieced_value): Likewise.
7216 * hppa-tdep.c (hppa_frame_cache): Likewise.
7217 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
7218 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
7219 * i386-linux-tdep.c (i386_linux_sigtramp_start)
7220 (i386_linux_rt_sigtramp_start): Likewise.
7221 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
7222 * i386-tdep.c (i386_register_to_value): Likewise.
7223 * i387-tdep.c (i387_register_to_value): Likewise.
7224 * ia64-tdep.c (ia64_register_to_value): Likewise.
7225 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
7226 (m32r_linux_rt_sigtramp_start): Likewise.
7227 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
7228 * m68k-tdep.c (m68k_register_to_value): Likewise.
7229 * mips-tdep.c (mips_register_to_value)
7230 (mips_value_to_register): Likewise.
7231 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
7232 (ppcfbsd_sigtramp_frame_cache): Likewise.
7233 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7234 (ppcobsd_sigtramp_frame_cache): Likewise.
7235 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7236 (rs6000_register_to_value): Likewise.
7237 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7238 * tramp-frame.c (tramp_frame_start): Likewise.
7239 * valops.c (value_assign): Likewise.
7241 2021-01-19 Luis Machado <luis.machado@linaro.org>
7243 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7245 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7246 instead of buffer and size.
7247 (trad_frame_set_reg_value_bytes): Likewise.
7248 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7249 (trad_frame_set_value_bytes): Likewise.
7251 2021-01-18 Mike Frysinger <vapier@gentoo.org>
7253 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7255 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7257 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7258 (riscv_fbsd_gregset): Use riscv_supply_regset.
7259 (riscv_fbsd_fpregset): Likewise.
7260 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7261 (riscv_linux_fregset): Likewise.
7262 * riscv-tdep.c (riscv_supply_regset): Define new function.
7263 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7265 2021-01-18 Tom de Vries <tdevries@suse.de>
7268 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7270 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7273 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7275 * remote.c (class remote_target) <remote_hostio_send_command,
7276 remote_hostio_parse_result>: Constify parameter.
7277 (remote_hostio_parse_result): Likewise.
7278 (remote_target::remote_hostio_send_command): Adjust.
7279 (remote_target::remote_hostio_pread_vFile): Adjust.
7280 (remote_target::fileio_readlink): Adjust.
7281 (remote_target::fileio_fstat): Adjust.
7283 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7285 * remote.c (remote_target::start_remote): Move wait_status to
7288 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7290 * remote.c (class remote_target):
7291 <add_current_inferior_and_thread>: Constify parameter.
7292 (stop_reply_extract_thread): Likewise.
7293 (remote_target::get_current_thread): Likewise.
7294 (remote_target::add_current_inferior_and_thread): Likewise.
7296 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7298 * remote.c (class remote_target)
7299 <remote_unpack_thread_info_response,
7300 parse_threadlist_response>: Constify parameter and/or return
7301 value and or local variable.
7302 (stub_unpack_int): Likewise.
7303 (unpack_nibble): Likewise.
7304 (unpack_byte): Likewise.
7305 (unpack_int): Likewise.
7306 (unpack_string): Likewise.
7307 (unpack_threadid): Likewise.
7308 (remote_target::remote_unpack_thread_info_response): Likewise.
7309 (remote_target::parse_threadlist_response): Likewise.
7311 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7313 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7315 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
7317 * MAINTAINERS (Write After Approval): Add myself.
7319 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7321 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7322 because is_trivially_default_constructible was first implemented with
7325 2021-01-14 Tom de Vries <tdevries@suse.de>
7327 PR breakpoints/27151
7328 * objfiles.h (in_plt_section): Handle .plt.sec.
7330 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7334 (remote_target::select_thread_for_ambiguous_stop_reply): New
7336 (remote_target::process_stop_reply): Call
7337 select_thread_for_ambiguous_stop_reply.
7339 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7341 * record-btrace.c (class record_btrace_target): Remove.
7342 (record_btrace_target::commit_resume): Remove.
7343 * record-full.c (class record_full_target): Remove.
7344 (record_full_target::commit_resume): Remove.
7346 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7348 * remote.c (enum class resume_state): New.
7349 (struct resumed_pending_vcont_info): New.
7350 (struct remote_thread_info) <resume_state, set_not_resumed,
7351 set_resumed_pending_vcont, resumed_pending_vcont_info,
7352 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7354 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7355 (remote_target::remote_add_thread): Adjust.
7356 (remote_target::process_initial_stop_replies): Adjust.
7357 (remote_target::resume): Adjust.
7358 (remote_target::commit_resume): Rely on state in
7359 remote_thread_info and not on tp->executing.
7360 (remote_target::process_stop_reply): Adjust.
7362 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7364 * arc-tdep.h (arc_debug_printf): New.
7365 * arc-tdep.c: Use arc_debug_printf.
7366 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7367 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7368 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7370 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7372 * arc-tdep.h (arc_debug): Change type to bool.
7373 * arc-tdep.c (arc_debug): Change type to bool.
7374 (arc_analyze_prologue): Adjust.
7375 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7376 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7378 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7380 * auto-load.c (auto_load_objfile_script_1): Use bool.
7381 (execute_script_contents): Use bool.
7383 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7385 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7387 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7389 * extension-priv.h (struct extension_language_script_ops)
7390 <auto_load_enabled>: Return bool.
7391 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7393 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7395 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7397 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7398 move comment to header.
7399 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7401 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7402 move comment to header.
7404 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7406 * auto-load.h (file_is_auto_load_safe): Change return type to
7407 bool, move comment here.
7408 * auto-load.c (file_is_auto_load_safe): Change return type and
7409 advice_printed to bool. Move comment to header.
7411 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7413 * jit.c (jit_debug_printf): New, use throughout file.
7415 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7417 * infrun.c (normal_stop): Fix indentation.
7419 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7421 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7423 * symfile.h: ... here.
7424 * symfile.c: Update doc.
7426 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7428 * target.h (baud_rate, serial_parity): Move declarations...
7429 * serial.h: ... here.
7430 * main.c: Include serial.h.
7431 * serial.c (baud_rate, serial_parity): Update doc.
7433 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7435 * top.c (pre_init_ui_hook): Remove.
7437 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7439 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7440 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7441 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7442 * features/aarch64-fpu.xml: Add bfloat16 type.
7444 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7446 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7448 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7450 * f-exp.y (dot_ops): Rename to...
7451 (fortran_operators): ...this. Add a header comment. Add symbol
7453 (yylex): Update to use fortran_operators not dot_ops. Remove
7454 special handling for '**', this is now included in
7457 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7459 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7460 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7461 * aarch64-tdep.c: Use aarch64_debug_printf.
7463 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7465 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7468 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7470 * jit.c (jit_debug): Change type to bool.
7471 (_initialize_jit): Adjust.
7473 2021-01-09 Tom Tromey <tom@tromey.com>
7476 * compile/compile.c (compile_to_object): Avoid crash when
7477 osabi_triplet_regexp returns NULL.
7479 2021-01-09 Tom Tromey <tom@tromey.com>
7481 * tracepoint.h (class collection_list) <append_exp>: Take a
7483 * tracepoint.c (collection_list::append_exp): Take a std::string.
7484 (encode_actions_1): Update.
7486 2021-01-08 Tom Tromey <tromey@adacore.com>
7488 * parse.c (parse_expression): Add void_context_p parameter. Use
7489 parse_exp_in_context.
7490 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7492 (print_command, call_command): Update.
7493 * expression.h (parse_expression): Add void_context_p parameter.
7495 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7497 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7498 for internalvar components that have a dynamic location.
7500 2021-01-08 Tom de Vries <tdevries@suse.de>
7503 * breakpoint.c (create_exception_master_breakpoint_probe)
7504 (create_exception_master_breakpoint_hook): Factor out
7506 (create_exception_master_breakpoint): ... here. Only try to install
7507 the master exception breakpoint in objfile.debug using the
7508 _Unwind_DebugHook method, if the install using probes in objfile
7511 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7513 * f-lang.c (fortran_value_subarray): Call value_from_component.
7515 2021-01-07 Mike Frysinger <vapier@gentoo.org>
7517 * remote-sim.c: Include memory-map.h.
7518 (gdbsim_target): Define memory_map override.
7519 (gdbsim_target::memory_map): Define.
7521 2021-01-07 Tom Tromey <tromey@adacore.com>
7523 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7525 2021-01-07 Tom Tromey <tromey@adacore.com>
7527 * ada-lang.c (add_component_interval): Start loop using vector's
7530 2021-01-06 Tom Tromey <tromey@adacore.com>
7532 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7534 * valarith.c (fixed_point_binop): Handle multiplication
7535 and division specially.
7536 * valops.c (value_to_gdb_mpq): New function.
7537 (value_cast_to_fixed_point): Use it.
7539 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7541 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7542 Call wnoutrefresh instead of tui_win_info::refresh_window.
7544 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7546 * tui/tui-source.c (tui_source_window::show_line_number):
7547 Redraw second space after line number.
7549 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7552 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7553 Fix source pad size in prefresh.
7554 (tui_source_window_base::show_source_content): Grow source pad
7557 2021-01-04 Mike Frysinger <vapier@gentoo.org>
7559 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7560 (bfin_frame_align): Use align_down.
7562 2021-01-04 Tom de Vries <tdevries@suse.de>
7564 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7565 terminators that do not terminate anything.
7567 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7569 * debug.c (debug_print_depth): New.
7570 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7571 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7572 * infrun.c (start_step_over): Use
7573 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7574 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7575 INFRUN_SCOPED_DEBUG_START_END.
7576 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7578 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7580 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7582 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7584 * utils.c (vfprintf_unfiltered): Print timestamp only when
7585 previous debug output ended with a newline.
7587 2021-01-04 Luis Machado <luis.machado@linaro.org>
7589 Update all users of trad_frame_saved_reg to use the new member
7592 Remote all struct keywords from declarations of trad_frame_saved_reg
7593 types, except on forward declarations.
7595 * aarch64-tdep.c: Update.
7596 * alpha-mdebug-tdep.c: Update.
7597 * alpha-tdep.c: Update.
7598 * arc-tdep.c: Update.
7599 * arm-tdep.c: Update.
7600 * avr-tdep.c: Update.
7601 * cris-tdep.c: Update.
7602 * csky-tdep.c: Update.
7603 * frv-tdep.c: Update.
7604 * hppa-linux-tdep.c: Update.
7605 * hppa-tdep.c: Update.
7606 * hppa-tdep.h: Update.
7607 * lm32-tdep.c: Update.
7608 * m32r-linux-tdep.c: Update.
7609 * m32r-tdep.c: Update.
7610 * m68hc11-tdep.c: Update.
7611 * mips-tdep.c: Update.
7612 * moxie-tdep.c: Update.
7613 * riscv-tdep.c: Update.
7614 * rs6000-tdep.c: Update.
7615 * s390-linux-tdep.c: Update.
7616 * s390-tdep.c: Update.
7617 * score-tdep.c: Update.
7618 * sparc-netbsd-tdep.c: Update.
7619 * sparc-sol2-tdep.c: Update.
7620 * sparc64-fbsd-tdep.c: Update.
7621 * sparc64-netbsd-tdep.c: Update.
7622 * sparc64-obsd-tdep.c: Update.
7623 * sparc64-sol2-tdep.c: Update.
7624 * tilegx-tdep.c: Update.
7625 * v850-tdep.c: Update.
7626 * vax-tdep.c: Update.
7628 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7629 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7631 * trad-frame.c: Update.
7632 Remove TF_REG_* enum.
7633 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7634 a trivially-constructible struct.
7635 (trad_frame_reset_saved_regs): Adjust to use member function.
7636 (trad_frame_value_p): Likewise.
7637 (trad_frame_addr_p): Likewise.
7638 (trad_frame_realreg_p): Likewise.
7639 (trad_frame_value_bytes_p): Likewise.
7640 (trad_frame_set_value): Likewise.
7641 (trad_frame_set_realreg): Likewise.
7642 (trad_frame_set_addr): Likewise.
7643 (trad_frame_set_unknown): Likewise.
7644 (trad_frame_set_value_bytes): Likewise.
7645 (trad_frame_get_prev_register): Likewise.
7646 * trad-frame.h: Update.
7647 (trad_frame_saved_reg_kind): New enum.
7648 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7649 <m_kind, m_reg>: New member fields.
7650 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7651 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7652 <is_addr, is_unknown, is_value_bytes>: New member functions.
7654 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7656 * target-float.c: Fix typos.
7658 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
7660 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7662 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7664 * gdbarch.sh: Update copyright year range.
7666 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7668 Update copyright year range in copyright header of all GDB files.
7670 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7672 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7673 to the list of directories to update.
7675 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7677 * top.c (print_gdb_version): Update copyright year.
7679 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
7681 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
7683 For older changes see ChangeLog-2020.
7689 version-control: never