1 2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
5 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
8 * machoread.c (macho_symfile_offsets): Use
9 gdb_bfd_count_sections to allocate objfile::section_offsets.
11 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
13 * objfiles.h (struct obj_section): Move down.
14 <offset, set_offset, addr, endaddr>: New.
15 (obj_section_offset, obj_section_addr, obj_section_endaddr),
16 replace all users to use obj_section methods.
17 (struct objfile) <section_offset, set_section_offset>: New.
19 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
21 * objfiles.h (struct obj_section): Move down.
22 <offset, set_offset, addr, endaddr>: New.
23 (obj_section_offset, obj_section_addr, obj_section_endaddr),
24 replace all users to use obj_section methods.
25 (struct objfile) <section_offset, set_section_offset>: New.
27 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
31 2021-06-28 Luis Machado <luis.machado@linaro.org>
33 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
35 (aarch64_linux_set_memtags): Likewise.
36 (aarch64_linux_get_memtag): Likewise.
37 (aarch64_linux_report_signal_info): Likewise.
39 2021-06-28 Luis Machado <luis.machado@linaro.org>
41 * aarch64-linux-tdep.c
42 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
44 2021-06-28 Luis Machado <luis.machado@linaro.org>
46 * aarch64-linux-tdep.c
47 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
49 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
50 8 and update comments.
52 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
54 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
56 * gdbarch.h: Re-generate.
57 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
58 * arch-utils.c (gdbarch_info_init): Remove.
60 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
62 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
63 (gdbarch_find_by_info): Remove print.
64 * gdbarch.c, gdbarch.h: Re-generate.
66 2021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
68 * remote.c (remote_target::start_remote): Set 'starting_up' using
69 boolean values instead of integers.
71 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
73 * guile/scm-param.c (struct param_smob) <set_command,
74 show_command>: Remove.
76 (pascm_is_valid): Adjust.
77 (add_setshow_generic): Use return values of add_setshow
78 functions, return a set_show_commands.
79 (gdbscm_register_parameter_x): Adjust.
81 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
83 * command.h (add_setshow_enum_cmd): Remove context parameter.
84 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
86 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
89 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
91 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
94 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
96 * cli/cli-decode.h (struct cmd_list_element) <set_context,
98 <context>: Rename to...
99 <m_context>: ... this.
100 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
101 * command.h (set_cmd_context, get_cmd_context): Remove, use
102 cmd_list_element::set_context and cmd_list_element::context
105 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
107 * NEWS: Mention changes to 'info sources'.
108 * symtab.c (info_sources_filter::print): Delete.
109 (struct output_source_filename_data) <print_header>: Delete
110 declaration. <printed_filename_p>: New member function.
111 (output_source_filename_data::print_header): Delete.
112 (info_sources_worker): Update group-by-objfile style output to
113 make it CLI suitable, simplify non-group-by-objfile now this is
114 only used from the MI.
115 (info_sources_command): Make group-by-objfile be the default for
116 CLI info sources command.
117 * symtab.h (struct info_sources_filter) <print>: Delete.
119 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
121 * NEWS: Mention additions to -file-list-exec-source-files.
122 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
123 --group-by-objfile option.
124 * symtab.c (isrc_flag_option_def): Rename to...
125 (isrc_match_flag_option_def): ...this.
126 (info_sources_option_defs): Rename to...
127 (info_sources_match_option_defs): ...this, and update to rename of
128 isrc_flag_option_def.
129 (struct filename_grouping_opts): New struct.
130 (isrc_grouping_flag_option_def): New type.
131 (info_sources_grouping_option_defs): New static global.
132 (make_info_sources_options_def_group): Update to return two option
134 (info_sources_command_completer): Update for changes to
135 make_info_sources_options_def_group.
136 (info_sources_worker): Add extra parameter, use this to display
137 alternative output format.
138 (info_sources_command): Pass extra parameter to
140 (_initialize_symtab): Update for changes to
141 make_info_sources_options_def_group.
142 * symtab.h (info_sources_worker): Add extra parameter.
144 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
146 * NEWS: Mention additions to -file-list-exec-source-files.
147 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
148 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
149 options, and make use of info_sources_worker.
150 * symtab.c (struct info_sources_filter): Moved to symtab.h.
151 (info_sources_filter::print): Take uiout argument, produce output
153 (struct output_source_filename_data)
154 <output_source_filename_data>: Take uiout argument, store into
155 m_uiout. <output>: Rewrite comment, add additional arguments to
156 declaration. <operator()>: Send more arguments to
157 output. <m_uiout>: New member variable.
158 (output_source_filename_data::output): Take extra arguments,
159 produce output through m_uiout, and structure for MI.
160 (output_source_filename_data::print_header): Produce output
162 (info_sources_worker): New function, the implementation is taken
163 from info_sources_command, but modified so produce output through
165 (info_sources_command): The second half of this function has gone
166 to become info_sources_worker.
167 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
168 extra parameter to print member function.
169 (info_sources_worker): Declare.
171 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
173 * symtab.c (struct info_sources_filter): New.
174 (info_sources_filter::info_sources_filter): New function.
175 (info_sources_filter::matches): New function.
176 (info_sources_filter::print): New function.
177 (struct filename_partial_match_opts): Moved to later in the file
178 and update the comment.
179 (struct output_source_filename_data)
180 <output_source_filename_data>: New constructor. <regexp>: Delete,
181 this is now in info_sources_filter. <c_regexp>: Delete, this is
182 now in info_sources_filter. <reset_output>: New member function.
183 <filename_seen_cache>: Rename to m_filename_seen_cache, change
184 from being a pointer, to being an actual object. <first>: Rename
185 to m_first. <print_header>: New member function. <partial_match>:
187 (output_source_filename_data::output): Update now
188 m_filename_seen_cache is no longer a pointer, and for other member
189 variable name changes. Add a header comment.
190 (print_info_sources_header): Renamed to...
191 (output_source_filename_data::print_header): ...this. Update now
192 it's a member function and to take account of member variable
194 (info_sources_command): Add a header comment, delete stack local
195 filename_seen_cache, initialization of output_source_filename_data
196 is now done by the constructor. Call print_header member function
197 instead of print_info_sources_header, call reset_output member
198 function instead of manually performing the reset.
200 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
202 * dwarf2/read.c (struct dwarf2_base_index_functions)
203 <has_unexpanded_symtabs>: Declare.
204 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
206 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
207 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
209 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
211 * quick-symbol.h (struct quick_symbol_functions)
212 <has_unexpanded_symtabs>: Declare.
213 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
216 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
218 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
219 setting prototyped flag.
221 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
223 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
224 an empty gdb::optional when calling value_struct_elt.
225 (desc_data): Likewise.
226 (desc_one_bound): Likewise.
227 * eval.c (structop_base_operation::evaluate_funcall): Pass
228 gdb::array_view, not a gdb::array_view* to value_struct_elt.
229 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
230 an empty gdb::optional when calling value_struct_elt.
231 (eval_op_structop_ptr): Likewise.
232 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
233 * guile/scm-value.c (gdbscm_value_field): Likewise.
234 * m2-lang.c (eval_op_m2_high): Likewise.
235 (eval_op_m2_subscript): Likewise.
236 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
237 * python/py-value.c (valpy_getitem): Likewise.
238 * rust-lang.c (rust_val_print_str): Likewise.
239 (rust_range): Likewise.
240 (rust_subscript): Likewise.
241 (eval_op_rust_structop): Likewise.
242 (rust_aggregate_operation::evaluate): Likewise.
243 * valarith.c (value_user_defined_op): Likewise.
244 * valops.c (search_struct_method): Change parameter type, update
245 function body accordingly, and update header comment.
246 (value_struct_elt): Change parameter type, update function body
248 * value.h (value_struct_elt): Update declaration.
250 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
253 * eval.c (structop_base_operation::evaluate_funcall): Pass
254 array_view instead of array to value_struct_elt.
255 * valarith.c (value_user_defined_op): Likewise.
256 * valops.c (typecmp): Change parameter type from array pointer to
257 array_view. Update header comment, and update body accordingly.
258 (search_struct_method): Likewise.
259 (value_struct_elt): Likewise.
260 * value.h (value_struct_elt): Update declaration.
262 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
265 * eval.c (structop_base_operation::evaluate_funcall): Add a
266 nullptr to the end of the args array, which should not be included
267 in the argument array_view. Pass all the arguments through to
269 * valops.c (search_struct_method): Update header comment.
270 (value_struct_elt): Likewise.
272 2021-06-25 Tom Tromey <tom@tromey.com>
274 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
277 2021-06-25 Tom Tromey <tom@tromey.com>
279 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
280 (scan_partial_symbols, partial_die_parent_scope)
281 (add_partial_symbol, add_partial_subprogram)
282 (compute_delayed_physnames, rust_union_quirks)
283 (process_full_comp_unit, process_full_type_unit)
284 (process_imported_unit_die, process_die, dw2_linkage_name)
285 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
286 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
287 (read_variable, dwarf2_get_subprogram_pc_bounds)
288 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
289 (dwarf2_attach_fn_fields_to_type)
290 (quirk_ada_thick_pointer_struct, read_structure_type)
291 (handle_struct_member_die, process_structure_scope)
292 (read_array_type, read_array_order, prototyped_function_p)
293 (read_subroutine_type, dwarf2_init_complex_target_type)
294 (read_base_type, read_subrange_type, read_unspecified_type)
295 (load_partial_dies, partial_die_info::fixup, set_cu_language)
296 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
297 (dwarf2_canonicalize_name, follow_die_offset)
298 (prepare_one_comp_unit): Update.
299 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
301 2021-06-25 Tom Tromey <tom@tromey.com>
303 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
304 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
305 set language_defn. Handle DW_LANG_OpenCL.
306 (prepare_one_comp_unit): Check producer and set language_defn.
308 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
310 * NEWS: Mention Python BP_CATCHPOINT feature.
311 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
312 (bppy_init): Likewise.
313 (gdbpy_breakpoint_created): Likewise.
315 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
317 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
319 (bpscm_want_scm_wrapper_p): Likewise.
320 (gdbscm_make_breakpoint): Likewise.
321 (breakpoint_integer_constants): Likewise.
323 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
325 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
326 for invalid breakpoint numbers, and unsupported breakpoint
329 2021-06-25 Tom Tromey <tom@tromey.com>
331 * dwarf2/index-write.c (struct addrmap_index_data): Add
333 <operator()>: Declare.
334 (addrmap_index_data::operator()): Rename from
335 add_address_entry_worker. Remove 'datap' parameter.
336 (write_address_map): Update.
337 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
338 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
340 (dump_psymtab_addrmap): Update.
341 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
343 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
344 (struct mutable_foreach_data): Remove.
345 (addrmap_mutable_foreach_worker): Update.
346 (addrmap_mutable_foreach): Remove 'data' parameter.
347 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
348 (addrmap_foreach): Remove 'data' parameter.
350 2021-06-25 Tom Tromey <tromey@adacore.com>
352 * python/py-type.c (typy_get_name): Decode an Ada type name.
354 2021-06-25 Tom Tromey <tromey@adacore.com>
356 * ada-lang.c (ada_decode): Add wrap parameter.
357 * ada-lang.h (ada_decode): Add wrap parameter.
359 2021-06-25 Luis Machado <luis.machado@linaro.org>
361 * corelow.c (core_target::core_target) Update to read target
364 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
366 * python/lib/gdb/__init__.py: Format.
368 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
370 * infrun.c (do_target_wait): Remove wait_ptid parameter.
371 (fetch_inferior_event): Adjust.
373 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
375 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
376 with name of chosen unwinder.
377 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
378 unwinder in debug message.
380 2021-06-22 Andreas Schwab <schwab@suse.de>
383 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
386 2021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
388 * breakpoint.c (insert_bp_location): If we catch a
389 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
392 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
394 * NEWS: Mention new target feature name.
395 * arch/riscv.c (riscv_create_target_description): GDB doesn't
396 currently create target descriptions containing vector registers.
397 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
399 <operator==>: Also compare vlen.
400 <hash>: Also include vlen.
401 * riscv-tdep.c (riscv_feature_name_vector): New static global.
402 (struct riscv_vector_feature): New struct.
403 (riscv_vector_feature): New static global.
404 (riscv_register_reggroup_p): Ensure vector registers are part of
405 the 'all' group, and part of the 'vector' group.
406 (riscv_dwarf_reg_to_regnum): Handle vector registers.
407 (riscv_gdbarch_init): Check vector register feature.
408 * riscv-tdep.h: Add vector registers to GDB's internal register
409 numbers, and to the DWARF register numbers.
411 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
413 * NEWS: Mention the two new methods.
414 * python/py-frame.c (frapy_level): New function.
415 (frame_object_methods): Register 'level' method.
416 * python/py-unwind.c (pending_framepy_level): New function.
417 (pending_frame_object_methods): Register 'level' method.
419 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
421 * python/py-inferior.c (infpy_get_connection_num): Call
422 gdb_py_object_from_longest instead of PyLong_FromLong directly.
424 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
426 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
427 saving user registers.
429 2021-06-19 Mike Frysinger <vapier@gentoo.org>
431 * acinclude.m4: Delete most m4_include's of ../config files.
432 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
433 * aclocal.m4: Regenerate.
434 * configure: Regenerate.
436 2021-06-17 Pedro Alves <pedro@palves.net>
438 * scoped_ignore_signal.h (scoped_ignore_signal): Add
439 ConsumePending template parameter.
440 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
441 sigtimedwait if ConsumePending is false.
442 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
443 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
444 <m_ignore_signal>: Initialize with ConsumePending=false.
446 2021-06-17 Pedro Alves <pedro@palves.net>
448 * Makefile.in (SELFTESTS_SRCS): Add
449 unittests/scoped_ignore_signal-selftests.c.
450 * unittests/scoped_ignore_signal-selftests.c: New.
452 2021-06-17 Pedro Alves <pedro@palves.net>
454 * gdbsupport/scoped_ignore_signal.h: New.
455 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
456 instead of <signal.h>. Don't include <unistd.h>.
457 (scoped_ignore_sigpipe): Remove.
458 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
459 instead of <signal.h>. Don't include <unistd.h>.
461 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
464 2021-06-17 Pedro Alves <pedro@palves.net>
466 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
467 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
468 * inflow.h: Delete, moved to gdbsupport/ under a different name.
469 * ser-unix.c: Don't include "inflow.h". Include
470 "gdbsupport/scoped_ignore_sigttou.h".
472 2021-06-17 Pedro Alves <pedro@palves.net>
474 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
476 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
478 (cur_seq, start_sequence): New.
479 (tui_getc_1): Pass key escape sequences for curses control keys to
480 readline. Handle mouse and ctrl-l here.
481 (tui_resize_all): Disable/reenable the keypad if the command
482 window has the focus too.
483 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
485 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
487 2021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
489 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
491 2021-06-16 Tom de Vries <tdevries@suse.de>
494 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
495 (dwarf2_cu::get_builder): Declare and move ...
496 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
497 of ancestor. Assert return value is non-null.
498 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
499 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
500 (dwarf2_per_objfile): Add sym_cu field.
502 2021-06-15 Alan Modra <amodra@gmail.com>
504 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
506 2021-06-14 Mike Frysinger <vapier@gentoo.org>
508 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
509 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
511 2021-06-14 John Baldwin <jhb@FreeBSD.org>
513 * configure.ac: Check for <sys/procctl.h>.
514 * config.in, configure: Regenerate.
515 * fbsd-nat.c: Include <sys/procctl.h> if present.
516 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
517 (fbsd_nat_target::create_inferior)
518 (fbsd_nat_target::supports_disable_randomization): New.
519 * fbsd-nat.h (fbsd_nat_target::create_inferior)
520 (fbsd_nat_target::supports_disable_randomization): New.
522 2021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
524 * compile/compile.c: Include missing header signal.h.
526 2021-06-12 John Baldwin <jhb@FreeBSD.org>
528 * remote.c (remote_new_objfile): Fix indentation.
530 2021-06-11 Kevin Buettner <kevinb@redhat.com>
532 * solib.c (libpthread_name_p): Match "libc" in addition
534 * linux-thread-db.c (libpthread_objfile_p): New function.
535 (libpthread_name_p): Adjust preexisting callers to use
536 libpthread_objfile_p().
538 2021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
540 * dwarf2/loc.h (struct call_site_stuff): Remove.
542 2021-06-11 Tom Tromey <tom@tromey.com>
545 * rust-parse.c (rust_parser::lex_identifier): Handle raw
547 (rust_lex_tests): Add raw identifier tests.
549 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
551 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
552 instead of '== None'.
553 (FrameVars): Use 'is not None' instead of '!= None'.
554 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
555 Use 'is None' instead of '== None' and 'is not None' instead of '!=
558 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
560 * inferior.h (class inferior) <in_initial_library_scan>: New.
561 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
562 * infrun.c (follow_fork_inferior): Likewise.
563 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
564 by try_thread_db_load_1
565 (thread_db_load): Return early if in_initial_library_scan is
567 * remote.c (remote_new_objfile): Return early if
568 in_initial_library_scan is set.
570 2021-06-07 Pedro Alves <pedro@palves.net>
572 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
574 * symtab.h (struct symbol): Add defaulted copy assignment
577 2021-06-07 Pedro Alves <pedro@palves.net>
579 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
580 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
581 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
584 2021-06-07 Pedro Alves <pedro@palves.net>
586 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
587 (nat_sigval_t): ... this and remove typedef of same name.
588 (struct nat_siginfo): Rename to ...
589 (nat_siginfo_t): ... this and remove typedef of same name.
590 (struct compat_sigval): Rename to ...
591 (compat_sigval_t): ... this and remove typedef of same name.
592 (struct compat_siginfo): Rename to ...
593 (compat_siginfo_t): ... this and remove typedef of same name.
594 (struct compat_x32_siginfo): Rename to ...
595 (compat_x32_siginfo_t): ... this and remove typedef of same name.
596 (amd64_linux_siginfo_fixup_common): Adjust.
598 2021-06-07 Pedro Alves <pedro@palves.net>
600 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
601 __attribute__ __aligned__ from the typedef to the struct.
603 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
606 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
607 type_align, and spot case where the alignment is unknown.
609 2021-06-07 Carl Love <cel@us.ibm.com>
611 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
612 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
613 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
614 ppc64_pcrel_linkage2_target): New functions.
615 (ppc64_standard_linkage9, ppc64_standard_linkage10,
616 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
617 instruction patterns.
618 (ppc64_standard_linkage9, ppc64_standard_linkage10,
619 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
620 in define MAX expression.
621 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
622 ppc64_standard_linkage10, ppc64_standard_linkage11,
623 ppc64_standard_linkage12.
624 * (ppc_insn_prefix_dform): New function.
626 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
629 * sparc-nat.c (sparc_fetch_inferior_registers): Set
630 inferior_ptid instead of using switch_to_thread.
631 (sparc_store_inferior_registers): Likewise.
633 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
635 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
636 (compile_to_object): Ignore SIGPIPE before calling the plugin.
638 2021-06-05 Tom Tromey <tom@tromey.com>
640 * data-directory/Makefile.in (Makefile): Use correct directory
643 2021-06-05 Tom Tromey <tom@tromey.com>
645 * data-directory/Makefile.in (Makefile): Rewrite.
647 2021-06-05 Tom Tromey <tromey@adacore.com>
649 * configure: Rebuild.
650 * configure.ac: Add ACX_NONCANONICAL_TARGET.
652 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
654 * NEWS: Document 'set disassembler-options' support for the ARC
656 * arc-tdep.c (arc_gdbarch_init): Set
657 'gdbarch_valid_disassembler_options'.
659 2021-06-04 Tom Tromey <tromey@adacore.com>
661 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
663 * dwarf2/loc.c (dwarf2_evaluate_property) <case
664 PROP_VARIABLE_NAME>: New case.
665 (compute_var_value): New function.
666 (sect_variable_value): Use compute_var_value.
667 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
668 (var_decl_name): New function.
669 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
670 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
672 (union dynamic_prop_data) <variable_name>: New member.
673 (struct dynamic_prop) <variable_name, set_variable_name>: New
676 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
678 * remote.c (remote_target)
679 <select_thread_for_ambiguous_stop_reply>: Add additional debug
682 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
684 * python/py-tui.c (class tui_py_window): Add click function.
685 (tui_py_window::click): Likewise.
687 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
689 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
690 * tui/tui-data.h (struct tui_win_info): Add click function.
691 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
692 (tui_deprep_terminal): Disable mouse events.
693 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
694 * tui/tui.c (tui_disable): Disable mouse events.
696 2021-06-03 Magne Hov <mhov@undo.io>
699 * eval.c (expression::evaluate): Check inferior_ptid.
701 2021-06-03 Pedro Alves <pedro@palves.net>
703 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
705 (Global Maintainers): Update my address.
706 (Write After Approval): Remove stale entry.
708 2021-06-03 John Baldwin <jhb@FreeBSD.org>
710 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
711 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
712 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
713 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
714 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
715 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
716 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
717 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
718 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
719 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
720 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
721 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
722 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
723 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
724 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
725 (fbsd_report_signal_info): New.
726 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
727 report_signal_info method.
729 2021-06-03 Magne Hov <mhov@undo.io>
731 * MAINTAINERS (Write After Approval): Add Magne Hov.
733 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
735 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
736 gdb.SYMBOL_LABEL_DOMAIN constant.
738 2021-06-01 John Baldwin <jhb@FreeBSD.org>
740 * infrun.c (handle_inferior_event): Only call
741 gdbarch_displaced_step_restore_all_in_ptid if
742 gdbarch_supports_displaced_stepping is true.
744 2021-06-01 Tom Tromey <tromey@adacore.com>
746 * Makefile.in (all-data-directory): Remove.
747 (data-directory/Makefile): Remove.
749 2021-06-01 Tom Tromey <tromey@adacore.com>
751 * configure: Rebuild.
752 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
754 2021-06-01 Tom Tromey <tromey@adacore.com>
756 * silent-rules.mk (ECHO_CC): New variable.
758 2021-06-01 Tom Tromey <tromey@adacore.com>
760 * Makefile.in (SUBDIRS): Add testsuite.
761 (all): Don't exclude testsuite.
763 2021-06-01 Tom Tromey <tromey@adacore.com>
765 * configure.ac: Copy some code from testsuite/configure.ac.
766 (enable_libctf): Subst this, not ENABLE_LIBCTF.
767 * configure: Rebuild.
769 2021-06-01 Tom de Vries <tdevries@suse.de>
772 * minsyms.c (msymbol_is_cold_clone): New function.
773 (msymbol_is_function): Use msymbol_is_cold_clone.
775 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
776 Andrew Burgess <andrew.burgess@embecosm.com>
779 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
780 (ALLDEPFILES): Add arm-none-tdep.c
781 * arm-none-tdep.c: New file.
782 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
784 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
785 Richard Bunt <richard.bunt@arm.com>
787 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
788 check for why the backtrace stopped.
790 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
792 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
794 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
795 signature parameter, update all callers.
796 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
799 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
801 * dwarf2/read.h (signatured_type_up): New, use where possible.
803 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
805 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
807 2021-05-30 Tom Tromey <tom@tromey.com>
809 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
811 (create_signatured_type_table_from_index)
812 (create_signatured_type_table_from_debug_names, add_type_unit)
813 (read_comp_units_from_section): Update.
815 2021-05-30 Tom Tromey <tom@tromey.com>
817 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
818 m_num_psymtabs>: Remove.
819 (resize_symtabs): Update.
820 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
821 (dwarf2_per_bfd::allocate_signatured_type): Update.
823 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
825 * Fix tab after space indentation issues throughout.
827 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
829 * Fix some indentation mistakes throughout.
831 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
833 * breakpoint.h (iterate_over_bp_locations): Remove. Update
834 users to use all_bp_locations.
835 (all_bp_locations): New.
836 * breakpoint.c (all_bp_locations): Make non-static.
837 (iterate_over_bp_locations): Remove.
839 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
841 * breakpoint.h (iterate_over_breakpoints): Remove. Update
842 callers to use all_breakpoints or all_breakpoints_safe.
843 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
844 all_breakpoints_safe): Move here.
845 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
847 (iterate_over_breakpoints): Remove.
848 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
850 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
852 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
854 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
856 * breakpoint.c (get_first_locp_gte_addr): Remove.
857 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
858 all_bp_locations_at_addr.
859 (struct bp_locations_at_addr_range): New.
860 (all_bp_locations_at_addr): New.
861 (bp_locations_compare_addrs): New.
863 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
865 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
867 (all_bp_locations): New.
869 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
871 * breakpoint.c (bp_locations): Change to std::vector, update all
873 (bp_locations_count): Remove.
874 (update_global_location_list): Change to work with indices
875 rather than bp_location**.
877 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
879 * breakpoint.h (bp_locations_range): New.
880 (struct breakpoint) <locations>: New. Use where possible.
882 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
884 * breakpoint.h (all_tracepoints): Remove.
885 (breakpoint_iterator): Move here.
886 (struct tracepoint_filter): New.
887 (tracepoint_iterator): New.
888 (tracepoint_range): New.
889 (all_tracepoints): New.
890 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
892 (breakpoint_iterator): Move to header.
893 (all_tracepoints): New.
894 * tracepoint.c (start_tracing): Adjust.
896 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
898 * breakpoint.c (breakpoint_safe_range): New.
899 (all_breakpoints_safe): New. Use instead of
900 ALL_BREAKPOINTS_SAFE where possible.
902 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
904 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
906 (breakpoint_iterator): New.
907 (breakpoint_range): New.
908 (all_breakpoints): New.
910 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
912 * python/py-tui.c (tui_py_window::output): Add full_window
914 (gdbpy_tui_write): Parse "full_window" argument.
916 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
918 * make-init-c: Add option to reverse function calls.
920 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
922 * Makefile.in (INIT_FILES_FILTER_OUT): New.
923 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
924 (stamp-init): Use make-init-c.
925 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
926 * silent-rules.mk (ECHO_INIT_C): Change.
927 * make-init-c: New file.
929 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
931 * command.h (add_alias_cmd): Accept target as
932 cmd_list_element. Update callers.
934 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
936 * command.h (add_info_alias): Accept target as
937 cmd_list_element. Update callers.
939 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
941 * command.h (add_com_alias): Accept target as
942 cmd_list_element. Update callers.
944 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
946 * python/py-param.c (add_setshow_generic): Use return values of
947 add_setshow functions.
949 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
951 * mi/mi-main.c (_initialize_mi_main):
952 * python/py-auto-load.c (gdbpy_initialize_auto_load):
953 * remote.c (_initialize_remote):
955 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
957 * command.h (set_show_commands): New.
958 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
959 add_setshow_boolean_cmd, add_setshow_filename_cmd,
960 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
961 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
962 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
963 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
964 Return set_show_commands. Adjust callers.
965 * cli/cli-decode.c (add_setshow_cmd_full): Return
966 set_show_commands, remove result parameters, adjust callers.
968 2021-05-27 Tom de Vries <tdevries@suse.de>
971 * dwarf2/read.c (process_psymtab_comp_unit):
973 2021-05-27 Tom de Vries <tdevries@suse.de>
975 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
978 2021-05-27 Tom de Vries <tdevries@suse.de>
981 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
982 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
983 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
984 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
986 (dwarf2_per_cu_data): Remove load_all_dies field.
988 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
990 * regcache.c (reg_buffer::reg_buffer): Default-initialize
993 2021-05-26 Tom Tromey <tom@tromey.com>
995 * dwarf2/read.c (allocate_type_unit_groups_table)
996 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
998 (free_line_header_voidp): Remove.
1000 (completion_tracker::completion_hash_entry::deleter): Remove.
1001 (completion_tracker::discard_completions): Use htab_delete_entry.
1002 * utils.h (htab_delete_entry): New template function.
1004 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
1006 * python/py-tui.c (tui_py_window::refresh_window):
1009 2021-05-23 Tom de Vries <tdevries@suse.de>
1012 * target.h (struct target_ops): Mention target_thread_architecture in
1013 read_description comment.
1014 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1015 pid to determine if process is 64-bit or 32-bit.
1016 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1018 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1019 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1020 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1021 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1022 Likewise, use pid to determine if kernel supports reading VFP
1025 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1027 * main.c (enum cmdarg_kind): Fix option type comments for
1028 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1030 2021-05-21 Tom de Vries <tdevries@suse.de>
1033 * contrib/cc-with-tweaks.sh: Handle -l.
1035 2021-05-21 Tom de Vries <tdevries@suse.de>
1038 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1039 objects. Call get_jiter_objfile_data with the_objfile.
1041 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1043 * linespec.c (linespec_p): Remove. Replace all uses with
1046 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1047 Pedro Alves <pedro@palves.net>
1049 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1050 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1051 command_line_up instead of struct command_line.
1052 (build_command_line): Likewise.
1053 (get_command_line): Update the cmd function call parameter.
1054 (process_next_line): Use unique_ptr command_line_up instead
1055 of struct command_line.
1056 (recurse_read_control_structure): Change the the type of
1057 next to command_line_up.
1058 (read_command_lines_1): Change type of `next' to be
1059 command_line_up and update all references of `next'
1062 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1064 * MAINTAINERS (Write After Approval): Add myself.
1066 2021-05-19 John Baldwin <jhb@FreeBSD.org>
1068 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1070 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1072 * inflow.c (new_tty): Do not leak tty.
1074 2021-05-17 Tom Tromey <tom@tromey.com>
1076 * dwarf2/read.h: Update include.
1077 * dwarf2/read.c: Update include.
1078 * dwarf2/line-header.c: Update include.
1079 * dwarf2/cu.h: Update include.
1080 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1081 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1082 * Makefile.in (COMMON_SFILES): Update.
1084 2021-05-17 Tom Tromey <tom@tromey.com>
1086 * dwarf2/read.c (maybe_queue_comp_unit)
1087 (dwarf2_per_objfile::age_comp_units): Update.
1088 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1090 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1091 add_dependence>: New methods.
1092 <m_dependencies>: Add "m_" prefix. Now private.
1093 <m_mark>: Add "m_" prefix.
1094 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1095 (dwarf2_mark_helper): New function.
1096 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1098 2021-05-17 Tom Tromey <tom@tromey.com>
1100 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1101 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1102 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1103 * dwarf2/cu.c: New file.
1104 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1106 2021-05-17 Tom Tromey <tom@tromey.com>
1108 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1109 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1111 * dwarf2/cu.h: New file.
1113 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1115 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1116 set brace-list-open to 0 for C and C++ modes.
1118 2021-05-17 Tom Tromey <tromey@adacore.com>
1120 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1123 2021-05-17 Tom Tromey <tromey@adacore.com>
1125 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1126 (group_from_gid): Subtract one from strncpy length.
1128 2021-05-17 Tom Tromey <tromey@adacore.com>
1130 * source.c (add_path): Check 'p' before using 'p[-1]'.
1132 2021-05-17 Tom Tromey <tromey@adacore.com>
1134 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1135 (dwarf2_per_cu_data_up): New typedef.
1136 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1137 <all_comp_units>: Use dwarf2_per_cu_data_up.
1138 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1139 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1140 (create_cu_from_index_list): Likewise.
1141 (create_signatured_type_table_from_index)
1142 (create_cus_from_debug_names_list, add_type_unit)
1143 (read_comp_units_from_section): Update.
1144 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1147 2021-05-17 Tom Tromey <tom@tromey.com>
1149 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1150 (sort_tu_by_abbrev_offset): Remove.
1151 (build_type_psymtabs): Update.
1153 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1155 * py-project.toml: New.
1156 * gdb-gdb.py.in: Re-format.
1158 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1160 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1162 * command.h (cmd_func_p): Remove.
1163 * cli/cli-decode.c (cmd_func_p): Remove.
1165 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1167 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1169 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1171 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1173 <alias_target>: ... this.
1174 (add_alias_cmd): Rename old to target.
1175 (add_info_alias): Rename old_name to target_name.
1176 (add_com_alias): Likewise.
1178 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1180 * Rename "prefixlist" parameters to "subcommands" throughout.
1181 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1182 <subcommands>: ... this.
1183 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1184 (lookup_cmd_with_subcommands): ... this.
1186 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1188 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1190 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1192 * cli/cli-decode.h (prefixname): Make const, move implementation
1193 to cli/cli-decode.c.
1194 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1196 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
1198 * ctfread.c (new_symbol): Set function address.
1199 (read_func_kind_type): Remove incorrect type name setting.
1200 Don't copy name returned from ctf_type_ame_raw throughout file.
1202 2021-05-14 Tom Tromey <tom@tromey.com>
1204 * rust-lang.c (rust_language::val_print_struct)
1205 (rust_language::print_enum): Use common_val_print, not
1208 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1210 * python/py-inferior.c (infpy_get_connection_num): New function.
1211 (inferior_object_getset): Add a new element for 'connection_num'.
1212 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1214 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1216 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1217 argument type, update and re-wrap, header comment.
1218 (remote_target::commit_resumed): Convert any_process_wildcard and
1219 may_global_wildcard_vcont from int to bool.
1221 2021-05-14 Kent Cheung <kent.cheung@arm.com>
1223 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1224 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1225 just before printing child values.
1226 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1227 printing string representation.
1228 * python/py-prettyprint.c (print_children): Check max_depth just
1229 before printing child values.
1230 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1231 printing string representation.
1233 2021-05-14 Mike Frysinger <vapier@gentoo.org>
1235 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1236 sim/callback.h & sim/sim.h.
1238 2021-05-13 Mike Frysinger <vapier@gentoo.org>
1240 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1241 sim-regno.h include.
1243 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1245 * inf-child.h (inf_child_target) <follow_exec>: New.
1246 * inf-child.c (inf_child_target::follow_exec): New.
1248 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1250 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1252 (target_follow_exec): Likewise.
1253 * target.c (target_follow_exec): Add ptid_t parameter.
1254 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1255 don't push target nor create thread.
1256 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1257 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1258 (thread_db_target::follow_exec): New.
1259 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1260 (remote_target::follow_exec): Call
1261 process_stratum_target::follow_exec.
1262 * target-delegates.c: Re-generate.
1264 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1266 * infrun.c (follow_exec): Call target_follow_fork when
1267 follow-exec-mode is same.
1268 * target.h (target_follow_fork): Improve doc.
1270 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1272 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1274 * cli/cli-setshow.c (do_show_command): Adjust.
1276 2021-05-13 Luis Machado <luis.machado@linaro.org>
1278 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1279 include the last address in the range.
1281 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1283 * python/python-internal.h (gdbpy_parse_command_name): Return
1284 gdb::unique_xmalloc_ptr.
1285 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1286 (cmdpy_init): Adjust.
1287 * python/py-param.c (parmpy_init): Adjust.
1288 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1291 2021-05-12 George Barrett <bob@bob131.so>
1293 * NEWS (Guile API): Note the addition of the new procedure.
1294 * guile/scm-value.c (gdbscm_value_const_value): Add
1295 implementation of value-const-value procedure.
1296 (value_functions): Add value-const-value procedure.
1298 2021-05-12 George Barrett <bob@bob131.so>
1300 * NEWS (Guile API): Note the addition of new procedures.
1301 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1302 for reference value creation.
1303 (gdbscm_value_reference_value): Add implementation of
1304 value-reference-value procedure.
1305 (gdbscm_value_rvalue_reference_value): Add implementation of
1306 value-rvalue-reference-value procedure.
1307 (value_functions): Add value-reference-value procedure. Add
1308 value-rvalue-reference-value procedure.
1310 2021-05-12 George Barrett <bob@bob131.so>
1312 * guile/scm-type.c (type_integer_constants): Add binding for
1313 TYPE_CODE_RVALUE_REF.
1314 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1315 dereferencing of rvalue references.
1316 * NEWS (Guile API): Note improvements in rvalue reference support.
1318 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1320 * btrace.c (handle_pt_insn_events): Ignore status update enable
1323 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1325 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1328 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1330 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1332 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
1335 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1338 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1340 * nat/linux-waitpid.c (status_to_str): Show signal name.
1342 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1344 * python/py-breakpoint.c (pybp_debug): New static global.
1345 (show_pybp_debug): New function.
1346 (pybp_debug_printf): Define.
1347 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1348 (gdbpy_breakpoint_created): Add some debugging.
1349 (gdbpy_breakpoint_deleted): Likewise.
1350 (gdbpy_breakpoint_modified): Likewise.
1351 (_initialize_py_breakpoint): New function.
1353 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1355 * python/py-unwind.c (pyuw_debug): Convert to bool.
1356 (show_pyuw_debug): New function.
1357 (pyuw_debug_printf): Define.
1358 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1359 (pyuw_this_id): Convert to new debug print macros.
1360 (pyuw_prev_register): Likewise.
1361 (pyuw_sniffer): Likewise.
1362 (pyuw_dealloc_cache): Likewise.
1363 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1364 show function when registering.
1366 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1368 * dummy-frame.c (fprint_dummy_frames): Convert use of
1369 fprint_frame_id to use frame_id::to_string.
1370 * frame.c (fprint_field): Delete.
1371 (fprint_frame_id): Moved to...
1372 (frame_id::to_string): ...this, rewritten to return a string.
1373 (fprint_frame): Convert use of fprint_frame_id to use
1374 frame_id::to_string.
1375 (compute_frame_id): Likewise.
1376 (frame_id_p): Likewise.
1377 (frame_id_eq): Likewise.
1378 (frame_id_inner): Likewise.
1379 * frame.h (struct frame_id) <to_string>: New member function.
1380 (fprint_frame_id): Delete declaration.
1381 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1382 fprint_frame_id to use frame_id::to_string.
1383 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1384 * python/py-unwind.c (unwind_infopy_str): Likewise.
1385 (pyuw_this_id): Likewise.
1387 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1389 * nat/linux-waitpid.c (status_to_str): Return std::string.
1390 * nat/linux-waitpid.h (status_to_str): Likewise.
1391 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1392 (linux_nat_target::attach): Adjust.
1393 (linux_handle_extended_wait): Adjust.
1395 (stop_wait_callback): Adjust.
1396 (linux_nat_filter_event): Adjust.
1397 (linux_nat_wait_1): Adjust.
1398 * nat/linux-waitpid.c (status_to_str): Adjust.
1399 * nat/linux-waitpid.h (status_to_str): Adjust.
1401 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1403 * infrun.h (infrun_debug_printf): Add missing space.
1405 2021-05-08 Pedro Alves <pedro@palves.net>
1407 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1408 Remove references to HAVE_PERSONALITY.
1409 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1410 (maybe_disable_address_space_randomization)
1411 (~maybe_disable_address_space_randomizatio): Remove references to
1413 * config.in, configure: Regenerate.
1415 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1417 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1419 (source_script_with_search): Perform tilde expansion.
1421 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1423 * target-descriptions.c (struct target_desc_info) <filename>:
1425 (copy_inferior_target_desc_info): Adjust.
1426 (target_desc_info_free): Adjust.
1427 (target_find_description): Adjust.
1428 (set_tdesc_filename_cmd): Adjust.
1429 (show_tdesc_filename_cmd): Adjust.
1430 (unset_tdesc_filename_cmd): Adjust.
1431 (maint_print_c_tdesc_cmd): Adjust.
1433 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1435 * target-descriptions.c (struct target_desc_info): Initialize
1437 (get_tdesc_info): Use new.
1438 (target_desc_info_free): Use delete.
1440 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1442 * target-descriptions.c (struct target_desc_info) <fetched>:
1444 (target_find_description): Adjust.
1445 (target_clear_description): Adjust.
1447 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1449 * target-descriptions.c (struct target_desc_info) <tdesc>:
1451 (target_desc_fetched): Remove.
1452 (current_target_desc): Remove.
1453 (target_description_filename): Remove.
1454 (target_find_description): Adjust.
1455 (target_clear_description): Adjust.
1456 (target_current_description): Adjust.
1457 (set_tdesc_filename_cmd): Adjust.
1458 (show_tdesc_filename_cmd): Adjust.
1459 (unset_tdesc_filename_cmd): Adjust.
1460 (maint_print_c_tdesc_cmd): Adjust.
1461 (maint_print_xml_tdesc_cmd): Adjust.
1463 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1465 * infcmd.c (notice_new_inferior): Change parameter type.
1466 * inferior.h (notice_new_inferior): Change parameter type.
1467 * remote.c (remote_notice_new_inferior): Change parameter type to
1468 bool. Also update type of local variable to bool.
1469 (remote_target::update_thread_list): Change type of local variable
1471 (remote_target::process_stop_reply): Pass bool instead of int to
1472 remote_notice_new_inferior.
1474 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1476 * target.c (target_stack::unpush): Call target_ops::find_beneath
1477 to get the target beneath `t`.
1479 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1481 * target.c (target_close): Check in all inferiors that the
1482 target is not pushed.
1484 2021-05-07 Aaron Merey <amerey@redhat.com>
1486 * debuginfod-support.c (debuginfod_init): Remove.
1487 (get_debuginfod_client): New function.
1489 2021-05-07 Tom Tromey <tom@tromey.com>
1491 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1492 * utils.c (streq_hash): Remove.
1493 * utils.h (streq_hash): Don't declare.
1494 * completer.c (completion_tracker::discard_completions): Update
1496 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1498 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1500 * Re-format all Python files using black.
1502 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1504 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1505 function return type.
1506 * guile/guile.c (gdbscm_source_script): Update to handle change in
1507 gdbscm_safe_source_script.
1508 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1509 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1512 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1514 * inferior.h (class inferior) <args>: Change type to
1516 * inferior.c (inferior::~inferior): Don't free args.
1517 * infcmd.c (get_inferior_args): Adjust.
1518 (set_inferior_args): Adjust.
1520 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1522 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1523 breakpoint locations when the breakpoint actually has a location.
1525 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1527 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1528 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1529 mi_cmd_break_condition.
1530 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1531 * breakpoint.h (set_breakpoint_condition): Declare a new
1533 * breakpoint.c (set_breakpoint_condition): New overloaded function
1534 extracted out from ...
1535 (condition_command): ... this.
1536 * NEWS: Mention the change.
1538 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1540 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1541 '--force-condition' flag to force the condition in the
1542 '-break-insert' and '-dprintf-insert' commands.
1543 * NEWS: Mention the change.
1545 2021-05-04 Tom de Vries <tdevries@suse.de>
1548 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1551 2021-04-30 Tom Tromey <tom@tromey.com>
1553 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1554 (add_signatured_type_cu_to_table): Remove.
1555 (create_debug_type_hash_table): Assume dwo_file is non-null.
1556 (create_debug_types_hash_table): Update comment.
1557 (create_all_type_units): Remove.
1558 (sort_tu_by_abbrev_offset): Update comment.
1559 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1560 (build_type_psymtabs): Remove.
1561 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1563 (read_comp_units_from_section): Add types_htab, section_kind
1565 (create_all_comp_units): Read type units.
1567 2021-04-30 Tom Tromey <tom@tromey.com>
1569 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1570 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1571 <get_cu>: Now inline.
1572 <all_type_units>: Remove.
1573 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1574 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1575 (dwarf2_per_bfd::get_tu): Remove.
1576 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1577 (create_signatured_type_table_from_index)
1578 (create_signatured_type_table_from_debug_names)
1579 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1580 (dwarf2_base_index_functions::expand_all_symtabs)
1581 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1582 (dwarf2_base_index_functions::map_symbol_filenames)
1583 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1584 (add_signatured_type_cu_to_table, create_all_type_units)
1585 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1586 (create_all_comp_units): Update.
1587 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1588 (write_debug_names): Update.
1590 2021-04-30 Tom Tromey <tom@tromey.com>
1592 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1593 allocate_signatured_type>: Change return type.
1594 <all_comp_units, all_type_units>: Hold unique pointers.
1595 (struct dwarf2_per_cu_data): Add constructor and initializers.
1596 (struct signatured_type): Derive from dwarf2_per_cu_data.
1597 * dwarf2/read.c (type_unit_group): Derive from
1599 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1600 (dwarf2_per_bfd::get_tu)
1601 (dwarf2_per_bfd::allocate_signatured_type)
1602 (dwarf2_per_bfd::allocate_signatured_type)
1603 (create_cu_from_index_list, create_cus_from_index_list)
1604 (create_signatured_type_table_from_index)
1605 (create_signatured_type_table_from_debug_names)
1606 (create_addrmap_from_aranges)
1607 (dwarf2_base_index_functions::find_last_source_symtab)
1608 (dw_expand_symtabs_matching_file_matcher)
1609 (dwarf2_gdb_index::expand_symtabs_matching)
1610 (dwarf2_base_index_functions::map_symbol_filenames)
1611 (create_cus_from_debug_names_list)
1612 (dw2_debug_names_iterator::next)
1613 (dwarf2_debug_names_index::expand_symtabs_matching)
1614 (create_debug_type_hash_table, add_type_unit)
1615 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1617 (allocate_type_unit_groups_table): Use delete.
1618 (create_type_unit_group): Change return type. Use new.
1619 (get_type_unit_group, build_type_psymtabs_1)
1620 (build_type_psymtab_dependencies)
1621 (process_skeletonless_type_unit, set_partial_user)
1622 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1623 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1624 (read_signatured_type): Update.
1625 (dwarf2_find_containing_comp_unit): Change type of
1628 (dwarf2_per_bfd::allocate_per_cu)
1629 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1631 (add_signatured_type_cu_to_table): Update.
1632 * dwarf2/index-write.c (write_one_signatured_type)
1633 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1634 (write_debug_names): Update.
1636 2021-04-30 Tom Tromey <tromey@adacore.com>
1638 * nat/windows-nat.h (get_image_name): Don't declare.
1639 * nat/windows-nat.c (get_image_name): Now static.
1641 2021-04-30 Tom Tromey <tromey@adacore.com>
1643 * windows-nat.c (windows_nat::handle_load_dll): Update.
1644 (windows_nat_target::get_windows_debug_event): Call
1646 (windows_add_all_dlls, windows_add_dll): Move to
1648 * nat/windows-nat.h (handle_load_dll): Change parameters.
1649 (dll_loaded_event, windows_add_all_dlls): Declare.
1650 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1652 (dll_loaded_event): New function.
1654 2021-04-30 Tom Tromey <tromey@adacore.com>
1656 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1657 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1659 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1660 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1662 2021-04-30 Tom Tromey <tromey@adacore.com>
1664 * windows-nat.c: Move code to nat/windows-nat.[ch].
1665 (_initialize_windows_nat): Call initialize_loadable.
1666 * nat/windows-nat.h (AdjustTokenPrivileges)
1667 (DebugActiveProcessStop, DebugBreakProcess)
1668 (DebugSetProcessKillOnExit, EnumProcessModules)
1669 (EnumProcessModulesEx, GetModuleInformation)
1670 (GetModuleFileNameExA, GetModuleFileNameExW)
1671 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1672 (GetCurrentConsoleFont, Wow64SuspendThread)
1673 (Wow64GetThreadContext, Wow64SetThreadContext)
1674 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1675 (AdjustTokenPrivileges_ftype)
1676 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1677 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1678 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1679 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1680 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1681 (GetConsoleFontSize_ftype)
1682 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1683 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1684 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1685 (initialize_loadable): Declare.
1686 * nat/windows-nat.c (AdjustTokenPrivileges)
1687 (DebugActiveProcessStop, DebugBreakProcess)
1688 (DebugSetProcessKillOnExit, EnumProcessModules)
1689 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1690 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1691 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1692 (Wow64GetThreadContext, Wow64SetThreadContext)
1693 (Wow64GetThreadSelectorEntry): Define.
1694 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1696 (initialize_loadable): Likewise, and rename.
1698 2021-04-30 Tom Tromey <tromey@adacore.com>
1700 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1701 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1702 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1703 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1704 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1705 (bad): New template functions.
1706 (_initialize_loadable): Update.
1708 2021-04-30 Tom Tromey <tromey@adacore.com>
1710 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1712 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1714 * auto-load.h: Split namespace declaration.
1716 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1718 * infrun.c (save_waitstatus): Move variables to inner scope.
1720 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1722 * NEWS: Fix typo and stray full stop.
1724 2021-04-28 Tom Tromey <tromey@adacore.com>
1726 * ada-exp.y (primary): Use new type for null pointer.
1727 * ada-lang.c (ada_type_match): Remove "may_deref"
1728 parameter. Handle null pointer.
1729 (ada_args_match): Update.
1730 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1731 Handle null pointer.
1733 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1735 * NEWS: Mention new commands.
1736 * python/python.c (python_ignore_environment): New static global.
1737 (show_python_ignore_environment): New function.
1738 (set_python_ignore_environment): New function.
1739 (python_dont_write_bytecode): New static global.
1740 (show_python_dont_write_bytecode): New function.
1741 (set_python_dont_write_bytecode): New function.
1742 (_initialize_python): Register new commands.
1744 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1746 * extension-priv.h (struct extension_language_ops): Rename
1747 'finish_initialization' to 'initialize'.
1748 * extension.c (finish_ext_lang_initialization): Renamed to...
1749 (ext_lang_initialization): ...this, update comment, and updated
1750 the calls to reflect the change in struct extension_language_ops.
1751 * extension.h (finish_ext_lang_initialization): Renamed to...
1752 (ext_lang_initialization): ...this.
1753 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1754 (gdbscm_initialize): ...this, update comment at definition.
1755 (guile_extension_ops): Update.
1756 * main.c (captured_main_1): Update call to
1757 finish_ext_lang_initialization.
1758 * python/python.c (gdbpy_finish_initialization): Rename to...
1759 (gdbpy_initialize): ...this, update comment at definition, and
1760 update call to do_finish_initialization.
1761 (python_extension_ops): Update.
1762 (do_finish_initialization): Rename to...
1763 (do_initialize): ...this, and update comment.
1765 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1767 * main.c (captured_main_1): Add a call to
1768 finish_ext_lang_initialization.
1769 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1771 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1773 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1774 (gdbscm_finish_initialization): Add code moved from
1776 (_initialize_guile): Move code to gdbscm_finish_initialization.
1777 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1778 _initialize_scm_arch.
1779 (_initialize_scm_arch): New function.
1780 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1781 into _initialize_scm_block.
1782 (_initialize_scm_block): New function.
1783 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1784 into _initialize_scm_frame.
1785 (_initialize_scm_frame): New function.
1786 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1787 into _initialize_scm_objfile.
1788 (_initialize_scm_objfile): New function.
1789 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1790 code into _initialize_scm_progspace.
1791 (_initialize_scm_progspace): New function.
1792 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1793 into _initialize_scm_symbol.
1794 (_initialize_scm_symbol): New function.
1795 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1796 into _initialize_scm_symtab.
1797 (_initialize_scm_symtab): New function.
1798 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1799 _initialize_scm_type.
1800 (_initialize_scm_type): New function.
1802 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1804 * python/py-arch.c (_initialize_py_arch): New function.
1805 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1806 * python/py-block.c (_initialize_py_block): New function.
1807 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1808 * python/py-inferior.c (_initialize_py_inferior): New function.
1809 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1810 * python/py-objfile.c (_initialize_py_objfile): New function.
1811 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1812 * python/py-progspace.c (_initialize_py_progspace): New function.
1813 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1814 * python/py-registers.c (_initialize_py_registers): New function.
1815 (gdbpy_initialize_registers): Move code to
1816 _initialize_py_registers.
1817 * python/py-symbol.c (_initialize_py_symbol): New function.
1818 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1819 * python/py-symtab.c (_initialize_py_symtab): New function.
1820 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1821 * python/py-type.c (_initialize_py_type): New function.
1822 (gdbpy_initialize_types): Move code to _initialize_py_type.
1823 * python/py-unwind.c (_initialize_py_unwind): New function.
1824 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1825 * python/python.c (_initialize_python): Move call to
1826 do_start_initialization to gdbpy_finish_initialization.
1827 (gdbpy_finish_initialization): Add call to
1828 do_start_initialization.
1830 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1832 * extension.c (struct scoped_default_signal): New struct.
1833 (scoped_default_sigint): New typedef.
1834 (finish_ext_lang_initialization): Make use of
1835 scoped_default_sigint.
1837 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1839 * main.c (captured_main_1): Don't pass argument to gdb_init.
1840 * top.c (gdb_init): Remove unused argument, and add header
1842 * top.h (gdb_init): Remove argument.
1844 2021-04-27 Luis Machado <luis.machado@linaro.org>
1846 * psymtab.c (psymbol_functions::dump): Output newline.
1848 * symmisc.c (dump_objfile): Likewise.
1850 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1851 Simon Marchi <simon.marchi@polymtl.ca>
1853 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1854 when attaching the 'auto_load_new_objfile' observer, so
1855 other observers can specify it as a dependency.
1856 * gdb/auto-load.h (struct token): Declare
1857 'auto_load_new_objfile_observer_token' as token to be used
1858 for the 'auto_load_new_objfile' observer.
1859 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1860 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1861 observer, so it gets notified after the latter.
1863 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1864 Simon Marchi <simon.marchi@polymtl.ca>
1866 * unittests/observable-selftests.c (dependency_test_counters):
1868 (observer_token0, observer_token1, observer_token2,
1869 observer_token3, observer_token4, observer_token5): New.
1870 (struct dependency_observer_data): New struct.
1871 (observer_dependency_test_callback): New function.
1872 (test_observers): New.
1873 (run_dependency_test): New function.
1874 (test_dependency): New.
1875 (_initialize_observer_selftest): Register dependency test.
1877 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1880 * cli/cli-dump.c (dump_binary_file): Check result of
1883 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1885 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1886 by passing `process_stratum_target*` parameter.
1888 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1891 * typeprint.h (struct type_print_options): Add print_in_hex
1893 (struct print_offset_data): Add print_in_hex flag, add a
1894 constructor accepting a type_print_options* argument.
1895 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1896 default value for print_in_hex.
1897 (print_offset_data::indentation): Allow more horizontal space.
1898 (print_offset_data::print_offset_data): Add ctor.
1899 (print_offset_data::maybe_print_hole, print_offset_data::update):
1900 Handle the print_in_hex flag.
1901 (whatis_exp): Handle 'x' and 'd' flags.
1902 (print_offsets_and_sizes_in_hex): Declare.
1903 (set_print_offsets_and_sizes_in_hex): Create.
1904 (show_print_offsets_and_sizes_in_hex): Create.
1905 (_initialize_typeprint): Update help message for the ptype
1906 command, register the 'set print type hex' and 'show print type
1908 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1909 (c_type_print_base): Construct the print_offset_data
1910 object using the type_print_optons parameter.
1911 * rust-lang.c (rust_language::print_type): Construct the
1912 print_offset_data object using the type_print_optons parameter.
1913 * NEWS: Mention the new flags of the ptype command.
1915 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1917 * typeprint.h (struct type_print_options): Move before
1920 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1924 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1926 * observable.c (observer_debug): Change to bool.
1928 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1930 * dwarf2/read.c: Add 'unordered_set' include.
1931 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1932 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1933 of per_Bfd->filenames_cache cache, and use function local
1934 filenames_cache instead. Reindent.
1935 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1937 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1939 * breakpoint.c (iterate_over_bp_locations): Change callback to
1940 function view, remove data parameter.
1941 * breakpoint.h (iterate_over_bp_locations): Likewise.
1942 * record-full.c (record_full_sync_record_breakpoints): Remove
1945 2021-04-22 Tom Tromey <tom@tromey.com>
1947 * c-typeprint.c (c_type_print_base_struct_union): Use
1948 print_spaces_filtered_with_print_options.
1950 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1953 * python/py-type.c (typy_range): Check that bounds are constant
1954 before accessing them as such.
1955 * guile/scm-type.c (gdbscm_type_range): Likewise.
1957 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1959 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1960 * inferior.c (inferior::add_continuation): New method, adapted
1961 from 'add_inferior_continuation'.
1962 (inferior::do_all_continuations): New method, adapted from
1963 'do_all_inferior_continuations'.
1964 (inferior::~inferior): Clear the list of continuations directly.
1965 * inferior.h (class inferior) <continuations>: Rename into...
1966 <m_continuations>: ...this and make private.
1967 * continuations.c: Remove.
1968 * continuations.h: Remove.
1969 * event-top.c: Don't include "continuations.h".
1971 Update the users below.
1972 * inf-loop.c (inferior_event_handler)
1973 * infcmd.c (attach_command)
1974 (notice_new_inferior): Update.
1976 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1978 * inferior.h (class inferior) <continuations>: Change the type
1979 to be an std::list of std::function's.
1980 Update the references and uses below.
1981 * continuations.c (struct continuation): Delete.
1982 (make_continuation): Delete.
1983 (do_my_continuations_1): Delete.
1984 (do_my_continuations): Delete.
1985 (discard_my_continuations_1): Delete.
1986 (discard_my_continuations): Delete.
1987 (add_inferior_continuation): Update.
1988 (do_all_inferior_continuations): Update.
1989 (discard_all_inferior_continuations): Update.
1990 * continuations.h (add_inferior_continuation): Update to take
1991 an std::function as the parameter.
1992 * infcmd.c (struct attach_command_continuation_args): Delete.
1993 (attach_command_continuation): Delete.
1994 (attach_command_continuation_free_args): Delete.
1995 (attach_command): Update.
1996 (notice_new_inferior): Update.
1998 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2000 * continuations.h: Update the general comment.
2001 * inferior.h (class inferior) <continuations>: Update the comment.
2002 * interps.c: Do not include "continuations.h".
2004 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2006 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2007 parameter. Update the references below.
2008 * continuations.c (do_my_continuations_1)
2009 (do_my_continuations)
2010 (do_all_inferior_continuations): Update.
2011 * inf-loop.c (inferior_event_handler): Update.
2012 * infcmd.c (attach_command_continuation): Update.
2014 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2016 * infcmd.c (attach_post_wait): Update the function comment.
2018 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2020 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2021 Update the references below.
2022 (struct attach_command_continuation_args)
2023 (attach_command_continuation)
2024 (attach_command_continuation_free_args)
2026 (notice_new_inferior): Update to remove the reference to 'args'.
2028 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2029 Tom de Vries <tdevries@suse.de>
2032 * remote.c (remote_target_is_non_stop_p): New function.
2033 * remote.h (remote_target_is_non_stop_p): Declare.
2034 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2035 to check non-stopness using notif_state->remote rather current target.
2037 2021-04-22 Tom Tromey <tom@tromey.com>
2039 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2040 (struct typed_val_int) <val>: Now ULONGEST.
2041 (rust_parser::parse_array_type): Remove negative check.
2042 (rust_lex_int_test): Change 'value' to ULONGEST.
2044 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2046 * arch-utils.c (default_addressable_memory_unit_size): Return a
2047 value based on bfd's bits per byte.
2049 2021-04-21 Tom Tromey <tom@tromey.com>
2051 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2053 (struct dwarf2_per_cu_data): Rearrange.
2054 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2056 (struct comp_unit_head): Rearrange.
2057 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2059 2021-04-21 Tom de Vries <tdevries@suse.de>
2062 * configure.ac: Remove --without-included-regex/--with-included-regex.
2063 * config.in: Regenerate.
2064 * configure: Regenerate.
2065 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2067 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2069 * breakpoint.h (create_breakpoint): Add a new parameter,
2071 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2072 argument when 'parse_extra' is false to check if the condition
2073 is invalid at all of the breakpoint locations.
2074 Update the users below.
2080 (create_tracepoint_from_upload): Update.
2081 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2082 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2083 * python/py-breakpoint.c (bppy_init): Update.
2084 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2086 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2088 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2089 disabled-by-condition locations on MI-like output.
2090 (breakpoint_1): Do not display the disabled-by-condition footnote
2091 if the output is MI-like.
2093 2021-04-21 Frederic Cambus <fred@statdns.com>
2095 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2096 update year range in generated copyright notices.
2098 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2100 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2101 qualifier_seq_noopt.
2103 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2105 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2107 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2109 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2110 (producer_is_icc): Replace use of std::regex with gdb's
2113 2021-04-17 Tom Tromey <tom@tromey.com>
2116 * dwarf2/read.c (class offset_view): New.
2117 (struct symbol_table_slot): Remove.
2118 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2119 <symbol_name_index, symbol_vec_index>: New methods.
2120 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2122 (read_gdb_index_from_buffer): Update.
2123 (struct dw2_symtab_iterator) <vec>: Change type.
2124 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2125 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2126 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2127 <append_array, append_offset>: New methods.
2128 (write_hash_table, add_address_entry, write_gdbindex_1)
2129 (write_debug_names): Update.
2130 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2132 2021-04-17 Tom Tromey <tom@tromey.com>
2134 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2137 2021-04-17 Tom Tromey <tom@tromey.com>
2139 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2140 from map_matching_symbols. Change parameters.
2141 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2142 Rename from map_matching_symbols. Change parameters.
2143 * dwarf2/read.c (struct dwarf2_gdb_index)
2144 <expand_matching_symbols>: Rename from map_matching_symbols.
2146 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2147 Rename from map_matching_symbols. Change parameters.
2148 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2149 dw2_map_matching_symbols. Change parameters.
2150 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2152 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2153 map_matching_symbols. Change parameters.
2154 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2155 from map_matching_symbols. Change parameters.
2156 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2157 map_matching_symbols. Change parameters.
2158 * ada-lang.c (map_matching_symbols): New function.
2159 (add_nonlocal_symbols): Update.
2161 2021-04-17 Tom Tromey <tom@tromey.com>
2163 * quick-symbol.h (struct quick_symbol_functions)
2164 <expand_symtabs_with_fullname>: Remove.
2165 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2167 * psympriv.h (struct psymbol_functions)
2168 <expand_symtabs_with_fullname>: Remove.
2169 * dwarf2/read.c (struct dwarf2_base_index_functions)
2170 <expand_symtabs_with_fullname>: Remove.
2171 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2173 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2175 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2178 2021-04-17 Tom Tromey <tom@tromey.com>
2180 * symfile-debug.c (objfile::expand_symtabs_for_function):
2182 * quick-symbol.h (struct quick_symbol_functions)
2183 <expand_symtabs_for_function>: Remove.
2184 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2186 * psympriv.h (struct psymbol_functions)
2187 <expand_symtabs_for_function>: Remove.
2188 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2190 * dwarf2/read.c (struct dwarf2_gdb_index)
2191 <expand_symtabs_for_function>: Remove.
2192 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2194 (find_slot_in_mapped_hash): Remove.
2195 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2196 (dw2_symtab_iter_init): Remove one overload.
2197 (dwarf2_gdb_index::expand_symtabs_for_function)
2198 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2200 2021-04-17 Tom Tromey <tom@tromey.com>
2202 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2204 * quick-symbol.h (struct quick_symbol_functions)
2205 <map_symtabs_matching_filename>: Remove.
2206 * psymtab.c (partial_map_expand_apply)
2207 (psymbol_functions::map_symtabs_matching_filename): Remove.
2208 * psympriv.h (struct psymbol_functions)
2209 <map_symtabs_matching_filename>: Remove.
2210 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2212 * dwarf2/read.c (struct dwarf2_base_index_functions)
2213 <map_symtabs_matching_filename>: Remove.
2214 (dw2_map_expand_apply)
2215 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2218 2021-04-17 Tom Tromey <tom@tromey.com>
2220 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2221 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2223 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2224 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2225 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2226 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2228 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2229 (dwarf2_gdb_index::lookup_symbol)
2230 (dwarf2_debug_names_index::lookup_symbol): Remove.
2232 2021-04-17 Tom Tromey <tom@tromey.com>
2234 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2235 * symmisc.c (maintenance_expand_symtabs): Update.
2236 * symfile.c (expand_symtabs_matching): Update.
2237 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2239 * quick-symbol.h (struct quick_symbol_functions)
2240 <expand_symtabs_matching>: Add 'domain' parameter.
2241 * psymtab.c (recursively_search_psymtabs)
2242 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2244 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2245 Add 'domain' parameter.
2246 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2248 * linespec.c (iterate_over_all_matching_symtabs): Update.
2249 * dwarf2/read.c (struct dwarf2_gdb_index)
2250 <expand_symtabs_matching>: Add 'domain' parameter.
2251 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2253 (dw2_expand_symtabs_matching)
2254 (dwarf2_gdb_index::expand_symtabs_matching)
2255 (dw2_debug_names_iterator)
2256 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2259 2021-04-17 Tom Tromey <tom@tromey.com>
2261 * symtab.c (global_symbol_searcher::expand_symtabs)
2262 (default_collect_symbol_completion_matches_break_on): Update.
2263 * symmisc.c (maintenance_expand_symtabs): Update.
2264 * symfile.h (expand_symtabs_matching): Add search_flags
2266 * symfile.c (expand_symtabs_matching): Add search_flags
2268 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2269 search_flags parameter.
2270 * quick-symbol.h (struct quick_symbol_functions)
2271 <expand_symtabs_matching>: Add search_flags parameter.
2272 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2273 * psymtab.c (recursively_search_psymtabs)
2274 (psymbol_functions::expand_symtabs_matching): Add search_flags
2276 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2277 Add search_flags parameter.
2278 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2279 search_flags parameter.
2280 * linespec.c (iterate_over_all_matching_symtabs): Update.
2281 * dwarf2/read.c (struct dwarf2_gdb_index)
2282 <expand_symtabs_matching>: Add search_flags parameter.
2283 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2284 search_flags parameter.
2285 (dw2_map_matching_symbols): Update.
2286 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2287 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2289 (dw2_debug_names_iterator): Change block_index to search flags.
2290 <m_block_index>: Likewise.
2291 (dw2_debug_names_iterator::next)
2292 (dwarf2_debug_names_index::lookup_symbol)
2293 (dwarf2_debug_names_index::expand_symtabs_for_function)
2294 (dwarf2_debug_names_index::map_matching_symbols)
2295 (dwarf2_debug_names_index::map_matching_symbols): Update.
2296 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2297 search_flags parameter.
2298 * ada-lang.c (ada_add_global_exceptions)
2299 (collect_symbol_completion_matches): Update.
2301 2021-04-17 Tom Tromey <tom@tromey.com>
2303 * symtab.c (default_collect_symbol_completion_matches_break_on):
2305 * symfile.h (expand_symtabs_matching): Return bool.
2306 * symfile.c (expand_symtabs_matching): Return bool.
2307 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2309 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2310 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2312 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2314 * psympriv.h (struct psymbol_functions)
2315 <expand_symtabs_matching>: Return bool.
2316 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2318 * dwarf2/read.c (struct dwarf2_gdb_index)
2319 <expand_symtabs_matching>: Return bool.
2320 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2322 (dw2_expand_symtabs_matching_symbol): Return bool.
2323 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2324 (dw2_expand_symtabs_matching)
2325 (dwarf2_gdb_index::expand_symtabs_matching)
2326 (dwarf2_debug_names_index::expand_symtabs_matching)
2327 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2329 2021-04-17 Tom Tromey <tom@tromey.com>
2331 * quick-symbol.h (enum block_search_flag_values): New.
2332 (block_search_flags): New enum flags type.
2334 2021-04-16 Tom Tromey <tom@tromey.com>
2336 * rust-parse.c: New file.
2337 * rust-exp.y: Remove.
2338 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2339 (SFILES): Remove rust-exp.y.
2340 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2342 2021-04-16 Luis Machado <luis.machado@linaro.org>
2344 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2346 2021-04-15 John Baldwin <jhb@FreeBSD.org>
2348 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2349 use throughout file.
2351 2021-04-15 Tom Tromey <tromey@adacore.com>
2353 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2356 2021-04-15 Tom Tromey <tromey@adacore.com>
2358 * printcmd.c (print_variable_and_value): Use
2359 common_val_print_checked.
2361 2021-04-15 Tom Tromey <tromey@adacore.com>
2363 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2364 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2366 * p-exp.y (variable): Update.
2367 * m2-exp.y (variable): Update.
2368 * go-exp.y (variable): Update.
2369 * expprint.c (dump_for_expression): New overload.
2370 * expop.h (check_objfile): New overload.
2371 (check_constant): New overload.
2372 (class var_value_operation): Use block_symbol.
2373 <get_symbol>: Rewrite.
2374 * eval.c (var_value_operation::evaluate)
2375 (var_value_operation::evaluate_funcall)
2376 (var_value_operation::evaluate_for_address)
2377 (var_value_operation::evaluate_for_address)
2378 (var_value_operation::evaluate_with_coercion)
2379 (var_value_operation::evaluate_for_sizeof)
2380 (var_value_operation::evaluate_for_cast): Update.
2381 * d-exp.y (PrimaryExpression): Update.
2382 * c-exp.y (variable): Update.
2383 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2384 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2385 (ada_var_value_operation::evaluate)
2386 (ada_var_value_operation::resolve)
2387 (ada_funcall_operation::resolve): Update.
2388 * ada-exp.y (write_var_from_sym, write_object_renaming)
2389 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2390 (maybe_overload): Update.
2391 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2393 2021-04-15 Tom Tromey <tom@tromey.com>
2394 Andrew Burgess <andrew.burgess@embecosm.com>
2397 * main.c (captured_main_1): Call check_quiet_mode.
2398 * top.c (startup_quiet): New global.
2399 (check_quiet_mode): New function.
2400 (show_startup_quiet): New function.
2401 (init_main): Register new command.
2402 * top.h (check_quiet_mode): Declare.
2404 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2407 * NEWS: Mention new early init files and command line options.
2408 * config.in: Regenerate.
2409 * configure: Regenerate.
2410 * configure.ac: Define GDBEARLYINIT.
2411 * main.c (get_earlyinit_files): New function.
2412 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2413 CMDARG_EARLYINIT_COMMAND.
2414 (captured_main_1): Add support for new command line flags, and for
2415 processing startup files.
2416 (print_gdb_help): Include startup files in the output.
2418 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2420 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2421 (relocate_file_path_maybe_in_datadir): ...this.
2422 (class gdb_initfile_finder): New class.
2423 (get_init_files): Now uses gdb_initfile_finder.
2424 (print_gdb_help): Print 'None found' when there are no init files.
2426 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2428 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2429 corresponding child of the abstract DIE when iterating the
2430 children of the concrete DIE.
2432 2021-04-13 Tom de Vries <tdevries@suse.de>
2434 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2437 2021-04-13 Luis Machado <luis.machado@linaro.org>
2439 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2442 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2444 * rs6000-tdep.c: Add support for single-stepping of
2445 prefixed instructions.
2447 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2450 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2451 handle the addpcis/lnia instruction.
2453 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2455 * MAINTAINERS (Write After Approval): Add myself.
2457 2021-4-12 Carl Love <cel@us.ibm.com>
2459 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2460 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2463 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2465 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2466 * nat/windows-nat.h: Likewise.
2468 2021-04-10 Eli Zaretskii <eliz@gnu.org>
2470 * windows-nat.c (windows_nat::handle_load_dll): Call
2471 windows_add_dll if get_image_name failed to glean the name of the
2472 DLL by using the lpImageName pointer.
2473 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2474 (windows_add_dll): Now does what windows_add_all_dlls did before,
2475 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2476 specifies the address where the DLL was loaded into the inferior,
2477 and looks for the single DLL loaded at that address.
2479 2021-04-09 Luis Machado <luis.machado@linaro.org>
2481 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2483 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2485 * darwin-nat.c (darwin_nat_target::resume): Remove status
2488 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2490 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2491 prologue end for Intel compilers.
2492 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2493 * producer.c (producer_is_icc_ge_19): New function.
2494 * producer.h (producer_is_icc_ge_19): New declaration.
2496 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2498 * producer.c: (producer_is_icc): Update for new version scheme.
2499 (producer_parsing_tests): Update names and expected results.
2500 * producer.h: (producer_is_icc): Update comment accordingly.
2502 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2504 * target.h (struct target_ops) <follow_fork>: Return void.
2505 (target_follow_fork): Likewise.
2506 * target.c (default_follow_fork): Likewise.
2507 (target_follow_fork): Likewise.
2508 * infrun.c (follow_fork_inferior): Adjust.
2509 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2510 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2511 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2512 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2513 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2514 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2515 * remote.c (class remote_target) <follow_fork>: Likewise.
2516 (remote_target::follow_fork): Likewise.
2517 * target-delegates.c: Re-generate.
2519 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
2521 * ctfread.c (fetch_tid_type): New function, use throughout file.
2522 (read_forward_type): New function.
2523 (read_type_record): Call read_forward_type.
2525 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2527 * f-exp.h (class fortran_structop_operation): New class.
2528 * f-exp.y (exp): Create fortran_structop_operation instead of the
2529 generic structop_operation.
2530 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2531 expression as EVAL_NORMAL if the result type was dynamic so we can
2532 extract the actual array bounds.
2533 (fortran_structop_operation::evaluate): New function.
2535 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2537 * eval.c (evaluate_subexp_standard): Remove
2538 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2541 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2543 * valops.c (value_cast): Call value_deeply_equal before performing
2546 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2548 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2551 2021-04-07 Caroline Tice <cmtice@google.com>
2553 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2554 the search paths used resolve relative location of .dwo file.
2556 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2558 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2560 (dwarf2_section_info::get_file_name): Add an assert.
2561 (dwarf2_section_info::read_string): Display a minimal, sane error
2562 when the dwarf2_section_info is not associated with a bfd section.
2564 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2566 * top.c (staged_gdb_datadir): Update comment.
2567 (set_gdb_datadir): Copy the value of gdb_datadir back into
2569 (init_main): Initialise staged_gdb_datadir.
2571 2021-04-06 Tom de Vries <tdevries@suse.de>
2573 PR breakpoints/25884
2574 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2577 2021-04-06 Tom de Vries <tdevries@suse.de>
2580 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2583 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2585 * avr-tdep.c (avr_frame_unwind_cache): Use
2586 trad_frame_saved_reg::is_addr.
2588 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2590 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2593 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2595 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2596 objfile parameter for objfile_per_bfd_storage, adjust callers.
2597 (struct standard_psymtab) <standard_psymtab>: Likewise.
2598 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2599 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2600 * ctfread.c (struct ctf_psymtab): Likewise.
2601 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2602 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2603 (dwarf2_create_include_psymtab): Likewise.
2604 * objfiles.h (struct objfile_per_bfd_storage)
2605 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2606 <get_bfd>: New method.
2608 * objfiles.c (get_objfile_bfd_data): Adjust.
2610 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2612 * psymtab.c (partial_symtab::partial_symtab): Change
2613 last_objfile_name to be an std::string.
2614 * symfile.c (allocate_symtab): Likewise.
2616 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2618 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2620 (struct objfile) <intern>: Use
2621 objfile::objfile_per_bfd_storage::intern.
2623 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2625 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2626 with type::is_flag_enum.
2628 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2630 * gdbtypes.h (struct type) <is_flag_enum,
2631 set_is_flag_enum>: New methods.
2632 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2633 write call sites to use type::set_is_flag_enum.
2635 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2637 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2638 with type::is_declared_class.
2640 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2642 * gdbtypes.h (struct type) <is_declared_class,
2643 set_is_declared_class>: New methods.
2644 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2645 write call sites to use type::set_is_declared_class.
2647 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2649 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2650 to avoid deprecation warnings.
2652 2021-04-01 Martin Liska <mliska@suse.cz>
2654 * cp-name-parser.y: Use startswith instead of strncmp.
2655 * m2-exp.y: Likewise.
2656 * macroexp.c (substitute_args): Likewise.
2657 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2658 * rust-exp.y: Likewise.
2660 2021-03-31 Tom Tromey <tom@tromey.com>
2662 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2663 with dw2_map_matching_symbols.
2664 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2665 dw2_expand_symtabs_matching.
2667 2021-03-31 Tom Tromey <tromey@adacore.com>
2669 * dwarf2/stringify.h: Fix typo.
2671 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2674 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2675 with objfiles using READNOW.
2677 2021-03-29 Tom Tromey <tromey@adacore.com>
2679 * top.c (check_frame_language_change): Update.
2680 * language.c (language_info): Remove parameter.
2681 * language.h (language_info): Remove parameter.
2683 2021-03-29 Luis Machado <luis.machado@linaro.org>
2685 * compile/compile.c (get_args): Don't add empty argv entries.
2687 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2690 * procfs.c (procfs_target::attach): Define inf.
2692 (procfs_target::create_inferior): Likewise.
2694 2021-03-28 Tom Tromey <tom@tromey.com>
2696 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2697 (elf_symfile_read): Simplify.
2698 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2699 (make_lazy_dwarf_reader): New function.
2700 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2701 (dwarf2_initialize_objfile): Return void. Remove index_kind
2702 parameter. Push on 'qf' list.
2703 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2704 type. Remove 'index_kind' parameter.
2705 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2707 2021-03-27 Tom Tromey <tom@tromey.com>
2709 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2711 2021-03-27 Tom Tromey <tom@tromey.com>
2713 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2715 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2717 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2720 2021-03-26 Tom Tromey <tom@tromey.com>
2722 * symtab.c (struct output_source_filename_data): Add 'output'
2723 method and operator().
2724 (output_source_filename_data::output): Rename from
2725 output_source_filename.
2726 (output_partial_symbol_filename): Remove.
2727 (info_sources_command): Update.
2728 (struct add_partial_filename_data): Add operator().
2729 (add_partial_filename_data::operator()): Rename from
2730 maybe_add_partial_symtab_filename.
2731 (make_source_files_completion_list): Update.
2732 * symfile.c (quick_symbol_functions): Update.
2733 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2734 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2735 'need_fullname'. Remove 'data' parameter.
2736 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2737 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2738 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2739 Change type of 'fun' and 'need_fullname'. Remove 'data'
2741 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2742 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2743 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2745 (mi_cmd_file_list_exec_source_files): Update.
2747 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2749 2021-03-26 Tom Tromey <tom@tromey.com>
2751 * ada-lang.c (struct match_data): Add operator().
2752 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2753 (callback): Remove 'callback'.
2755 2021-03-26 Tom Tromey <tom@tromey.com>
2757 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2758 call make_ignore_params once.
2760 2021-03-26 Tom Tromey <tom@tromey.com>
2762 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2765 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2766 Pedro Alves <pedro@palves.net>
2768 * async-event.c: Include "infrun.h".
2769 (async_event_handler_marked): New.
2770 * async-event.h (async_event_handler_marked): Declare.
2771 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2772 inferior before calling target method. Don't commit-resumed if
2773 target_has_pending_events is true.
2774 * remote.c (remote_target::has_pending_events): New.
2775 * target-delegates.c: Regenerate.
2776 * target.c (target_has_pending_events): New.
2777 * target.h (target_ops::has_pending_events): New target method.
2778 (target_has_pending_events): New.
2780 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2781 Pedro Alves <pedro@palves.net>
2783 * infcmd.c (run_command_1, attach_command, detach_command)
2784 (interrupt_target_1): Use scoped_disable_commit_resumed.
2785 * infrun.c (do_target_resume): Remove
2786 target_commit_resume call.
2787 (commit_resume_all_targets): Remove.
2788 (maybe_set_commit_resumed_all_targets): New.
2789 (maybe_call_commit_resumed_all_targets): New.
2790 (enable_commit_resumed): New.
2791 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2792 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2793 (scoped_disable_commit_resumed::reset)
2794 (scoped_disable_commit_resumed::reset_and_commit)
2795 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2796 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2798 (proceed): Use scoped_disable_commit_resumed and
2799 maybe_call_commit_resumed_all_targets.
2800 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2801 * infrun.h (struct scoped_disable_commit_resumed): New.
2802 (maybe_call_commit_resumed_all_process_targets): New.
2803 (struct scoped_enable_commit_resumed): New.
2804 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2805 * process-stratum-target.h (class process_stratum_target):
2806 <commit_resumed_state>: New.
2807 * record-full.c (record_full_wait_1): Change commit_resumed_state
2808 around calling commit_resumed.
2809 * remote.c (class remote_target) <commit_resume>: Rename to...
2810 <commit_resumed>: ... this.
2811 (struct stop_reply): Move up.
2812 (remote_target::commit_resume): Rename to...
2813 (remote_target::commit_resumed): ... this. Check if there is any
2814 thread pending vCont resume.
2815 (remote_target::remote_stop_ns): Generate stop replies for resumed
2816 but pending vCont threads.
2817 (remote_target::wait_ns): Add gdb_assert.
2818 * target-delegates.c: Regenerate.
2819 * target.c (target_wait, target_resume): Assert that the current
2820 process_stratum target isn't in commit-resumed state.
2821 (defer_target_commit_resume): Remove.
2822 (target_commit_resume): Remove.
2823 (target_commit_resumed): New.
2824 (make_scoped_defer_target_commit_resume): Remove.
2825 (target_stop): Assert that the current process_stratum target
2826 isn't in commit-resumed state.
2827 * target.h (struct target_ops) <commit_resume>: Rename to ...
2828 <commit_resumed>: ... this.
2829 (target_commit_resume): Remove.
2830 (target_commit_resumed): New.
2831 (make_scoped_defer_target_commit_resume): Remove.
2832 * top.c (wait_sync_command_done): Use
2833 scoped_enable_commit_resumed.
2835 2021-03-26 Pedro Alves <pedro@palves.net>
2837 * target.c (target_always_non_stop_p): Also check whether the
2840 2021-03-26 Tom Tromey <tom@tromey.com>
2842 * dwarf2/read.c (dwarf2_read_debug_names)
2843 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2844 (dw2_debug_names_iterator::next, create_type_unit_group):
2847 2021-03-25 Pedro Alves <pedro@palves.net>
2849 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2850 around setting the breakpoint.
2852 2021-03-25 Pedro Alves <pedro@palves.net>
2855 (remote_target::check_pending_events_prevent_wildcard_vcont):
2856 Check whether the event's ptid is not null_ptid before looking up
2857 the corresponding inferior.
2859 2021-03-24 Changbin Du <changbin.du@gmail.com>
2861 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2864 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2866 * target.h (current_top_target): Remove, make callers use the
2867 current inferior instead.
2868 * target.c (current_top_target): Remove.
2870 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2872 * target.h (target_shortname): Change to function declaration.
2873 (target_longname): Likewise.
2874 (target_attach_no_wait): Likewise.
2875 (target_post_attach): Likewise.
2876 (target_prepare_to_store): Likewise.
2877 (target_supports_enable_disable_tracepoint): Likewise.
2878 (target_supports_string_tracing): Likewise.
2879 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2880 (target_supports_dumpcore): Likewise.
2881 (target_dumpcore): Likewise.
2882 (target_can_run_breakpoint_commands): Likewise.
2883 (target_files_info): Likewise.
2884 (target_post_startup_inferior): Likewise.
2885 (target_insert_fork_catchpoint): Likewise.
2886 (target_remove_fork_catchpoint): Likewise.
2887 (target_insert_vfork_catchpoint): Likewise.
2888 (target_remove_vfork_catchpoint): Likewise.
2889 (target_insert_exec_catchpoint): Likewise.
2890 (target_remove_exec_catchpoint): Likewise.
2891 (target_set_syscall_catchpoint): Likewise.
2892 (target_rcmd): Likewise.
2893 (target_can_lock_scheduler): Likewise.
2894 (target_can_async_p): Likewise.
2895 (target_is_async_p): Likewise.
2896 (target_execution_direction): Likewise.
2897 (target_extra_thread_info): Likewise.
2898 (target_pid_to_exec_file): Likewise.
2899 (target_thread_architecture): Likewise.
2900 (target_find_memory_regions): Likewise.
2901 (target_make_corefile_notes): Likewise.
2902 (target_get_bookmark): Likewise.
2903 (target_goto_bookmark): Likewise.
2904 (target_stopped_by_watchpoint): Likewise.
2905 (target_stopped_by_sw_breakpoint): Likewise.
2906 (target_supports_stopped_by_sw_breakpoint): Likewise.
2907 (target_stopped_by_hw_breakpoint): Likewise.
2908 (target_supports_stopped_by_hw_breakpoint): Likewise.
2909 (target_have_steppable_watchpoint): Likewise.
2910 (target_can_use_hardware_watchpoint): Likewise.
2911 (target_region_ok_for_hw_watchpoint): Likewise.
2912 (target_can_do_single_step): Likewise.
2913 (target_insert_watchpoint): Likewise.
2914 (target_remove_watchpoint): Likewise.
2915 (target_insert_hw_breakpoint): Likewise.
2916 (target_remove_hw_breakpoint): Likewise.
2917 (target_can_accel_watchpoint_condition): Likewise.
2918 (target_can_execute_reverse): Likewise.
2919 (target_get_ada_task_ptid): Likewise.
2920 (target_filesystem_is_local): Likewise.
2921 (target_trace_init): Likewise.
2922 (target_download_tracepoint): Likewise.
2923 (target_can_download_tracepoint): Likewise.
2924 (target_download_trace_state_variable): Likewise.
2925 (target_enable_tracepoint): Likewise.
2926 (target_disable_tracepoint): Likewise.
2927 (target_trace_start): Likewise.
2928 (target_trace_set_readonly_regions): Likewise.
2929 (target_get_trace_status): Likewise.
2930 (target_get_tracepoint_status): Likewise.
2931 (target_trace_stop): Likewise.
2932 (target_trace_find): Likewise.
2933 (target_get_trace_state_variable_value): Likewise.
2934 (target_save_trace_data): Likewise.
2935 (target_upload_tracepoints): Likewise.
2936 (target_upload_trace_state_variables): Likewise.
2937 (target_get_raw_trace_data): Likewise.
2938 (target_get_min_fast_tracepoint_insn_len): Likewise.
2939 (target_set_disconnected_tracing): Likewise.
2940 (target_set_circular_trace_buffer): Likewise.
2941 (target_set_trace_buffer_size): Likewise.
2942 (target_set_trace_notes): Likewise.
2943 (target_get_tib_address): Likewise.
2944 (target_set_permissions): Likewise.
2945 (target_static_tracepoint_marker_at): Likewise.
2946 (target_static_tracepoint_markers_by_strid): Likewise.
2947 (target_traceframe_info): Likewise.
2948 (target_use_agent): Likewise.
2949 (target_can_use_agent): Likewise.
2950 (target_augmented_libraries_svr4_read): Likewise.
2951 (target_log_command): Likewise.
2952 * target.c (target_shortname): New.
2953 (target_longname): New.
2954 (target_attach_no_wait): New.
2955 (target_post_attach): New.
2956 (target_prepare_to_store): New.
2957 (target_supports_enable_disable_tracepoint): New.
2958 (target_supports_string_tracing): New.
2959 (target_supports_evaluation_of_breakpoint_conditions): New.
2960 (target_supports_dumpcore): New.
2961 (target_dumpcore): New.
2962 (target_can_run_breakpoint_commands): New.
2963 (target_files_info): New.
2964 (target_post_startup_inferior): New.
2965 (target_insert_fork_catchpoint): New.
2966 (target_remove_fork_catchpoint): New.
2967 (target_insert_vfork_catchpoint): New.
2968 (target_remove_vfork_catchpoint): New.
2969 (target_insert_exec_catchpoint): New.
2970 (target_remove_exec_catchpoint): New.
2971 (target_set_syscall_catchpoint): New.
2973 (target_can_lock_scheduler): New.
2974 (target_can_async_p): New.
2975 (target_is_async_p): New.
2976 (target_execution_direction): New.
2977 (target_extra_thread_info): New.
2978 (target_pid_to_exec_file): New.
2979 (target_thread_architecture): New.
2980 (target_find_memory_regions): New.
2981 (target_make_corefile_notes): New.
2982 (target_get_bookmark): New.
2983 (target_goto_bookmark): New.
2984 (target_stopped_by_watchpoint): New.
2985 (target_stopped_by_sw_breakpoint): New.
2986 (target_supports_stopped_by_sw_breakpoint): New.
2987 (target_stopped_by_hw_breakpoint): New.
2988 (target_supports_stopped_by_hw_breakpoint): New.
2989 (target_have_steppable_watchpoint): New.
2990 (target_can_use_hardware_watchpoint): New.
2991 (target_region_ok_for_hw_watchpoint): New.
2992 (target_can_do_single_step): New.
2993 (target_insert_watchpoint): New.
2994 (target_remove_watchpoint): New.
2995 (target_insert_hw_breakpoint): New.
2996 (target_remove_hw_breakpoint): New.
2997 (target_can_accel_watchpoint_condition): New.
2998 (target_can_execute_reverse): New.
2999 (target_get_ada_task_ptid): New.
3000 (target_filesystem_is_local): New.
3001 (target_trace_init): New.
3002 (target_download_tracepoint): New.
3003 (target_can_download_tracepoint): New.
3004 (target_download_trace_state_variable): New.
3005 (target_enable_tracepoint): New.
3006 (target_disable_tracepoint): New.
3007 (target_trace_start): New.
3008 (target_trace_set_readonly_regions): New.
3009 (target_get_trace_status): New.
3010 (target_get_tracepoint_status): New.
3011 (target_trace_stop): New.
3012 (target_trace_find): New.
3013 (target_get_trace_state_variable_value): New.
3014 (target_save_trace_data): New.
3015 (target_upload_tracepoints): New.
3016 (target_upload_trace_state_variables): New.
3017 (target_get_raw_trace_data): New.
3018 (target_get_min_fast_tracepoint_insn_len): New.
3019 (target_set_disconnected_tracing): New.
3020 (target_set_circular_trace_buffer): New.
3021 (target_set_trace_buffer_size): New.
3022 (target_set_trace_notes): New.
3023 (target_get_tib_address): New.
3024 (target_set_permissions): New.
3025 (target_static_tracepoint_marker_at): New.
3026 (target_static_tracepoint_markers_by_strid): New.
3027 (target_traceframe_info): New.
3028 (target_use_agent): New.
3029 (target_can_use_agent): New.
3030 (target_augmented_libraries_svr4_read): New.
3031 (target_log_command): New.
3032 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3033 * infrun.c (set_schedlock_func): Adjust.
3034 * mi/mi-main.c (exec_reverse_continue): Adjust.
3035 * reverse.c (exec_reverse_once): Adjust.
3036 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3037 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3038 * remote-sim.c (gdbsim_target::detach): Adjust.
3039 (gdbsim_target::files_info): Adjust.
3041 2021-03-24 Tom Tromey <tom@tromey.com>
3043 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3044 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3045 (check_match, dw2_expand_symtabs_matching)
3046 (dwarf2_debug_names_index::map_matching_symbols)
3047 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3049 2021-03-24 Keith Seitz <keiths@redhat.com>
3051 * compile/compile-cplus-types.c
3052 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3055 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3057 * gdbarch.sh (gdbarch_data_registry): Make static.
3058 * gdbarch.c: Re-generate.
3060 2021-03-24 Luis Machado <luis.machado@linaro.org>
3062 * NEWS: Mention memory tagging changes.
3064 2021-03-24 Luis Machado <luis.machado@linaro.org>
3066 * printcmd.c (decode_format): Handle the 'm' modifier.
3067 (do_examine): Display allocation tags when required/supported.
3068 (should_validate_memtags): New function.
3069 (print_command_1): Display memory tag mismatches.
3070 * valprint.c (show_memory_tag_violations): New function.
3071 (value_print_option_defs): Add new option "memory-tag-violations".
3072 (user_print_options) <memory_tag_violations>: Initialize to 1.
3073 * valprint.h (struct format_data) <print_tags>: New field.
3074 (value_print_options) <memory_tag_violations>: New field.
3076 2021-03-24 Luis Machado <luis.machado@linaro.org>
3078 * printcmd.c: Include gdbsupport/rsp-low.h.
3079 (memory_tag_list): New static global.
3080 (process_print_command_args): Factored out of
3082 (print_command_1): Use process_print_command_args.
3083 (show_addr_not_tagged, show_memory_tagging_unsupported)
3084 (memory_tag_command, memory_tag_print_tag_command)
3085 (memory_tag_print_logical_tag_command)
3086 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3087 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3088 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3090 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3092 2021-03-24 Luis Machado <luis.machado@linaro.org>
3094 * aarch64-linux-tdep.c
3095 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3096 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3098 2021-03-24 Luis Machado <luis.machado@linaro.org>
3100 * aarch64-linux-tdep.c
3101 (aarch64_linux_report_signal_info): New function.
3102 (aarch64_linux_init_abi): Register
3103 aarch64_linux_report_signal_info as the report_signal_info hook.
3104 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3105 (SEGV_MTESERR): Define.
3107 2021-03-24 Luis Machado <luis.machado@linaro.org>
3109 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3110 (aarch64_linux_ltag_tests): New function.
3111 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3113 2021-03-24 Luis Machado <luis.machado@linaro.org>
3115 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3116 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3117 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3118 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3120 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3121 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3122 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3123 (aarch64_linux_get_ltag): New functions.
3124 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3125 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3126 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3127 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3129 2021-03-24 Luis Machado <luis.machado@linaro.org>
3131 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3133 (struct smaps_data): New struct.
3134 (decode_vmflags): Handle the 'mt' flag.
3135 (parse_smaps_data): New function, refactored from
3136 linux_find_memory_regions_full.
3137 (linux_address_in_memtag_page): New function.
3138 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3139 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3141 2021-03-24 Luis Machado <luis.machado@linaro.org>
3143 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3144 instead of char arrays.
3146 2021-03-24 Luis Machado <luis.machado@linaro.org>
3148 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3149 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3150 nat/aarch64-mte-linux-ptrace.h.
3151 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3152 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3154 <fetch_memtags>: New method override.
3155 <store_memtags>: New method override.
3156 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3157 (aarch64_linux_nat_target::fetch_memtags): New method.
3158 (aarch64_linux_nat_target::store_memtags): New method.
3159 * arch/aarch64-mte-linux.c: New file.
3160 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3161 (AARCH64_MTE_GRANULE_SIZE): Define.
3162 (aarch64_memtag_type): New enum.
3163 (aarch64_mte_get_tag_granules): New prototype.
3164 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3165 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3166 * nat/aarch64-mte-linux-ptrace.c: New file.
3167 * nat/aarch64-mte-linux-ptrace.h: New file.
3169 2021-03-24 Luis Machado <luis.machado@linaro.org>
3171 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3172 * nat/aarch64-mte-linux-ptrace.h: New file.
3174 2021-03-24 Luis Machado <luis.machado@linaro.org>
3176 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3177 (store_mteregs_to_thread): New function.
3178 (aarch64_linux_nat_target::fetch_registers): Update to call
3179 fetch_mteregs_from_thread.
3180 (aarch64_linux_nat_target::store_registers): Update to call
3181 store_mteregs_to_thread.
3182 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3183 (aarch64_cannot_store_register): Handle MTE registers.
3184 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3185 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3186 <has_mte>: New method.
3187 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3189 2021-03-24 Luis Machado <luis.machado@linaro.org>
3191 * aarch64-linux-nat.c
3192 (aarch64_linux_nat_target::read_description): Take MTE flag into
3194 Slight refactor to hwcap flag checking.
3195 * aarch64-linux-tdep.c
3196 (aarch64_linux_core_read_description): Likewise.
3197 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3199 (aarch64_read_description): Add mte_p parameter and update to use it.
3200 Update the documentation.
3201 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3202 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3203 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3204 (aarch64_create_target_description): Add mte_p parameter and update
3206 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3208 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3209 * features/aarch64-mte.c: New file, generated.
3210 * features/aarch64-mte.xml: New file.
3212 2021-03-24 Luis Machado <luis.machado@linaro.org>
3214 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3215 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3216 * aarch64-linux-tdep.c: Likewise
3217 * arch/aarch64-mte-linux.h: New file.
3219 2021-03-24 Luis Machado <luis.machado@linaro.org>
3221 * remote: Include gdbsupport/selftest.h.
3222 (test_memory_tagging_functions): New function.
3223 (_initialize_remote): Register test_memory_tagging_functions.
3225 2021-03-24 Luis Machado <luis.machado@linaro.org>
3227 * remote.c (PACKET_memory_tagging_feature): New enum.
3228 (remote_memory_tagging_p): New function.
3229 (remote_protocol_features): New "memory-tagging" entry.
3230 (remote_target::remote_query_supported): Handle memory tagging
3232 (remote_target::supports_memory_tagging): Implement.
3233 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3234 (create_store_memtags_request): New functions.
3235 (remote_target::fetch_memtags): Implement.
3236 (remote_target::store_memtags): Implement.
3237 (_initialize_remote): Add new "memory-tagging-feature"
3240 2021-03-24 Luis Machado <luis.machado@linaro.org>
3242 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3243 (default_memtag_matches_p, default_set_memtags)
3244 (default_get_memtag): New functions.
3245 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3246 (default_memtag_matches_p, default_set_memtags)
3247 (default_get_memtag): New prototypes.
3248 * gdbarch.c: Regenerate.
3249 * gdbarch.h: Regenerate.
3250 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3251 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3252 (enum memtag_type): New enum.
3254 2021-03-24 Luis Machado <luis.machado@linaro.org>
3256 * remote.c (remote_target) <supports_memory_tagging>: New method
3258 <fetch_memtags>: New method override.
3259 <store_memtags>: New method override.
3260 (remote_target::supports_memory_tagging): New method.
3261 (remote_target::fetch_memtags): New method.
3262 (remote_target::store_memtags): New method.
3263 * target-delegates.c: Regenerate.
3264 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3266 <fetch_memtags>: New virtual method.
3267 <store_memtags>: New virtual method.
3268 (target_supports_memory_tagging): Define.
3269 (target_fetch_memtags): Define.
3270 (target_store_memtags): Define.
3271 * target-debug.h (target_debug_print_size_t)
3272 (target_debug_print_const_gdb_byte_vector_r)
3273 (target_debug_print_gdb_byte_vector_r): New functions.
3275 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3277 * target.h (target_longname): Remove.
3279 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3281 * target.h (target_is_pushed): Remove, update callers to use
3282 inferior::target_is_pushed instead.
3283 * target.c (target_is_pushed): Remove.
3285 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3287 * target.h (push_target): Remove, update callers to use
3288 inferior::push_target.
3289 * target.c (push_target): Remove.
3290 * inferior.h (class inferior) <push_target>: New overload.
3292 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3294 * target.h (unpush_target): Remove, update all callers
3295 to use `inferior::unpush_target` instead.
3296 (struct target_unpusher) <operator()>: Just declare.
3297 * target.c (unpush_target): Remove.
3298 (target_unpusher::operator()): New.
3300 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3302 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3304 (process_full_comp_unit): Validate the top-level tag before
3305 processing the first DIE.
3306 (read_func_scope): Ensure we have a valid builder.
3308 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3310 * objc-lang.c (objc_demangle): Renamed to
3311 objc_language::demangle_symbol, and moved later in the file.
3312 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3314 (objc_language::demangle_symbol): Defined outside of class
3315 declaration. The definition is the old objc_demangle with NULL
3316 changed to nullptr, and if conditions relating to nullptr pointers
3317 or null character checks made explicit.
3318 * objc-lang.h (objc_demangle): Delete declaration.
3320 2021-03-22 Martin Liska <mliska@suse.cz>
3322 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3323 (_initialize_arm_tdep): Likewise.
3325 2021-03-20 Tom Tromey <tom@tromey.com>
3327 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3328 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3329 * psymtab.h (make_psymbol_functions): Don't declare.
3330 * psymtab.c (make_psymbol_functions): Remove.
3331 (maintenance_print_psymbols): Update.
3332 * psympriv.h (struct psymbol_functions): Add no-argument
3334 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3335 <partial_symtabs>: Remove.
3336 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3337 * elfread.c (read_partial_symbols): Update.
3338 (elf_symfile_read): Remove check for existing partial symbols.
3340 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3342 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3344 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3346 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3347 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3349 2021-03-20 Tom Tromey <tom@tromey.com>
3351 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3352 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3353 * symfile-debug.c (objfile::has_partial_symbols)
3354 (objfile::find_last_source_symtab)
3355 (objfile::forget_cached_source_info)
3356 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3357 (objfile::print_stats, objfile::dump)
3358 (objfile::expand_symtabs_for_function)
3359 (objfile::expand_all_symtabs)
3360 (objfile::expand_symtabs_with_fullname)
3361 (objfile::map_matching_symbols)
3362 (objfile::expand_symtabs_matching)
3363 (objfile::find_pc_sect_compunit_symtab)
3364 (objfile::map_symbol_filenames)
3365 (objfile::find_compunit_symtab_by_address)
3366 (objfile::lookup_global_symbol_language)
3367 (objfile::require_partial_symbols): Update.
3368 * psymtab.c (maintenance_print_psymbols)
3369 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3370 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3371 * objfiles.c (objfile_relocate1): Update.
3372 * elfread.c (elf_symfile_read): Update.
3374 2021-03-20 Tom Tromey <tom@tromey.com>
3376 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3378 2021-03-20 Tom Tromey <tom@tromey.com>
3380 * psymtab.c (psymbol_functions::count_psyms): Rename.
3381 (psymbol_functions::print_stats): Update.
3382 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3385 2021-03-20 Tom Tromey <tom@tromey.com>
3387 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3388 (psymbol_functions::find_pc_sect_psymtab): Rename.
3389 (psymbol_functions::find_pc_sect_compunit_symtab)
3390 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3391 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3393 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3395 2021-03-20 Tom Tromey <tom@tromey.com>
3397 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3398 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3399 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3401 (add_psymbol_to_bcache): Remove.
3402 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3403 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3405 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3406 <add_psymbol>: Likewise.
3407 (standard_psymtab, legacy_psymtab): Likewise.
3408 * mdebugread.c (parse_partial_symbols): Update.
3409 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3410 (handle_psymbol_enumerators): Update.
3411 (new_psymtab): Add partial_symtabs parameter.
3412 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3413 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3415 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3416 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3418 * dbxread.c (read_dbx_symtab): Update.
3419 (start_psymtab): Add partial_symtabs parameter.
3420 (dbx_end_psymtab): Update.
3421 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3422 (ctf_psymtab): Add partial_symtabs parameter.
3423 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3425 (scan_partial_symbols): Add partial_symtabs parameter.
3426 (scan_partial_symbols, elfctf_build_psymtabs)
3427 (ctf_psymtab_add_enums): Update.
3429 2021-03-20 Tom Tromey <tom@tromey.com>
3431 * symfile.c (read_symbols): Use objfile method.
3432 * symfile-debug.c (objfile::require_partial_symbols): New method.
3433 * psymtab.h (require_partial_symbols): Don't declare.
3434 * psymtab.c (require_partial_symbols): Use objfile method. Now
3436 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3437 (psymbol_functions::lookup_symbol)
3438 (psymbol_functions::lookup_global_symbol_language)
3439 (psymbol_functions::find_last_source_symtab)
3440 (psymbol_functions::forget_cached_source_info)
3441 (psymbol_functions::print_stats)
3442 (psymbol_functions::expand_symtabs_for_function)
3443 (psymbol_functions::expand_all_symtabs)
3444 (psymbol_functions::expand_symtabs_with_fullname)
3445 (psymbol_functions::map_symbol_filenames)
3446 (psymbol_functions::map_matching_symbols)
3447 (psymbol_functions::expand_symtabs_matching)
3448 (psymbol_functions::find_compunit_symtab_by_address)
3449 (maintenance_print_psymbols, maintenance_info_psymtabs)
3450 (maintenance_check_psymtabs): Update.
3451 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3454 2021-03-20 Tom Tromey <tom@tromey.com>
3456 * xcoffread.c (xcoff_sym_fns): Update.
3457 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3458 * symfile-debug.c (objfile::has_partial_symbols): Use
3459 can_lazily_read_symbols.
3460 (debug_sym_read_psymbols): Remove.
3461 (debug_sym_fns, install_symfile_debug_logging): Update.
3462 * quick-symbol.h (struct quick_symbol_functions)
3463 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3464 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3465 * mipsread.c (ecoff_sym_fns): Update.
3466 * machoread.c (macho_sym_fns): Update.
3467 * elfread.c (struct lazy_dwarf_reader): New.
3468 (elf_symfile_read): Update.
3469 (read_psyms): Now a method of lazy_dwarf_reader.
3470 (elf_sym_fns): Update.
3471 (elf_sym_fns_lazy_psyms): Remove.
3472 * dbxread.c (aout_sym_fns): Update.
3473 * coffread.c (coff_sym_fns): Update.
3475 2021-03-20 Tom Tromey <tom@tromey.com>
3477 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3478 (reread_symbols): Move reset_psymtabs call later.
3479 * objfiles.c (objfile::objfile): Don't initialize
3482 2021-03-20 Tom Tromey <tom@tromey.com>
3484 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3485 set_partial_symtabs.
3486 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3487 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3489 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3491 (psymbol_functions::find_pc_sect_compunit_symtab)
3492 (psymbol_functions::print_stats, psymbol_functions::dump)
3493 (psymbol_functions::has_symbols): Update.
3494 (make_psymbol_functions, dump_psymtab_addrmap): Add
3495 partial_symtabs parameter.
3496 (maintenance_print_psymbols): Update.
3497 (psymbol_functions::expand_symtabs_matching): Update.
3498 * psympriv.h (struct psymbol_functions): Add constructor.
3499 <m_partial_symtabs>: New member.
3500 <set_partial_symtabs>: New method.
3502 2021-03-20 Tom Tromey <tom@tromey.com>
3504 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3506 (process_psymtab_comp_unit_reader)
3507 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3508 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3509 Reference psymtabs via per_bfd.
3511 2021-03-20 Tom Tromey <tom@tromey.com>
3513 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3515 (add_address_entry): Remove objfile parameter.
3516 (add_address_entry_worker): Update.
3517 (write_address_map): Replace objfile parameter with per_bfd.
3518 (write_gdbindex, write_psymtabs_to_index): Update.
3520 2021-03-20 Tom Tromey <tom@tromey.com>
3522 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3523 print_bcache parameter.
3524 * symfile-debug.c (objfile::print_stats): Add print_bcache
3526 * quick-symbol.h (struct quick_symbol_functions)
3527 <print_stats>: Add print_bcache parameter.
3528 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3530 (print_objfile_statistics): Move psymtab code to psymtab.c.
3531 * psymtab.c (count_psyms): Move from symmisc.c.
3532 (psymbol_functions::print_stats): Print partial symbol and bcache
3533 statistics. Add print_bcache parameter.
3534 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3535 (struct objfile) <print_stats>: Add print_bcache parameter.
3536 * maint.c (maintenance_print_statistics): Update.
3538 2021-03-20 Tom Tromey <tom@tromey.com>
3540 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3542 * dwarf2/read.c (create_addrmap_from_index)
3543 (create_addrmap_from_aranges): Set per_bfd addrmap.
3544 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3545 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3547 (dwarf2_read_debug_names): Don't set partial_symtabs.
3548 (dwarf2_initialize_objfile): Likewise.
3550 2021-03-20 Tom Tromey <tom@tromey.com>
3552 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3555 2021-03-20 Tom Tromey <tom@tromey.com>
3557 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3558 (~psymtab_discarder, keep): Update.
3559 <m_objfile>: Remove.
3560 <m_partial_symtabs>: New member.
3561 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3563 2021-03-20 Tom Tromey <tom@tromey.com>
3565 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3566 (xcoff_end_psymtab): Update.
3567 (scan_xcoff_symtab): Add partial_symtabs parameter.
3568 (xcoff_initial_scan): Update.
3569 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3570 * mdebugread.c (mdebug_build_psymtabs): Update.
3571 (parse_partial_symbols): Add partial_symtabs parameter.
3572 * dbxread.c (dbx_symfile_read): Update.
3573 (read_dbx_symtab): Add partial_symtabs parameter.
3574 (read_dbx_symtab): Update.
3575 (dbx_end_psymtab): Add partial_symtabs parameter.
3577 2021-03-20 Tom Tromey <tom@tromey.com>
3579 * quick-symbol.h (struct quick_symbol_functions)
3580 <relocated>: New method.
3581 * psymtab.h (struct psymbol_functions) <relocated>: New
3583 <fill_psymbol_map>: Declare method.
3584 <m_psymbol_map>: New member.
3585 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3586 (psymbol_functions::find_compunit_symtab_by_address): Update.
3587 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3588 (struct objfile) <psymbol_map>: Remove.
3589 * objfiles.c (objfile_relocate1): Update.
3591 2021-03-20 Tom Tromey <tom@tromey.com>
3593 * psympriv.h (struct psymbol_functions): New.
3594 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3595 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3596 (objfile::lookup_global_symbol_language): Update.
3597 * quick-symbol.h (struct quick_symbol_functions): Convert function
3598 pointers to methods. Add virtual destructor.
3599 (quick_symbol_functions_up): New typedef.
3600 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3601 (dwarf2_debug_names_functions): Don't declare.
3602 (make_psymbol_functions): Declare.
3603 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3604 (psymbol_functions::find_pc_sect_compunit_symtab)
3605 (psymbol_functions::lookup_symbol)
3606 (psymbol_functions::lookup_global_symbol_language)
3607 (psymbol_functions::find_last_source_symtab)
3608 (psymbol_functions::forget_cached_source_info)
3609 (psymbol_functions::print_stats, psymbol_functions::dump)
3610 (psymbol_functions::expand_symtabs_for_function)
3611 (psymbol_functions::expand_all_symtabs)
3612 (psymbol_functions::expand_symtabs_with_fullname)
3613 (psymbol_functions::map_symbol_filenames)
3614 (psymbol_functions::map_matching_symbols)
3615 (psymbol_functions::expand_symtabs_matching)
3616 (psymbol_functions::has_symbols)
3617 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3618 (psym_functions): Remove.
3619 (make_psymbol_functions): New function.
3620 * objfiles.h (struct objfile) <qf>: Change type.
3621 * elfread.c (elf_symfile_read): Update.
3622 * dwarf2/read.c (struct dwarf2_base_index_functions)
3623 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3624 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3625 (dwarf2_base_index_functions::find_last_source_symtab)
3626 (dwarf2_base_index_functions::forget_cached_source_info)
3627 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3628 (dwarf2_gdb_index::lookup_symbol)
3629 (dwarf2_base_index_functions::print_stats)
3630 (dwarf2_gdb_index::dump)
3631 (dwarf2_gdb_index::expand_symtabs_for_function)
3632 (dwarf2_base_index_functions::expand_all_symtabs)
3633 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3635 (dwarf2_gdb_index::map_matching_symbols): New method.
3636 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3637 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3638 (dwarf2_base_index_functions::map_symbol_filenames)
3639 (dwarf2_base_index_functions::has_symbols): Rename.
3640 (dwarf2_gdb_index_functions): Remove.
3641 (dwarf2_debug_names_index::lookup_symbol)
3642 (dwarf2_debug_names_index::dump)
3643 (dwarf2_debug_names_index::expand_symtabs_for_function)
3644 (dwarf2_debug_names_index::map_matching_symbols)
3645 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3646 (dwarf2_debug_names_functions): Remove.
3647 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3650 2021-03-20 Tom Tromey <tom@tromey.com>
3652 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3654 * xcoffread.c (xcoff_sym_fns): Update.
3655 * symfile.h (struct sym_fns) <qf>: Remove.
3656 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3657 * symfile-debug.c (objfile::has_partial_symbols)
3658 (objfile::find_last_source_symtab)
3659 (objfile::forget_cached_source_info)
3660 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3661 (objfile::print_stats, objfile::dump)
3662 (objfile::expand_symtabs_for_function)
3663 (objfile::expand_all_symtabs)
3664 (objfile::expand_symtabs_with_fullname)
3665 (objfile::map_matching_symbols)
3666 (objfile::expand_symtabs_matching)
3667 (objfile::find_pc_sect_compunit_symtab)
3668 (objfile::map_symbol_filenames)
3669 (objfile::find_compunit_symtab_by_address)
3670 (objfile::lookup_global_symbol_language, debug_sym_fns)
3671 (install_symfile_debug_logging): Update.
3672 * objfiles.h (struct objfile) <qf>: New member.
3673 * mipsread.c (ecoff_sym_fns): Update.
3674 * machoread.c (macho_sym_fns): Update.
3675 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3677 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3678 * dbxread.c (aout_sym_fns): Update.
3679 * coffread.c (coff_sym_fns): Update.
3681 2021-03-20 Tom Tromey <tom@tromey.com>
3683 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3684 (expand_symtabs_file_matcher_ftype)
3685 (expand_symtabs_symbol_matcher_ftype)
3686 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3687 Move to quick-symbol.h.
3688 * quick-symbol.h: New file.
3690 2021-03-20 Tom Tromey <tom@tromey.com>
3692 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3693 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3694 (basic_lookup_transparent_type_quick)
3695 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3696 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3698 * symmisc.c (print_objfile_statistics, dump_objfile)
3699 (maintenance_expand_symtabs): Update.
3700 * symfile.c (symbol_file_add_with_addrs)
3701 (expand_symtabs_matching, map_symbol_filenames): Update.
3702 * symfile-debug.c (objfile::has_partial_symbols)
3703 (objfile::find_last_source_symtab)
3704 (objfile::forget_cached_source_info)
3705 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3706 (objfile::print_stats, objfile::dump)
3707 (objfile::expand_symtabs_for_function)
3708 (objfile::expand_all_symtabs)
3709 (objfile::expand_symtabs_with_fullname)
3710 (objfile::map_matching_symbols)
3711 (objfile::expand_symtabs_matching)
3712 (objfile::find_pc_sect_compunit_symtab)
3713 (objfile::map_symbol_filenames)
3714 (objfile::find_compunit_symtab_by_address)
3715 (objfile::lookup_global_symbol_language): New methods.
3716 (debug_sym_quick_functions): Remove.
3717 (debug_sym_fns, install_symfile_debug_logging): Update.
3718 * source.c (forget_cached_source_info_for_objfile)
3719 (select_source_symtab): Update.
3720 * objfiles.h (struct objfile): Add methods corresponding to
3721 quick_symbol_functions.
3722 * objfiles.c (objfile::has_partial_symbols): Move to
3724 * linespec.c (iterate_over_all_matching_symtabs): Update.
3725 * cp-support.c (add_symbol_overload_list_qualified): Update.
3726 * ada-lang.c (add_nonlocal_symbols): Update.
3728 2021-03-20 Tom Tromey <tom@tromey.com>
3730 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3731 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3733 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3734 * psymtab.c (psym_has_symbols): Return bool.
3735 * objfiles.c (objfile::has_partial_symbols): Return bool.
3736 * dwarf2/read.c (dw2_has_symbols): Return bool.
3738 2021-03-20 Tom Tromey <tom@tromey.com>
3740 * symfile.c (read_symbols): Update.
3741 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3742 (objfile_has_partial_symbols): Don't declare.
3743 * objfiles.c (objfile::has_partial_symbols): Rename from
3744 objfile_has_partial_symbols.
3745 (objfile_has_symbols, have_partial_symbols): Update.
3746 * elfread.c (elf_symfile_read): Update.
3747 * dwarf2/read.c (dwarf2_has_info): Update.
3748 * coffread.c (coff_symfile_read): Update.
3750 2021-03-20 Tom Tromey <tom@tromey.com>
3752 * coffread.c: Include dwarf2/public.h.
3753 * dwarf2/frame.c: Include dwarf2/public.h.
3754 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3755 * dwarf2/public.h: New file.
3756 * dwarf2/read.c: Include dwarf2/public.h.
3757 * elfread.c: Include dwarf2/public.h.
3758 * machoread.c: Include dwarf2/public.h.
3759 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3760 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3761 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3762 * xcoffread.c: Include dwarf2/public.h.
3764 2021-03-20 Tom Tromey <tom@tromey.com>
3766 * symfile.h (enum dwarf2_section_enum)
3767 (dwarf2_get_section_info): Move to dwarf2/read.h.
3768 * dwarf2/read.h (enum dwarf2_section_enum)
3769 (dwarf2_get_section_info): Move from symfile.h.
3771 2021-03-19 Pedro Alves <pedro@palves.net>
3773 * thread.c (any_thread_of_inferior): Check if there's a selected
3774 thread before calling inferior_thread().
3776 2021-03-18 Tom Tromey <tromey@adacore.com>
3778 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3780 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3781 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3783 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3785 * python/py-param.c (get_set_value): Update header comment.
3787 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3789 * infrun.c (check_multi_target_resumption): Remove argument to
3790 all_non_exited_inferiors.
3792 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3794 * windows-nat.c (windows_init_thread_list): Add message to
3797 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3799 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3800 well as PyLong_Check for Python 2.
3802 2021-03-15 Tom Tromey <tromey@adacore.com>
3805 * rust-exp.y (maker_map): Use gdb::hash_enum.
3806 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3808 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3810 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3813 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3815 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3816 parameter, adjust caller.
3818 2021-03-15 Tom Tromey <tromey@adacore.com>
3820 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3822 2021-03-15 Tom Tromey <tromey@adacore.com>
3824 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3825 ada_ensure_varsize_limit.
3827 2021-03-15 Tom Tromey <tromey@adacore.com>
3829 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3831 * ada-exp.y (maybe_overload): New function.
3832 (ada_wrap_overload): New function.
3833 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3834 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3835 (or_else_exp, xor_exp, primary): Update.
3837 2021-03-15 Tom Tromey <tromey@adacore.com>
3840 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3841 call for tagged type.
3843 2021-03-15 Tom Tromey <tromey@adacore.com>
3845 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3848 2021-03-15 Tom Tromey <tromey@adacore.com>
3850 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3852 (ada_assign_operation::evaluate): Update.
3853 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3856 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3858 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3860 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3862 * python/python.c (gdbpy_source_objfile_script): Use
3863 make_scoped_restore to restore gdbpy_current_objfile.
3864 (gdbpy_execute_objfile_script): Likewise.
3866 2021-03-14 Tom Tromey <tom@tromey.com>
3868 * dwarf2/read.c (read_attribute_value): Use cu_header
3871 2021-03-14 Tom Tromey <tom@tromey.com>
3873 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3874 (peek_die_abbrev): Use reader.abfd.
3876 2021-03-14 Tom Tromey <tom@tromey.com>
3878 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3881 2021-03-13 Tom Tromey <tom@tromey.com>
3883 * dwarf2/read.c (struct partial_die_info): Update.
3884 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3885 (load_partial_dies, partial_die_info::partial_die_info): Update.
3886 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3888 2021-03-13 Tom Tromey <tom@tromey.com>
3890 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3892 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3895 * cp-support.c: Use scoped_segv_handler_restore.
3896 * event-top.c (thread_local_segv_handler): Made static.
3897 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3899 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3901 * event-top.h (class scoped_segv_handler_restore): New class.
3902 (thread_local_segv_handler): Removed.
3904 2021-03-10 Tom Tromey <tromey@adacore.com>
3906 * parser-defs.h (parser_state): Change completion to bool.
3907 <parse_completion>: Likewise.
3908 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3909 (ada_resolve_variable, ada_resolve_function): Update.
3910 * ada-lang.c (ada_find_operator_symbol): Change
3911 parse_completion to bool.
3912 (ada_resolve_funcall, ada_resolve_variable)
3913 (ada_resolve_function): Likewise.
3915 2021-03-09 Tom Tromey <tromey@adacore.com>
3917 * eval.c (operation::evaluate_funcall): Use function formal
3918 parameter types when evaluating.
3920 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3922 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3923 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3924 and owner to m_owner.
3926 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3928 * f-exp.h (eval_op_f_loc): Declare.
3929 (expr::fortran_loc_operation): New typedef.
3930 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3932 (f77_keywords): Add LOC keyword.
3933 * f-lang.c (eval_op_f_loc): New function.
3934 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3936 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3938 * f-exp.h (eval_op_f_array_shape): Declare.
3939 (fortran_array_shape_operation): New type.
3940 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3942 (f77_keywords): Add "shape" keyword.
3943 * f-lang.c (fortran_array_shape): New function.
3944 (eval_op_f_array_shape): New function.
3945 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3947 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3949 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3951 (expr::fortran_array_size_1arg): New type.
3952 (expr::fortran_array_size_2arg): Likewise.
3953 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3954 UNOP_OR_BINOP_INTRINSIC.
3955 (f77_keywords): Add "size" keyword.
3956 * f-lang.c (fortran_array_size): New function.
3957 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3958 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3960 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3962 * f-exp.h (eval_op_f_rank): Declare.
3963 (expr::fortran_rank_operation): New typedef.
3964 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3966 (f77_keywords): Add "rank" keyword.
3967 * f-lang.c (eval_op_f_rank): New function.
3968 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3970 2021-03-08 Tom Tromey <tom@tromey.com>
3972 * printcmd.c (set_command): Remove null check.
3973 * value.c (init_if_undefined_command): Remove null check.
3975 2021-03-08 Tom Tromey <tom@tromey.com>
3977 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3979 * p-exp.y (variable): Update.
3980 * go-exp.y (variable): Update.
3981 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3982 Remove overload for objfile.
3983 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3985 (check_objfile): Likewise.
3986 (dump_for_expression): Likewise. Remove overload for objfile.
3987 (class var_msym_value_operation): Use bound_minimal_symbol.
3988 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3990 (var_msym_value_operation::evaluate_for_address)
3991 (var_msym_value_operation::evaluate_for_sizeof)
3992 (var_msym_value_operation::evaluate_for_cast): Update.
3993 * d-exp.y (PrimaryExpression): Update.
3994 * c-exp.y (variable): Update.
3995 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3996 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3998 * ada-exp.y (write_var_or_type): Update.
4000 2021-03-08 Tom Tromey <tom@tromey.com>
4002 * parser-defs.h (exp_uses_objfile): Return bool.
4003 * parse.c (exp_uses_objfile): Return bool.
4005 2021-03-08 Tom Tromey <tom@tromey.com>
4007 * value.h (eval_skip_value): Don't declare.
4008 * opencl-lang.c (eval_opencl_assign): Update.
4009 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4010 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4011 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4012 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4013 * expop.h (typeof_operation::evaluate)
4014 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4015 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4016 (cxx_cast_operation::evaluate): Update.
4017 * eval.c (eval_skip_value): Remove.
4018 (eval_op_scope, eval_op_var_entry_value)
4019 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4020 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4021 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4022 (eval_op_binary, eval_op_subscript, eval_op_equal)
4023 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4024 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4025 (eval_op_complement, eval_op_lognot, eval_op_ind)
4026 (eval_op_memval, eval_op_preinc, eval_op_predec)
4027 (eval_op_postinc, eval_op_postdec, eval_op_type)
4028 (eval_binop_assign_modify, eval_op_objc_msgcall)
4029 (eval_multi_subscript, logical_and_operation::evaluate)
4030 (logical_or_operation::evaluate, array_operation::evaluate)
4031 (operation::evaluate_for_cast)
4032 (var_msym_value_operation::evaluate_for_cast)
4033 (var_value_operation::evaluate_for_cast): Update.
4034 * c-lang.c (c_string_operation::evaluate): Update.
4035 * c-exp.h (objc_nsstring_operation::evaluate)
4036 (objc_selector_operation::evaluate): Update.
4037 * ada-lang.c (ada_assign_operation::evaluate)
4038 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4039 (ada_atr_size): Update.
4041 2021-03-08 Tom Tromey <tom@tromey.com>
4043 * eval.c: Merge "namespace" scopes.
4045 2021-03-08 Tom Tromey <tom@tromey.com>
4047 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4049 * parse.c (expr_builder::expr_builder, expr_builder::release):
4052 2021-03-08 Tom Tromey <tom@tromey.com>
4054 * parse.c (expression::expression, expression::~expression):
4056 * expression.h (struct expression): Inline constructor. Remove
4059 2021-03-08 Tom Tromey <tom@tromey.com>
4061 * std-operator.def (BINOP_END): Remove.
4062 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4063 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4064 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4065 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4066 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4069 2021-03-08 Tom Tromey <tom@tromey.com>
4071 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4073 2021-03-08 Tom Tromey <tom@tromey.com>
4075 * std-operator.def (OP_EXTENDED0): Remove.
4077 2021-03-08 Tom Tromey <tom@tromey.com>
4079 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4080 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4083 2021-03-08 Tom Tromey <tom@tromey.com>
4085 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4086 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4088 2021-03-08 Tom Tromey <tom@tromey.com>
4090 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4091 * ada-lang.c (ada_binop_minmax): Update.
4092 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4093 Use BINOP_MIN and BINOP_MAX.
4095 2021-03-08 Tom Tromey <tom@tromey.com>
4097 * value.h (evaluate_subexp_with_coercion): Don't declare.
4098 * parse.c (exp_descriptor_standard): Remove.
4099 (expr_builder::expr_builder, expr_builder::release): Update.
4100 (expression::expression): Remove size_t parameter.
4101 (expression::~expression): Simplify.
4102 (expression::resize): Remove.
4103 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4104 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4105 (write_exp_elt_longcst, write_exp_elt_floatcst)
4106 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4107 (write_exp_string_vector, write_exp_bitstring): Remove.
4108 * p-lang.h (class pascal_language) <opcode_print_table,
4109 op_print_tab>: Remove.
4110 * p-lang.c (pascal_language::op_print_tab): Remove.
4111 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4113 * objc-lang.c (objc_op_print_tab): Remove.
4114 (class objc_language) <opcode_print_table>: Remove.
4115 * m2-lang.h (class m2_language) <opcode_print_table,
4116 op_print_tab>: Remove.
4117 * m2-lang.c (m2_language::op_print_tab): Remove.
4118 * language.h (struct language_defn) <post_parser, expression_ops,
4119 opcode_print_table>: Remove.
4120 * language.c (language_defn::expression_ops)
4121 (auto_or_unknown_language::opcode_print_table): Remove.
4122 * go-lang.h (class go_language) <opcode_print_table,
4123 op_print_tab>: Remove.
4124 * go-lang.c (go_language::op_print_tab): Remove.
4125 * f-lang.h (class f_language) <opcode_print_table>: Remove
4126 <op_print_tab>: Remove.
4127 * f-lang.c (f_language::op_print_tab): Remove.
4128 * expression.h (union exp_element): Remove.
4129 (struct expression): Remove size_t parameter from constructor.
4131 <first_opcode>: Update.
4132 <nelts, elts>: Remove.
4133 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4134 (evaluate_subexp_standard, print_expression, op_string)
4135 (dump_raw_expression): Don't declare.
4136 * expprint.c (print_expression, print_subexp)
4137 (print_subexp_funcall, print_subexp_standard, op_string)
4138 (dump_raw_expression, dump_subexp, dump_subexp_body)
4139 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4140 (dump_prefix_expression): Update.
4141 * eval.c (evaluate_subexp): Remove.
4142 (evaluate_expression, evaluate_type): Update.
4143 (evaluate_subexpression_type): Remove.
4144 (fetch_subexp_value): Remove "pc" parameter. Update.
4145 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4146 (evaluate_subexp_standard, evaluate_subexp_for_address)
4147 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4148 (evaluate_subexp_for_cast): Remove.
4149 (parse_and_eval_type): Update.
4150 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4151 * d-lang.c (d_op_print_tab): Remove.
4152 (class d_language) <opcode_print_table>: Remove.
4153 * c-lang.h (c_op_print_tab): Don't declare.
4154 * c-lang.c (c_op_print_tab): Remove.
4155 (class c_language, class cplus_language, class asm_language, class
4156 minimal_language) <opcode_print_table>: Remove.
4157 * breakpoint.c (update_watchpoint, watchpoint_check)
4158 (watchpoint_exp_is_const, watch_command_1): Update.
4159 * ax-gdb.h (union exp_element): Don't declare.
4160 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4161 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4162 (gen_expr_binop_rest): Remove.
4163 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4164 * ada-lang.c (ada_op_print_tab): Remove.
4165 (class ada_language) <post_parser, opcode_print_table>: Remove.
4167 2021-03-08 Tom Tromey <tom@tromey.com>
4169 * go-lang.c (go_language::expression_ops): Don't declare.
4170 * go-lang.h (class go_language) <expression_ops>: Remove.
4171 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4173 (class opencl_language) <expression_ops>: Remove.
4174 * d-lang.c (class d_language) <expression_ops>: Remove.
4175 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4176 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4177 (class c_language, class cplus_language, class asm_language)
4178 (class minimal_language) <expression_ops>: Remove.
4180 2021-03-08 Tom Tromey <tom@tromey.com>
4182 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4183 (evaluate_subexp_type, assign_aggregate)
4184 (aggregate_assign_positional, aggregate_assign_from_choices)
4185 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4186 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4187 (ada_operator_check, ada_forward_operator_length)
4188 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4190 (post_parser): Update.
4191 (class ada_language) <expresssion_ops>: Remove.
4193 2021-03-08 Tom Tromey <tom@tromey.com>
4195 * m2-lang.h (class m2_language) <expresssion_ops,
4196 exp_descriptor_modula2>: Remove.
4197 * m2-lang.c (evaluate_subexp_modula2)
4198 (m2_language::exp_descriptor_modula2): Remove.
4200 2021-03-08 Tom Tromey <tom@tromey.com>
4202 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4203 <exp_descriptor_tab>: Remove.
4204 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4205 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4206 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4207 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4210 2021-03-08 Tom Tromey <tom@tromey.com>
4212 * rust-lang.h (class rust_language) <expression_ops,
4213 exp_descriptor_tab>: Remove.
4214 * rust-lang.c (rust_evaluate_funcall): Remove.
4215 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4217 (rust_evaluate_subexp): Remove.
4218 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4219 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4220 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4222 2021-03-08 Tom Tromey <tom@tromey.com>
4224 * ada-exp.y: Create operations.
4225 (empty_stoken): Remove.
4226 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4227 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4228 (components): New global.
4229 (push_component, choice_component, pop_component, pop_components):
4231 (associations): New global
4232 (push_association, pop_association, pop_associations): New
4234 (ada_parse): Update.
4235 (write_var_from_sym, write_int): Create operations.
4236 (write_exp_op_with_string): Remove.
4237 (write_object_renaming, write_selectors, write_ambiguous_var)
4238 (write_var_or_type, write_name_assoc): Create operations.
4239 * ada-lang.h (ada_index_type): Declare.
4240 * ada-lang.c (ada_index_type): No longer static.
4242 2021-03-08 Tom Tromey <tom@tromey.com>
4244 * f-exp.y: Create operations.
4245 (f_language::parser): Update.
4247 2021-03-08 Tom Tromey <tom@tromey.com>
4249 * m2-exp.y: Create operations.
4250 (m2_language::parser): Update.
4252 2021-03-08 Tom Tromey <tom@tromey.com>
4254 * p-exp.y: Create operations.
4255 (pascal_language::parser): Update.
4257 2021-03-08 Tom Tromey <tom@tromey.com>
4259 * d-exp.y: Create operations.
4262 2021-03-08 Tom Tromey <tom@tromey.com>
4264 * go-exp.y: Create operations.
4265 (go_language::parser): Update.
4267 2021-03-08 Tom Tromey <tom@tromey.com>
4269 * objc-lang.c (end_msglist): Create operations.
4270 * c-exp.y: Change parser to create operations.
4271 (write_destructor_name): Remove.
4274 2021-03-08 Tom Tromey <tom@tromey.com>
4276 * rust-exp.y: Create operations.
4277 (rust_parser::convert_params_to_expression): Change return type.
4278 (binop_maker_ftype): New typedef.
4279 (maker_map): New global.
4280 (rust_parser::convert_ast_to_expression): Change return type.
4281 (rust_language::parser): Update.
4282 (_initialize_rust_exp): Initialize maker_map.
4284 2021-03-08 Tom Tromey <tom@tromey.com>
4286 * stap-probe.c (binop_maker_ftype): New typedef.
4287 (stap_maker_map): New global.
4288 (stap_make_binop): New function.
4289 (stap_parse_register_operand): Return operation_up.
4290 (stap_parse_single_operand, stap_parse_argument_conditionally)
4291 (stap_parse_argument_1): Likewise.
4292 (stap_parse_argument): Create operations.
4293 (stap_probe::parse_arguments): Update.
4294 (_initialize_stap_probe): Initialize stap_maker_map.
4295 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4297 * i386-tdep.h (i386_stap_parse_special_token): Change return
4299 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4300 (i386_stap_parse_special_token_three_arg_disp)
4301 (i386_stap_parse_special_token): Change return type.
4302 * gdbarch.sh (stap_parse_special_token): Change return type.
4303 * gdbarch.c: Rebuild.
4304 * gdbarch.h: Rebuild.
4305 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4307 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4310 2021-03-08 Tom Tromey <tom@tromey.com>
4312 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4313 * gdbarch.h: Rebuild.
4314 * gdbarch.c: Rebuild.
4315 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4316 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4318 (amd64_dtrace_parse_probe_argument): Update.
4320 2021-03-08 Tom Tromey <tom@tromey.com>
4322 * parser-defs.h (struct parser_state) <push, push_new,
4323 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4324 wrap2>: New methods.
4325 <m_operations>: New member.
4326 * parse.c (parser_state::push_c_string)
4327 (parser_state::push_symbol, parser_state::push_dollar): New
4330 2021-03-08 Tom Tromey <tom@tromey.com>
4332 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4334 (struct parser_state) <mark_struct_expression>: New method.
4335 * parse.c (parser_state::mark_struct_expression): Update assert.
4336 (parser_state::mark_struct_expression): New method.
4337 (parser_state::mark_completion_tag): Update assert.
4338 (parse_expression_for_completion): Handle expout_last_op.
4340 2021-03-08 Tom Tromey <tom@tromey.com>
4342 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4344 * value.h (fetch_subexp_value): Add "op" parameter.
4345 * value.c (init_if_undefined_command): Update.
4346 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4347 * stap-probe.c (stap_probe::compile_to_ax): Update.
4348 * printcmd.c (set_command): Update.
4349 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4351 * parser-defs.h (struct expr_builder) <set_operation>: New
4353 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4354 * expression.h (struct expression) <first_opcode>: Update.
4356 * expprint.c (dump_raw_expression, dump_prefix_expression):
4358 * expop.h (class var_value_operation) <get_symbol>: New method.
4359 (class register_operation) <get_name>: New method.
4360 (class equal_operation): No longer a typedef, now a subclass.
4361 (class unop_memval_operation) <get_type>: New method.
4362 (class assign_operation) <get_lhs>: New method.
4363 (class unop_cast_operation) <get_type>: New method.
4364 * eval.c (evaluate_expression, evaluate_type)
4365 (evaluate_subexpression_type): Update.
4366 (fetch_subexp_value): Add "op" parameter.
4367 (parse_and_eval_type): Update.
4368 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4369 * breakpoint.c (update_watchpoint, watchpoint_check)
4370 (watchpoint_exp_is_const, watch_command_1): Update.
4371 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4374 2021-03-08 Tom Tromey <tom@tromey.com>
4376 * ada-lang.c (ada_value_binop): Do not use op_string.
4378 2021-03-08 Tom Tromey <tom@tromey.com>
4380 * expprint.c (dump_for_expression): New overload.
4381 * expop.h (check_objfile, dump_for_expression): Declare new
4383 * ada-lang.c (check_objfile): New overload.
4384 (assign_component, ada_aggregate_component::uses_objfile)
4385 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4386 (ada_aggregate_component::assign_aggregate)
4387 (ada_positional_component::uses_objfile)
4388 (ada_positional_component::dump, ada_positional_component::assign)
4389 (ada_discrete_range_association::uses_objfile)
4390 (ada_discrete_range_association::dump)
4391 (ada_discrete_range_association::assign)
4392 (ada_name_association::uses_objfile, ada_name_association::dump)
4393 (ada_name_association::assign)
4394 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4395 (ada_choices_component::assign)
4396 (ada_others_component::uses_objfile, ada_others_component::dump)
4397 (ada_others_component::assign, ada_assign_operation::evaluate):
4399 * ada-exp.h (ada_string_operation) <get_name>: New method.
4400 (class ada_assign_operation): New.
4401 (class ada_component): New.
4402 (ada_component_up): New typedef.
4403 (class ada_aggregate_operation, class ada_aggregate_component)
4404 (class ada_positional_component, class ada_others_component)
4405 (class ada_association): New.
4406 (ada_association_up): New typedef.
4407 (class ada_choices_component)
4408 (class ada_discrete_range_association)
4409 (class ada_name_association): New.
4411 2021-03-08 Tom Tromey <tom@tromey.com>
4413 * ada-lang.c (ada_var_value_operation::resolve)
4414 (ada_funcall_operation::resolve)
4415 (ada_ternop_slice_operation::resolve): New methods.
4416 * ada-exp.h (struct ada_resolvable): New.
4417 (class ada_var_value_operation): Derive from ada_resolvable.
4418 <get_block, resolve>: New methods.
4419 (class ada_funcall_operation): Derive from ada_resolvable.
4420 <resolve>: New method.
4421 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4422 <resolve>: New method.
4424 2021-03-08 Tom Tromey <tom@tromey.com>
4426 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4427 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4429 (class ada_funcall_operation): New.
4431 2021-03-08 Tom Tromey <tom@tromey.com>
4433 * ada-lang.c (ada_structop_operation::evaluate): New method.
4434 * ada-exp.h (class ada_structop_operation): New.
4436 2021-03-08 Tom Tromey <tom@tromey.com>
4438 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4439 * ada-exp.h (class ada_unop_ind_operation): New.
4441 2021-03-08 Tom Tromey <tom@tromey.com>
4443 * ada-lang.c (ada_binop_exp): No longer static.
4444 * ada-exp.h (ada_binop_exp_operation): New typedef.
4446 2021-03-08 Tom Tromey <tom@tromey.com>
4448 * ada-lang.c (ada_val_atr): No longer static.
4449 (ada_atr_val_operation::evaluate): New method.
4450 * ada-exp.h (class ada_atr_val_operation): New.
4452 2021-03-08 Tom Tromey <tom@tromey.com>
4454 * ada-lang.c (ada_pos_atr): No longer static.
4455 * ada-exp.h (ada_pos_operation): New typedef.
4457 2021-03-08 Tom Tromey <tom@tromey.com>
4459 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4461 (ada_evaluate_subexp): Use it.
4463 2021-03-08 Tom Tromey <tom@tromey.com>
4465 * ada-lang.c (ada_binop_minmax): No longer static.
4466 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4469 2021-03-08 Tom Tromey <tom@tromey.com>
4471 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4473 * ada-exp.h (class ada_var_msym_value_operation): New.
4475 2021-03-08 Tom Tromey <tom@tromey.com>
4477 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4478 (ada_var_value_operation::evaluate): New methods.
4479 * ada-exp.h (class ada_var_value_operation): New.
4481 2021-03-08 Tom Tromey <tom@tromey.com>
4483 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4484 * ada-exp.h (class ada_unop_atr_operation): New.
4486 2021-03-08 Tom Tromey <tom@tromey.com>
4488 * ada-lang.c (ada_binop_in_bounds): No longer static.
4489 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4491 2021-03-08 Tom Tromey <tom@tromey.com>
4493 * ada-lang.c (ada_ternop_slice): No longer static.
4494 * ada-exp.h (class ada_ternop_slice_operation): New.
4496 2021-03-08 Tom Tromey <tom@tromey.com>
4498 * ada-exp.h (ada_bitwise_operation): New template class.
4499 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4500 (ada_bitwise_xor_operation): New typedefs.
4502 2021-03-08 Tom Tromey <tom@tromey.com>
4504 * ada-lang.c (ada_equal_binop): No longer static.
4505 * ada-exp.h (class ada_binop_equal_operation): New.
4507 2021-03-08 Tom Tromey <tom@tromey.com>
4509 * ada-lang.c (ada_mult_binop): No longer static.
4510 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4511 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4513 2021-03-08 Tom Tromey <tom@tromey.com>
4515 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4516 * ada-exp.h (class ada_binop_addsub_operation): New.
4518 2021-03-08 Tom Tromey <tom@tromey.com>
4520 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4521 (ada_resolve_variable): Declare.
4522 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4523 (ada_resolve_variable): New functions.
4524 (resolve_subexp): Update.
4526 2021-03-08 Tom Tromey <tom@tromey.com>
4528 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4530 * c-exp.h (class opencl_ternop_cond_operation): New.
4532 2021-03-08 Tom Tromey <tom@tromey.com>
4534 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4536 * c-exp.h (class opencl_logical_binop_operation): New.
4538 2021-03-08 Tom Tromey <tom@tromey.com>
4540 * opencl-lang.c (opencl_structop_operation::evaluate): New
4542 * c-exp.h (class opencl_structop_operation): New.
4544 2021-03-08 Tom Tromey <tom@tromey.com>
4546 * opencl-lang.c (opencl_logical_not): No longer static. Change
4548 (evaluate_subexp_opencl): Update.
4549 * c-exp.h (opencl_notequal_operation): New typedef.
4551 2021-03-08 Tom Tromey <tom@tromey.com>
4553 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4554 static. Change parameters.
4555 (eval_opencl_assign): No longer static. Add "op" parameter.
4556 (evaluate_subexp_opencl): Update.
4557 * c-exp.h (opencl_binop_operation): New template class.
4558 (opencl_assign_operation, opencl_equal_operation)
4559 (opencl_notequal_operation, opencl_less_operation)
4560 (opencl_gtr_operation, opencl_geq_operation)
4561 (opencl_leq_operation): New typedefs.
4563 2021-03-08 Tom Tromey <tom@tromey.com>
4565 * opencl-lang.c (opencl_value_cast): No longer static.
4566 * c-exp.h (opencl_cast_type_operation): New typedef.
4568 2021-03-08 Tom Tromey <tom@tromey.com>
4570 * f-exp.h (eval_op_f_allocated): Declare.
4571 (fortran_allocated_operation): New typedef.
4572 * f-lang.c (eval_op_f_allocated): No longer static.
4574 2021-03-08 Tom Tromey <tom@tromey.com>
4576 * f-lang.c (eval_op_f_associated): New functions.
4577 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4580 2021-03-08 Tom Tromey <tom@tromey.com>
4582 * f-lang.c (fortran_bound_1arg::evaluate)
4583 (fortran_bound_2arg::evaluate): New methods.
4584 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4587 2021-03-08 Tom Tromey <tom@tromey.com>
4589 * expop.h (class unop_addr_operation) <get_expression>: New
4591 * f-lang.c (fortran_undetermined::value_subarray)
4592 (fortran_undetermined::evaluate): New methods.
4593 (fortran_prepare_argument): New overload.
4594 * f-exp.h (class fortran_range_operation)
4595 (class fortran_undetermined): New classes.
4597 2021-03-08 Tom Tromey <tom@tromey.com>
4599 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4600 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4603 2021-03-08 Tom Tromey <tom@tromey.com>
4605 * expression.h (class operation) <evaluate_funcall>: New methods.
4606 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4607 (class var_value_operation) <evaluate_funcall>: New method.
4608 (class structop_base_operation) <evaluate_funcall>: New method.
4609 (class var_msym_value_operation) <evaluate_funcall>: New method.
4610 (class structop_member_base): New class.
4611 (class structop_member_operation): Derive from
4612 structop_member_base.
4613 (class structop_mptr_operation): Derive from
4614 structop_member_base.
4615 (class funcall_operation): New class.
4616 * eval.c (operation::evaluate_funcall)
4617 (var_value_operation::evaluate_funcall)
4618 (scope_operation::evaluate_funcall)
4619 (structop_member_base::evaluate_funcall)
4620 (structop_base_operation::evaluate_funcall): New methods.
4622 2021-03-08 Tom Tromey <tom@tromey.com>
4624 * expop.h (class array_operation): New.
4625 * eval.c (array_operation::evaluate_struct_tuple)
4626 (array_operation::evaluate): New methods.
4628 2021-03-08 Tom Tromey <tom@tromey.com>
4630 * expop.h (class adl_func_operation): New.
4631 * eval.c (adl_func_operation::evaluate): New method.
4633 2021-03-08 Tom Tromey <tom@tromey.com>
4635 * ada-lang.c (ada_unop_in_range): No longer static.
4636 * ada-exp.h (class ada_unop_range_operation): New.
4638 2021-03-08 Tom Tromey <tom@tromey.com>
4640 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4642 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4643 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4645 2021-03-08 Tom Tromey <tom@tromey.com>
4647 * expop.h (class logical_and_operation)
4648 (class logical_or_operation): New.
4649 * eval.c (logical_and_operation::evaluate)
4650 (logical_or_operation::evaluate): New methods.
4651 * ax-gdb.c (logical_and_operation::do_generate_ax)
4652 (logical_or_operation::do_generate_ax): New methods.
4654 2021-03-08 Tom Tromey <tom@tromey.com>
4656 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4658 * m2-exp.h: New file.
4660 2021-03-08 Tom Tromey <tom@tromey.com>
4662 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4663 * rust-exp.h (class rust_aggregate_operation): New.
4665 2021-03-08 Tom Tromey <tom@tromey.com>
4667 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4669 * rust-exp.h (class rust_struct_anon): New.
4670 (class rust_structop): New.
4672 2021-03-08 Tom Tromey <tom@tromey.com>
4674 * rust-lang.c (rust_range): No longer static.
4675 * rust-exp.h (class rust_range_operation): New.
4677 2021-03-08 Tom Tromey <tom@tromey.com>
4679 * rust-lang.c (rust_subscript): No longer static.
4680 * rust-exp.h (class rust_subscript_operation): New.
4682 2021-03-08 Tom Tromey <tom@tromey.com>
4684 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4686 (rust_evaluate_subexp): Update.
4687 * rust-exp.h (class rust_unop_ind_operation): New.
4689 2021-03-08 Tom Tromey <tom@tromey.com>
4691 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4692 longer static. Add "opcode" parameter.
4693 (rust_evaluate_subexp): Update.
4694 * rust-exp.h: New file.
4696 2021-03-08 Tom Tromey <tom@tromey.com>
4698 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4699 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4700 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4701 (evaluate_subexp_f): Update.
4702 * f-exp.h: New file.
4704 2021-03-08 Tom Tromey <tom@tromey.com>
4706 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4707 * ada-exp.h (class ada_ternop_range_operation): New.
4709 2021-03-08 Tom Tromey <tom@tromey.com>
4711 * ada-lang.c (ada_qual_operation::evaluate): New method.
4712 * ada-exp.h (class ada_qual_operation): New.
4714 2021-03-08 Tom Tromey <tom@tromey.com>
4716 * ada-lang.c (ada_string_operation::evaluate): New method.
4717 * ada-exp.h (class ada_string_operation): New.
4719 2021-03-08 Tom Tromey <tom@tromey.com>
4721 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4722 * ada-exp.h: New file.
4724 2021-03-08 Tom Tromey <tom@tromey.com>
4726 * expop.h (class multi_subscript_operation): New.
4727 * eval.c (multi_subscript_operation::evaluate): New method.
4729 2021-03-08 Tom Tromey <tom@tromey.com>
4731 * eval.c (objc_msgcall_operation::evaluate): New method.
4732 * c-exp.h (class objc_msgcall_operation): New.
4734 2021-03-08 Tom Tromey <tom@tromey.com>
4736 * expop.h (class var_value_operation): New.
4737 * eval.c (var_value_operation::evaluate)
4738 (var_value_operation::evaluate_for_address)
4739 (var_value_operation::evaluate_with_coercion)
4740 (var_value_operation::evaluate_for_sizeof)
4741 (var_value_operation::evaluate_for_cast): New methods.
4742 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4744 2021-03-08 Tom Tromey <tom@tromey.com>
4746 * expop.h (cxx_cast_ftype): New typedef.
4747 (cxx_cast_operation): New template.
4748 (dynamic_cast_operation, reinterpret_cast_operation): New
4751 2021-03-08 Tom Tromey <tom@tromey.com>
4753 * expop.h (class unop_cast_type_operation): New.
4754 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4757 2021-03-08 Tom Tromey <tom@tromey.com>
4759 * expop.h (class unop_cast_operation): New.
4760 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4762 2021-03-08 Tom Tromey <tom@tromey.com>
4764 * expop.h (class assign_modify_operation): New.
4765 * eval.c (eval_binop_assign_modify): No longer static.
4766 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4768 2021-03-08 Tom Tromey <tom@tromey.com>
4770 * expop.h (class assign_operation): New.
4771 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4773 2021-03-08 Tom Tromey <tom@tromey.com>
4775 * expop.h (class type_instance_operation): New.
4776 * eval.c (type_instance_operation::evaluate): New method.
4778 2021-03-08 Tom Tromey <tom@tromey.com>
4780 * expop.h (class op_this_operation): New.
4781 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4783 2021-03-08 Tom Tromey <tom@tromey.com>
4785 * expop.h (class unop_memval_operation)
4786 (class unop_memval_type_operation): New.
4787 * eval.c (eval_op_memval): No longer static.
4788 (unop_memval_operation::evaluate_for_address)
4789 (unop_memval_type_operation::evaluate_for_address)
4790 (unop_memval_operation::evaluate_for_sizeof)
4791 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4792 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4793 (unop_memval_type_operation::do_generate_ax): New methods.
4795 2021-03-08 Tom Tromey <tom@tromey.com>
4797 * expop.h (class unop_alignof_operation): New.
4798 * eval.c (eval_op_alignof): No longer static.
4800 2021-03-08 Tom Tromey <tom@tromey.com>
4802 * expop.h (class unop_sizeof_operation): New.
4803 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4805 2021-03-08 Tom Tromey <tom@tromey.com>
4807 * expop.h (class unop_addr_operation): New.
4808 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4810 2021-03-08 Tom Tromey <tom@tromey.com>
4812 * expop.h (class typeid_operation): New.
4814 2021-03-08 Tom Tromey <tom@tromey.com>
4816 * expop.h (class decltype_operation): New.
4818 2021-03-08 Tom Tromey <tom@tromey.com>
4820 * expop.h (class typeof_operation): New.
4822 2021-03-08 Tom Tromey <tom@tromey.com>
4824 * expop.h (class type_operation): New.
4825 * eval.c (eval_op_type): No longer static.
4827 2021-03-08 Tom Tromey <tom@tromey.com>
4829 * expop.h (class unop_ind_base_operation)
4830 (class unop_ind_operation): New.
4831 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4832 (unop_ind_base_operation::evaluate_for_address)
4833 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4834 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4836 2021-03-08 Tom Tromey <tom@tromey.com>
4838 * expop.h (unop_incr_operation): New template.
4839 (preinc_operation, predec_operation, postinc_operation)
4840 (postdec_operation): New typedefs.
4841 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4842 (eval_op_postdec): No longer static.
4844 2021-03-08 Tom Tromey <tom@tromey.com>
4846 * expop.h (unary_ftype): New typedef.
4847 (unop_operation, usual_ax_binop_operation): New templates.
4848 (unary_plus_operation, unary_neg_operation)
4849 (unary_complement_operation, unary_logical_not_operation): New
4851 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4852 (eval_op_lognot): No longer static.
4853 * ax-gdb.c (gen_expr_unop): New function.
4855 2021-03-08 Tom Tromey <tom@tromey.com>
4857 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4859 2021-03-08 Tom Tromey <tom@tromey.com>
4861 * expop.h (class repeat_operation): New.
4862 * eval.c (eval_op_repeat): No longer static. Remove "op"
4864 (evaluate_subexp_standard): Update.
4865 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4867 2021-03-08 Tom Tromey <tom@tromey.com>
4869 * expop.h (class comparison_operation): New.
4870 (equal_operation, notequal_operation, less_operation)
4871 (gtr_operation, geq_operation, leq_operation): New typedefs.
4872 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4873 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4875 2021-03-08 Tom Tromey <tom@tromey.com>
4877 * expop.h (class subscript_operation): New.
4878 * eval.c (eval_op_subscript): No longer static.
4880 2021-03-08 Tom Tromey <tom@tromey.com>
4882 * expop.h (class binop_operation, class usual_ax_binop_operation):
4884 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4885 (div_operation, rem_operation, lsh_operation, rsh_operation)
4886 (bitwise_and_operation, bitwise_ior_operation)
4887 (bitwise_xor_operation): New typedefs.
4888 * eval.c (eval_op_binary): No longer static.
4890 2021-03-08 Tom Tromey <tom@tromey.com>
4892 * expop.h (class sub_operation): New.
4893 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4894 (evaluate_subexp_standard): Update.
4896 2021-03-08 Tom Tromey <tom@tromey.com>
4898 * expop.h (class add_operation): New.
4899 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4900 (evaluate_subexp_standard): Update.
4902 2021-03-08 Tom Tromey <tom@tromey.com>
4904 * expop.h (class concat_operation): New.
4905 * eval.c (eval_op_concat): No longer static. Remove "op"
4907 (evaluate_subexp_standard): Update.
4909 2021-03-08 Tom Tromey <tom@tromey.com>
4911 * expop.h (class structop_member_operation)
4912 (class structop_mptr_operation): New.
4913 * eval.c (eval_op_member): No longer static.
4915 2021-03-08 Tom Tromey <tom@tromey.com>
4917 * expop.h (class structop_ptr_operation): New.
4918 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4921 2021-03-08 Tom Tromey <tom@tromey.com>
4923 * expop.h (class structop_base_operation)
4924 (class structop_operation): New.
4925 * eval.c (eval_op_structop_struct): No longer static.
4927 2021-03-08 Tom Tromey <tom@tromey.com>
4929 * expop.h (class complex_operation): New.
4931 2021-03-08 Tom Tromey <tom@tromey.com>
4933 * eval.c (eval_op_objc_selector): No longer static.
4934 * c-exp.h (class objc_selector_operation): New.
4936 2021-03-08 Tom Tromey <tom@tromey.com>
4938 * eval.c: Include c-exp.h.
4939 * c-exp.h (class objc_nsstring_operation): New.
4941 2021-03-08 Tom Tromey <tom@tromey.com>
4943 * c-lang.c (c_string_operation::evaluate): New method.
4944 * c-exp.h: New file.
4946 2021-03-08 Tom Tromey <tom@tromey.com>
4948 * expop.h (class ternop_cond_operation): New.
4949 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4951 2021-03-08 Tom Tromey <tom@tromey.com>
4953 * expop.h (class ternop_slice_operation): New.
4954 * eval.c (eval_op_ternop): No longer static.
4956 2021-03-08 Tom Tromey <tom@tromey.com>
4958 * expop.h (class string_operation): New.
4959 * eval.c (eval_op_string): No longer static.
4961 2021-03-08 Tom Tromey <tom@tromey.com>
4963 * expop.h (class internalvar_operation): New.
4964 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4966 2021-03-08 Tom Tromey <tom@tromey.com>
4968 * expop.h (class bool_operation): New.
4970 2021-03-08 Tom Tromey <tom@tromey.com>
4972 * expop.h (class register_operation): New.
4973 * eval.c (eval_op_register): No longer static.
4974 * ax-gdb.c (register_operation::do_generate_ax): New method.
4976 2021-03-08 Tom Tromey <tom@tromey.com>
4978 * expop.h (class last_operation): New.
4980 2021-03-08 Tom Tromey <tom@tromey.com>
4982 * expop.h (class func_static_var_operation): New.
4983 * eval.c (eval_op_func_static_var): No longer static.
4985 2021-03-08 Tom Tromey <tom@tromey.com>
4987 * expop.h (class var_entry_value_operation): New.
4988 * eval.c (eval_op_var_entry_value): No longer static.
4990 2021-03-08 Tom Tromey <tom@tromey.com>
4992 * expression.h (class operation) <set_outermost>: New method.
4993 * expop.h (class var_msym_value_operation): New.
4994 * eval.c (eval_op_var_msym_value): No longer static.
4995 (var_msym_value_operation::evaluate_for_address)
4996 (var_msym_value_operation::evaluate_for_sizeof)
4997 (var_msym_value_operation::evaluate_for_cast): New methods.
4998 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5001 2021-03-08 Tom Tromey <tom@tromey.com>
5003 * expop.h (class long_const_operation): New.
5004 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5006 2021-03-08 Tom Tromey <tom@tromey.com>
5008 * expop.h (class scope_operation): New.
5009 * eval.c (eval_op_scope): No longer static.
5010 (scope_operation::evaluate_for_address): New method.
5011 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5013 2021-03-08 Tom Tromey <tom@tromey.com>
5015 * expprint.c (float_const_operation::dump): New method.
5016 * expop.h (float_data): New typedef.
5017 (class float_const_operation): New.
5019 2021-03-08 Tom Tromey <tom@tromey.com>
5021 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5022 * ax-gdb.c (gen_expr_binop): New function.
5023 (gen_expr_structop): Likewise.
5025 2021-03-08 Tom Tromey <tom@tromey.com>
5027 * expprint.c (expr::dump_for_expression): New functions.
5028 * expop.h (dump_for_expression): New overloads.
5029 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5032 2021-03-08 Tom Tromey <tom@tromey.com>
5034 * expression.h (expr::operation): New class.
5035 (expr::make_operation): New function.
5036 (expr::operation_up): New typedef.
5037 * expop.h: New file.
5038 * eval.c (operation::evaluate_for_cast)
5039 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5041 * ax-gdb.c (operation::generate_ax): New method.
5043 2021-03-08 Tom Tromey <tom@tromey.com>
5045 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5046 (gen_expr_binop_rest): New overload.
5048 2021-03-08 Tom Tromey <tom@tromey.com>
5050 * eval.c (eval_multi_subscript): New function.
5051 (evaluate_subexp_standard): Use it.
5053 2021-03-08 Tom Tromey <tom@tromey.com>
5055 * ada-lang.c (ada_binop_exp): New function.
5056 (ada_evaluate_subexp): Use it.
5058 2021-03-08 Tom Tromey <tom@tromey.com>
5060 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5062 (ada_evaluate_subexp): Use it.
5064 2021-03-08 Tom Tromey <tom@tromey.com>
5066 * ada-lang.c (ada_binop_minmax): New function.
5067 (ada_evaluate_subexp): Use it.
5069 2021-03-08 Tom Tromey <tom@tromey.com>
5071 * ada-lang.c (ada_unop_atr): New function.
5072 (ada_evaluate_subexp): Use it.
5074 2021-03-08 Tom Tromey <tom@tromey.com>
5076 * ada-lang.c (ada_binop_in_bounds): New function.
5077 (ada_evaluate_subexp): Use it.
5079 2021-03-08 Tom Tromey <tom@tromey.com>
5081 * ada-lang.c (ada_ternop_slice): New function.
5082 (ada_evaluate_subexp): Use it.
5084 2021-03-08 Tom Tromey <tom@tromey.com>
5086 * ada-lang.c (ada_equal_binop): New function.
5087 (ada_evaluate_subexp): Use it.
5089 2021-03-08 Tom Tromey <tom@tromey.com>
5091 * ada-lang.c (ada_mult_binop): New function.
5092 (ada_evaluate_subexp): Use it.
5094 2021-03-08 Tom Tromey <tom@tromey.com>
5096 * ada-lang.c (ada_abs): New function.
5097 (ada_evaluate_subexp): Use it.
5099 2021-03-08 Tom Tromey <tom@tromey.com>
5101 * ada-lang.c (ada_atr_size): New function.
5102 (ada_evaluate_subexp): Use it.
5104 2021-03-08 Tom Tromey <tom@tromey.com>
5106 * ada-lang.c (ada_atr_tag): New function.
5107 (ada_evaluate_subexp): Use it.
5109 2021-03-08 Tom Tromey <tom@tromey.com>
5111 * ada-lang.c (ada_unop_in_range): New function.
5112 (ada_evaluate_subexp): Use it.
5114 2021-03-08 Tom Tromey <tom@tromey.com>
5116 * ada-lang.c (ada_unop_neg): New function.
5117 (ada_evaluate_subexp): Use it.
5119 2021-03-08 Tom Tromey <tom@tromey.com>
5121 * ada-lang.c (eval_ternop_in_range): New function.
5122 (ada_evaluate_subexp): Use it.
5124 2021-03-08 Tom Tromey <tom@tromey.com>
5126 * opencl-lang.c (eval_opencl_assign): New function.
5127 (evaluate_subexp_opencl): Use it.
5129 2021-03-08 Tom Tromey <tom@tromey.com>
5131 * eval.c (eval_op_objc_msgcall): New function.
5132 (evaluate_subexp_standard): Use it.
5134 2021-03-08 Tom Tromey <tom@tromey.com>
5136 * eval.c (eval_binop_assign_modify): New function.
5137 (evaluate_subexp_standard): Use it.
5139 2021-03-08 Tom Tromey <tom@tromey.com>
5141 * m2-lang.c (eval_op_m2_subscript): New function.
5142 (evaluate_subexp_modula2): Use it.
5144 2021-03-08 Tom Tromey <tom@tromey.com>
5146 * m2-lang.c (eval_op_m2_high): New function.
5147 (evaluate_subexp_modula2): Use it.
5149 2021-03-08 Tom Tromey <tom@tromey.com>
5151 * eval.c (evaluate_subexp_for_address_base): New function.
5152 (evaluate_subexp_for_address): Use it.
5153 (evaluate_subexp_for_sizeof_base): New function.
5154 (evaluate_subexp_for_sizeof): Use it.
5156 2021-03-08 Tom Tromey <tom@tromey.com>
5158 * rust-lang.c (eval_op_rust_structop): New function.
5159 (rust_evaluate_subexp): Use it.
5161 2021-03-08 Tom Tromey <tom@tromey.com>
5163 * rust-lang.c (eval_op_rust_struct_anon): New function.
5164 (rust_evaluate_subexp): Use it.
5166 2021-03-08 Tom Tromey <tom@tromey.com>
5168 * rust-lang.c (eval_op_rust_array): New function.
5169 (rust_evaluate_subexp): Use it.
5171 2021-03-08 Tom Tromey <tom@tromey.com>
5173 * rust-lang.c (eval_op_rust_complement): New function.
5174 (rust_evaluate_subexp): Use it.
5176 2021-03-08 Tom Tromey <tom@tromey.com>
5178 * rust-lang.c (eval_op_rust_ind): New function.
5179 (rust_evaluate_subexp): Use it.
5181 2021-03-08 Tom Tromey <tom@tromey.com>
5183 * rust-lang.c (rust_subscript): Change parameters.
5184 (rust_evaluate_subexp): Update.
5186 2021-03-08 Tom Tromey <tom@tromey.com>
5188 * rust-lang.c (rust_range): Change parameters.
5189 (rust_evaluate_subexp): Update.
5191 2021-03-08 Tom Tromey <tom@tromey.com>
5193 * f-lang.c (eval_op_f_allocated): New function.
5194 (evaluate_subexp_f): Use it.
5196 2021-03-08 Tom Tromey <tom@tromey.com>
5198 * f-lang.c (fortran_require_array): New function.
5199 (evaluate_subexp_f): Use it.
5201 2021-03-08 Tom Tromey <tom@tromey.com>
5203 * f-lang.c (eval_op_f_kind): New function.
5204 (evaluate_subexp_f): Use it.
5206 2021-03-08 Tom Tromey <tom@tromey.com>
5208 * f-lang.c (eval_op_f_cmplx): New function.
5209 (evaluate_subexp_f): Use it.
5211 2021-03-08 Tom Tromey <tom@tromey.com>
5213 * f-lang.c (eval_op_f_modulo): New function.
5214 (evaluate_subexp_f): Use it.
5216 2021-03-08 Tom Tromey <tom@tromey.com>
5218 * f-lang.c (eval_op_f_floor): New function.
5219 (evaluate_subexp_f): Use it.
5221 2021-03-08 Tom Tromey <tom@tromey.com>
5223 * f-lang.c (eval_op_f_ceil): New function.
5224 (evaluate_subexp_f): Use it.
5226 2021-03-08 Tom Tromey <tom@tromey.com>
5228 * f-lang.c (eval_op_f_mod): New function.
5229 (evaluate_subexp_f): Use it.
5231 2021-03-08 Tom Tromey <tom@tromey.com>
5233 * f-lang.c (eval_op_f_abs): New function.
5234 (evaluate_subexp_f): Use it.
5236 2021-03-08 Tom Tromey <tom@tromey.com>
5238 * eval.c (eval_op_type): New function.
5239 (evaluate_subexp_standard): Use it.
5241 2021-03-08 Tom Tromey <tom@tromey.com>
5243 * eval.c (eval_op_postdec): New function.
5244 (evaluate_subexp_standard): Use it.
5246 2021-03-08 Tom Tromey <tom@tromey.com>
5248 * eval.c (eval_op_postinc): New function.
5249 (evaluate_subexp_standard): Use it.
5251 2021-03-08 Tom Tromey <tom@tromey.com>
5253 * eval.c (eval_op_predec): New file.
5254 (evaluate_subexp_standard): Use it.
5256 2021-03-08 Tom Tromey <tom@tromey.com>
5258 * eval.c (eval_op_preinc): New function.
5259 (evaluate_subexp_standard): Use it.
5261 2021-03-08 Tom Tromey <tom@tromey.com>
5263 * eval.c (eval_op_memval): New function.
5264 (evaluate_subexp_standard): Use it.
5266 2021-03-08 Tom Tromey <tom@tromey.com>
5268 * eval.c (eval_op_alignof): New function.
5269 (evaluate_subexp_standard): Use it.
5271 2021-03-08 Tom Tromey <tom@tromey.com>
5273 * eval.c (eval_op_ind): New function.
5274 (evaluate_subexp_standard): Use it.
5276 2021-03-08 Tom Tromey <tom@tromey.com>
5278 * eval.c (eval_op_lognot): New function.
5279 (evaluate_subexp_standard): Use it.
5281 2021-03-08 Tom Tromey <tom@tromey.com>
5283 * eval.c (eval_op_complement): New function.
5284 (evaluate_subexp_standard): Use it.
5286 2021-03-08 Tom Tromey <tom@tromey.com>
5288 * eval.c (eval_op_neg): New function.
5289 (evaluate_subexp_standard): Use it.
5291 2021-03-08 Tom Tromey <tom@tromey.com>
5293 * eval.c (eval_op_plus): New function.
5294 (evaluate_subexp_standard): Use it.
5296 2021-03-08 Tom Tromey <tom@tromey.com>
5298 * eval.c (eval_op_repeat): New function.
5299 (evaluate_subexp_standard): Use it.
5301 2021-03-08 Tom Tromey <tom@tromey.com>
5303 * eval.c (eval_op_leq): New function.
5304 (evaluate_subexp_standard): Use it.
5306 2021-03-08 Tom Tromey <tom@tromey.com>
5308 * eval.c (eval_op_geq): New function.
5309 (evaluate_subexp_standard): Use it.
5311 2021-03-08 Tom Tromey <tom@tromey.com>
5313 * eval.c (eval_op_gtr): New function.
5314 (evaluate_subexp_standard): Use it.
5316 2021-03-08 Tom Tromey <tom@tromey.com>
5318 * eval.c (eval_op_less): New function.
5319 (evaluate_subexp_standard): Use it.
5321 2021-03-08 Tom Tromey <tom@tromey.com>
5323 * eval.c (eval_op_notequal): New function.
5324 (evaluate_subexp_standard): Use it.
5326 2021-03-08 Tom Tromey <tom@tromey.com>
5328 * eval.c (eval_op_equal): New function.
5329 (evaluate_subexp_standard): Use it.
5331 2021-03-08 Tom Tromey <tom@tromey.com>
5333 * eval.c (eval_op_subscript): New function.
5334 (evaluate_subexp_standard): Use it.
5336 2021-03-08 Tom Tromey <tom@tromey.com>
5338 * eval.c (eval_op_binary): New function.
5339 (evaluate_subexp_standard): Use it.
5341 2021-03-08 Tom Tromey <tom@tromey.com>
5343 * eval.c (eval_op_sub): New function.
5344 (evaluate_subexp_standard): Use it.
5346 2021-03-08 Tom Tromey <tom@tromey.com>
5348 * eval.c (eval_op_add): New function.
5349 (evaluate_subexp_standard): Use it.
5351 2021-03-08 Tom Tromey <tom@tromey.com>
5353 * eval.c (eval_op_member): New function.
5354 (evaluate_subexp_standard): Use it.
5356 2021-03-08 Tom Tromey <tom@tromey.com>
5358 * eval.c (eval_op_structop_ptr): New function.
5359 (evaluate_subexp_standard): Use it.
5361 2021-03-08 Tom Tromey <tom@tromey.com>
5363 * eval.c (eval_op_structop_struct): New function.
5364 (evaluate_subexp_standard): Use it.
5366 2021-03-08 Tom Tromey <tom@tromey.com>
5368 * eval.c (eval_op_ternop): New function.
5369 (evaluate_subexp_standard): Use it.
5371 2021-03-08 Tom Tromey <tom@tromey.com>
5373 * eval.c (eval_op_concat): New function.
5374 (evaluate_subexp_standard): Use it.
5376 2021-03-08 Tom Tromey <tom@tromey.com>
5378 * eval.c (eval_op_objc_selector): New function.
5379 (evaluate_subexp_standard): Use it.
5381 2021-03-08 Tom Tromey <tom@tromey.com>
5383 * eval.c (eval_op_string): New function.
5384 (evaluate_subexp_standard): Use it.
5386 2021-03-08 Tom Tromey <tom@tromey.com>
5388 * eval.c (eval_op_register): New function.
5389 (evaluate_subexp_standard): Use it.
5391 2021-03-08 Tom Tromey <tom@tromey.com>
5393 * eval.c (eval_op_func_static_var): New function.
5394 (evaluate_subexp_standard): Use it.
5396 2021-03-08 Tom Tromey <tom@tromey.com>
5398 * eval.c (eval_op_var_msym_value): New function.
5399 (evaluate_subexp_standard): Use it.
5401 2021-03-08 Tom Tromey <tom@tromey.com>
5403 * eval.c (eval_op_var_entry_value): New function.
5404 (evaluate_subexp_standard): Use it.
5406 2021-03-08 Tom Tromey <tom@tromey.com>
5408 * eval.c (eval_op_scope): New function.
5409 (evaluate_subexp_standard): Use it.
5411 2021-03-06 Chernov Sergey <klen_s@mail.ru>
5414 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5416 2021-03-06 Tom Tromey <tom@tromey.com>
5418 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5419 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5420 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5421 (locate_dwz_sections, dwz_search_other_debugdirs)
5422 (dwarf2_get_dwz_file): Move to dwz.c.
5423 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5425 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5426 (dwarf2_get_dwz_file): Move from read.c.
5428 2021-03-06 Tom Tromey <tom@tromey.com>
5430 * debuginfod-support.h: Include scoped_fd.h.
5432 2021-03-06 Tom Tromey <tom@tromey.com>
5434 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5435 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5436 (get_abbrev_section_for_cu, read_attribute_value)
5437 (get_debug_line_section): Update.
5438 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5440 2021-03-06 Tom Tromey <tom@tromey.com>
5442 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5444 * dwarf2/read.c (section_is_p): Remove.
5445 (dwarf2_per_bfd::locate_sections)
5446 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5447 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5448 (dwarf2_locate_common_dwp_sections)
5449 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5452 2021-03-06 Tom Tromey <tom@tromey.com>
5454 * xcoffread.c: Include sect-names.h.
5455 * symfile.h (struct dwarf2_section_names, struct
5456 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5457 * dwarf2/sect-names.h: New file, from symfile.h.
5458 * dwarf2/read.c: Include sect-names.h.
5460 2021-03-06 Tom Tromey <tom@tromey.com>
5462 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5463 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5464 (abbrev_table::read): Update.
5465 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5466 (struct abbrev_info): Reformat.
5467 <attrs>: Now an array.
5468 (struct abbrev_table) <alloc_abbrev>: Remove.
5470 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5472 * ctfread.c (ctf_psymtab_add_enums): New function.
5473 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5475 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5477 * ctfread.c (read_func_kind_type): Set up function arguments.
5479 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5480 Andrew Burgess <andrew.burgess@embecosm.com>
5482 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5484 (riscv_csrset): New static global.
5485 (riscv_update_csrmap): New function.
5486 (riscv_iterate_over_regset_sections): Process CSRs.
5488 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5490 * riscv-tdep.c (riscv_feature_name_csr): Define.
5491 (riscv_feature_name_cpu): Define.
5492 (riscv_feature_name_fpu): Define.
5493 (riscv_feature_name_virtual): Define.
5494 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5495 (riscv_freg_feature): Use riscv_feature_name_fpu.
5496 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5497 (riscv_csr_feature): Use riscv_feature_name_csr.
5498 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5500 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5501 Craig Blackmore <craig.blackmore@embecosm.com>
5503 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5504 (ALLDEPFILES): Add riscv-none-tdep.c.
5505 * configure: Regenerate.
5506 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5508 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5509 * elf-none-tdep.c: New file.
5510 * elf-none-tdep.h: New file.
5511 * riscv-none-tdep.c: New file.
5513 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5514 Andrew Burgess <andrew.burgess@embecosm.com>
5516 * corelow.c: Add 'xml-tdesc.h' include.
5517 (core_target::read_description): Load the target description from
5518 the core file when possible.
5519 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5521 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5522 (gcore_elf_make_tdesc_note): New function.
5523 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5524 * linux-tdep.c (linux_make_corefile_notes): Add target description
5527 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5529 * Makefile.in (SFILES): Add gcore-elf.c.
5530 (HFILES_NO_SRCDIR): Add gcore-elf.h
5531 * configure: Regenerate.
5532 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5534 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5535 (struct fbsd_collect_regset_section_cb_data): Delete.
5536 (fbsd_collect_regset_section_cb): Delete.
5537 (fbsd_collect_thread_registers): Delete.
5538 (struct fbsd_corefile_thread_data): Delete.
5539 (fbsd_corefile_thread): Delete.
5540 (fbsd_make_corefile_notes): Call
5541 gcore_elf_build_thread_register_notes instead of the now deleted
5543 * gcore-elf.c: New file, the content was moved here from
5544 linux-tdep.c, functions were renamed and given minor cleanup.
5545 * gcore-elf.h: New file.
5546 * gcore.c (gcore_find_signalled_thread): Moved here from
5547 linux-tdep.c and given a new name. Minor cleanups.
5548 * gcore.h (gcore_find_signalled_thread): Declare.
5549 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5550 (struct linux_collect_regset_section_cb_data): Delete.
5551 (linux_collect_regset_section_cb): Delete.
5552 (linux_collect_thread_registers): Delete.
5553 (linux_corefile_thread): Call
5554 gcore_elf_build_thread_register_notes.
5555 (find_signalled_thread): Delete.
5556 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5558 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5561 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5562 process_stratum_target parameter,
5563 sparc_store_inferior_registers): update callers.
5564 * sparc-nat.c (sparc_fetch_inferior_registers,
5565 sparc_store_inferior_registers): Add process_stratum_target
5566 parameter. Switch current thread before calling
5567 sparc_supply_gregset / sparc_collect_rwindow.
5568 (sparc_store_inferior_registers): Likewise.
5569 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5570 (sparc32obsd_collect_uthread): Likewise.
5571 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5573 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5574 sparc64obsd_supply_uthread): Add assertion.
5576 2021-03-04 Tom Tromey <tromey@adacore.com>
5578 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5579 (aux_add_nonlocal_symbols): Update.
5580 (ada_add_block_symbols): Change "found_sym" to bool.
5582 2021-03-03 Tom Tromey <tromey@adacore.com>
5584 * ada-lang.c (ada_resolve_function): Update comment.
5585 (is_nonfunction, add_symbols_from_enclosing_procs)
5586 (remove_extra_symbols): Likewise.
5587 (struct match_data): Add constructor, initializers.
5588 (add_nonlocal_symbols): Remove memset.
5589 (aux_add_nonlocal_symbols): Update comment.
5590 (ada_add_block_renamings, add_nonlocal_symbols)
5591 (ada_add_all_symbols): Likewise.
5592 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5594 2021-03-02 Tom Tromey <tromey@adacore.com>
5596 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5597 (cast_to_gnat_encoded_fixed_point_type): Remove.
5598 (ada_value_cast, ada_evaluate_subexp): Update.
5599 (gnat_encoded_fixed_point_type_info)
5600 (ada_is_gnat_encoded_fixed_point_type)
5601 (gnat_encoded_fixed_point_delta)
5602 (gnat_encoded_fixed_point_scaling_factor): Remove.
5603 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5604 (gnat_encoded_fixed_point_delta)
5605 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5606 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5607 (ada_print_type): Update.
5608 * ada-valprint.c (ada_value_print_num): Update.
5609 * dwarf2/read.c (ada_get_gnat_encoded_number)
5610 (ada_get_gnat_encoded_ratio): New functions.
5611 (finish_fixed_point_type): Use them. Add parameters.
5612 (GNAT_FIXED_POINT_SUFFIX): New define.
5613 (gnat_encoded_fixed_point_type_info): New function.
5614 (read_base_type): Handle gnat encodings.
5616 2021-03-02 Tom Tromey <tromey@adacore.com>
5618 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5619 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5621 (GROW_VECT): Remove.
5622 (grow_vect): Remove.
5624 2021-03-02 Tom Tromey <tromey@adacore.com>
5626 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5627 * ada-lang.c (resolve_subexp): Update.
5628 (ada_resolve_function): Accept a vector.
5629 (is_nonfunction, add_defn_to_vec)
5630 (add_symbols_from_enclosing_procs): Likewise.
5631 (num_defns_collected, defns_collected): Remove.
5632 (remove_extra_symbols): Return a vector.
5633 (remove_irrelevant_renamings): Return void.
5634 (ada_add_local_symbols): Accept a vector.
5635 (struct match_data) <obstackp>: Remove.
5636 <resultp>: New member.
5637 (aux_add_nonlocal_symbols): Update.
5638 (ada_add_block_renamings, add_nonlocal_symbols)
5639 (ada_add_all_symbols): Accept a vector.
5640 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5642 (ada_lookup_symbol): Update.
5643 (ada_add_block_symbols): Accept a vector.
5644 (get_var_value, iterate_over_symbols): Update.
5645 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5648 2021-03-02 Tom Tromey <tromey@adacore.com>
5650 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5652 2021-03-02 Tom Tromey <tromey@adacore.com>
5654 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5657 (ada_pspace_data): Remove destructor.
5658 <sym_cache>: Now a unique_ptr.
5659 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5660 (ada_get_symbol_cache): Use 'new'.
5661 (ada_clear_symbol_cache): Rewrite.
5663 2021-03-02 Tom Tromey <tromey@adacore.com>
5665 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5668 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5671 * source.c (add_path): Skip empty dirnames.
5673 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5675 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5676 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5678 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5681 * target.c (target_mourn_inferior): Only compare pids in
5682 target_mourn_inferior.
5684 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5687 * remote.c (remote_target::start_remote): Ensure the single
5688 thread, automatically added for remote targets without the
5689 concept of threading, is initially in set to the "resumed"
5691 * remote.c (remote_target::add_current_inferior_and_thread):
5692 Add return value - return the main thread.
5694 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5696 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5697 (mi_tsv_created): Likewise.
5698 (mi_tsv_deleted): Likewise.
5700 2021-02-25 Tom de Vries <tdevries@suse.de>
5703 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5704 section_kind for &dwo_file->sections.info.
5706 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5709 * f-lang.c (fortran_argument_convert): Delete declaration.
5710 (fortran_prepare_argument): New function.
5711 (evaluate_subexp_f): Move logic to new function
5712 fortran_prepare_argument.
5714 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5716 * f-exp.y (f77_keywords): Add 'associated'.
5717 * f-lang.c (fortran_associated): New function.
5718 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5719 (operator_length_f): Likewise.
5720 (print_unop_or_binop_subexp_f): New function.
5721 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5722 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5723 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5724 (operator_check_f): Likewise.
5725 * std-operator.def: Add FORTRAN_ASSOCIATED.
5727 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5729 * f-exp.y (fortran_operators): Add ".xor.".
5731 2021-02-24 Tom de Vries <tdevries@suse.de>
5734 * dwarf2/attribute.c (attribute::form_is_signed): New function
5736 * dwarf2/attribute.h (attribute::as_signed): ... here.
5737 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5738 (attribute::form_is_signed): Declare.
5739 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5740 for DW_AT_decl_file.
5742 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5744 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5745 order for <sys/ptrace.h> and <asm/ptrace.h>.
5747 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5749 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5752 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5754 * exec.c (set_section_command): Move variable declarations into
5755 the function body, and use std::string instead of a fixed size
5758 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5760 * exec.c (exec_target::get_section_table): Delete member function.
5761 (section_table_read_available_memory): Use current_top_target, not
5762 just the exec_ops target.
5763 * target-delegates.c: Regenerate.
5764 * target.c (default_get_section_table): New function.
5765 * target.h (target_ops::get_section_table): Change default
5766 behaviour to call default_get_section_table.
5767 (default_get_section_table): Declare.
5769 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5771 * exec.c (exec_target::close): Call new clear_target_sections
5773 (program_space::add_target_sections): Update name of member
5775 (program_space::add_target_sections): Update name of member
5777 (program_space::remove_target_sections): Likewise.
5778 (exec_one_fork): Use new target_sections member function.
5779 (exec_target::get_section_table): Likewise.
5780 (exec_target::files_info): Likewise.
5781 (set_section_command): Likewise.
5782 (exec_set_section_address): Likewise.
5783 (exec_target::has_memory): Use new target_sections member
5785 * progspace.h (program_space::clear_target_sections): New member
5787 (program_space::target_sections): Rename member variable to
5788 m_target_sections, replace with a new member function.
5789 (program_space::m_target_sections): New member variable.
5790 * solib-dsbt.c (scan_dyntag): Use new member function.
5791 * solib-svr4.c (scan_dyntag): Likewise.
5793 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5795 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5797 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5798 (section_table_read_available_memory): Make local const.
5799 (exec_target::xfer_partial): Make local const.
5800 (print_section_info): Make parameter const.
5801 * gdb/exec.h (print_section_info): Likewise.
5802 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5804 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5806 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5808 * gdb/s390-tdep.c (s390_load): Likewise.
5809 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5810 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5811 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5813 (target_debug_print_const_target_section_table_p): ...this.
5814 * gdb/target-delegates.c: Regenerate.
5815 * gdb/target.c (target_get_section_table): Make return type const.
5816 (target_section_by_addr): Likewise. Also make some locals const.
5817 (memory_xfer_partial_1): Make some locals const.
5818 * gdb/target.h (struct target_ops) <get_section_table>: Make
5820 (target_section_by_addr): Likewise.
5821 (target_get_section_table): Likewise.
5823 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5825 * NEWS: Mention new 'maint info target-sections' command.
5826 * maint.c (maintenance_info_target_sections): New function.
5827 (_initialize_maint_cmds): Register new command.
5829 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5831 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5832 (riscv_features_from_bfd): ...this. Change parameter type to
5833 'bfd*', and update as required.
5834 (riscv_find_default_target_description): Update call to
5835 riscv_features_from_bfd. Select a default xlen based on
5837 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5839 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5841 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5842 dynamic types in UNOP_IND.
5844 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5847 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5849 (~dwarf2_queue_guard): Clear queue.
5850 (queue_comp_unit): Assert that queue is
5852 (process_queue): Adjust.
5853 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5855 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5858 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5859 to decide whether or not to enqueue it for expansion.
5860 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5861 after calling maybe_queue_comp_unit.
5863 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5865 * linux-nat.c (linux_nat_filter_event): Return void.
5867 2021-02-22 Tom Tromey <tromey@adacore.com>
5869 * solib-svr4.c (enable_break): Update.
5870 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5872 (target_bfd_reopen): Change parameter type.
5873 * bfd-target.h (target_bfd_reopen): Change parameter type.
5875 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5877 * thread.c (add_thread_silent): Add assert.
5878 (find_thread_ptid): Add assert.
5880 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5883 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5884 (target_unpush_up): Likewise.
5885 * procfs.c (procfs_target::attach): Push target early. Use
5886 target_unpush_up to unpush target in case of error.
5887 * target.h (struct target_unpusher): Move here.
5888 (target_unpush_up): Likewise.
5890 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5892 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5893 (which in turn includes <gnulib/config.h>) before include
5896 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5899 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5900 (decode_j_type_insn): Likewise.
5901 (decode_cj_type_insn): Likewise.
5902 (decode_b_type_insn): Likewise.
5905 2021-02-18 Tom Tromey <tom@tromey.com>
5907 * expression.h (struct expression) <evaluate>: Declare method.
5908 * eval.c (evaluate_subexp): Simplify.
5909 (expression::evaluate): New method.
5910 (evaluate_expression, evaluate_type): Use expression::evaluate.
5912 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5914 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5916 (ada_lookup_name_info): Likewise.
5918 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5920 * aclocal.m4: Regenerate.
5922 2021-02-12 Tom de Vries <tdevries@suse.de>
5925 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5926 (lin_thread_signals): New static var.
5927 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5929 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5930 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5932 * linux-thread-db.c (check_thread_signals): Use
5933 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5935 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5937 * f-exp.y (f77_keywords): Add allocated.
5938 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5939 (operator_length_f): Likewise.
5940 (print_subexp_f): Likewise.
5941 (dump_subexp_body_f): Likewise.
5942 (operator_check_f): Likewise.
5943 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5945 2021-02-11 Tom de Vries <tdevries@suse.de>
5948 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5949 Return true for DW_FORM_strx.
5951 2021-02-11 Tom Tromey <tromey@adacore.com>
5954 * parse.c (write_exp_symbol_reference): Write sym.block.
5956 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5958 * NEWS: Mention changes to 'maint info sections'.
5959 * maint.c (match_substring): Return a bool, fix whitespace issue.
5960 (struct single_bfd_flag_info): New struct.
5961 (bfd_flag_info): New static global.
5962 (match_bfd_flags): Return a bool, use bfd_flag_info.
5963 (print_bfd_flags): Use bfd_flag_info.
5964 (maint_print_section_info): Delete trailing whitespace.
5965 (struct maint_info_sections_opts): New struct.
5966 (maint_info_sections_option_defs): New static global.
5967 (maint_info_sections_completer): New function.
5968 (maintenance_info_sections): Use option parsing mechanism.
5969 (_initialize_maint_cmds): Update command help text for 'maint info
5970 sections' and register a command completer.
5972 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5974 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5975 functionality merged into...
5976 (maint_print_all_sections): ...this new function.
5977 (maintenance_info_sections): Make use of maint_print_all_sections,
5978 allow all objects to be printed even where there's no executable.
5980 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5982 * breakpoint.c (resolve_sal_pc): Make use of
5983 bound_minimal_symbol::obj_section.
5984 * maint.c (maintenance_translate_address): Likewise.
5985 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5986 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5988 * printcmd.c (info_address_command): Make use of
5989 bound_minimal_symbol::obj_section.
5991 2021-02-11 Alan Modra <amodra@gmail.com>
5993 * arm-symbian-tdep.c: Delete.
5994 * NEWS: Mention arm-symbian removal.
5995 * Makefile.in: Remove arm-symbian-tdep entries.
5996 * configure.tgt: Remove arm*-*-symbianelf*.
5997 * doc/gdb.texinfo: Remove mention of SymbianOS.
5998 * osabi.c (gdb_osabi_names): Remove "Symbian".
5999 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6000 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6001 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6003 * testsuite/gdb.base/dup-sect.exp: Likewise.
6004 * testsuite/gdb.base/long_long.exp: Likewise.
6005 * testsuite/gdb.base/solib-weak.exp: Likewise.
6006 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6007 * testsuite/gdb.python/py-section-script.exp: Likewise.
6008 * testsuite/lib/dwarf.exp: Likewise.
6009 * testsuite/lib/gdb.exp: Likewise.
6011 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6013 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6014 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6015 (one_or_two_args): New pattern.
6016 (f77_keywords): Add lbound and ubound.
6017 * f-lang.c (fortran_bounds_all_dims): New function.
6018 (fortran_bounds_for_dimension): New function.
6019 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6020 (operator_length_f): Likewise.
6021 (print_subexp_f): Likewise.
6022 (dump_subexp_body_f): Likewise.
6023 (operator_check_f): Likewise.
6024 * std-operator.def (FORTRAN_LBOUND): Define.
6025 (FORTRAN_UBOUND): Define.
6027 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6029 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6030 and set_section_index member functions where appropriate.
6031 * coffread.c (coff_symtab_read): Likewise.
6032 (process_coff_symbol): Likewise.
6033 * ctfread.c (set_symbol_address): Likewise.
6034 * dwarf2/read.c (add_partial_symbol): Likewise.
6035 (var_decode_location): Likewise.
6036 * language.c: Likewise.
6037 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6038 (compact_minimal_symbols): Likewise.
6039 (minimal_symbol_upper_bound): Likewise.
6040 * objfiles.c (relocate_one_symbol): Likewise.
6041 * psympriv.h (partial_symbol::obj_section): Likewise.
6042 (partial_symbol::address): Likewise.
6043 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6044 * stabsread.c (scan_file_globals): Likewise.
6045 * symmisc.c (dump_msymbols): Likewise.
6046 * symtab.c (general_symbol_info::obj_section): Likewise.
6047 (fixup_section): Likewise.
6048 (get_msymbol_address): Likewise.
6049 * symtab.h (general_symbol_info::section): Rename to...
6050 (general_symbol_info::m_section): ...this.
6051 (general_symbol_info::set_section_index): New member function.
6052 (general_symbol_info::section_index): Likewise.
6053 (SYMBOL_SECTION): Delete.
6054 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6055 set_section_index member functions where appropriate.
6056 (MSYMBOL_SECTION): Delete.
6057 (symbol::symbol): Update to initialize 'm_section'.
6058 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6059 (process_xcoff_symbol): Likewise.
6061 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6063 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6064 MSYMBOL_OBJ_SECTION.
6065 * findvar.c (language_defn::read_var_value): Likewise.
6066 * infcmd.c (jump_command): Likewise.
6067 * linespec.c (minsym_found): Likewise.
6068 * maint.c (maintenance_translate_address): Likewise.
6069 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6070 (minimal_symbol_upper_bound): Likewise.
6071 * parse.c (find_minsym_type_and_address): Likewise.
6072 (operator_check_standard): Likewise.
6073 * printcmd.c (info_address_command): Likewise.
6074 * symmisc.c (dump_msymbols): Likewise.
6075 (print_symbol): Likewise.
6076 * symtab.c (general_symbol_info::obj_section): Define new
6078 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6079 (find_pc_sect_compunit_symtab): Likewise.
6080 (find_function_start_sal): Likewise.
6081 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6082 MSYMBOL_OBJ_SECTION.
6083 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6085 (SYMBOL_OBJ_SECTION): Delete.
6086 (MSYMBOL_OBJ_SECTION): Delete.
6088 2021-02-09 Tom Tromey <tom@tromey.com>
6090 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6092 2021-02-09 Tom de Vries <tdevries@suse.de>
6095 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6096 construct an array type. Add assert to ensure that element_type is
6099 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6101 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6102 (gcore_collect_regset_section_cb): Delete.
6103 (gcore_collect_thread_registers): Delete.
6104 (gcore_build_thread_register_notes): Delete.
6105 (gcore_find_signalled_thread): Delete.
6106 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6107 'gdbarch' and 'thread_info' declarations.
6108 (gcore_build_thread_register_notes): Delete declaration.
6109 (gcore_find_signalled_thread): Likewise.
6110 * fbsd-tdep.c: Remove 'gcore.h' include.
6111 (struct fbsd_collect_regset_section_cb_data): New struct.
6112 (fbsd_collect_regset_section_cb): New function.
6113 (fbsd_collect_thread_registers): New function.
6114 (struct fbsd_corefile_thread_data): New struct.
6115 (fbsd_corefile_thread): New function.
6116 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6117 * linux-tdep.c: Remove 'gcore.h' include.
6118 (struct linux_collect_regset_section_cb_data): New struct.
6119 (linux_collect_regset_section_cb): New function.
6120 (linux_collect_thread_registers): New function.
6121 (linux_corefile_thread): Call Linux specific code.
6122 (find_signalled_thread): New function.
6123 (linux_make_corefile_notes): Call find_signalled_thread.
6125 2021-02-09 Tom Tromey <tromey@adacore.com>
6127 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6129 * value.c (value_contents_copy_raw): Now static.
6130 * value.h (value_contents_copy_raw): Don't declare.
6132 2021-02-09 Tom Tromey <tromey@adacore.com>
6134 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6137 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
6140 * arc-linux-tdep.c (handle_atomic_sequence): New.
6141 (arc_linux_software_single_step): Call handle_atomic_sequence().
6143 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6145 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6147 (REQUIRE_WINDOW): Call is_valid member function.
6148 (REQUIRE_WINDOW_FOR_SETTER): New define.
6149 (gdbpy_tui_is_valid): Call is_valid member function.
6150 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6151 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6153 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6154 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6157 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6159 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6160 for the title is not nullptr.
6162 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6164 * tui-layout.c (saved_tui_windows): Delete.
6165 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6166 call new get_windows member function instead.
6167 (tui_get_window_by_name): Check in tui_windows.
6168 (tui_layout_window::apply): Don't add to tui_windows.
6169 * tui-layout.h (tui_layout_base::get_windows): New member function.
6170 (tui_layout_window::get_windows): Likewise.
6171 (tui_layout_split::get_windows): Likewise.
6173 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6175 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6176 of the window objects.
6178 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6180 * python/python.c (gdbpy_print_stack): Reformat an error message.
6182 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6184 * tui/tui-interp.c (tui_command_line_handler): New function.
6185 (tui_interp::resume): Register tui_command_line_handler as the
6187 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6189 (tui_getc_1): Delete handling of '\n' and '\r'.
6190 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6192 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6194 * tui/tui-regs.c (tui_data_window::display_registers_from):
6195 Mark invisible register sub windows.
6196 (tui_data_window::check_register_values): Ignore invisible
6197 register sub windows.
6199 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6201 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6202 n_spaces with a negative value.
6204 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6206 * tui/tui-regs.c (tui_data_window::display_registers_from):
6207 Add refresh_window call.
6209 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6211 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6213 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6215 * symmisc.c (std_in, std_out, std_err): Remove.
6216 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6218 2021-02-05 Tom de Vries <tdevries@suse.de>
6220 PR breakpoints/27330
6221 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6222 glibc object file has debug info.
6224 2021-02-05 Tom de Vries <tdevries@suse.de>
6227 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6229 2021-02-05 Tom de Vries <tdevries@suse.de>
6231 PR breakpoints/27313
6232 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6235 2021-02-05 Tom Tromey <tom@tromey.com>
6237 * compile/compile-c-support.c (get_compile_context)
6238 (c_get_compile_context, cplus_get_compile_context): Change return
6240 * language.c (language_defn::get_compile_instance): New method.
6241 * language.h (language_defn::get_compile_instance): Change return
6242 type. No longer inline.
6243 * c-lang.c (c_language::get_compile_instance): Change return type.
6244 (cplus_language::get_compile_instance): Change return type.
6245 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6247 * compile/compile.c (compile_to_object): Update.
6249 2021-02-05 Tom Tromey <tom@tromey.com>
6251 * parser-defs.h (write_exp_symbol_reference): Declare.
6252 * parse.c (write_exp_symbol_reference): New function.
6253 * p-exp.y (variable): Use write_exp_symbol_reference.
6254 * m2-exp.y (variable): Use write_exp_symbol_reference.
6255 * f-exp.y (variable): Use write_exp_symbol_reference.
6256 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6257 * c-exp.y (variable): Use write_exp_symbol_reference.
6259 2021-02-05 Tom de Vries <tdevries@suse.de>
6262 * valarith.c (complex_binop): Throw an error if complex type can't
6265 2021-02-05 Tom de Vries <tdevries@suse.de>
6268 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6271 2021-02-05 Tom de Vries <tdevries@suse.de>
6273 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6275 2021-02-04 Mike Frysinger <vapier@gentoo.org>
6277 * configure.tgt (riscv*-*-*): Set gdb_sim.
6279 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6281 * target.c (target_is_non_stop_p): Return bool.
6282 * target.h (target_is_non_stop_p): Return bool.
6284 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6286 * record-full.c (record_full_async_inferior_event_handler):
6287 Don't clear async event handler.
6288 (record_full_base_target::wait): Clear async event handler at
6291 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6293 * record-btrace.c (record_btrace_handle_async_inferior_event):
6294 Don't clear async event handler.
6295 (record_btrace_target::wait): Clear async event handler at
6298 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6300 * remote.c (remote_target::wait): Clear async event handler at
6301 beginning, mark if needed at the end.
6302 (remote_async_inferior_event_handler): Don't set or clear async
6305 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6307 * async-event.h (async_event_handler_func): Add documentation.
6308 * async-event.c (check_async_event_handlers): Don't clear
6309 async_event_handler ready flag.
6310 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6312 * record-btrace.c (record_btrace_handle_async_inferior_event):
6314 * record-full.c (record_full_async_inferior_event_handler):
6316 * remote-notif.c (remote_async_get_pending_events_handler):
6318 * remote.c (remote_async_inferior_event_handler): Likewise.
6320 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6322 * infrun.c (handle_inferior_event): Move stop_soon variable to
6325 2021-02-03 Pedro Alves <pedro@palves.net>
6327 * infcmd.c (detach_command): Hold strong reference to target, and
6328 if all-stop on entry, restart threads on exit.
6329 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6330 (restart_stepped_thread): ... this new function. Also handle
6332 (restart_after_all_stop_detach): New function.
6333 * infrun.h (restart_after_all_stop_detach): Declare.
6335 2021-02-03 Pedro Alves <pedro@palves.net>
6337 * infrun.c (struct step_over_info): Initialize fields.
6338 (prepare_for_detach): Handle ongoing in-line step over.
6340 2021-02-03 Pedro Alves <pedro@palves.net>
6342 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6344 * remote.c (remote_target::remote_detach_1): ... and here ...
6345 * target.c (target_detach): ... instead of here.
6346 * target.h (target_ops::detach): Add comment.
6348 2021-02-03 Pedro Alves <pedro@palves.net>
6350 * infrun.c (struct wait_one_event): Move higher up.
6351 (prepare_for_detach): Abort in-progress displaced steps instead of
6352 letting them complete.
6353 (handle_one): If the inferior is detaching, don't add the thread
6354 back to the global step-over chain.
6355 (restart_threads): Don't restart threads if detaching.
6356 (handle_signal_stop): Remove inferior::detaching reference.
6358 2021-02-03 Pedro Alves <pedro@palves.net>
6360 * infrun.c (prepare_for_detach): Don't release scoped_restore
6363 2021-02-03 Pedro Alves <pedro@palves.net>
6365 * infrun.c (handle_one): New function, factored out from ...
6366 (stop_all_threads): ... here.
6368 2021-02-03 Pedro Alves <pedro@palves.net>
6370 * remote.c (remote_notif_stop_ack): Don't error out on
6371 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6372 (remote_target::discard_pending_stop_replies): Don't delete
6373 in-flight notification; instead, clear its contents.
6375 2021-02-03 Pedro Alves <pedro@palves.net>
6377 * remote.c (extended_remote_target::attach): Set target async in
6378 the target-non-stop path too.
6380 2021-02-03 Pedro Alves <pedro@palves.net>
6383 * infrun.c (handle_signal_stop): Move main context_switch call
6384 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6386 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6388 * NEWS (Changed commands): Add entry for the behavior change of
6389 the inferior command.
6390 * inferior.c (inferior_command): When no argument is given to the
6391 inferior command, display info about the currently selected
6394 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6396 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6398 (read_attribute_reprocess): Adjust.
6400 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6402 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6403 <gnu_ranges_base>: ... this...
6404 <rnglists_base>: ... and this.
6405 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6406 <gnu_ranges_base>: ... this...
6407 <rnglists_base>: ... and this.
6408 (read_cutu_die_from_dwo): Adjust
6409 (dwarf2_get_pc_bounds): Adjust
6410 (dwarf2_record_block_ranges): Adjust.
6411 (read_full_die_1): Adjust
6412 (partial_die_info::read): Adjust.
6413 (read_rnglist_index): Adjust.
6415 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6418 * dwarf2/read.c (read_loclists_rnglists_header): Add
6419 header_offset parameter and use it.
6420 (read_loclist_index): Read header of the current contribution,
6421 not the one at the beginning of the section.
6422 (read_rnglist_index): Likewise.
6424 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6427 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6428 requires_reprocessing flag.
6429 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6431 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6432 and DW_FORM_loclistx.
6433 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6434 instead of set_address for DW_FORM_loclistx and
6437 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6439 * dwarf2/read.c (read_loclist_index): Remove bound check for
6441 (read_rnglist_index): Likewise.
6443 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6445 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6448 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6450 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6452 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6454 * dwarf2/read.c (read_loclist_index): Change complaints into
6457 2021-02-02 Tom de Vries <tdevries@suse.de>
6460 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6463 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6465 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6466 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6467 here from linux-tdep.c and given a new name. Minor cleanups.
6468 (gcore_collect_regset_section_cb): Likewise.
6469 (gcore_collect_thread_registers): Likewise.
6470 (gcore_build_thread_register_notes): Likewise.
6471 (gcore_find_signalled_thread): Likewise.
6472 * gcore.h (gcore_build_thread_register_notes): Declare.
6473 (gcore_find_signalled_thread): Declare.
6474 * fbsd-tdep.c: Add 'gcore.h' include.
6475 (struct fbsd_collect_regset_section_cb_data): Delete.
6476 (fbsd_collect_regset_section_cb): Delete.
6477 (fbsd_collect_thread_registers): Delete.
6478 (struct fbsd_corefile_thread_data): Delete.
6479 (fbsd_corefile_thread): Delete.
6480 (fbsd_make_corefile_notes): Call
6481 gcore_build_thread_register_notes instead of the now deleted
6483 * linux-tdep.c: Add 'gcore.h' include.
6484 (struct linux_collect_regset_section_cb_data): Delete.
6485 (linux_collect_regset_section_cb): Delete.
6486 (linux_collect_thread_registers): Delete.
6487 (linux_corefile_thread): Call
6488 gcore_build_thread_register_notes.
6489 (find_signalled_thread): Delete.
6490 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6492 2021-01-29 Tom de Vries <tdevries@suse.de>
6494 PR breakpoints/26063
6495 * infrun.c (process_event_stop_test): Reset
6496 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6499 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6501 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6502 assert. Extend the header comment.
6504 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6506 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6507 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6508 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6509 (tui_locator_win_info_ptr): Delete declaration.
6510 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6511 (tui_disasm_window::set_contents): Fetch state from tui_location
6513 (tui_get_begin_asm_address): Likewise.
6514 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6516 (get_locator_window): Delete.
6517 (initialize_known_windows): Treat locator window just like all the
6519 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6520 (tui_source_window::set_contents): Fetch state from tui_location
6522 (tui_source_window::showing_source_p): Likewise.
6523 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6525 (tui_locator_win_info_ptr): Delete.
6526 (tui_locator_window::make_status_line): Fetch state from
6527 tui_location global.
6528 (tui_locator_window::rerender): Remove check of 'handle',
6529 reindent function body.
6530 (tui_locator_window::set_locator_fullname): Delete.
6531 (tui_locator_window::set_locator_info): Delete.
6532 (tui_update_locator_fullname): Delete.
6533 (tui_show_frame_info): Likewise.
6534 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6535 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6536 tui/tui-location.h and renamed to
6537 tui_location_tracker::set_location.
6538 (tui_locator_window::set_locator_fullname): Moved to
6539 tui/tui-location.h and renamed to
6540 tui_location_tracker::set_fullname.
6541 (tui_locator_window::full_name): Delete.
6542 (tui_locator_window::proc_name): Delete.
6543 (tui_locator_window::line_no): Delete.
6544 (tui_locator_window::addr): Delete.
6545 (tui_locator_window::gdbarch): Delete.
6546 (tui_update_locator_fullname): Delete declaration.
6547 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6549 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6550 (tui_display_main): Call function on tui_location directly.
6551 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6552 * tui/tui-location.c: New file.
6553 * tui/tui-location.h: New file.
6555 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6557 * gdbtypes.h (get_type_arch): Rename to...
6558 (struct type) <arch>: ... this, update all users.
6560 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6562 * gdbtypes.h (struct type) <arch>: Rename to...
6563 <arch_owner>: ... this, update all users.
6564 <objfile>: Rename to...
6565 <objfile_owner>: ... this, update all users.
6567 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6569 * gdbcmd.h (execute_command_to_string): Update comment.
6570 * top.c (execute_command_to_string): Update header comment.
6572 2021-01-28 Tom de Vries <tdevries@suse.de>
6574 PR breakpoints/27205
6575 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6576 (create_longjmp_master_breakpoint_names): New function, factored out
6578 (create_longjmp_master_breakpoint): ... here. Only try to install
6579 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6580 breakpoint in libc.so failed.
6582 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6585 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6586 unique_ptr is released when the wrapped pointer is kept for later
6589 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6591 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6592 BLR and BR instructions.
6593 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6594 (enum aarch64_masks): New.
6596 2021-01-26 Tom Tromey <tromey@adacore.com>
6598 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6599 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6600 (windows_init_thread_list, windows_nat::handle_load_dll)
6601 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6602 (windows_nat_target::resume)
6603 (windows_nat_target::get_windows_debug_event)
6604 (windows_nat_target::interrupt, windows_xfer_memory)
6605 (windows_nat_target::close): Update.
6606 * nat/windows-nat.c (DEBUG_EVENTS): Use
6607 debug_prefixed_printf_cond.
6608 (matching_pending_stop, fetch_pending_stop)
6609 (continue_last_debug_event): Update.
6611 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6613 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6614 elfcore_write_file_note.
6616 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6618 * arc-tdep.c (arc_add_reggroups): New function.
6619 (arc_gdbarch_init): Call arc_add_reggroups.
6621 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6623 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6625 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6626 Simon Marchi <simon.marchi@polymtl.ca>
6627 Tom de Vries <tdevries@suse.de>
6629 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6632 2021-01-25 Tom Tromey <tromey@adacore.com>
6634 * dwarf2/read.c (get_mpz): New function.
6635 (get_dwarf2_rational_constant): Use it.
6637 2021-01-25 Tom Tromey <tromey@adacore.com>
6639 * ada-lang.c (resolve_subexp): Handle array context.
6641 2021-01-23 Tom Tromey <tom@tromey.com>
6644 * compile/compile-loc2c.c (note_register): New function.
6645 (pushf_register_address, pushf_register): Use it.
6647 2021-01-23 Tom Tromey <tom@tromey.com>
6649 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6650 Change type of "registers_used".
6651 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6652 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6653 (locexpr_generate_c_location, loclist_generate_c_location): Change
6654 type of "registers_used".
6655 * compile/compile.h (compile_dwarf_expr_to_c)
6656 (compile_dwarf_bounds_to_c): Update.
6657 * compile/compile-loc2c.c (pushf_register_address)
6658 (pushf_register, do_compile_dwarf_expr_to_c)
6659 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6660 of "registers_used".
6661 * compile/compile-c.h (generate_c_for_variable_locations):
6663 * compile/compile-c-symbols.c (generate_vla_size)
6664 (generate_c_for_for_one_variable): Change type of
6666 (generate_c_for_variable_locations): Return std::vector.
6667 * compile/compile-c-support.c (generate_register_struct): Change
6668 type of "registers_used".
6671 2021-01-23 Tom Tromey <tom@tromey.com>
6673 * compile/compile-internal.h (class compile_instance)
6674 <set_arguments>: Change return type.
6675 * compile/compile.c (compile_to_object): Remove call to reset.
6676 (compile_instance::set_arguments): Change return type.
6678 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6680 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6681 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6683 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6685 * Makefile.in (SELFTESTS_SRCS): Add
6686 unittests/gdb_tilde_expand-selftests.c.
6687 * unittests/gdb_tilde_expand-selftests.c: New file.
6689 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6692 * NEWS: Mention new command.
6693 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6694 (version_style): Define.
6695 (cli_style_option::cli_style_option): Add intensity parameter, and
6697 (_initialize_cli_style): Register version style set/show commands.
6698 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6699 (version_style): Declare.
6700 * top.c (print_gdb_version): Use version_stype, and styled_string
6701 to print the GDB version string.
6703 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6705 * utils.c (emit_style_escape): Only emit an escape sequence if the
6706 requested style is different than the current applied style.
6707 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6708 current applied_style.
6709 (fputs_styled): Remove is_default check.
6710 (fputs_styled_unfiltered): Likewise.
6711 (vfprintf_styled_no_gdbfmt): Likewise.
6713 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6715 * remote.h (remote_debug_printf): New.
6716 (remote_debug_printf_nofunc): New.
6717 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6718 * remote.c: Use above macros throughout file.
6720 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6722 * remote.h (remote_debug): Change to bool.
6723 * remote.c (remote_debug): Change to bool.
6724 (_initialize_remote): Adjust.
6726 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6728 * target.h (remote_debug): Move to...
6729 * remote.h (remote_debug): ... here.
6730 * top.c (remote_debug): Move to...
6731 * remote.c (remote_debug): ... here.
6732 * remote-sim.c: Include remote.h.
6734 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6736 * cli/cli-cmds.c (show_remote_debug): Remove.
6737 (show_remote_timeout): Remove.
6738 (_initialize_cli_cmds): Don't register commands.
6739 * remote.c (show_remote_debug): Move here.
6740 (show_remote_timeout): Move here.
6741 (_initialize_remote): Register commands.
6743 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6745 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6746 type::objfile method instead.
6748 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6750 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6751 use the type::is_objfile_owned method.
6753 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6755 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6756 (TYPE_OWNER): Remove.
6757 (TYPE_OBJFILE): Adjust.
6758 (struct main_type) <flag_objfile_owned>: Rename to...
6759 <m_flag_objfile_owned>: ... this.
6760 <owner>: Rename to...
6761 <m_owner>: ... this.
6762 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6764 (TYPE_ALLOC): Adjust.
6765 * gdbtypes.c (alloc_type): Adjust.
6766 (alloc_type_arch): Adjust.
6767 (alloc_type_copy): Adjust.
6768 (get_type_arch): Adjust.
6769 (smash_type): Adjust.
6770 (lookup_array_range_type): Adjust.
6771 (recursive_dump_type): Adjust.
6772 (copy_type_recursive): Adjust.
6773 * compile/compile-c-types.c (convert_func): Adjust.
6774 (convert_type_basic): Adjust.
6775 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6778 (language_arch_info::type_and_symbol::alloc_type_symbol):
6781 2021-01-21 Luis Machado <luis.machado@linaro.org>
6783 * coffread.c (enter_linenos): Passing string to complaint.
6784 * valops.c (value_assign): Make array view.
6786 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6788 * auto-load.h (debug_auto_load): Move here.
6789 (auto_load_debug_printf): New.
6790 * auto-load.c: Use auto_load_debug_printf.
6791 (debug_auto_load): Move to header.
6792 * linux-thread-db.c (try_thread_db_load): Use
6793 auto_load_debug_printf.
6794 * main.c (captured_main_1): Likewise.
6796 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6798 * f-valprint.c (f77_array_offset_tbl): Remove.
6800 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6802 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6804 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6806 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6809 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
6812 * python/py-breakpoint.c (bppy_get_location): Handle
6813 bp_hardware_breakpoint.
6814 (bppy_init): Likewise.
6815 (gdbpy_breakpoint_created): Likewise.
6817 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6819 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6821 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6823 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6824 (_initialize_gdb_bfd): Adjust.
6826 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6829 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6831 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6833 * dwarf2/read.c (follow_die_offset): Add logging.
6834 (dwarf2_per_objfile::age_comp_units): Add logging.
6836 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6838 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6839 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6840 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6841 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6842 * arm-tdep.c (struct frame_unwind): Make static.
6843 * auto-load.c (auto_load_safe_path_vec): Make static.
6844 * csky-tdep.c (csky_stub_unwind): Make static.
6845 * gdbarch.c (gdbarch_data_registry): Make static.
6846 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6847 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6848 * i386-tdep.c (i386_frame_setup_skip_insns,
6849 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6851 * infrun.c (observer_mode): Make static.
6852 * linux-nat.c (sigchld_action): Make static.
6853 * linux-thread-db.c (thread_db_list): Make static.
6854 * maint-test-options.c (maintenance_test_options_list):
6855 * mep-tdep.c (mep_csr_registers): Make static.
6856 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6857 (stats): Make static.
6858 * nat/linux-osdata.c (struct osdata_type): Make static.
6859 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6860 * progspace.c (last_program_space_num): Make static.
6861 * python/py-param.c (struct parm_constant): Remove struct type
6863 (parm_constants): Make static.
6864 * python/py-record-btrace.c (btpy_list_methods): Make static.
6865 * python/py-record.c (recpy_gap_type): Make static.
6866 * record.c (record_goto_cmdlist): Make static.
6867 * regcache.c (regcache_descr_handle): Make static.
6868 * registry.h (DEFINE_REGISTRY): Make definition static.
6869 * symmisc.c (std_in, std_out, std_err): Make static.
6870 * top.c (previous_saved_command_line): Make static.
6871 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6873 * unittests/command-def-selftests.c (nr_duplicates,
6874 nr_invalid_prefixcmd, lists): Make static.
6875 * unittests/observable-selftests.c (test_notification): Make
6877 * unittests/optional/assignment/1.cc (counter): Make static.
6878 * unittests/optional/assignment/2.cc (counter): Make static.
6879 * unittests/optional/assignment/3.cc (counter): Make static.
6880 * unittests/optional/assignment/4.cc (counter): Make static.
6881 * unittests/optional/assignment/5.cc (counter): Make static.
6882 * unittests/optional/assignment/6.cc (counter): Make static.
6884 2021-01-20 Joel Sherrill <joel@rtems.org>
6887 * remote.c (struct remote_thread_info) <resume_state>: Rename
6889 <get_resume_state>: ... this.
6890 (remote_target::resume): Adjust.
6891 (remote_target::commit_resume): Adjust.
6892 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6894 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6895 Tom Tromey <tom@tromey.com>
6897 * stap-probe.c (stap_parse_single_operand): Handle '!'
6899 (stap_parse_argument_conditionally): Likewise.
6900 Skip spaces after processing open-parenthesis sub-expression.
6901 (stap_parse_argument_1): Skip spaces after call to
6902 stap_parse_argument_conditionally.
6903 Handle case when right-side expression is a parenthesized
6905 Skip spaces after call to stap_parse_argument_1.
6907 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6909 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6911 2021-01-19 Luis Machado <luis.machado@linaro.org>
6913 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6914 memory and save data.
6915 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6916 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6917 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6918 (trad_frame_value_bytes_p): Remove.
6919 (trad_frame_reset_saved_regs): Adjust documentation.
6920 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6921 constructor and reset the state of the registers.
6922 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6923 (trad_frame_value_bytes_p, trad_frame_set_value)
6924 (trad_frame_set_realreg, trad_frame_set_addr)
6925 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6926 (trad_frame_set_reg_realreg): Update to call member function.
6927 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6928 (trad_frame_get_prev_register): Likewise.
6930 * aarch64-tdep.c (aarch64_analyze_prologue)
6931 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6932 (aarch64_prologue_prev_register): Update to use member functions.
6933 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6934 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6935 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6936 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6937 (arm_make_epilogue_frame_cache): Likewise.
6938 * avr-tdep.c (avr_frame_unwind_cache)
6939 (avr_frame_prev_register): Likewise.
6940 * cris-tdep.c (cris_scan_prologue): Likewise.
6941 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6942 * frv-tdep.c (frv_analyze_prologue): Likewise.
6943 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6944 * lm32-tdep.c (lm32_frame_cache): Likewise.
6945 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6946 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6947 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6948 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6949 (reset_saved_regs): Adjust to set realreg.
6950 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6951 call member functions.
6952 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6953 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6954 (s390_backchain_frame_unwind_cache): Likewise.
6955 * score-tdep.c (score7_analyze_prologue)
6956 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6957 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6958 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6959 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6960 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6961 * tilegx-tdep.c (tilegx_analyze_prologue)
6962 (tilegx_frame_cache): Likewise.
6963 * v850-tdep.c (v850_frame_cache): Likewise.
6964 * vax-tdep.c (vax_frame_cache): Likewise.
6966 2021-01-19 Luis Machado <luis.machado@linaro.org>
6968 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6970 (put_frame_register_bytes): Likewise.
6971 Adjust documentation.
6972 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6973 (safe_frame_unwind_memory): Likewise.
6974 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6975 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6977 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6978 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6979 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6980 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6981 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6982 * dwarf2/loc.c (rw_pieced_value): Likewise.
6983 * hppa-tdep.c (hppa_frame_cache): Likewise.
6984 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6985 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6986 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6987 (i386_linux_rt_sigtramp_start): Likewise.
6988 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6989 * i386-tdep.c (i386_register_to_value): Likewise.
6990 * i387-tdep.c (i387_register_to_value): Likewise.
6991 * ia64-tdep.c (ia64_register_to_value): Likewise.
6992 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6993 (m32r_linux_rt_sigtramp_start): Likewise.
6994 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6995 * m68k-tdep.c (m68k_register_to_value): Likewise.
6996 * mips-tdep.c (mips_register_to_value)
6997 (mips_value_to_register): Likewise.
6998 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6999 (ppcfbsd_sigtramp_frame_cache): Likewise.
7000 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7001 (ppcobsd_sigtramp_frame_cache): Likewise.
7002 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7003 (rs6000_register_to_value): Likewise.
7004 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7005 * tramp-frame.c (tramp_frame_start): Likewise.
7006 * valops.c (value_assign): Likewise.
7008 2021-01-19 Luis Machado <luis.machado@linaro.org>
7010 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7012 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7013 instead of buffer and size.
7014 (trad_frame_set_reg_value_bytes): Likewise.
7015 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7016 (trad_frame_set_value_bytes): Likewise.
7018 2021-01-18 Mike Frysinger <vapier@gentoo.org>
7020 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7022 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7024 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7025 (riscv_fbsd_gregset): Use riscv_supply_regset.
7026 (riscv_fbsd_fpregset): Likewise.
7027 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7028 (riscv_linux_fregset): Likewise.
7029 * riscv-tdep.c (riscv_supply_regset): Define new function.
7030 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7032 2021-01-18 Tom de Vries <tdevries@suse.de>
7035 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7037 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7040 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7042 * remote.c (class remote_target) <remote_hostio_send_command,
7043 remote_hostio_parse_result>: Constify parameter.
7044 (remote_hostio_parse_result): Likewise.
7045 (remote_target::remote_hostio_send_command): Adjust.
7046 (remote_target::remote_hostio_pread_vFile): Adjust.
7047 (remote_target::fileio_readlink): Adjust.
7048 (remote_target::fileio_fstat): Adjust.
7050 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7052 * remote.c (remote_target::start_remote): Move wait_status to
7055 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7057 * remote.c (class remote_target):
7058 <add_current_inferior_and_thread>: Constify parameter.
7059 (stop_reply_extract_thread): Likewise.
7060 (remote_target::get_current_thread): Likewise.
7061 (remote_target::add_current_inferior_and_thread): Likewise.
7063 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7065 * remote.c (class remote_target)
7066 <remote_unpack_thread_info_response,
7067 parse_threadlist_response>: Constify parameter and/or return
7068 value and or local variable.
7069 (stub_unpack_int): Likewise.
7070 (unpack_nibble): Likewise.
7071 (unpack_byte): Likewise.
7072 (unpack_int): Likewise.
7073 (unpack_string): Likewise.
7074 (unpack_threadid): Likewise.
7075 (remote_target::remote_unpack_thread_info_response): Likewise.
7076 (remote_target::parse_threadlist_response): Likewise.
7078 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7080 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7082 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
7084 * MAINTAINERS (Write After Approval): Add myself.
7086 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7088 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7089 because is_trivially_default_constructible was first implemented with
7092 2021-01-14 Tom de Vries <tdevries@suse.de>
7094 PR breakpoints/27151
7095 * objfiles.h (in_plt_section): Handle .plt.sec.
7097 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7101 (remote_target::select_thread_for_ambiguous_stop_reply): New
7103 (remote_target::process_stop_reply): Call
7104 select_thread_for_ambiguous_stop_reply.
7106 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7108 * record-btrace.c (class record_btrace_target): Remove.
7109 (record_btrace_target::commit_resume): Remove.
7110 * record-full.c (class record_full_target): Remove.
7111 (record_full_target::commit_resume): Remove.
7113 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7115 * remote.c (enum class resume_state): New.
7116 (struct resumed_pending_vcont_info): New.
7117 (struct remote_thread_info) <resume_state, set_not_resumed,
7118 set_resumed_pending_vcont, resumed_pending_vcont_info,
7119 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7121 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7122 (remote_target::remote_add_thread): Adjust.
7123 (remote_target::process_initial_stop_replies): Adjust.
7124 (remote_target::resume): Adjust.
7125 (remote_target::commit_resume): Rely on state in
7126 remote_thread_info and not on tp->executing.
7127 (remote_target::process_stop_reply): Adjust.
7129 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7131 * arc-tdep.h (arc_debug_printf): New.
7132 * arc-tdep.c: Use arc_debug_printf.
7133 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7134 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7135 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7137 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7139 * arc-tdep.h (arc_debug): Change type to bool.
7140 * arc-tdep.c (arc_debug): Change type to bool.
7141 (arc_analyze_prologue): Adjust.
7142 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7143 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7145 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7147 * auto-load.c (auto_load_objfile_script_1): Use bool.
7148 (execute_script_contents): Use bool.
7150 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7152 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7154 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7156 * extension-priv.h (struct extension_language_script_ops)
7157 <auto_load_enabled>: Return bool.
7158 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7160 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7162 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7164 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7165 move comment to header.
7166 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7168 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7169 move comment to header.
7171 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7173 * auto-load.h (file_is_auto_load_safe): Change return type to
7174 bool, move comment here.
7175 * auto-load.c (file_is_auto_load_safe): Change return type and
7176 advice_printed to bool. Move comment to header.
7178 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7180 * jit.c (jit_debug_printf): New, use throughout file.
7182 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7184 * infrun.c (normal_stop): Fix indentation.
7186 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7188 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7190 * symfile.h: ... here.
7191 * symfile.c: Update doc.
7193 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7195 * target.h (baud_rate, serial_parity): Move declarations...
7196 * serial.h: ... here.
7197 * main.c: Include serial.h.
7198 * serial.c (baud_rate, serial_parity): Update doc.
7200 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7202 * top.c (pre_init_ui_hook): Remove.
7204 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7206 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7207 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7208 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7209 * features/aarch64-fpu.xml: Add bfloat16 type.
7211 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7213 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7215 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7217 * f-exp.y (dot_ops): Rename to...
7218 (fortran_operators): ...this. Add a header comment. Add symbol
7220 (yylex): Update to use fortran_operators not dot_ops. Remove
7221 special handling for '**', this is now included in
7224 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7226 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7227 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7228 * aarch64-tdep.c: Use aarch64_debug_printf.
7230 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7232 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7235 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7237 * jit.c (jit_debug): Change type to bool.
7238 (_initialize_jit): Adjust.
7240 2021-01-09 Tom Tromey <tom@tromey.com>
7243 * compile/compile.c (compile_to_object): Avoid crash when
7244 osabi_triplet_regexp returns NULL.
7246 2021-01-09 Tom Tromey <tom@tromey.com>
7248 * tracepoint.h (class collection_list) <append_exp>: Take a
7250 * tracepoint.c (collection_list::append_exp): Take a std::string.
7251 (encode_actions_1): Update.
7253 2021-01-08 Tom Tromey <tromey@adacore.com>
7255 * parse.c (parse_expression): Add void_context_p parameter. Use
7256 parse_exp_in_context.
7257 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7259 (print_command, call_command): Update.
7260 * expression.h (parse_expression): Add void_context_p parameter.
7262 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7264 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7265 for internalvar components that have a dynamic location.
7267 2021-01-08 Tom de Vries <tdevries@suse.de>
7270 * breakpoint.c (create_exception_master_breakpoint_probe)
7271 (create_exception_master_breakpoint_hook): Factor out
7273 (create_exception_master_breakpoint): ... here. Only try to install
7274 the master exception breakpoint in objfile.debug using the
7275 _Unwind_DebugHook method, if the install using probes in objfile
7278 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7280 * f-lang.c (fortran_value_subarray): Call value_from_component.
7282 2021-01-07 Mike Frysinger <vapier@gentoo.org>
7284 * remote-sim.c: Include memory-map.h.
7285 (gdbsim_target): Define memory_map override.
7286 (gdbsim_target::memory_map): Define.
7288 2021-01-07 Tom Tromey <tromey@adacore.com>
7290 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7292 2021-01-07 Tom Tromey <tromey@adacore.com>
7294 * ada-lang.c (add_component_interval): Start loop using vector's
7297 2021-01-06 Tom Tromey <tromey@adacore.com>
7299 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7301 * valarith.c (fixed_point_binop): Handle multiplication
7302 and division specially.
7303 * valops.c (value_to_gdb_mpq): New function.
7304 (value_cast_to_fixed_point): Use it.
7306 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7308 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7309 Call wnoutrefresh instead of tui_win_info::refresh_window.
7311 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7313 * tui/tui-source.c (tui_source_window::show_line_number):
7314 Redraw second space after line number.
7316 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7319 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7320 Fix source pad size in prefresh.
7321 (tui_source_window_base::show_source_content): Grow source pad
7324 2021-01-04 Mike Frysinger <vapier@gentoo.org>
7326 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7327 (bfin_frame_align): Use align_down.
7329 2021-01-04 Tom de Vries <tdevries@suse.de>
7331 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7332 terminators that do not terminate anything.
7334 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7336 * debug.c (debug_print_depth): New.
7337 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7338 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7339 * infrun.c (start_step_over): Use
7340 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7341 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7342 INFRUN_SCOPED_DEBUG_START_END.
7343 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7345 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7347 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7349 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7351 * utils.c (vfprintf_unfiltered): Print timestamp only when
7352 previous debug output ended with a newline.
7354 2021-01-04 Luis Machado <luis.machado@linaro.org>
7356 Update all users of trad_frame_saved_reg to use the new member
7359 Remote all struct keywords from declarations of trad_frame_saved_reg
7360 types, except on forward declarations.
7362 * aarch64-tdep.c: Update.
7363 * alpha-mdebug-tdep.c: Update.
7364 * alpha-tdep.c: Update.
7365 * arc-tdep.c: Update.
7366 * arm-tdep.c: Update.
7367 * avr-tdep.c: Update.
7368 * cris-tdep.c: Update.
7369 * csky-tdep.c: Update.
7370 * frv-tdep.c: Update.
7371 * hppa-linux-tdep.c: Update.
7372 * hppa-tdep.c: Update.
7373 * hppa-tdep.h: Update.
7374 * lm32-tdep.c: Update.
7375 * m32r-linux-tdep.c: Update.
7376 * m32r-tdep.c: Update.
7377 * m68hc11-tdep.c: Update.
7378 * mips-tdep.c: Update.
7379 * moxie-tdep.c: Update.
7380 * riscv-tdep.c: Update.
7381 * rs6000-tdep.c: Update.
7382 * s390-linux-tdep.c: Update.
7383 * s390-tdep.c: Update.
7384 * score-tdep.c: Update.
7385 * sparc-netbsd-tdep.c: Update.
7386 * sparc-sol2-tdep.c: Update.
7387 * sparc64-fbsd-tdep.c: Update.
7388 * sparc64-netbsd-tdep.c: Update.
7389 * sparc64-obsd-tdep.c: Update.
7390 * sparc64-sol2-tdep.c: Update.
7391 * tilegx-tdep.c: Update.
7392 * v850-tdep.c: Update.
7393 * vax-tdep.c: Update.
7395 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7396 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7398 * trad-frame.c: Update.
7399 Remove TF_REG_* enum.
7400 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7401 a trivially-constructible struct.
7402 (trad_frame_reset_saved_regs): Adjust to use member function.
7403 (trad_frame_value_p): Likewise.
7404 (trad_frame_addr_p): Likewise.
7405 (trad_frame_realreg_p): Likewise.
7406 (trad_frame_value_bytes_p): Likewise.
7407 (trad_frame_set_value): Likewise.
7408 (trad_frame_set_realreg): Likewise.
7409 (trad_frame_set_addr): Likewise.
7410 (trad_frame_set_unknown): Likewise.
7411 (trad_frame_set_value_bytes): Likewise.
7412 (trad_frame_get_prev_register): Likewise.
7413 * trad-frame.h: Update.
7414 (trad_frame_saved_reg_kind): New enum.
7415 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7416 <m_kind, m_reg>: New member fields.
7417 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7418 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7419 <is_addr, is_unknown, is_value_bytes>: New member functions.
7421 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7423 * target-float.c: Fix typos.
7425 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
7427 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7429 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7431 * gdbarch.sh: Update copyright year range.
7433 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7435 Update copyright year range in copyright header of all GDB files.
7437 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7439 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7440 to the list of directories to update.
7442 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7444 * top.c (print_gdb_version): Update copyright year.
7446 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
7448 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
7450 For older changes see ChangeLog-2020.
7456 version-control: never