1 2022-01-16 Joel Brobecker <brobecker@adacore.com>
3 * copyright.py (EXCLUDE_LIST): Add "gdbsupport/Makefile.in".
5 2022-01-16 Joel Brobecker <brobecker@adacore.com>
7 * top.c: Update year range in copyright notice.
8 (print_gdb_version): Update copyright year to 2022.
10 2021-12-23 Andrew Burgess <andrew.burgess@embecosm.com>
13 * remote.c (remote_target::remote_add_thread): Add new silent_p
14 argument, use as needed.
15 (remote_target::remote_notice_new_inferior): Pass additional
16 argument to remote_add_thread.
17 (remote_target::remote_notice_new_inferior): Likewise.
18 (extended_remote_target::attach): Call remote_add_thread instead
19 of add_thred_silent directly.
20 (remote_target::select_thread_for_ambiguous_stop_reply): Move
21 assert earlier, before we use the thing we're asserting is not
24 2021-12-11 Bruno Larsen <blarsen@redhat.com>
28 Pushed by Joel Brobecker <brobecker@adacore.com>
29 * valops.c (struct_field_searcher::update_result): Improve
30 ambiguous member detection.
32 2021-11-03 Luis Machado <luis.machado@linaro.org>
36 * arch/aarch64.h (struct aarch64_features): New struct.
38 2021-10-22 Tom de Vries <tdevries@suse.de>
41 * tui/tui-winsource.c (tui_source_window_base::update_breakpoint_info):
42 Fix returns in loop body.
44 2021-10-04 Tom de Vries <tdevries@suse.de>
47 * ax_cxx_compile_stdcxx.m4: Add CXX_DIALECT to CXX.
48 * configure: Regenerate.
50 2021-09-13 Joel Brobecker <brobecker@adacore.com>
52 * version.in: Set GDB version number to 11.1.90.DATE-git.
54 2021-09-13 Joel Brobecker <brobecker@adacore.com>
58 2021-09-13 Joel Brobecker <brobecker@adacore.com>
60 * version.in: Set GDB version number to 11.1.
62 2021-09-08 Tom Tromey <tom@tromey.com>
64 * dwarf2/read.h (dwarf2_per_objfile::resize_symtabs): Remove.
65 * dwarf2/read.c (all_comp_units_iterator, all_comp_units_range):
67 (dwarf2_per_objfile::symtab_set_p)
68 (dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
69 Adjust to resizeable vectors.
70 (dwarf2_gdb_index::expand_symtabs_matching)
71 (dwarf2_base_index_functions::map_symbol_filenames)
72 (dwarf2_debug_names_index::expand_symtabs_matching): Use
74 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
75 (add_type_unit): Don't call resize_symtabs.
77 2021-09-07 John Baldwin <jhb@FreeBSD.org>
79 * fbsd-nat.c (fbsd_nat_target::info_proc): Use plongest and
80 pulongest instead of %j.
82 2021-08-30 Tom de Vries <tdevries@suse.de>
85 * gdb/corelow.c (core_target_open): Skip call to gdb_abspath in the
88 2021-08-23 Tom de Vries <tdevries@suse.de>
91 * gdb/exec.c (exec_file_attach): Use %s instead of %ps in call to
94 2021-08-06 Simon Marchi <simon.marchi@polymtl.ca>
95 Tom de Vries <tdevries@suse.de>
98 * dwarf2/read.c (dwarf2_rnglists_process, dwarf2_ranges_process):
99 Fix zero address complaint.
101 2021-08-02 Tom Tromey <tromey@adacore.com>
104 * varobj.c (~varobj): Delete 'dynamic' before 'root'.
106 2021-08-02 Shahab Vahedi <shahab@synopsys.com>
109 * gdbtypes.c (gdbtypes_post_init): Use
110 "arch_boolean_type (..., unsigned=1, ...) to construct
112 cp-valprint.c (test_print_flags): New.
113 (_initialize_cp_valprint): Run the "test_print_flags" unit-test.
115 2021-07-28 Tom de Vries <tdevries@suse.de>
117 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_FORM_data16.
119 2021-07-27 Tom de Vries <tdevries@suse.de>
122 * gdb/testsuite/gdb.ada/big_packed_array.exp: Add xfail.
124 2021-07-27 Tom de Vries <tdevries@suse.de>
127 * gdb/testsuite/gdb.ada/array_of_variant.exp: Add xfails.
129 2021-07-26 Frederic Cambus <fred@statdns.com>
131 * syscalls/netbsd.xml: Regenerate.
133 2021-07-26 Shahab Vahedi <shahab@synopsys.com>
134 Simon Marchi <simon.marchi@efficios.com>
137 * valprint.c (val_print_type_code_flags): Merely shift the VAL
138 to the right to get rid of the lower bits.
139 (test_print_flags): New.
140 (_initialize_valprint): Invoke the "test_print_flags" as a unit-test.
142 2021-07-26 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
145 * mi/mi-cmd-break.c (mi_cmd_break_condition): Handle the case
146 of having no condition argument.
148 2021-07-20 Luis Machado <luis.machado@linaro.org>
149 Pedro Alves <pedro@palves.net>
152 * gdbarch.sh: Updated documentation for gdbarch_tagged_address_p.
153 * gdbarch.h: Regenerate.
154 * printcmd.c (should_validate_memtags): Reorder comparisons and only
155 validate tags for pointer and reference types. Skip validation of
156 optimized out or unavailable values.
157 (print_command_1): Guard call memory tagging validation code with
160 2021-07-19 Tom Tromey <tromey@adacore.com>
163 * language.c (auto_or_unknown_language::parser): Call error.
165 2021-07-17 Sergey Belyashov <Sergey.Belyashov@gmail.com>
167 * Makefile.in (ALL_TARGET_OBS): Add z80-tdep.c.
168 * NEWS: Mention z80 support.
169 * configure.tgt: Handle z80*.
170 * features/Makefile (XMLTOC): Add z80.xml.
171 * features/z80-cpu.xml: New.
172 * features/z80.c: Generate.
173 * features/z80.xml: New.
174 * z80-tdep.c: New file.
175 * z80-tdep.h: New file.
177 2021-07-13 Lancelot Six <lsix@lancelotsix.com>
179 * make-init-c: Use /bin/sh as shebang.
181 2021-07-13 Pedro Alves <pedro@palves.net>
184 * gdb_bfd.c (gdb_bfd_close_warning): New.
185 (gdb_bfd_iovec_fileio_close): Wrap target_fileio_close in
186 try/catch and print warning on exception.
187 (gdb_bfd_close_or_warn): Use gdb_bfd_close_warning.
189 2021-07-13 Pedro Alves <pedro@palves.net>
192 * remote.c (remote_unpush_target): Invalidate file I/O target
194 * target.c (fileio_handles_invalidate_target): Make extern.
195 * target.h (fileio_handles_invalidate_target): Declare.
197 2021-07-13 Simon Marchi <simon.marchi@polymtl.ca>
199 * mi/mi-main.c (mi_cmd_exec_interrupt): Use
200 scoped_disable_commit_resumed in the --thread-group case.
202 2021-07-13 John Ericson <git@JohnEricson.me>
204 * sparc-tdep.h: Fix comment.
205 * netbsd-tdep.c (nbsd_info_proc_mappings_header): Fix comment.
206 (nbsd_init_abi): Fix comment.
207 * configure.tgt (*-*-netbsd* | *-*-knetbsd*-gnu): Fix netbsd
209 (alpha*-*-openbsd*): Likewise.
210 (sparc-*-openbsd*): Likewise.
211 (sparc64-*-openbsd*): Likewise.
213 2021-07-11 Tom Tromey <tom@tromey.com>
215 Committed by Joel Brobecker <brobecker@adacore.com>:
216 * gdb/symtab.c (info_sources_filter::matches): Add default
217 case hander in switch statement.
219 2021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
221 * s390-linux-tdep.c (s390_linux_init_abi_any): Pass 1 (number
222 of displaced stepping buffers to linux_init_abi.
223 * s390-tdep.c (s390_gdbarch_init): Don't set the Linux-specific
224 displaced-stepping gdbarch callbacks.
226 2021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
228 * Makefile.in (SUBDIRS): Remove testsuite.
230 2021-07-06 Simon Marchi <simon.marchi@polymtl.ca>
232 * configure.ac: Remove things that were moved from
233 testsuite/configure.ac.
234 * configure: Re-generate.
236 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
238 * config.in, configure: Re-generate.
240 2021-07-04 Simon Marchi <simon.marchi@polymtl.ca>
242 * solib-darwin.c (darwin_solib_create_inferior_hook): Return
243 early if no execution.
245 2021-07-03 Joel Brobecker <brobecker@adacore.com>
247 * version.in: Set GDB version number to 11.0.90.DATE-git.
249 2021-07-03 Joel Brobecker <brobecker@adacore.com>
251 GDB 11.0.90 released.
253 2021-07-03 Joel Brobecker <brobecker@adacore.com>
255 * version.in: Set GDB version number to 11.0.90.
257 2021-07-03 Joel Brobecker <brobecker@adacore.com>
259 * NEWS: Replace "Changes since GDB 10" by "Changes in GDB 11".
261 2021-07-03 Joel Brobecker <brobecker@adacore.com>
263 GDB 11 branch created (4b51505e33441c6165e7789fa2b6d21930242927):
264 * version.in: Bump version to 11.0.90.DATE-git.
266 2021-07-02 Tom Tromey <tromey@adacore.com>
268 * ada-exp.y (chop_selector, chop_separator, write_selectors)
269 (write_ambiguous_var, get_symbol_field_type): Use const.
271 2021-07-02 Pedro Alves <pedro@palves.net>
272 Hannes Domani <ssbssa@yahoo.de>
274 * NEWS: Add new "TUI Improvements" section and mention mouse
275 support and that unrecognized special keys are now passed to
276 GDB. Mention Python Window.click in the Python improvements
279 2021-07-01 Pedro Alves <pedro@palves.net>
283 * linux-nat.c (linux_nat_target::detach): Close the
284 /proc/<pid>/mem file if it was open for this process.
285 (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: Close the
286 /proc/<pid>/mem file if it was open for this process.
287 (linux_nat_target::mourn_inferior): Close the /proc/<pid>/mem file
288 if it was open for this process.
289 (linux_nat_target::xfer_partial): Adjust. Do not fall back to
290 inf_ptrace_target::xfer_partial for memory accesses.
291 (last_proc_mem_file): New.
292 (maybe_close_proc_mem_file): New.
293 (linux_proc_xfer_memory_partial_pid): New, with bits factored out
294 from linux_proc_xfer_partial.
295 (linux_proc_xfer_partial): Delete.
296 (linux_proc_xfer_memory_partial): New.
298 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
300 * frame.h (FRAME_SCOPED_DEBUG_ENTER_EXIT): New.
301 * frame.c (compute_frame_id, get_prev_frame_always_1,
302 get_prev_frame): Use FRAME_SCOPED_DEBUG_ENTER_EXIT.
303 * frame-unwind.c (frame_unwind_find_by_frame): Likewise.
304 (frame_unwind_register_value): Likewise.
306 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
308 * frame-unwind.h (struct frame_unwind) <name>: New. Update
309 instances everywhere to include this field.
310 * frame-unwind.c (frame_unwind_try_unwinder,
311 frame_unwind_find_by_frame): Add debug messages.
313 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
315 * frame.h (frame_debug_printf): New.
316 * frame.c: Use frame_debug_printf throughout when printing frame
318 * amd64-windows-tdep.c: Likewise.
321 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
323 * frame.h (frame_debug): Change type to bool.
324 * frame.c (frame_debug): Change type to bool.
325 (_initialize_frame): Adjust.
327 2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
329 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
331 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
334 * machoread.c (macho_symfile_offsets): Use
335 gdb_bfd_count_sections to allocate objfile::section_offsets.
337 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
339 * objfiles.h (struct obj_section): Move down.
340 <offset, set_offset, addr, endaddr>: New.
341 (obj_section_offset, obj_section_addr, obj_section_endaddr),
342 replace all users to use obj_section methods.
343 (struct objfile) <section_offset, set_section_offset>: New.
345 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
347 * objfiles.h (struct obj_section): Move down.
348 <offset, set_offset, addr, endaddr>: New.
349 (obj_section_offset, obj_section_addr, obj_section_endaddr),
350 replace all users to use obj_section methods.
351 (struct objfile) <section_offset, set_section_offset>: New.
353 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
357 2021-06-28 Luis Machado <luis.machado@linaro.org>
359 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
361 (aarch64_linux_set_memtags): Likewise.
362 (aarch64_linux_get_memtag): Likewise.
363 (aarch64_linux_report_signal_info): Likewise.
365 2021-06-28 Luis Machado <luis.machado@linaro.org>
367 * aarch64-linux-tdep.c
368 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
370 2021-06-28 Luis Machado <luis.machado@linaro.org>
372 * aarch64-linux-tdep.c
373 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
375 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
376 8 and update comments.
378 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
380 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
382 * gdbarch.h: Re-generate.
383 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
384 * arch-utils.c (gdbarch_info_init): Remove.
386 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
388 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
389 (gdbarch_find_by_info): Remove print.
390 * gdbarch.c, gdbarch.h: Re-generate.
392 2021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
394 * remote.c (remote_target::start_remote): Set 'starting_up' using
395 boolean values instead of integers.
397 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
399 * guile/scm-param.c (struct param_smob) <set_command,
400 show_command>: Remove.
402 (pascm_is_valid): Adjust.
403 (add_setshow_generic): Use return values of add_setshow
404 functions, return a set_show_commands.
405 (gdbscm_register_parameter_x): Adjust.
407 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
409 * command.h (add_setshow_enum_cmd): Remove context parameter.
410 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
412 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
415 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
417 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
420 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
422 * cli/cli-decode.h (struct cmd_list_element) <set_context,
424 <context>: Rename to...
425 <m_context>: ... this.
426 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
427 * command.h (set_cmd_context, get_cmd_context): Remove, use
428 cmd_list_element::set_context and cmd_list_element::context
431 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
433 * NEWS: Mention changes to 'info sources'.
434 * symtab.c (info_sources_filter::print): Delete.
435 (struct output_source_filename_data) <print_header>: Delete
436 declaration. <printed_filename_p>: New member function.
437 (output_source_filename_data::print_header): Delete.
438 (info_sources_worker): Update group-by-objfile style output to
439 make it CLI suitable, simplify non-group-by-objfile now this is
440 only used from the MI.
441 (info_sources_command): Make group-by-objfile be the default for
442 CLI info sources command.
443 * symtab.h (struct info_sources_filter) <print>: Delete.
445 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
447 * NEWS: Mention additions to -file-list-exec-source-files.
448 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
449 --group-by-objfile option.
450 * symtab.c (isrc_flag_option_def): Rename to...
451 (isrc_match_flag_option_def): ...this.
452 (info_sources_option_defs): Rename to...
453 (info_sources_match_option_defs): ...this, and update to rename of
454 isrc_flag_option_def.
455 (struct filename_grouping_opts): New struct.
456 (isrc_grouping_flag_option_def): New type.
457 (info_sources_grouping_option_defs): New static global.
458 (make_info_sources_options_def_group): Update to return two option
460 (info_sources_command_completer): Update for changes to
461 make_info_sources_options_def_group.
462 (info_sources_worker): Add extra parameter, use this to display
463 alternative output format.
464 (info_sources_command): Pass extra parameter to
466 (_initialize_symtab): Update for changes to
467 make_info_sources_options_def_group.
468 * symtab.h (info_sources_worker): Add extra parameter.
470 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
472 * NEWS: Mention additions to -file-list-exec-source-files.
473 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
474 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
475 options, and make use of info_sources_worker.
476 * symtab.c (struct info_sources_filter): Moved to symtab.h.
477 (info_sources_filter::print): Take uiout argument, produce output
479 (struct output_source_filename_data)
480 <output_source_filename_data>: Take uiout argument, store into
481 m_uiout. <output>: Rewrite comment, add additional arguments to
482 declaration. <operator()>: Send more arguments to
483 output. <m_uiout>: New member variable.
484 (output_source_filename_data::output): Take extra arguments,
485 produce output through m_uiout, and structure for MI.
486 (output_source_filename_data::print_header): Produce output
488 (info_sources_worker): New function, the implementation is taken
489 from info_sources_command, but modified so produce output through
491 (info_sources_command): The second half of this function has gone
492 to become info_sources_worker.
493 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
494 extra parameter to print member function.
495 (info_sources_worker): Declare.
497 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
499 * symtab.c (struct info_sources_filter): New.
500 (info_sources_filter::info_sources_filter): New function.
501 (info_sources_filter::matches): New function.
502 (info_sources_filter::print): New function.
503 (struct filename_partial_match_opts): Moved to later in the file
504 and update the comment.
505 (struct output_source_filename_data)
506 <output_source_filename_data>: New constructor. <regexp>: Delete,
507 this is now in info_sources_filter. <c_regexp>: Delete, this is
508 now in info_sources_filter. <reset_output>: New member function.
509 <filename_seen_cache>: Rename to m_filename_seen_cache, change
510 from being a pointer, to being an actual object. <first>: Rename
511 to m_first. <print_header>: New member function. <partial_match>:
513 (output_source_filename_data::output): Update now
514 m_filename_seen_cache is no longer a pointer, and for other member
515 variable name changes. Add a header comment.
516 (print_info_sources_header): Renamed to...
517 (output_source_filename_data::print_header): ...this. Update now
518 it's a member function and to take account of member variable
520 (info_sources_command): Add a header comment, delete stack local
521 filename_seen_cache, initialization of output_source_filename_data
522 is now done by the constructor. Call print_header member function
523 instead of print_info_sources_header, call reset_output member
524 function instead of manually performing the reset.
526 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
528 * dwarf2/read.c (struct dwarf2_base_index_functions)
529 <has_unexpanded_symtabs>: Declare.
530 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
532 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
533 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
535 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
537 * quick-symbol.h (struct quick_symbol_functions)
538 <has_unexpanded_symtabs>: Declare.
539 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
542 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
544 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
545 setting prototyped flag.
547 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
549 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
550 an empty gdb::optional when calling value_struct_elt.
551 (desc_data): Likewise.
552 (desc_one_bound): Likewise.
553 * eval.c (structop_base_operation::evaluate_funcall): Pass
554 gdb::array_view, not a gdb::array_view* to value_struct_elt.
555 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
556 an empty gdb::optional when calling value_struct_elt.
557 (eval_op_structop_ptr): Likewise.
558 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
559 * guile/scm-value.c (gdbscm_value_field): Likewise.
560 * m2-lang.c (eval_op_m2_high): Likewise.
561 (eval_op_m2_subscript): Likewise.
562 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
563 * python/py-value.c (valpy_getitem): Likewise.
564 * rust-lang.c (rust_val_print_str): Likewise.
565 (rust_range): Likewise.
566 (rust_subscript): Likewise.
567 (eval_op_rust_structop): Likewise.
568 (rust_aggregate_operation::evaluate): Likewise.
569 * valarith.c (value_user_defined_op): Likewise.
570 * valops.c (search_struct_method): Change parameter type, update
571 function body accordingly, and update header comment.
572 (value_struct_elt): Change parameter type, update function body
574 * value.h (value_struct_elt): Update declaration.
576 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
579 * eval.c (structop_base_operation::evaluate_funcall): Pass
580 array_view instead of array to value_struct_elt.
581 * valarith.c (value_user_defined_op): Likewise.
582 * valops.c (typecmp): Change parameter type from array pointer to
583 array_view. Update header comment, and update body accordingly.
584 (search_struct_method): Likewise.
585 (value_struct_elt): Likewise.
586 * value.h (value_struct_elt): Update declaration.
588 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
591 * eval.c (structop_base_operation::evaluate_funcall): Add a
592 nullptr to the end of the args array, which should not be included
593 in the argument array_view. Pass all the arguments through to
595 * valops.c (search_struct_method): Update header comment.
596 (value_struct_elt): Likewise.
598 2021-06-25 Tom Tromey <tom@tromey.com>
600 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
603 2021-06-25 Tom Tromey <tom@tromey.com>
605 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
606 (scan_partial_symbols, partial_die_parent_scope)
607 (add_partial_symbol, add_partial_subprogram)
608 (compute_delayed_physnames, rust_union_quirks)
609 (process_full_comp_unit, process_full_type_unit)
610 (process_imported_unit_die, process_die, dw2_linkage_name)
611 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
612 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
613 (read_variable, dwarf2_get_subprogram_pc_bounds)
614 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
615 (dwarf2_attach_fn_fields_to_type)
616 (quirk_ada_thick_pointer_struct, read_structure_type)
617 (handle_struct_member_die, process_structure_scope)
618 (read_array_type, read_array_order, prototyped_function_p)
619 (read_subroutine_type, dwarf2_init_complex_target_type)
620 (read_base_type, read_subrange_type, read_unspecified_type)
621 (load_partial_dies, partial_die_info::fixup, set_cu_language)
622 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
623 (dwarf2_canonicalize_name, follow_die_offset)
624 (prepare_one_comp_unit): Update.
625 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
627 2021-06-25 Tom Tromey <tom@tromey.com>
629 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
630 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
631 set language_defn. Handle DW_LANG_OpenCL.
632 (prepare_one_comp_unit): Check producer and set language_defn.
634 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
636 * NEWS: Mention Python BP_CATCHPOINT feature.
637 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
638 (bppy_init): Likewise.
639 (gdbpy_breakpoint_created): Likewise.
641 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
643 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
645 (bpscm_want_scm_wrapper_p): Likewise.
646 (gdbscm_make_breakpoint): Likewise.
647 (breakpoint_integer_constants): Likewise.
649 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
651 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
652 for invalid breakpoint numbers, and unsupported breakpoint
655 2021-06-25 Tom Tromey <tom@tromey.com>
657 * dwarf2/index-write.c (struct addrmap_index_data): Add
659 <operator()>: Declare.
660 (addrmap_index_data::operator()): Rename from
661 add_address_entry_worker. Remove 'datap' parameter.
662 (write_address_map): Update.
663 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
664 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
666 (dump_psymtab_addrmap): Update.
667 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
669 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
670 (struct mutable_foreach_data): Remove.
671 (addrmap_mutable_foreach_worker): Update.
672 (addrmap_mutable_foreach): Remove 'data' parameter.
673 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
674 (addrmap_foreach): Remove 'data' parameter.
676 2021-06-25 Tom Tromey <tromey@adacore.com>
678 * python/py-type.c (typy_get_name): Decode an Ada type name.
680 2021-06-25 Tom Tromey <tromey@adacore.com>
682 * ada-lang.c (ada_decode): Add wrap parameter.
683 * ada-lang.h (ada_decode): Add wrap parameter.
685 2021-06-25 Luis Machado <luis.machado@linaro.org>
687 * corelow.c (core_target::core_target) Update to read target
690 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
692 * python/lib/gdb/__init__.py: Format.
694 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
696 * infrun.c (do_target_wait): Remove wait_ptid parameter.
697 (fetch_inferior_event): Adjust.
699 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
701 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
702 with name of chosen unwinder.
703 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
704 unwinder in debug message.
706 2021-06-22 Andreas Schwab <schwab@suse.de>
709 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
712 2021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
714 * breakpoint.c (insert_bp_location): If we catch a
715 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
718 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
720 * NEWS: Mention new target feature name.
721 * arch/riscv.c (riscv_create_target_description): GDB doesn't
722 currently create target descriptions containing vector registers.
723 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
725 <operator==>: Also compare vlen.
726 <hash>: Also include vlen.
727 * riscv-tdep.c (riscv_feature_name_vector): New static global.
728 (struct riscv_vector_feature): New struct.
729 (riscv_vector_feature): New static global.
730 (riscv_register_reggroup_p): Ensure vector registers are part of
731 the 'all' group, and part of the 'vector' group.
732 (riscv_dwarf_reg_to_regnum): Handle vector registers.
733 (riscv_gdbarch_init): Check vector register feature.
734 * riscv-tdep.h: Add vector registers to GDB's internal register
735 numbers, and to the DWARF register numbers.
737 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
739 * NEWS: Mention the two new methods.
740 * python/py-frame.c (frapy_level): New function.
741 (frame_object_methods): Register 'level' method.
742 * python/py-unwind.c (pending_framepy_level): New function.
743 (pending_frame_object_methods): Register 'level' method.
745 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
747 * python/py-inferior.c (infpy_get_connection_num): Call
748 gdb_py_object_from_longest instead of PyLong_FromLong directly.
750 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
752 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
753 saving user registers.
755 2021-06-19 Mike Frysinger <vapier@gentoo.org>
757 * acinclude.m4: Delete most m4_include's of ../config files.
758 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
759 * aclocal.m4: Regenerate.
760 * configure: Regenerate.
762 2021-06-17 Pedro Alves <pedro@palves.net>
764 * scoped_ignore_signal.h (scoped_ignore_signal): Add
765 ConsumePending template parameter.
766 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
767 sigtimedwait if ConsumePending is false.
768 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
769 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
770 <m_ignore_signal>: Initialize with ConsumePending=false.
772 2021-06-17 Pedro Alves <pedro@palves.net>
774 * Makefile.in (SELFTESTS_SRCS): Add
775 unittests/scoped_ignore_signal-selftests.c.
776 * unittests/scoped_ignore_signal-selftests.c: New.
778 2021-06-17 Pedro Alves <pedro@palves.net>
780 * gdbsupport/scoped_ignore_signal.h: New.
781 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
782 instead of <signal.h>. Don't include <unistd.h>.
783 (scoped_ignore_sigpipe): Remove.
784 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
785 instead of <signal.h>. Don't include <unistd.h>.
787 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
790 2021-06-17 Pedro Alves <pedro@palves.net>
792 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
793 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
794 * inflow.h: Delete, moved to gdbsupport/ under a different name.
795 * ser-unix.c: Don't include "inflow.h". Include
796 "gdbsupport/scoped_ignore_sigttou.h".
798 2021-06-17 Pedro Alves <pedro@palves.net>
800 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
802 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
804 (cur_seq, start_sequence): New.
805 (tui_getc_1): Pass key escape sequences for curses control keys to
806 readline. Handle mouse and ctrl-l here.
807 (tui_resize_all): Disable/reenable the keypad if the command
808 window has the focus too.
809 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
811 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
813 2021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
815 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
817 2021-06-16 Tom de Vries <tdevries@suse.de>
820 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
821 (dwarf2_cu::get_builder): Declare and move ...
822 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
823 of ancestor. Assert return value is non-null.
824 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
825 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
826 (dwarf2_per_objfile): Add sym_cu field.
828 2021-06-15 Alan Modra <amodra@gmail.com>
830 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
832 2021-06-14 Mike Frysinger <vapier@gentoo.org>
834 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
835 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
837 2021-06-14 John Baldwin <jhb@FreeBSD.org>
839 * configure.ac: Check for <sys/procctl.h>.
840 * config.in, configure: Regenerate.
841 * fbsd-nat.c: Include <sys/procctl.h> if present.
842 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
843 (fbsd_nat_target::create_inferior)
844 (fbsd_nat_target::supports_disable_randomization): New.
845 * fbsd-nat.h (fbsd_nat_target::create_inferior)
846 (fbsd_nat_target::supports_disable_randomization): New.
848 2021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
850 * compile/compile.c: Include missing header signal.h.
852 2021-06-12 John Baldwin <jhb@FreeBSD.org>
854 * remote.c (remote_new_objfile): Fix indentation.
856 2021-06-11 Kevin Buettner <kevinb@redhat.com>
858 * solib.c (libpthread_name_p): Match "libc" in addition
860 * linux-thread-db.c (libpthread_objfile_p): New function.
861 (libpthread_name_p): Adjust preexisting callers to use
862 libpthread_objfile_p().
864 2021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
866 * dwarf2/loc.h (struct call_site_stuff): Remove.
868 2021-06-11 Tom Tromey <tom@tromey.com>
871 * rust-parse.c (rust_parser::lex_identifier): Handle raw
873 (rust_lex_tests): Add raw identifier tests.
875 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
877 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
878 instead of '== None'.
879 (FrameVars): Use 'is not None' instead of '!= None'.
880 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
881 Use 'is None' instead of '== None' and 'is not None' instead of '!=
884 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
886 * inferior.h (class inferior) <in_initial_library_scan>: New.
887 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
888 * infrun.c (follow_fork_inferior): Likewise.
889 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
890 by try_thread_db_load_1
891 (thread_db_load): Return early if in_initial_library_scan is
893 * remote.c (remote_new_objfile): Return early if
894 in_initial_library_scan is set.
896 2021-06-07 Pedro Alves <pedro@palves.net>
898 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
900 * symtab.h (struct symbol): Add defaulted copy assignment
903 2021-06-07 Pedro Alves <pedro@palves.net>
905 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
906 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
907 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
910 2021-06-07 Pedro Alves <pedro@palves.net>
912 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
913 (nat_sigval_t): ... this and remove typedef of same name.
914 (struct nat_siginfo): Rename to ...
915 (nat_siginfo_t): ... this and remove typedef of same name.
916 (struct compat_sigval): Rename to ...
917 (compat_sigval_t): ... this and remove typedef of same name.
918 (struct compat_siginfo): Rename to ...
919 (compat_siginfo_t): ... this and remove typedef of same name.
920 (struct compat_x32_siginfo): Rename to ...
921 (compat_x32_siginfo_t): ... this and remove typedef of same name.
922 (amd64_linux_siginfo_fixup_common): Adjust.
924 2021-06-07 Pedro Alves <pedro@palves.net>
926 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
927 __attribute__ __aligned__ from the typedef to the struct.
929 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
932 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
933 type_align, and spot case where the alignment is unknown.
935 2021-06-07 Carl Love <cel@us.ibm.com>
937 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
938 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
939 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
940 ppc64_pcrel_linkage2_target): New functions.
941 (ppc64_standard_linkage9, ppc64_standard_linkage10,
942 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
943 instruction patterns.
944 (ppc64_standard_linkage9, ppc64_standard_linkage10,
945 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
946 in define MAX expression.
947 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
948 ppc64_standard_linkage10, ppc64_standard_linkage11,
949 ppc64_standard_linkage12.
950 * (ppc_insn_prefix_dform): New function.
952 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
955 * sparc-nat.c (sparc_fetch_inferior_registers): Set
956 inferior_ptid instead of using switch_to_thread.
957 (sparc_store_inferior_registers): Likewise.
959 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
961 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
962 (compile_to_object): Ignore SIGPIPE before calling the plugin.
964 2021-06-05 Tom Tromey <tom@tromey.com>
966 * data-directory/Makefile.in (Makefile): Use correct directory
969 2021-06-05 Tom Tromey <tom@tromey.com>
971 * data-directory/Makefile.in (Makefile): Rewrite.
973 2021-06-05 Tom Tromey <tromey@adacore.com>
975 * configure: Rebuild.
976 * configure.ac: Add ACX_NONCANONICAL_TARGET.
978 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
980 * NEWS: Document 'set disassembler-options' support for the ARC
982 * arc-tdep.c (arc_gdbarch_init): Set
983 'gdbarch_valid_disassembler_options'.
985 2021-06-04 Tom Tromey <tromey@adacore.com>
987 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
989 * dwarf2/loc.c (dwarf2_evaluate_property) <case
990 PROP_VARIABLE_NAME>: New case.
991 (compute_var_value): New function.
992 (sect_variable_value): Use compute_var_value.
993 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
994 (var_decl_name): New function.
995 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
996 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
998 (union dynamic_prop_data) <variable_name>: New member.
999 (struct dynamic_prop) <variable_name, set_variable_name>: New
1002 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
1004 * remote.c (remote_target)
1005 <select_thread_for_ambiguous_stop_reply>: Add additional debug
1008 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
1010 * python/py-tui.c (class tui_py_window): Add click function.
1011 (tui_py_window::click): Likewise.
1013 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
1015 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
1016 * tui/tui-data.h (struct tui_win_info): Add click function.
1017 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
1018 (tui_deprep_terminal): Disable mouse events.
1019 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
1020 * tui/tui.c (tui_disable): Disable mouse events.
1022 2021-06-03 Magne Hov <mhov@undo.io>
1025 * eval.c (expression::evaluate): Check inferior_ptid.
1027 2021-06-03 Pedro Alves <pedro@palves.net>
1029 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
1031 (Global Maintainers): Update my address.
1032 (Write After Approval): Remove stale entry.
1034 2021-06-03 John Baldwin <jhb@FreeBSD.org>
1036 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
1037 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
1038 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
1039 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
1040 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
1041 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
1042 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
1043 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
1044 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
1045 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
1046 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
1047 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
1048 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
1049 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
1050 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
1051 (fbsd_report_signal_info): New.
1052 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
1053 report_signal_info method.
1055 2021-06-03 Magne Hov <mhov@undo.io>
1057 * MAINTAINERS (Write After Approval): Add Magne Hov.
1059 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
1061 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
1062 gdb.SYMBOL_LABEL_DOMAIN constant.
1064 2021-06-01 John Baldwin <jhb@FreeBSD.org>
1066 * infrun.c (handle_inferior_event): Only call
1067 gdbarch_displaced_step_restore_all_in_ptid if
1068 gdbarch_supports_displaced_stepping is true.
1070 2021-06-01 Tom Tromey <tromey@adacore.com>
1072 * Makefile.in (all-data-directory): Remove.
1073 (data-directory/Makefile): Remove.
1075 2021-06-01 Tom Tromey <tromey@adacore.com>
1077 * configure: Rebuild.
1078 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
1080 2021-06-01 Tom Tromey <tromey@adacore.com>
1082 * silent-rules.mk (ECHO_CC): New variable.
1084 2021-06-01 Tom Tromey <tromey@adacore.com>
1086 * Makefile.in (SUBDIRS): Add testsuite.
1087 (all): Don't exclude testsuite.
1089 2021-06-01 Tom Tromey <tromey@adacore.com>
1091 * configure.ac: Copy some code from testsuite/configure.ac.
1092 (enable_libctf): Subst this, not ENABLE_LIBCTF.
1093 * configure: Rebuild.
1095 2021-06-01 Tom de Vries <tdevries@suse.de>
1098 * minsyms.c (msymbol_is_cold_clone): New function.
1099 (msymbol_is_function): Use msymbol_is_cold_clone.
1101 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
1102 Andrew Burgess <andrew.burgess@embecosm.com>
1105 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
1106 (ALLDEPFILES): Add arm-none-tdep.c
1107 * arm-none-tdep.c: New file.
1108 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
1110 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
1111 Richard Bunt <richard.bunt@arm.com>
1113 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
1114 check for why the backtrace stopped.
1116 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1118 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
1120 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
1121 signature parameter, update all callers.
1122 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
1123 signature parameter.
1125 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1127 * dwarf2/read.h (signatured_type_up): New, use where possible.
1129 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1131 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
1133 2021-05-30 Tom Tromey <tom@tromey.com>
1135 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
1137 (create_signatured_type_table_from_index)
1138 (create_signatured_type_table_from_debug_names, add_type_unit)
1139 (read_comp_units_from_section): Update.
1141 2021-05-30 Tom Tromey <tom@tromey.com>
1143 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
1144 m_num_psymtabs>: Remove.
1145 (resize_symtabs): Update.
1146 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
1147 (dwarf2_per_bfd::allocate_signatured_type): Update.
1149 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1151 * Fix tab after space indentation issues throughout.
1153 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1155 * Fix some indentation mistakes throughout.
1157 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1159 * breakpoint.h (iterate_over_bp_locations): Remove. Update
1160 users to use all_bp_locations.
1161 (all_bp_locations): New.
1162 * breakpoint.c (all_bp_locations): Make non-static.
1163 (iterate_over_bp_locations): Remove.
1165 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1167 * breakpoint.h (iterate_over_breakpoints): Remove. Update
1168 callers to use all_breakpoints or all_breakpoints_safe.
1169 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
1170 all_breakpoints_safe): Move here.
1171 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
1173 (iterate_over_breakpoints): Remove.
1174 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1176 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
1178 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
1180 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1182 * breakpoint.c (get_first_locp_gte_addr): Remove.
1183 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
1184 all_bp_locations_at_addr.
1185 (struct bp_locations_at_addr_range): New.
1186 (all_bp_locations_at_addr): New.
1187 (bp_locations_compare_addrs): New.
1189 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1191 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
1193 (all_bp_locations): New.
1195 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1197 * breakpoint.c (bp_locations): Change to std::vector, update all
1199 (bp_locations_count): Remove.
1200 (update_global_location_list): Change to work with indices
1201 rather than bp_location**.
1203 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1205 * breakpoint.h (bp_locations_range): New.
1206 (struct breakpoint) <locations>: New. Use where possible.
1208 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1210 * breakpoint.h (all_tracepoints): Remove.
1211 (breakpoint_iterator): Move here.
1212 (struct tracepoint_filter): New.
1213 (tracepoint_iterator): New.
1214 (tracepoint_range): New.
1215 (all_tracepoints): New.
1216 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
1218 (breakpoint_iterator): Move to header.
1219 (all_tracepoints): New.
1220 * tracepoint.c (start_tracing): Adjust.
1222 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1224 * breakpoint.c (breakpoint_safe_range): New.
1225 (all_breakpoints_safe): New. Use instead of
1226 ALL_BREAKPOINTS_SAFE where possible.
1228 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1230 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
1232 (breakpoint_iterator): New.
1233 (breakpoint_range): New.
1234 (all_breakpoints): New.
1236 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
1238 * python/py-tui.c (tui_py_window::output): Add full_window
1240 (gdbpy_tui_write): Parse "full_window" argument.
1242 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1244 * make-init-c: Add option to reverse function calls.
1246 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1248 * Makefile.in (INIT_FILES_FILTER_OUT): New.
1249 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
1250 (stamp-init): Use make-init-c.
1251 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
1252 * silent-rules.mk (ECHO_INIT_C): Change.
1253 * make-init-c: New file.
1255 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1257 * command.h (add_alias_cmd): Accept target as
1258 cmd_list_element. Update callers.
1260 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1262 * command.h (add_info_alias): Accept target as
1263 cmd_list_element. Update callers.
1265 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1267 * command.h (add_com_alias): Accept target as
1268 cmd_list_element. Update callers.
1270 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1272 * python/py-param.c (add_setshow_generic): Use return values of
1273 add_setshow functions.
1275 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1277 * mi/mi-main.c (_initialize_mi_main):
1278 * python/py-auto-load.c (gdbpy_initialize_auto_load):
1279 * remote.c (_initialize_remote):
1281 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1283 * command.h (set_show_commands): New.
1284 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
1285 add_setshow_boolean_cmd, add_setshow_filename_cmd,
1286 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
1287 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
1288 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
1289 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1290 Return set_show_commands. Adjust callers.
1291 * cli/cli-decode.c (add_setshow_cmd_full): Return
1292 set_show_commands, remove result parameters, adjust callers.
1294 2021-05-27 Tom de Vries <tdevries@suse.de>
1297 * dwarf2/read.c (process_psymtab_comp_unit):
1299 2021-05-27 Tom de Vries <tdevries@suse.de>
1301 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
1304 2021-05-27 Tom de Vries <tdevries@suse.de>
1307 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
1308 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
1309 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
1310 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
1312 (dwarf2_per_cu_data): Remove load_all_dies field.
1314 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
1316 * regcache.c (reg_buffer::reg_buffer): Default-initialize
1319 2021-05-26 Tom Tromey <tom@tromey.com>
1321 * dwarf2/read.c (allocate_type_unit_groups_table)
1322 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
1324 (free_line_header_voidp): Remove.
1326 (completion_tracker::completion_hash_entry::deleter): Remove.
1327 (completion_tracker::discard_completions): Use htab_delete_entry.
1328 * utils.h (htab_delete_entry): New template function.
1330 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
1332 * python/py-tui.c (tui_py_window::refresh_window):
1335 2021-05-23 Tom de Vries <tdevries@suse.de>
1338 * target.h (struct target_ops): Mention target_thread_architecture in
1339 read_description comment.
1340 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1341 pid to determine if process is 64-bit or 32-bit.
1342 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1344 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1345 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1346 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1347 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1348 Likewise, use pid to determine if kernel supports reading VFP
1351 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1353 * main.c (enum cmdarg_kind): Fix option type comments for
1354 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1356 2021-05-21 Tom de Vries <tdevries@suse.de>
1359 * contrib/cc-with-tweaks.sh: Handle -l.
1361 2021-05-21 Tom de Vries <tdevries@suse.de>
1364 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1365 objects. Call get_jiter_objfile_data with the_objfile.
1367 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1369 * linespec.c (linespec_p): Remove. Replace all uses with
1372 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1373 Pedro Alves <pedro@palves.net>
1375 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1376 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1377 command_line_up instead of struct command_line.
1378 (build_command_line): Likewise.
1379 (get_command_line): Update the cmd function call parameter.
1380 (process_next_line): Use unique_ptr command_line_up instead
1381 of struct command_line.
1382 (recurse_read_control_structure): Change the the type of
1383 next to command_line_up.
1384 (read_command_lines_1): Change type of `next' to be
1385 command_line_up and update all references of `next'
1388 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1390 * MAINTAINERS (Write After Approval): Add myself.
1392 2021-05-19 John Baldwin <jhb@FreeBSD.org>
1394 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1396 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1398 * inflow.c (new_tty): Do not leak tty.
1400 2021-05-17 Tom Tromey <tom@tromey.com>
1402 * dwarf2/read.h: Update include.
1403 * dwarf2/read.c: Update include.
1404 * dwarf2/line-header.c: Update include.
1405 * dwarf2/cu.h: Update include.
1406 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1407 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1408 * Makefile.in (COMMON_SFILES): Update.
1410 2021-05-17 Tom Tromey <tom@tromey.com>
1412 * dwarf2/read.c (maybe_queue_comp_unit)
1413 (dwarf2_per_objfile::age_comp_units): Update.
1414 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1416 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1417 add_dependence>: New methods.
1418 <m_dependencies>: Add "m_" prefix. Now private.
1419 <m_mark>: Add "m_" prefix.
1420 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1421 (dwarf2_mark_helper): New function.
1422 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1424 2021-05-17 Tom Tromey <tom@tromey.com>
1426 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1427 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1428 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1429 * dwarf2/cu.c: New file.
1430 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1432 2021-05-17 Tom Tromey <tom@tromey.com>
1434 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1435 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1437 * dwarf2/cu.h: New file.
1439 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1441 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1442 set brace-list-open to 0 for C and C++ modes.
1444 2021-05-17 Tom Tromey <tromey@adacore.com>
1446 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1449 2021-05-17 Tom Tromey <tromey@adacore.com>
1451 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1452 (group_from_gid): Subtract one from strncpy length.
1454 2021-05-17 Tom Tromey <tromey@adacore.com>
1456 * source.c (add_path): Check 'p' before using 'p[-1]'.
1458 2021-05-17 Tom Tromey <tromey@adacore.com>
1460 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1461 (dwarf2_per_cu_data_up): New typedef.
1462 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1463 <all_comp_units>: Use dwarf2_per_cu_data_up.
1464 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1465 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1466 (create_cu_from_index_list): Likewise.
1467 (create_signatured_type_table_from_index)
1468 (create_cus_from_debug_names_list, add_type_unit)
1469 (read_comp_units_from_section): Update.
1470 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1473 2021-05-17 Tom Tromey <tom@tromey.com>
1475 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1476 (sort_tu_by_abbrev_offset): Remove.
1477 (build_type_psymtabs): Update.
1479 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1481 * py-project.toml: New.
1482 * gdb-gdb.py.in: Re-format.
1484 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1486 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1488 * command.h (cmd_func_p): Remove.
1489 * cli/cli-decode.c (cmd_func_p): Remove.
1491 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1493 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1495 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1497 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1499 <alias_target>: ... this.
1500 (add_alias_cmd): Rename old to target.
1501 (add_info_alias): Rename old_name to target_name.
1502 (add_com_alias): Likewise.
1504 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1506 * Rename "prefixlist" parameters to "subcommands" throughout.
1507 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1508 <subcommands>: ... this.
1509 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1510 (lookup_cmd_with_subcommands): ... this.
1512 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1514 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1516 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1518 * cli/cli-decode.h (prefixname): Make const, move implementation
1519 to cli/cli-decode.c.
1520 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1522 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
1524 * ctfread.c (new_symbol): Set function address.
1525 (read_func_kind_type): Remove incorrect type name setting.
1526 Don't copy name returned from ctf_type_ame_raw throughout file.
1528 2021-05-14 Tom Tromey <tom@tromey.com>
1530 * rust-lang.c (rust_language::val_print_struct)
1531 (rust_language::print_enum): Use common_val_print, not
1534 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1536 * python/py-inferior.c (infpy_get_connection_num): New function.
1537 (inferior_object_getset): Add a new element for 'connection_num'.
1538 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1540 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1542 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1543 argument type, update and re-wrap, header comment.
1544 (remote_target::commit_resumed): Convert any_process_wildcard and
1545 may_global_wildcard_vcont from int to bool.
1547 2021-05-14 Kent Cheung <kent.cheung@arm.com>
1549 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1550 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1551 just before printing child values.
1552 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1553 printing string representation.
1554 * python/py-prettyprint.c (print_children): Check max_depth just
1555 before printing child values.
1556 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1557 printing string representation.
1559 2021-05-14 Mike Frysinger <vapier@gentoo.org>
1561 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1562 sim/callback.h & sim/sim.h.
1564 2021-05-13 Mike Frysinger <vapier@gentoo.org>
1566 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1567 sim-regno.h include.
1569 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1571 * inf-child.h (inf_child_target) <follow_exec>: New.
1572 * inf-child.c (inf_child_target::follow_exec): New.
1574 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1576 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1578 (target_follow_exec): Likewise.
1579 * target.c (target_follow_exec): Add ptid_t parameter.
1580 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1581 don't push target nor create thread.
1582 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1583 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1584 (thread_db_target::follow_exec): New.
1585 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1586 (remote_target::follow_exec): Call
1587 process_stratum_target::follow_exec.
1588 * target-delegates.c: Re-generate.
1590 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1592 * infrun.c (follow_exec): Call target_follow_fork when
1593 follow-exec-mode is same.
1594 * target.h (target_follow_fork): Improve doc.
1596 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1598 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1600 * cli/cli-setshow.c (do_show_command): Adjust.
1602 2021-05-13 Luis Machado <luis.machado@linaro.org>
1604 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1605 include the last address in the range.
1607 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1609 * python/python-internal.h (gdbpy_parse_command_name): Return
1610 gdb::unique_xmalloc_ptr.
1611 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1612 (cmdpy_init): Adjust.
1613 * python/py-param.c (parmpy_init): Adjust.
1614 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1617 2021-05-12 George Barrett <bob@bob131.so>
1619 * NEWS (Guile API): Note the addition of the new procedure.
1620 * guile/scm-value.c (gdbscm_value_const_value): Add
1621 implementation of value-const-value procedure.
1622 (value_functions): Add value-const-value procedure.
1624 2021-05-12 George Barrett <bob@bob131.so>
1626 * NEWS (Guile API): Note the addition of new procedures.
1627 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1628 for reference value creation.
1629 (gdbscm_value_reference_value): Add implementation of
1630 value-reference-value procedure.
1631 (gdbscm_value_rvalue_reference_value): Add implementation of
1632 value-rvalue-reference-value procedure.
1633 (value_functions): Add value-reference-value procedure. Add
1634 value-rvalue-reference-value procedure.
1636 2021-05-12 George Barrett <bob@bob131.so>
1638 * guile/scm-type.c (type_integer_constants): Add binding for
1639 TYPE_CODE_RVALUE_REF.
1640 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1641 dereferencing of rvalue references.
1642 * NEWS (Guile API): Note improvements in rvalue reference support.
1644 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1646 * btrace.c (handle_pt_insn_events): Ignore status update enable
1649 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1651 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1654 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1656 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1658 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
1661 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1664 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1666 * nat/linux-waitpid.c (status_to_str): Show signal name.
1668 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1670 * python/py-breakpoint.c (pybp_debug): New static global.
1671 (show_pybp_debug): New function.
1672 (pybp_debug_printf): Define.
1673 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1674 (gdbpy_breakpoint_created): Add some debugging.
1675 (gdbpy_breakpoint_deleted): Likewise.
1676 (gdbpy_breakpoint_modified): Likewise.
1677 (_initialize_py_breakpoint): New function.
1679 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1681 * python/py-unwind.c (pyuw_debug): Convert to bool.
1682 (show_pyuw_debug): New function.
1683 (pyuw_debug_printf): Define.
1684 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1685 (pyuw_this_id): Convert to new debug print macros.
1686 (pyuw_prev_register): Likewise.
1687 (pyuw_sniffer): Likewise.
1688 (pyuw_dealloc_cache): Likewise.
1689 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1690 show function when registering.
1692 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1694 * dummy-frame.c (fprint_dummy_frames): Convert use of
1695 fprint_frame_id to use frame_id::to_string.
1696 * frame.c (fprint_field): Delete.
1697 (fprint_frame_id): Moved to...
1698 (frame_id::to_string): ...this, rewritten to return a string.
1699 (fprint_frame): Convert use of fprint_frame_id to use
1700 frame_id::to_string.
1701 (compute_frame_id): Likewise.
1702 (frame_id_p): Likewise.
1703 (frame_id_eq): Likewise.
1704 (frame_id_inner): Likewise.
1705 * frame.h (struct frame_id) <to_string>: New member function.
1706 (fprint_frame_id): Delete declaration.
1707 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1708 fprint_frame_id to use frame_id::to_string.
1709 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1710 * python/py-unwind.c (unwind_infopy_str): Likewise.
1711 (pyuw_this_id): Likewise.
1713 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1715 * nat/linux-waitpid.c (status_to_str): Return std::string.
1716 * nat/linux-waitpid.h (status_to_str): Likewise.
1717 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1718 (linux_nat_target::attach): Adjust.
1719 (linux_handle_extended_wait): Adjust.
1721 (stop_wait_callback): Adjust.
1722 (linux_nat_filter_event): Adjust.
1723 (linux_nat_wait_1): Adjust.
1724 * nat/linux-waitpid.c (status_to_str): Adjust.
1725 * nat/linux-waitpid.h (status_to_str): Adjust.
1727 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1729 * infrun.h (infrun_debug_printf): Add missing space.
1731 2021-05-08 Pedro Alves <pedro@palves.net>
1733 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1734 Remove references to HAVE_PERSONALITY.
1735 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1736 (maybe_disable_address_space_randomization)
1737 (~maybe_disable_address_space_randomizatio): Remove references to
1739 * config.in, configure: Regenerate.
1741 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1743 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1745 (source_script_with_search): Perform tilde expansion.
1747 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1749 * target-descriptions.c (struct target_desc_info) <filename>:
1751 (copy_inferior_target_desc_info): Adjust.
1752 (target_desc_info_free): Adjust.
1753 (target_find_description): Adjust.
1754 (set_tdesc_filename_cmd): Adjust.
1755 (show_tdesc_filename_cmd): Adjust.
1756 (unset_tdesc_filename_cmd): Adjust.
1757 (maint_print_c_tdesc_cmd): Adjust.
1759 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1761 * target-descriptions.c (struct target_desc_info): Initialize
1763 (get_tdesc_info): Use new.
1764 (target_desc_info_free): Use delete.
1766 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1768 * target-descriptions.c (struct target_desc_info) <fetched>:
1770 (target_find_description): Adjust.
1771 (target_clear_description): Adjust.
1773 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1775 * target-descriptions.c (struct target_desc_info) <tdesc>:
1777 (target_desc_fetched): Remove.
1778 (current_target_desc): Remove.
1779 (target_description_filename): Remove.
1780 (target_find_description): Adjust.
1781 (target_clear_description): Adjust.
1782 (target_current_description): Adjust.
1783 (set_tdesc_filename_cmd): Adjust.
1784 (show_tdesc_filename_cmd): Adjust.
1785 (unset_tdesc_filename_cmd): Adjust.
1786 (maint_print_c_tdesc_cmd): Adjust.
1787 (maint_print_xml_tdesc_cmd): Adjust.
1789 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1791 * infcmd.c (notice_new_inferior): Change parameter type.
1792 * inferior.h (notice_new_inferior): Change parameter type.
1793 * remote.c (remote_notice_new_inferior): Change parameter type to
1794 bool. Also update type of local variable to bool.
1795 (remote_target::update_thread_list): Change type of local variable
1797 (remote_target::process_stop_reply): Pass bool instead of int to
1798 remote_notice_new_inferior.
1800 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1802 * target.c (target_stack::unpush): Call target_ops::find_beneath
1803 to get the target beneath `t`.
1805 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1807 * target.c (target_close): Check in all inferiors that the
1808 target is not pushed.
1810 2021-05-07 Aaron Merey <amerey@redhat.com>
1812 * debuginfod-support.c (debuginfod_init): Remove.
1813 (get_debuginfod_client): New function.
1815 2021-05-07 Tom Tromey <tom@tromey.com>
1817 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1818 * utils.c (streq_hash): Remove.
1819 * utils.h (streq_hash): Don't declare.
1820 * completer.c (completion_tracker::discard_completions): Update
1822 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1824 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1826 * Re-format all Python files using black.
1828 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1830 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1831 function return type.
1832 * guile/guile.c (gdbscm_source_script): Update to handle change in
1833 gdbscm_safe_source_script.
1834 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1835 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1838 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1840 * inferior.h (class inferior) <args>: Change type to
1842 * inferior.c (inferior::~inferior): Don't free args.
1843 * infcmd.c (get_inferior_args): Adjust.
1844 (set_inferior_args): Adjust.
1846 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1848 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1849 breakpoint locations when the breakpoint actually has a location.
1851 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1853 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1854 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1855 mi_cmd_break_condition.
1856 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1857 * breakpoint.h (set_breakpoint_condition): Declare a new
1859 * breakpoint.c (set_breakpoint_condition): New overloaded function
1860 extracted out from ...
1861 (condition_command): ... this.
1862 * NEWS: Mention the change.
1864 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1866 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1867 '--force-condition' flag to force the condition in the
1868 '-break-insert' and '-dprintf-insert' commands.
1869 * NEWS: Mention the change.
1871 2021-05-04 Tom de Vries <tdevries@suse.de>
1874 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1877 2021-04-30 Tom Tromey <tom@tromey.com>
1879 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1880 (add_signatured_type_cu_to_table): Remove.
1881 (create_debug_type_hash_table): Assume dwo_file is non-null.
1882 (create_debug_types_hash_table): Update comment.
1883 (create_all_type_units): Remove.
1884 (sort_tu_by_abbrev_offset): Update comment.
1885 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1886 (build_type_psymtabs): Remove.
1887 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1889 (read_comp_units_from_section): Add types_htab, section_kind
1891 (create_all_comp_units): Read type units.
1893 2021-04-30 Tom Tromey <tom@tromey.com>
1895 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1896 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1897 <get_cu>: Now inline.
1898 <all_type_units>: Remove.
1899 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1900 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1901 (dwarf2_per_bfd::get_tu): Remove.
1902 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1903 (create_signatured_type_table_from_index)
1904 (create_signatured_type_table_from_debug_names)
1905 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1906 (dwarf2_base_index_functions::expand_all_symtabs)
1907 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1908 (dwarf2_base_index_functions::map_symbol_filenames)
1909 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1910 (add_signatured_type_cu_to_table, create_all_type_units)
1911 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1912 (create_all_comp_units): Update.
1913 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1914 (write_debug_names): Update.
1916 2021-04-30 Tom Tromey <tom@tromey.com>
1918 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1919 allocate_signatured_type>: Change return type.
1920 <all_comp_units, all_type_units>: Hold unique pointers.
1921 (struct dwarf2_per_cu_data): Add constructor and initializers.
1922 (struct signatured_type): Derive from dwarf2_per_cu_data.
1923 * dwarf2/read.c (type_unit_group): Derive from
1925 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1926 (dwarf2_per_bfd::get_tu)
1927 (dwarf2_per_bfd::allocate_signatured_type)
1928 (dwarf2_per_bfd::allocate_signatured_type)
1929 (create_cu_from_index_list, create_cus_from_index_list)
1930 (create_signatured_type_table_from_index)
1931 (create_signatured_type_table_from_debug_names)
1932 (create_addrmap_from_aranges)
1933 (dwarf2_base_index_functions::find_last_source_symtab)
1934 (dw_expand_symtabs_matching_file_matcher)
1935 (dwarf2_gdb_index::expand_symtabs_matching)
1936 (dwarf2_base_index_functions::map_symbol_filenames)
1937 (create_cus_from_debug_names_list)
1938 (dw2_debug_names_iterator::next)
1939 (dwarf2_debug_names_index::expand_symtabs_matching)
1940 (create_debug_type_hash_table, add_type_unit)
1941 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1943 (allocate_type_unit_groups_table): Use delete.
1944 (create_type_unit_group): Change return type. Use new.
1945 (get_type_unit_group, build_type_psymtabs_1)
1946 (build_type_psymtab_dependencies)
1947 (process_skeletonless_type_unit, set_partial_user)
1948 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1949 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1950 (read_signatured_type): Update.
1951 (dwarf2_find_containing_comp_unit): Change type of
1954 (dwarf2_per_bfd::allocate_per_cu)
1955 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1957 (add_signatured_type_cu_to_table): Update.
1958 * dwarf2/index-write.c (write_one_signatured_type)
1959 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1960 (write_debug_names): Update.
1962 2021-04-30 Tom Tromey <tromey@adacore.com>
1964 * nat/windows-nat.h (get_image_name): Don't declare.
1965 * nat/windows-nat.c (get_image_name): Now static.
1967 2021-04-30 Tom Tromey <tromey@adacore.com>
1969 * windows-nat.c (windows_nat::handle_load_dll): Update.
1970 (windows_nat_target::get_windows_debug_event): Call
1972 (windows_add_all_dlls, windows_add_dll): Move to
1974 * nat/windows-nat.h (handle_load_dll): Change parameters.
1975 (dll_loaded_event, windows_add_all_dlls): Declare.
1976 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1978 (dll_loaded_event): New function.
1980 2021-04-30 Tom Tromey <tromey@adacore.com>
1982 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1983 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1985 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1986 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1988 2021-04-30 Tom Tromey <tromey@adacore.com>
1990 * windows-nat.c: Move code to nat/windows-nat.[ch].
1991 (_initialize_windows_nat): Call initialize_loadable.
1992 * nat/windows-nat.h (AdjustTokenPrivileges)
1993 (DebugActiveProcessStop, DebugBreakProcess)
1994 (DebugSetProcessKillOnExit, EnumProcessModules)
1995 (EnumProcessModulesEx, GetModuleInformation)
1996 (GetModuleFileNameExA, GetModuleFileNameExW)
1997 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1998 (GetCurrentConsoleFont, Wow64SuspendThread)
1999 (Wow64GetThreadContext, Wow64SetThreadContext)
2000 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
2001 (AdjustTokenPrivileges_ftype)
2002 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
2003 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
2004 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
2005 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
2006 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
2007 (GetConsoleFontSize_ftype)
2008 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
2009 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
2010 (Wow64GetThreadSelectorEntry_ftype): Likewise.
2011 (initialize_loadable): Declare.
2012 * nat/windows-nat.c (AdjustTokenPrivileges)
2013 (DebugActiveProcessStop, DebugBreakProcess)
2014 (DebugSetProcessKillOnExit, EnumProcessModules)
2015 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
2016 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
2017 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
2018 (Wow64GetThreadContext, Wow64SetThreadContext)
2019 (Wow64GetThreadSelectorEntry): Define.
2020 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
2022 (initialize_loadable): Likewise, and rename.
2024 2021-04-30 Tom Tromey <tromey@adacore.com>
2026 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
2027 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
2028 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
2029 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
2030 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
2031 (bad): New template functions.
2032 (_initialize_loadable): Update.
2034 2021-04-30 Tom Tromey <tromey@adacore.com>
2036 * ada-lang.c (ada_index_type): Use ada_check_typedef.
2038 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
2040 * auto-load.h: Split namespace declaration.
2042 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
2044 * infrun.c (save_waitstatus): Move variables to inner scope.
2046 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
2048 * NEWS: Fix typo and stray full stop.
2050 2021-04-28 Tom Tromey <tromey@adacore.com>
2052 * ada-exp.y (primary): Use new type for null pointer.
2053 * ada-lang.c (ada_type_match): Remove "may_deref"
2054 parameter. Handle null pointer.
2055 (ada_args_match): Update.
2056 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
2057 Handle null pointer.
2059 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2061 * NEWS: Mention new commands.
2062 * python/python.c (python_ignore_environment): New static global.
2063 (show_python_ignore_environment): New function.
2064 (set_python_ignore_environment): New function.
2065 (python_dont_write_bytecode): New static global.
2066 (show_python_dont_write_bytecode): New function.
2067 (set_python_dont_write_bytecode): New function.
2068 (_initialize_python): Register new commands.
2070 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2072 * extension-priv.h (struct extension_language_ops): Rename
2073 'finish_initialization' to 'initialize'.
2074 * extension.c (finish_ext_lang_initialization): Renamed to...
2075 (ext_lang_initialization): ...this, update comment, and updated
2076 the calls to reflect the change in struct extension_language_ops.
2077 * extension.h (finish_ext_lang_initialization): Renamed to...
2078 (ext_lang_initialization): ...this.
2079 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
2080 (gdbscm_initialize): ...this, update comment at definition.
2081 (guile_extension_ops): Update.
2082 * main.c (captured_main_1): Update call to
2083 finish_ext_lang_initialization.
2084 * python/python.c (gdbpy_finish_initialization): Rename to...
2085 (gdbpy_initialize): ...this, update comment at definition, and
2086 update call to do_finish_initialization.
2087 (python_extension_ops): Update.
2088 (do_finish_initialization): Rename to...
2089 (do_initialize): ...this, and update comment.
2091 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2093 * main.c (captured_main_1): Add a call to
2094 finish_ext_lang_initialization.
2095 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
2097 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2099 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
2100 (gdbscm_finish_initialization): Add code moved from
2102 (_initialize_guile): Move code to gdbscm_finish_initialization.
2103 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
2104 _initialize_scm_arch.
2105 (_initialize_scm_arch): New function.
2106 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
2107 into _initialize_scm_block.
2108 (_initialize_scm_block): New function.
2109 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
2110 into _initialize_scm_frame.
2111 (_initialize_scm_frame): New function.
2112 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
2113 into _initialize_scm_objfile.
2114 (_initialize_scm_objfile): New function.
2115 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
2116 code into _initialize_scm_progspace.
2117 (_initialize_scm_progspace): New function.
2118 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
2119 into _initialize_scm_symbol.
2120 (_initialize_scm_symbol): New function.
2121 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
2122 into _initialize_scm_symtab.
2123 (_initialize_scm_symtab): New function.
2124 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
2125 _initialize_scm_type.
2126 (_initialize_scm_type): New function.
2128 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2130 * python/py-arch.c (_initialize_py_arch): New function.
2131 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
2132 * python/py-block.c (_initialize_py_block): New function.
2133 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
2134 * python/py-inferior.c (_initialize_py_inferior): New function.
2135 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
2136 * python/py-objfile.c (_initialize_py_objfile): New function.
2137 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
2138 * python/py-progspace.c (_initialize_py_progspace): New function.
2139 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
2140 * python/py-registers.c (_initialize_py_registers): New function.
2141 (gdbpy_initialize_registers): Move code to
2142 _initialize_py_registers.
2143 * python/py-symbol.c (_initialize_py_symbol): New function.
2144 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
2145 * python/py-symtab.c (_initialize_py_symtab): New function.
2146 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
2147 * python/py-type.c (_initialize_py_type): New function.
2148 (gdbpy_initialize_types): Move code to _initialize_py_type.
2149 * python/py-unwind.c (_initialize_py_unwind): New function.
2150 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
2151 * python/python.c (_initialize_python): Move call to
2152 do_start_initialization to gdbpy_finish_initialization.
2153 (gdbpy_finish_initialization): Add call to
2154 do_start_initialization.
2156 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2158 * extension.c (struct scoped_default_signal): New struct.
2159 (scoped_default_sigint): New typedef.
2160 (finish_ext_lang_initialization): Make use of
2161 scoped_default_sigint.
2163 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2165 * main.c (captured_main_1): Don't pass argument to gdb_init.
2166 * top.c (gdb_init): Remove unused argument, and add header
2168 * top.h (gdb_init): Remove argument.
2170 2021-04-27 Luis Machado <luis.machado@linaro.org>
2172 * psymtab.c (psymbol_functions::dump): Output newline.
2174 * symmisc.c (dump_objfile): Likewise.
2176 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2177 Simon Marchi <simon.marchi@polymtl.ca>
2179 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
2180 when attaching the 'auto_load_new_objfile' observer, so
2181 other observers can specify it as a dependency.
2182 * gdb/auto-load.h (struct token): Declare
2183 'auto_load_new_objfile_observer_token' as token to be used
2184 for the 'auto_load_new_objfile' observer.
2185 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
2186 'python_new_objfile' observer depend on 'auto_load_new_objfile'
2187 observer, so it gets notified after the latter.
2189 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2190 Simon Marchi <simon.marchi@polymtl.ca>
2192 * unittests/observable-selftests.c (dependency_test_counters):
2194 (observer_token0, observer_token1, observer_token2,
2195 observer_token3, observer_token4, observer_token5): New.
2196 (struct dependency_observer_data): New struct.
2197 (observer_dependency_test_callback): New function.
2198 (test_observers): New.
2199 (run_dependency_test): New function.
2200 (test_dependency): New.
2201 (_initialize_observer_selftest): Register dependency test.
2203 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
2206 * cli/cli-dump.c (dump_binary_file): Check result of
2209 2021-04-25 Sergei Trofimovich <siarheit@google.com>
2211 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
2212 by passing `process_stratum_target*` parameter.
2214 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
2217 * typeprint.h (struct type_print_options): Add print_in_hex
2219 (struct print_offset_data): Add print_in_hex flag, add a
2220 constructor accepting a type_print_options* argument.
2221 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
2222 default value for print_in_hex.
2223 (print_offset_data::indentation): Allow more horizontal space.
2224 (print_offset_data::print_offset_data): Add ctor.
2225 (print_offset_data::maybe_print_hole, print_offset_data::update):
2226 Handle the print_in_hex flag.
2227 (whatis_exp): Handle 'x' and 'd' flags.
2228 (print_offsets_and_sizes_in_hex): Declare.
2229 (set_print_offsets_and_sizes_in_hex): Create.
2230 (show_print_offsets_and_sizes_in_hex): Create.
2231 (_initialize_typeprint): Update help message for the ptype
2232 command, register the 'set print type hex' and 'show print type
2234 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
2235 (c_type_print_base): Construct the print_offset_data
2236 object using the type_print_optons parameter.
2237 * rust-lang.c (rust_language::print_type): Construct the
2238 print_offset_data object using the type_print_optons parameter.
2239 * NEWS: Mention the new flags of the ptype command.
2241 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
2243 * typeprint.h (struct type_print_options): Move before
2246 2021-04-25 Joel Brobecker <brobecker@adacore.com>
2250 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
2252 * observable.c (observer_debug): Change to bool.
2254 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2256 * dwarf2/read.c: Add 'unordered_set' include.
2257 (dwarf2_base_index_functions::map_symbol_filenames): Replace
2258 'visited' hash table with 'qfn_cache' unordered_set. Remove use
2259 of per_Bfd->filenames_cache cache, and use function local
2260 filenames_cache instead. Reindent.
2261 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
2263 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2265 * breakpoint.c (iterate_over_bp_locations): Change callback to
2266 function view, remove data parameter.
2267 * breakpoint.h (iterate_over_bp_locations): Likewise.
2268 * record-full.c (record_full_sync_record_breakpoints): Remove
2271 2021-04-22 Tom Tromey <tom@tromey.com>
2273 * c-typeprint.c (c_type_print_base_struct_union): Use
2274 print_spaces_filtered_with_print_options.
2276 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2279 * python/py-type.c (typy_range): Check that bounds are constant
2280 before accessing them as such.
2281 * guile/scm-type.c (gdbscm_type_range): Likewise.
2283 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2285 * Makefile.in (COMMON_SFILES): Remove continuations.c.
2286 * inferior.c (inferior::add_continuation): New method, adapted
2287 from 'add_inferior_continuation'.
2288 (inferior::do_all_continuations): New method, adapted from
2289 'do_all_inferior_continuations'.
2290 (inferior::~inferior): Clear the list of continuations directly.
2291 * inferior.h (class inferior) <continuations>: Rename into...
2292 <m_continuations>: ...this and make private.
2293 * continuations.c: Remove.
2294 * continuations.h: Remove.
2295 * event-top.c: Don't include "continuations.h".
2297 Update the users below.
2298 * inf-loop.c (inferior_event_handler)
2299 * infcmd.c (attach_command)
2300 (notice_new_inferior): Update.
2302 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2304 * inferior.h (class inferior) <continuations>: Change the type
2305 to be an std::list of std::function's.
2306 Update the references and uses below.
2307 * continuations.c (struct continuation): Delete.
2308 (make_continuation): Delete.
2309 (do_my_continuations_1): Delete.
2310 (do_my_continuations): Delete.
2311 (discard_my_continuations_1): Delete.
2312 (discard_my_continuations): Delete.
2313 (add_inferior_continuation): Update.
2314 (do_all_inferior_continuations): Update.
2315 (discard_all_inferior_continuations): Update.
2316 * continuations.h (add_inferior_continuation): Update to take
2317 an std::function as the parameter.
2318 * infcmd.c (struct attach_command_continuation_args): Delete.
2319 (attach_command_continuation): Delete.
2320 (attach_command_continuation_free_args): Delete.
2321 (attach_command): Update.
2322 (notice_new_inferior): Update.
2324 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2326 * continuations.h: Update the general comment.
2327 * inferior.h (class inferior) <continuations>: Update the comment.
2328 * interps.c: Do not include "continuations.h".
2330 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2332 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2333 parameter. Update the references below.
2334 * continuations.c (do_my_continuations_1)
2335 (do_my_continuations)
2336 (do_all_inferior_continuations): Update.
2337 * inf-loop.c (inferior_event_handler): Update.
2338 * infcmd.c (attach_command_continuation): Update.
2340 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2342 * infcmd.c (attach_post_wait): Update the function comment.
2344 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2346 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2347 Update the references below.
2348 (struct attach_command_continuation_args)
2349 (attach_command_continuation)
2350 (attach_command_continuation_free_args)
2352 (notice_new_inferior): Update to remove the reference to 'args'.
2354 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2355 Tom de Vries <tdevries@suse.de>
2358 * remote.c (remote_target_is_non_stop_p): New function.
2359 * remote.h (remote_target_is_non_stop_p): Declare.
2360 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2361 to check non-stopness using notif_state->remote rather current target.
2363 2021-04-22 Tom Tromey <tom@tromey.com>
2365 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2366 (struct typed_val_int) <val>: Now ULONGEST.
2367 (rust_parser::parse_array_type): Remove negative check.
2368 (rust_lex_int_test): Change 'value' to ULONGEST.
2370 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2372 * arch-utils.c (default_addressable_memory_unit_size): Return a
2373 value based on bfd's bits per byte.
2375 2021-04-21 Tom Tromey <tom@tromey.com>
2377 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2379 (struct dwarf2_per_cu_data): Rearrange.
2380 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2382 (struct comp_unit_head): Rearrange.
2383 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2385 2021-04-21 Tom de Vries <tdevries@suse.de>
2388 * configure.ac: Remove --without-included-regex/--with-included-regex.
2389 * config.in: Regenerate.
2390 * configure: Regenerate.
2391 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2393 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2395 * breakpoint.h (create_breakpoint): Add a new parameter,
2397 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2398 argument when 'parse_extra' is false to check if the condition
2399 is invalid at all of the breakpoint locations.
2400 Update the users below.
2406 (create_tracepoint_from_upload): Update.
2407 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2408 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2409 * python/py-breakpoint.c (bppy_init): Update.
2410 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2412 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2414 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2415 disabled-by-condition locations on MI-like output.
2416 (breakpoint_1): Do not display the disabled-by-condition footnote
2417 if the output is MI-like.
2419 2021-04-21 Frederic Cambus <fred@statdns.com>
2421 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2422 update year range in generated copyright notices.
2424 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2426 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2427 qualifier_seq_noopt.
2429 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2431 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2433 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2435 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2436 (producer_is_icc): Replace use of std::regex with gdb's
2439 2021-04-17 Tom Tromey <tom@tromey.com>
2442 * dwarf2/read.c (class offset_view): New.
2443 (struct symbol_table_slot): Remove.
2444 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2445 <symbol_name_index, symbol_vec_index>: New methods.
2446 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2448 (read_gdb_index_from_buffer): Update.
2449 (struct dw2_symtab_iterator) <vec>: Change type.
2450 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2451 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2452 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2453 <append_array, append_offset>: New methods.
2454 (write_hash_table, add_address_entry, write_gdbindex_1)
2455 (write_debug_names): Update.
2456 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2458 2021-04-17 Tom Tromey <tom@tromey.com>
2460 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2463 2021-04-17 Tom Tromey <tom@tromey.com>
2465 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2466 from map_matching_symbols. Change parameters.
2467 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2468 Rename from map_matching_symbols. Change parameters.
2469 * dwarf2/read.c (struct dwarf2_gdb_index)
2470 <expand_matching_symbols>: Rename from map_matching_symbols.
2472 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2473 Rename from map_matching_symbols. Change parameters.
2474 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2475 dw2_map_matching_symbols. Change parameters.
2476 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2478 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2479 map_matching_symbols. Change parameters.
2480 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2481 from map_matching_symbols. Change parameters.
2482 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2483 map_matching_symbols. Change parameters.
2484 * ada-lang.c (map_matching_symbols): New function.
2485 (add_nonlocal_symbols): Update.
2487 2021-04-17 Tom Tromey <tom@tromey.com>
2489 * quick-symbol.h (struct quick_symbol_functions)
2490 <expand_symtabs_with_fullname>: Remove.
2491 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2493 * psympriv.h (struct psymbol_functions)
2494 <expand_symtabs_with_fullname>: Remove.
2495 * dwarf2/read.c (struct dwarf2_base_index_functions)
2496 <expand_symtabs_with_fullname>: Remove.
2497 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2499 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2501 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2504 2021-04-17 Tom Tromey <tom@tromey.com>
2506 * symfile-debug.c (objfile::expand_symtabs_for_function):
2508 * quick-symbol.h (struct quick_symbol_functions)
2509 <expand_symtabs_for_function>: Remove.
2510 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2512 * psympriv.h (struct psymbol_functions)
2513 <expand_symtabs_for_function>: Remove.
2514 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2516 * dwarf2/read.c (struct dwarf2_gdb_index)
2517 <expand_symtabs_for_function>: Remove.
2518 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2520 (find_slot_in_mapped_hash): Remove.
2521 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2522 (dw2_symtab_iter_init): Remove one overload.
2523 (dwarf2_gdb_index::expand_symtabs_for_function)
2524 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2526 2021-04-17 Tom Tromey <tom@tromey.com>
2528 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2530 * quick-symbol.h (struct quick_symbol_functions)
2531 <map_symtabs_matching_filename>: Remove.
2532 * psymtab.c (partial_map_expand_apply)
2533 (psymbol_functions::map_symtabs_matching_filename): Remove.
2534 * psympriv.h (struct psymbol_functions)
2535 <map_symtabs_matching_filename>: Remove.
2536 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2538 * dwarf2/read.c (struct dwarf2_base_index_functions)
2539 <map_symtabs_matching_filename>: Remove.
2540 (dw2_map_expand_apply)
2541 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2544 2021-04-17 Tom Tromey <tom@tromey.com>
2546 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2547 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2549 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2550 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2551 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2552 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2554 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2555 (dwarf2_gdb_index::lookup_symbol)
2556 (dwarf2_debug_names_index::lookup_symbol): Remove.
2558 2021-04-17 Tom Tromey <tom@tromey.com>
2560 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2561 * symmisc.c (maintenance_expand_symtabs): Update.
2562 * symfile.c (expand_symtabs_matching): Update.
2563 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2565 * quick-symbol.h (struct quick_symbol_functions)
2566 <expand_symtabs_matching>: Add 'domain' parameter.
2567 * psymtab.c (recursively_search_psymtabs)
2568 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2570 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2571 Add 'domain' parameter.
2572 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2574 * linespec.c (iterate_over_all_matching_symtabs): Update.
2575 * dwarf2/read.c (struct dwarf2_gdb_index)
2576 <expand_symtabs_matching>: Add 'domain' parameter.
2577 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2579 (dw2_expand_symtabs_matching)
2580 (dwarf2_gdb_index::expand_symtabs_matching)
2581 (dw2_debug_names_iterator)
2582 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2585 2021-04-17 Tom Tromey <tom@tromey.com>
2587 * symtab.c (global_symbol_searcher::expand_symtabs)
2588 (default_collect_symbol_completion_matches_break_on): Update.
2589 * symmisc.c (maintenance_expand_symtabs): Update.
2590 * symfile.h (expand_symtabs_matching): Add search_flags
2592 * symfile.c (expand_symtabs_matching): Add search_flags
2594 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2595 search_flags parameter.
2596 * quick-symbol.h (struct quick_symbol_functions)
2597 <expand_symtabs_matching>: Add search_flags parameter.
2598 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2599 * psymtab.c (recursively_search_psymtabs)
2600 (psymbol_functions::expand_symtabs_matching): Add search_flags
2602 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2603 Add search_flags parameter.
2604 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2605 search_flags parameter.
2606 * linespec.c (iterate_over_all_matching_symtabs): Update.
2607 * dwarf2/read.c (struct dwarf2_gdb_index)
2608 <expand_symtabs_matching>: Add search_flags parameter.
2609 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2610 search_flags parameter.
2611 (dw2_map_matching_symbols): Update.
2612 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2613 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2615 (dw2_debug_names_iterator): Change block_index to search flags.
2616 <m_block_index>: Likewise.
2617 (dw2_debug_names_iterator::next)
2618 (dwarf2_debug_names_index::lookup_symbol)
2619 (dwarf2_debug_names_index::expand_symtabs_for_function)
2620 (dwarf2_debug_names_index::map_matching_symbols)
2621 (dwarf2_debug_names_index::map_matching_symbols): Update.
2622 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2623 search_flags parameter.
2624 * ada-lang.c (ada_add_global_exceptions)
2625 (collect_symbol_completion_matches): Update.
2627 2021-04-17 Tom Tromey <tom@tromey.com>
2629 * symtab.c (default_collect_symbol_completion_matches_break_on):
2631 * symfile.h (expand_symtabs_matching): Return bool.
2632 * symfile.c (expand_symtabs_matching): Return bool.
2633 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2635 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2636 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2638 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2640 * psympriv.h (struct psymbol_functions)
2641 <expand_symtabs_matching>: Return bool.
2642 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2644 * dwarf2/read.c (struct dwarf2_gdb_index)
2645 <expand_symtabs_matching>: Return bool.
2646 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2648 (dw2_expand_symtabs_matching_symbol): Return bool.
2649 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2650 (dw2_expand_symtabs_matching)
2651 (dwarf2_gdb_index::expand_symtabs_matching)
2652 (dwarf2_debug_names_index::expand_symtabs_matching)
2653 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2655 2021-04-17 Tom Tromey <tom@tromey.com>
2657 * quick-symbol.h (enum block_search_flag_values): New.
2658 (block_search_flags): New enum flags type.
2660 2021-04-16 Tom Tromey <tom@tromey.com>
2662 * rust-parse.c: New file.
2663 * rust-exp.y: Remove.
2664 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2665 (SFILES): Remove rust-exp.y.
2666 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2668 2021-04-16 Luis Machado <luis.machado@linaro.org>
2670 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2672 2021-04-15 John Baldwin <jhb@FreeBSD.org>
2674 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2675 use throughout file.
2677 2021-04-15 Tom Tromey <tromey@adacore.com>
2679 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2682 2021-04-15 Tom Tromey <tromey@adacore.com>
2684 * printcmd.c (print_variable_and_value): Use
2685 common_val_print_checked.
2687 2021-04-15 Tom Tromey <tromey@adacore.com>
2689 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2690 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2692 * p-exp.y (variable): Update.
2693 * m2-exp.y (variable): Update.
2694 * go-exp.y (variable): Update.
2695 * expprint.c (dump_for_expression): New overload.
2696 * expop.h (check_objfile): New overload.
2697 (check_constant): New overload.
2698 (class var_value_operation): Use block_symbol.
2699 <get_symbol>: Rewrite.
2700 * eval.c (var_value_operation::evaluate)
2701 (var_value_operation::evaluate_funcall)
2702 (var_value_operation::evaluate_for_address)
2703 (var_value_operation::evaluate_for_address)
2704 (var_value_operation::evaluate_with_coercion)
2705 (var_value_operation::evaluate_for_sizeof)
2706 (var_value_operation::evaluate_for_cast): Update.
2707 * d-exp.y (PrimaryExpression): Update.
2708 * c-exp.y (variable): Update.
2709 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2710 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2711 (ada_var_value_operation::evaluate)
2712 (ada_var_value_operation::resolve)
2713 (ada_funcall_operation::resolve): Update.
2714 * ada-exp.y (write_var_from_sym, write_object_renaming)
2715 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2716 (maybe_overload): Update.
2717 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2719 2021-04-15 Tom Tromey <tom@tromey.com>
2720 Andrew Burgess <andrew.burgess@embecosm.com>
2723 * main.c (captured_main_1): Call check_quiet_mode.
2724 * top.c (startup_quiet): New global.
2725 (check_quiet_mode): New function.
2726 (show_startup_quiet): New function.
2727 (init_main): Register new command.
2728 * top.h (check_quiet_mode): Declare.
2730 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2733 * NEWS: Mention new early init files and command line options.
2734 * config.in: Regenerate.
2735 * configure: Regenerate.
2736 * configure.ac: Define GDBEARLYINIT.
2737 * main.c (get_earlyinit_files): New function.
2738 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2739 CMDARG_EARLYINIT_COMMAND.
2740 (captured_main_1): Add support for new command line flags, and for
2741 processing startup files.
2742 (print_gdb_help): Include startup files in the output.
2744 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2746 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2747 (relocate_file_path_maybe_in_datadir): ...this.
2748 (class gdb_initfile_finder): New class.
2749 (get_init_files): Now uses gdb_initfile_finder.
2750 (print_gdb_help): Print 'None found' when there are no init files.
2752 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2754 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2755 corresponding child of the abstract DIE when iterating the
2756 children of the concrete DIE.
2758 2021-04-13 Tom de Vries <tdevries@suse.de>
2760 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2763 2021-04-13 Luis Machado <luis.machado@linaro.org>
2765 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2768 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2770 * rs6000-tdep.c: Add support for single-stepping of
2771 prefixed instructions.
2773 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2776 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2777 handle the addpcis/lnia instruction.
2779 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2781 * MAINTAINERS (Write After Approval): Add myself.
2783 2021-4-12 Carl Love <cel@us.ibm.com>
2785 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2786 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2789 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2791 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2792 * nat/windows-nat.h: Likewise.
2794 2021-04-10 Eli Zaretskii <eliz@gnu.org>
2796 * windows-nat.c (windows_nat::handle_load_dll): Call
2797 windows_add_dll if get_image_name failed to glean the name of the
2798 DLL by using the lpImageName pointer.
2799 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2800 (windows_add_dll): Now does what windows_add_all_dlls did before,
2801 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2802 specifies the address where the DLL was loaded into the inferior,
2803 and looks for the single DLL loaded at that address.
2805 2021-04-09 Luis Machado <luis.machado@linaro.org>
2807 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2809 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2811 * darwin-nat.c (darwin_nat_target::resume): Remove status
2814 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2816 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2817 prologue end for Intel compilers.
2818 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2819 * producer.c (producer_is_icc_ge_19): New function.
2820 * producer.h (producer_is_icc_ge_19): New declaration.
2822 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2824 * producer.c: (producer_is_icc): Update for new version scheme.
2825 (producer_parsing_tests): Update names and expected results.
2826 * producer.h: (producer_is_icc): Update comment accordingly.
2828 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2830 * target.h (struct target_ops) <follow_fork>: Return void.
2831 (target_follow_fork): Likewise.
2832 * target.c (default_follow_fork): Likewise.
2833 (target_follow_fork): Likewise.
2834 * infrun.c (follow_fork_inferior): Adjust.
2835 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2836 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2837 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2838 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2839 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2840 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2841 * remote.c (class remote_target) <follow_fork>: Likewise.
2842 (remote_target::follow_fork): Likewise.
2843 * target-delegates.c: Re-generate.
2845 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
2847 * ctfread.c (fetch_tid_type): New function, use throughout file.
2848 (read_forward_type): New function.
2849 (read_type_record): Call read_forward_type.
2851 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2853 * f-exp.h (class fortran_structop_operation): New class.
2854 * f-exp.y (exp): Create fortran_structop_operation instead of the
2855 generic structop_operation.
2856 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2857 expression as EVAL_NORMAL if the result type was dynamic so we can
2858 extract the actual array bounds.
2859 (fortran_structop_operation::evaluate): New function.
2861 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2863 * eval.c (evaluate_subexp_standard): Remove
2864 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2867 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2869 * valops.c (value_cast): Call value_deeply_equal before performing
2872 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2874 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2877 2021-04-07 Caroline Tice <cmtice@google.com>
2879 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2880 the search paths used resolve relative location of .dwo file.
2882 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2884 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2886 (dwarf2_section_info::get_file_name): Add an assert.
2887 (dwarf2_section_info::read_string): Display a minimal, sane error
2888 when the dwarf2_section_info is not associated with a bfd section.
2890 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2892 * top.c (staged_gdb_datadir): Update comment.
2893 (set_gdb_datadir): Copy the value of gdb_datadir back into
2895 (init_main): Initialise staged_gdb_datadir.
2897 2021-04-06 Tom de Vries <tdevries@suse.de>
2899 PR breakpoints/25884
2900 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2903 2021-04-06 Tom de Vries <tdevries@suse.de>
2906 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2909 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2911 * avr-tdep.c (avr_frame_unwind_cache): Use
2912 trad_frame_saved_reg::is_addr.
2914 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2916 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2919 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2921 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2922 objfile parameter for objfile_per_bfd_storage, adjust callers.
2923 (struct standard_psymtab) <standard_psymtab>: Likewise.
2924 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2925 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2926 * ctfread.c (struct ctf_psymtab): Likewise.
2927 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2928 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2929 (dwarf2_create_include_psymtab): Likewise.
2930 * objfiles.h (struct objfile_per_bfd_storage)
2931 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2932 <get_bfd>: New method.
2934 * objfiles.c (get_objfile_bfd_data): Adjust.
2936 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2938 * psymtab.c (partial_symtab::partial_symtab): Change
2939 last_objfile_name to be an std::string.
2940 * symfile.c (allocate_symtab): Likewise.
2942 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2944 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2946 (struct objfile) <intern>: Use
2947 objfile::objfile_per_bfd_storage::intern.
2949 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2951 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2952 with type::is_flag_enum.
2954 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2956 * gdbtypes.h (struct type) <is_flag_enum,
2957 set_is_flag_enum>: New methods.
2958 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2959 write call sites to use type::set_is_flag_enum.
2961 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2963 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2964 with type::is_declared_class.
2966 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2968 * gdbtypes.h (struct type) <is_declared_class,
2969 set_is_declared_class>: New methods.
2970 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2971 write call sites to use type::set_is_declared_class.
2973 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2975 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2976 to avoid deprecation warnings.
2978 2021-04-01 Martin Liska <mliska@suse.cz>
2980 * cp-name-parser.y: Use startswith instead of strncmp.
2981 * m2-exp.y: Likewise.
2982 * macroexp.c (substitute_args): Likewise.
2983 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2984 * rust-exp.y: Likewise.
2986 2021-03-31 Tom Tromey <tom@tromey.com>
2988 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2989 with dw2_map_matching_symbols.
2990 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2991 dw2_expand_symtabs_matching.
2993 2021-03-31 Tom Tromey <tromey@adacore.com>
2995 * dwarf2/stringify.h: Fix typo.
2997 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
3000 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
3001 with objfiles using READNOW.
3003 2021-03-29 Tom Tromey <tromey@adacore.com>
3005 * top.c (check_frame_language_change): Update.
3006 * language.c (language_info): Remove parameter.
3007 * language.h (language_info): Remove parameter.
3009 2021-03-29 Luis Machado <luis.machado@linaro.org>
3011 * compile/compile.c (get_args): Don't add empty argv entries.
3013 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3016 * procfs.c (procfs_target::attach): Define inf.
3018 (procfs_target::create_inferior): Likewise.
3020 2021-03-28 Tom Tromey <tom@tromey.com>
3022 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
3023 (elf_symfile_read): Simplify.
3024 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
3025 (make_lazy_dwarf_reader): New function.
3026 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
3027 (dwarf2_initialize_objfile): Return void. Remove index_kind
3028 parameter. Push on 'qf' list.
3029 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
3030 type. Remove 'index_kind' parameter.
3031 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
3033 2021-03-27 Tom Tromey <tom@tromey.com>
3035 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
3037 2021-03-27 Tom Tromey <tom@tromey.com>
3039 * elfread.c (elf_symfile_read): Don't clear 'qf'.
3041 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
3043 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
3046 2021-03-26 Tom Tromey <tom@tromey.com>
3048 * symtab.c (struct output_source_filename_data): Add 'output'
3049 method and operator().
3050 (output_source_filename_data::output): Rename from
3051 output_source_filename.
3052 (output_partial_symbol_filename): Remove.
3053 (info_sources_command): Update.
3054 (struct add_partial_filename_data): Add operator().
3055 (add_partial_filename_data::operator()): Rename from
3056 maybe_add_partial_symtab_filename.
3057 (make_source_files_completion_list): Update.
3058 * symfile.c (quick_symbol_functions): Update.
3059 * symfile-debug.c (objfile::map_symbol_filenames): Update.
3060 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
3061 'need_fullname'. Remove 'data' parameter.
3062 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
3063 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
3064 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
3065 Change type of 'fun' and 'need_fullname'. Remove 'data'
3067 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
3068 of 'fun' and 'need_fullname'. Remove 'data' parameter.
3069 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
3071 (mi_cmd_file_list_exec_source_files): Update.
3073 (dwarf2_base_index_functions::map_symbol_filenames): Update.
3075 2021-03-26 Tom Tromey <tom@tromey.com>
3077 * ada-lang.c (struct match_data): Add operator().
3078 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
3079 (callback): Remove 'callback'.
3081 2021-03-26 Tom Tromey <tom@tromey.com>
3083 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
3084 call make_ignore_params once.
3086 2021-03-26 Tom Tromey <tom@tromey.com>
3088 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
3091 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
3092 Pedro Alves <pedro@palves.net>
3094 * async-event.c: Include "infrun.h".
3095 (async_event_handler_marked): New.
3096 * async-event.h (async_event_handler_marked): Declare.
3097 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
3098 inferior before calling target method. Don't commit-resumed if
3099 target_has_pending_events is true.
3100 * remote.c (remote_target::has_pending_events): New.
3101 * target-delegates.c: Regenerate.
3102 * target.c (target_has_pending_events): New.
3103 * target.h (target_ops::has_pending_events): New target method.
3104 (target_has_pending_events): New.
3106 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
3107 Pedro Alves <pedro@palves.net>
3109 * infcmd.c (run_command_1, attach_command, detach_command)
3110 (interrupt_target_1): Use scoped_disable_commit_resumed.
3111 * infrun.c (do_target_resume): Remove
3112 target_commit_resume call.
3113 (commit_resume_all_targets): Remove.
3114 (maybe_set_commit_resumed_all_targets): New.
3115 (maybe_call_commit_resumed_all_targets): New.
3116 (enable_commit_resumed): New.
3117 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
3118 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
3119 (scoped_disable_commit_resumed::reset)
3120 (scoped_disable_commit_resumed::reset_and_commit)
3121 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
3122 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
3124 (proceed): Use scoped_disable_commit_resumed and
3125 maybe_call_commit_resumed_all_targets.
3126 (fetch_inferior_event): Use scoped_disable_commit_resumed.
3127 * infrun.h (struct scoped_disable_commit_resumed): New.
3128 (maybe_call_commit_resumed_all_process_targets): New.
3129 (struct scoped_enable_commit_resumed): New.
3130 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
3131 * process-stratum-target.h (class process_stratum_target):
3132 <commit_resumed_state>: New.
3133 * record-full.c (record_full_wait_1): Change commit_resumed_state
3134 around calling commit_resumed.
3135 * remote.c (class remote_target) <commit_resume>: Rename to...
3136 <commit_resumed>: ... this.
3137 (struct stop_reply): Move up.
3138 (remote_target::commit_resume): Rename to...
3139 (remote_target::commit_resumed): ... this. Check if there is any
3140 thread pending vCont resume.
3141 (remote_target::remote_stop_ns): Generate stop replies for resumed
3142 but pending vCont threads.
3143 (remote_target::wait_ns): Add gdb_assert.
3144 * target-delegates.c: Regenerate.
3145 * target.c (target_wait, target_resume): Assert that the current
3146 process_stratum target isn't in commit-resumed state.
3147 (defer_target_commit_resume): Remove.
3148 (target_commit_resume): Remove.
3149 (target_commit_resumed): New.
3150 (make_scoped_defer_target_commit_resume): Remove.
3151 (target_stop): Assert that the current process_stratum target
3152 isn't in commit-resumed state.
3153 * target.h (struct target_ops) <commit_resume>: Rename to ...
3154 <commit_resumed>: ... this.
3155 (target_commit_resume): Remove.
3156 (target_commit_resumed): New.
3157 (make_scoped_defer_target_commit_resume): Remove.
3158 * top.c (wait_sync_command_done): Use
3159 scoped_enable_commit_resumed.
3161 2021-03-26 Pedro Alves <pedro@palves.net>
3163 * target.c (target_always_non_stop_p): Also check whether the
3166 2021-03-26 Tom Tromey <tom@tromey.com>
3168 * dwarf2/read.c (dwarf2_read_debug_names)
3169 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
3170 (dw2_debug_names_iterator::next, create_type_unit_group):
3173 2021-03-25 Pedro Alves <pedro@palves.net>
3175 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
3176 around setting the breakpoint.
3178 2021-03-25 Pedro Alves <pedro@palves.net>
3181 (remote_target::check_pending_events_prevent_wildcard_vcont):
3182 Check whether the event's ptid is not null_ptid before looking up
3183 the corresponding inferior.
3185 2021-03-24 Changbin Du <changbin.du@gmail.com>
3187 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
3190 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3192 * target.h (current_top_target): Remove, make callers use the
3193 current inferior instead.
3194 * target.c (current_top_target): Remove.
3196 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3198 * target.h (target_shortname): Change to function declaration.
3199 (target_longname): Likewise.
3200 (target_attach_no_wait): Likewise.
3201 (target_post_attach): Likewise.
3202 (target_prepare_to_store): Likewise.
3203 (target_supports_enable_disable_tracepoint): Likewise.
3204 (target_supports_string_tracing): Likewise.
3205 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
3206 (target_supports_dumpcore): Likewise.
3207 (target_dumpcore): Likewise.
3208 (target_can_run_breakpoint_commands): Likewise.
3209 (target_files_info): Likewise.
3210 (target_post_startup_inferior): Likewise.
3211 (target_insert_fork_catchpoint): Likewise.
3212 (target_remove_fork_catchpoint): Likewise.
3213 (target_insert_vfork_catchpoint): Likewise.
3214 (target_remove_vfork_catchpoint): Likewise.
3215 (target_insert_exec_catchpoint): Likewise.
3216 (target_remove_exec_catchpoint): Likewise.
3217 (target_set_syscall_catchpoint): Likewise.
3218 (target_rcmd): Likewise.
3219 (target_can_lock_scheduler): Likewise.
3220 (target_can_async_p): Likewise.
3221 (target_is_async_p): Likewise.
3222 (target_execution_direction): Likewise.
3223 (target_extra_thread_info): Likewise.
3224 (target_pid_to_exec_file): Likewise.
3225 (target_thread_architecture): Likewise.
3226 (target_find_memory_regions): Likewise.
3227 (target_make_corefile_notes): Likewise.
3228 (target_get_bookmark): Likewise.
3229 (target_goto_bookmark): Likewise.
3230 (target_stopped_by_watchpoint): Likewise.
3231 (target_stopped_by_sw_breakpoint): Likewise.
3232 (target_supports_stopped_by_sw_breakpoint): Likewise.
3233 (target_stopped_by_hw_breakpoint): Likewise.
3234 (target_supports_stopped_by_hw_breakpoint): Likewise.
3235 (target_have_steppable_watchpoint): Likewise.
3236 (target_can_use_hardware_watchpoint): Likewise.
3237 (target_region_ok_for_hw_watchpoint): Likewise.
3238 (target_can_do_single_step): Likewise.
3239 (target_insert_watchpoint): Likewise.
3240 (target_remove_watchpoint): Likewise.
3241 (target_insert_hw_breakpoint): Likewise.
3242 (target_remove_hw_breakpoint): Likewise.
3243 (target_can_accel_watchpoint_condition): Likewise.
3244 (target_can_execute_reverse): Likewise.
3245 (target_get_ada_task_ptid): Likewise.
3246 (target_filesystem_is_local): Likewise.
3247 (target_trace_init): Likewise.
3248 (target_download_tracepoint): Likewise.
3249 (target_can_download_tracepoint): Likewise.
3250 (target_download_trace_state_variable): Likewise.
3251 (target_enable_tracepoint): Likewise.
3252 (target_disable_tracepoint): Likewise.
3253 (target_trace_start): Likewise.
3254 (target_trace_set_readonly_regions): Likewise.
3255 (target_get_trace_status): Likewise.
3256 (target_get_tracepoint_status): Likewise.
3257 (target_trace_stop): Likewise.
3258 (target_trace_find): Likewise.
3259 (target_get_trace_state_variable_value): Likewise.
3260 (target_save_trace_data): Likewise.
3261 (target_upload_tracepoints): Likewise.
3262 (target_upload_trace_state_variables): Likewise.
3263 (target_get_raw_trace_data): Likewise.
3264 (target_get_min_fast_tracepoint_insn_len): Likewise.
3265 (target_set_disconnected_tracing): Likewise.
3266 (target_set_circular_trace_buffer): Likewise.
3267 (target_set_trace_buffer_size): Likewise.
3268 (target_set_trace_notes): Likewise.
3269 (target_get_tib_address): Likewise.
3270 (target_set_permissions): Likewise.
3271 (target_static_tracepoint_marker_at): Likewise.
3272 (target_static_tracepoint_markers_by_strid): Likewise.
3273 (target_traceframe_info): Likewise.
3274 (target_use_agent): Likewise.
3275 (target_can_use_agent): Likewise.
3276 (target_augmented_libraries_svr4_read): Likewise.
3277 (target_log_command): Likewise.
3278 * target.c (target_shortname): New.
3279 (target_longname): New.
3280 (target_attach_no_wait): New.
3281 (target_post_attach): New.
3282 (target_prepare_to_store): New.
3283 (target_supports_enable_disable_tracepoint): New.
3284 (target_supports_string_tracing): New.
3285 (target_supports_evaluation_of_breakpoint_conditions): New.
3286 (target_supports_dumpcore): New.
3287 (target_dumpcore): New.
3288 (target_can_run_breakpoint_commands): New.
3289 (target_files_info): New.
3290 (target_post_startup_inferior): New.
3291 (target_insert_fork_catchpoint): New.
3292 (target_remove_fork_catchpoint): New.
3293 (target_insert_vfork_catchpoint): New.
3294 (target_remove_vfork_catchpoint): New.
3295 (target_insert_exec_catchpoint): New.
3296 (target_remove_exec_catchpoint): New.
3297 (target_set_syscall_catchpoint): New.
3299 (target_can_lock_scheduler): New.
3300 (target_can_async_p): New.
3301 (target_is_async_p): New.
3302 (target_execution_direction): New.
3303 (target_extra_thread_info): New.
3304 (target_pid_to_exec_file): New.
3305 (target_thread_architecture): New.
3306 (target_find_memory_regions): New.
3307 (target_make_corefile_notes): New.
3308 (target_get_bookmark): New.
3309 (target_goto_bookmark): New.
3310 (target_stopped_by_watchpoint): New.
3311 (target_stopped_by_sw_breakpoint): New.
3312 (target_supports_stopped_by_sw_breakpoint): New.
3313 (target_stopped_by_hw_breakpoint): New.
3314 (target_supports_stopped_by_hw_breakpoint): New.
3315 (target_have_steppable_watchpoint): New.
3316 (target_can_use_hardware_watchpoint): New.
3317 (target_region_ok_for_hw_watchpoint): New.
3318 (target_can_do_single_step): New.
3319 (target_insert_watchpoint): New.
3320 (target_remove_watchpoint): New.
3321 (target_insert_hw_breakpoint): New.
3322 (target_remove_hw_breakpoint): New.
3323 (target_can_accel_watchpoint_condition): New.
3324 (target_can_execute_reverse): New.
3325 (target_get_ada_task_ptid): New.
3326 (target_filesystem_is_local): New.
3327 (target_trace_init): New.
3328 (target_download_tracepoint): New.
3329 (target_can_download_tracepoint): New.
3330 (target_download_trace_state_variable): New.
3331 (target_enable_tracepoint): New.
3332 (target_disable_tracepoint): New.
3333 (target_trace_start): New.
3334 (target_trace_set_readonly_regions): New.
3335 (target_get_trace_status): New.
3336 (target_get_tracepoint_status): New.
3337 (target_trace_stop): New.
3338 (target_trace_find): New.
3339 (target_get_trace_state_variable_value): New.
3340 (target_save_trace_data): New.
3341 (target_upload_tracepoints): New.
3342 (target_upload_trace_state_variables): New.
3343 (target_get_raw_trace_data): New.
3344 (target_get_min_fast_tracepoint_insn_len): New.
3345 (target_set_disconnected_tracing): New.
3346 (target_set_circular_trace_buffer): New.
3347 (target_set_trace_buffer_size): New.
3348 (target_set_trace_notes): New.
3349 (target_get_tib_address): New.
3350 (target_set_permissions): New.
3351 (target_static_tracepoint_marker_at): New.
3352 (target_static_tracepoint_markers_by_strid): New.
3353 (target_traceframe_info): New.
3354 (target_use_agent): New.
3355 (target_can_use_agent): New.
3356 (target_augmented_libraries_svr4_read): New.
3357 (target_log_command): New.
3358 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3359 * infrun.c (set_schedlock_func): Adjust.
3360 * mi/mi-main.c (exec_reverse_continue): Adjust.
3361 * reverse.c (exec_reverse_once): Adjust.
3362 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3363 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3364 * remote-sim.c (gdbsim_target::detach): Adjust.
3365 (gdbsim_target::files_info): Adjust.
3367 2021-03-24 Tom Tromey <tom@tromey.com>
3369 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3370 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3371 (check_match, dw2_expand_symtabs_matching)
3372 (dwarf2_debug_names_index::map_matching_symbols)
3373 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3375 2021-03-24 Keith Seitz <keiths@redhat.com>
3377 * compile/compile-cplus-types.c
3378 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3381 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3383 * gdbarch.sh (gdbarch_data_registry): Make static.
3384 * gdbarch.c: Re-generate.
3386 2021-03-24 Luis Machado <luis.machado@linaro.org>
3388 * NEWS: Mention memory tagging changes.
3390 2021-03-24 Luis Machado <luis.machado@linaro.org>
3392 * printcmd.c (decode_format): Handle the 'm' modifier.
3393 (do_examine): Display allocation tags when required/supported.
3394 (should_validate_memtags): New function.
3395 (print_command_1): Display memory tag mismatches.
3396 * valprint.c (show_memory_tag_violations): New function.
3397 (value_print_option_defs): Add new option "memory-tag-violations".
3398 (user_print_options) <memory_tag_violations>: Initialize to 1.
3399 * valprint.h (struct format_data) <print_tags>: New field.
3400 (value_print_options) <memory_tag_violations>: New field.
3402 2021-03-24 Luis Machado <luis.machado@linaro.org>
3404 * printcmd.c: Include gdbsupport/rsp-low.h.
3405 (memory_tag_list): New static global.
3406 (process_print_command_args): Factored out of
3408 (print_command_1): Use process_print_command_args.
3409 (show_addr_not_tagged, show_memory_tagging_unsupported)
3410 (memory_tag_command, memory_tag_print_tag_command)
3411 (memory_tag_print_logical_tag_command)
3412 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3413 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3414 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3416 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3418 2021-03-24 Luis Machado <luis.machado@linaro.org>
3420 * aarch64-linux-tdep.c
3421 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3422 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3424 2021-03-24 Luis Machado <luis.machado@linaro.org>
3426 * aarch64-linux-tdep.c
3427 (aarch64_linux_report_signal_info): New function.
3428 (aarch64_linux_init_abi): Register
3429 aarch64_linux_report_signal_info as the report_signal_info hook.
3430 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3431 (SEGV_MTESERR): Define.
3433 2021-03-24 Luis Machado <luis.machado@linaro.org>
3435 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3436 (aarch64_linux_ltag_tests): New function.
3437 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3439 2021-03-24 Luis Machado <luis.machado@linaro.org>
3441 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3442 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3443 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3444 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3446 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3447 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3448 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3449 (aarch64_linux_get_ltag): New functions.
3450 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3451 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3452 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3453 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3455 2021-03-24 Luis Machado <luis.machado@linaro.org>
3457 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3459 (struct smaps_data): New struct.
3460 (decode_vmflags): Handle the 'mt' flag.
3461 (parse_smaps_data): New function, refactored from
3462 linux_find_memory_regions_full.
3463 (linux_address_in_memtag_page): New function.
3464 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3465 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3467 2021-03-24 Luis Machado <luis.machado@linaro.org>
3469 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3470 instead of char arrays.
3472 2021-03-24 Luis Machado <luis.machado@linaro.org>
3474 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3475 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3476 nat/aarch64-mte-linux-ptrace.h.
3477 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3478 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3480 <fetch_memtags>: New method override.
3481 <store_memtags>: New method override.
3482 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3483 (aarch64_linux_nat_target::fetch_memtags): New method.
3484 (aarch64_linux_nat_target::store_memtags): New method.
3485 * arch/aarch64-mte-linux.c: New file.
3486 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3487 (AARCH64_MTE_GRANULE_SIZE): Define.
3488 (aarch64_memtag_type): New enum.
3489 (aarch64_mte_get_tag_granules): New prototype.
3490 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3491 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3492 * nat/aarch64-mte-linux-ptrace.c: New file.
3493 * nat/aarch64-mte-linux-ptrace.h: New file.
3495 2021-03-24 Luis Machado <luis.machado@linaro.org>
3497 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3498 * nat/aarch64-mte-linux-ptrace.h: New file.
3500 2021-03-24 Luis Machado <luis.machado@linaro.org>
3502 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3503 (store_mteregs_to_thread): New function.
3504 (aarch64_linux_nat_target::fetch_registers): Update to call
3505 fetch_mteregs_from_thread.
3506 (aarch64_linux_nat_target::store_registers): Update to call
3507 store_mteregs_to_thread.
3508 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3509 (aarch64_cannot_store_register): Handle MTE registers.
3510 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3511 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3512 <has_mte>: New method.
3513 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3515 2021-03-24 Luis Machado <luis.machado@linaro.org>
3517 * aarch64-linux-nat.c
3518 (aarch64_linux_nat_target::read_description): Take MTE flag into
3520 Slight refactor to hwcap flag checking.
3521 * aarch64-linux-tdep.c
3522 (aarch64_linux_core_read_description): Likewise.
3523 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3525 (aarch64_read_description): Add mte_p parameter and update to use it.
3526 Update the documentation.
3527 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3528 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3529 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3530 (aarch64_create_target_description): Add mte_p parameter and update
3532 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3534 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3535 * features/aarch64-mte.c: New file, generated.
3536 * features/aarch64-mte.xml: New file.
3538 2021-03-24 Luis Machado <luis.machado@linaro.org>
3540 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3541 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3542 * aarch64-linux-tdep.c: Likewise
3543 * arch/aarch64-mte-linux.h: New file.
3545 2021-03-24 Luis Machado <luis.machado@linaro.org>
3547 * remote: Include gdbsupport/selftest.h.
3548 (test_memory_tagging_functions): New function.
3549 (_initialize_remote): Register test_memory_tagging_functions.
3551 2021-03-24 Luis Machado <luis.machado@linaro.org>
3553 * remote.c (PACKET_memory_tagging_feature): New enum.
3554 (remote_memory_tagging_p): New function.
3555 (remote_protocol_features): New "memory-tagging" entry.
3556 (remote_target::remote_query_supported): Handle memory tagging
3558 (remote_target::supports_memory_tagging): Implement.
3559 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3560 (create_store_memtags_request): New functions.
3561 (remote_target::fetch_memtags): Implement.
3562 (remote_target::store_memtags): Implement.
3563 (_initialize_remote): Add new "memory-tagging-feature"
3566 2021-03-24 Luis Machado <luis.machado@linaro.org>
3568 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3569 (default_memtag_matches_p, default_set_memtags)
3570 (default_get_memtag): New functions.
3571 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3572 (default_memtag_matches_p, default_set_memtags)
3573 (default_get_memtag): New prototypes.
3574 * gdbarch.c: Regenerate.
3575 * gdbarch.h: Regenerate.
3576 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3577 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3578 (enum memtag_type): New enum.
3580 2021-03-24 Luis Machado <luis.machado@linaro.org>
3582 * remote.c (remote_target) <supports_memory_tagging>: New method
3584 <fetch_memtags>: New method override.
3585 <store_memtags>: New method override.
3586 (remote_target::supports_memory_tagging): New method.
3587 (remote_target::fetch_memtags): New method.
3588 (remote_target::store_memtags): New method.
3589 * target-delegates.c: Regenerate.
3590 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3592 <fetch_memtags>: New virtual method.
3593 <store_memtags>: New virtual method.
3594 (target_supports_memory_tagging): Define.
3595 (target_fetch_memtags): Define.
3596 (target_store_memtags): Define.
3597 * target-debug.h (target_debug_print_size_t)
3598 (target_debug_print_const_gdb_byte_vector_r)
3599 (target_debug_print_gdb_byte_vector_r): New functions.
3601 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3603 * target.h (target_longname): Remove.
3605 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3607 * target.h (target_is_pushed): Remove, update callers to use
3608 inferior::target_is_pushed instead.
3609 * target.c (target_is_pushed): Remove.
3611 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3613 * target.h (push_target): Remove, update callers to use
3614 inferior::push_target.
3615 * target.c (push_target): Remove.
3616 * inferior.h (class inferior) <push_target>: New overload.
3618 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3620 * target.h (unpush_target): Remove, update all callers
3621 to use `inferior::unpush_target` instead.
3622 (struct target_unpusher) <operator()>: Just declare.
3623 * target.c (unpush_target): Remove.
3624 (target_unpusher::operator()): New.
3626 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3628 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3630 (process_full_comp_unit): Validate the top-level tag before
3631 processing the first DIE.
3632 (read_func_scope): Ensure we have a valid builder.
3634 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3636 * objc-lang.c (objc_demangle): Renamed to
3637 objc_language::demangle_symbol, and moved later in the file.
3638 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3640 (objc_language::demangle_symbol): Defined outside of class
3641 declaration. The definition is the old objc_demangle with NULL
3642 changed to nullptr, and if conditions relating to nullptr pointers
3643 or null character checks made explicit.
3644 * objc-lang.h (objc_demangle): Delete declaration.
3646 2021-03-22 Martin Liska <mliska@suse.cz>
3648 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3649 (_initialize_arm_tdep): Likewise.
3651 2021-03-20 Tom Tromey <tom@tromey.com>
3653 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3654 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3655 * psymtab.h (make_psymbol_functions): Don't declare.
3656 * psymtab.c (make_psymbol_functions): Remove.
3657 (maintenance_print_psymbols): Update.
3658 * psympriv.h (struct psymbol_functions): Add no-argument
3660 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3661 <partial_symtabs>: Remove.
3662 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3663 * elfread.c (read_partial_symbols): Update.
3664 (elf_symfile_read): Remove check for existing partial symbols.
3666 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3668 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3670 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3672 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3673 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3675 2021-03-20 Tom Tromey <tom@tromey.com>
3677 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3678 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3679 * symfile-debug.c (objfile::has_partial_symbols)
3680 (objfile::find_last_source_symtab)
3681 (objfile::forget_cached_source_info)
3682 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3683 (objfile::print_stats, objfile::dump)
3684 (objfile::expand_symtabs_for_function)
3685 (objfile::expand_all_symtabs)
3686 (objfile::expand_symtabs_with_fullname)
3687 (objfile::map_matching_symbols)
3688 (objfile::expand_symtabs_matching)
3689 (objfile::find_pc_sect_compunit_symtab)
3690 (objfile::map_symbol_filenames)
3691 (objfile::find_compunit_symtab_by_address)
3692 (objfile::lookup_global_symbol_language)
3693 (objfile::require_partial_symbols): Update.
3694 * psymtab.c (maintenance_print_psymbols)
3695 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3696 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3697 * objfiles.c (objfile_relocate1): Update.
3698 * elfread.c (elf_symfile_read): Update.
3700 2021-03-20 Tom Tromey <tom@tromey.com>
3702 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3704 2021-03-20 Tom Tromey <tom@tromey.com>
3706 * psymtab.c (psymbol_functions::count_psyms): Rename.
3707 (psymbol_functions::print_stats): Update.
3708 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3711 2021-03-20 Tom Tromey <tom@tromey.com>
3713 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3714 (psymbol_functions::find_pc_sect_psymtab): Rename.
3715 (psymbol_functions::find_pc_sect_compunit_symtab)
3716 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3717 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3719 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3721 2021-03-20 Tom Tromey <tom@tromey.com>
3723 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3724 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3725 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3727 (add_psymbol_to_bcache): Remove.
3728 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3729 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3731 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3732 <add_psymbol>: Likewise.
3733 (standard_psymtab, legacy_psymtab): Likewise.
3734 * mdebugread.c (parse_partial_symbols): Update.
3735 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3736 (handle_psymbol_enumerators): Update.
3737 (new_psymtab): Add partial_symtabs parameter.
3738 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3739 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3741 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3742 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3744 * dbxread.c (read_dbx_symtab): Update.
3745 (start_psymtab): Add partial_symtabs parameter.
3746 (dbx_end_psymtab): Update.
3747 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3748 (ctf_psymtab): Add partial_symtabs parameter.
3749 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3751 (scan_partial_symbols): Add partial_symtabs parameter.
3752 (scan_partial_symbols, elfctf_build_psymtabs)
3753 (ctf_psymtab_add_enums): Update.
3755 2021-03-20 Tom Tromey <tom@tromey.com>
3757 * symfile.c (read_symbols): Use objfile method.
3758 * symfile-debug.c (objfile::require_partial_symbols): New method.
3759 * psymtab.h (require_partial_symbols): Don't declare.
3760 * psymtab.c (require_partial_symbols): Use objfile method. Now
3762 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3763 (psymbol_functions::lookup_symbol)
3764 (psymbol_functions::lookup_global_symbol_language)
3765 (psymbol_functions::find_last_source_symtab)
3766 (psymbol_functions::forget_cached_source_info)
3767 (psymbol_functions::print_stats)
3768 (psymbol_functions::expand_symtabs_for_function)
3769 (psymbol_functions::expand_all_symtabs)
3770 (psymbol_functions::expand_symtabs_with_fullname)
3771 (psymbol_functions::map_symbol_filenames)
3772 (psymbol_functions::map_matching_symbols)
3773 (psymbol_functions::expand_symtabs_matching)
3774 (psymbol_functions::find_compunit_symtab_by_address)
3775 (maintenance_print_psymbols, maintenance_info_psymtabs)
3776 (maintenance_check_psymtabs): Update.
3777 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3780 2021-03-20 Tom Tromey <tom@tromey.com>
3782 * xcoffread.c (xcoff_sym_fns): Update.
3783 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3784 * symfile-debug.c (objfile::has_partial_symbols): Use
3785 can_lazily_read_symbols.
3786 (debug_sym_read_psymbols): Remove.
3787 (debug_sym_fns, install_symfile_debug_logging): Update.
3788 * quick-symbol.h (struct quick_symbol_functions)
3789 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3790 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3791 * mipsread.c (ecoff_sym_fns): Update.
3792 * machoread.c (macho_sym_fns): Update.
3793 * elfread.c (struct lazy_dwarf_reader): New.
3794 (elf_symfile_read): Update.
3795 (read_psyms): Now a method of lazy_dwarf_reader.
3796 (elf_sym_fns): Update.
3797 (elf_sym_fns_lazy_psyms): Remove.
3798 * dbxread.c (aout_sym_fns): Update.
3799 * coffread.c (coff_sym_fns): Update.
3801 2021-03-20 Tom Tromey <tom@tromey.com>
3803 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3804 (reread_symbols): Move reset_psymtabs call later.
3805 * objfiles.c (objfile::objfile): Don't initialize
3808 2021-03-20 Tom Tromey <tom@tromey.com>
3810 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3811 set_partial_symtabs.
3812 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3813 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3815 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3817 (psymbol_functions::find_pc_sect_compunit_symtab)
3818 (psymbol_functions::print_stats, psymbol_functions::dump)
3819 (psymbol_functions::has_symbols): Update.
3820 (make_psymbol_functions, dump_psymtab_addrmap): Add
3821 partial_symtabs parameter.
3822 (maintenance_print_psymbols): Update.
3823 (psymbol_functions::expand_symtabs_matching): Update.
3824 * psympriv.h (struct psymbol_functions): Add constructor.
3825 <m_partial_symtabs>: New member.
3826 <set_partial_symtabs>: New method.
3828 2021-03-20 Tom Tromey <tom@tromey.com>
3830 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3832 (process_psymtab_comp_unit_reader)
3833 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3834 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3835 Reference psymtabs via per_bfd.
3837 2021-03-20 Tom Tromey <tom@tromey.com>
3839 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3841 (add_address_entry): Remove objfile parameter.
3842 (add_address_entry_worker): Update.
3843 (write_address_map): Replace objfile parameter with per_bfd.
3844 (write_gdbindex, write_psymtabs_to_index): Update.
3846 2021-03-20 Tom Tromey <tom@tromey.com>
3848 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3849 print_bcache parameter.
3850 * symfile-debug.c (objfile::print_stats): Add print_bcache
3852 * quick-symbol.h (struct quick_symbol_functions)
3853 <print_stats>: Add print_bcache parameter.
3854 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3856 (print_objfile_statistics): Move psymtab code to psymtab.c.
3857 * psymtab.c (count_psyms): Move from symmisc.c.
3858 (psymbol_functions::print_stats): Print partial symbol and bcache
3859 statistics. Add print_bcache parameter.
3860 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3861 (struct objfile) <print_stats>: Add print_bcache parameter.
3862 * maint.c (maintenance_print_statistics): Update.
3864 2021-03-20 Tom Tromey <tom@tromey.com>
3866 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3868 * dwarf2/read.c (create_addrmap_from_index)
3869 (create_addrmap_from_aranges): Set per_bfd addrmap.
3870 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3871 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3873 (dwarf2_read_debug_names): Don't set partial_symtabs.
3874 (dwarf2_initialize_objfile): Likewise.
3876 2021-03-20 Tom Tromey <tom@tromey.com>
3878 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3881 2021-03-20 Tom Tromey <tom@tromey.com>
3883 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3884 (~psymtab_discarder, keep): Update.
3885 <m_objfile>: Remove.
3886 <m_partial_symtabs>: New member.
3887 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3889 2021-03-20 Tom Tromey <tom@tromey.com>
3891 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3892 (xcoff_end_psymtab): Update.
3893 (scan_xcoff_symtab): Add partial_symtabs parameter.
3894 (xcoff_initial_scan): Update.
3895 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3896 * mdebugread.c (mdebug_build_psymtabs): Update.
3897 (parse_partial_symbols): Add partial_symtabs parameter.
3898 * dbxread.c (dbx_symfile_read): Update.
3899 (read_dbx_symtab): Add partial_symtabs parameter.
3900 (read_dbx_symtab): Update.
3901 (dbx_end_psymtab): Add partial_symtabs parameter.
3903 2021-03-20 Tom Tromey <tom@tromey.com>
3905 * quick-symbol.h (struct quick_symbol_functions)
3906 <relocated>: New method.
3907 * psymtab.h (struct psymbol_functions) <relocated>: New
3909 <fill_psymbol_map>: Declare method.
3910 <m_psymbol_map>: New member.
3911 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3912 (psymbol_functions::find_compunit_symtab_by_address): Update.
3913 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3914 (struct objfile) <psymbol_map>: Remove.
3915 * objfiles.c (objfile_relocate1): Update.
3917 2021-03-20 Tom Tromey <tom@tromey.com>
3919 * psympriv.h (struct psymbol_functions): New.
3920 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3921 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3922 (objfile::lookup_global_symbol_language): Update.
3923 * quick-symbol.h (struct quick_symbol_functions): Convert function
3924 pointers to methods. Add virtual destructor.
3925 (quick_symbol_functions_up): New typedef.
3926 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3927 (dwarf2_debug_names_functions): Don't declare.
3928 (make_psymbol_functions): Declare.
3929 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3930 (psymbol_functions::find_pc_sect_compunit_symtab)
3931 (psymbol_functions::lookup_symbol)
3932 (psymbol_functions::lookup_global_symbol_language)
3933 (psymbol_functions::find_last_source_symtab)
3934 (psymbol_functions::forget_cached_source_info)
3935 (psymbol_functions::print_stats, psymbol_functions::dump)
3936 (psymbol_functions::expand_symtabs_for_function)
3937 (psymbol_functions::expand_all_symtabs)
3938 (psymbol_functions::expand_symtabs_with_fullname)
3939 (psymbol_functions::map_symbol_filenames)
3940 (psymbol_functions::map_matching_symbols)
3941 (psymbol_functions::expand_symtabs_matching)
3942 (psymbol_functions::has_symbols)
3943 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3944 (psym_functions): Remove.
3945 (make_psymbol_functions): New function.
3946 * objfiles.h (struct objfile) <qf>: Change type.
3947 * elfread.c (elf_symfile_read): Update.
3948 * dwarf2/read.c (struct dwarf2_base_index_functions)
3949 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3950 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3951 (dwarf2_base_index_functions::find_last_source_symtab)
3952 (dwarf2_base_index_functions::forget_cached_source_info)
3953 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3954 (dwarf2_gdb_index::lookup_symbol)
3955 (dwarf2_base_index_functions::print_stats)
3956 (dwarf2_gdb_index::dump)
3957 (dwarf2_gdb_index::expand_symtabs_for_function)
3958 (dwarf2_base_index_functions::expand_all_symtabs)
3959 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3961 (dwarf2_gdb_index::map_matching_symbols): New method.
3962 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3963 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3964 (dwarf2_base_index_functions::map_symbol_filenames)
3965 (dwarf2_base_index_functions::has_symbols): Rename.
3966 (dwarf2_gdb_index_functions): Remove.
3967 (dwarf2_debug_names_index::lookup_symbol)
3968 (dwarf2_debug_names_index::dump)
3969 (dwarf2_debug_names_index::expand_symtabs_for_function)
3970 (dwarf2_debug_names_index::map_matching_symbols)
3971 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3972 (dwarf2_debug_names_functions): Remove.
3973 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3976 2021-03-20 Tom Tromey <tom@tromey.com>
3978 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3980 * xcoffread.c (xcoff_sym_fns): Update.
3981 * symfile.h (struct sym_fns) <qf>: Remove.
3982 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3983 * symfile-debug.c (objfile::has_partial_symbols)
3984 (objfile::find_last_source_symtab)
3985 (objfile::forget_cached_source_info)
3986 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3987 (objfile::print_stats, objfile::dump)
3988 (objfile::expand_symtabs_for_function)
3989 (objfile::expand_all_symtabs)
3990 (objfile::expand_symtabs_with_fullname)
3991 (objfile::map_matching_symbols)
3992 (objfile::expand_symtabs_matching)
3993 (objfile::find_pc_sect_compunit_symtab)
3994 (objfile::map_symbol_filenames)
3995 (objfile::find_compunit_symtab_by_address)
3996 (objfile::lookup_global_symbol_language, debug_sym_fns)
3997 (install_symfile_debug_logging): Update.
3998 * objfiles.h (struct objfile) <qf>: New member.
3999 * mipsread.c (ecoff_sym_fns): Update.
4000 * machoread.c (macho_sym_fns): Update.
4001 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
4003 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
4004 * dbxread.c (aout_sym_fns): Update.
4005 * coffread.c (coff_sym_fns): Update.
4007 2021-03-20 Tom Tromey <tom@tromey.com>
4009 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
4010 (expand_symtabs_file_matcher_ftype)
4011 (expand_symtabs_symbol_matcher_ftype)
4012 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
4013 Move to quick-symbol.h.
4014 * quick-symbol.h: New file.
4016 2021-03-20 Tom Tromey <tom@tromey.com>
4018 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
4019 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
4020 (basic_lookup_transparent_type_quick)
4021 (find_pc_sect_compunit_symtab, find_symbol_at_address)
4022 (find_line_symtab, global_symbol_searcher::expand_symtabs):
4024 * symmisc.c (print_objfile_statistics, dump_objfile)
4025 (maintenance_expand_symtabs): Update.
4026 * symfile.c (symbol_file_add_with_addrs)
4027 (expand_symtabs_matching, map_symbol_filenames): Update.
4028 * symfile-debug.c (objfile::has_partial_symbols)
4029 (objfile::find_last_source_symtab)
4030 (objfile::forget_cached_source_info)
4031 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
4032 (objfile::print_stats, objfile::dump)
4033 (objfile::expand_symtabs_for_function)
4034 (objfile::expand_all_symtabs)
4035 (objfile::expand_symtabs_with_fullname)
4036 (objfile::map_matching_symbols)
4037 (objfile::expand_symtabs_matching)
4038 (objfile::find_pc_sect_compunit_symtab)
4039 (objfile::map_symbol_filenames)
4040 (objfile::find_compunit_symtab_by_address)
4041 (objfile::lookup_global_symbol_language): New methods.
4042 (debug_sym_quick_functions): Remove.
4043 (debug_sym_fns, install_symfile_debug_logging): Update.
4044 * source.c (forget_cached_source_info_for_objfile)
4045 (select_source_symtab): Update.
4046 * objfiles.h (struct objfile): Add methods corresponding to
4047 quick_symbol_functions.
4048 * objfiles.c (objfile::has_partial_symbols): Move to
4050 * linespec.c (iterate_over_all_matching_symtabs): Update.
4051 * cp-support.c (add_symbol_overload_list_qualified): Update.
4052 * ada-lang.c (add_nonlocal_symbols): Update.
4054 2021-03-20 Tom Tromey <tom@tromey.com>
4056 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
4057 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
4059 * symfile-debug.c (debug_qf_has_symbols): Return bool.
4060 * psymtab.c (psym_has_symbols): Return bool.
4061 * objfiles.c (objfile::has_partial_symbols): Return bool.
4062 * dwarf2/read.c (dw2_has_symbols): Return bool.
4064 2021-03-20 Tom Tromey <tom@tromey.com>
4066 * symfile.c (read_symbols): Update.
4067 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
4068 (objfile_has_partial_symbols): Don't declare.
4069 * objfiles.c (objfile::has_partial_symbols): Rename from
4070 objfile_has_partial_symbols.
4071 (objfile_has_symbols, have_partial_symbols): Update.
4072 * elfread.c (elf_symfile_read): Update.
4073 * dwarf2/read.c (dwarf2_has_info): Update.
4074 * coffread.c (coff_symfile_read): Update.
4076 2021-03-20 Tom Tromey <tom@tromey.com>
4078 * coffread.c: Include dwarf2/public.h.
4079 * dwarf2/frame.c: Include dwarf2/public.h.
4080 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
4081 * dwarf2/public.h: New file.
4082 * dwarf2/read.c: Include dwarf2/public.h.
4083 * elfread.c: Include dwarf2/public.h.
4084 * machoread.c: Include dwarf2/public.h.
4085 * symfile.h (dwarf2_has_info, enum dw_index_kind)
4086 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
4087 (dwarf2_build_frame_info): Move to dwarf2/public.h.
4088 * xcoffread.c: Include dwarf2/public.h.
4090 2021-03-20 Tom Tromey <tom@tromey.com>
4092 * symfile.h (enum dwarf2_section_enum)
4093 (dwarf2_get_section_info): Move to dwarf2/read.h.
4094 * dwarf2/read.h (enum dwarf2_section_enum)
4095 (dwarf2_get_section_info): Move from symfile.h.
4097 2021-03-19 Pedro Alves <pedro@palves.net>
4099 * thread.c (any_thread_of_inferior): Check if there's a selected
4100 thread before calling inferior_thread().
4102 2021-03-18 Tom Tromey <tromey@adacore.com>
4104 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
4106 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
4107 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
4109 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4111 * python/py-param.c (get_set_value): Update header comment.
4113 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
4115 * infrun.c (check_multi_target_resumption): Remove argument to
4116 all_non_exited_inferiors.
4118 2021-03-16 Christian Biesinger <cbiesinger@google.com>
4120 * windows-nat.c (windows_init_thread_list): Add message to
4123 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
4125 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
4126 well as PyLong_Check for Python 2.
4128 2021-03-15 Tom Tromey <tromey@adacore.com>
4131 * rust-exp.y (maker_map): Use gdb::hash_enum.
4132 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
4134 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4136 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
4139 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4141 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
4142 parameter, adjust caller.
4144 2021-03-15 Tom Tromey <tromey@adacore.com>
4146 * ada-exp.y (simple_exp): Always push a result for unary '+'.
4148 2021-03-15 Tom Tromey <tromey@adacore.com>
4150 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
4151 ada_ensure_varsize_limit.
4153 2021-03-15 Tom Tromey <tromey@adacore.com>
4155 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
4157 * ada-exp.y (maybe_overload): New function.
4158 (ada_wrap_overload): New function.
4159 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
4160 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
4161 (or_else_exp, xor_exp, primary): Update.
4163 2021-03-15 Tom Tromey <tromey@adacore.com>
4166 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
4167 call for tagged type.
4169 2021-03-15 Tom Tromey <tromey@adacore.com>
4171 * ada-exp.y (exp1): Handle resolution of the right hand side of an
4174 2021-03-15 Tom Tromey <tromey@adacore.com>
4176 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
4178 (ada_assign_operation::evaluate): Update.
4179 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
4182 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
4184 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
4186 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
4188 * python/python.c (gdbpy_source_objfile_script): Use
4189 make_scoped_restore to restore gdbpy_current_objfile.
4190 (gdbpy_execute_objfile_script): Likewise.
4192 2021-03-14 Tom Tromey <tom@tromey.com>
4194 * dwarf2/read.c (read_attribute_value): Use cu_header
4197 2021-03-14 Tom Tromey <tom@tromey.com>
4199 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
4200 (peek_die_abbrev): Use reader.abfd.
4202 2021-03-14 Tom Tromey <tom@tromey.com>
4204 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
4207 2021-03-13 Tom Tromey <tom@tromey.com>
4209 * dwarf2/read.c (struct partial_die_info): Update.
4210 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
4211 (load_partial_dies, partial_die_info::partial_die_info): Update.
4212 * dwarf2/abbrev.h (lookup_abbrev): Constify.
4214 2021-03-13 Tom Tromey <tom@tromey.com>
4216 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
4218 2021-03-12 Christian Biesinger <cbiesinger@google.com>
4221 * cp-support.c: Use scoped_segv_handler_restore.
4222 * event-top.c (thread_local_segv_handler): Made static.
4223 (scoped_segv_handler_restore::scoped_segv_handler_restore):
4225 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
4227 * event-top.h (class scoped_segv_handler_restore): New class.
4228 (thread_local_segv_handler): Removed.
4230 2021-03-10 Tom Tromey <tromey@adacore.com>
4232 * parser-defs.h (parser_state): Change completion to bool.
4233 <parse_completion>: Likewise.
4234 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4235 (ada_resolve_variable, ada_resolve_function): Update.
4236 * ada-lang.c (ada_find_operator_symbol): Change
4237 parse_completion to bool.
4238 (ada_resolve_funcall, ada_resolve_variable)
4239 (ada_resolve_function): Likewise.
4241 2021-03-09 Tom Tromey <tromey@adacore.com>
4243 * eval.c (operation::evaluate_funcall): Use function formal
4244 parameter types when evaluating.
4246 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4248 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
4249 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
4250 and owner to m_owner.
4252 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
4254 * f-exp.h (eval_op_f_loc): Declare.
4255 (expr::fortran_loc_operation): New typedef.
4256 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
4258 (f77_keywords): Add LOC keyword.
4259 * f-lang.c (eval_op_f_loc): New function.
4260 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
4262 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4264 * f-exp.h (eval_op_f_array_shape): Declare.
4265 (fortran_array_shape_operation): New type.
4266 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
4268 (f77_keywords): Add "shape" keyword.
4269 * f-lang.c (fortran_array_shape): New function.
4270 (eval_op_f_array_shape): New function.
4271 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
4273 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4275 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
4277 (expr::fortran_array_size_1arg): New type.
4278 (expr::fortran_array_size_2arg): Likewise.
4279 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
4280 UNOP_OR_BINOP_INTRINSIC.
4281 (f77_keywords): Add "size" keyword.
4282 * f-lang.c (fortran_array_size): New function.
4283 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
4284 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
4286 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4288 * f-exp.h (eval_op_f_rank): Declare.
4289 (expr::fortran_rank_operation): New typedef.
4290 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
4292 (f77_keywords): Add "rank" keyword.
4293 * f-lang.c (eval_op_f_rank): New function.
4294 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
4296 2021-03-08 Tom Tromey <tom@tromey.com>
4298 * printcmd.c (set_command): Remove null check.
4299 * value.c (init_if_undefined_command): Remove null check.
4301 2021-03-08 Tom Tromey <tom@tromey.com>
4303 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
4305 * p-exp.y (variable): Update.
4306 * go-exp.y (variable): Update.
4307 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
4308 Remove overload for objfile.
4309 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
4311 (check_objfile): Likewise.
4312 (dump_for_expression): Likewise. Remove overload for objfile.
4313 (class var_msym_value_operation): Use bound_minimal_symbol.
4314 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
4316 (var_msym_value_operation::evaluate_for_address)
4317 (var_msym_value_operation::evaluate_for_sizeof)
4318 (var_msym_value_operation::evaluate_for_cast): Update.
4319 * d-exp.y (PrimaryExpression): Update.
4320 * c-exp.y (variable): Update.
4321 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
4322 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4324 * ada-exp.y (write_var_or_type): Update.
4326 2021-03-08 Tom Tromey <tom@tromey.com>
4328 * parser-defs.h (exp_uses_objfile): Return bool.
4329 * parse.c (exp_uses_objfile): Return bool.
4331 2021-03-08 Tom Tromey <tom@tromey.com>
4333 * value.h (eval_skip_value): Don't declare.
4334 * opencl-lang.c (eval_opencl_assign): Update.
4335 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4336 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4337 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4338 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4339 * expop.h (typeof_operation::evaluate)
4340 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4341 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4342 (cxx_cast_operation::evaluate): Update.
4343 * eval.c (eval_skip_value): Remove.
4344 (eval_op_scope, eval_op_var_entry_value)
4345 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4346 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4347 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4348 (eval_op_binary, eval_op_subscript, eval_op_equal)
4349 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4350 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4351 (eval_op_complement, eval_op_lognot, eval_op_ind)
4352 (eval_op_memval, eval_op_preinc, eval_op_predec)
4353 (eval_op_postinc, eval_op_postdec, eval_op_type)
4354 (eval_binop_assign_modify, eval_op_objc_msgcall)
4355 (eval_multi_subscript, logical_and_operation::evaluate)
4356 (logical_or_operation::evaluate, array_operation::evaluate)
4357 (operation::evaluate_for_cast)
4358 (var_msym_value_operation::evaluate_for_cast)
4359 (var_value_operation::evaluate_for_cast): Update.
4360 * c-lang.c (c_string_operation::evaluate): Update.
4361 * c-exp.h (objc_nsstring_operation::evaluate)
4362 (objc_selector_operation::evaluate): Update.
4363 * ada-lang.c (ada_assign_operation::evaluate)
4364 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4365 (ada_atr_size): Update.
4367 2021-03-08 Tom Tromey <tom@tromey.com>
4369 * eval.c: Merge "namespace" scopes.
4371 2021-03-08 Tom Tromey <tom@tromey.com>
4373 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4375 * parse.c (expr_builder::expr_builder, expr_builder::release):
4378 2021-03-08 Tom Tromey <tom@tromey.com>
4380 * parse.c (expression::expression, expression::~expression):
4382 * expression.h (struct expression): Inline constructor. Remove
4385 2021-03-08 Tom Tromey <tom@tromey.com>
4387 * std-operator.def (BINOP_END): Remove.
4388 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4389 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4390 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4391 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4392 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4395 2021-03-08 Tom Tromey <tom@tromey.com>
4397 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4399 2021-03-08 Tom Tromey <tom@tromey.com>
4401 * std-operator.def (OP_EXTENDED0): Remove.
4403 2021-03-08 Tom Tromey <tom@tromey.com>
4405 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4406 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4409 2021-03-08 Tom Tromey <tom@tromey.com>
4411 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4412 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4414 2021-03-08 Tom Tromey <tom@tromey.com>
4416 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4417 * ada-lang.c (ada_binop_minmax): Update.
4418 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4419 Use BINOP_MIN and BINOP_MAX.
4421 2021-03-08 Tom Tromey <tom@tromey.com>
4423 * value.h (evaluate_subexp_with_coercion): Don't declare.
4424 * parse.c (exp_descriptor_standard): Remove.
4425 (expr_builder::expr_builder, expr_builder::release): Update.
4426 (expression::expression): Remove size_t parameter.
4427 (expression::~expression): Simplify.
4428 (expression::resize): Remove.
4429 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4430 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4431 (write_exp_elt_longcst, write_exp_elt_floatcst)
4432 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4433 (write_exp_string_vector, write_exp_bitstring): Remove.
4434 * p-lang.h (class pascal_language) <opcode_print_table,
4435 op_print_tab>: Remove.
4436 * p-lang.c (pascal_language::op_print_tab): Remove.
4437 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4439 * objc-lang.c (objc_op_print_tab): Remove.
4440 (class objc_language) <opcode_print_table>: Remove.
4441 * m2-lang.h (class m2_language) <opcode_print_table,
4442 op_print_tab>: Remove.
4443 * m2-lang.c (m2_language::op_print_tab): Remove.
4444 * language.h (struct language_defn) <post_parser, expression_ops,
4445 opcode_print_table>: Remove.
4446 * language.c (language_defn::expression_ops)
4447 (auto_or_unknown_language::opcode_print_table): Remove.
4448 * go-lang.h (class go_language) <opcode_print_table,
4449 op_print_tab>: Remove.
4450 * go-lang.c (go_language::op_print_tab): Remove.
4451 * f-lang.h (class f_language) <opcode_print_table>: Remove
4452 <op_print_tab>: Remove.
4453 * f-lang.c (f_language::op_print_tab): Remove.
4454 * expression.h (union exp_element): Remove.
4455 (struct expression): Remove size_t parameter from constructor.
4457 <first_opcode>: Update.
4458 <nelts, elts>: Remove.
4459 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4460 (evaluate_subexp_standard, print_expression, op_string)
4461 (dump_raw_expression): Don't declare.
4462 * expprint.c (print_expression, print_subexp)
4463 (print_subexp_funcall, print_subexp_standard, op_string)
4464 (dump_raw_expression, dump_subexp, dump_subexp_body)
4465 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4466 (dump_prefix_expression): Update.
4467 * eval.c (evaluate_subexp): Remove.
4468 (evaluate_expression, evaluate_type): Update.
4469 (evaluate_subexpression_type): Remove.
4470 (fetch_subexp_value): Remove "pc" parameter. Update.
4471 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4472 (evaluate_subexp_standard, evaluate_subexp_for_address)
4473 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4474 (evaluate_subexp_for_cast): Remove.
4475 (parse_and_eval_type): Update.
4476 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4477 * d-lang.c (d_op_print_tab): Remove.
4478 (class d_language) <opcode_print_table>: Remove.
4479 * c-lang.h (c_op_print_tab): Don't declare.
4480 * c-lang.c (c_op_print_tab): Remove.
4481 (class c_language, class cplus_language, class asm_language, class
4482 minimal_language) <opcode_print_table>: Remove.
4483 * breakpoint.c (update_watchpoint, watchpoint_check)
4484 (watchpoint_exp_is_const, watch_command_1): Update.
4485 * ax-gdb.h (union exp_element): Don't declare.
4486 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4487 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4488 (gen_expr_binop_rest): Remove.
4489 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4490 * ada-lang.c (ada_op_print_tab): Remove.
4491 (class ada_language) <post_parser, opcode_print_table>: Remove.
4493 2021-03-08 Tom Tromey <tom@tromey.com>
4495 * go-lang.c (go_language::expression_ops): Don't declare.
4496 * go-lang.h (class go_language) <expression_ops>: Remove.
4497 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4499 (class opencl_language) <expression_ops>: Remove.
4500 * d-lang.c (class d_language) <expression_ops>: Remove.
4501 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4502 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4503 (class c_language, class cplus_language, class asm_language)
4504 (class minimal_language) <expression_ops>: Remove.
4506 2021-03-08 Tom Tromey <tom@tromey.com>
4508 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4509 (evaluate_subexp_type, assign_aggregate)
4510 (aggregate_assign_positional, aggregate_assign_from_choices)
4511 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4512 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4513 (ada_operator_check, ada_forward_operator_length)
4514 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4516 (post_parser): Update.
4517 (class ada_language) <expresssion_ops>: Remove.
4519 2021-03-08 Tom Tromey <tom@tromey.com>
4521 * m2-lang.h (class m2_language) <expresssion_ops,
4522 exp_descriptor_modula2>: Remove.
4523 * m2-lang.c (evaluate_subexp_modula2)
4524 (m2_language::exp_descriptor_modula2): Remove.
4526 2021-03-08 Tom Tromey <tom@tromey.com>
4528 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4529 <exp_descriptor_tab>: Remove.
4530 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4531 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4532 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4533 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4536 2021-03-08 Tom Tromey <tom@tromey.com>
4538 * rust-lang.h (class rust_language) <expression_ops,
4539 exp_descriptor_tab>: Remove.
4540 * rust-lang.c (rust_evaluate_funcall): Remove.
4541 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4543 (rust_evaluate_subexp): Remove.
4544 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4545 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4546 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4548 2021-03-08 Tom Tromey <tom@tromey.com>
4550 * ada-exp.y: Create operations.
4551 (empty_stoken): Remove.
4552 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4553 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4554 (components): New global.
4555 (push_component, choice_component, pop_component, pop_components):
4557 (associations): New global
4558 (push_association, pop_association, pop_associations): New
4560 (ada_parse): Update.
4561 (write_var_from_sym, write_int): Create operations.
4562 (write_exp_op_with_string): Remove.
4563 (write_object_renaming, write_selectors, write_ambiguous_var)
4564 (write_var_or_type, write_name_assoc): Create operations.
4565 * ada-lang.h (ada_index_type): Declare.
4566 * ada-lang.c (ada_index_type): No longer static.
4568 2021-03-08 Tom Tromey <tom@tromey.com>
4570 * f-exp.y: Create operations.
4571 (f_language::parser): Update.
4573 2021-03-08 Tom Tromey <tom@tromey.com>
4575 * m2-exp.y: Create operations.
4576 (m2_language::parser): Update.
4578 2021-03-08 Tom Tromey <tom@tromey.com>
4580 * p-exp.y: Create operations.
4581 (pascal_language::parser): Update.
4583 2021-03-08 Tom Tromey <tom@tromey.com>
4585 * d-exp.y: Create operations.
4588 2021-03-08 Tom Tromey <tom@tromey.com>
4590 * go-exp.y: Create operations.
4591 (go_language::parser): Update.
4593 2021-03-08 Tom Tromey <tom@tromey.com>
4595 * objc-lang.c (end_msglist): Create operations.
4596 * c-exp.y: Change parser to create operations.
4597 (write_destructor_name): Remove.
4600 2021-03-08 Tom Tromey <tom@tromey.com>
4602 * rust-exp.y: Create operations.
4603 (rust_parser::convert_params_to_expression): Change return type.
4604 (binop_maker_ftype): New typedef.
4605 (maker_map): New global.
4606 (rust_parser::convert_ast_to_expression): Change return type.
4607 (rust_language::parser): Update.
4608 (_initialize_rust_exp): Initialize maker_map.
4610 2021-03-08 Tom Tromey <tom@tromey.com>
4612 * stap-probe.c (binop_maker_ftype): New typedef.
4613 (stap_maker_map): New global.
4614 (stap_make_binop): New function.
4615 (stap_parse_register_operand): Return operation_up.
4616 (stap_parse_single_operand, stap_parse_argument_conditionally)
4617 (stap_parse_argument_1): Likewise.
4618 (stap_parse_argument): Create operations.
4619 (stap_probe::parse_arguments): Update.
4620 (_initialize_stap_probe): Initialize stap_maker_map.
4621 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4623 * i386-tdep.h (i386_stap_parse_special_token): Change return
4625 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4626 (i386_stap_parse_special_token_three_arg_disp)
4627 (i386_stap_parse_special_token): Change return type.
4628 * gdbarch.sh (stap_parse_special_token): Change return type.
4629 * gdbarch.c: Rebuild.
4630 * gdbarch.h: Rebuild.
4631 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4633 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4636 2021-03-08 Tom Tromey <tom@tromey.com>
4638 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4639 * gdbarch.h: Rebuild.
4640 * gdbarch.c: Rebuild.
4641 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4642 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4644 (amd64_dtrace_parse_probe_argument): Update.
4646 2021-03-08 Tom Tromey <tom@tromey.com>
4648 * parser-defs.h (struct parser_state) <push, push_new,
4649 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4650 wrap2>: New methods.
4651 <m_operations>: New member.
4652 * parse.c (parser_state::push_c_string)
4653 (parser_state::push_symbol, parser_state::push_dollar): New
4656 2021-03-08 Tom Tromey <tom@tromey.com>
4658 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4660 (struct parser_state) <mark_struct_expression>: New method.
4661 * parse.c (parser_state::mark_struct_expression): Update assert.
4662 (parser_state::mark_struct_expression): New method.
4663 (parser_state::mark_completion_tag): Update assert.
4664 (parse_expression_for_completion): Handle expout_last_op.
4666 2021-03-08 Tom Tromey <tom@tromey.com>
4668 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4670 * value.h (fetch_subexp_value): Add "op" parameter.
4671 * value.c (init_if_undefined_command): Update.
4672 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4673 * stap-probe.c (stap_probe::compile_to_ax): Update.
4674 * printcmd.c (set_command): Update.
4675 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4677 * parser-defs.h (struct expr_builder) <set_operation>: New
4679 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4680 * expression.h (struct expression) <first_opcode>: Update.
4682 * expprint.c (dump_raw_expression, dump_prefix_expression):
4684 * expop.h (class var_value_operation) <get_symbol>: New method.
4685 (class register_operation) <get_name>: New method.
4686 (class equal_operation): No longer a typedef, now a subclass.
4687 (class unop_memval_operation) <get_type>: New method.
4688 (class assign_operation) <get_lhs>: New method.
4689 (class unop_cast_operation) <get_type>: New method.
4690 * eval.c (evaluate_expression, evaluate_type)
4691 (evaluate_subexpression_type): Update.
4692 (fetch_subexp_value): Add "op" parameter.
4693 (parse_and_eval_type): Update.
4694 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4695 * breakpoint.c (update_watchpoint, watchpoint_check)
4696 (watchpoint_exp_is_const, watch_command_1): Update.
4697 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4700 2021-03-08 Tom Tromey <tom@tromey.com>
4702 * ada-lang.c (ada_value_binop): Do not use op_string.
4704 2021-03-08 Tom Tromey <tom@tromey.com>
4706 * expprint.c (dump_for_expression): New overload.
4707 * expop.h (check_objfile, dump_for_expression): Declare new
4709 * ada-lang.c (check_objfile): New overload.
4710 (assign_component, ada_aggregate_component::uses_objfile)
4711 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4712 (ada_aggregate_component::assign_aggregate)
4713 (ada_positional_component::uses_objfile)
4714 (ada_positional_component::dump, ada_positional_component::assign)
4715 (ada_discrete_range_association::uses_objfile)
4716 (ada_discrete_range_association::dump)
4717 (ada_discrete_range_association::assign)
4718 (ada_name_association::uses_objfile, ada_name_association::dump)
4719 (ada_name_association::assign)
4720 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4721 (ada_choices_component::assign)
4722 (ada_others_component::uses_objfile, ada_others_component::dump)
4723 (ada_others_component::assign, ada_assign_operation::evaluate):
4725 * ada-exp.h (ada_string_operation) <get_name>: New method.
4726 (class ada_assign_operation): New.
4727 (class ada_component): New.
4728 (ada_component_up): New typedef.
4729 (class ada_aggregate_operation, class ada_aggregate_component)
4730 (class ada_positional_component, class ada_others_component)
4731 (class ada_association): New.
4732 (ada_association_up): New typedef.
4733 (class ada_choices_component)
4734 (class ada_discrete_range_association)
4735 (class ada_name_association): New.
4737 2021-03-08 Tom Tromey <tom@tromey.com>
4739 * ada-lang.c (ada_var_value_operation::resolve)
4740 (ada_funcall_operation::resolve)
4741 (ada_ternop_slice_operation::resolve): New methods.
4742 * ada-exp.h (struct ada_resolvable): New.
4743 (class ada_var_value_operation): Derive from ada_resolvable.
4744 <get_block, resolve>: New methods.
4745 (class ada_funcall_operation): Derive from ada_resolvable.
4746 <resolve>: New method.
4747 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4748 <resolve>: New method.
4750 2021-03-08 Tom Tromey <tom@tromey.com>
4752 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4753 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4755 (class ada_funcall_operation): New.
4757 2021-03-08 Tom Tromey <tom@tromey.com>
4759 * ada-lang.c (ada_structop_operation::evaluate): New method.
4760 * ada-exp.h (class ada_structop_operation): New.
4762 2021-03-08 Tom Tromey <tom@tromey.com>
4764 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4765 * ada-exp.h (class ada_unop_ind_operation): New.
4767 2021-03-08 Tom Tromey <tom@tromey.com>
4769 * ada-lang.c (ada_binop_exp): No longer static.
4770 * ada-exp.h (ada_binop_exp_operation): New typedef.
4772 2021-03-08 Tom Tromey <tom@tromey.com>
4774 * ada-lang.c (ada_val_atr): No longer static.
4775 (ada_atr_val_operation::evaluate): New method.
4776 * ada-exp.h (class ada_atr_val_operation): New.
4778 2021-03-08 Tom Tromey <tom@tromey.com>
4780 * ada-lang.c (ada_pos_atr): No longer static.
4781 * ada-exp.h (ada_pos_operation): New typedef.
4783 2021-03-08 Tom Tromey <tom@tromey.com>
4785 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4787 (ada_evaluate_subexp): Use it.
4789 2021-03-08 Tom Tromey <tom@tromey.com>
4791 * ada-lang.c (ada_binop_minmax): No longer static.
4792 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4795 2021-03-08 Tom Tromey <tom@tromey.com>
4797 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4799 * ada-exp.h (class ada_var_msym_value_operation): New.
4801 2021-03-08 Tom Tromey <tom@tromey.com>
4803 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4804 (ada_var_value_operation::evaluate): New methods.
4805 * ada-exp.h (class ada_var_value_operation): New.
4807 2021-03-08 Tom Tromey <tom@tromey.com>
4809 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4810 * ada-exp.h (class ada_unop_atr_operation): New.
4812 2021-03-08 Tom Tromey <tom@tromey.com>
4814 * ada-lang.c (ada_binop_in_bounds): No longer static.
4815 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4817 2021-03-08 Tom Tromey <tom@tromey.com>
4819 * ada-lang.c (ada_ternop_slice): No longer static.
4820 * ada-exp.h (class ada_ternop_slice_operation): New.
4822 2021-03-08 Tom Tromey <tom@tromey.com>
4824 * ada-exp.h (ada_bitwise_operation): New template class.
4825 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4826 (ada_bitwise_xor_operation): New typedefs.
4828 2021-03-08 Tom Tromey <tom@tromey.com>
4830 * ada-lang.c (ada_equal_binop): No longer static.
4831 * ada-exp.h (class ada_binop_equal_operation): New.
4833 2021-03-08 Tom Tromey <tom@tromey.com>
4835 * ada-lang.c (ada_mult_binop): No longer static.
4836 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4837 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4839 2021-03-08 Tom Tromey <tom@tromey.com>
4841 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4842 * ada-exp.h (class ada_binop_addsub_operation): New.
4844 2021-03-08 Tom Tromey <tom@tromey.com>
4846 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4847 (ada_resolve_variable): Declare.
4848 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4849 (ada_resolve_variable): New functions.
4850 (resolve_subexp): Update.
4852 2021-03-08 Tom Tromey <tom@tromey.com>
4854 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4856 * c-exp.h (class opencl_ternop_cond_operation): New.
4858 2021-03-08 Tom Tromey <tom@tromey.com>
4860 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4862 * c-exp.h (class opencl_logical_binop_operation): New.
4864 2021-03-08 Tom Tromey <tom@tromey.com>
4866 * opencl-lang.c (opencl_structop_operation::evaluate): New
4868 * c-exp.h (class opencl_structop_operation): New.
4870 2021-03-08 Tom Tromey <tom@tromey.com>
4872 * opencl-lang.c (opencl_logical_not): No longer static. Change
4874 (evaluate_subexp_opencl): Update.
4875 * c-exp.h (opencl_notequal_operation): New typedef.
4877 2021-03-08 Tom Tromey <tom@tromey.com>
4879 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4880 static. Change parameters.
4881 (eval_opencl_assign): No longer static. Add "op" parameter.
4882 (evaluate_subexp_opencl): Update.
4883 * c-exp.h (opencl_binop_operation): New template class.
4884 (opencl_assign_operation, opencl_equal_operation)
4885 (opencl_notequal_operation, opencl_less_operation)
4886 (opencl_gtr_operation, opencl_geq_operation)
4887 (opencl_leq_operation): New typedefs.
4889 2021-03-08 Tom Tromey <tom@tromey.com>
4891 * opencl-lang.c (opencl_value_cast): No longer static.
4892 * c-exp.h (opencl_cast_type_operation): New typedef.
4894 2021-03-08 Tom Tromey <tom@tromey.com>
4896 * f-exp.h (eval_op_f_allocated): Declare.
4897 (fortran_allocated_operation): New typedef.
4898 * f-lang.c (eval_op_f_allocated): No longer static.
4900 2021-03-08 Tom Tromey <tom@tromey.com>
4902 * f-lang.c (eval_op_f_associated): New functions.
4903 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4906 2021-03-08 Tom Tromey <tom@tromey.com>
4908 * f-lang.c (fortran_bound_1arg::evaluate)
4909 (fortran_bound_2arg::evaluate): New methods.
4910 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4913 2021-03-08 Tom Tromey <tom@tromey.com>
4915 * expop.h (class unop_addr_operation) <get_expression>: New
4917 * f-lang.c (fortran_undetermined::value_subarray)
4918 (fortran_undetermined::evaluate): New methods.
4919 (fortran_prepare_argument): New overload.
4920 * f-exp.h (class fortran_range_operation)
4921 (class fortran_undetermined): New classes.
4923 2021-03-08 Tom Tromey <tom@tromey.com>
4925 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4926 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4929 2021-03-08 Tom Tromey <tom@tromey.com>
4931 * expression.h (class operation) <evaluate_funcall>: New methods.
4932 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4933 (class var_value_operation) <evaluate_funcall>: New method.
4934 (class structop_base_operation) <evaluate_funcall>: New method.
4935 (class var_msym_value_operation) <evaluate_funcall>: New method.
4936 (class structop_member_base): New class.
4937 (class structop_member_operation): Derive from
4938 structop_member_base.
4939 (class structop_mptr_operation): Derive from
4940 structop_member_base.
4941 (class funcall_operation): New class.
4942 * eval.c (operation::evaluate_funcall)
4943 (var_value_operation::evaluate_funcall)
4944 (scope_operation::evaluate_funcall)
4945 (structop_member_base::evaluate_funcall)
4946 (structop_base_operation::evaluate_funcall): New methods.
4948 2021-03-08 Tom Tromey <tom@tromey.com>
4950 * expop.h (class array_operation): New.
4951 * eval.c (array_operation::evaluate_struct_tuple)
4952 (array_operation::evaluate): New methods.
4954 2021-03-08 Tom Tromey <tom@tromey.com>
4956 * expop.h (class adl_func_operation): New.
4957 * eval.c (adl_func_operation::evaluate): New method.
4959 2021-03-08 Tom Tromey <tom@tromey.com>
4961 * ada-lang.c (ada_unop_in_range): No longer static.
4962 * ada-exp.h (class ada_unop_range_operation): New.
4964 2021-03-08 Tom Tromey <tom@tromey.com>
4966 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4968 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4969 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4971 2021-03-08 Tom Tromey <tom@tromey.com>
4973 * expop.h (class logical_and_operation)
4974 (class logical_or_operation): New.
4975 * eval.c (logical_and_operation::evaluate)
4976 (logical_or_operation::evaluate): New methods.
4977 * ax-gdb.c (logical_and_operation::do_generate_ax)
4978 (logical_or_operation::do_generate_ax): New methods.
4980 2021-03-08 Tom Tromey <tom@tromey.com>
4982 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4984 * m2-exp.h: New file.
4986 2021-03-08 Tom Tromey <tom@tromey.com>
4988 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4989 * rust-exp.h (class rust_aggregate_operation): New.
4991 2021-03-08 Tom Tromey <tom@tromey.com>
4993 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4995 * rust-exp.h (class rust_struct_anon): New.
4996 (class rust_structop): New.
4998 2021-03-08 Tom Tromey <tom@tromey.com>
5000 * rust-lang.c (rust_range): No longer static.
5001 * rust-exp.h (class rust_range_operation): New.
5003 2021-03-08 Tom Tromey <tom@tromey.com>
5005 * rust-lang.c (rust_subscript): No longer static.
5006 * rust-exp.h (class rust_subscript_operation): New.
5008 2021-03-08 Tom Tromey <tom@tromey.com>
5010 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
5012 (rust_evaluate_subexp): Update.
5013 * rust-exp.h (class rust_unop_ind_operation): New.
5015 2021-03-08 Tom Tromey <tom@tromey.com>
5017 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
5018 longer static. Add "opcode" parameter.
5019 (rust_evaluate_subexp): Update.
5020 * rust-exp.h: New file.
5022 2021-03-08 Tom Tromey <tom@tromey.com>
5024 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
5025 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
5026 (eval_op_f_kind): No longer static. Add "opcode" parameter.
5027 (evaluate_subexp_f): Update.
5028 * f-exp.h: New file.
5030 2021-03-08 Tom Tromey <tom@tromey.com>
5032 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
5033 * ada-exp.h (class ada_ternop_range_operation): New.
5035 2021-03-08 Tom Tromey <tom@tromey.com>
5037 * ada-lang.c (ada_qual_operation::evaluate): New method.
5038 * ada-exp.h (class ada_qual_operation): New.
5040 2021-03-08 Tom Tromey <tom@tromey.com>
5042 * ada-lang.c (ada_string_operation::evaluate): New method.
5043 * ada-exp.h (class ada_string_operation): New.
5045 2021-03-08 Tom Tromey <tom@tromey.com>
5047 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
5048 * ada-exp.h: New file.
5050 2021-03-08 Tom Tromey <tom@tromey.com>
5052 * expop.h (class multi_subscript_operation): New.
5053 * eval.c (multi_subscript_operation::evaluate): New method.
5055 2021-03-08 Tom Tromey <tom@tromey.com>
5057 * eval.c (objc_msgcall_operation::evaluate): New method.
5058 * c-exp.h (class objc_msgcall_operation): New.
5060 2021-03-08 Tom Tromey <tom@tromey.com>
5062 * expop.h (class var_value_operation): New.
5063 * eval.c (var_value_operation::evaluate)
5064 (var_value_operation::evaluate_for_address)
5065 (var_value_operation::evaluate_with_coercion)
5066 (var_value_operation::evaluate_for_sizeof)
5067 (var_value_operation::evaluate_for_cast): New methods.
5068 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
5070 2021-03-08 Tom Tromey <tom@tromey.com>
5072 * expop.h (cxx_cast_ftype): New typedef.
5073 (cxx_cast_operation): New template.
5074 (dynamic_cast_operation, reinterpret_cast_operation): New
5077 2021-03-08 Tom Tromey <tom@tromey.com>
5079 * expop.h (class unop_cast_type_operation): New.
5080 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
5083 2021-03-08 Tom Tromey <tom@tromey.com>
5085 * expop.h (class unop_cast_operation): New.
5086 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
5088 2021-03-08 Tom Tromey <tom@tromey.com>
5090 * expop.h (class assign_modify_operation): New.
5091 * eval.c (eval_binop_assign_modify): No longer static.
5092 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
5094 2021-03-08 Tom Tromey <tom@tromey.com>
5096 * expop.h (class assign_operation): New.
5097 * ax-gdb.c (assign_operation::do_generate_ax): New method.
5099 2021-03-08 Tom Tromey <tom@tromey.com>
5101 * expop.h (class type_instance_operation): New.
5102 * eval.c (type_instance_operation::evaluate): New method.
5104 2021-03-08 Tom Tromey <tom@tromey.com>
5106 * expop.h (class op_this_operation): New.
5107 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
5109 2021-03-08 Tom Tromey <tom@tromey.com>
5111 * expop.h (class unop_memval_operation)
5112 (class unop_memval_type_operation): New.
5113 * eval.c (eval_op_memval): No longer static.
5114 (unop_memval_operation::evaluate_for_address)
5115 (unop_memval_type_operation::evaluate_for_address)
5116 (unop_memval_operation::evaluate_for_sizeof)
5117 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
5118 * ax-gdb.c (unop_memval_operation::do_generate_ax)
5119 (unop_memval_type_operation::do_generate_ax): New methods.
5121 2021-03-08 Tom Tromey <tom@tromey.com>
5123 * expop.h (class unop_alignof_operation): New.
5124 * eval.c (eval_op_alignof): No longer static.
5126 2021-03-08 Tom Tromey <tom@tromey.com>
5128 * expop.h (class unop_sizeof_operation): New.
5129 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
5131 2021-03-08 Tom Tromey <tom@tromey.com>
5133 * expop.h (class unop_addr_operation): New.
5134 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
5136 2021-03-08 Tom Tromey <tom@tromey.com>
5138 * expop.h (class typeid_operation): New.
5140 2021-03-08 Tom Tromey <tom@tromey.com>
5142 * expop.h (class decltype_operation): New.
5144 2021-03-08 Tom Tromey <tom@tromey.com>
5146 * expop.h (class typeof_operation): New.
5148 2021-03-08 Tom Tromey <tom@tromey.com>
5150 * expop.h (class type_operation): New.
5151 * eval.c (eval_op_type): No longer static.
5153 2021-03-08 Tom Tromey <tom@tromey.com>
5155 * expop.h (class unop_ind_base_operation)
5156 (class unop_ind_operation): New.
5157 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
5158 (unop_ind_base_operation::evaluate_for_address)
5159 (unop_ind_base_operation::evaluate_for_sizeof): New method.
5160 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
5162 2021-03-08 Tom Tromey <tom@tromey.com>
5164 * expop.h (unop_incr_operation): New template.
5165 (preinc_operation, predec_operation, postinc_operation)
5166 (postdec_operation): New typedefs.
5167 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
5168 (eval_op_postdec): No longer static.
5170 2021-03-08 Tom Tromey <tom@tromey.com>
5172 * expop.h (unary_ftype): New typedef.
5173 (unop_operation, usual_ax_binop_operation): New templates.
5174 (unary_plus_operation, unary_neg_operation)
5175 (unary_complement_operation, unary_logical_not_operation): New
5177 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
5178 (eval_op_lognot): No longer static.
5179 * ax-gdb.c (gen_expr_unop): New function.
5181 2021-03-08 Tom Tromey <tom@tromey.com>
5183 * ax-gdb.c (comma_operation::do_generate_ax): New method.
5185 2021-03-08 Tom Tromey <tom@tromey.com>
5187 * expop.h (class repeat_operation): New.
5188 * eval.c (eval_op_repeat): No longer static. Remove "op"
5190 (evaluate_subexp_standard): Update.
5191 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
5193 2021-03-08 Tom Tromey <tom@tromey.com>
5195 * expop.h (class comparison_operation): New.
5196 (equal_operation, notequal_operation, less_operation)
5197 (gtr_operation, geq_operation, leq_operation): New typedefs.
5198 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
5199 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
5201 2021-03-08 Tom Tromey <tom@tromey.com>
5203 * expop.h (class subscript_operation): New.
5204 * eval.c (eval_op_subscript): No longer static.
5206 2021-03-08 Tom Tromey <tom@tromey.com>
5208 * expop.h (class binop_operation, class usual_ax_binop_operation):
5210 (exp_operation, intdiv_operation, mod_operation, mul_operation)
5211 (div_operation, rem_operation, lsh_operation, rsh_operation)
5212 (bitwise_and_operation, bitwise_ior_operation)
5213 (bitwise_xor_operation): New typedefs.
5214 * eval.c (eval_op_binary): No longer static.
5216 2021-03-08 Tom Tromey <tom@tromey.com>
5218 * expop.h (class sub_operation): New.
5219 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
5220 (evaluate_subexp_standard): Update.
5222 2021-03-08 Tom Tromey <tom@tromey.com>
5224 * expop.h (class add_operation): New.
5225 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
5226 (evaluate_subexp_standard): Update.
5228 2021-03-08 Tom Tromey <tom@tromey.com>
5230 * expop.h (class concat_operation): New.
5231 * eval.c (eval_op_concat): No longer static. Remove "op"
5233 (evaluate_subexp_standard): Update.
5235 2021-03-08 Tom Tromey <tom@tromey.com>
5237 * expop.h (class structop_member_operation)
5238 (class structop_mptr_operation): New.
5239 * eval.c (eval_op_member): No longer static.
5241 2021-03-08 Tom Tromey <tom@tromey.com>
5243 * expop.h (class structop_ptr_operation): New.
5244 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
5247 2021-03-08 Tom Tromey <tom@tromey.com>
5249 * expop.h (class structop_base_operation)
5250 (class structop_operation): New.
5251 * eval.c (eval_op_structop_struct): No longer static.
5253 2021-03-08 Tom Tromey <tom@tromey.com>
5255 * expop.h (class complex_operation): New.
5257 2021-03-08 Tom Tromey <tom@tromey.com>
5259 * eval.c (eval_op_objc_selector): No longer static.
5260 * c-exp.h (class objc_selector_operation): New.
5262 2021-03-08 Tom Tromey <tom@tromey.com>
5264 * eval.c: Include c-exp.h.
5265 * c-exp.h (class objc_nsstring_operation): New.
5267 2021-03-08 Tom Tromey <tom@tromey.com>
5269 * c-lang.c (c_string_operation::evaluate): New method.
5270 * c-exp.h: New file.
5272 2021-03-08 Tom Tromey <tom@tromey.com>
5274 * expop.h (class ternop_cond_operation): New.
5275 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
5277 2021-03-08 Tom Tromey <tom@tromey.com>
5279 * expop.h (class ternop_slice_operation): New.
5280 * eval.c (eval_op_ternop): No longer static.
5282 2021-03-08 Tom Tromey <tom@tromey.com>
5284 * expop.h (class string_operation): New.
5285 * eval.c (eval_op_string): No longer static.
5287 2021-03-08 Tom Tromey <tom@tromey.com>
5289 * expop.h (class internalvar_operation): New.
5290 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
5292 2021-03-08 Tom Tromey <tom@tromey.com>
5294 * expop.h (class bool_operation): New.
5296 2021-03-08 Tom Tromey <tom@tromey.com>
5298 * expop.h (class register_operation): New.
5299 * eval.c (eval_op_register): No longer static.
5300 * ax-gdb.c (register_operation::do_generate_ax): New method.
5302 2021-03-08 Tom Tromey <tom@tromey.com>
5304 * expop.h (class last_operation): New.
5306 2021-03-08 Tom Tromey <tom@tromey.com>
5308 * expop.h (class func_static_var_operation): New.
5309 * eval.c (eval_op_func_static_var): No longer static.
5311 2021-03-08 Tom Tromey <tom@tromey.com>
5313 * expop.h (class var_entry_value_operation): New.
5314 * eval.c (eval_op_var_entry_value): No longer static.
5316 2021-03-08 Tom Tromey <tom@tromey.com>
5318 * expression.h (class operation) <set_outermost>: New method.
5319 * expop.h (class var_msym_value_operation): New.
5320 * eval.c (eval_op_var_msym_value): No longer static.
5321 (var_msym_value_operation::evaluate_for_address)
5322 (var_msym_value_operation::evaluate_for_sizeof)
5323 (var_msym_value_operation::evaluate_for_cast): New methods.
5324 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5327 2021-03-08 Tom Tromey <tom@tromey.com>
5329 * expop.h (class long_const_operation): New.
5330 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5332 2021-03-08 Tom Tromey <tom@tromey.com>
5334 * expop.h (class scope_operation): New.
5335 * eval.c (eval_op_scope): No longer static.
5336 (scope_operation::evaluate_for_address): New method.
5337 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5339 2021-03-08 Tom Tromey <tom@tromey.com>
5341 * expprint.c (float_const_operation::dump): New method.
5342 * expop.h (float_data): New typedef.
5343 (class float_const_operation): New.
5345 2021-03-08 Tom Tromey <tom@tromey.com>
5347 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5348 * ax-gdb.c (gen_expr_binop): New function.
5349 (gen_expr_structop): Likewise.
5351 2021-03-08 Tom Tromey <tom@tromey.com>
5353 * expprint.c (expr::dump_for_expression): New functions.
5354 * expop.h (dump_for_expression): New overloads.
5355 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5358 2021-03-08 Tom Tromey <tom@tromey.com>
5360 * expression.h (expr::operation): New class.
5361 (expr::make_operation): New function.
5362 (expr::operation_up): New typedef.
5363 * expop.h: New file.
5364 * eval.c (operation::evaluate_for_cast)
5365 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5367 * ax-gdb.c (operation::generate_ax): New method.
5369 2021-03-08 Tom Tromey <tom@tromey.com>
5371 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5372 (gen_expr_binop_rest): New overload.
5374 2021-03-08 Tom Tromey <tom@tromey.com>
5376 * eval.c (eval_multi_subscript): New function.
5377 (evaluate_subexp_standard): Use it.
5379 2021-03-08 Tom Tromey <tom@tromey.com>
5381 * ada-lang.c (ada_binop_exp): New function.
5382 (ada_evaluate_subexp): Use it.
5384 2021-03-08 Tom Tromey <tom@tromey.com>
5386 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5388 (ada_evaluate_subexp): Use it.
5390 2021-03-08 Tom Tromey <tom@tromey.com>
5392 * ada-lang.c (ada_binop_minmax): New function.
5393 (ada_evaluate_subexp): Use it.
5395 2021-03-08 Tom Tromey <tom@tromey.com>
5397 * ada-lang.c (ada_unop_atr): New function.
5398 (ada_evaluate_subexp): Use it.
5400 2021-03-08 Tom Tromey <tom@tromey.com>
5402 * ada-lang.c (ada_binop_in_bounds): New function.
5403 (ada_evaluate_subexp): Use it.
5405 2021-03-08 Tom Tromey <tom@tromey.com>
5407 * ada-lang.c (ada_ternop_slice): New function.
5408 (ada_evaluate_subexp): Use it.
5410 2021-03-08 Tom Tromey <tom@tromey.com>
5412 * ada-lang.c (ada_equal_binop): New function.
5413 (ada_evaluate_subexp): Use it.
5415 2021-03-08 Tom Tromey <tom@tromey.com>
5417 * ada-lang.c (ada_mult_binop): New function.
5418 (ada_evaluate_subexp): Use it.
5420 2021-03-08 Tom Tromey <tom@tromey.com>
5422 * ada-lang.c (ada_abs): New function.
5423 (ada_evaluate_subexp): Use it.
5425 2021-03-08 Tom Tromey <tom@tromey.com>
5427 * ada-lang.c (ada_atr_size): New function.
5428 (ada_evaluate_subexp): Use it.
5430 2021-03-08 Tom Tromey <tom@tromey.com>
5432 * ada-lang.c (ada_atr_tag): New function.
5433 (ada_evaluate_subexp): Use it.
5435 2021-03-08 Tom Tromey <tom@tromey.com>
5437 * ada-lang.c (ada_unop_in_range): New function.
5438 (ada_evaluate_subexp): Use it.
5440 2021-03-08 Tom Tromey <tom@tromey.com>
5442 * ada-lang.c (ada_unop_neg): New function.
5443 (ada_evaluate_subexp): Use it.
5445 2021-03-08 Tom Tromey <tom@tromey.com>
5447 * ada-lang.c (eval_ternop_in_range): New function.
5448 (ada_evaluate_subexp): Use it.
5450 2021-03-08 Tom Tromey <tom@tromey.com>
5452 * opencl-lang.c (eval_opencl_assign): New function.
5453 (evaluate_subexp_opencl): Use it.
5455 2021-03-08 Tom Tromey <tom@tromey.com>
5457 * eval.c (eval_op_objc_msgcall): New function.
5458 (evaluate_subexp_standard): Use it.
5460 2021-03-08 Tom Tromey <tom@tromey.com>
5462 * eval.c (eval_binop_assign_modify): New function.
5463 (evaluate_subexp_standard): Use it.
5465 2021-03-08 Tom Tromey <tom@tromey.com>
5467 * m2-lang.c (eval_op_m2_subscript): New function.
5468 (evaluate_subexp_modula2): Use it.
5470 2021-03-08 Tom Tromey <tom@tromey.com>
5472 * m2-lang.c (eval_op_m2_high): New function.
5473 (evaluate_subexp_modula2): Use it.
5475 2021-03-08 Tom Tromey <tom@tromey.com>
5477 * eval.c (evaluate_subexp_for_address_base): New function.
5478 (evaluate_subexp_for_address): Use it.
5479 (evaluate_subexp_for_sizeof_base): New function.
5480 (evaluate_subexp_for_sizeof): Use it.
5482 2021-03-08 Tom Tromey <tom@tromey.com>
5484 * rust-lang.c (eval_op_rust_structop): New function.
5485 (rust_evaluate_subexp): Use it.
5487 2021-03-08 Tom Tromey <tom@tromey.com>
5489 * rust-lang.c (eval_op_rust_struct_anon): New function.
5490 (rust_evaluate_subexp): Use it.
5492 2021-03-08 Tom Tromey <tom@tromey.com>
5494 * rust-lang.c (eval_op_rust_array): New function.
5495 (rust_evaluate_subexp): Use it.
5497 2021-03-08 Tom Tromey <tom@tromey.com>
5499 * rust-lang.c (eval_op_rust_complement): New function.
5500 (rust_evaluate_subexp): Use it.
5502 2021-03-08 Tom Tromey <tom@tromey.com>
5504 * rust-lang.c (eval_op_rust_ind): New function.
5505 (rust_evaluate_subexp): Use it.
5507 2021-03-08 Tom Tromey <tom@tromey.com>
5509 * rust-lang.c (rust_subscript): Change parameters.
5510 (rust_evaluate_subexp): Update.
5512 2021-03-08 Tom Tromey <tom@tromey.com>
5514 * rust-lang.c (rust_range): Change parameters.
5515 (rust_evaluate_subexp): Update.
5517 2021-03-08 Tom Tromey <tom@tromey.com>
5519 * f-lang.c (eval_op_f_allocated): New function.
5520 (evaluate_subexp_f): Use it.
5522 2021-03-08 Tom Tromey <tom@tromey.com>
5524 * f-lang.c (fortran_require_array): New function.
5525 (evaluate_subexp_f): Use it.
5527 2021-03-08 Tom Tromey <tom@tromey.com>
5529 * f-lang.c (eval_op_f_kind): New function.
5530 (evaluate_subexp_f): Use it.
5532 2021-03-08 Tom Tromey <tom@tromey.com>
5534 * f-lang.c (eval_op_f_cmplx): New function.
5535 (evaluate_subexp_f): Use it.
5537 2021-03-08 Tom Tromey <tom@tromey.com>
5539 * f-lang.c (eval_op_f_modulo): New function.
5540 (evaluate_subexp_f): Use it.
5542 2021-03-08 Tom Tromey <tom@tromey.com>
5544 * f-lang.c (eval_op_f_floor): New function.
5545 (evaluate_subexp_f): Use it.
5547 2021-03-08 Tom Tromey <tom@tromey.com>
5549 * f-lang.c (eval_op_f_ceil): New function.
5550 (evaluate_subexp_f): Use it.
5552 2021-03-08 Tom Tromey <tom@tromey.com>
5554 * f-lang.c (eval_op_f_mod): New function.
5555 (evaluate_subexp_f): Use it.
5557 2021-03-08 Tom Tromey <tom@tromey.com>
5559 * f-lang.c (eval_op_f_abs): New function.
5560 (evaluate_subexp_f): Use it.
5562 2021-03-08 Tom Tromey <tom@tromey.com>
5564 * eval.c (eval_op_type): New function.
5565 (evaluate_subexp_standard): Use it.
5567 2021-03-08 Tom Tromey <tom@tromey.com>
5569 * eval.c (eval_op_postdec): New function.
5570 (evaluate_subexp_standard): Use it.
5572 2021-03-08 Tom Tromey <tom@tromey.com>
5574 * eval.c (eval_op_postinc): New function.
5575 (evaluate_subexp_standard): Use it.
5577 2021-03-08 Tom Tromey <tom@tromey.com>
5579 * eval.c (eval_op_predec): New file.
5580 (evaluate_subexp_standard): Use it.
5582 2021-03-08 Tom Tromey <tom@tromey.com>
5584 * eval.c (eval_op_preinc): New function.
5585 (evaluate_subexp_standard): Use it.
5587 2021-03-08 Tom Tromey <tom@tromey.com>
5589 * eval.c (eval_op_memval): New function.
5590 (evaluate_subexp_standard): Use it.
5592 2021-03-08 Tom Tromey <tom@tromey.com>
5594 * eval.c (eval_op_alignof): New function.
5595 (evaluate_subexp_standard): Use it.
5597 2021-03-08 Tom Tromey <tom@tromey.com>
5599 * eval.c (eval_op_ind): New function.
5600 (evaluate_subexp_standard): Use it.
5602 2021-03-08 Tom Tromey <tom@tromey.com>
5604 * eval.c (eval_op_lognot): New function.
5605 (evaluate_subexp_standard): Use it.
5607 2021-03-08 Tom Tromey <tom@tromey.com>
5609 * eval.c (eval_op_complement): New function.
5610 (evaluate_subexp_standard): Use it.
5612 2021-03-08 Tom Tromey <tom@tromey.com>
5614 * eval.c (eval_op_neg): New function.
5615 (evaluate_subexp_standard): Use it.
5617 2021-03-08 Tom Tromey <tom@tromey.com>
5619 * eval.c (eval_op_plus): New function.
5620 (evaluate_subexp_standard): Use it.
5622 2021-03-08 Tom Tromey <tom@tromey.com>
5624 * eval.c (eval_op_repeat): New function.
5625 (evaluate_subexp_standard): Use it.
5627 2021-03-08 Tom Tromey <tom@tromey.com>
5629 * eval.c (eval_op_leq): New function.
5630 (evaluate_subexp_standard): Use it.
5632 2021-03-08 Tom Tromey <tom@tromey.com>
5634 * eval.c (eval_op_geq): New function.
5635 (evaluate_subexp_standard): Use it.
5637 2021-03-08 Tom Tromey <tom@tromey.com>
5639 * eval.c (eval_op_gtr): New function.
5640 (evaluate_subexp_standard): Use it.
5642 2021-03-08 Tom Tromey <tom@tromey.com>
5644 * eval.c (eval_op_less): New function.
5645 (evaluate_subexp_standard): Use it.
5647 2021-03-08 Tom Tromey <tom@tromey.com>
5649 * eval.c (eval_op_notequal): New function.
5650 (evaluate_subexp_standard): Use it.
5652 2021-03-08 Tom Tromey <tom@tromey.com>
5654 * eval.c (eval_op_equal): New function.
5655 (evaluate_subexp_standard): Use it.
5657 2021-03-08 Tom Tromey <tom@tromey.com>
5659 * eval.c (eval_op_subscript): New function.
5660 (evaluate_subexp_standard): Use it.
5662 2021-03-08 Tom Tromey <tom@tromey.com>
5664 * eval.c (eval_op_binary): New function.
5665 (evaluate_subexp_standard): Use it.
5667 2021-03-08 Tom Tromey <tom@tromey.com>
5669 * eval.c (eval_op_sub): New function.
5670 (evaluate_subexp_standard): Use it.
5672 2021-03-08 Tom Tromey <tom@tromey.com>
5674 * eval.c (eval_op_add): New function.
5675 (evaluate_subexp_standard): Use it.
5677 2021-03-08 Tom Tromey <tom@tromey.com>
5679 * eval.c (eval_op_member): New function.
5680 (evaluate_subexp_standard): Use it.
5682 2021-03-08 Tom Tromey <tom@tromey.com>
5684 * eval.c (eval_op_structop_ptr): New function.
5685 (evaluate_subexp_standard): Use it.
5687 2021-03-08 Tom Tromey <tom@tromey.com>
5689 * eval.c (eval_op_structop_struct): New function.
5690 (evaluate_subexp_standard): Use it.
5692 2021-03-08 Tom Tromey <tom@tromey.com>
5694 * eval.c (eval_op_ternop): New function.
5695 (evaluate_subexp_standard): Use it.
5697 2021-03-08 Tom Tromey <tom@tromey.com>
5699 * eval.c (eval_op_concat): New function.
5700 (evaluate_subexp_standard): Use it.
5702 2021-03-08 Tom Tromey <tom@tromey.com>
5704 * eval.c (eval_op_objc_selector): New function.
5705 (evaluate_subexp_standard): Use it.
5707 2021-03-08 Tom Tromey <tom@tromey.com>
5709 * eval.c (eval_op_string): New function.
5710 (evaluate_subexp_standard): Use it.
5712 2021-03-08 Tom Tromey <tom@tromey.com>
5714 * eval.c (eval_op_register): New function.
5715 (evaluate_subexp_standard): Use it.
5717 2021-03-08 Tom Tromey <tom@tromey.com>
5719 * eval.c (eval_op_func_static_var): New function.
5720 (evaluate_subexp_standard): Use it.
5722 2021-03-08 Tom Tromey <tom@tromey.com>
5724 * eval.c (eval_op_var_msym_value): New function.
5725 (evaluate_subexp_standard): Use it.
5727 2021-03-08 Tom Tromey <tom@tromey.com>
5729 * eval.c (eval_op_var_entry_value): New function.
5730 (evaluate_subexp_standard): Use it.
5732 2021-03-08 Tom Tromey <tom@tromey.com>
5734 * eval.c (eval_op_scope): New function.
5735 (evaluate_subexp_standard): Use it.
5737 2021-03-06 Chernov Sergey <klen_s@mail.ru>
5740 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5742 2021-03-06 Tom Tromey <tom@tromey.com>
5744 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5745 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5746 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5747 (locate_dwz_sections, dwz_search_other_debugdirs)
5748 (dwarf2_get_dwz_file): Move to dwz.c.
5749 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5751 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5752 (dwarf2_get_dwz_file): Move from read.c.
5754 2021-03-06 Tom Tromey <tom@tromey.com>
5756 * debuginfod-support.h: Include scoped_fd.h.
5758 2021-03-06 Tom Tromey <tom@tromey.com>
5760 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5761 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5762 (get_abbrev_section_for_cu, read_attribute_value)
5763 (get_debug_line_section): Update.
5764 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5766 2021-03-06 Tom Tromey <tom@tromey.com>
5768 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5770 * dwarf2/read.c (section_is_p): Remove.
5771 (dwarf2_per_bfd::locate_sections)
5772 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5773 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5774 (dwarf2_locate_common_dwp_sections)
5775 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5778 2021-03-06 Tom Tromey <tom@tromey.com>
5780 * xcoffread.c: Include sect-names.h.
5781 * symfile.h (struct dwarf2_section_names, struct
5782 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5783 * dwarf2/sect-names.h: New file, from symfile.h.
5784 * dwarf2/read.c: Include sect-names.h.
5786 2021-03-06 Tom Tromey <tom@tromey.com>
5788 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5789 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5790 (abbrev_table::read): Update.
5791 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5792 (struct abbrev_info): Reformat.
5793 <attrs>: Now an array.
5794 (struct abbrev_table) <alloc_abbrev>: Remove.
5796 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5798 * ctfread.c (ctf_psymtab_add_enums): New function.
5799 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5801 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5803 * ctfread.c (read_func_kind_type): Set up function arguments.
5805 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5806 Andrew Burgess <andrew.burgess@embecosm.com>
5808 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5810 (riscv_csrset): New static global.
5811 (riscv_update_csrmap): New function.
5812 (riscv_iterate_over_regset_sections): Process CSRs.
5814 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5816 * riscv-tdep.c (riscv_feature_name_csr): Define.
5817 (riscv_feature_name_cpu): Define.
5818 (riscv_feature_name_fpu): Define.
5819 (riscv_feature_name_virtual): Define.
5820 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5821 (riscv_freg_feature): Use riscv_feature_name_fpu.
5822 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5823 (riscv_csr_feature): Use riscv_feature_name_csr.
5824 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5826 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5827 Craig Blackmore <craig.blackmore@embecosm.com>
5829 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5830 (ALLDEPFILES): Add riscv-none-tdep.c.
5831 * configure: Regenerate.
5832 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5834 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5835 * elf-none-tdep.c: New file.
5836 * elf-none-tdep.h: New file.
5837 * riscv-none-tdep.c: New file.
5839 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5840 Andrew Burgess <andrew.burgess@embecosm.com>
5842 * corelow.c: Add 'xml-tdesc.h' include.
5843 (core_target::read_description): Load the target description from
5844 the core file when possible.
5845 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5847 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5848 (gcore_elf_make_tdesc_note): New function.
5849 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5850 * linux-tdep.c (linux_make_corefile_notes): Add target description
5853 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5855 * Makefile.in (SFILES): Add gcore-elf.c.
5856 (HFILES_NO_SRCDIR): Add gcore-elf.h
5857 * configure: Regenerate.
5858 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5860 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5861 (struct fbsd_collect_regset_section_cb_data): Delete.
5862 (fbsd_collect_regset_section_cb): Delete.
5863 (fbsd_collect_thread_registers): Delete.
5864 (struct fbsd_corefile_thread_data): Delete.
5865 (fbsd_corefile_thread): Delete.
5866 (fbsd_make_corefile_notes): Call
5867 gcore_elf_build_thread_register_notes instead of the now deleted
5869 * gcore-elf.c: New file, the content was moved here from
5870 linux-tdep.c, functions were renamed and given minor cleanup.
5871 * gcore-elf.h: New file.
5872 * gcore.c (gcore_find_signalled_thread): Moved here from
5873 linux-tdep.c and given a new name. Minor cleanups.
5874 * gcore.h (gcore_find_signalled_thread): Declare.
5875 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5876 (struct linux_collect_regset_section_cb_data): Delete.
5877 (linux_collect_regset_section_cb): Delete.
5878 (linux_collect_thread_registers): Delete.
5879 (linux_corefile_thread): Call
5880 gcore_elf_build_thread_register_notes.
5881 (find_signalled_thread): Delete.
5882 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5884 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5887 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5888 process_stratum_target parameter,
5889 sparc_store_inferior_registers): update callers.
5890 * sparc-nat.c (sparc_fetch_inferior_registers,
5891 sparc_store_inferior_registers): Add process_stratum_target
5892 parameter. Switch current thread before calling
5893 sparc_supply_gregset / sparc_collect_rwindow.
5894 (sparc_store_inferior_registers): Likewise.
5895 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5896 (sparc32obsd_collect_uthread): Likewise.
5897 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5899 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5900 sparc64obsd_supply_uthread): Add assertion.
5902 2021-03-04 Tom Tromey <tromey@adacore.com>
5904 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5905 (aux_add_nonlocal_symbols): Update.
5906 (ada_add_block_symbols): Change "found_sym" to bool.
5908 2021-03-03 Tom Tromey <tromey@adacore.com>
5910 * ada-lang.c (ada_resolve_function): Update comment.
5911 (is_nonfunction, add_symbols_from_enclosing_procs)
5912 (remove_extra_symbols): Likewise.
5913 (struct match_data): Add constructor, initializers.
5914 (add_nonlocal_symbols): Remove memset.
5915 (aux_add_nonlocal_symbols): Update comment.
5916 (ada_add_block_renamings, add_nonlocal_symbols)
5917 (ada_add_all_symbols): Likewise.
5918 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5920 2021-03-02 Tom Tromey <tromey@adacore.com>
5922 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5923 (cast_to_gnat_encoded_fixed_point_type): Remove.
5924 (ada_value_cast, ada_evaluate_subexp): Update.
5925 (gnat_encoded_fixed_point_type_info)
5926 (ada_is_gnat_encoded_fixed_point_type)
5927 (gnat_encoded_fixed_point_delta)
5928 (gnat_encoded_fixed_point_scaling_factor): Remove.
5929 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5930 (gnat_encoded_fixed_point_delta)
5931 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5932 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5933 (ada_print_type): Update.
5934 * ada-valprint.c (ada_value_print_num): Update.
5935 * dwarf2/read.c (ada_get_gnat_encoded_number)
5936 (ada_get_gnat_encoded_ratio): New functions.
5937 (finish_fixed_point_type): Use them. Add parameters.
5938 (GNAT_FIXED_POINT_SUFFIX): New define.
5939 (gnat_encoded_fixed_point_type_info): New function.
5940 (read_base_type): Handle gnat encodings.
5942 2021-03-02 Tom Tromey <tromey@adacore.com>
5944 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5945 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5947 (GROW_VECT): Remove.
5948 (grow_vect): Remove.
5950 2021-03-02 Tom Tromey <tromey@adacore.com>
5952 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5953 * ada-lang.c (resolve_subexp): Update.
5954 (ada_resolve_function): Accept a vector.
5955 (is_nonfunction, add_defn_to_vec)
5956 (add_symbols_from_enclosing_procs): Likewise.
5957 (num_defns_collected, defns_collected): Remove.
5958 (remove_extra_symbols): Return a vector.
5959 (remove_irrelevant_renamings): Return void.
5960 (ada_add_local_symbols): Accept a vector.
5961 (struct match_data) <obstackp>: Remove.
5962 <resultp>: New member.
5963 (aux_add_nonlocal_symbols): Update.
5964 (ada_add_block_renamings, add_nonlocal_symbols)
5965 (ada_add_all_symbols): Accept a vector.
5966 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5968 (ada_lookup_symbol): Update.
5969 (ada_add_block_symbols): Accept a vector.
5970 (get_var_value, iterate_over_symbols): Update.
5971 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5974 2021-03-02 Tom Tromey <tromey@adacore.com>
5976 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5978 2021-03-02 Tom Tromey <tromey@adacore.com>
5980 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5983 (ada_pspace_data): Remove destructor.
5984 <sym_cache>: Now a unique_ptr.
5985 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5986 (ada_get_symbol_cache): Use 'new'.
5987 (ada_clear_symbol_cache): Rewrite.
5989 2021-03-02 Tom Tromey <tromey@adacore.com>
5991 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5994 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5997 * source.c (add_path): Skip empty dirnames.
5999 2021-02-25 Kevin Buettner <kevinb@redhat.com>
6001 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
6002 include order for <sys/ptrace.h> and <asm/ptrace.h>.
6004 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
6007 * target.c (target_mourn_inferior): Only compare pids in
6008 target_mourn_inferior.
6010 2021-02-25 Jan Matyas <jmatyas@codasip.com>
6013 * remote.c (remote_target::start_remote): Ensure the single
6014 thread, automatically added for remote targets without the
6015 concept of threading, is initially in set to the "resumed"
6017 * remote.c (remote_target::add_current_inferior_and_thread):
6018 Add return value - return the main thread.
6020 2021-02-25 Jan Vrany <jan.vrany@labware.com>
6022 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
6023 (mi_tsv_created): Likewise.
6024 (mi_tsv_deleted): Likewise.
6026 2021-02-25 Tom de Vries <tdevries@suse.de>
6029 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
6030 section_kind for &dwo_file->sections.info.
6032 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6035 * f-lang.c (fortran_argument_convert): Delete declaration.
6036 (fortran_prepare_argument): New function.
6037 (evaluate_subexp_f): Move logic to new function
6038 fortran_prepare_argument.
6040 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6042 * f-exp.y (f77_keywords): Add 'associated'.
6043 * f-lang.c (fortran_associated): New function.
6044 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
6045 (operator_length_f): Likewise.
6046 (print_unop_or_binop_subexp_f): New function.
6047 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
6048 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
6049 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
6050 (operator_check_f): Likewise.
6051 * std-operator.def: Add FORTRAN_ASSOCIATED.
6053 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
6055 * f-exp.y (fortran_operators): Add ".xor.".
6057 2021-02-24 Tom de Vries <tdevries@suse.de>
6060 * dwarf2/attribute.c (attribute::form_is_signed): New function
6062 * dwarf2/attribute.h (attribute::as_signed): ... here.
6063 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
6064 (attribute::form_is_signed): Declare.
6065 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
6066 for DW_AT_decl_file.
6068 2021-02-24 Kevin Buettner <kevinb@redhat.com>
6070 * nat/aarch64-linux-hw-point.c: Add comment regarding include
6071 order for <sys/ptrace.h> and <asm/ptrace.h>.
6073 2021-02-24 Kevin Buettner <kevinb@redhat.com>
6075 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
6078 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6080 * exec.c (set_section_command): Move variable declarations into
6081 the function body, and use std::string instead of a fixed size
6084 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6086 * exec.c (exec_target::get_section_table): Delete member function.
6087 (section_table_read_available_memory): Use current_top_target, not
6088 just the exec_ops target.
6089 * target-delegates.c: Regenerate.
6090 * target.c (default_get_section_table): New function.
6091 * target.h (target_ops::get_section_table): Change default
6092 behaviour to call default_get_section_table.
6093 (default_get_section_table): Declare.
6095 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6097 * exec.c (exec_target::close): Call new clear_target_sections
6099 (program_space::add_target_sections): Update name of member
6101 (program_space::add_target_sections): Update name of member
6103 (program_space::remove_target_sections): Likewise.
6104 (exec_one_fork): Use new target_sections member function.
6105 (exec_target::get_section_table): Likewise.
6106 (exec_target::files_info): Likewise.
6107 (set_section_command): Likewise.
6108 (exec_set_section_address): Likewise.
6109 (exec_target::has_memory): Use new target_sections member
6111 * progspace.h (program_space::clear_target_sections): New member
6113 (program_space::target_sections): Rename member variable to
6114 m_target_sections, replace with a new member function.
6115 (program_space::m_target_sections): New member variable.
6116 * solib-dsbt.c (scan_dyntag): Use new member function.
6117 * solib-svr4.c (scan_dyntag): Likewise.
6119 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6121 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
6123 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
6124 (section_table_read_available_memory): Make local const.
6125 (exec_target::xfer_partial): Make local const.
6126 (print_section_info): Make parameter const.
6127 * gdb/exec.h (print_section_info): Likewise.
6128 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
6130 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
6132 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
6134 * gdb/s390-tdep.c (s390_load): Likewise.
6135 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
6136 * gdb/solib-svr4.c (scan_dyntag): Likewise.
6137 * gdb/target-debug.h (target_debug_print_target_section_table_p):
6139 (target_debug_print_const_target_section_table_p): ...this.
6140 * gdb/target-delegates.c: Regenerate.
6141 * gdb/target.c (target_get_section_table): Make return type const.
6142 (target_section_by_addr): Likewise. Also make some locals const.
6143 (memory_xfer_partial_1): Make some locals const.
6144 * gdb/target.h (struct target_ops) <get_section_table>: Make
6146 (target_section_by_addr): Likewise.
6147 (target_get_section_table): Likewise.
6149 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6151 * NEWS: Mention new 'maint info target-sections' command.
6152 * maint.c (maintenance_info_target_sections): New function.
6153 (_initialize_maint_cmds): Register new command.
6155 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6157 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
6158 (riscv_features_from_bfd): ...this. Change parameter type to
6159 'bfd*', and update as required.
6160 (riscv_find_default_target_description): Update call to
6161 riscv_features_from_bfd. Select a default xlen based on
6163 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
6165 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6167 * eval.c (evaluate_subexp_standard): Call value_ind for points to
6168 dynamic types in UNOP_IND.
6170 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6173 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
6175 (~dwarf2_queue_guard): Clear queue.
6176 (queue_comp_unit): Assert that queue is
6178 (process_queue): Adjust.
6179 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
6181 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6184 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
6185 to decide whether or not to enqueue it for expansion.
6186 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
6187 after calling maybe_queue_comp_unit.
6189 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6191 * linux-nat.c (linux_nat_filter_event): Return void.
6193 2021-02-22 Tom Tromey <tromey@adacore.com>
6195 * solib-svr4.c (enable_break): Update.
6196 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
6198 (target_bfd_reopen): Change parameter type.
6199 * bfd-target.h (target_bfd_reopen): Change parameter type.
6201 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6203 * thread.c (add_thread_silent): Add assert.
6204 (find_thread_ptid): Add assert.
6206 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6209 * inf-ptrace.c (struct target_unpusher): Move to target.h.
6210 (target_unpush_up): Likewise.
6211 * procfs.c (procfs_target::attach): Push target early. Use
6212 target_unpush_up to unpush target in case of error.
6213 * target.h (struct target_unpusher): Move here.
6214 (target_unpush_up): Likewise.
6216 2021-02-19 Kevin Buettner <kevinb@redhat.com>
6218 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
6219 (which in turn includes <gnulib/config.h>) before include
6222 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
6225 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
6226 (decode_j_type_insn): Likewise.
6227 (decode_cj_type_insn): Likewise.
6228 (decode_b_type_insn): Likewise.
6231 2021-02-18 Tom Tromey <tom@tromey.com>
6233 * expression.h (struct expression) <evaluate>: Declare method.
6234 * eval.c (evaluate_subexp): Simplify.
6235 (expression::evaluate): New method.
6236 (evaluate_expression, evaluate_type): Use expression::evaluate.
6238 2021-02-17 Kevin Buettner <kevinb@redhat.com>
6240 * ada-lang.c (ada_fold_name): Check for non-empty string prior
6242 (ada_lookup_name_info): Likewise.
6244 2021-02-13 Mike Frysinger <vapier@gentoo.org>
6246 * aclocal.m4: Regenerate.
6248 2021-02-12 Tom de Vries <tdevries@suse.de>
6251 * linux-nat.c (lin_thread_get_thread_signals): Remove.
6252 (lin_thread_signals): New static var.
6253 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6255 * linux-nat.h (lin_thread_get_thread_signals): Remove.
6256 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6258 * linux-thread-db.c (check_thread_signals): Use
6259 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
6261 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
6263 * f-exp.y (f77_keywords): Add allocated.
6264 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
6265 (operator_length_f): Likewise.
6266 (print_subexp_f): Likewise.
6267 (dump_subexp_body_f): Likewise.
6268 (operator_check_f): Likewise.
6269 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
6271 2021-02-11 Tom de Vries <tdevries@suse.de>
6274 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
6275 Return true for DW_FORM_strx.
6277 2021-02-11 Tom Tromey <tromey@adacore.com>
6280 * parse.c (write_exp_symbol_reference): Write sym.block.
6282 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6284 * NEWS: Mention changes to 'maint info sections'.
6285 * maint.c (match_substring): Return a bool, fix whitespace issue.
6286 (struct single_bfd_flag_info): New struct.
6287 (bfd_flag_info): New static global.
6288 (match_bfd_flags): Return a bool, use bfd_flag_info.
6289 (print_bfd_flags): Use bfd_flag_info.
6290 (maint_print_section_info): Delete trailing whitespace.
6291 (struct maint_info_sections_opts): New struct.
6292 (maint_info_sections_option_defs): New static global.
6293 (maint_info_sections_completer): New function.
6294 (maintenance_info_sections): Use option parsing mechanism.
6295 (_initialize_maint_cmds): Update command help text for 'maint info
6296 sections' and register a command completer.
6298 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6300 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
6301 functionality merged into...
6302 (maint_print_all_sections): ...this new function.
6303 (maintenance_info_sections): Make use of maint_print_all_sections,
6304 allow all objects to be printed even where there's no executable.
6306 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6308 * breakpoint.c (resolve_sal_pc): Make use of
6309 bound_minimal_symbol::obj_section.
6310 * maint.c (maintenance_translate_address): Likewise.
6311 * minsyms.c (minimal_symbol_upper_bound): Likewise.
6312 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
6314 * printcmd.c (info_address_command): Make use of
6315 bound_minimal_symbol::obj_section.
6317 2021-02-11 Alan Modra <amodra@gmail.com>
6319 * arm-symbian-tdep.c: Delete.
6320 * NEWS: Mention arm-symbian removal.
6321 * Makefile.in: Remove arm-symbian-tdep entries.
6322 * configure.tgt: Remove arm*-*-symbianelf*.
6323 * doc/gdb.texinfo: Remove mention of SymbianOS.
6324 * osabi.c (gdb_osabi_names): Remove "Symbian".
6325 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6326 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6327 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6329 * testsuite/gdb.base/dup-sect.exp: Likewise.
6330 * testsuite/gdb.base/long_long.exp: Likewise.
6331 * testsuite/gdb.base/solib-weak.exp: Likewise.
6332 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6333 * testsuite/gdb.python/py-section-script.exp: Likewise.
6334 * testsuite/lib/dwarf.exp: Likewise.
6335 * testsuite/lib/gdb.exp: Likewise.
6337 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6339 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6340 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6341 (one_or_two_args): New pattern.
6342 (f77_keywords): Add lbound and ubound.
6343 * f-lang.c (fortran_bounds_all_dims): New function.
6344 (fortran_bounds_for_dimension): New function.
6345 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6346 (operator_length_f): Likewise.
6347 (print_subexp_f): Likewise.
6348 (dump_subexp_body_f): Likewise.
6349 (operator_check_f): Likewise.
6350 * std-operator.def (FORTRAN_LBOUND): Define.
6351 (FORTRAN_UBOUND): Define.
6353 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6355 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6356 and set_section_index member functions where appropriate.
6357 * coffread.c (coff_symtab_read): Likewise.
6358 (process_coff_symbol): Likewise.
6359 * ctfread.c (set_symbol_address): Likewise.
6360 * dwarf2/read.c (add_partial_symbol): Likewise.
6361 (var_decode_location): Likewise.
6362 * language.c: Likewise.
6363 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6364 (compact_minimal_symbols): Likewise.
6365 (minimal_symbol_upper_bound): Likewise.
6366 * objfiles.c (relocate_one_symbol): Likewise.
6367 * psympriv.h (partial_symbol::obj_section): Likewise.
6368 (partial_symbol::address): Likewise.
6369 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6370 * stabsread.c (scan_file_globals): Likewise.
6371 * symmisc.c (dump_msymbols): Likewise.
6372 * symtab.c (general_symbol_info::obj_section): Likewise.
6373 (fixup_section): Likewise.
6374 (get_msymbol_address): Likewise.
6375 * symtab.h (general_symbol_info::section): Rename to...
6376 (general_symbol_info::m_section): ...this.
6377 (general_symbol_info::set_section_index): New member function.
6378 (general_symbol_info::section_index): Likewise.
6379 (SYMBOL_SECTION): Delete.
6380 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6381 set_section_index member functions where appropriate.
6382 (MSYMBOL_SECTION): Delete.
6383 (symbol::symbol): Update to initialize 'm_section'.
6384 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6385 (process_xcoff_symbol): Likewise.
6387 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6389 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6390 MSYMBOL_OBJ_SECTION.
6391 * findvar.c (language_defn::read_var_value): Likewise.
6392 * infcmd.c (jump_command): Likewise.
6393 * linespec.c (minsym_found): Likewise.
6394 * maint.c (maintenance_translate_address): Likewise.
6395 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6396 (minimal_symbol_upper_bound): Likewise.
6397 * parse.c (find_minsym_type_and_address): Likewise.
6398 (operator_check_standard): Likewise.
6399 * printcmd.c (info_address_command): Likewise.
6400 * symmisc.c (dump_msymbols): Likewise.
6401 (print_symbol): Likewise.
6402 * symtab.c (general_symbol_info::obj_section): Define new
6404 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6405 (find_pc_sect_compunit_symtab): Likewise.
6406 (find_function_start_sal): Likewise.
6407 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6408 MSYMBOL_OBJ_SECTION.
6409 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6411 (SYMBOL_OBJ_SECTION): Delete.
6412 (MSYMBOL_OBJ_SECTION): Delete.
6414 2021-02-09 Tom Tromey <tom@tromey.com>
6416 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6418 2021-02-09 Tom de Vries <tdevries@suse.de>
6421 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6422 construct an array type. Add assert to ensure that element_type is
6425 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6427 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6428 (gcore_collect_regset_section_cb): Delete.
6429 (gcore_collect_thread_registers): Delete.
6430 (gcore_build_thread_register_notes): Delete.
6431 (gcore_find_signalled_thread): Delete.
6432 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6433 'gdbarch' and 'thread_info' declarations.
6434 (gcore_build_thread_register_notes): Delete declaration.
6435 (gcore_find_signalled_thread): Likewise.
6436 * fbsd-tdep.c: Remove 'gcore.h' include.
6437 (struct fbsd_collect_regset_section_cb_data): New struct.
6438 (fbsd_collect_regset_section_cb): New function.
6439 (fbsd_collect_thread_registers): New function.
6440 (struct fbsd_corefile_thread_data): New struct.
6441 (fbsd_corefile_thread): New function.
6442 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6443 * linux-tdep.c: Remove 'gcore.h' include.
6444 (struct linux_collect_regset_section_cb_data): New struct.
6445 (linux_collect_regset_section_cb): New function.
6446 (linux_collect_thread_registers): New function.
6447 (linux_corefile_thread): Call Linux specific code.
6448 (find_signalled_thread): New function.
6449 (linux_make_corefile_notes): Call find_signalled_thread.
6451 2021-02-09 Tom Tromey <tromey@adacore.com>
6453 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6455 * value.c (value_contents_copy_raw): Now static.
6456 * value.h (value_contents_copy_raw): Don't declare.
6458 2021-02-09 Tom Tromey <tromey@adacore.com>
6460 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6463 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
6466 * arc-linux-tdep.c (handle_atomic_sequence): New.
6467 (arc_linux_software_single_step): Call handle_atomic_sequence().
6469 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6471 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6473 (REQUIRE_WINDOW): Call is_valid member function.
6474 (REQUIRE_WINDOW_FOR_SETTER): New define.
6475 (gdbpy_tui_is_valid): Call is_valid member function.
6476 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6477 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6479 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6480 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6483 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6485 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6486 for the title is not nullptr.
6488 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6490 * tui-layout.c (saved_tui_windows): Delete.
6491 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6492 call new get_windows member function instead.
6493 (tui_get_window_by_name): Check in tui_windows.
6494 (tui_layout_window::apply): Don't add to tui_windows.
6495 * tui-layout.h (tui_layout_base::get_windows): New member function.
6496 (tui_layout_window::get_windows): Likewise.
6497 (tui_layout_split::get_windows): Likewise.
6499 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6501 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6502 of the window objects.
6504 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6506 * python/python.c (gdbpy_print_stack): Reformat an error message.
6508 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6510 * tui/tui-interp.c (tui_command_line_handler): New function.
6511 (tui_interp::resume): Register tui_command_line_handler as the
6513 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6515 (tui_getc_1): Delete handling of '\n' and '\r'.
6516 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6518 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6520 * tui/tui-regs.c (tui_data_window::display_registers_from):
6521 Mark invisible register sub windows.
6522 (tui_data_window::check_register_values): Ignore invisible
6523 register sub windows.
6525 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6527 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6528 n_spaces with a negative value.
6530 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6532 * tui/tui-regs.c (tui_data_window::display_registers_from):
6533 Add refresh_window call.
6535 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6537 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6539 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6541 * symmisc.c (std_in, std_out, std_err): Remove.
6542 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6544 2021-02-05 Tom de Vries <tdevries@suse.de>
6546 PR breakpoints/27330
6547 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6548 glibc object file has debug info.
6550 2021-02-05 Tom de Vries <tdevries@suse.de>
6553 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6555 2021-02-05 Tom de Vries <tdevries@suse.de>
6557 PR breakpoints/27313
6558 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6561 2021-02-05 Tom Tromey <tom@tromey.com>
6563 * compile/compile-c-support.c (get_compile_context)
6564 (c_get_compile_context, cplus_get_compile_context): Change return
6566 * language.c (language_defn::get_compile_instance): New method.
6567 * language.h (language_defn::get_compile_instance): Change return
6568 type. No longer inline.
6569 * c-lang.c (c_language::get_compile_instance): Change return type.
6570 (cplus_language::get_compile_instance): Change return type.
6571 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6573 * compile/compile.c (compile_to_object): Update.
6575 2021-02-05 Tom Tromey <tom@tromey.com>
6577 * parser-defs.h (write_exp_symbol_reference): Declare.
6578 * parse.c (write_exp_symbol_reference): New function.
6579 * p-exp.y (variable): Use write_exp_symbol_reference.
6580 * m2-exp.y (variable): Use write_exp_symbol_reference.
6581 * f-exp.y (variable): Use write_exp_symbol_reference.
6582 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6583 * c-exp.y (variable): Use write_exp_symbol_reference.
6585 2021-02-05 Tom de Vries <tdevries@suse.de>
6588 * valarith.c (complex_binop): Throw an error if complex type can't
6591 2021-02-05 Tom de Vries <tdevries@suse.de>
6594 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6597 2021-02-05 Tom de Vries <tdevries@suse.de>
6599 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6601 2021-02-04 Mike Frysinger <vapier@gentoo.org>
6603 * configure.tgt (riscv*-*-*): Set gdb_sim.
6605 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6607 * target.c (target_is_non_stop_p): Return bool.
6608 * target.h (target_is_non_stop_p): Return bool.
6610 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6612 * record-full.c (record_full_async_inferior_event_handler):
6613 Don't clear async event handler.
6614 (record_full_base_target::wait): Clear async event handler at
6617 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6619 * record-btrace.c (record_btrace_handle_async_inferior_event):
6620 Don't clear async event handler.
6621 (record_btrace_target::wait): Clear async event handler at
6624 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6626 * remote.c (remote_target::wait): Clear async event handler at
6627 beginning, mark if needed at the end.
6628 (remote_async_inferior_event_handler): Don't set or clear async
6631 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6633 * async-event.h (async_event_handler_func): Add documentation.
6634 * async-event.c (check_async_event_handlers): Don't clear
6635 async_event_handler ready flag.
6636 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6638 * record-btrace.c (record_btrace_handle_async_inferior_event):
6640 * record-full.c (record_full_async_inferior_event_handler):
6642 * remote-notif.c (remote_async_get_pending_events_handler):
6644 * remote.c (remote_async_inferior_event_handler): Likewise.
6646 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6648 * infrun.c (handle_inferior_event): Move stop_soon variable to
6651 2021-02-03 Pedro Alves <pedro@palves.net>
6653 * infcmd.c (detach_command): Hold strong reference to target, and
6654 if all-stop on entry, restart threads on exit.
6655 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6656 (restart_stepped_thread): ... this new function. Also handle
6658 (restart_after_all_stop_detach): New function.
6659 * infrun.h (restart_after_all_stop_detach): Declare.
6661 2021-02-03 Pedro Alves <pedro@palves.net>
6663 * infrun.c (struct step_over_info): Initialize fields.
6664 (prepare_for_detach): Handle ongoing in-line step over.
6666 2021-02-03 Pedro Alves <pedro@palves.net>
6668 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6670 * remote.c (remote_target::remote_detach_1): ... and here ...
6671 * target.c (target_detach): ... instead of here.
6672 * target.h (target_ops::detach): Add comment.
6674 2021-02-03 Pedro Alves <pedro@palves.net>
6676 * infrun.c (struct wait_one_event): Move higher up.
6677 (prepare_for_detach): Abort in-progress displaced steps instead of
6678 letting them complete.
6679 (handle_one): If the inferior is detaching, don't add the thread
6680 back to the global step-over chain.
6681 (restart_threads): Don't restart threads if detaching.
6682 (handle_signal_stop): Remove inferior::detaching reference.
6684 2021-02-03 Pedro Alves <pedro@palves.net>
6686 * infrun.c (prepare_for_detach): Don't release scoped_restore
6689 2021-02-03 Pedro Alves <pedro@palves.net>
6691 * infrun.c (handle_one): New function, factored out from ...
6692 (stop_all_threads): ... here.
6694 2021-02-03 Pedro Alves <pedro@palves.net>
6696 * remote.c (remote_notif_stop_ack): Don't error out on
6697 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6698 (remote_target::discard_pending_stop_replies): Don't delete
6699 in-flight notification; instead, clear its contents.
6701 2021-02-03 Pedro Alves <pedro@palves.net>
6703 * remote.c (extended_remote_target::attach): Set target async in
6704 the target-non-stop path too.
6706 2021-02-03 Pedro Alves <pedro@palves.net>
6709 * infrun.c (handle_signal_stop): Move main context_switch call
6710 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6712 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6714 * NEWS (Changed commands): Add entry for the behavior change of
6715 the inferior command.
6716 * inferior.c (inferior_command): When no argument is given to the
6717 inferior command, display info about the currently selected
6720 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6722 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6724 (read_attribute_reprocess): Adjust.
6726 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6728 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6729 <gnu_ranges_base>: ... this...
6730 <rnglists_base>: ... and this.
6731 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6732 <gnu_ranges_base>: ... this...
6733 <rnglists_base>: ... and this.
6734 (read_cutu_die_from_dwo): Adjust
6735 (dwarf2_get_pc_bounds): Adjust
6736 (dwarf2_record_block_ranges): Adjust.
6737 (read_full_die_1): Adjust
6738 (partial_die_info::read): Adjust.
6739 (read_rnglist_index): Adjust.
6741 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6744 * dwarf2/read.c (read_loclists_rnglists_header): Add
6745 header_offset parameter and use it.
6746 (read_loclist_index): Read header of the current contribution,
6747 not the one at the beginning of the section.
6748 (read_rnglist_index): Likewise.
6750 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6753 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6754 requires_reprocessing flag.
6755 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6757 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6758 and DW_FORM_loclistx.
6759 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6760 instead of set_address for DW_FORM_loclistx and
6763 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6765 * dwarf2/read.c (read_loclist_index): Remove bound check for
6767 (read_rnglist_index): Likewise.
6769 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6771 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6774 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6776 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6778 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6780 * dwarf2/read.c (read_loclist_index): Change complaints into
6783 2021-02-02 Tom de Vries <tdevries@suse.de>
6786 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6789 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6791 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6792 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6793 here from linux-tdep.c and given a new name. Minor cleanups.
6794 (gcore_collect_regset_section_cb): Likewise.
6795 (gcore_collect_thread_registers): Likewise.
6796 (gcore_build_thread_register_notes): Likewise.
6797 (gcore_find_signalled_thread): Likewise.
6798 * gcore.h (gcore_build_thread_register_notes): Declare.
6799 (gcore_find_signalled_thread): Declare.
6800 * fbsd-tdep.c: Add 'gcore.h' include.
6801 (struct fbsd_collect_regset_section_cb_data): Delete.
6802 (fbsd_collect_regset_section_cb): Delete.
6803 (fbsd_collect_thread_registers): Delete.
6804 (struct fbsd_corefile_thread_data): Delete.
6805 (fbsd_corefile_thread): Delete.
6806 (fbsd_make_corefile_notes): Call
6807 gcore_build_thread_register_notes instead of the now deleted
6809 * linux-tdep.c: Add 'gcore.h' include.
6810 (struct linux_collect_regset_section_cb_data): Delete.
6811 (linux_collect_regset_section_cb): Delete.
6812 (linux_collect_thread_registers): Delete.
6813 (linux_corefile_thread): Call
6814 gcore_build_thread_register_notes.
6815 (find_signalled_thread): Delete.
6816 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6818 2021-01-29 Tom de Vries <tdevries@suse.de>
6820 PR breakpoints/26063
6821 * infrun.c (process_event_stop_test): Reset
6822 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6825 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6827 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6828 assert. Extend the header comment.
6830 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6832 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6833 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6834 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6835 (tui_locator_win_info_ptr): Delete declaration.
6836 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6837 (tui_disasm_window::set_contents): Fetch state from tui_location
6839 (tui_get_begin_asm_address): Likewise.
6840 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6842 (get_locator_window): Delete.
6843 (initialize_known_windows): Treat locator window just like all the
6845 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6846 (tui_source_window::set_contents): Fetch state from tui_location
6848 (tui_source_window::showing_source_p): Likewise.
6849 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6851 (tui_locator_win_info_ptr): Delete.
6852 (tui_locator_window::make_status_line): Fetch state from
6853 tui_location global.
6854 (tui_locator_window::rerender): Remove check of 'handle',
6855 reindent function body.
6856 (tui_locator_window::set_locator_fullname): Delete.
6857 (tui_locator_window::set_locator_info): Delete.
6858 (tui_update_locator_fullname): Delete.
6859 (tui_show_frame_info): Likewise.
6860 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6861 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6862 tui/tui-location.h and renamed to
6863 tui_location_tracker::set_location.
6864 (tui_locator_window::set_locator_fullname): Moved to
6865 tui/tui-location.h and renamed to
6866 tui_location_tracker::set_fullname.
6867 (tui_locator_window::full_name): Delete.
6868 (tui_locator_window::proc_name): Delete.
6869 (tui_locator_window::line_no): Delete.
6870 (tui_locator_window::addr): Delete.
6871 (tui_locator_window::gdbarch): Delete.
6872 (tui_update_locator_fullname): Delete declaration.
6873 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6875 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6876 (tui_display_main): Call function on tui_location directly.
6877 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6878 * tui/tui-location.c: New file.
6879 * tui/tui-location.h: New file.
6881 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6883 * gdbtypes.h (get_type_arch): Rename to...
6884 (struct type) <arch>: ... this, update all users.
6886 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6888 * gdbtypes.h (struct type) <arch>: Rename to...
6889 <arch_owner>: ... this, update all users.
6890 <objfile>: Rename to...
6891 <objfile_owner>: ... this, update all users.
6893 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6895 * gdbcmd.h (execute_command_to_string): Update comment.
6896 * top.c (execute_command_to_string): Update header comment.
6898 2021-01-28 Tom de Vries <tdevries@suse.de>
6900 PR breakpoints/27205
6901 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6902 (create_longjmp_master_breakpoint_names): New function, factored out
6904 (create_longjmp_master_breakpoint): ... here. Only try to install
6905 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6906 breakpoint in libc.so failed.
6908 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6911 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6912 unique_ptr is released when the wrapped pointer is kept for later
6915 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6917 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6918 BLR and BR instructions.
6919 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6920 (enum aarch64_masks): New.
6922 2021-01-26 Tom Tromey <tromey@adacore.com>
6924 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6925 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6926 (windows_init_thread_list, windows_nat::handle_load_dll)
6927 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6928 (windows_nat_target::resume)
6929 (windows_nat_target::get_windows_debug_event)
6930 (windows_nat_target::interrupt, windows_xfer_memory)
6931 (windows_nat_target::close): Update.
6932 * nat/windows-nat.c (DEBUG_EVENTS): Use
6933 debug_prefixed_printf_cond.
6934 (matching_pending_stop, fetch_pending_stop)
6935 (continue_last_debug_event): Update.
6937 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6939 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6940 elfcore_write_file_note.
6942 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6944 * arc-tdep.c (arc_add_reggroups): New function.
6945 (arc_gdbarch_init): Call arc_add_reggroups.
6947 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6949 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6951 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6952 Simon Marchi <simon.marchi@polymtl.ca>
6953 Tom de Vries <tdevries@suse.de>
6955 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6958 2021-01-25 Tom Tromey <tromey@adacore.com>
6960 * dwarf2/read.c (get_mpz): New function.
6961 (get_dwarf2_rational_constant): Use it.
6963 2021-01-25 Tom Tromey <tromey@adacore.com>
6965 * ada-lang.c (resolve_subexp): Handle array context.
6967 2021-01-23 Tom Tromey <tom@tromey.com>
6970 * compile/compile-loc2c.c (note_register): New function.
6971 (pushf_register_address, pushf_register): Use it.
6973 2021-01-23 Tom Tromey <tom@tromey.com>
6975 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6976 Change type of "registers_used".
6977 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6978 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6979 (locexpr_generate_c_location, loclist_generate_c_location): Change
6980 type of "registers_used".
6981 * compile/compile.h (compile_dwarf_expr_to_c)
6982 (compile_dwarf_bounds_to_c): Update.
6983 * compile/compile-loc2c.c (pushf_register_address)
6984 (pushf_register, do_compile_dwarf_expr_to_c)
6985 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6986 of "registers_used".
6987 * compile/compile-c.h (generate_c_for_variable_locations):
6989 * compile/compile-c-symbols.c (generate_vla_size)
6990 (generate_c_for_for_one_variable): Change type of
6992 (generate_c_for_variable_locations): Return std::vector.
6993 * compile/compile-c-support.c (generate_register_struct): Change
6994 type of "registers_used".
6997 2021-01-23 Tom Tromey <tom@tromey.com>
6999 * compile/compile-internal.h (class compile_instance)
7000 <set_arguments>: Change return type.
7001 * compile/compile.c (compile_to_object): Remove call to reset.
7002 (compile_instance::set_arguments): Change return type.
7004 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
7006 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
7007 * gdbtypes.h (struct type) <set_owner>: Add asserts.
7009 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
7011 * Makefile.in (SELFTESTS_SRCS): Add
7012 unittests/gdb_tilde_expand-selftests.c.
7013 * unittests/gdb_tilde_expand-selftests.c: New file.
7015 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
7018 * NEWS: Mention new command.
7019 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
7020 (version_style): Define.
7021 (cli_style_option::cli_style_option): Add intensity parameter, and
7023 (_initialize_cli_style): Register version style set/show commands.
7024 * cli/cli-style.h (cli_style_option): Add intensity parameter.
7025 (version_style): Declare.
7026 * top.c (print_gdb_version): Use version_stype, and styled_string
7027 to print the GDB version string.
7029 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
7031 * utils.c (emit_style_escape): Only emit an escape sequence if the
7032 requested style is different than the current applied style.
7033 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
7034 current applied_style.
7035 (fputs_styled): Remove is_default check.
7036 (fputs_styled_unfiltered): Likewise.
7037 (vfprintf_styled_no_gdbfmt): Likewise.
7039 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7041 * remote.h (remote_debug_printf): New.
7042 (remote_debug_printf_nofunc): New.
7043 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
7044 * remote.c: Use above macros throughout file.
7046 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7048 * remote.h (remote_debug): Change to bool.
7049 * remote.c (remote_debug): Change to bool.
7050 (_initialize_remote): Adjust.
7052 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7054 * target.h (remote_debug): Move to...
7055 * remote.h (remote_debug): ... here.
7056 * top.c (remote_debug): Move to...
7057 * remote.c (remote_debug): ... here.
7058 * remote-sim.c: Include remote.h.
7060 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7062 * cli/cli-cmds.c (show_remote_debug): Remove.
7063 (show_remote_timeout): Remove.
7064 (_initialize_cli_cmds): Don't register commands.
7065 * remote.c (show_remote_debug): Move here.
7066 (show_remote_timeout): Move here.
7067 (_initialize_remote): Register commands.
7069 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7071 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
7072 type::objfile method instead.
7074 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
7076 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
7077 use the type::is_objfile_owned method.
7079 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
7081 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
7082 (TYPE_OWNER): Remove.
7083 (TYPE_OBJFILE): Adjust.
7084 (struct main_type) <flag_objfile_owned>: Rename to...
7085 <m_flag_objfile_owned>: ... this.
7086 <owner>: Rename to...
7087 <m_owner>: ... this.
7088 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
7090 (TYPE_ALLOC): Adjust.
7091 * gdbtypes.c (alloc_type): Adjust.
7092 (alloc_type_arch): Adjust.
7093 (alloc_type_copy): Adjust.
7094 (get_type_arch): Adjust.
7095 (smash_type): Adjust.
7096 (lookup_array_range_type): Adjust.
7097 (recursive_dump_type): Adjust.
7098 (copy_type_recursive): Adjust.
7099 * compile/compile-c-types.c (convert_func): Adjust.
7100 (convert_type_basic): Adjust.
7101 * compile/compile-cplus-types.c (compile_cplus_convert_func):
7104 (language_arch_info::type_and_symbol::alloc_type_symbol):
7107 2021-01-21 Luis Machado <luis.machado@linaro.org>
7109 * coffread.c (enter_linenos): Passing string to complaint.
7110 * valops.c (value_assign): Make array view.
7112 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7114 * auto-load.h (debug_auto_load): Move here.
7115 (auto_load_debug_printf): New.
7116 * auto-load.c: Use auto_load_debug_printf.
7117 (debug_auto_load): Move to header.
7118 * linux-thread-db.c (try_thread_db_load): Use
7119 auto_load_debug_printf.
7120 * main.c (captured_main_1): Likewise.
7122 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7124 * f-valprint.c (f77_array_offset_tbl): Remove.
7126 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7128 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
7130 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7132 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
7135 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
7138 * python/py-breakpoint.c (bppy_get_location): Handle
7139 bp_hardware_breakpoint.
7140 (bppy_init): Likewise.
7141 (gdbpy_breakpoint_created): Likewise.
7143 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7145 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
7147 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7149 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
7150 (_initialize_gdb_bfd): Adjust.
7152 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7155 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
7157 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7159 * dwarf2/read.c (follow_die_offset): Add logging.
7160 (dwarf2_per_objfile::age_comp_units): Add logging.
7162 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7164 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
7165 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
7166 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
7167 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
7168 * arm-tdep.c (struct frame_unwind): Make static.
7169 * auto-load.c (auto_load_safe_path_vec): Make static.
7170 * csky-tdep.c (csky_stub_unwind): Make static.
7171 * gdbarch.c (gdbarch_data_registry): Make static.
7172 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
7173 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
7174 * i386-tdep.c (i386_frame_setup_skip_insns,
7175 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
7177 * infrun.c (observer_mode): Make static.
7178 * linux-nat.c (sigchld_action): Make static.
7179 * linux-thread-db.c (thread_db_list): Make static.
7180 * maint-test-options.c (maintenance_test_options_list):
7181 * mep-tdep.c (mep_csr_registers): Make static.
7182 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
7183 (stats): Make static.
7184 * nat/linux-osdata.c (struct osdata_type): Make static.
7185 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
7186 * progspace.c (last_program_space_num): Make static.
7187 * python/py-param.c (struct parm_constant): Remove struct type
7189 (parm_constants): Make static.
7190 * python/py-record-btrace.c (btpy_list_methods): Make static.
7191 * python/py-record.c (recpy_gap_type): Make static.
7192 * record.c (record_goto_cmdlist): Make static.
7193 * regcache.c (regcache_descr_handle): Make static.
7194 * registry.h (DEFINE_REGISTRY): Make definition static.
7195 * symmisc.c (std_in, std_out, std_err): Make static.
7196 * top.c (previous_saved_command_line): Make static.
7197 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
7199 * unittests/command-def-selftests.c (nr_duplicates,
7200 nr_invalid_prefixcmd, lists): Make static.
7201 * unittests/observable-selftests.c (test_notification): Make
7203 * unittests/optional/assignment/1.cc (counter): Make static.
7204 * unittests/optional/assignment/2.cc (counter): Make static.
7205 * unittests/optional/assignment/3.cc (counter): Make static.
7206 * unittests/optional/assignment/4.cc (counter): Make static.
7207 * unittests/optional/assignment/5.cc (counter): Make static.
7208 * unittests/optional/assignment/6.cc (counter): Make static.
7210 2021-01-20 Joel Sherrill <joel@rtems.org>
7213 * remote.c (struct remote_thread_info) <resume_state>: Rename
7215 <get_resume_state>: ... this.
7216 (remote_target::resume): Adjust.
7217 (remote_target::commit_resume): Adjust.
7218 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
7220 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
7221 Tom Tromey <tom@tromey.com>
7223 * stap-probe.c (stap_parse_single_operand): Handle '!'
7225 (stap_parse_argument_conditionally): Likewise.
7226 Skip spaces after processing open-parenthesis sub-expression.
7227 (stap_parse_argument_1): Skip spaces after call to
7228 stap_parse_argument_conditionally.
7229 Handle case when right-side expression is a parenthesized
7231 Skip spaces after call to stap_parse_argument_1.
7233 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
7235 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
7237 2021-01-19 Luis Machado <luis.machado@linaro.org>
7239 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
7240 memory and save data.
7241 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
7242 (trad_frame_set_unknown, trad_frame_set_value_bytes)
7243 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7244 (trad_frame_value_bytes_p): Remove.
7245 (trad_frame_reset_saved_regs): Adjust documentation.
7246 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
7247 constructor and reset the state of the registers.
7248 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7249 (trad_frame_value_bytes_p, trad_frame_set_value)
7250 (trad_frame_set_realreg, trad_frame_set_addr)
7251 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
7252 (trad_frame_set_reg_realreg): Update to call member function.
7253 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
7254 (trad_frame_get_prev_register): Likewise.
7256 * aarch64-tdep.c (aarch64_analyze_prologue)
7257 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
7258 (aarch64_prologue_prev_register): Update to use member functions.
7259 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
7260 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
7261 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
7262 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
7263 (arm_make_epilogue_frame_cache): Likewise.
7264 * avr-tdep.c (avr_frame_unwind_cache)
7265 (avr_frame_prev_register): Likewise.
7266 * cris-tdep.c (cris_scan_prologue): Likewise.
7267 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
7268 * frv-tdep.c (frv_analyze_prologue): Likewise.
7269 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
7270 * lm32-tdep.c (lm32_frame_cache): Likewise.
7271 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
7272 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7273 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
7274 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
7275 (reset_saved_regs): Adjust to set realreg.
7276 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
7277 call member functions.
7278 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
7279 * s390-tdep.c (s390_prologue_frame_unwind_cache)
7280 (s390_backchain_frame_unwind_cache): Likewise.
7281 * score-tdep.c (score7_analyze_prologue)
7282 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
7283 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
7284 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
7285 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
7286 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
7287 * tilegx-tdep.c (tilegx_analyze_prologue)
7288 (tilegx_frame_cache): Likewise.
7289 * v850-tdep.c (v850_frame_cache): Likewise.
7290 * vax-tdep.c (vax_frame_cache): Likewise.
7292 2021-01-19 Luis Machado <luis.machado@linaro.org>
7294 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
7296 (put_frame_register_bytes): Likewise.
7297 Adjust documentation.
7298 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
7299 (safe_frame_unwind_memory): Likewise.
7300 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
7301 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
7303 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
7304 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
7305 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
7306 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
7307 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
7308 * dwarf2/loc.c (rw_pieced_value): Likewise.
7309 * hppa-tdep.c (hppa_frame_cache): Likewise.
7310 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
7311 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
7312 * i386-linux-tdep.c (i386_linux_sigtramp_start)
7313 (i386_linux_rt_sigtramp_start): Likewise.
7314 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
7315 * i386-tdep.c (i386_register_to_value): Likewise.
7316 * i387-tdep.c (i387_register_to_value): Likewise.
7317 * ia64-tdep.c (ia64_register_to_value): Likewise.
7318 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
7319 (m32r_linux_rt_sigtramp_start): Likewise.
7320 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
7321 * m68k-tdep.c (m68k_register_to_value): Likewise.
7322 * mips-tdep.c (mips_register_to_value)
7323 (mips_value_to_register): Likewise.
7324 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
7325 (ppcfbsd_sigtramp_frame_cache): Likewise.
7326 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7327 (ppcobsd_sigtramp_frame_cache): Likewise.
7328 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7329 (rs6000_register_to_value): Likewise.
7330 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7331 * tramp-frame.c (tramp_frame_start): Likewise.
7332 * valops.c (value_assign): Likewise.
7334 2021-01-19 Luis Machado <luis.machado@linaro.org>
7336 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7338 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7339 instead of buffer and size.
7340 (trad_frame_set_reg_value_bytes): Likewise.
7341 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7342 (trad_frame_set_value_bytes): Likewise.
7344 2021-01-18 Mike Frysinger <vapier@gentoo.org>
7346 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7348 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7350 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7351 (riscv_fbsd_gregset): Use riscv_supply_regset.
7352 (riscv_fbsd_fpregset): Likewise.
7353 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7354 (riscv_linux_fregset): Likewise.
7355 * riscv-tdep.c (riscv_supply_regset): Define new function.
7356 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7358 2021-01-18 Tom de Vries <tdevries@suse.de>
7361 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7363 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7366 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7368 * remote.c (class remote_target) <remote_hostio_send_command,
7369 remote_hostio_parse_result>: Constify parameter.
7370 (remote_hostio_parse_result): Likewise.
7371 (remote_target::remote_hostio_send_command): Adjust.
7372 (remote_target::remote_hostio_pread_vFile): Adjust.
7373 (remote_target::fileio_readlink): Adjust.
7374 (remote_target::fileio_fstat): Adjust.
7376 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7378 * remote.c (remote_target::start_remote): Move wait_status to
7381 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7383 * remote.c (class remote_target):
7384 <add_current_inferior_and_thread>: Constify parameter.
7385 (stop_reply_extract_thread): Likewise.
7386 (remote_target::get_current_thread): Likewise.
7387 (remote_target::add_current_inferior_and_thread): Likewise.
7389 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7391 * remote.c (class remote_target)
7392 <remote_unpack_thread_info_response,
7393 parse_threadlist_response>: Constify parameter and/or return
7394 value and or local variable.
7395 (stub_unpack_int): Likewise.
7396 (unpack_nibble): Likewise.
7397 (unpack_byte): Likewise.
7398 (unpack_int): Likewise.
7399 (unpack_string): Likewise.
7400 (unpack_threadid): Likewise.
7401 (remote_target::remote_unpack_thread_info_response): Likewise.
7402 (remote_target::parse_threadlist_response): Likewise.
7404 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7406 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7408 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
7410 * MAINTAINERS (Write After Approval): Add myself.
7412 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7414 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7415 because is_trivially_default_constructible was first implemented with
7418 2021-01-14 Tom de Vries <tdevries@suse.de>
7420 PR breakpoints/27151
7421 * objfiles.h (in_plt_section): Handle .plt.sec.
7423 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7427 (remote_target::select_thread_for_ambiguous_stop_reply): New
7429 (remote_target::process_stop_reply): Call
7430 select_thread_for_ambiguous_stop_reply.
7432 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7434 * record-btrace.c (class record_btrace_target): Remove.
7435 (record_btrace_target::commit_resume): Remove.
7436 * record-full.c (class record_full_target): Remove.
7437 (record_full_target::commit_resume): Remove.
7439 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7441 * remote.c (enum class resume_state): New.
7442 (struct resumed_pending_vcont_info): New.
7443 (struct remote_thread_info) <resume_state, set_not_resumed,
7444 set_resumed_pending_vcont, resumed_pending_vcont_info,
7445 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7447 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7448 (remote_target::remote_add_thread): Adjust.
7449 (remote_target::process_initial_stop_replies): Adjust.
7450 (remote_target::resume): Adjust.
7451 (remote_target::commit_resume): Rely on state in
7452 remote_thread_info and not on tp->executing.
7453 (remote_target::process_stop_reply): Adjust.
7455 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7457 * arc-tdep.h (arc_debug_printf): New.
7458 * arc-tdep.c: Use arc_debug_printf.
7459 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7460 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7461 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7463 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7465 * arc-tdep.h (arc_debug): Change type to bool.
7466 * arc-tdep.c (arc_debug): Change type to bool.
7467 (arc_analyze_prologue): Adjust.
7468 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7469 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7471 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7473 * auto-load.c (auto_load_objfile_script_1): Use bool.
7474 (execute_script_contents): Use bool.
7476 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7478 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7480 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7482 * extension-priv.h (struct extension_language_script_ops)
7483 <auto_load_enabled>: Return bool.
7484 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7486 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7488 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7490 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7491 move comment to header.
7492 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7494 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7495 move comment to header.
7497 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7499 * auto-load.h (file_is_auto_load_safe): Change return type to
7500 bool, move comment here.
7501 * auto-load.c (file_is_auto_load_safe): Change return type and
7502 advice_printed to bool. Move comment to header.
7504 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7506 * jit.c (jit_debug_printf): New, use throughout file.
7508 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7510 * infrun.c (normal_stop): Fix indentation.
7512 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7514 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7516 * symfile.h: ... here.
7517 * symfile.c: Update doc.
7519 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7521 * target.h (baud_rate, serial_parity): Move declarations...
7522 * serial.h: ... here.
7523 * main.c: Include serial.h.
7524 * serial.c (baud_rate, serial_parity): Update doc.
7526 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7528 * top.c (pre_init_ui_hook): Remove.
7530 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7532 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7533 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7534 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7535 * features/aarch64-fpu.xml: Add bfloat16 type.
7537 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7539 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7541 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7543 * f-exp.y (dot_ops): Rename to...
7544 (fortran_operators): ...this. Add a header comment. Add symbol
7546 (yylex): Update to use fortran_operators not dot_ops. Remove
7547 special handling for '**', this is now included in
7550 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7552 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7553 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7554 * aarch64-tdep.c: Use aarch64_debug_printf.
7556 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7558 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7561 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7563 * jit.c (jit_debug): Change type to bool.
7564 (_initialize_jit): Adjust.
7566 2021-01-09 Tom Tromey <tom@tromey.com>
7569 * compile/compile.c (compile_to_object): Avoid crash when
7570 osabi_triplet_regexp returns NULL.
7572 2021-01-09 Tom Tromey <tom@tromey.com>
7574 * tracepoint.h (class collection_list) <append_exp>: Take a
7576 * tracepoint.c (collection_list::append_exp): Take a std::string.
7577 (encode_actions_1): Update.
7579 2021-01-08 Tom Tromey <tromey@adacore.com>
7581 * parse.c (parse_expression): Add void_context_p parameter. Use
7582 parse_exp_in_context.
7583 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7585 (print_command, call_command): Update.
7586 * expression.h (parse_expression): Add void_context_p parameter.
7588 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7590 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7591 for internalvar components that have a dynamic location.
7593 2021-01-08 Tom de Vries <tdevries@suse.de>
7596 * breakpoint.c (create_exception_master_breakpoint_probe)
7597 (create_exception_master_breakpoint_hook): Factor out
7599 (create_exception_master_breakpoint): ... here. Only try to install
7600 the master exception breakpoint in objfile.debug using the
7601 _Unwind_DebugHook method, if the install using probes in objfile
7604 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7606 * f-lang.c (fortran_value_subarray): Call value_from_component.
7608 2021-01-07 Mike Frysinger <vapier@gentoo.org>
7610 * remote-sim.c: Include memory-map.h.
7611 (gdbsim_target): Define memory_map override.
7612 (gdbsim_target::memory_map): Define.
7614 2021-01-07 Tom Tromey <tromey@adacore.com>
7616 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7618 2021-01-07 Tom Tromey <tromey@adacore.com>
7620 * ada-lang.c (add_component_interval): Start loop using vector's
7623 2021-01-06 Tom Tromey <tromey@adacore.com>
7625 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7627 * valarith.c (fixed_point_binop): Handle multiplication
7628 and division specially.
7629 * valops.c (value_to_gdb_mpq): New function.
7630 (value_cast_to_fixed_point): Use it.
7632 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7634 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7635 Call wnoutrefresh instead of tui_win_info::refresh_window.
7637 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7639 * tui/tui-source.c (tui_source_window::show_line_number):
7640 Redraw second space after line number.
7642 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7645 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7646 Fix source pad size in prefresh.
7647 (tui_source_window_base::show_source_content): Grow source pad
7650 2021-01-04 Mike Frysinger <vapier@gentoo.org>
7652 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7653 (bfin_frame_align): Use align_down.
7655 2021-01-04 Tom de Vries <tdevries@suse.de>
7657 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7658 terminators that do not terminate anything.
7660 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7662 * debug.c (debug_print_depth): New.
7663 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7664 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7665 * infrun.c (start_step_over): Use
7666 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7667 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7668 INFRUN_SCOPED_DEBUG_START_END.
7669 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7671 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7673 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7675 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7677 * utils.c (vfprintf_unfiltered): Print timestamp only when
7678 previous debug output ended with a newline.
7680 2021-01-04 Luis Machado <luis.machado@linaro.org>
7682 Update all users of trad_frame_saved_reg to use the new member
7685 Remote all struct keywords from declarations of trad_frame_saved_reg
7686 types, except on forward declarations.
7688 * aarch64-tdep.c: Update.
7689 * alpha-mdebug-tdep.c: Update.
7690 * alpha-tdep.c: Update.
7691 * arc-tdep.c: Update.
7692 * arm-tdep.c: Update.
7693 * avr-tdep.c: Update.
7694 * cris-tdep.c: Update.
7695 * csky-tdep.c: Update.
7696 * frv-tdep.c: Update.
7697 * hppa-linux-tdep.c: Update.
7698 * hppa-tdep.c: Update.
7699 * hppa-tdep.h: Update.
7700 * lm32-tdep.c: Update.
7701 * m32r-linux-tdep.c: Update.
7702 * m32r-tdep.c: Update.
7703 * m68hc11-tdep.c: Update.
7704 * mips-tdep.c: Update.
7705 * moxie-tdep.c: Update.
7706 * riscv-tdep.c: Update.
7707 * rs6000-tdep.c: Update.
7708 * s390-linux-tdep.c: Update.
7709 * s390-tdep.c: Update.
7710 * score-tdep.c: Update.
7711 * sparc-netbsd-tdep.c: Update.
7712 * sparc-sol2-tdep.c: Update.
7713 * sparc64-fbsd-tdep.c: Update.
7714 * sparc64-netbsd-tdep.c: Update.
7715 * sparc64-obsd-tdep.c: Update.
7716 * sparc64-sol2-tdep.c: Update.
7717 * tilegx-tdep.c: Update.
7718 * v850-tdep.c: Update.
7719 * vax-tdep.c: Update.
7721 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7722 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7724 * trad-frame.c: Update.
7725 Remove TF_REG_* enum.
7726 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7727 a trivially-constructible struct.
7728 (trad_frame_reset_saved_regs): Adjust to use member function.
7729 (trad_frame_value_p): Likewise.
7730 (trad_frame_addr_p): Likewise.
7731 (trad_frame_realreg_p): Likewise.
7732 (trad_frame_value_bytes_p): Likewise.
7733 (trad_frame_set_value): Likewise.
7734 (trad_frame_set_realreg): Likewise.
7735 (trad_frame_set_addr): Likewise.
7736 (trad_frame_set_unknown): Likewise.
7737 (trad_frame_set_value_bytes): Likewise.
7738 (trad_frame_get_prev_register): Likewise.
7739 * trad-frame.h: Update.
7740 (trad_frame_saved_reg_kind): New enum.
7741 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7742 <m_kind, m_reg>: New member fields.
7743 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7744 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7745 <is_addr, is_unknown, is_value_bytes>: New member functions.
7747 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7749 * target-float.c: Fix typos.
7751 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
7753 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7755 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7757 * gdbarch.sh: Update copyright year range.
7759 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7761 Update copyright year range in copyright header of all GDB files.
7763 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7765 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7766 to the list of directories to update.
7768 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7770 * top.c (print_gdb_version): Update copyright year.
7772 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
7774 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
7776 For older changes see ChangeLog-2020.
7782 version-control: never