1 2021-07-26 Frederic Cambus <fred@statdns.com>
3 * syscalls/netbsd.xml: Regenerate.
5 2021-07-26 Shahab Vahedi <shahab@synopsys.com>
6 Simon Marchi <simon.marchi@efficios.com>
9 * valprint.c (val_print_type_code_flags): Merely shift the VAL
10 to the right to get rid of the lower bits.
11 (test_print_flags): New.
12 (_initialize_valprint): Invoke the "test_print_flags" as a unit-test.
14 2021-07-26 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17 * mi/mi-cmd-break.c (mi_cmd_break_condition): Handle the case
18 of having no condition argument.
20 2021-07-20 Luis Machado <luis.machado@linaro.org>
21 Pedro Alves <pedro@palves.net>
24 * gdbarch.sh: Updated documentation for gdbarch_tagged_address_p.
25 * gdbarch.h: Regenerate.
26 * printcmd.c (should_validate_memtags): Reorder comparisons and only
27 validate tags for pointer and reference types. Skip validation of
28 optimized out or unavailable values.
29 (print_command_1): Guard call memory tagging validation code with
32 2021-07-19 Tom Tromey <tromey@adacore.com>
35 * language.c (auto_or_unknown_language::parser): Call error.
37 2021-07-17 Sergey Belyashov <Sergey.Belyashov@gmail.com>
39 * Makefile.in (ALL_TARGET_OBS): Add z80-tdep.c.
40 * NEWS: Mention z80 support.
41 * configure.tgt: Handle z80*.
42 * features/Makefile (XMLTOC): Add z80.xml.
43 * features/z80-cpu.xml: New.
44 * features/z80.c: Generate.
45 * features/z80.xml: New.
46 * z80-tdep.c: New file.
47 * z80-tdep.h: New file.
49 2021-07-13 Lancelot Six <lsix@lancelotsix.com>
51 * make-init-c: Use /bin/sh as shebang.
53 2021-07-13 Pedro Alves <pedro@palves.net>
56 * gdb_bfd.c (gdb_bfd_close_warning): New.
57 (gdb_bfd_iovec_fileio_close): Wrap target_fileio_close in
58 try/catch and print warning on exception.
59 (gdb_bfd_close_or_warn): Use gdb_bfd_close_warning.
61 2021-07-13 Pedro Alves <pedro@palves.net>
64 * remote.c (remote_unpush_target): Invalidate file I/O target
66 * target.c (fileio_handles_invalidate_target): Make extern.
67 * target.h (fileio_handles_invalidate_target): Declare.
69 2021-07-13 Simon Marchi <simon.marchi@polymtl.ca>
71 * mi/mi-main.c (mi_cmd_exec_interrupt): Use
72 scoped_disable_commit_resumed in the --thread-group case.
74 2021-07-13 John Ericson <git@JohnEricson.me>
76 * sparc-tdep.h: Fix comment.
77 * netbsd-tdep.c (nbsd_info_proc_mappings_header): Fix comment.
78 (nbsd_init_abi): Fix comment.
79 * configure.tgt (*-*-netbsd* | *-*-knetbsd*-gnu): Fix netbsd
81 (alpha*-*-openbsd*): Likewise.
82 (sparc-*-openbsd*): Likewise.
83 (sparc64-*-openbsd*): Likewise.
85 2021-07-11 Tom Tromey <tom@tromey.com>
87 Committed by Joel Brobecker <brobecker@adacore.com>:
88 * gdb/symtab.c (info_sources_filter::matches): Add default
89 case hander in switch statement.
91 2021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
93 * s390-linux-tdep.c (s390_linux_init_abi_any): Pass 1 (number
94 of displaced stepping buffers to linux_init_abi.
95 * s390-tdep.c (s390_gdbarch_init): Don't set the Linux-specific
96 displaced-stepping gdbarch callbacks.
98 2021-07-08 Simon Marchi <simon.marchi@polymtl.ca>
100 * Makefile.in (SUBDIRS): Remove testsuite.
102 2021-07-06 Simon Marchi <simon.marchi@polymtl.ca>
104 * configure.ac: Remove things that were moved from
105 testsuite/configure.ac.
106 * configure: Re-generate.
108 2021-07-05 Simon Marchi <simon.marchi@polymtl.ca>
110 * config.in, configure: Re-generate.
112 2021-07-04 Simon Marchi <simon.marchi@polymtl.ca>
114 * solib-darwin.c (darwin_solib_create_inferior_hook): Return
115 early if no execution.
117 2021-07-03 Joel Brobecker <brobecker@adacore.com>
119 * version.in: Set GDB version number to 11.0.90.DATE-git.
121 2021-07-03 Joel Brobecker <brobecker@adacore.com>
123 GDB 11.0.90 released.
125 2021-07-03 Joel Brobecker <brobecker@adacore.com>
127 * version.in: Set GDB version number to 11.0.90.
129 2021-07-03 Joel Brobecker <brobecker@adacore.com>
131 * NEWS: Replace "Changes since GDB 10" by "Changes in GDB 11".
133 2021-07-03 Joel Brobecker <brobecker@adacore.com>
135 GDB 11 branch created (4b51505e33441c6165e7789fa2b6d21930242927):
136 * version.in: Bump version to 11.0.90.DATE-git.
138 2021-07-02 Tom Tromey <tromey@adacore.com>
140 * ada-exp.y (chop_selector, chop_separator, write_selectors)
141 (write_ambiguous_var, get_symbol_field_type): Use const.
143 2021-07-02 Pedro Alves <pedro@palves.net>
144 Hannes Domani <ssbssa@yahoo.de>
146 * NEWS: Add new "TUI Improvements" section and mention mouse
147 support and that unrecognized special keys are now passed to
148 GDB. Mention Python Window.click in the Python improvements
151 2021-07-01 Pedro Alves <pedro@palves.net>
155 * linux-nat.c (linux_nat_target::detach): Close the
156 /proc/<pid>/mem file if it was open for this process.
157 (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>: Close the
158 /proc/<pid>/mem file if it was open for this process.
159 (linux_nat_target::mourn_inferior): Close the /proc/<pid>/mem file
160 if it was open for this process.
161 (linux_nat_target::xfer_partial): Adjust. Do not fall back to
162 inf_ptrace_target::xfer_partial for memory accesses.
163 (last_proc_mem_file): New.
164 (maybe_close_proc_mem_file): New.
165 (linux_proc_xfer_memory_partial_pid): New, with bits factored out
166 from linux_proc_xfer_partial.
167 (linux_proc_xfer_partial): Delete.
168 (linux_proc_xfer_memory_partial): New.
170 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
172 * frame.h (FRAME_SCOPED_DEBUG_ENTER_EXIT): New.
173 * frame.c (compute_frame_id, get_prev_frame_always_1,
174 get_prev_frame): Use FRAME_SCOPED_DEBUG_ENTER_EXIT.
175 * frame-unwind.c (frame_unwind_find_by_frame): Likewise.
176 (frame_unwind_register_value): Likewise.
178 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
180 * frame-unwind.h (struct frame_unwind) <name>: New. Update
181 instances everywhere to include this field.
182 * frame-unwind.c (frame_unwind_try_unwinder,
183 frame_unwind_find_by_frame): Add debug messages.
185 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
187 * frame.h (frame_debug_printf): New.
188 * frame.c: Use frame_debug_printf throughout when printing frame
190 * amd64-windows-tdep.c: Likewise.
193 2021-06-29 Simon Marchi <simon.marchi@polymtl.ca>
195 * frame.h (frame_debug): Change type to bool.
196 * frame.c (frame_debug): Change type to bool.
197 (_initialize_frame): Adjust.
199 2021-06-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
201 * gdbthread.h (find_thread_ptid): Remove the duplicate declaration.
203 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
206 * machoread.c (macho_symfile_offsets): Use
207 gdb_bfd_count_sections to allocate objfile::section_offsets.
209 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
211 * objfiles.h (struct obj_section): Move down.
212 <offset, set_offset, addr, endaddr>: New.
213 (obj_section_offset, obj_section_addr, obj_section_endaddr),
214 replace all users to use obj_section methods.
215 (struct objfile) <section_offset, set_section_offset>: New.
217 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
219 * objfiles.h (struct obj_section): Move down.
220 <offset, set_offset, addr, endaddr>: New.
221 (obj_section_offset, obj_section_addr, obj_section_endaddr),
222 replace all users to use obj_section methods.
223 (struct objfile) <section_offset, set_section_offset>: New.
225 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
229 2021-06-28 Luis Machado <luis.machado@linaro.org>
231 * aarch64-linux-tdep.c (aarch64_linux_memtag_matches_p): Remove the top
233 (aarch64_linux_set_memtags): Likewise.
234 (aarch64_linux_get_memtag): Likewise.
235 (aarch64_linux_report_signal_info): Likewise.
237 2021-06-28 Luis Machado <luis.machado@linaro.org>
239 * aarch64-linux-tdep.c
240 (aarch64_linux_iterate_over_regset_sections): Fix FFR register size.
242 2021-06-28 Luis Machado <luis.machado@linaro.org>
244 * aarch64-linux-tdep.c
245 (aarch64_linux_iterate_over_regset_sections): Update tag_ctl register
247 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Set to
248 8 and update comments.
250 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
252 * gdbarch.sh (struct gdbarch_info): Initialize fields, add
254 * gdbarch.h: Re-generate.
255 * arch-utils.h (gdbarch_info_init): Remove, delete all usages.
256 * arch-utils.c (gdbarch_info_init): Remove.
258 2021-06-28 Simon Marchi <simon.marchi@polymtl.ca>
260 * gdbarch.sh (struct gdbarch_info) <tdep_info>: Remove.
261 (gdbarch_find_by_info): Remove print.
262 * gdbarch.c, gdbarch.h: Re-generate.
264 2021-06-28 Andrew Burgess <andrew.burgess@embecosm.com>
266 * remote.c (remote_target::start_remote): Set 'starting_up' using
267 boolean values instead of integers.
269 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
271 * guile/scm-param.c (struct param_smob) <set_command,
272 show_command>: Remove.
274 (pascm_is_valid): Adjust.
275 (add_setshow_generic): Use return values of add_setshow
276 functions, return a set_show_commands.
277 (gdbscm_register_parameter_x): Adjust.
279 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
281 * command.h (add_setshow_enum_cmd): Remove context parameter.
282 * cli/cli-decode.c (add_setshow_enum_cmd): Likewise, and don't
284 * cli/cli-style.c (cli_style_option::add_setshow_commands): Set
287 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
289 * cli/cli-decode.h (struct cmd_list_element) <set_context>: Add
292 2021-06-25 Simon Marchi <simon.marchi@polymtl.ca>
294 * cli/cli-decode.h (struct cmd_list_element) <set_context,
296 <context>: Rename to...
297 <m_context>: ... this.
298 * cli/cli-decode.c (set_cmd_context, get_cmd_context): Remove.
299 * command.h (set_cmd_context, get_cmd_context): Remove, use
300 cmd_list_element::set_context and cmd_list_element::context
303 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
305 * NEWS: Mention changes to 'info sources'.
306 * symtab.c (info_sources_filter::print): Delete.
307 (struct output_source_filename_data) <print_header>: Delete
308 declaration. <printed_filename_p>: New member function.
309 (output_source_filename_data::print_header): Delete.
310 (info_sources_worker): Update group-by-objfile style output to
311 make it CLI suitable, simplify non-group-by-objfile now this is
312 only used from the MI.
313 (info_sources_command): Make group-by-objfile be the default for
314 CLI info sources command.
315 * symtab.h (struct info_sources_filter) <print>: Delete.
317 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
319 * NEWS: Mention additions to -file-list-exec-source-files.
320 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Add
321 --group-by-objfile option.
322 * symtab.c (isrc_flag_option_def): Rename to...
323 (isrc_match_flag_option_def): ...this.
324 (info_sources_option_defs): Rename to...
325 (info_sources_match_option_defs): ...this, and update to rename of
326 isrc_flag_option_def.
327 (struct filename_grouping_opts): New struct.
328 (isrc_grouping_flag_option_def): New type.
329 (info_sources_grouping_option_defs): New static global.
330 (make_info_sources_options_def_group): Update to return two option
332 (info_sources_command_completer): Update for changes to
333 make_info_sources_options_def_group.
334 (info_sources_worker): Add extra parameter, use this to display
335 alternative output format.
336 (info_sources_command): Pass extra parameter to
338 (_initialize_symtab): Update for changes to
339 make_info_sources_options_def_group.
340 * symtab.h (info_sources_worker): Add extra parameter.
342 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
344 * NEWS: Mention additions to -file-list-exec-source-files.
345 * mi/mi-cmd-file.c (print_partial_file_name): Delete.
346 (mi_cmd_file_list_exec_source_files): Rewrite to handle command
347 options, and make use of info_sources_worker.
348 * symtab.c (struct info_sources_filter): Moved to symtab.h.
349 (info_sources_filter::print): Take uiout argument, produce output
351 (struct output_source_filename_data)
352 <output_source_filename_data>: Take uiout argument, store into
353 m_uiout. <output>: Rewrite comment, add additional arguments to
354 declaration. <operator()>: Send more arguments to
355 output. <m_uiout>: New member variable.
356 (output_source_filename_data::output): Take extra arguments,
357 produce output through m_uiout, and structure for MI.
358 (output_source_filename_data::print_header): Produce output
360 (info_sources_worker): New function, the implementation is taken
361 from info_sources_command, but modified so produce output through
363 (info_sources_command): The second half of this function has gone
364 to become info_sources_worker.
365 * symtab.h (struct info_sources_filter): Moved from symtab.c, add
366 extra parameter to print member function.
367 (info_sources_worker): Declare.
369 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
371 * symtab.c (struct info_sources_filter): New.
372 (info_sources_filter::info_sources_filter): New function.
373 (info_sources_filter::matches): New function.
374 (info_sources_filter::print): New function.
375 (struct filename_partial_match_opts): Moved to later in the file
376 and update the comment.
377 (struct output_source_filename_data)
378 <output_source_filename_data>: New constructor. <regexp>: Delete,
379 this is now in info_sources_filter. <c_regexp>: Delete, this is
380 now in info_sources_filter. <reset_output>: New member function.
381 <filename_seen_cache>: Rename to m_filename_seen_cache, change
382 from being a pointer, to being an actual object. <first>: Rename
383 to m_first. <print_header>: New member function. <partial_match>:
385 (output_source_filename_data::output): Update now
386 m_filename_seen_cache is no longer a pointer, and for other member
387 variable name changes. Add a header comment.
388 (print_info_sources_header): Renamed to...
389 (output_source_filename_data::print_header): ...this. Update now
390 it's a member function and to take account of member variable
392 (info_sources_command): Add a header comment, delete stack local
393 filename_seen_cache, initialization of output_source_filename_data
394 is now done by the constructor. Call print_header member function
395 instead of print_info_sources_header, call reset_output member
396 function instead of manually performing the reset.
398 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
400 * dwarf2/read.c (struct dwarf2_base_index_functions)
401 <has_unexpanded_symtabs>: Declare.
402 (dwarf2_base_index_functions::has_unexpanded_symtabs): Define new
404 * objfiles.h (struct objfile) <has_unexpanded_symtabs>: Declare.
405 * psympriv.h (struct psymbol_functions) <has_unexpanded_symtabs>:
407 * psymtab.c (psymbol_functions::has_unexpanded_symtabs): Define
409 * quick-symbol.h (struct quick_symbol_functions)
410 <has_unexpanded_symtabs>: Declare.
411 * symfile-debug.c (objfile::has_unexpanded_symtabs): Define new
414 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
416 * infcall.c (call_function_by_hand_dummy): Add missing 'else' when
417 setting prototyped flag.
419 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
421 * ada-lang.c (desc_bounds): Use '{}' instead of NULL to indicate
422 an empty gdb::optional when calling value_struct_elt.
423 (desc_data): Likewise.
424 (desc_one_bound): Likewise.
425 * eval.c (structop_base_operation::evaluate_funcall): Pass
426 gdb::array_view, not a gdb::array_view* to value_struct_elt.
427 (eval_op_structop_struct): Use '{}' instead of NULL to indicate
428 an empty gdb::optional when calling value_struct_elt.
429 (eval_op_structop_ptr): Likewise.
430 * f-lang.c (fortran_structop_operation::evaluate): Likewise.
431 * guile/scm-value.c (gdbscm_value_field): Likewise.
432 * m2-lang.c (eval_op_m2_high): Likewise.
433 (eval_op_m2_subscript): Likewise.
434 * opencl-lang.c (opencl_structop_operation::evaluate): Likewise.
435 * python/py-value.c (valpy_getitem): Likewise.
436 * rust-lang.c (rust_val_print_str): Likewise.
437 (rust_range): Likewise.
438 (rust_subscript): Likewise.
439 (eval_op_rust_structop): Likewise.
440 (rust_aggregate_operation::evaluate): Likewise.
441 * valarith.c (value_user_defined_op): Likewise.
442 * valops.c (search_struct_method): Change parameter type, update
443 function body accordingly, and update header comment.
444 (value_struct_elt): Change parameter type, update function body
446 * value.h (value_struct_elt): Update declaration.
448 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
451 * eval.c (structop_base_operation::evaluate_funcall): Pass
452 array_view instead of array to value_struct_elt.
453 * valarith.c (value_user_defined_op): Likewise.
454 * valops.c (typecmp): Change parameter type from array pointer to
455 array_view. Update header comment, and update body accordingly.
456 (search_struct_method): Likewise.
457 (value_struct_elt): Likewise.
458 * value.h (value_struct_elt): Update declaration.
460 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
463 * eval.c (structop_base_operation::evaluate_funcall): Add a
464 nullptr to the end of the args array, which should not be included
465 in the argument array_view. Pass all the arguments through to
467 * valops.c (search_struct_method): Update header comment.
468 (value_struct_elt): Likewise.
470 2021-06-25 Tom Tromey <tom@tromey.com>
472 * dwarf2/read.c (create_addrmap_from_aranges): Change padding
475 2021-06-25 Tom Tromey <tom@tromey.com>
477 * dwarf2/read.c (process_psymtab_comp_unit): Don't set 'lang'.
478 (scan_partial_symbols, partial_die_parent_scope)
479 (add_partial_symbol, add_partial_subprogram)
480 (compute_delayed_physnames, rust_union_quirks)
481 (process_full_comp_unit, process_full_type_unit)
482 (process_imported_unit_die, process_die, dw2_linkage_name)
483 (dwarf2_compute_name, dwarf2_physname, read_import_statement)
484 (read_file_scope, queue_and_load_dwo_tu, read_func_scope)
485 (read_variable, dwarf2_get_subprogram_pc_bounds)
486 (dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
487 (dwarf2_attach_fn_fields_to_type)
488 (quirk_ada_thick_pointer_struct, read_structure_type)
489 (handle_struct_member_die, process_structure_scope)
490 (read_array_type, read_array_order, prototyped_function_p)
491 (read_subroutine_type, dwarf2_init_complex_target_type)
492 (read_base_type, read_subrange_type, read_unspecified_type)
493 (load_partial_dies, partial_die_info::fixup, set_cu_language)
494 (new_symbol, need_gnat_info, determine_prefix, typename_concat)
495 (dwarf2_canonicalize_name, follow_die_offset)
496 (prepare_one_comp_unit): Update.
497 * dwarf2/cu.c (dwarf2_cu::start_symtab): Update.
499 2021-06-25 Tom Tromey <tom@tromey.com>
501 * dwarf2/read.c (read_file_scope): Don't call set_cu_language.
502 (dwarf_lang_to_enum_language): Rename from set_cu_language. Don't
503 set language_defn. Handle DW_LANG_OpenCL.
504 (prepare_one_comp_unit): Check producer and set language_defn.
506 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
508 * NEWS: Mention Python BP_CATCHPOINT feature.
509 * python/py-breakpoint.c (pybp_codes): Add bp_catchpoint support.
510 (bppy_init): Likewise.
511 (gdbpy_breakpoint_created): Likewise.
513 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
515 * guile/scm-breakpoint.c (bpscm_type_to_string): Handle
517 (bpscm_want_scm_wrapper_p): Likewise.
518 (gdbscm_make_breakpoint): Likewise.
519 (breakpoint_integer_constants): Likewise.
521 2021-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
523 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Split the error
524 for invalid breakpoint numbers, and unsupported breakpoint
527 2021-06-25 Tom Tromey <tom@tromey.com>
529 * dwarf2/index-write.c (struct addrmap_index_data): Add
531 <operator()>: Declare.
532 (addrmap_index_data::operator()): Rename from
533 add_address_entry_worker. Remove 'datap' parameter.
534 (write_address_map): Update.
535 * psymtab.c (struct dump_psymtab_addrmap_data): Remove
536 (dump_psymtab_addrmap_1): Remove 'data' parameter, add other
538 (dump_psymtab_addrmap): Update.
539 * addrmap.c (struct addrmap_funcs) <foreach>: Remove 'data'
541 (addrmap_foreach, addrmap_fixed_foreach): Likewise.
542 (struct mutable_foreach_data): Remove.
543 (addrmap_mutable_foreach_worker): Update.
544 (addrmap_mutable_foreach): Remove 'data' parameter.
545 * addrmap.h (addrmap_foreach_fn): Use gdb::function_view.
546 (addrmap_foreach): Remove 'data' parameter.
548 2021-06-25 Tom Tromey <tromey@adacore.com>
550 * python/py-type.c (typy_get_name): Decode an Ada type name.
552 2021-06-25 Tom Tromey <tromey@adacore.com>
554 * ada-lang.c (ada_decode): Add wrap parameter.
555 * ada-lang.h (ada_decode): Add wrap parameter.
557 2021-06-25 Luis Machado <luis.machado@linaro.org>
559 * corelow.c (core_target::core_target) Update to read target
562 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
564 * python/lib/gdb/__init__.py: Format.
566 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
568 * infrun.c (do_target_wait): Remove wait_ptid parameter.
569 (fetch_inferior_event): Adjust.
571 2021-06-22 Simon Marchi <simon.marchi@polymtl.ca>
573 * python/lib/gdb/__init__.py (_execute_unwinders): Return tuple
574 with name of chosen unwinder.
575 * python/py-unwind.c (pyuw_sniffer): Print name of chosen
576 unwinder in debug message.
578 2021-06-22 Andreas Schwab <schwab@suse.de>
581 * dwarf2/loc.c (decode_debug_loclists_addresses): Support
584 2021-06-22 Andrew Burgess <andrew.burgess@embecosm.com>
586 * breakpoint.c (insert_bp_location): If we catch a
587 TARGET_CLOSE_ERROR just rethrow it, the breakpoints might have
590 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
592 * NEWS: Mention new target feature name.
593 * arch/riscv.c (riscv_create_target_description): GDB doesn't
594 currently create target descriptions containing vector registers.
595 * arch/riscv.h (struct riscv_gdbarch_features) <vlen>: New member
597 <operator==>: Also compare vlen.
598 <hash>: Also include vlen.
599 * riscv-tdep.c (riscv_feature_name_vector): New static global.
600 (struct riscv_vector_feature): New struct.
601 (riscv_vector_feature): New static global.
602 (riscv_register_reggroup_p): Ensure vector registers are part of
603 the 'all' group, and part of the 'vector' group.
604 (riscv_dwarf_reg_to_regnum): Handle vector registers.
605 (riscv_gdbarch_init): Check vector register feature.
606 * riscv-tdep.h: Add vector registers to GDB's internal register
607 numbers, and to the DWARF register numbers.
609 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
611 * NEWS: Mention the two new methods.
612 * python/py-frame.c (frapy_level): New function.
613 (frame_object_methods): Register 'level' method.
614 * python/py-unwind.c (pending_framepy_level): New function.
615 (pending_frame_object_methods): Register 'level' method.
617 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
619 * python/py-inferior.c (infpy_get_connection_num): Call
620 gdb_py_object_from_longest instead of PyLong_FromLong directly.
622 2021-06-21 Andrew Burgess <andrew.burgess@embecosm.com>
624 * python/py-unwind.c (unwind_infopy_add_saved_register): Handle
625 saving user registers.
627 2021-06-19 Mike Frysinger <vapier@gentoo.org>
629 * acinclude.m4: Delete most m4_include's of ../config files.
630 * configure.ac: Delete m4_include call and call AC_CONFIG_MACRO_DIR.
631 * aclocal.m4: Regenerate.
632 * configure: Regenerate.
634 2021-06-17 Pedro Alves <pedro@palves.net>
636 * scoped_ignore_signal.h (scoped_ignore_signal): Add
637 ConsumePending template parameter.
638 (scoped_ignore_signal::~scoped_ignore_signal): Skip calling
639 sigtimedwait if ConsumePending is false.
640 (scoped_ignore_sigpipe): Initialize with ConsumePending=true.
641 * scoped_ignore_sigttou.h (scoped_ignore_sigttou)
642 <m_ignore_signal>: Initialize with ConsumePending=false.
644 2021-06-17 Pedro Alves <pedro@palves.net>
646 * Makefile.in (SELFTESTS_SRCS): Add
647 unittests/scoped_ignore_signal-selftests.c.
648 * unittests/scoped_ignore_signal-selftests.c: New.
650 2021-06-17 Pedro Alves <pedro@palves.net>
652 * gdbsupport/scoped_ignore_signal.h: New.
653 * compile/compile.c: Include gdbsupport/scoped_ignore_signal.h
654 instead of <signal.h>. Don't include <unistd.h>.
655 (scoped_ignore_sigpipe): Remove.
656 * gdbsupport/scoped_ignore_sigttou.h: Include gdbsupport/scoped_ignore_signal.h
657 instead of <signal.h>. Don't include <unistd.h>.
659 (scoped_ignore_sigttou): Reimplement using scoped_ignore_signal
662 2021-06-17 Pedro Alves <pedro@palves.net>
664 * Makefile.in (HFILES_NO_SRCDIR): Remove inflow.h.
665 * inf-ptrace.c, inflow.c, procfs.c: Don't include "inflow.h".
666 * inflow.h: Delete, moved to gdbsupport/ under a different name.
667 * ser-unix.c: Don't include "inflow.h". Include
668 "gdbsupport/scoped_ignore_sigttou.h".
670 2021-06-17 Pedro Alves <pedro@palves.net>
672 * tui/tui-io.c (tui_dispatch_mouse_event): New, factored out from
674 (tui_dispatch_ctrl_char): ... this. Move CTRL-L handling to
676 (cur_seq, start_sequence): New.
677 (tui_getc_1): Pass key escape sequences for curses control keys to
678 readline. Handle mouse and ctrl-l here.
679 (tui_resize_all): Disable/reenable the keypad if the command
680 window has the focus too.
681 * tui/tui-win.c (tui_set_focus_command): Don't change keypad
683 * tui/tui.c (tui_rl_other_window): Don't change keypad setting.
685 2021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
687 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
689 2021-06-16 Tom de Vries <tdevries@suse.de>
692 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
693 (dwarf2_cu::get_builder): Declare and move ...
694 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
695 of ancestor. Assert return value is non-null.
696 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
697 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
698 (dwarf2_per_objfile): Add sym_cu field.
700 2021-06-15 Alan Modra <amodra@gmail.com>
702 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
704 2021-06-14 Mike Frysinger <vapier@gentoo.org>
706 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
707 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
709 2021-06-14 John Baldwin <jhb@FreeBSD.org>
711 * configure.ac: Check for <sys/procctl.h>.
712 * config.in, configure: Regenerate.
713 * fbsd-nat.c: Include <sys/procctl.h> if present.
714 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
715 (fbsd_nat_target::create_inferior)
716 (fbsd_nat_target::supports_disable_randomization): New.
717 * fbsd-nat.h (fbsd_nat_target::create_inferior)
718 (fbsd_nat_target::supports_disable_randomization): New.
720 2021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
722 * compile/compile.c: Include missing header signal.h.
724 2021-06-12 John Baldwin <jhb@FreeBSD.org>
726 * remote.c (remote_new_objfile): Fix indentation.
728 2021-06-11 Kevin Buettner <kevinb@redhat.com>
730 * solib.c (libpthread_name_p): Match "libc" in addition
732 * linux-thread-db.c (libpthread_objfile_p): New function.
733 (libpthread_name_p): Adjust preexisting callers to use
734 libpthread_objfile_p().
736 2021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
738 * dwarf2/loc.h (struct call_site_stuff): Remove.
740 2021-06-11 Tom Tromey <tom@tromey.com>
743 * rust-parse.c (rust_parser::lex_identifier): Handle raw
745 (rust_lex_tests): Add raw identifier tests.
747 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
749 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
750 instead of '== None'.
751 (FrameVars): Use 'is not None' instead of '!= None'.
752 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
753 Use 'is None' instead of '== None' and 'is not None' instead of '!=
756 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
758 * inferior.h (class inferior) <in_initial_library_scan>: New.
759 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
760 * infrun.c (follow_fork_inferior): Likewise.
761 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
762 by try_thread_db_load_1
763 (thread_db_load): Return early if in_initial_library_scan is
765 * remote.c (remote_new_objfile): Return early if
766 in_initial_library_scan is set.
768 2021-06-07 Pedro Alves <pedro@palves.net>
770 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
772 * symtab.h (struct symbol): Add defaulted copy assignment
775 2021-06-07 Pedro Alves <pedro@palves.net>
777 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
778 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
779 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
782 2021-06-07 Pedro Alves <pedro@palves.net>
784 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
785 (nat_sigval_t): ... this and remove typedef of same name.
786 (struct nat_siginfo): Rename to ...
787 (nat_siginfo_t): ... this and remove typedef of same name.
788 (struct compat_sigval): Rename to ...
789 (compat_sigval_t): ... this and remove typedef of same name.
790 (struct compat_siginfo): Rename to ...
791 (compat_siginfo_t): ... this and remove typedef of same name.
792 (struct compat_x32_siginfo): Rename to ...
793 (compat_x32_siginfo_t): ... this and remove typedef of same name.
794 (amd64_linux_siginfo_fixup_common): Adjust.
796 2021-06-07 Pedro Alves <pedro@palves.net>
798 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
799 __attribute__ __aligned__ from the typedef to the struct.
801 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
804 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
805 type_align, and spot case where the alignment is unknown.
807 2021-06-07 Carl Love <cel@us.ibm.com>
809 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
810 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
811 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
812 ppc64_pcrel_linkage2_target): New functions.
813 (ppc64_standard_linkage9, ppc64_standard_linkage10,
814 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
815 instruction patterns.
816 (ppc64_standard_linkage9, ppc64_standard_linkage10,
817 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
818 in define MAX expression.
819 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
820 ppc64_standard_linkage10, ppc64_standard_linkage11,
821 ppc64_standard_linkage12.
822 * (ppc_insn_prefix_dform): New function.
824 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
827 * sparc-nat.c (sparc_fetch_inferior_registers): Set
828 inferior_ptid instead of using switch_to_thread.
829 (sparc_store_inferior_registers): Likewise.
831 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
833 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
834 (compile_to_object): Ignore SIGPIPE before calling the plugin.
836 2021-06-05 Tom Tromey <tom@tromey.com>
838 * data-directory/Makefile.in (Makefile): Use correct directory
841 2021-06-05 Tom Tromey <tom@tromey.com>
843 * data-directory/Makefile.in (Makefile): Rewrite.
845 2021-06-05 Tom Tromey <tromey@adacore.com>
847 * configure: Rebuild.
848 * configure.ac: Add ACX_NONCANONICAL_TARGET.
850 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
852 * NEWS: Document 'set disassembler-options' support for the ARC
854 * arc-tdep.c (arc_gdbarch_init): Set
855 'gdbarch_valid_disassembler_options'.
857 2021-06-04 Tom Tromey <tromey@adacore.com>
859 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
861 * dwarf2/loc.c (dwarf2_evaluate_property) <case
862 PROP_VARIABLE_NAME>: New case.
863 (compute_var_value): New function.
864 (sect_variable_value): Use compute_var_value.
865 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
866 (var_decl_name): New function.
867 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
868 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
870 (union dynamic_prop_data) <variable_name>: New member.
871 (struct dynamic_prop) <variable_name, set_variable_name>: New
874 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
876 * remote.c (remote_target)
877 <select_thread_for_ambiguous_stop_reply>: Add additional debug
880 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
882 * python/py-tui.c (class tui_py_window): Add click function.
883 (tui_py_window::click): Likewise.
885 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
887 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
888 * tui/tui-data.h (struct tui_win_info): Add click function.
889 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
890 (tui_deprep_terminal): Disable mouse events.
891 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
892 * tui/tui.c (tui_disable): Disable mouse events.
894 2021-06-03 Magne Hov <mhov@undo.io>
897 * eval.c (expression::evaluate): Check inferior_ptid.
899 2021-06-03 Pedro Alves <pedro@palves.net>
901 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
903 (Global Maintainers): Update my address.
904 (Write After Approval): Remove stale entry.
906 2021-06-03 John Baldwin <jhb@FreeBSD.org>
908 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
909 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
910 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
911 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
912 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
913 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
914 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
915 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
916 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
917 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
918 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
919 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
920 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
921 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
922 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
923 (fbsd_report_signal_info): New.
924 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
925 report_signal_info method.
927 2021-06-03 Magne Hov <mhov@undo.io>
929 * MAINTAINERS (Write After Approval): Add Magne Hov.
931 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
933 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
934 gdb.SYMBOL_LABEL_DOMAIN constant.
936 2021-06-01 John Baldwin <jhb@FreeBSD.org>
938 * infrun.c (handle_inferior_event): Only call
939 gdbarch_displaced_step_restore_all_in_ptid if
940 gdbarch_supports_displaced_stepping is true.
942 2021-06-01 Tom Tromey <tromey@adacore.com>
944 * Makefile.in (all-data-directory): Remove.
945 (data-directory/Makefile): Remove.
947 2021-06-01 Tom Tromey <tromey@adacore.com>
949 * configure: Rebuild.
950 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
952 2021-06-01 Tom Tromey <tromey@adacore.com>
954 * silent-rules.mk (ECHO_CC): New variable.
956 2021-06-01 Tom Tromey <tromey@adacore.com>
958 * Makefile.in (SUBDIRS): Add testsuite.
959 (all): Don't exclude testsuite.
961 2021-06-01 Tom Tromey <tromey@adacore.com>
963 * configure.ac: Copy some code from testsuite/configure.ac.
964 (enable_libctf): Subst this, not ENABLE_LIBCTF.
965 * configure: Rebuild.
967 2021-06-01 Tom de Vries <tdevries@suse.de>
970 * minsyms.c (msymbol_is_cold_clone): New function.
971 (msymbol_is_function): Use msymbol_is_cold_clone.
973 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
974 Andrew Burgess <andrew.burgess@embecosm.com>
977 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
978 (ALLDEPFILES): Add arm-none-tdep.c
979 * arm-none-tdep.c: New file.
980 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
982 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
983 Richard Bunt <richard.bunt@arm.com>
985 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
986 check for why the backtrace stopped.
988 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
990 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
992 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
993 signature parameter, update all callers.
994 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
997 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
999 * dwarf2/read.h (signatured_type_up): New, use where possible.
1001 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
1003 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
1005 2021-05-30 Tom Tromey <tom@tromey.com>
1007 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
1009 (create_signatured_type_table_from_index)
1010 (create_signatured_type_table_from_debug_names, add_type_unit)
1011 (read_comp_units_from_section): Update.
1013 2021-05-30 Tom Tromey <tom@tromey.com>
1015 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
1016 m_num_psymtabs>: Remove.
1017 (resize_symtabs): Update.
1018 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
1019 (dwarf2_per_bfd::allocate_signatured_type): Update.
1021 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1023 * Fix tab after space indentation issues throughout.
1025 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1027 * Fix some indentation mistakes throughout.
1029 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1031 * breakpoint.h (iterate_over_bp_locations): Remove. Update
1032 users to use all_bp_locations.
1033 (all_bp_locations): New.
1034 * breakpoint.c (all_bp_locations): Make non-static.
1035 (iterate_over_bp_locations): Remove.
1037 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1039 * breakpoint.h (iterate_over_breakpoints): Remove. Update
1040 callers to use all_breakpoints or all_breakpoints_safe.
1041 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
1042 all_breakpoints_safe): Move here.
1043 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
1045 (iterate_over_breakpoints): Remove.
1046 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
1048 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
1050 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
1052 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1054 * breakpoint.c (get_first_locp_gte_addr): Remove.
1055 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
1056 all_bp_locations_at_addr.
1057 (struct bp_locations_at_addr_range): New.
1058 (all_bp_locations_at_addr): New.
1059 (bp_locations_compare_addrs): New.
1061 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1063 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
1065 (all_bp_locations): New.
1067 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1069 * breakpoint.c (bp_locations): Change to std::vector, update all
1071 (bp_locations_count): Remove.
1072 (update_global_location_list): Change to work with indices
1073 rather than bp_location**.
1075 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1077 * breakpoint.h (bp_locations_range): New.
1078 (struct breakpoint) <locations>: New. Use where possible.
1080 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1082 * breakpoint.h (all_tracepoints): Remove.
1083 (breakpoint_iterator): Move here.
1084 (struct tracepoint_filter): New.
1085 (tracepoint_iterator): New.
1086 (tracepoint_range): New.
1087 (all_tracepoints): New.
1088 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
1090 (breakpoint_iterator): Move to header.
1091 (all_tracepoints): New.
1092 * tracepoint.c (start_tracing): Adjust.
1094 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1096 * breakpoint.c (breakpoint_safe_range): New.
1097 (all_breakpoints_safe): New. Use instead of
1098 ALL_BREAKPOINTS_SAFE where possible.
1100 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1102 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
1104 (breakpoint_iterator): New.
1105 (breakpoint_range): New.
1106 (all_breakpoints): New.
1108 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
1110 * python/py-tui.c (tui_py_window::output): Add full_window
1112 (gdbpy_tui_write): Parse "full_window" argument.
1114 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1116 * make-init-c: Add option to reverse function calls.
1118 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1120 * Makefile.in (INIT_FILES_FILTER_OUT): New.
1121 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
1122 (stamp-init): Use make-init-c.
1123 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
1124 * silent-rules.mk (ECHO_INIT_C): Change.
1125 * make-init-c: New file.
1127 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1129 * command.h (add_alias_cmd): Accept target as
1130 cmd_list_element. Update callers.
1132 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1134 * command.h (add_info_alias): Accept target as
1135 cmd_list_element. Update callers.
1137 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1139 * command.h (add_com_alias): Accept target as
1140 cmd_list_element. Update callers.
1142 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1144 * python/py-param.c (add_setshow_generic): Use return values of
1145 add_setshow functions.
1147 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1149 * mi/mi-main.c (_initialize_mi_main):
1150 * python/py-auto-load.c (gdbpy_initialize_auto_load):
1151 * remote.c (_initialize_remote):
1153 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
1155 * command.h (set_show_commands): New.
1156 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
1157 add_setshow_boolean_cmd, add_setshow_filename_cmd,
1158 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
1159 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
1160 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
1161 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1162 Return set_show_commands. Adjust callers.
1163 * cli/cli-decode.c (add_setshow_cmd_full): Return
1164 set_show_commands, remove result parameters, adjust callers.
1166 2021-05-27 Tom de Vries <tdevries@suse.de>
1169 * dwarf2/read.c (process_psymtab_comp_unit):
1171 2021-05-27 Tom de Vries <tdevries@suse.de>
1173 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
1176 2021-05-27 Tom de Vries <tdevries@suse.de>
1179 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
1180 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
1181 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
1182 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
1184 (dwarf2_per_cu_data): Remove load_all_dies field.
1186 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
1188 * regcache.c (reg_buffer::reg_buffer): Default-initialize
1191 2021-05-26 Tom Tromey <tom@tromey.com>
1193 * dwarf2/read.c (allocate_type_unit_groups_table)
1194 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
1196 (free_line_header_voidp): Remove.
1198 (completion_tracker::completion_hash_entry::deleter): Remove.
1199 (completion_tracker::discard_completions): Use htab_delete_entry.
1200 * utils.h (htab_delete_entry): New template function.
1202 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
1204 * python/py-tui.c (tui_py_window::refresh_window):
1207 2021-05-23 Tom de Vries <tdevries@suse.de>
1210 * target.h (struct target_ops): Mention target_thread_architecture in
1211 read_description comment.
1212 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
1213 pid to determine if process is 64-bit or 32-bit.
1214 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
1216 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
1217 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
1218 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
1219 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
1220 Likewise, use pid to determine if kernel supports reading VFP
1223 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1225 * main.c (enum cmdarg_kind): Fix option type comments for
1226 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
1228 2021-05-21 Tom de Vries <tdevries@suse.de>
1231 * contrib/cc-with-tweaks.sh: Handle -l.
1233 2021-05-21 Tom de Vries <tdevries@suse.de>
1236 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
1237 objects. Call get_jiter_objfile_data with the_objfile.
1239 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
1241 * linespec.c (linespec_p): Remove. Replace all uses with
1244 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1245 Pedro Alves <pedro@palves.net>
1247 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
1248 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
1249 command_line_up instead of struct command_line.
1250 (build_command_line): Likewise.
1251 (get_command_line): Update the cmd function call parameter.
1252 (process_next_line): Use unique_ptr command_line_up instead
1253 of struct command_line.
1254 (recurse_read_control_structure): Change the the type of
1255 next to command_line_up.
1256 (read_command_lines_1): Change type of `next' to be
1257 command_line_up and update all references of `next'
1260 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
1262 * MAINTAINERS (Write After Approval): Add myself.
1264 2021-05-19 John Baldwin <jhb@FreeBSD.org>
1266 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
1268 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
1270 * inflow.c (new_tty): Do not leak tty.
1272 2021-05-17 Tom Tromey <tom@tromey.com>
1274 * dwarf2/read.h: Update include.
1275 * dwarf2/read.c: Update include.
1276 * dwarf2/line-header.c: Update include.
1277 * dwarf2/cu.h: Update include.
1278 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
1279 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
1280 * Makefile.in (COMMON_SFILES): Update.
1282 2021-05-17 Tom Tromey <tom@tromey.com>
1284 * dwarf2/read.c (maybe_queue_comp_unit)
1285 (dwarf2_per_objfile::age_comp_units): Update.
1286 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
1288 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
1289 add_dependence>: New methods.
1290 <m_dependencies>: Add "m_" prefix. Now private.
1291 <m_mark>: Add "m_" prefix.
1292 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
1293 (dwarf2_mark_helper): New function.
1294 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
1296 2021-05-17 Tom Tromey <tom@tromey.com>
1298 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
1299 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
1300 (dwarf2_cu::dwarf2_cu): Move to cu.c.
1301 * dwarf2/cu.c: New file.
1302 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
1304 2021-05-17 Tom Tromey <tom@tromey.com>
1306 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
1307 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
1309 * dwarf2/cu.h: New file.
1311 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
1313 * .dir-locals.el: Set sentence-end-double-space for all modes, and
1314 set brace-list-open to 0 for C and C++ modes.
1316 2021-05-17 Tom Tromey <tromey@adacore.com>
1318 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
1321 2021-05-17 Tom Tromey <tromey@adacore.com>
1323 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
1324 (group_from_gid): Subtract one from strncpy length.
1326 2021-05-17 Tom Tromey <tromey@adacore.com>
1328 * source.c (add_path): Check 'p' before using 'p[-1]'.
1330 2021-05-17 Tom Tromey <tromey@adacore.com>
1332 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
1333 (dwarf2_per_cu_data_up): New typedef.
1334 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
1335 <all_comp_units>: Use dwarf2_per_cu_data_up.
1336 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
1337 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
1338 (create_cu_from_index_list): Likewise.
1339 (create_signatured_type_table_from_index)
1340 (create_cus_from_debug_names_list, add_type_unit)
1341 (read_comp_units_from_section): Update.
1342 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
1345 2021-05-17 Tom Tromey <tom@tromey.com>
1347 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
1348 (sort_tu_by_abbrev_offset): Remove.
1349 (build_type_psymtabs): Update.
1351 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1353 * py-project.toml: New.
1354 * gdb-gdb.py.in: Re-format.
1356 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1358 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
1360 * command.h (cmd_func_p): Remove.
1361 * cli/cli-decode.c (cmd_func_p): Remove.
1363 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1365 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
1367 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1369 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
1371 <alias_target>: ... this.
1372 (add_alias_cmd): Rename old to target.
1373 (add_info_alias): Rename old_name to target_name.
1374 (add_com_alias): Likewise.
1376 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1378 * Rename "prefixlist" parameters to "subcommands" throughout.
1379 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
1380 <subcommands>: ... this.
1381 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
1382 (lookup_cmd_with_subcommands): ... this.
1384 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1386 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
1388 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
1390 * cli/cli-decode.h (prefixname): Make const, move implementation
1391 to cli/cli-decode.c.
1392 * cli/cli-decode.c (cmd_list_element::prefixname): New.
1394 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
1396 * ctfread.c (new_symbol): Set function address.
1397 (read_func_kind_type): Remove incorrect type name setting.
1398 Don't copy name returned from ctf_type_ame_raw throughout file.
1400 2021-05-14 Tom Tromey <tom@tromey.com>
1402 * rust-lang.c (rust_language::val_print_struct)
1403 (rust_language::print_enum): Use common_val_print, not
1406 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1408 * python/py-inferior.c (infpy_get_connection_num): New function.
1409 (inferior_object_getset): Add a new element for 'connection_num'.
1410 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
1412 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
1414 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
1415 argument type, update and re-wrap, header comment.
1416 (remote_target::commit_resumed): Convert any_process_wildcard and
1417 may_global_wildcard_vcont from int to bool.
1419 2021-05-14 Kent Cheung <kent.cheung@arm.com>
1421 * cp-valprint.c (cp_print_value): Replaced duplicate code.
1422 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
1423 just before printing child values.
1424 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
1425 printing string representation.
1426 * python/py-prettyprint.c (print_children): Check max_depth just
1427 before printing child values.
1428 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
1429 printing string representation.
1431 2021-05-14 Mike Frysinger <vapier@gentoo.org>
1433 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
1434 sim/callback.h & sim/sim.h.
1436 2021-05-13 Mike Frysinger <vapier@gentoo.org>
1438 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
1439 sim-regno.h include.
1441 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1443 * inf-child.h (inf_child_target) <follow_exec>: New.
1444 * inf-child.c (inf_child_target::follow_exec): New.
1446 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1448 * target.h (struct target_ops) <follow_exec>: Add ptid_t
1450 (target_follow_exec): Likewise.
1451 * target.c (target_follow_exec): Add ptid_t parameter.
1452 * infrun.c (follow_exec): Adjust call to target_follow_exec,
1453 don't push target nor create thread.
1454 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
1455 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
1456 (thread_db_target::follow_exec): New.
1457 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
1458 (remote_target::follow_exec): Call
1459 process_stratum_target::follow_exec.
1460 * target-delegates.c: Re-generate.
1462 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
1464 * infrun.c (follow_exec): Call target_follow_fork when
1465 follow-exec-mode is same.
1466 * target.h (target_follow_fork): Improve doc.
1468 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
1470 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
1472 * cli/cli-setshow.c (do_show_command): Adjust.
1474 2021-05-13 Luis Machado <luis.machado@linaro.org>
1476 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
1477 include the last address in the range.
1479 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
1481 * python/python-internal.h (gdbpy_parse_command_name): Return
1482 gdb::unique_xmalloc_ptr.
1483 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1484 (cmdpy_init): Adjust.
1485 * python/py-param.c (parmpy_init): Adjust.
1486 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
1489 2021-05-12 George Barrett <bob@bob131.so>
1491 * NEWS (Guile API): Note the addition of the new procedure.
1492 * guile/scm-value.c (gdbscm_value_const_value): Add
1493 implementation of value-const-value procedure.
1494 (value_functions): Add value-const-value procedure.
1496 2021-05-12 George Barrett <bob@bob131.so>
1498 * NEWS (Guile API): Note the addition of new procedures.
1499 * guile/scm-value.c (gdbscm_reference_value): Add helper function
1500 for reference value creation.
1501 (gdbscm_value_reference_value): Add implementation of
1502 value-reference-value procedure.
1503 (gdbscm_value_rvalue_reference_value): Add implementation of
1504 value-rvalue-reference-value procedure.
1505 (value_functions): Add value-reference-value procedure. Add
1506 value-rvalue-reference-value procedure.
1508 2021-05-12 George Barrett <bob@bob131.so>
1510 * guile/scm-type.c (type_integer_constants): Add binding for
1511 TYPE_CODE_RVALUE_REF.
1512 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
1513 dereferencing of rvalue references.
1514 * NEWS (Guile API): Note improvements in rvalue reference support.
1516 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
1518 * btrace.c (handle_pt_insn_events): Ignore status update enable
1521 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1523 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
1526 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
1528 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
1530 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
1533 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
1536 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
1538 * nat/linux-waitpid.c (status_to_str): Show signal name.
1540 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1542 * python/py-breakpoint.c (pybp_debug): New static global.
1543 (show_pybp_debug): New function.
1544 (pybp_debug_printf): Define.
1545 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
1546 (gdbpy_breakpoint_created): Add some debugging.
1547 (gdbpy_breakpoint_deleted): Likewise.
1548 (gdbpy_breakpoint_modified): Likewise.
1549 (_initialize_py_breakpoint): New function.
1551 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1553 * python/py-unwind.c (pyuw_debug): Convert to bool.
1554 (show_pyuw_debug): New function.
1555 (pyuw_debug_printf): Define.
1556 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
1557 (pyuw_this_id): Convert to new debug print macros.
1558 (pyuw_prev_register): Likewise.
1559 (pyuw_sniffer): Likewise.
1560 (pyuw_dealloc_cache): Likewise.
1561 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
1562 show function when registering.
1564 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
1566 * dummy-frame.c (fprint_dummy_frames): Convert use of
1567 fprint_frame_id to use frame_id::to_string.
1568 * frame.c (fprint_field): Delete.
1569 (fprint_frame_id): Moved to...
1570 (frame_id::to_string): ...this, rewritten to return a string.
1571 (fprint_frame): Convert use of fprint_frame_id to use
1572 frame_id::to_string.
1573 (compute_frame_id): Likewise.
1574 (frame_id_p): Likewise.
1575 (frame_id_eq): Likewise.
1576 (frame_id_inner): Likewise.
1577 * frame.h (struct frame_id) <to_string>: New member function.
1578 (fprint_frame_id): Delete declaration.
1579 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
1580 fprint_frame_id to use frame_id::to_string.
1581 * python/py-frame.c (frame_object_to_frame_info): Likewise.
1582 * python/py-unwind.c (unwind_infopy_str): Likewise.
1583 (pyuw_this_id): Likewise.
1585 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1587 * nat/linux-waitpid.c (status_to_str): Return std::string.
1588 * nat/linux-waitpid.h (status_to_str): Likewise.
1589 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
1590 (linux_nat_target::attach): Adjust.
1591 (linux_handle_extended_wait): Adjust.
1593 (stop_wait_callback): Adjust.
1594 (linux_nat_filter_event): Adjust.
1595 (linux_nat_wait_1): Adjust.
1596 * nat/linux-waitpid.c (status_to_str): Adjust.
1597 * nat/linux-waitpid.h (status_to_str): Adjust.
1599 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
1601 * infrun.h (infrun_debug_printf): Add missing space.
1603 2021-05-08 Pedro Alves <pedro@palves.net>
1605 * linux-nat.c (linux_nat_target::supports_disable_randomization):
1606 Remove references to HAVE_PERSONALITY.
1607 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
1608 (maybe_disable_address_space_randomization)
1609 (~maybe_disable_address_space_randomizatio): Remove references to
1611 * config.in, configure: Regenerate.
1613 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1615 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
1617 (source_script_with_search): Perform tilde expansion.
1619 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1621 * target-descriptions.c (struct target_desc_info) <filename>:
1623 (copy_inferior_target_desc_info): Adjust.
1624 (target_desc_info_free): Adjust.
1625 (target_find_description): Adjust.
1626 (set_tdesc_filename_cmd): Adjust.
1627 (show_tdesc_filename_cmd): Adjust.
1628 (unset_tdesc_filename_cmd): Adjust.
1629 (maint_print_c_tdesc_cmd): Adjust.
1631 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1633 * target-descriptions.c (struct target_desc_info): Initialize
1635 (get_tdesc_info): Use new.
1636 (target_desc_info_free): Use delete.
1638 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1640 * target-descriptions.c (struct target_desc_info) <fetched>:
1642 (target_find_description): Adjust.
1643 (target_clear_description): Adjust.
1645 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1647 * target-descriptions.c (struct target_desc_info) <tdesc>:
1649 (target_desc_fetched): Remove.
1650 (current_target_desc): Remove.
1651 (target_description_filename): Remove.
1652 (target_find_description): Adjust.
1653 (target_clear_description): Adjust.
1654 (target_current_description): Adjust.
1655 (set_tdesc_filename_cmd): Adjust.
1656 (show_tdesc_filename_cmd): Adjust.
1657 (unset_tdesc_filename_cmd): Adjust.
1658 (maint_print_c_tdesc_cmd): Adjust.
1659 (maint_print_xml_tdesc_cmd): Adjust.
1661 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1663 * infcmd.c (notice_new_inferior): Change parameter type.
1664 * inferior.h (notice_new_inferior): Change parameter type.
1665 * remote.c (remote_notice_new_inferior): Change parameter type to
1666 bool. Also update type of local variable to bool.
1667 (remote_target::update_thread_list): Change type of local variable
1669 (remote_target::process_stop_reply): Pass bool instead of int to
1670 remote_notice_new_inferior.
1672 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1674 * target.c (target_stack::unpush): Call target_ops::find_beneath
1675 to get the target beneath `t`.
1677 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
1679 * target.c (target_close): Check in all inferiors that the
1680 target is not pushed.
1682 2021-05-07 Aaron Merey <amerey@redhat.com>
1684 * debuginfod-support.c (debuginfod_init): Remove.
1685 (get_debuginfod_client): New function.
1687 2021-05-07 Tom Tromey <tom@tromey.com>
1689 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1690 * utils.c (streq_hash): Remove.
1691 * utils.h (streq_hash): Don't declare.
1692 * completer.c (completion_tracker::discard_completions): Update
1694 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1696 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1698 * Re-format all Python files using black.
1700 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1702 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1703 function return type.
1704 * guile/guile.c (gdbscm_source_script): Update to handle change in
1705 gdbscm_safe_source_script.
1706 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1707 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1710 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1712 * inferior.h (class inferior) <args>: Change type to
1714 * inferior.c (inferior::~inferior): Don't free args.
1715 * infcmd.c (get_inferior_args): Adjust.
1716 (set_inferior_args): Adjust.
1718 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1720 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1721 breakpoint locations when the breakpoint actually has a location.
1723 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1725 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1726 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1727 mi_cmd_break_condition.
1728 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1729 * breakpoint.h (set_breakpoint_condition): Declare a new
1731 * breakpoint.c (set_breakpoint_condition): New overloaded function
1732 extracted out from ...
1733 (condition_command): ... this.
1734 * NEWS: Mention the change.
1736 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1738 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1739 '--force-condition' flag to force the condition in the
1740 '-break-insert' and '-dprintf-insert' commands.
1741 * NEWS: Mention the change.
1743 2021-05-04 Tom de Vries <tdevries@suse.de>
1746 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1749 2021-04-30 Tom Tromey <tom@tromey.com>
1751 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1752 (add_signatured_type_cu_to_table): Remove.
1753 (create_debug_type_hash_table): Assume dwo_file is non-null.
1754 (create_debug_types_hash_table): Update comment.
1755 (create_all_type_units): Remove.
1756 (sort_tu_by_abbrev_offset): Update comment.
1757 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1758 (build_type_psymtabs): Remove.
1759 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1761 (read_comp_units_from_section): Add types_htab, section_kind
1763 (create_all_comp_units): Read type units.
1765 2021-04-30 Tom Tromey <tom@tromey.com>
1767 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1768 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1769 <get_cu>: Now inline.
1770 <all_type_units>: Remove.
1771 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1772 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1773 (dwarf2_per_bfd::get_tu): Remove.
1774 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1775 (create_signatured_type_table_from_index)
1776 (create_signatured_type_table_from_debug_names)
1777 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1778 (dwarf2_base_index_functions::expand_all_symtabs)
1779 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1780 (dwarf2_base_index_functions::map_symbol_filenames)
1781 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1782 (add_signatured_type_cu_to_table, create_all_type_units)
1783 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1784 (create_all_comp_units): Update.
1785 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1786 (write_debug_names): Update.
1788 2021-04-30 Tom Tromey <tom@tromey.com>
1790 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1791 allocate_signatured_type>: Change return type.
1792 <all_comp_units, all_type_units>: Hold unique pointers.
1793 (struct dwarf2_per_cu_data): Add constructor and initializers.
1794 (struct signatured_type): Derive from dwarf2_per_cu_data.
1795 * dwarf2/read.c (type_unit_group): Derive from
1797 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1798 (dwarf2_per_bfd::get_tu)
1799 (dwarf2_per_bfd::allocate_signatured_type)
1800 (dwarf2_per_bfd::allocate_signatured_type)
1801 (create_cu_from_index_list, create_cus_from_index_list)
1802 (create_signatured_type_table_from_index)
1803 (create_signatured_type_table_from_debug_names)
1804 (create_addrmap_from_aranges)
1805 (dwarf2_base_index_functions::find_last_source_symtab)
1806 (dw_expand_symtabs_matching_file_matcher)
1807 (dwarf2_gdb_index::expand_symtabs_matching)
1808 (dwarf2_base_index_functions::map_symbol_filenames)
1809 (create_cus_from_debug_names_list)
1810 (dw2_debug_names_iterator::next)
1811 (dwarf2_debug_names_index::expand_symtabs_matching)
1812 (create_debug_type_hash_table, add_type_unit)
1813 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1815 (allocate_type_unit_groups_table): Use delete.
1816 (create_type_unit_group): Change return type. Use new.
1817 (get_type_unit_group, build_type_psymtabs_1)
1818 (build_type_psymtab_dependencies)
1819 (process_skeletonless_type_unit, set_partial_user)
1820 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1821 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1822 (read_signatured_type): Update.
1823 (dwarf2_find_containing_comp_unit): Change type of
1826 (dwarf2_per_bfd::allocate_per_cu)
1827 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1829 (add_signatured_type_cu_to_table): Update.
1830 * dwarf2/index-write.c (write_one_signatured_type)
1831 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1832 (write_debug_names): Update.
1834 2021-04-30 Tom Tromey <tromey@adacore.com>
1836 * nat/windows-nat.h (get_image_name): Don't declare.
1837 * nat/windows-nat.c (get_image_name): Now static.
1839 2021-04-30 Tom Tromey <tromey@adacore.com>
1841 * windows-nat.c (windows_nat::handle_load_dll): Update.
1842 (windows_nat_target::get_windows_debug_event): Call
1844 (windows_add_all_dlls, windows_add_dll): Move to
1846 * nat/windows-nat.h (handle_load_dll): Change parameters.
1847 (dll_loaded_event, windows_add_all_dlls): Declare.
1848 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1850 (dll_loaded_event): New function.
1852 2021-04-30 Tom Tromey <tromey@adacore.com>
1854 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1855 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1857 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1858 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1860 2021-04-30 Tom Tromey <tromey@adacore.com>
1862 * windows-nat.c: Move code to nat/windows-nat.[ch].
1863 (_initialize_windows_nat): Call initialize_loadable.
1864 * nat/windows-nat.h (AdjustTokenPrivileges)
1865 (DebugActiveProcessStop, DebugBreakProcess)
1866 (DebugSetProcessKillOnExit, EnumProcessModules)
1867 (EnumProcessModulesEx, GetModuleInformation)
1868 (GetModuleFileNameExA, GetModuleFileNameExW)
1869 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1870 (GetCurrentConsoleFont, Wow64SuspendThread)
1871 (Wow64GetThreadContext, Wow64SetThreadContext)
1872 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1873 (AdjustTokenPrivileges_ftype)
1874 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1875 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1876 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1877 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1878 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1879 (GetConsoleFontSize_ftype)
1880 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1881 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1882 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1883 (initialize_loadable): Declare.
1884 * nat/windows-nat.c (AdjustTokenPrivileges)
1885 (DebugActiveProcessStop, DebugBreakProcess)
1886 (DebugSetProcessKillOnExit, EnumProcessModules)
1887 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1888 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1889 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1890 (Wow64GetThreadContext, Wow64SetThreadContext)
1891 (Wow64GetThreadSelectorEntry): Define.
1892 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1894 (initialize_loadable): Likewise, and rename.
1896 2021-04-30 Tom Tromey <tromey@adacore.com>
1898 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1899 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1900 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1901 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1902 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1903 (bad): New template functions.
1904 (_initialize_loadable): Update.
1906 2021-04-30 Tom Tromey <tromey@adacore.com>
1908 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1910 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1912 * auto-load.h: Split namespace declaration.
1914 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1916 * infrun.c (save_waitstatus): Move variables to inner scope.
1918 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1920 * NEWS: Fix typo and stray full stop.
1922 2021-04-28 Tom Tromey <tromey@adacore.com>
1924 * ada-exp.y (primary): Use new type for null pointer.
1925 * ada-lang.c (ada_type_match): Remove "may_deref"
1926 parameter. Handle null pointer.
1927 (ada_args_match): Update.
1928 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1929 Handle null pointer.
1931 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1933 * NEWS: Mention new commands.
1934 * python/python.c (python_ignore_environment): New static global.
1935 (show_python_ignore_environment): New function.
1936 (set_python_ignore_environment): New function.
1937 (python_dont_write_bytecode): New static global.
1938 (show_python_dont_write_bytecode): New function.
1939 (set_python_dont_write_bytecode): New function.
1940 (_initialize_python): Register new commands.
1942 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1944 * extension-priv.h (struct extension_language_ops): Rename
1945 'finish_initialization' to 'initialize'.
1946 * extension.c (finish_ext_lang_initialization): Renamed to...
1947 (ext_lang_initialization): ...this, update comment, and updated
1948 the calls to reflect the change in struct extension_language_ops.
1949 * extension.h (finish_ext_lang_initialization): Renamed to...
1950 (ext_lang_initialization): ...this.
1951 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1952 (gdbscm_initialize): ...this, update comment at definition.
1953 (guile_extension_ops): Update.
1954 * main.c (captured_main_1): Update call to
1955 finish_ext_lang_initialization.
1956 * python/python.c (gdbpy_finish_initialization): Rename to...
1957 (gdbpy_initialize): ...this, update comment at definition, and
1958 update call to do_finish_initialization.
1959 (python_extension_ops): Update.
1960 (do_finish_initialization): Rename to...
1961 (do_initialize): ...this, and update comment.
1963 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1965 * main.c (captured_main_1): Add a call to
1966 finish_ext_lang_initialization.
1967 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1969 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1971 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1972 (gdbscm_finish_initialization): Add code moved from
1974 (_initialize_guile): Move code to gdbscm_finish_initialization.
1975 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1976 _initialize_scm_arch.
1977 (_initialize_scm_arch): New function.
1978 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1979 into _initialize_scm_block.
1980 (_initialize_scm_block): New function.
1981 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1982 into _initialize_scm_frame.
1983 (_initialize_scm_frame): New function.
1984 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1985 into _initialize_scm_objfile.
1986 (_initialize_scm_objfile): New function.
1987 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1988 code into _initialize_scm_progspace.
1989 (_initialize_scm_progspace): New function.
1990 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1991 into _initialize_scm_symbol.
1992 (_initialize_scm_symbol): New function.
1993 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1994 into _initialize_scm_symtab.
1995 (_initialize_scm_symtab): New function.
1996 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1997 _initialize_scm_type.
1998 (_initialize_scm_type): New function.
2000 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2002 * python/py-arch.c (_initialize_py_arch): New function.
2003 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
2004 * python/py-block.c (_initialize_py_block): New function.
2005 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
2006 * python/py-inferior.c (_initialize_py_inferior): New function.
2007 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
2008 * python/py-objfile.c (_initialize_py_objfile): New function.
2009 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
2010 * python/py-progspace.c (_initialize_py_progspace): New function.
2011 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
2012 * python/py-registers.c (_initialize_py_registers): New function.
2013 (gdbpy_initialize_registers): Move code to
2014 _initialize_py_registers.
2015 * python/py-symbol.c (_initialize_py_symbol): New function.
2016 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
2017 * python/py-symtab.c (_initialize_py_symtab): New function.
2018 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
2019 * python/py-type.c (_initialize_py_type): New function.
2020 (gdbpy_initialize_types): Move code to _initialize_py_type.
2021 * python/py-unwind.c (_initialize_py_unwind): New function.
2022 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
2023 * python/python.c (_initialize_python): Move call to
2024 do_start_initialization to gdbpy_finish_initialization.
2025 (gdbpy_finish_initialization): Add call to
2026 do_start_initialization.
2028 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2030 * extension.c (struct scoped_default_signal): New struct.
2031 (scoped_default_sigint): New typedef.
2032 (finish_ext_lang_initialization): Make use of
2033 scoped_default_sigint.
2035 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
2037 * main.c (captured_main_1): Don't pass argument to gdb_init.
2038 * top.c (gdb_init): Remove unused argument, and add header
2040 * top.h (gdb_init): Remove argument.
2042 2021-04-27 Luis Machado <luis.machado@linaro.org>
2044 * psymtab.c (psymbol_functions::dump): Output newline.
2046 * symmisc.c (dump_objfile): Likewise.
2048 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2049 Simon Marchi <simon.marchi@polymtl.ca>
2051 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
2052 when attaching the 'auto_load_new_objfile' observer, so
2053 other observers can specify it as a dependency.
2054 * gdb/auto-load.h (struct token): Declare
2055 'auto_load_new_objfile_observer_token' as token to be used
2056 for the 'auto_load_new_objfile' observer.
2057 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
2058 'python_new_objfile' observer depend on 'auto_load_new_objfile'
2059 observer, so it gets notified after the latter.
2061 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
2062 Simon Marchi <simon.marchi@polymtl.ca>
2064 * unittests/observable-selftests.c (dependency_test_counters):
2066 (observer_token0, observer_token1, observer_token2,
2067 observer_token3, observer_token4, observer_token5): New.
2068 (struct dependency_observer_data): New struct.
2069 (observer_dependency_test_callback): New function.
2070 (test_observers): New.
2071 (run_dependency_test): New function.
2072 (test_dependency): New.
2073 (_initialize_observer_selftest): Register dependency test.
2075 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
2078 * cli/cli-dump.c (dump_binary_file): Check result of
2081 2021-04-25 Sergei Trofimovich <siarheit@google.com>
2083 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
2084 by passing `process_stratum_target*` parameter.
2086 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
2089 * typeprint.h (struct type_print_options): Add print_in_hex
2091 (struct print_offset_data): Add print_in_hex flag, add a
2092 constructor accepting a type_print_options* argument.
2093 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
2094 default value for print_in_hex.
2095 (print_offset_data::indentation): Allow more horizontal space.
2096 (print_offset_data::print_offset_data): Add ctor.
2097 (print_offset_data::maybe_print_hole, print_offset_data::update):
2098 Handle the print_in_hex flag.
2099 (whatis_exp): Handle 'x' and 'd' flags.
2100 (print_offsets_and_sizes_in_hex): Declare.
2101 (set_print_offsets_and_sizes_in_hex): Create.
2102 (show_print_offsets_and_sizes_in_hex): Create.
2103 (_initialize_typeprint): Update help message for the ptype
2104 command, register the 'set print type hex' and 'show print type
2106 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
2107 (c_type_print_base): Construct the print_offset_data
2108 object using the type_print_optons parameter.
2109 * rust-lang.c (rust_language::print_type): Construct the
2110 print_offset_data object using the type_print_optons parameter.
2111 * NEWS: Mention the new flags of the ptype command.
2113 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
2115 * typeprint.h (struct type_print_options): Move before
2118 2021-04-25 Joel Brobecker <brobecker@adacore.com>
2122 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
2124 * observable.c (observer_debug): Change to bool.
2126 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
2128 * dwarf2/read.c: Add 'unordered_set' include.
2129 (dwarf2_base_index_functions::map_symbol_filenames): Replace
2130 'visited' hash table with 'qfn_cache' unordered_set. Remove use
2131 of per_Bfd->filenames_cache cache, and use function local
2132 filenames_cache instead. Reindent.
2133 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
2135 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2137 * breakpoint.c (iterate_over_bp_locations): Change callback to
2138 function view, remove data parameter.
2139 * breakpoint.h (iterate_over_bp_locations): Likewise.
2140 * record-full.c (record_full_sync_record_breakpoints): Remove
2143 2021-04-22 Tom Tromey <tom@tromey.com>
2145 * c-typeprint.c (c_type_print_base_struct_union): Use
2146 print_spaces_filtered_with_print_options.
2148 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2151 * python/py-type.c (typy_range): Check that bounds are constant
2152 before accessing them as such.
2153 * guile/scm-type.c (gdbscm_type_range): Likewise.
2155 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2157 * Makefile.in (COMMON_SFILES): Remove continuations.c.
2158 * inferior.c (inferior::add_continuation): New method, adapted
2159 from 'add_inferior_continuation'.
2160 (inferior::do_all_continuations): New method, adapted from
2161 'do_all_inferior_continuations'.
2162 (inferior::~inferior): Clear the list of continuations directly.
2163 * inferior.h (class inferior) <continuations>: Rename into...
2164 <m_continuations>: ...this and make private.
2165 * continuations.c: Remove.
2166 * continuations.h: Remove.
2167 * event-top.c: Don't include "continuations.h".
2169 Update the users below.
2170 * inf-loop.c (inferior_event_handler)
2171 * infcmd.c (attach_command)
2172 (notice_new_inferior): Update.
2174 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2176 * inferior.h (class inferior) <continuations>: Change the type
2177 to be an std::list of std::function's.
2178 Update the references and uses below.
2179 * continuations.c (struct continuation): Delete.
2180 (make_continuation): Delete.
2181 (do_my_continuations_1): Delete.
2182 (do_my_continuations): Delete.
2183 (discard_my_continuations_1): Delete.
2184 (discard_my_continuations): Delete.
2185 (add_inferior_continuation): Update.
2186 (do_all_inferior_continuations): Update.
2187 (discard_all_inferior_continuations): Update.
2188 * continuations.h (add_inferior_continuation): Update to take
2189 an std::function as the parameter.
2190 * infcmd.c (struct attach_command_continuation_args): Delete.
2191 (attach_command_continuation): Delete.
2192 (attach_command_continuation_free_args): Delete.
2193 (attach_command): Update.
2194 (notice_new_inferior): Update.
2196 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2198 * continuations.h: Update the general comment.
2199 * inferior.h (class inferior) <continuations>: Update the comment.
2200 * interps.c: Do not include "continuations.h".
2202 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2204 * continuations.h (do_all_inferior_continuations): Remove the 'err'
2205 parameter. Update the references below.
2206 * continuations.c (do_my_continuations_1)
2207 (do_my_continuations)
2208 (do_all_inferior_continuations): Update.
2209 * inf-loop.c (inferior_event_handler): Update.
2210 * infcmd.c (attach_command_continuation): Update.
2212 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2214 * infcmd.c (attach_post_wait): Update the function comment.
2216 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2218 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
2219 Update the references below.
2220 (struct attach_command_continuation_args)
2221 (attach_command_continuation)
2222 (attach_command_continuation_free_args)
2224 (notice_new_inferior): Update to remove the reference to 'args'.
2226 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
2227 Tom de Vries <tdevries@suse.de>
2230 * remote.c (remote_target_is_non_stop_p): New function.
2231 * remote.h (remote_target_is_non_stop_p): Declare.
2232 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
2233 to check non-stopness using notif_state->remote rather current target.
2235 2021-04-22 Tom Tromey <tom@tromey.com>
2237 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
2238 (struct typed_val_int) <val>: Now ULONGEST.
2239 (rust_parser::parse_array_type): Remove negative check.
2240 (rust_lex_int_test): Change 'value' to ULONGEST.
2242 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
2244 * arch-utils.c (default_addressable_memory_unit_size): Return a
2245 value based on bfd's bits per byte.
2247 2021-04-21 Tom Tromey <tom@tromey.com>
2249 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
2251 (struct dwarf2_per_cu_data): Rearrange.
2252 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
2254 (struct comp_unit_head): Rearrange.
2255 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
2257 2021-04-21 Tom de Vries <tdevries@suse.de>
2260 * configure.ac: Remove --without-included-regex/--with-included-regex.
2261 * config.in: Regenerate.
2262 * configure: Regenerate.
2263 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
2265 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2267 * breakpoint.h (create_breakpoint): Add a new parameter,
2269 * breakpoint.c (create_breakpoint): Use the 'force_condition'
2270 argument when 'parse_extra' is false to check if the condition
2271 is invalid at all of the breakpoint locations.
2272 Update the users below.
2278 (create_tracepoint_from_upload): Update.
2279 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
2280 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
2281 * python/py-breakpoint.c (bppy_init): Update.
2282 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
2284 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2286 * breakpoint.c (print_one_breakpoint_location): Display "N" for
2287 disabled-by-condition locations on MI-like output.
2288 (breakpoint_1): Do not display the disabled-by-condition footnote
2289 if the output is MI-like.
2291 2021-04-21 Frederic Cambus <fred@statdns.com>
2293 * syscalls/update-netbsd.sh: Fix script name display in usage, and
2294 update year range in generated copyright notices.
2296 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2298 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
2299 qualifier_seq_noopt.
2301 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
2303 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
2305 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
2307 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
2308 (producer_is_icc): Replace use of std::regex with gdb's
2311 2021-04-17 Tom Tromey <tom@tromey.com>
2314 * dwarf2/read.c (class offset_view): New.
2315 (struct symbol_table_slot): Remove.
2316 (struct mapped_index) <symbol_table, constant_pool>: Change type.
2317 <symbol_name_index, symbol_vec_index>: New methods.
2318 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
2320 (read_gdb_index_from_buffer): Update.
2321 (struct dw2_symtab_iterator) <vec>: Change type.
2322 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
2323 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
2324 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
2325 <append_array, append_offset>: New methods.
2326 (write_hash_table, add_address_entry, write_gdbindex_1)
2327 (write_debug_names): Update.
2328 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
2330 2021-04-17 Tom Tromey <tom@tromey.com>
2332 * dwarf2/index-write.c (write_psymtabs_to_index): Check
2335 2021-04-17 Tom Tromey <tom@tromey.com>
2337 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
2338 from map_matching_symbols. Change parameters.
2339 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
2340 Rename from map_matching_symbols. Change parameters.
2341 * dwarf2/read.c (struct dwarf2_gdb_index)
2342 <expand_matching_symbols>: Rename from map_matching_symbols.
2344 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
2345 Rename from map_matching_symbols. Change parameters.
2346 (dwarf2_gdb_index::expand_matching_symbols): Rename from
2347 dw2_map_matching_symbols. Change parameters.
2348 (dwarf2_gdb_index::expand_matching_symbols): Remove old
2350 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
2351 map_matching_symbols. Change parameters.
2352 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
2353 from map_matching_symbols. Change parameters.
2354 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
2355 map_matching_symbols. Change parameters.
2356 * ada-lang.c (map_matching_symbols): New function.
2357 (add_nonlocal_symbols): Update.
2359 2021-04-17 Tom Tromey <tom@tromey.com>
2361 * quick-symbol.h (struct quick_symbol_functions)
2362 <expand_symtabs_with_fullname>: Remove.
2363 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
2365 * psympriv.h (struct psymbol_functions)
2366 <expand_symtabs_with_fullname>: Remove.
2367 * dwarf2/read.c (struct dwarf2_base_index_functions)
2368 <expand_symtabs_with_fullname>: Remove.
2369 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2371 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
2373 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
2376 2021-04-17 Tom Tromey <tom@tromey.com>
2378 * symfile-debug.c (objfile::expand_symtabs_for_function):
2380 * quick-symbol.h (struct quick_symbol_functions)
2381 <expand_symtabs_for_function>: Remove.
2382 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
2384 * psympriv.h (struct psymbol_functions)
2385 <expand_symtabs_for_function>: Remove.
2386 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
2388 * dwarf2/read.c (struct dwarf2_gdb_index)
2389 <expand_symtabs_for_function>: Remove.
2390 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
2392 (find_slot_in_mapped_hash): Remove.
2393 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
2394 (dw2_symtab_iter_init): Remove one overload.
2395 (dwarf2_gdb_index::expand_symtabs_for_function)
2396 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
2398 2021-04-17 Tom Tromey <tom@tromey.com>
2400 * symfile-debug.c (objfile::map_symtabs_matching_filename):
2402 * quick-symbol.h (struct quick_symbol_functions)
2403 <map_symtabs_matching_filename>: Remove.
2404 * psymtab.c (partial_map_expand_apply)
2405 (psymbol_functions::map_symtabs_matching_filename): Remove.
2406 * psympriv.h (struct psymbol_functions)
2407 <map_symtabs_matching_filename>: Remove.
2408 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
2410 * dwarf2/read.c (struct dwarf2_base_index_functions)
2411 <map_symtabs_matching_filename>: Remove.
2412 (dw2_map_expand_apply)
2413 (dwarf2_base_index_functions::map_symtabs_matching_filename):
2416 2021-04-17 Tom Tromey <tom@tromey.com>
2418 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
2419 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
2421 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
2422 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
2423 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
2424 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
2426 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
2427 (dwarf2_gdb_index::lookup_symbol)
2428 (dwarf2_debug_names_index::lookup_symbol): Remove.
2430 2021-04-17 Tom Tromey <tom@tromey.com>
2432 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
2433 * symmisc.c (maintenance_expand_symtabs): Update.
2434 * symfile.c (expand_symtabs_matching): Update.
2435 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
2437 * quick-symbol.h (struct quick_symbol_functions)
2438 <expand_symtabs_matching>: Add 'domain' parameter.
2439 * psymtab.c (recursively_search_psymtabs)
2440 (psymbol_functions::expand_symtabs_matching): Add 'domain'
2442 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2443 Add 'domain' parameter.
2444 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2446 * linespec.c (iterate_over_all_matching_symtabs): Update.
2447 * dwarf2/read.c (struct dwarf2_gdb_index)
2448 <expand_symtabs_matching>: Add 'domain' parameter.
2449 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2451 (dw2_expand_symtabs_matching)
2452 (dwarf2_gdb_index::expand_symtabs_matching)
2453 (dw2_debug_names_iterator)
2454 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
2457 2021-04-17 Tom Tromey <tom@tromey.com>
2459 * symtab.c (global_symbol_searcher::expand_symtabs)
2460 (default_collect_symbol_completion_matches_break_on): Update.
2461 * symmisc.c (maintenance_expand_symtabs): Update.
2462 * symfile.h (expand_symtabs_matching): Add search_flags
2464 * symfile.c (expand_symtabs_matching): Add search_flags
2466 * symfile-debug.c (objfile::expand_symtabs_matching): Add
2467 search_flags parameter.
2468 * quick-symbol.h (struct quick_symbol_functions)
2469 <expand_symtabs_matching>: Add search_flags parameter.
2470 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
2471 * psymtab.c (recursively_search_psymtabs)
2472 (psymbol_functions::expand_symtabs_matching): Add search_flags
2474 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
2475 Add search_flags parameter.
2476 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
2477 search_flags parameter.
2478 * linespec.c (iterate_over_all_matching_symtabs): Update.
2479 * dwarf2/read.c (struct dwarf2_gdb_index)
2480 <expand_symtabs_matching>: Add search_flags parameter.
2481 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
2482 search_flags parameter.
2483 (dw2_map_matching_symbols): Update.
2484 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
2485 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
2487 (dw2_debug_names_iterator): Change block_index to search flags.
2488 <m_block_index>: Likewise.
2489 (dw2_debug_names_iterator::next)
2490 (dwarf2_debug_names_index::lookup_symbol)
2491 (dwarf2_debug_names_index::expand_symtabs_for_function)
2492 (dwarf2_debug_names_index::map_matching_symbols)
2493 (dwarf2_debug_names_index::map_matching_symbols): Update.
2494 (dwarf2_debug_names_index::expand_symtabs_matching): Add
2495 search_flags parameter.
2496 * ada-lang.c (ada_add_global_exceptions)
2497 (collect_symbol_completion_matches): Update.
2499 2021-04-17 Tom Tromey <tom@tromey.com>
2501 * symtab.c (default_collect_symbol_completion_matches_break_on):
2503 * symfile.h (expand_symtabs_matching): Return bool.
2504 * symfile.c (expand_symtabs_matching): Return bool.
2505 * symfile-debug.c (objfile::expand_symtabs_matching): Return
2507 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
2508 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
2510 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
2512 * psympriv.h (struct psymbol_functions)
2513 <expand_symtabs_matching>: Return bool.
2514 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
2516 * dwarf2/read.c (struct dwarf2_gdb_index)
2517 <expand_symtabs_matching>: Return bool.
2518 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
2520 (dw2_expand_symtabs_matching_symbol): Return bool.
2521 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
2522 (dw2_expand_symtabs_matching)
2523 (dwarf2_gdb_index::expand_symtabs_matching)
2524 (dwarf2_debug_names_index::expand_symtabs_matching)
2525 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
2527 2021-04-17 Tom Tromey <tom@tromey.com>
2529 * quick-symbol.h (enum block_search_flag_values): New.
2530 (block_search_flags): New enum flags type.
2532 2021-04-16 Tom Tromey <tom@tromey.com>
2534 * rust-parse.c: New file.
2535 * rust-exp.y: Remove.
2536 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
2537 (SFILES): Remove rust-exp.y.
2538 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
2540 2021-04-16 Luis Machado <luis.machado@linaro.org>
2542 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
2544 2021-04-15 John Baldwin <jhb@FreeBSD.org>
2546 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
2547 use throughout file.
2549 2021-04-15 Tom Tromey <tromey@adacore.com>
2551 * ada-valprint.c (ada_value_print_array): Handle optimized-out
2554 2021-04-15 Tom Tromey <tromey@adacore.com>
2556 * printcmd.c (print_variable_and_value): Use
2557 common_val_print_checked.
2559 2021-04-15 Tom Tromey <tromey@adacore.com>
2561 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
2562 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2564 * p-exp.y (variable): Update.
2565 * m2-exp.y (variable): Update.
2566 * go-exp.y (variable): Update.
2567 * expprint.c (dump_for_expression): New overload.
2568 * expop.h (check_objfile): New overload.
2569 (check_constant): New overload.
2570 (class var_value_operation): Use block_symbol.
2571 <get_symbol>: Rewrite.
2572 * eval.c (var_value_operation::evaluate)
2573 (var_value_operation::evaluate_funcall)
2574 (var_value_operation::evaluate_for_address)
2575 (var_value_operation::evaluate_for_address)
2576 (var_value_operation::evaluate_with_coercion)
2577 (var_value_operation::evaluate_for_sizeof)
2578 (var_value_operation::evaluate_for_cast): Update.
2579 * d-exp.y (PrimaryExpression): Update.
2580 * c-exp.y (variable): Update.
2581 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
2582 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2583 (ada_var_value_operation::evaluate)
2584 (ada_var_value_operation::resolve)
2585 (ada_funcall_operation::resolve): Update.
2586 * ada-exp.y (write_var_from_sym, write_object_renaming)
2587 (write_ambiguous_var, write_var_or_type, write_name_assoc)
2588 (maybe_overload): Update.
2589 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
2591 2021-04-15 Tom Tromey <tom@tromey.com>
2592 Andrew Burgess <andrew.burgess@embecosm.com>
2595 * main.c (captured_main_1): Call check_quiet_mode.
2596 * top.c (startup_quiet): New global.
2597 (check_quiet_mode): New function.
2598 (show_startup_quiet): New function.
2599 (init_main): Register new command.
2600 * top.h (check_quiet_mode): Declare.
2602 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2605 * NEWS: Mention new early init files and command line options.
2606 * config.in: Regenerate.
2607 * configure: Regenerate.
2608 * configure.ac: Define GDBEARLYINIT.
2609 * main.c (get_earlyinit_files): New function.
2610 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
2611 CMDARG_EARLYINIT_COMMAND.
2612 (captured_main_1): Add support for new command line flags, and for
2613 processing startup files.
2614 (print_gdb_help): Include startup files in the output.
2616 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
2618 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
2619 (relocate_file_path_maybe_in_datadir): ...this.
2620 (class gdb_initfile_finder): New class.
2621 (get_init_files): Now uses gdb_initfile_finder.
2622 (print_gdb_help): Print 'None found' when there are no init files.
2624 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2626 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
2627 corresponding child of the abstract DIE when iterating the
2628 children of the concrete DIE.
2630 2021-04-13 Tom de Vries <tdevries@suse.de>
2632 * ui-style.c (read_semi_number, extended_color): Change idx parameter
2635 2021-04-13 Luis Machado <luis.machado@linaro.org>
2637 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
2640 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2642 * rs6000-tdep.c: Add support for single-stepping of
2643 prefixed instructions.
2645 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
2648 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
2649 handle the addpcis/lnia instruction.
2651 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
2653 * MAINTAINERS (Write After Approval): Add myself.
2655 2021-4-12 Carl Love <cel@us.ibm.com>
2657 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
2658 (rs6000_builtin_type_vec128): Add append_composite_type_field for
2661 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
2663 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
2664 * nat/windows-nat.h: Likewise.
2666 2021-04-10 Eli Zaretskii <eliz@gnu.org>
2668 * windows-nat.c (windows_nat::handle_load_dll): Call
2669 windows_add_dll if get_image_name failed to glean the name of the
2670 DLL by using the lpImageName pointer.
2671 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
2672 (windows_add_dll): Now does what windows_add_all_dlls did before,
2673 but also accepts an argument LOAD_ADDR, which, if non-NULL,
2674 specifies the address where the DLL was loaded into the inferior,
2675 and looks for the single DLL loaded at that address.
2677 2021-04-09 Luis Machado <luis.machado@linaro.org>
2679 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
2681 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
2683 * darwin-nat.c (darwin_nat_target::resume): Remove status
2686 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2688 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2689 prologue end for Intel compilers.
2690 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2691 * producer.c (producer_is_icc_ge_19): New function.
2692 * producer.h (producer_is_icc_ge_19): New declaration.
2694 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2696 * producer.c: (producer_is_icc): Update for new version scheme.
2697 (producer_parsing_tests): Update names and expected results.
2698 * producer.h: (producer_is_icc): Update comment accordingly.
2700 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2702 * target.h (struct target_ops) <follow_fork>: Return void.
2703 (target_follow_fork): Likewise.
2704 * target.c (default_follow_fork): Likewise.
2705 (target_follow_fork): Likewise.
2706 * infrun.c (follow_fork_inferior): Adjust.
2707 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2708 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2709 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2710 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2711 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2712 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2713 * remote.c (class remote_target) <follow_fork>: Likewise.
2714 (remote_target::follow_fork): Likewise.
2715 * target-delegates.c: Re-generate.
2717 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
2719 * ctfread.c (fetch_tid_type): New function, use throughout file.
2720 (read_forward_type): New function.
2721 (read_type_record): Call read_forward_type.
2723 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2725 * f-exp.h (class fortran_structop_operation): New class.
2726 * f-exp.y (exp): Create fortran_structop_operation instead of the
2727 generic structop_operation.
2728 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2729 expression as EVAL_NORMAL if the result type was dynamic so we can
2730 extract the actual array bounds.
2731 (fortran_structop_operation::evaluate): New function.
2733 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2735 * eval.c (evaluate_subexp_standard): Remove
2736 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2739 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2741 * valops.c (value_cast): Call value_deeply_equal before performing
2744 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2746 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2749 2021-04-07 Caroline Tice <cmtice@google.com>
2751 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2752 the search paths used resolve relative location of .dwo file.
2754 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2756 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2758 (dwarf2_section_info::get_file_name): Add an assert.
2759 (dwarf2_section_info::read_string): Display a minimal, sane error
2760 when the dwarf2_section_info is not associated with a bfd section.
2762 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2764 * top.c (staged_gdb_datadir): Update comment.
2765 (set_gdb_datadir): Copy the value of gdb_datadir back into
2767 (init_main): Initialise staged_gdb_datadir.
2769 2021-04-06 Tom de Vries <tdevries@suse.de>
2771 PR breakpoints/25884
2772 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2775 2021-04-06 Tom de Vries <tdevries@suse.de>
2778 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2781 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2783 * avr-tdep.c (avr_frame_unwind_cache): Use
2784 trad_frame_saved_reg::is_addr.
2786 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2788 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2791 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2793 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2794 objfile parameter for objfile_per_bfd_storage, adjust callers.
2795 (struct standard_psymtab) <standard_psymtab>: Likewise.
2796 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2797 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2798 * ctfread.c (struct ctf_psymtab): Likewise.
2799 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2800 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2801 (dwarf2_create_include_psymtab): Likewise.
2802 * objfiles.h (struct objfile_per_bfd_storage)
2803 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2804 <get_bfd>: New method.
2806 * objfiles.c (get_objfile_bfd_data): Adjust.
2808 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2810 * psymtab.c (partial_symtab::partial_symtab): Change
2811 last_objfile_name to be an std::string.
2812 * symfile.c (allocate_symtab): Likewise.
2814 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2816 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2818 (struct objfile) <intern>: Use
2819 objfile::objfile_per_bfd_storage::intern.
2821 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2823 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2824 with type::is_flag_enum.
2826 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2828 * gdbtypes.h (struct type) <is_flag_enum,
2829 set_is_flag_enum>: New methods.
2830 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2831 write call sites to use type::set_is_flag_enum.
2833 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2835 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2836 with type::is_declared_class.
2838 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2840 * gdbtypes.h (struct type) <is_declared_class,
2841 set_is_declared_class>: New methods.
2842 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2843 write call sites to use type::set_is_declared_class.
2845 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2847 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2848 to avoid deprecation warnings.
2850 2021-04-01 Martin Liska <mliska@suse.cz>
2852 * cp-name-parser.y: Use startswith instead of strncmp.
2853 * m2-exp.y: Likewise.
2854 * macroexp.c (substitute_args): Likewise.
2855 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2856 * rust-exp.y: Likewise.
2858 2021-03-31 Tom Tromey <tom@tromey.com>
2860 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2861 with dw2_map_matching_symbols.
2862 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2863 dw2_expand_symtabs_matching.
2865 2021-03-31 Tom Tromey <tromey@adacore.com>
2867 * dwarf2/stringify.h: Fix typo.
2869 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2872 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2873 with objfiles using READNOW.
2875 2021-03-29 Tom Tromey <tromey@adacore.com>
2877 * top.c (check_frame_language_change): Update.
2878 * language.c (language_info): Remove parameter.
2879 * language.h (language_info): Remove parameter.
2881 2021-03-29 Luis Machado <luis.machado@linaro.org>
2883 * compile/compile.c (get_args): Don't add empty argv entries.
2885 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2888 * procfs.c (procfs_target::attach): Define inf.
2890 (procfs_target::create_inferior): Likewise.
2892 2021-03-28 Tom Tromey <tom@tromey.com>
2894 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2895 (elf_symfile_read): Simplify.
2896 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2897 (make_lazy_dwarf_reader): New function.
2898 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2899 (dwarf2_initialize_objfile): Return void. Remove index_kind
2900 parameter. Push on 'qf' list.
2901 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2902 type. Remove 'index_kind' parameter.
2903 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2905 2021-03-27 Tom Tromey <tom@tromey.com>
2907 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2909 2021-03-27 Tom Tromey <tom@tromey.com>
2911 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2913 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2915 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2918 2021-03-26 Tom Tromey <tom@tromey.com>
2920 * symtab.c (struct output_source_filename_data): Add 'output'
2921 method and operator().
2922 (output_source_filename_data::output): Rename from
2923 output_source_filename.
2924 (output_partial_symbol_filename): Remove.
2925 (info_sources_command): Update.
2926 (struct add_partial_filename_data): Add operator().
2927 (add_partial_filename_data::operator()): Rename from
2928 maybe_add_partial_symtab_filename.
2929 (make_source_files_completion_list): Update.
2930 * symfile.c (quick_symbol_functions): Update.
2931 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2932 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2933 'need_fullname'. Remove 'data' parameter.
2934 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2935 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2936 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2937 Change type of 'fun' and 'need_fullname'. Remove 'data'
2939 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2940 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2941 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2943 (mi_cmd_file_list_exec_source_files): Update.
2945 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2947 2021-03-26 Tom Tromey <tom@tromey.com>
2949 * ada-lang.c (struct match_data): Add operator().
2950 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2951 (callback): Remove 'callback'.
2953 2021-03-26 Tom Tromey <tom@tromey.com>
2955 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2956 call make_ignore_params once.
2958 2021-03-26 Tom Tromey <tom@tromey.com>
2960 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2963 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2964 Pedro Alves <pedro@palves.net>
2966 * async-event.c: Include "infrun.h".
2967 (async_event_handler_marked): New.
2968 * async-event.h (async_event_handler_marked): Declare.
2969 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2970 inferior before calling target method. Don't commit-resumed if
2971 target_has_pending_events is true.
2972 * remote.c (remote_target::has_pending_events): New.
2973 * target-delegates.c: Regenerate.
2974 * target.c (target_has_pending_events): New.
2975 * target.h (target_ops::has_pending_events): New target method.
2976 (target_has_pending_events): New.
2978 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2979 Pedro Alves <pedro@palves.net>
2981 * infcmd.c (run_command_1, attach_command, detach_command)
2982 (interrupt_target_1): Use scoped_disable_commit_resumed.
2983 * infrun.c (do_target_resume): Remove
2984 target_commit_resume call.
2985 (commit_resume_all_targets): Remove.
2986 (maybe_set_commit_resumed_all_targets): New.
2987 (maybe_call_commit_resumed_all_targets): New.
2988 (enable_commit_resumed): New.
2989 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2990 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2991 (scoped_disable_commit_resumed::reset)
2992 (scoped_disable_commit_resumed::reset_and_commit)
2993 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2994 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2996 (proceed): Use scoped_disable_commit_resumed and
2997 maybe_call_commit_resumed_all_targets.
2998 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2999 * infrun.h (struct scoped_disable_commit_resumed): New.
3000 (maybe_call_commit_resumed_all_process_targets): New.
3001 (struct scoped_enable_commit_resumed): New.
3002 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
3003 * process-stratum-target.h (class process_stratum_target):
3004 <commit_resumed_state>: New.
3005 * record-full.c (record_full_wait_1): Change commit_resumed_state
3006 around calling commit_resumed.
3007 * remote.c (class remote_target) <commit_resume>: Rename to...
3008 <commit_resumed>: ... this.
3009 (struct stop_reply): Move up.
3010 (remote_target::commit_resume): Rename to...
3011 (remote_target::commit_resumed): ... this. Check if there is any
3012 thread pending vCont resume.
3013 (remote_target::remote_stop_ns): Generate stop replies for resumed
3014 but pending vCont threads.
3015 (remote_target::wait_ns): Add gdb_assert.
3016 * target-delegates.c: Regenerate.
3017 * target.c (target_wait, target_resume): Assert that the current
3018 process_stratum target isn't in commit-resumed state.
3019 (defer_target_commit_resume): Remove.
3020 (target_commit_resume): Remove.
3021 (target_commit_resumed): New.
3022 (make_scoped_defer_target_commit_resume): Remove.
3023 (target_stop): Assert that the current process_stratum target
3024 isn't in commit-resumed state.
3025 * target.h (struct target_ops) <commit_resume>: Rename to ...
3026 <commit_resumed>: ... this.
3027 (target_commit_resume): Remove.
3028 (target_commit_resumed): New.
3029 (make_scoped_defer_target_commit_resume): Remove.
3030 * top.c (wait_sync_command_done): Use
3031 scoped_enable_commit_resumed.
3033 2021-03-26 Pedro Alves <pedro@palves.net>
3035 * target.c (target_always_non_stop_p): Also check whether the
3038 2021-03-26 Tom Tromey <tom@tromey.com>
3040 * dwarf2/read.c (dwarf2_read_debug_names)
3041 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
3042 (dw2_debug_names_iterator::next, create_type_unit_group):
3045 2021-03-25 Pedro Alves <pedro@palves.net>
3047 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
3048 around setting the breakpoint.
3050 2021-03-25 Pedro Alves <pedro@palves.net>
3053 (remote_target::check_pending_events_prevent_wildcard_vcont):
3054 Check whether the event's ptid is not null_ptid before looking up
3055 the corresponding inferior.
3057 2021-03-24 Changbin Du <changbin.du@gmail.com>
3059 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
3062 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3064 * target.h (current_top_target): Remove, make callers use the
3065 current inferior instead.
3066 * target.c (current_top_target): Remove.
3068 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3070 * target.h (target_shortname): Change to function declaration.
3071 (target_longname): Likewise.
3072 (target_attach_no_wait): Likewise.
3073 (target_post_attach): Likewise.
3074 (target_prepare_to_store): Likewise.
3075 (target_supports_enable_disable_tracepoint): Likewise.
3076 (target_supports_string_tracing): Likewise.
3077 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
3078 (target_supports_dumpcore): Likewise.
3079 (target_dumpcore): Likewise.
3080 (target_can_run_breakpoint_commands): Likewise.
3081 (target_files_info): Likewise.
3082 (target_post_startup_inferior): Likewise.
3083 (target_insert_fork_catchpoint): Likewise.
3084 (target_remove_fork_catchpoint): Likewise.
3085 (target_insert_vfork_catchpoint): Likewise.
3086 (target_remove_vfork_catchpoint): Likewise.
3087 (target_insert_exec_catchpoint): Likewise.
3088 (target_remove_exec_catchpoint): Likewise.
3089 (target_set_syscall_catchpoint): Likewise.
3090 (target_rcmd): Likewise.
3091 (target_can_lock_scheduler): Likewise.
3092 (target_can_async_p): Likewise.
3093 (target_is_async_p): Likewise.
3094 (target_execution_direction): Likewise.
3095 (target_extra_thread_info): Likewise.
3096 (target_pid_to_exec_file): Likewise.
3097 (target_thread_architecture): Likewise.
3098 (target_find_memory_regions): Likewise.
3099 (target_make_corefile_notes): Likewise.
3100 (target_get_bookmark): Likewise.
3101 (target_goto_bookmark): Likewise.
3102 (target_stopped_by_watchpoint): Likewise.
3103 (target_stopped_by_sw_breakpoint): Likewise.
3104 (target_supports_stopped_by_sw_breakpoint): Likewise.
3105 (target_stopped_by_hw_breakpoint): Likewise.
3106 (target_supports_stopped_by_hw_breakpoint): Likewise.
3107 (target_have_steppable_watchpoint): Likewise.
3108 (target_can_use_hardware_watchpoint): Likewise.
3109 (target_region_ok_for_hw_watchpoint): Likewise.
3110 (target_can_do_single_step): Likewise.
3111 (target_insert_watchpoint): Likewise.
3112 (target_remove_watchpoint): Likewise.
3113 (target_insert_hw_breakpoint): Likewise.
3114 (target_remove_hw_breakpoint): Likewise.
3115 (target_can_accel_watchpoint_condition): Likewise.
3116 (target_can_execute_reverse): Likewise.
3117 (target_get_ada_task_ptid): Likewise.
3118 (target_filesystem_is_local): Likewise.
3119 (target_trace_init): Likewise.
3120 (target_download_tracepoint): Likewise.
3121 (target_can_download_tracepoint): Likewise.
3122 (target_download_trace_state_variable): Likewise.
3123 (target_enable_tracepoint): Likewise.
3124 (target_disable_tracepoint): Likewise.
3125 (target_trace_start): Likewise.
3126 (target_trace_set_readonly_regions): Likewise.
3127 (target_get_trace_status): Likewise.
3128 (target_get_tracepoint_status): Likewise.
3129 (target_trace_stop): Likewise.
3130 (target_trace_find): Likewise.
3131 (target_get_trace_state_variable_value): Likewise.
3132 (target_save_trace_data): Likewise.
3133 (target_upload_tracepoints): Likewise.
3134 (target_upload_trace_state_variables): Likewise.
3135 (target_get_raw_trace_data): Likewise.
3136 (target_get_min_fast_tracepoint_insn_len): Likewise.
3137 (target_set_disconnected_tracing): Likewise.
3138 (target_set_circular_trace_buffer): Likewise.
3139 (target_set_trace_buffer_size): Likewise.
3140 (target_set_trace_notes): Likewise.
3141 (target_get_tib_address): Likewise.
3142 (target_set_permissions): Likewise.
3143 (target_static_tracepoint_marker_at): Likewise.
3144 (target_static_tracepoint_markers_by_strid): Likewise.
3145 (target_traceframe_info): Likewise.
3146 (target_use_agent): Likewise.
3147 (target_can_use_agent): Likewise.
3148 (target_augmented_libraries_svr4_read): Likewise.
3149 (target_log_command): Likewise.
3150 * target.c (target_shortname): New.
3151 (target_longname): New.
3152 (target_attach_no_wait): New.
3153 (target_post_attach): New.
3154 (target_prepare_to_store): New.
3155 (target_supports_enable_disable_tracepoint): New.
3156 (target_supports_string_tracing): New.
3157 (target_supports_evaluation_of_breakpoint_conditions): New.
3158 (target_supports_dumpcore): New.
3159 (target_dumpcore): New.
3160 (target_can_run_breakpoint_commands): New.
3161 (target_files_info): New.
3162 (target_post_startup_inferior): New.
3163 (target_insert_fork_catchpoint): New.
3164 (target_remove_fork_catchpoint): New.
3165 (target_insert_vfork_catchpoint): New.
3166 (target_remove_vfork_catchpoint): New.
3167 (target_insert_exec_catchpoint): New.
3168 (target_remove_exec_catchpoint): New.
3169 (target_set_syscall_catchpoint): New.
3171 (target_can_lock_scheduler): New.
3172 (target_can_async_p): New.
3173 (target_is_async_p): New.
3174 (target_execution_direction): New.
3175 (target_extra_thread_info): New.
3176 (target_pid_to_exec_file): New.
3177 (target_thread_architecture): New.
3178 (target_find_memory_regions): New.
3179 (target_make_corefile_notes): New.
3180 (target_get_bookmark): New.
3181 (target_goto_bookmark): New.
3182 (target_stopped_by_watchpoint): New.
3183 (target_stopped_by_sw_breakpoint): New.
3184 (target_supports_stopped_by_sw_breakpoint): New.
3185 (target_stopped_by_hw_breakpoint): New.
3186 (target_supports_stopped_by_hw_breakpoint): New.
3187 (target_have_steppable_watchpoint): New.
3188 (target_can_use_hardware_watchpoint): New.
3189 (target_region_ok_for_hw_watchpoint): New.
3190 (target_can_do_single_step): New.
3191 (target_insert_watchpoint): New.
3192 (target_remove_watchpoint): New.
3193 (target_insert_hw_breakpoint): New.
3194 (target_remove_hw_breakpoint): New.
3195 (target_can_accel_watchpoint_condition): New.
3196 (target_can_execute_reverse): New.
3197 (target_get_ada_task_ptid): New.
3198 (target_filesystem_is_local): New.
3199 (target_trace_init): New.
3200 (target_download_tracepoint): New.
3201 (target_can_download_tracepoint): New.
3202 (target_download_trace_state_variable): New.
3203 (target_enable_tracepoint): New.
3204 (target_disable_tracepoint): New.
3205 (target_trace_start): New.
3206 (target_trace_set_readonly_regions): New.
3207 (target_get_trace_status): New.
3208 (target_get_tracepoint_status): New.
3209 (target_trace_stop): New.
3210 (target_trace_find): New.
3211 (target_get_trace_state_variable_value): New.
3212 (target_save_trace_data): New.
3213 (target_upload_tracepoints): New.
3214 (target_upload_trace_state_variables): New.
3215 (target_get_raw_trace_data): New.
3216 (target_get_min_fast_tracepoint_insn_len): New.
3217 (target_set_disconnected_tracing): New.
3218 (target_set_circular_trace_buffer): New.
3219 (target_set_trace_buffer_size): New.
3220 (target_set_trace_notes): New.
3221 (target_get_tib_address): New.
3222 (target_set_permissions): New.
3223 (target_static_tracepoint_marker_at): New.
3224 (target_static_tracepoint_markers_by_strid): New.
3225 (target_traceframe_info): New.
3226 (target_use_agent): New.
3227 (target_can_use_agent): New.
3228 (target_augmented_libraries_svr4_read): New.
3229 (target_log_command): New.
3230 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
3231 * infrun.c (set_schedlock_func): Adjust.
3232 * mi/mi-main.c (exec_reverse_continue): Adjust.
3233 * reverse.c (exec_reverse_once): Adjust.
3234 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
3235 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
3236 * remote-sim.c (gdbsim_target::detach): Adjust.
3237 (gdbsim_target::files_info): Adjust.
3239 2021-03-24 Tom Tromey <tom@tromey.com>
3241 * dwarf2/read.c (dw2_map_matching_symbols): Update.
3242 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
3243 (check_match, dw2_expand_symtabs_matching)
3244 (dwarf2_debug_names_index::map_matching_symbols)
3245 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
3247 2021-03-24 Keith Seitz <keiths@redhat.com>
3249 * compile/compile-cplus-types.c
3250 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
3253 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3255 * gdbarch.sh (gdbarch_data_registry): Make static.
3256 * gdbarch.c: Re-generate.
3258 2021-03-24 Luis Machado <luis.machado@linaro.org>
3260 * NEWS: Mention memory tagging changes.
3262 2021-03-24 Luis Machado <luis.machado@linaro.org>
3264 * printcmd.c (decode_format): Handle the 'm' modifier.
3265 (do_examine): Display allocation tags when required/supported.
3266 (should_validate_memtags): New function.
3267 (print_command_1): Display memory tag mismatches.
3268 * valprint.c (show_memory_tag_violations): New function.
3269 (value_print_option_defs): Add new option "memory-tag-violations".
3270 (user_print_options) <memory_tag_violations>: Initialize to 1.
3271 * valprint.h (struct format_data) <print_tags>: New field.
3272 (value_print_options) <memory_tag_violations>: New field.
3274 2021-03-24 Luis Machado <luis.machado@linaro.org>
3276 * printcmd.c: Include gdbsupport/rsp-low.h.
3277 (memory_tag_list): New static global.
3278 (process_print_command_args): Factored out of
3280 (print_command_1): Use process_print_command_args.
3281 (show_addr_not_tagged, show_memory_tagging_unsupported)
3282 (memory_tag_command, memory_tag_print_tag_command)
3283 (memory_tag_print_logical_tag_command)
3284 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
3285 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
3286 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
3288 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
3290 2021-03-24 Luis Machado <luis.machado@linaro.org>
3292 * aarch64-linux-tdep.c
3293 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
3294 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
3296 2021-03-24 Luis Machado <luis.machado@linaro.org>
3298 * aarch64-linux-tdep.c
3299 (aarch64_linux_report_signal_info): New function.
3300 (aarch64_linux_init_abi): Register
3301 aarch64_linux_report_signal_info as the report_signal_info hook.
3302 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
3303 (SEGV_MTESERR): Define.
3305 2021-03-24 Luis Machado <luis.machado@linaro.org>
3307 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
3308 (aarch64_linux_ltag_tests): New function.
3309 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
3311 2021-03-24 Luis Machado <luis.machado@linaro.org>
3313 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
3314 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
3315 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
3316 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
3318 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
3319 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
3320 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
3321 (aarch64_linux_get_ltag): New functions.
3322 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
3323 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
3324 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
3325 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
3327 2021-03-24 Luis Machado <luis.machado@linaro.org>
3329 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
3331 (struct smaps_data): New struct.
3332 (decode_vmflags): Handle the 'mt' flag.
3333 (parse_smaps_data): New function, refactored from
3334 linux_find_memory_regions_full.
3335 (linux_address_in_memtag_page): New function.
3336 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
3337 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
3339 2021-03-24 Luis Machado <luis.machado@linaro.org>
3341 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
3342 instead of char arrays.
3344 2021-03-24 Luis Machado <luis.machado@linaro.org>
3346 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
3347 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
3348 nat/aarch64-mte-linux-ptrace.h.
3349 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
3350 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
3352 <fetch_memtags>: New method override.
3353 <store_memtags>: New method override.
3354 (aarch64_linux_nat_target::supports_memory_tagging): New method.
3355 (aarch64_linux_nat_target::fetch_memtags): New method.
3356 (aarch64_linux_nat_target::store_memtags): New method.
3357 * arch/aarch64-mte-linux.c: New file.
3358 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
3359 (AARCH64_MTE_GRANULE_SIZE): Define.
3360 (aarch64_memtag_type): New enum.
3361 (aarch64_mte_get_tag_granules): New prototype.
3362 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
3363 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
3364 * nat/aarch64-mte-linux-ptrace.c: New file.
3365 * nat/aarch64-mte-linux-ptrace.h: New file.
3367 2021-03-24 Luis Machado <luis.machado@linaro.org>
3369 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
3370 * nat/aarch64-mte-linux-ptrace.h: New file.
3372 2021-03-24 Luis Machado <luis.machado@linaro.org>
3374 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
3375 (store_mteregs_to_thread): New function.
3376 (aarch64_linux_nat_target::fetch_registers): Update to call
3377 fetch_mteregs_from_thread.
3378 (aarch64_linux_nat_target::store_registers): Update to call
3379 store_mteregs_to_thread.
3380 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
3381 (aarch64_cannot_store_register): Handle MTE registers.
3382 (aarch64_gdbarch_init): Initialize and setup MTE registers.
3383 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
3384 <has_mte>: New method.
3385 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
3387 2021-03-24 Luis Machado <luis.machado@linaro.org>
3389 * aarch64-linux-nat.c
3390 (aarch64_linux_nat_target::read_description): Take MTE flag into
3392 Slight refactor to hwcap flag checking.
3393 * aarch64-linux-tdep.c
3394 (aarch64_linux_core_read_description): Likewise.
3395 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
3397 (aarch64_read_description): Add mte_p parameter and update to use it.
3398 Update the documentation.
3399 (aarch64_gdbarch_init): Update call to aarch64_read_description.
3400 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
3401 * arch/aarch64.c: Include ../features/aarch64-mte.c.
3402 (aarch64_create_target_description): Add mte_p parameter and update
3404 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
3406 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
3407 * features/aarch64-mte.c: New file, generated.
3408 * features/aarch64-mte.xml: New file.
3410 2021-03-24 Luis Machado <luis.machado@linaro.org>
3412 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
3413 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
3414 * aarch64-linux-tdep.c: Likewise
3415 * arch/aarch64-mte-linux.h: New file.
3417 2021-03-24 Luis Machado <luis.machado@linaro.org>
3419 * remote: Include gdbsupport/selftest.h.
3420 (test_memory_tagging_functions): New function.
3421 (_initialize_remote): Register test_memory_tagging_functions.
3423 2021-03-24 Luis Machado <luis.machado@linaro.org>
3425 * remote.c (PACKET_memory_tagging_feature): New enum.
3426 (remote_memory_tagging_p): New function.
3427 (remote_protocol_features): New "memory-tagging" entry.
3428 (remote_target::remote_query_supported): Handle memory tagging
3430 (remote_target::supports_memory_tagging): Implement.
3431 (create_fetch_memtags_request, parse_fetch_memtags_reply)
3432 (create_store_memtags_request): New functions.
3433 (remote_target::fetch_memtags): Implement.
3434 (remote_target::store_memtags): Implement.
3435 (_initialize_remote): Add new "memory-tagging-feature"
3438 2021-03-24 Luis Machado <luis.machado@linaro.org>
3440 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
3441 (default_memtag_matches_p, default_set_memtags)
3442 (default_get_memtag): New functions.
3443 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
3444 (default_memtag_matches_p, default_set_memtags)
3445 (default_get_memtag): New prototypes.
3446 * gdbarch.c: Regenerate.
3447 * gdbarch.h: Regenerate.
3448 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
3449 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
3450 (enum memtag_type): New enum.
3452 2021-03-24 Luis Machado <luis.machado@linaro.org>
3454 * remote.c (remote_target) <supports_memory_tagging>: New method
3456 <fetch_memtags>: New method override.
3457 <store_memtags>: New method override.
3458 (remote_target::supports_memory_tagging): New method.
3459 (remote_target::fetch_memtags): New method.
3460 (remote_target::store_memtags): New method.
3461 * target-delegates.c: Regenerate.
3462 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
3464 <fetch_memtags>: New virtual method.
3465 <store_memtags>: New virtual method.
3466 (target_supports_memory_tagging): Define.
3467 (target_fetch_memtags): Define.
3468 (target_store_memtags): Define.
3469 * target-debug.h (target_debug_print_size_t)
3470 (target_debug_print_const_gdb_byte_vector_r)
3471 (target_debug_print_gdb_byte_vector_r): New functions.
3473 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3475 * target.h (target_longname): Remove.
3477 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3479 * target.h (target_is_pushed): Remove, update callers to use
3480 inferior::target_is_pushed instead.
3481 * target.c (target_is_pushed): Remove.
3483 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3485 * target.h (push_target): Remove, update callers to use
3486 inferior::push_target.
3487 * target.c (push_target): Remove.
3488 * inferior.h (class inferior) <push_target>: New overload.
3490 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
3492 * target.h (unpush_target): Remove, update all callers
3493 to use `inferior::unpush_target` instead.
3494 (struct target_unpusher) <operator()>: Just declare.
3495 * target.c (unpush_target): Remove.
3496 (target_unpusher::operator()): New.
3498 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3500 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
3502 (process_full_comp_unit): Validate the top-level tag before
3503 processing the first DIE.
3504 (read_func_scope): Ensure we have a valid builder.
3506 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
3508 * objc-lang.c (objc_demangle): Renamed to
3509 objc_language::demangle_symbol, and moved later in the file.
3510 (objc_language::sniff_from_mangled_name): Call demangle_symbol
3512 (objc_language::demangle_symbol): Defined outside of class
3513 declaration. The definition is the old objc_demangle with NULL
3514 changed to nullptr, and if conditions relating to nullptr pointers
3515 or null character checks made explicit.
3516 * objc-lang.h (objc_demangle): Delete declaration.
3518 2021-03-22 Martin Liska <mliska@suse.cz>
3520 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
3521 (_initialize_arm_tdep): Likewise.
3523 2021-03-20 Tom Tromey <tom@tromey.com>
3525 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
3526 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3527 * psymtab.h (make_psymbol_functions): Don't declare.
3528 * psymtab.c (make_psymbol_functions): Remove.
3529 (maintenance_print_psymbols): Update.
3530 * psympriv.h (struct psymbol_functions): Add no-argument
3532 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
3533 <partial_symtabs>: Remove.
3534 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
3535 * elfread.c (read_partial_symbols): Update.
3536 (elf_symfile_read): Remove check for existing partial symbols.
3538 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
3540 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
3542 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
3544 * dbxread.c (dbx_symfile_read): Create partial symtabs.
3545 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
3547 2021-03-20 Tom Tromey <tom@tromey.com>
3549 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3550 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3551 * symfile-debug.c (objfile::has_partial_symbols)
3552 (objfile::find_last_source_symtab)
3553 (objfile::forget_cached_source_info)
3554 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3555 (objfile::print_stats, objfile::dump)
3556 (objfile::expand_symtabs_for_function)
3557 (objfile::expand_all_symtabs)
3558 (objfile::expand_symtabs_with_fullname)
3559 (objfile::map_matching_symbols)
3560 (objfile::expand_symtabs_matching)
3561 (objfile::find_pc_sect_compunit_symtab)
3562 (objfile::map_symbol_filenames)
3563 (objfile::find_compunit_symtab_by_address)
3564 (objfile::lookup_global_symbol_language)
3565 (objfile::require_partial_symbols): Update.
3566 * psymtab.c (maintenance_print_psymbols)
3567 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
3568 * objfiles.h (struct objfile) <qf>: Now a forward_list.
3569 * objfiles.c (objfile_relocate1): Update.
3570 * elfread.c (elf_symfile_read): Update.
3572 2021-03-20 Tom Tromey <tom@tromey.com>
3574 * objfiles.h (struct objfile) <psymtabs>: Remove method.
3576 2021-03-20 Tom Tromey <tom@tromey.com>
3578 * psymtab.c (psymbol_functions::count_psyms): Rename.
3579 (psymbol_functions::print_stats): Update.
3580 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
3583 2021-03-20 Tom Tromey <tom@tromey.com>
3585 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
3586 (psymbol_functions::find_pc_sect_psymtab): Rename.
3587 (psymbol_functions::find_pc_sect_compunit_symtab)
3588 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
3589 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
3591 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
3593 2021-03-20 Tom Tromey <tom@tromey.com>
3595 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
3596 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
3597 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
3599 (add_psymbol_to_bcache): Remove.
3600 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
3601 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
3603 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
3604 <add_psymbol>: Likewise.
3605 (standard_psymtab, legacy_psymtab): Likewise.
3606 * mdebugread.c (parse_partial_symbols): Update.
3607 (handle_psymbol_enumerators): Add partial_symtabs parameter.
3608 (handle_psymbol_enumerators): Update.
3609 (new_psymtab): Add partial_symtabs parameter.
3610 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
3611 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
3613 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
3614 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
3616 * dbxread.c (read_dbx_symtab): Update.
3617 (start_psymtab): Add partial_symtabs parameter.
3618 (dbx_end_psymtab): Update.
3619 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
3620 (ctf_psymtab): Add partial_symtabs parameter.
3621 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
3623 (scan_partial_symbols): Add partial_symtabs parameter.
3624 (scan_partial_symbols, elfctf_build_psymtabs)
3625 (ctf_psymtab_add_enums): Update.
3627 2021-03-20 Tom Tromey <tom@tromey.com>
3629 * symfile.c (read_symbols): Use objfile method.
3630 * symfile-debug.c (objfile::require_partial_symbols): New method.
3631 * psymtab.h (require_partial_symbols): Don't declare.
3632 * psymtab.c (require_partial_symbols): Use objfile method. Now
3634 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
3635 (psymbol_functions::lookup_symbol)
3636 (psymbol_functions::lookup_global_symbol_language)
3637 (psymbol_functions::find_last_source_symtab)
3638 (psymbol_functions::forget_cached_source_info)
3639 (psymbol_functions::print_stats)
3640 (psymbol_functions::expand_symtabs_for_function)
3641 (psymbol_functions::expand_all_symtabs)
3642 (psymbol_functions::expand_symtabs_with_fullname)
3643 (psymbol_functions::map_symbol_filenames)
3644 (psymbol_functions::map_matching_symbols)
3645 (psymbol_functions::expand_symtabs_matching)
3646 (psymbol_functions::find_compunit_symtab_by_address)
3647 (maintenance_print_psymbols, maintenance_info_psymtabs)
3648 (maintenance_check_psymtabs): Update.
3649 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
3652 2021-03-20 Tom Tromey <tom@tromey.com>
3654 * xcoffread.c (xcoff_sym_fns): Update.
3655 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
3656 * symfile-debug.c (objfile::has_partial_symbols): Use
3657 can_lazily_read_symbols.
3658 (debug_sym_read_psymbols): Remove.
3659 (debug_sym_fns, install_symfile_debug_logging): Update.
3660 * quick-symbol.h (struct quick_symbol_functions)
3661 <can_lazily_read_symbols, read_partial_symbols>: New methods.
3662 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
3663 * mipsread.c (ecoff_sym_fns): Update.
3664 * machoread.c (macho_sym_fns): Update.
3665 * elfread.c (struct lazy_dwarf_reader): New.
3666 (elf_symfile_read): Update.
3667 (read_psyms): Now a method of lazy_dwarf_reader.
3668 (elf_sym_fns): Update.
3669 (elf_sym_fns_lazy_psyms): Remove.
3670 * dbxread.c (aout_sym_fns): Update.
3671 * coffread.c (coff_sym_fns): Update.
3673 2021-03-20 Tom Tromey <tom@tromey.com>
3675 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
3676 (reread_symbols): Move reset_psymtabs call later.
3677 * objfiles.c (objfile::objfile): Don't initialize
3680 2021-03-20 Tom Tromey <tom@tromey.com>
3682 * dwarf2/read.c (dwarf2_build_psymtabs): Call
3683 set_partial_symtabs.
3684 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3685 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3687 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3689 (psymbol_functions::find_pc_sect_compunit_symtab)
3690 (psymbol_functions::print_stats, psymbol_functions::dump)
3691 (psymbol_functions::has_symbols): Update.
3692 (make_psymbol_functions, dump_psymtab_addrmap): Add
3693 partial_symtabs parameter.
3694 (maintenance_print_psymbols): Update.
3695 (psymbol_functions::expand_symtabs_matching): Update.
3696 * psympriv.h (struct psymbol_functions): Add constructor.
3697 <m_partial_symtabs>: New member.
3698 <set_partial_symtabs>: New method.
3700 2021-03-20 Tom Tromey <tom@tromey.com>
3702 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3704 (process_psymtab_comp_unit_reader)
3705 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3706 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3707 Reference psymtabs via per_bfd.
3709 2021-03-20 Tom Tromey <tom@tromey.com>
3711 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3713 (add_address_entry): Remove objfile parameter.
3714 (add_address_entry_worker): Update.
3715 (write_address_map): Replace objfile parameter with per_bfd.
3716 (write_gdbindex, write_psymtabs_to_index): Update.
3718 2021-03-20 Tom Tromey <tom@tromey.com>
3720 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3721 print_bcache parameter.
3722 * symfile-debug.c (objfile::print_stats): Add print_bcache
3724 * quick-symbol.h (struct quick_symbol_functions)
3725 <print_stats>: Add print_bcache parameter.
3726 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3728 (print_objfile_statistics): Move psymtab code to psymtab.c.
3729 * psymtab.c (count_psyms): Move from symmisc.c.
3730 (psymbol_functions::print_stats): Print partial symbol and bcache
3731 statistics. Add print_bcache parameter.
3732 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3733 (struct objfile) <print_stats>: Add print_bcache parameter.
3734 * maint.c (maintenance_print_statistics): Update.
3736 2021-03-20 Tom Tromey <tom@tromey.com>
3738 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3740 * dwarf2/read.c (create_addrmap_from_index)
3741 (create_addrmap_from_aranges): Set per_bfd addrmap.
3742 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3743 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3745 (dwarf2_read_debug_names): Don't set partial_symtabs.
3746 (dwarf2_initialize_objfile): Likewise.
3748 2021-03-20 Tom Tromey <tom@tromey.com>
3750 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3753 2021-03-20 Tom Tromey <tom@tromey.com>
3755 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3756 (~psymtab_discarder, keep): Update.
3757 <m_objfile>: Remove.
3758 <m_partial_symtabs>: New member.
3759 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3761 2021-03-20 Tom Tromey <tom@tromey.com>
3763 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3764 (xcoff_end_psymtab): Update.
3765 (scan_xcoff_symtab): Add partial_symtabs parameter.
3766 (xcoff_initial_scan): Update.
3767 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3768 * mdebugread.c (mdebug_build_psymtabs): Update.
3769 (parse_partial_symbols): Add partial_symtabs parameter.
3770 * dbxread.c (dbx_symfile_read): Update.
3771 (read_dbx_symtab): Add partial_symtabs parameter.
3772 (read_dbx_symtab): Update.
3773 (dbx_end_psymtab): Add partial_symtabs parameter.
3775 2021-03-20 Tom Tromey <tom@tromey.com>
3777 * quick-symbol.h (struct quick_symbol_functions)
3778 <relocated>: New method.
3779 * psymtab.h (struct psymbol_functions) <relocated>: New
3781 <fill_psymbol_map>: Declare method.
3782 <m_psymbol_map>: New member.
3783 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3784 (psymbol_functions::find_compunit_symtab_by_address): Update.
3785 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3786 (struct objfile) <psymbol_map>: Remove.
3787 * objfiles.c (objfile_relocate1): Update.
3789 2021-03-20 Tom Tromey <tom@tromey.com>
3791 * psympriv.h (struct psymbol_functions): New.
3792 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3793 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3794 (objfile::lookup_global_symbol_language): Update.
3795 * quick-symbol.h (struct quick_symbol_functions): Convert function
3796 pointers to methods. Add virtual destructor.
3797 (quick_symbol_functions_up): New typedef.
3798 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3799 (dwarf2_debug_names_functions): Don't declare.
3800 (make_psymbol_functions): Declare.
3801 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3802 (psymbol_functions::find_pc_sect_compunit_symtab)
3803 (psymbol_functions::lookup_symbol)
3804 (psymbol_functions::lookup_global_symbol_language)
3805 (psymbol_functions::find_last_source_symtab)
3806 (psymbol_functions::forget_cached_source_info)
3807 (psymbol_functions::print_stats, psymbol_functions::dump)
3808 (psymbol_functions::expand_symtabs_for_function)
3809 (psymbol_functions::expand_all_symtabs)
3810 (psymbol_functions::expand_symtabs_with_fullname)
3811 (psymbol_functions::map_symbol_filenames)
3812 (psymbol_functions::map_matching_symbols)
3813 (psymbol_functions::expand_symtabs_matching)
3814 (psymbol_functions::has_symbols)
3815 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3816 (psym_functions): Remove.
3817 (make_psymbol_functions): New function.
3818 * objfiles.h (struct objfile) <qf>: Change type.
3819 * elfread.c (elf_symfile_read): Update.
3820 * dwarf2/read.c (struct dwarf2_base_index_functions)
3821 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3822 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3823 (dwarf2_base_index_functions::find_last_source_symtab)
3824 (dwarf2_base_index_functions::forget_cached_source_info)
3825 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3826 (dwarf2_gdb_index::lookup_symbol)
3827 (dwarf2_base_index_functions::print_stats)
3828 (dwarf2_gdb_index::dump)
3829 (dwarf2_gdb_index::expand_symtabs_for_function)
3830 (dwarf2_base_index_functions::expand_all_symtabs)
3831 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3833 (dwarf2_gdb_index::map_matching_symbols): New method.
3834 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3835 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3836 (dwarf2_base_index_functions::map_symbol_filenames)
3837 (dwarf2_base_index_functions::has_symbols): Rename.
3838 (dwarf2_gdb_index_functions): Remove.
3839 (dwarf2_debug_names_index::lookup_symbol)
3840 (dwarf2_debug_names_index::dump)
3841 (dwarf2_debug_names_index::expand_symtabs_for_function)
3842 (dwarf2_debug_names_index::map_matching_symbols)
3843 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3844 (dwarf2_debug_names_functions): Remove.
3845 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3848 2021-03-20 Tom Tromey <tom@tromey.com>
3850 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3852 * xcoffread.c (xcoff_sym_fns): Update.
3853 * symfile.h (struct sym_fns) <qf>: Remove.
3854 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3855 * symfile-debug.c (objfile::has_partial_symbols)
3856 (objfile::find_last_source_symtab)
3857 (objfile::forget_cached_source_info)
3858 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3859 (objfile::print_stats, objfile::dump)
3860 (objfile::expand_symtabs_for_function)
3861 (objfile::expand_all_symtabs)
3862 (objfile::expand_symtabs_with_fullname)
3863 (objfile::map_matching_symbols)
3864 (objfile::expand_symtabs_matching)
3865 (objfile::find_pc_sect_compunit_symtab)
3866 (objfile::map_symbol_filenames)
3867 (objfile::find_compunit_symtab_by_address)
3868 (objfile::lookup_global_symbol_language, debug_sym_fns)
3869 (install_symfile_debug_logging): Update.
3870 * objfiles.h (struct objfile) <qf>: New member.
3871 * mipsread.c (ecoff_sym_fns): Update.
3872 * machoread.c (macho_sym_fns): Update.
3873 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3875 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3876 * dbxread.c (aout_sym_fns): Update.
3877 * coffread.c (coff_sym_fns): Update.
3879 2021-03-20 Tom Tromey <tom@tromey.com>
3881 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3882 (expand_symtabs_file_matcher_ftype)
3883 (expand_symtabs_symbol_matcher_ftype)
3884 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3885 Move to quick-symbol.h.
3886 * quick-symbol.h: New file.
3888 2021-03-20 Tom Tromey <tom@tromey.com>
3890 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3891 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3892 (basic_lookup_transparent_type_quick)
3893 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3894 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3896 * symmisc.c (print_objfile_statistics, dump_objfile)
3897 (maintenance_expand_symtabs): Update.
3898 * symfile.c (symbol_file_add_with_addrs)
3899 (expand_symtabs_matching, map_symbol_filenames): Update.
3900 * symfile-debug.c (objfile::has_partial_symbols)
3901 (objfile::find_last_source_symtab)
3902 (objfile::forget_cached_source_info)
3903 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3904 (objfile::print_stats, objfile::dump)
3905 (objfile::expand_symtabs_for_function)
3906 (objfile::expand_all_symtabs)
3907 (objfile::expand_symtabs_with_fullname)
3908 (objfile::map_matching_symbols)
3909 (objfile::expand_symtabs_matching)
3910 (objfile::find_pc_sect_compunit_symtab)
3911 (objfile::map_symbol_filenames)
3912 (objfile::find_compunit_symtab_by_address)
3913 (objfile::lookup_global_symbol_language): New methods.
3914 (debug_sym_quick_functions): Remove.
3915 (debug_sym_fns, install_symfile_debug_logging): Update.
3916 * source.c (forget_cached_source_info_for_objfile)
3917 (select_source_symtab): Update.
3918 * objfiles.h (struct objfile): Add methods corresponding to
3919 quick_symbol_functions.
3920 * objfiles.c (objfile::has_partial_symbols): Move to
3922 * linespec.c (iterate_over_all_matching_symtabs): Update.
3923 * cp-support.c (add_symbol_overload_list_qualified): Update.
3924 * ada-lang.c (add_nonlocal_symbols): Update.
3926 2021-03-20 Tom Tromey <tom@tromey.com>
3928 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3929 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3931 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3932 * psymtab.c (psym_has_symbols): Return bool.
3933 * objfiles.c (objfile::has_partial_symbols): Return bool.
3934 * dwarf2/read.c (dw2_has_symbols): Return bool.
3936 2021-03-20 Tom Tromey <tom@tromey.com>
3938 * symfile.c (read_symbols): Update.
3939 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3940 (objfile_has_partial_symbols): Don't declare.
3941 * objfiles.c (objfile::has_partial_symbols): Rename from
3942 objfile_has_partial_symbols.
3943 (objfile_has_symbols, have_partial_symbols): Update.
3944 * elfread.c (elf_symfile_read): Update.
3945 * dwarf2/read.c (dwarf2_has_info): Update.
3946 * coffread.c (coff_symfile_read): Update.
3948 2021-03-20 Tom Tromey <tom@tromey.com>
3950 * coffread.c: Include dwarf2/public.h.
3951 * dwarf2/frame.c: Include dwarf2/public.h.
3952 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3953 * dwarf2/public.h: New file.
3954 * dwarf2/read.c: Include dwarf2/public.h.
3955 * elfread.c: Include dwarf2/public.h.
3956 * machoread.c: Include dwarf2/public.h.
3957 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3958 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3959 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3960 * xcoffread.c: Include dwarf2/public.h.
3962 2021-03-20 Tom Tromey <tom@tromey.com>
3964 * symfile.h (enum dwarf2_section_enum)
3965 (dwarf2_get_section_info): Move to dwarf2/read.h.
3966 * dwarf2/read.h (enum dwarf2_section_enum)
3967 (dwarf2_get_section_info): Move from symfile.h.
3969 2021-03-19 Pedro Alves <pedro@palves.net>
3971 * thread.c (any_thread_of_inferior): Check if there's a selected
3972 thread before calling inferior_thread().
3974 2021-03-18 Tom Tromey <tromey@adacore.com>
3976 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3978 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3979 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3981 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3983 * python/py-param.c (get_set_value): Update header comment.
3985 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3987 * infrun.c (check_multi_target_resumption): Remove argument to
3988 all_non_exited_inferiors.
3990 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3992 * windows-nat.c (windows_init_thread_list): Add message to
3995 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3997 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3998 well as PyLong_Check for Python 2.
4000 2021-03-15 Tom Tromey <tromey@adacore.com>
4003 * rust-exp.y (maker_map): Use gdb::hash_enum.
4004 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
4006 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4008 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
4011 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
4013 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
4014 parameter, adjust caller.
4016 2021-03-15 Tom Tromey <tromey@adacore.com>
4018 * ada-exp.y (simple_exp): Always push a result for unary '+'.
4020 2021-03-15 Tom Tromey <tromey@adacore.com>
4022 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
4023 ada_ensure_varsize_limit.
4025 2021-03-15 Tom Tromey <tromey@adacore.com>
4027 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
4029 * ada-exp.y (maybe_overload): New function.
4030 (ada_wrap_overload): New function.
4031 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
4032 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
4033 (or_else_exp, xor_exp, primary): Update.
4035 2021-03-15 Tom Tromey <tromey@adacore.com>
4038 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
4039 call for tagged type.
4041 2021-03-15 Tom Tromey <tromey@adacore.com>
4043 * ada-exp.y (exp1): Handle resolution of the right hand side of an
4046 2021-03-15 Tom Tromey <tromey@adacore.com>
4048 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
4050 (ada_assign_operation::evaluate): Update.
4051 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
4054 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
4056 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
4058 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
4060 * python/python.c (gdbpy_source_objfile_script): Use
4061 make_scoped_restore to restore gdbpy_current_objfile.
4062 (gdbpy_execute_objfile_script): Likewise.
4064 2021-03-14 Tom Tromey <tom@tromey.com>
4066 * dwarf2/read.c (read_attribute_value): Use cu_header
4069 2021-03-14 Tom Tromey <tom@tromey.com>
4071 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
4072 (peek_die_abbrev): Use reader.abfd.
4074 2021-03-14 Tom Tromey <tom@tromey.com>
4076 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
4079 2021-03-13 Tom Tromey <tom@tromey.com>
4081 * dwarf2/read.c (struct partial_die_info): Update.
4082 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
4083 (load_partial_dies, partial_die_info::partial_die_info): Update.
4084 * dwarf2/abbrev.h (lookup_abbrev): Constify.
4086 2021-03-13 Tom Tromey <tom@tromey.com>
4088 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
4090 2021-03-12 Christian Biesinger <cbiesinger@google.com>
4093 * cp-support.c: Use scoped_segv_handler_restore.
4094 * event-top.c (thread_local_segv_handler): Made static.
4095 (scoped_segv_handler_restore::scoped_segv_handler_restore):
4097 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
4099 * event-top.h (class scoped_segv_handler_restore): New class.
4100 (thread_local_segv_handler): Removed.
4102 2021-03-10 Tom Tromey <tromey@adacore.com>
4104 * parser-defs.h (parser_state): Change completion to bool.
4105 <parse_completion>: Likewise.
4106 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4107 (ada_resolve_variable, ada_resolve_function): Update.
4108 * ada-lang.c (ada_find_operator_symbol): Change
4109 parse_completion to bool.
4110 (ada_resolve_funcall, ada_resolve_variable)
4111 (ada_resolve_function): Likewise.
4113 2021-03-09 Tom Tromey <tromey@adacore.com>
4115 * eval.c (operation::evaluate_funcall): Use function formal
4116 parameter types when evaluating.
4118 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4120 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
4121 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
4122 and owner to m_owner.
4124 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
4126 * f-exp.h (eval_op_f_loc): Declare.
4127 (expr::fortran_loc_operation): New typedef.
4128 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
4130 (f77_keywords): Add LOC keyword.
4131 * f-lang.c (eval_op_f_loc): New function.
4132 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
4134 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4136 * f-exp.h (eval_op_f_array_shape): Declare.
4137 (fortran_array_shape_operation): New type.
4138 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
4140 (f77_keywords): Add "shape" keyword.
4141 * f-lang.c (fortran_array_shape): New function.
4142 (eval_op_f_array_shape): New function.
4143 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
4145 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4147 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
4149 (expr::fortran_array_size_1arg): New type.
4150 (expr::fortran_array_size_2arg): Likewise.
4151 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
4152 UNOP_OR_BINOP_INTRINSIC.
4153 (f77_keywords): Add "size" keyword.
4154 * f-lang.c (fortran_array_size): New function.
4155 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
4156 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
4158 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
4160 * f-exp.h (eval_op_f_rank): Declare.
4161 (expr::fortran_rank_operation): New typedef.
4162 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
4164 (f77_keywords): Add "rank" keyword.
4165 * f-lang.c (eval_op_f_rank): New function.
4166 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
4168 2021-03-08 Tom Tromey <tom@tromey.com>
4170 * printcmd.c (set_command): Remove null check.
4171 * value.c (init_if_undefined_command): Remove null check.
4173 2021-03-08 Tom Tromey <tom@tromey.com>
4175 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
4177 * p-exp.y (variable): Update.
4178 * go-exp.y (variable): Update.
4179 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
4180 Remove overload for objfile.
4181 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
4183 (check_objfile): Likewise.
4184 (dump_for_expression): Likewise. Remove overload for objfile.
4185 (class var_msym_value_operation): Use bound_minimal_symbol.
4186 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
4188 (var_msym_value_operation::evaluate_for_address)
4189 (var_msym_value_operation::evaluate_for_sizeof)
4190 (var_msym_value_operation::evaluate_for_cast): Update.
4191 * d-exp.y (PrimaryExpression): Update.
4192 * c-exp.y (variable): Update.
4193 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
4194 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4196 * ada-exp.y (write_var_or_type): Update.
4198 2021-03-08 Tom Tromey <tom@tromey.com>
4200 * parser-defs.h (exp_uses_objfile): Return bool.
4201 * parse.c (exp_uses_objfile): Return bool.
4203 2021-03-08 Tom Tromey <tom@tromey.com>
4205 * value.h (eval_skip_value): Don't declare.
4206 * opencl-lang.c (eval_opencl_assign): Update.
4207 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
4208 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4209 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
4210 * expression.h (enum noside) <EVAL_SKIP>: Remove.
4211 * expop.h (typeof_operation::evaluate)
4212 (decltype_operation::evaluate, unop_addr_operation::evaluate)
4213 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
4214 (cxx_cast_operation::evaluate): Update.
4215 * eval.c (eval_skip_value): Remove.
4216 (eval_op_scope, eval_op_var_entry_value)
4217 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
4218 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
4219 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
4220 (eval_op_binary, eval_op_subscript, eval_op_equal)
4221 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
4222 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
4223 (eval_op_complement, eval_op_lognot, eval_op_ind)
4224 (eval_op_memval, eval_op_preinc, eval_op_predec)
4225 (eval_op_postinc, eval_op_postdec, eval_op_type)
4226 (eval_binop_assign_modify, eval_op_objc_msgcall)
4227 (eval_multi_subscript, logical_and_operation::evaluate)
4228 (logical_or_operation::evaluate, array_operation::evaluate)
4229 (operation::evaluate_for_cast)
4230 (var_msym_value_operation::evaluate_for_cast)
4231 (var_value_operation::evaluate_for_cast): Update.
4232 * c-lang.c (c_string_operation::evaluate): Update.
4233 * c-exp.h (objc_nsstring_operation::evaluate)
4234 (objc_selector_operation::evaluate): Update.
4235 * ada-lang.c (ada_assign_operation::evaluate)
4236 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
4237 (ada_atr_size): Update.
4239 2021-03-08 Tom Tromey <tom@tromey.com>
4241 * eval.c: Merge "namespace" scopes.
4243 2021-03-08 Tom Tromey <tom@tromey.com>
4245 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
4247 * parse.c (expr_builder::expr_builder, expr_builder::release):
4250 2021-03-08 Tom Tromey <tom@tromey.com>
4252 * parse.c (expression::expression, expression::~expression):
4254 * expression.h (struct expression): Inline constructor. Remove
4257 2021-03-08 Tom Tromey <tom@tromey.com>
4259 * std-operator.def (BINOP_END): Remove.
4260 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
4261 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
4262 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
4263 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
4264 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
4267 2021-03-08 Tom Tromey <tom@tromey.com>
4269 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
4271 2021-03-08 Tom Tromey <tom@tromey.com>
4273 * std-operator.def (OP_EXTENDED0): Remove.
4275 2021-03-08 Tom Tromey <tom@tromey.com>
4277 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
4278 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
4281 2021-03-08 Tom Tromey <tom@tromey.com>
4283 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
4284 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
4286 2021-03-08 Tom Tromey <tom@tromey.com>
4288 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
4289 * ada-lang.c (ada_binop_minmax): Update.
4290 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4291 Use BINOP_MIN and BINOP_MAX.
4293 2021-03-08 Tom Tromey <tom@tromey.com>
4295 * value.h (evaluate_subexp_with_coercion): Don't declare.
4296 * parse.c (exp_descriptor_standard): Remove.
4297 (expr_builder::expr_builder, expr_builder::release): Update.
4298 (expression::expression): Remove size_t parameter.
4299 (expression::~expression): Simplify.
4300 (expression::resize): Remove.
4301 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
4302 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
4303 (write_exp_elt_longcst, write_exp_elt_floatcst)
4304 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
4305 (write_exp_string_vector, write_exp_bitstring): Remove.
4306 * p-lang.h (class pascal_language) <opcode_print_table,
4307 op_print_tab>: Remove.
4308 * p-lang.c (pascal_language::op_print_tab): Remove.
4309 * opencl-lang.c (class opencl_language) <opcode_print_table>:
4311 * objc-lang.c (objc_op_print_tab): Remove.
4312 (class objc_language) <opcode_print_table>: Remove.
4313 * m2-lang.h (class m2_language) <opcode_print_table,
4314 op_print_tab>: Remove.
4315 * m2-lang.c (m2_language::op_print_tab): Remove.
4316 * language.h (struct language_defn) <post_parser, expression_ops,
4317 opcode_print_table>: Remove.
4318 * language.c (language_defn::expression_ops)
4319 (auto_or_unknown_language::opcode_print_table): Remove.
4320 * go-lang.h (class go_language) <opcode_print_table,
4321 op_print_tab>: Remove.
4322 * go-lang.c (go_language::op_print_tab): Remove.
4323 * f-lang.h (class f_language) <opcode_print_table>: Remove
4324 <op_print_tab>: Remove.
4325 * f-lang.c (f_language::op_print_tab): Remove.
4326 * expression.h (union exp_element): Remove.
4327 (struct expression): Remove size_t parameter from constructor.
4329 <first_opcode>: Update.
4330 <nelts, elts>: Remove.
4331 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
4332 (evaluate_subexp_standard, print_expression, op_string)
4333 (dump_raw_expression): Don't declare.
4334 * expprint.c (print_expression, print_subexp)
4335 (print_subexp_funcall, print_subexp_standard, op_string)
4336 (dump_raw_expression, dump_subexp, dump_subexp_body)
4337 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
4338 (dump_prefix_expression): Update.
4339 * eval.c (evaluate_subexp): Remove.
4340 (evaluate_expression, evaluate_type): Update.
4341 (evaluate_subexpression_type): Remove.
4342 (fetch_subexp_value): Remove "pc" parameter. Update.
4343 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
4344 (evaluate_subexp_standard, evaluate_subexp_for_address)
4345 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
4346 (evaluate_subexp_for_cast): Remove.
4347 (parse_and_eval_type): Update.
4348 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4349 * d-lang.c (d_op_print_tab): Remove.
4350 (class d_language) <opcode_print_table>: Remove.
4351 * c-lang.h (c_op_print_tab): Don't declare.
4352 * c-lang.c (c_op_print_tab): Remove.
4353 (class c_language, class cplus_language, class asm_language, class
4354 minimal_language) <opcode_print_table>: Remove.
4355 * breakpoint.c (update_watchpoint, watchpoint_check)
4356 (watchpoint_exp_is_const, watch_command_1): Update.
4357 * ax-gdb.h (union exp_element): Don't declare.
4358 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
4359 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
4360 (gen_expr_binop_rest): Remove.
4361 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
4362 * ada-lang.c (ada_op_print_tab): Remove.
4363 (class ada_language) <post_parser, opcode_print_table>: Remove.
4365 2021-03-08 Tom Tromey <tom@tromey.com>
4367 * go-lang.c (go_language::expression_ops): Don't declare.
4368 * go-lang.h (class go_language) <expression_ops>: Remove.
4369 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
4371 (class opencl_language) <expression_ops>: Remove.
4372 * d-lang.c (class d_language) <expression_ops>: Remove.
4373 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
4374 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
4375 (class c_language, class cplus_language, class asm_language)
4376 (class minimal_language) <expression_ops>: Remove.
4378 2021-03-08 Tom Tromey <tom@tromey.com>
4380 * ada-lang.c (resolve_subexp, replace_operator_with_call)
4381 (evaluate_subexp_type, assign_aggregate)
4382 (aggregate_assign_positional, aggregate_assign_from_choices)
4383 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
4384 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
4385 (ada_operator_check, ada_forward_operator_length)
4386 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
4388 (post_parser): Update.
4389 (class ada_language) <expresssion_ops>: Remove.
4391 2021-03-08 Tom Tromey <tom@tromey.com>
4393 * m2-lang.h (class m2_language) <expresssion_ops,
4394 exp_descriptor_modula2>: Remove.
4395 * m2-lang.c (evaluate_subexp_modula2)
4396 (m2_language::exp_descriptor_modula2): Remove.
4398 2021-03-08 Tom Tromey <tom@tromey.com>
4400 * f-lang.h (class f_language) <expresssion_ops>: Remove.
4401 <exp_descriptor_tab>: Remove.
4402 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
4403 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
4404 (print_subexp_f, dump_subexp_body_f, operator_check_f)
4405 (f_language::exp_descriptor_tab, fortran_prepare_argument):
4408 2021-03-08 Tom Tromey <tom@tromey.com>
4410 * rust-lang.h (class rust_language) <expression_ops,
4411 exp_descriptor_tab>: Remove.
4412 * rust-lang.c (rust_evaluate_funcall): Remove.
4413 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
4415 (rust_evaluate_subexp): Remove.
4416 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
4417 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
4418 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
4420 2021-03-08 Tom Tromey <tom@tromey.com>
4422 * ada-exp.y: Create operations.
4423 (empty_stoken): Remove.
4424 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
4425 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
4426 (components): New global.
4427 (push_component, choice_component, pop_component, pop_components):
4429 (associations): New global
4430 (push_association, pop_association, pop_associations): New
4432 (ada_parse): Update.
4433 (write_var_from_sym, write_int): Create operations.
4434 (write_exp_op_with_string): Remove.
4435 (write_object_renaming, write_selectors, write_ambiguous_var)
4436 (write_var_or_type, write_name_assoc): Create operations.
4437 * ada-lang.h (ada_index_type): Declare.
4438 * ada-lang.c (ada_index_type): No longer static.
4440 2021-03-08 Tom Tromey <tom@tromey.com>
4442 * f-exp.y: Create operations.
4443 (f_language::parser): Update.
4445 2021-03-08 Tom Tromey <tom@tromey.com>
4447 * m2-exp.y: Create operations.
4448 (m2_language::parser): Update.
4450 2021-03-08 Tom Tromey <tom@tromey.com>
4452 * p-exp.y: Create operations.
4453 (pascal_language::parser): Update.
4455 2021-03-08 Tom Tromey <tom@tromey.com>
4457 * d-exp.y: Create operations.
4460 2021-03-08 Tom Tromey <tom@tromey.com>
4462 * go-exp.y: Create operations.
4463 (go_language::parser): Update.
4465 2021-03-08 Tom Tromey <tom@tromey.com>
4467 * objc-lang.c (end_msglist): Create operations.
4468 * c-exp.y: Change parser to create operations.
4469 (write_destructor_name): Remove.
4472 2021-03-08 Tom Tromey <tom@tromey.com>
4474 * rust-exp.y: Create operations.
4475 (rust_parser::convert_params_to_expression): Change return type.
4476 (binop_maker_ftype): New typedef.
4477 (maker_map): New global.
4478 (rust_parser::convert_ast_to_expression): Change return type.
4479 (rust_language::parser): Update.
4480 (_initialize_rust_exp): Initialize maker_map.
4482 2021-03-08 Tom Tromey <tom@tromey.com>
4484 * stap-probe.c (binop_maker_ftype): New typedef.
4485 (stap_maker_map): New global.
4486 (stap_make_binop): New function.
4487 (stap_parse_register_operand): Return operation_up.
4488 (stap_parse_single_operand, stap_parse_argument_conditionally)
4489 (stap_parse_argument_1): Likewise.
4490 (stap_parse_argument): Create operations.
4491 (stap_probe::parse_arguments): Update.
4492 (_initialize_stap_probe): Initialize stap_maker_map.
4493 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
4495 * i386-tdep.h (i386_stap_parse_special_token): Change return
4497 * i386-tdep.c (i386_stap_parse_special_token_triplet)
4498 (i386_stap_parse_special_token_three_arg_disp)
4499 (i386_stap_parse_special_token): Change return type.
4500 * gdbarch.sh (stap_parse_special_token): Change return type.
4501 * gdbarch.c: Rebuild.
4502 * gdbarch.h: Rebuild.
4503 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
4505 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
4508 2021-03-08 Tom Tromey <tom@tromey.com>
4510 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
4511 * gdbarch.h: Rebuild.
4512 * gdbarch.c: Rebuild.
4513 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
4514 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
4516 (amd64_dtrace_parse_probe_argument): Update.
4518 2021-03-08 Tom Tromey <tom@tromey.com>
4520 * parser-defs.h (struct parser_state) <push, push_new,
4521 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
4522 wrap2>: New methods.
4523 <m_operations>: New member.
4524 * parse.c (parser_state::push_c_string)
4525 (parser_state::push_symbol, parser_state::push_dollar): New
4528 2021-03-08 Tom Tromey <tom@tromey.com>
4530 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
4532 (struct parser_state) <mark_struct_expression>: New method.
4533 * parse.c (parser_state::mark_struct_expression): Update assert.
4534 (parser_state::mark_struct_expression): New method.
4535 (parser_state::mark_completion_tag): Update assert.
4536 (parse_expression_for_completion): Handle expout_last_op.
4538 2021-03-08 Tom Tromey <tom@tromey.com>
4540 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
4542 * value.h (fetch_subexp_value): Add "op" parameter.
4543 * value.c (init_if_undefined_command): Update.
4544 * tracepoint.c (validate_actionline, encode_actions_1): Update.
4545 * stap-probe.c (stap_probe::compile_to_ax): Update.
4546 * printcmd.c (set_command): Update.
4547 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
4549 * parser-defs.h (struct expr_builder) <set_operation>: New
4551 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
4552 * expression.h (struct expression) <first_opcode>: Update.
4554 * expprint.c (dump_raw_expression, dump_prefix_expression):
4556 * expop.h (class var_value_operation) <get_symbol>: New method.
4557 (class register_operation) <get_name>: New method.
4558 (class equal_operation): No longer a typedef, now a subclass.
4559 (class unop_memval_operation) <get_type>: New method.
4560 (class assign_operation) <get_lhs>: New method.
4561 (class unop_cast_operation) <get_type>: New method.
4562 * eval.c (evaluate_expression, evaluate_type)
4563 (evaluate_subexpression_type): Update.
4564 (fetch_subexp_value): Add "op" parameter.
4565 (parse_and_eval_type): Update.
4566 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
4567 * breakpoint.c (update_watchpoint, watchpoint_check)
4568 (watchpoint_exp_is_const, watch_command_1): Update.
4569 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
4572 2021-03-08 Tom Tromey <tom@tromey.com>
4574 * ada-lang.c (ada_value_binop): Do not use op_string.
4576 2021-03-08 Tom Tromey <tom@tromey.com>
4578 * expprint.c (dump_for_expression): New overload.
4579 * expop.h (check_objfile, dump_for_expression): Declare new
4581 * ada-lang.c (check_objfile): New overload.
4582 (assign_component, ada_aggregate_component::uses_objfile)
4583 (ada_aggregate_component::dump, ada_aggregate_component::assign)
4584 (ada_aggregate_component::assign_aggregate)
4585 (ada_positional_component::uses_objfile)
4586 (ada_positional_component::dump, ada_positional_component::assign)
4587 (ada_discrete_range_association::uses_objfile)
4588 (ada_discrete_range_association::dump)
4589 (ada_discrete_range_association::assign)
4590 (ada_name_association::uses_objfile, ada_name_association::dump)
4591 (ada_name_association::assign)
4592 (ada_choices_component::uses_objfile, ada_choices_component::dump)
4593 (ada_choices_component::assign)
4594 (ada_others_component::uses_objfile, ada_others_component::dump)
4595 (ada_others_component::assign, ada_assign_operation::evaluate):
4597 * ada-exp.h (ada_string_operation) <get_name>: New method.
4598 (class ada_assign_operation): New.
4599 (class ada_component): New.
4600 (ada_component_up): New typedef.
4601 (class ada_aggregate_operation, class ada_aggregate_component)
4602 (class ada_positional_component, class ada_others_component)
4603 (class ada_association): New.
4604 (ada_association_up): New typedef.
4605 (class ada_choices_component)
4606 (class ada_discrete_range_association)
4607 (class ada_name_association): New.
4609 2021-03-08 Tom Tromey <tom@tromey.com>
4611 * ada-lang.c (ada_var_value_operation::resolve)
4612 (ada_funcall_operation::resolve)
4613 (ada_ternop_slice_operation::resolve): New methods.
4614 * ada-exp.h (struct ada_resolvable): New.
4615 (class ada_var_value_operation): Derive from ada_resolvable.
4616 <get_block, resolve>: New methods.
4617 (class ada_funcall_operation): Derive from ada_resolvable.
4618 <resolve>: New method.
4619 (class ada_ternop_slice_operation): Derive from ada_resolvable.
4620 <resolve>: New method.
4622 2021-03-08 Tom Tromey <tom@tromey.com>
4624 * ada-lang.c (ada_funcall_operation::evaluate): New method.
4625 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
4627 (class ada_funcall_operation): New.
4629 2021-03-08 Tom Tromey <tom@tromey.com>
4631 * ada-lang.c (ada_structop_operation::evaluate): New method.
4632 * ada-exp.h (class ada_structop_operation): New.
4634 2021-03-08 Tom Tromey <tom@tromey.com>
4636 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
4637 * ada-exp.h (class ada_unop_ind_operation): New.
4639 2021-03-08 Tom Tromey <tom@tromey.com>
4641 * ada-lang.c (ada_binop_exp): No longer static.
4642 * ada-exp.h (ada_binop_exp_operation): New typedef.
4644 2021-03-08 Tom Tromey <tom@tromey.com>
4646 * ada-lang.c (ada_val_atr): No longer static.
4647 (ada_atr_val_operation::evaluate): New method.
4648 * ada-exp.h (class ada_atr_val_operation): New.
4650 2021-03-08 Tom Tromey <tom@tromey.com>
4652 * ada-lang.c (ada_pos_atr): No longer static.
4653 * ada-exp.h (ada_pos_operation): New typedef.
4655 2021-03-08 Tom Tromey <tom@tromey.com>
4657 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
4659 (ada_evaluate_subexp): Use it.
4661 2021-03-08 Tom Tromey <tom@tromey.com>
4663 * ada-lang.c (ada_binop_minmax): No longer static.
4664 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
4667 2021-03-08 Tom Tromey <tom@tromey.com>
4669 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
4671 * ada-exp.h (class ada_var_msym_value_operation): New.
4673 2021-03-08 Tom Tromey <tom@tromey.com>
4675 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
4676 (ada_var_value_operation::evaluate): New methods.
4677 * ada-exp.h (class ada_var_value_operation): New.
4679 2021-03-08 Tom Tromey <tom@tromey.com>
4681 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
4682 * ada-exp.h (class ada_unop_atr_operation): New.
4684 2021-03-08 Tom Tromey <tom@tromey.com>
4686 * ada-lang.c (ada_binop_in_bounds): No longer static.
4687 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4689 2021-03-08 Tom Tromey <tom@tromey.com>
4691 * ada-lang.c (ada_ternop_slice): No longer static.
4692 * ada-exp.h (class ada_ternop_slice_operation): New.
4694 2021-03-08 Tom Tromey <tom@tromey.com>
4696 * ada-exp.h (ada_bitwise_operation): New template class.
4697 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4698 (ada_bitwise_xor_operation): New typedefs.
4700 2021-03-08 Tom Tromey <tom@tromey.com>
4702 * ada-lang.c (ada_equal_binop): No longer static.
4703 * ada-exp.h (class ada_binop_equal_operation): New.
4705 2021-03-08 Tom Tromey <tom@tromey.com>
4707 * ada-lang.c (ada_mult_binop): No longer static.
4708 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4709 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4711 2021-03-08 Tom Tromey <tom@tromey.com>
4713 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4714 * ada-exp.h (class ada_binop_addsub_operation): New.
4716 2021-03-08 Tom Tromey <tom@tromey.com>
4718 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4719 (ada_resolve_variable): Declare.
4720 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4721 (ada_resolve_variable): New functions.
4722 (resolve_subexp): Update.
4724 2021-03-08 Tom Tromey <tom@tromey.com>
4726 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4728 * c-exp.h (class opencl_ternop_cond_operation): New.
4730 2021-03-08 Tom Tromey <tom@tromey.com>
4732 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4734 * c-exp.h (class opencl_logical_binop_operation): New.
4736 2021-03-08 Tom Tromey <tom@tromey.com>
4738 * opencl-lang.c (opencl_structop_operation::evaluate): New
4740 * c-exp.h (class opencl_structop_operation): New.
4742 2021-03-08 Tom Tromey <tom@tromey.com>
4744 * opencl-lang.c (opencl_logical_not): No longer static. Change
4746 (evaluate_subexp_opencl): Update.
4747 * c-exp.h (opencl_notequal_operation): New typedef.
4749 2021-03-08 Tom Tromey <tom@tromey.com>
4751 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4752 static. Change parameters.
4753 (eval_opencl_assign): No longer static. Add "op" parameter.
4754 (evaluate_subexp_opencl): Update.
4755 * c-exp.h (opencl_binop_operation): New template class.
4756 (opencl_assign_operation, opencl_equal_operation)
4757 (opencl_notequal_operation, opencl_less_operation)
4758 (opencl_gtr_operation, opencl_geq_operation)
4759 (opencl_leq_operation): New typedefs.
4761 2021-03-08 Tom Tromey <tom@tromey.com>
4763 * opencl-lang.c (opencl_value_cast): No longer static.
4764 * c-exp.h (opencl_cast_type_operation): New typedef.
4766 2021-03-08 Tom Tromey <tom@tromey.com>
4768 * f-exp.h (eval_op_f_allocated): Declare.
4769 (fortran_allocated_operation): New typedef.
4770 * f-lang.c (eval_op_f_allocated): No longer static.
4772 2021-03-08 Tom Tromey <tom@tromey.com>
4774 * f-lang.c (eval_op_f_associated): New functions.
4775 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4778 2021-03-08 Tom Tromey <tom@tromey.com>
4780 * f-lang.c (fortran_bound_1arg::evaluate)
4781 (fortran_bound_2arg::evaluate): New methods.
4782 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4785 2021-03-08 Tom Tromey <tom@tromey.com>
4787 * expop.h (class unop_addr_operation) <get_expression>: New
4789 * f-lang.c (fortran_undetermined::value_subarray)
4790 (fortran_undetermined::evaluate): New methods.
4791 (fortran_prepare_argument): New overload.
4792 * f-exp.h (class fortran_range_operation)
4793 (class fortran_undetermined): New classes.
4795 2021-03-08 Tom Tromey <tom@tromey.com>
4797 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4798 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4801 2021-03-08 Tom Tromey <tom@tromey.com>
4803 * expression.h (class operation) <evaluate_funcall>: New methods.
4804 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4805 (class var_value_operation) <evaluate_funcall>: New method.
4806 (class structop_base_operation) <evaluate_funcall>: New method.
4807 (class var_msym_value_operation) <evaluate_funcall>: New method.
4808 (class structop_member_base): New class.
4809 (class structop_member_operation): Derive from
4810 structop_member_base.
4811 (class structop_mptr_operation): Derive from
4812 structop_member_base.
4813 (class funcall_operation): New class.
4814 * eval.c (operation::evaluate_funcall)
4815 (var_value_operation::evaluate_funcall)
4816 (scope_operation::evaluate_funcall)
4817 (structop_member_base::evaluate_funcall)
4818 (structop_base_operation::evaluate_funcall): New methods.
4820 2021-03-08 Tom Tromey <tom@tromey.com>
4822 * expop.h (class array_operation): New.
4823 * eval.c (array_operation::evaluate_struct_tuple)
4824 (array_operation::evaluate): New methods.
4826 2021-03-08 Tom Tromey <tom@tromey.com>
4828 * expop.h (class adl_func_operation): New.
4829 * eval.c (adl_func_operation::evaluate): New method.
4831 2021-03-08 Tom Tromey <tom@tromey.com>
4833 * ada-lang.c (ada_unop_in_range): No longer static.
4834 * ada-exp.h (class ada_unop_range_operation): New.
4836 2021-03-08 Tom Tromey <tom@tromey.com>
4838 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4840 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4841 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4843 2021-03-08 Tom Tromey <tom@tromey.com>
4845 * expop.h (class logical_and_operation)
4846 (class logical_or_operation): New.
4847 * eval.c (logical_and_operation::evaluate)
4848 (logical_or_operation::evaluate): New methods.
4849 * ax-gdb.c (logical_and_operation::do_generate_ax)
4850 (logical_or_operation::do_generate_ax): New methods.
4852 2021-03-08 Tom Tromey <tom@tromey.com>
4854 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4856 * m2-exp.h: New file.
4858 2021-03-08 Tom Tromey <tom@tromey.com>
4860 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4861 * rust-exp.h (class rust_aggregate_operation): New.
4863 2021-03-08 Tom Tromey <tom@tromey.com>
4865 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4867 * rust-exp.h (class rust_struct_anon): New.
4868 (class rust_structop): New.
4870 2021-03-08 Tom Tromey <tom@tromey.com>
4872 * rust-lang.c (rust_range): No longer static.
4873 * rust-exp.h (class rust_range_operation): New.
4875 2021-03-08 Tom Tromey <tom@tromey.com>
4877 * rust-lang.c (rust_subscript): No longer static.
4878 * rust-exp.h (class rust_subscript_operation): New.
4880 2021-03-08 Tom Tromey <tom@tromey.com>
4882 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4884 (rust_evaluate_subexp): Update.
4885 * rust-exp.h (class rust_unop_ind_operation): New.
4887 2021-03-08 Tom Tromey <tom@tromey.com>
4889 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4890 longer static. Add "opcode" parameter.
4891 (rust_evaluate_subexp): Update.
4892 * rust-exp.h: New file.
4894 2021-03-08 Tom Tromey <tom@tromey.com>
4896 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4897 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4898 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4899 (evaluate_subexp_f): Update.
4900 * f-exp.h: New file.
4902 2021-03-08 Tom Tromey <tom@tromey.com>
4904 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4905 * ada-exp.h (class ada_ternop_range_operation): New.
4907 2021-03-08 Tom Tromey <tom@tromey.com>
4909 * ada-lang.c (ada_qual_operation::evaluate): New method.
4910 * ada-exp.h (class ada_qual_operation): New.
4912 2021-03-08 Tom Tromey <tom@tromey.com>
4914 * ada-lang.c (ada_string_operation::evaluate): New method.
4915 * ada-exp.h (class ada_string_operation): New.
4917 2021-03-08 Tom Tromey <tom@tromey.com>
4919 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4920 * ada-exp.h: New file.
4922 2021-03-08 Tom Tromey <tom@tromey.com>
4924 * expop.h (class multi_subscript_operation): New.
4925 * eval.c (multi_subscript_operation::evaluate): New method.
4927 2021-03-08 Tom Tromey <tom@tromey.com>
4929 * eval.c (objc_msgcall_operation::evaluate): New method.
4930 * c-exp.h (class objc_msgcall_operation): New.
4932 2021-03-08 Tom Tromey <tom@tromey.com>
4934 * expop.h (class var_value_operation): New.
4935 * eval.c (var_value_operation::evaluate)
4936 (var_value_operation::evaluate_for_address)
4937 (var_value_operation::evaluate_with_coercion)
4938 (var_value_operation::evaluate_for_sizeof)
4939 (var_value_operation::evaluate_for_cast): New methods.
4940 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4942 2021-03-08 Tom Tromey <tom@tromey.com>
4944 * expop.h (cxx_cast_ftype): New typedef.
4945 (cxx_cast_operation): New template.
4946 (dynamic_cast_operation, reinterpret_cast_operation): New
4949 2021-03-08 Tom Tromey <tom@tromey.com>
4951 * expop.h (class unop_cast_type_operation): New.
4952 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4955 2021-03-08 Tom Tromey <tom@tromey.com>
4957 * expop.h (class unop_cast_operation): New.
4958 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4960 2021-03-08 Tom Tromey <tom@tromey.com>
4962 * expop.h (class assign_modify_operation): New.
4963 * eval.c (eval_binop_assign_modify): No longer static.
4964 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4966 2021-03-08 Tom Tromey <tom@tromey.com>
4968 * expop.h (class assign_operation): New.
4969 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4971 2021-03-08 Tom Tromey <tom@tromey.com>
4973 * expop.h (class type_instance_operation): New.
4974 * eval.c (type_instance_operation::evaluate): New method.
4976 2021-03-08 Tom Tromey <tom@tromey.com>
4978 * expop.h (class op_this_operation): New.
4979 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4981 2021-03-08 Tom Tromey <tom@tromey.com>
4983 * expop.h (class unop_memval_operation)
4984 (class unop_memval_type_operation): New.
4985 * eval.c (eval_op_memval): No longer static.
4986 (unop_memval_operation::evaluate_for_address)
4987 (unop_memval_type_operation::evaluate_for_address)
4988 (unop_memval_operation::evaluate_for_sizeof)
4989 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4990 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4991 (unop_memval_type_operation::do_generate_ax): New methods.
4993 2021-03-08 Tom Tromey <tom@tromey.com>
4995 * expop.h (class unop_alignof_operation): New.
4996 * eval.c (eval_op_alignof): No longer static.
4998 2021-03-08 Tom Tromey <tom@tromey.com>
5000 * expop.h (class unop_sizeof_operation): New.
5001 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
5003 2021-03-08 Tom Tromey <tom@tromey.com>
5005 * expop.h (class unop_addr_operation): New.
5006 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
5008 2021-03-08 Tom Tromey <tom@tromey.com>
5010 * expop.h (class typeid_operation): New.
5012 2021-03-08 Tom Tromey <tom@tromey.com>
5014 * expop.h (class decltype_operation): New.
5016 2021-03-08 Tom Tromey <tom@tromey.com>
5018 * expop.h (class typeof_operation): New.
5020 2021-03-08 Tom Tromey <tom@tromey.com>
5022 * expop.h (class type_operation): New.
5023 * eval.c (eval_op_type): No longer static.
5025 2021-03-08 Tom Tromey <tom@tromey.com>
5027 * expop.h (class unop_ind_base_operation)
5028 (class unop_ind_operation): New.
5029 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
5030 (unop_ind_base_operation::evaluate_for_address)
5031 (unop_ind_base_operation::evaluate_for_sizeof): New method.
5032 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
5034 2021-03-08 Tom Tromey <tom@tromey.com>
5036 * expop.h (unop_incr_operation): New template.
5037 (preinc_operation, predec_operation, postinc_operation)
5038 (postdec_operation): New typedefs.
5039 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
5040 (eval_op_postdec): No longer static.
5042 2021-03-08 Tom Tromey <tom@tromey.com>
5044 * expop.h (unary_ftype): New typedef.
5045 (unop_operation, usual_ax_binop_operation): New templates.
5046 (unary_plus_operation, unary_neg_operation)
5047 (unary_complement_operation, unary_logical_not_operation): New
5049 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
5050 (eval_op_lognot): No longer static.
5051 * ax-gdb.c (gen_expr_unop): New function.
5053 2021-03-08 Tom Tromey <tom@tromey.com>
5055 * ax-gdb.c (comma_operation::do_generate_ax): New method.
5057 2021-03-08 Tom Tromey <tom@tromey.com>
5059 * expop.h (class repeat_operation): New.
5060 * eval.c (eval_op_repeat): No longer static. Remove "op"
5062 (evaluate_subexp_standard): Update.
5063 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
5065 2021-03-08 Tom Tromey <tom@tromey.com>
5067 * expop.h (class comparison_operation): New.
5068 (equal_operation, notequal_operation, less_operation)
5069 (gtr_operation, geq_operation, leq_operation): New typedefs.
5070 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
5071 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
5073 2021-03-08 Tom Tromey <tom@tromey.com>
5075 * expop.h (class subscript_operation): New.
5076 * eval.c (eval_op_subscript): No longer static.
5078 2021-03-08 Tom Tromey <tom@tromey.com>
5080 * expop.h (class binop_operation, class usual_ax_binop_operation):
5082 (exp_operation, intdiv_operation, mod_operation, mul_operation)
5083 (div_operation, rem_operation, lsh_operation, rsh_operation)
5084 (bitwise_and_operation, bitwise_ior_operation)
5085 (bitwise_xor_operation): New typedefs.
5086 * eval.c (eval_op_binary): No longer static.
5088 2021-03-08 Tom Tromey <tom@tromey.com>
5090 * expop.h (class sub_operation): New.
5091 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
5092 (evaluate_subexp_standard): Update.
5094 2021-03-08 Tom Tromey <tom@tromey.com>
5096 * expop.h (class add_operation): New.
5097 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
5098 (evaluate_subexp_standard): Update.
5100 2021-03-08 Tom Tromey <tom@tromey.com>
5102 * expop.h (class concat_operation): New.
5103 * eval.c (eval_op_concat): No longer static. Remove "op"
5105 (evaluate_subexp_standard): Update.
5107 2021-03-08 Tom Tromey <tom@tromey.com>
5109 * expop.h (class structop_member_operation)
5110 (class structop_mptr_operation): New.
5111 * eval.c (eval_op_member): No longer static.
5113 2021-03-08 Tom Tromey <tom@tromey.com>
5115 * expop.h (class structop_ptr_operation): New.
5116 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
5119 2021-03-08 Tom Tromey <tom@tromey.com>
5121 * expop.h (class structop_base_operation)
5122 (class structop_operation): New.
5123 * eval.c (eval_op_structop_struct): No longer static.
5125 2021-03-08 Tom Tromey <tom@tromey.com>
5127 * expop.h (class complex_operation): New.
5129 2021-03-08 Tom Tromey <tom@tromey.com>
5131 * eval.c (eval_op_objc_selector): No longer static.
5132 * c-exp.h (class objc_selector_operation): New.
5134 2021-03-08 Tom Tromey <tom@tromey.com>
5136 * eval.c: Include c-exp.h.
5137 * c-exp.h (class objc_nsstring_operation): New.
5139 2021-03-08 Tom Tromey <tom@tromey.com>
5141 * c-lang.c (c_string_operation::evaluate): New method.
5142 * c-exp.h: New file.
5144 2021-03-08 Tom Tromey <tom@tromey.com>
5146 * expop.h (class ternop_cond_operation): New.
5147 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
5149 2021-03-08 Tom Tromey <tom@tromey.com>
5151 * expop.h (class ternop_slice_operation): New.
5152 * eval.c (eval_op_ternop): No longer static.
5154 2021-03-08 Tom Tromey <tom@tromey.com>
5156 * expop.h (class string_operation): New.
5157 * eval.c (eval_op_string): No longer static.
5159 2021-03-08 Tom Tromey <tom@tromey.com>
5161 * expop.h (class internalvar_operation): New.
5162 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
5164 2021-03-08 Tom Tromey <tom@tromey.com>
5166 * expop.h (class bool_operation): New.
5168 2021-03-08 Tom Tromey <tom@tromey.com>
5170 * expop.h (class register_operation): New.
5171 * eval.c (eval_op_register): No longer static.
5172 * ax-gdb.c (register_operation::do_generate_ax): New method.
5174 2021-03-08 Tom Tromey <tom@tromey.com>
5176 * expop.h (class last_operation): New.
5178 2021-03-08 Tom Tromey <tom@tromey.com>
5180 * expop.h (class func_static_var_operation): New.
5181 * eval.c (eval_op_func_static_var): No longer static.
5183 2021-03-08 Tom Tromey <tom@tromey.com>
5185 * expop.h (class var_entry_value_operation): New.
5186 * eval.c (eval_op_var_entry_value): No longer static.
5188 2021-03-08 Tom Tromey <tom@tromey.com>
5190 * expression.h (class operation) <set_outermost>: New method.
5191 * expop.h (class var_msym_value_operation): New.
5192 * eval.c (eval_op_var_msym_value): No longer static.
5193 (var_msym_value_operation::evaluate_for_address)
5194 (var_msym_value_operation::evaluate_for_sizeof)
5195 (var_msym_value_operation::evaluate_for_cast): New methods.
5196 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
5199 2021-03-08 Tom Tromey <tom@tromey.com>
5201 * expop.h (class long_const_operation): New.
5202 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
5204 2021-03-08 Tom Tromey <tom@tromey.com>
5206 * expop.h (class scope_operation): New.
5207 * eval.c (eval_op_scope): No longer static.
5208 (scope_operation::evaluate_for_address): New method.
5209 * ax-gdb.c (scope_operation::do_generate_ax): New method.
5211 2021-03-08 Tom Tromey <tom@tromey.com>
5213 * expprint.c (float_const_operation::dump): New method.
5214 * expop.h (float_data): New typedef.
5215 (class float_const_operation): New.
5217 2021-03-08 Tom Tromey <tom@tromey.com>
5219 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
5220 * ax-gdb.c (gen_expr_binop): New function.
5221 (gen_expr_structop): Likewise.
5223 2021-03-08 Tom Tromey <tom@tromey.com>
5225 * expprint.c (expr::dump_for_expression): New functions.
5226 * expop.h (dump_for_expression): New overloads.
5227 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
5230 2021-03-08 Tom Tromey <tom@tromey.com>
5232 * expression.h (expr::operation): New class.
5233 (expr::make_operation): New function.
5234 (expr::operation_up): New typedef.
5235 * expop.h: New file.
5236 * eval.c (operation::evaluate_for_cast)
5237 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
5239 * ax-gdb.c (operation::generate_ax): New method.
5241 2021-03-08 Tom Tromey <tom@tromey.com>
5243 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
5244 (gen_expr_binop_rest): New overload.
5246 2021-03-08 Tom Tromey <tom@tromey.com>
5248 * eval.c (eval_multi_subscript): New function.
5249 (evaluate_subexp_standard): Use it.
5251 2021-03-08 Tom Tromey <tom@tromey.com>
5253 * ada-lang.c (ada_binop_exp): New function.
5254 (ada_evaluate_subexp): Use it.
5256 2021-03-08 Tom Tromey <tom@tromey.com>
5258 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
5260 (ada_evaluate_subexp): Use it.
5262 2021-03-08 Tom Tromey <tom@tromey.com>
5264 * ada-lang.c (ada_binop_minmax): New function.
5265 (ada_evaluate_subexp): Use it.
5267 2021-03-08 Tom Tromey <tom@tromey.com>
5269 * ada-lang.c (ada_unop_atr): New function.
5270 (ada_evaluate_subexp): Use it.
5272 2021-03-08 Tom Tromey <tom@tromey.com>
5274 * ada-lang.c (ada_binop_in_bounds): New function.
5275 (ada_evaluate_subexp): Use it.
5277 2021-03-08 Tom Tromey <tom@tromey.com>
5279 * ada-lang.c (ada_ternop_slice): New function.
5280 (ada_evaluate_subexp): Use it.
5282 2021-03-08 Tom Tromey <tom@tromey.com>
5284 * ada-lang.c (ada_equal_binop): New function.
5285 (ada_evaluate_subexp): Use it.
5287 2021-03-08 Tom Tromey <tom@tromey.com>
5289 * ada-lang.c (ada_mult_binop): New function.
5290 (ada_evaluate_subexp): Use it.
5292 2021-03-08 Tom Tromey <tom@tromey.com>
5294 * ada-lang.c (ada_abs): New function.
5295 (ada_evaluate_subexp): Use it.
5297 2021-03-08 Tom Tromey <tom@tromey.com>
5299 * ada-lang.c (ada_atr_size): New function.
5300 (ada_evaluate_subexp): Use it.
5302 2021-03-08 Tom Tromey <tom@tromey.com>
5304 * ada-lang.c (ada_atr_tag): New function.
5305 (ada_evaluate_subexp): Use it.
5307 2021-03-08 Tom Tromey <tom@tromey.com>
5309 * ada-lang.c (ada_unop_in_range): New function.
5310 (ada_evaluate_subexp): Use it.
5312 2021-03-08 Tom Tromey <tom@tromey.com>
5314 * ada-lang.c (ada_unop_neg): New function.
5315 (ada_evaluate_subexp): Use it.
5317 2021-03-08 Tom Tromey <tom@tromey.com>
5319 * ada-lang.c (eval_ternop_in_range): New function.
5320 (ada_evaluate_subexp): Use it.
5322 2021-03-08 Tom Tromey <tom@tromey.com>
5324 * opencl-lang.c (eval_opencl_assign): New function.
5325 (evaluate_subexp_opencl): Use it.
5327 2021-03-08 Tom Tromey <tom@tromey.com>
5329 * eval.c (eval_op_objc_msgcall): New function.
5330 (evaluate_subexp_standard): Use it.
5332 2021-03-08 Tom Tromey <tom@tromey.com>
5334 * eval.c (eval_binop_assign_modify): New function.
5335 (evaluate_subexp_standard): Use it.
5337 2021-03-08 Tom Tromey <tom@tromey.com>
5339 * m2-lang.c (eval_op_m2_subscript): New function.
5340 (evaluate_subexp_modula2): Use it.
5342 2021-03-08 Tom Tromey <tom@tromey.com>
5344 * m2-lang.c (eval_op_m2_high): New function.
5345 (evaluate_subexp_modula2): Use it.
5347 2021-03-08 Tom Tromey <tom@tromey.com>
5349 * eval.c (evaluate_subexp_for_address_base): New function.
5350 (evaluate_subexp_for_address): Use it.
5351 (evaluate_subexp_for_sizeof_base): New function.
5352 (evaluate_subexp_for_sizeof): Use it.
5354 2021-03-08 Tom Tromey <tom@tromey.com>
5356 * rust-lang.c (eval_op_rust_structop): New function.
5357 (rust_evaluate_subexp): Use it.
5359 2021-03-08 Tom Tromey <tom@tromey.com>
5361 * rust-lang.c (eval_op_rust_struct_anon): New function.
5362 (rust_evaluate_subexp): Use it.
5364 2021-03-08 Tom Tromey <tom@tromey.com>
5366 * rust-lang.c (eval_op_rust_array): New function.
5367 (rust_evaluate_subexp): Use it.
5369 2021-03-08 Tom Tromey <tom@tromey.com>
5371 * rust-lang.c (eval_op_rust_complement): New function.
5372 (rust_evaluate_subexp): Use it.
5374 2021-03-08 Tom Tromey <tom@tromey.com>
5376 * rust-lang.c (eval_op_rust_ind): New function.
5377 (rust_evaluate_subexp): Use it.
5379 2021-03-08 Tom Tromey <tom@tromey.com>
5381 * rust-lang.c (rust_subscript): Change parameters.
5382 (rust_evaluate_subexp): Update.
5384 2021-03-08 Tom Tromey <tom@tromey.com>
5386 * rust-lang.c (rust_range): Change parameters.
5387 (rust_evaluate_subexp): Update.
5389 2021-03-08 Tom Tromey <tom@tromey.com>
5391 * f-lang.c (eval_op_f_allocated): New function.
5392 (evaluate_subexp_f): Use it.
5394 2021-03-08 Tom Tromey <tom@tromey.com>
5396 * f-lang.c (fortran_require_array): New function.
5397 (evaluate_subexp_f): Use it.
5399 2021-03-08 Tom Tromey <tom@tromey.com>
5401 * f-lang.c (eval_op_f_kind): New function.
5402 (evaluate_subexp_f): Use it.
5404 2021-03-08 Tom Tromey <tom@tromey.com>
5406 * f-lang.c (eval_op_f_cmplx): New function.
5407 (evaluate_subexp_f): Use it.
5409 2021-03-08 Tom Tromey <tom@tromey.com>
5411 * f-lang.c (eval_op_f_modulo): New function.
5412 (evaluate_subexp_f): Use it.
5414 2021-03-08 Tom Tromey <tom@tromey.com>
5416 * f-lang.c (eval_op_f_floor): New function.
5417 (evaluate_subexp_f): Use it.
5419 2021-03-08 Tom Tromey <tom@tromey.com>
5421 * f-lang.c (eval_op_f_ceil): New function.
5422 (evaluate_subexp_f): Use it.
5424 2021-03-08 Tom Tromey <tom@tromey.com>
5426 * f-lang.c (eval_op_f_mod): New function.
5427 (evaluate_subexp_f): Use it.
5429 2021-03-08 Tom Tromey <tom@tromey.com>
5431 * f-lang.c (eval_op_f_abs): New function.
5432 (evaluate_subexp_f): Use it.
5434 2021-03-08 Tom Tromey <tom@tromey.com>
5436 * eval.c (eval_op_type): New function.
5437 (evaluate_subexp_standard): Use it.
5439 2021-03-08 Tom Tromey <tom@tromey.com>
5441 * eval.c (eval_op_postdec): New function.
5442 (evaluate_subexp_standard): Use it.
5444 2021-03-08 Tom Tromey <tom@tromey.com>
5446 * eval.c (eval_op_postinc): New function.
5447 (evaluate_subexp_standard): Use it.
5449 2021-03-08 Tom Tromey <tom@tromey.com>
5451 * eval.c (eval_op_predec): New file.
5452 (evaluate_subexp_standard): Use it.
5454 2021-03-08 Tom Tromey <tom@tromey.com>
5456 * eval.c (eval_op_preinc): New function.
5457 (evaluate_subexp_standard): Use it.
5459 2021-03-08 Tom Tromey <tom@tromey.com>
5461 * eval.c (eval_op_memval): New function.
5462 (evaluate_subexp_standard): Use it.
5464 2021-03-08 Tom Tromey <tom@tromey.com>
5466 * eval.c (eval_op_alignof): New function.
5467 (evaluate_subexp_standard): Use it.
5469 2021-03-08 Tom Tromey <tom@tromey.com>
5471 * eval.c (eval_op_ind): New function.
5472 (evaluate_subexp_standard): Use it.
5474 2021-03-08 Tom Tromey <tom@tromey.com>
5476 * eval.c (eval_op_lognot): New function.
5477 (evaluate_subexp_standard): Use it.
5479 2021-03-08 Tom Tromey <tom@tromey.com>
5481 * eval.c (eval_op_complement): New function.
5482 (evaluate_subexp_standard): Use it.
5484 2021-03-08 Tom Tromey <tom@tromey.com>
5486 * eval.c (eval_op_neg): New function.
5487 (evaluate_subexp_standard): Use it.
5489 2021-03-08 Tom Tromey <tom@tromey.com>
5491 * eval.c (eval_op_plus): New function.
5492 (evaluate_subexp_standard): Use it.
5494 2021-03-08 Tom Tromey <tom@tromey.com>
5496 * eval.c (eval_op_repeat): New function.
5497 (evaluate_subexp_standard): Use it.
5499 2021-03-08 Tom Tromey <tom@tromey.com>
5501 * eval.c (eval_op_leq): New function.
5502 (evaluate_subexp_standard): Use it.
5504 2021-03-08 Tom Tromey <tom@tromey.com>
5506 * eval.c (eval_op_geq): New function.
5507 (evaluate_subexp_standard): Use it.
5509 2021-03-08 Tom Tromey <tom@tromey.com>
5511 * eval.c (eval_op_gtr): New function.
5512 (evaluate_subexp_standard): Use it.
5514 2021-03-08 Tom Tromey <tom@tromey.com>
5516 * eval.c (eval_op_less): New function.
5517 (evaluate_subexp_standard): Use it.
5519 2021-03-08 Tom Tromey <tom@tromey.com>
5521 * eval.c (eval_op_notequal): New function.
5522 (evaluate_subexp_standard): Use it.
5524 2021-03-08 Tom Tromey <tom@tromey.com>
5526 * eval.c (eval_op_equal): New function.
5527 (evaluate_subexp_standard): Use it.
5529 2021-03-08 Tom Tromey <tom@tromey.com>
5531 * eval.c (eval_op_subscript): New function.
5532 (evaluate_subexp_standard): Use it.
5534 2021-03-08 Tom Tromey <tom@tromey.com>
5536 * eval.c (eval_op_binary): New function.
5537 (evaluate_subexp_standard): Use it.
5539 2021-03-08 Tom Tromey <tom@tromey.com>
5541 * eval.c (eval_op_sub): New function.
5542 (evaluate_subexp_standard): Use it.
5544 2021-03-08 Tom Tromey <tom@tromey.com>
5546 * eval.c (eval_op_add): New function.
5547 (evaluate_subexp_standard): Use it.
5549 2021-03-08 Tom Tromey <tom@tromey.com>
5551 * eval.c (eval_op_member): New function.
5552 (evaluate_subexp_standard): Use it.
5554 2021-03-08 Tom Tromey <tom@tromey.com>
5556 * eval.c (eval_op_structop_ptr): New function.
5557 (evaluate_subexp_standard): Use it.
5559 2021-03-08 Tom Tromey <tom@tromey.com>
5561 * eval.c (eval_op_structop_struct): New function.
5562 (evaluate_subexp_standard): Use it.
5564 2021-03-08 Tom Tromey <tom@tromey.com>
5566 * eval.c (eval_op_ternop): New function.
5567 (evaluate_subexp_standard): Use it.
5569 2021-03-08 Tom Tromey <tom@tromey.com>
5571 * eval.c (eval_op_concat): New function.
5572 (evaluate_subexp_standard): Use it.
5574 2021-03-08 Tom Tromey <tom@tromey.com>
5576 * eval.c (eval_op_objc_selector): New function.
5577 (evaluate_subexp_standard): Use it.
5579 2021-03-08 Tom Tromey <tom@tromey.com>
5581 * eval.c (eval_op_string): New function.
5582 (evaluate_subexp_standard): Use it.
5584 2021-03-08 Tom Tromey <tom@tromey.com>
5586 * eval.c (eval_op_register): New function.
5587 (evaluate_subexp_standard): Use it.
5589 2021-03-08 Tom Tromey <tom@tromey.com>
5591 * eval.c (eval_op_func_static_var): New function.
5592 (evaluate_subexp_standard): Use it.
5594 2021-03-08 Tom Tromey <tom@tromey.com>
5596 * eval.c (eval_op_var_msym_value): New function.
5597 (evaluate_subexp_standard): Use it.
5599 2021-03-08 Tom Tromey <tom@tromey.com>
5601 * eval.c (eval_op_var_entry_value): New function.
5602 (evaluate_subexp_standard): Use it.
5604 2021-03-08 Tom Tromey <tom@tromey.com>
5606 * eval.c (eval_op_scope): New function.
5607 (evaluate_subexp_standard): Use it.
5609 2021-03-06 Chernov Sergey <klen_s@mail.ru>
5612 * ada-lang.c (ada_fold_name): Use gdb::to_string.
5614 2021-03-06 Tom Tromey <tom@tromey.com>
5616 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
5617 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
5618 * dwarf2/read.c (dwarf2_elf_names): No longer static.
5619 (locate_dwz_sections, dwz_search_other_debugdirs)
5620 (dwarf2_get_dwz_file): Move to dwz.c.
5621 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
5623 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
5624 (dwarf2_get_dwz_file): Move from read.c.
5626 2021-03-06 Tom Tromey <tom@tromey.com>
5628 * debuginfod-support.h: Include scoped_fd.h.
5630 2021-03-06 Tom Tromey <tom@tromey.com>
5632 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
5633 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
5634 (get_abbrev_section_for_cu, read_attribute_value)
5635 (get_debug_line_section): Update.
5636 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
5638 2021-03-06 Tom Tromey <tom@tromey.com>
5640 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
5642 * dwarf2/read.c (section_is_p): Remove.
5643 (dwarf2_per_bfd::locate_sections)
5644 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
5645 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
5646 (dwarf2_locate_common_dwp_sections)
5647 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
5650 2021-03-06 Tom Tromey <tom@tromey.com>
5652 * xcoffread.c: Include sect-names.h.
5653 * symfile.h (struct dwarf2_section_names, struct
5654 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
5655 * dwarf2/sect-names.h: New file, from symfile.h.
5656 * dwarf2/read.c: Include sect-names.h.
5658 2021-03-06 Tom Tromey <tom@tromey.com>
5660 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
5661 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
5662 (abbrev_table::read): Update.
5663 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
5664 (struct abbrev_info): Reformat.
5665 <attrs>: Now an array.
5666 (struct abbrev_table) <alloc_abbrev>: Remove.
5668 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5670 * ctfread.c (ctf_psymtab_add_enums): New function.
5671 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
5673 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
5675 * ctfread.c (read_func_kind_type): Set up function arguments.
5677 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5678 Andrew Burgess <andrew.burgess@embecosm.com>
5680 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
5682 (riscv_csrset): New static global.
5683 (riscv_update_csrmap): New function.
5684 (riscv_iterate_over_regset_sections): Process CSRs.
5686 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5688 * riscv-tdep.c (riscv_feature_name_csr): Define.
5689 (riscv_feature_name_cpu): Define.
5690 (riscv_feature_name_fpu): Define.
5691 (riscv_feature_name_virtual): Define.
5692 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5693 (riscv_freg_feature): Use riscv_feature_name_fpu.
5694 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5695 (riscv_csr_feature): Use riscv_feature_name_csr.
5696 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5698 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5699 Craig Blackmore <craig.blackmore@embecosm.com>
5701 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5702 (ALLDEPFILES): Add riscv-none-tdep.c.
5703 * configure: Regenerate.
5704 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5706 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5707 * elf-none-tdep.c: New file.
5708 * elf-none-tdep.h: New file.
5709 * riscv-none-tdep.c: New file.
5711 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5712 Andrew Burgess <andrew.burgess@embecosm.com>
5714 * corelow.c: Add 'xml-tdesc.h' include.
5715 (core_target::read_description): Load the target description from
5716 the core file when possible.
5717 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5719 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5720 (gcore_elf_make_tdesc_note): New function.
5721 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5722 * linux-tdep.c (linux_make_corefile_notes): Add target description
5725 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5727 * Makefile.in (SFILES): Add gcore-elf.c.
5728 (HFILES_NO_SRCDIR): Add gcore-elf.h
5729 * configure: Regenerate.
5730 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5732 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5733 (struct fbsd_collect_regset_section_cb_data): Delete.
5734 (fbsd_collect_regset_section_cb): Delete.
5735 (fbsd_collect_thread_registers): Delete.
5736 (struct fbsd_corefile_thread_data): Delete.
5737 (fbsd_corefile_thread): Delete.
5738 (fbsd_make_corefile_notes): Call
5739 gcore_elf_build_thread_register_notes instead of the now deleted
5741 * gcore-elf.c: New file, the content was moved here from
5742 linux-tdep.c, functions were renamed and given minor cleanup.
5743 * gcore-elf.h: New file.
5744 * gcore.c (gcore_find_signalled_thread): Moved here from
5745 linux-tdep.c and given a new name. Minor cleanups.
5746 * gcore.h (gcore_find_signalled_thread): Declare.
5747 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5748 (struct linux_collect_regset_section_cb_data): Delete.
5749 (linux_collect_regset_section_cb): Delete.
5750 (linux_collect_thread_registers): Delete.
5751 (linux_corefile_thread): Call
5752 gcore_elf_build_thread_register_notes.
5753 (find_signalled_thread): Delete.
5754 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5756 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5759 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5760 process_stratum_target parameter,
5761 sparc_store_inferior_registers): update callers.
5762 * sparc-nat.c (sparc_fetch_inferior_registers,
5763 sparc_store_inferior_registers): Add process_stratum_target
5764 parameter. Switch current thread before calling
5765 sparc_supply_gregset / sparc_collect_rwindow.
5766 (sparc_store_inferior_registers): Likewise.
5767 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5768 (sparc32obsd_collect_uthread): Likewise.
5769 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5771 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5772 sparc64obsd_supply_uthread): Add assertion.
5774 2021-03-04 Tom Tromey <tromey@adacore.com>
5776 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5777 (aux_add_nonlocal_symbols): Update.
5778 (ada_add_block_symbols): Change "found_sym" to bool.
5780 2021-03-03 Tom Tromey <tromey@adacore.com>
5782 * ada-lang.c (ada_resolve_function): Update comment.
5783 (is_nonfunction, add_symbols_from_enclosing_procs)
5784 (remove_extra_symbols): Likewise.
5785 (struct match_data): Add constructor, initializers.
5786 (add_nonlocal_symbols): Remove memset.
5787 (aux_add_nonlocal_symbols): Update comment.
5788 (ada_add_block_renamings, add_nonlocal_symbols)
5789 (ada_add_all_symbols): Likewise.
5790 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5792 2021-03-02 Tom Tromey <tromey@adacore.com>
5794 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5795 (cast_to_gnat_encoded_fixed_point_type): Remove.
5796 (ada_value_cast, ada_evaluate_subexp): Update.
5797 (gnat_encoded_fixed_point_type_info)
5798 (ada_is_gnat_encoded_fixed_point_type)
5799 (gnat_encoded_fixed_point_delta)
5800 (gnat_encoded_fixed_point_scaling_factor): Remove.
5801 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5802 (gnat_encoded_fixed_point_delta)
5803 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5804 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5805 (ada_print_type): Update.
5806 * ada-valprint.c (ada_value_print_num): Update.
5807 * dwarf2/read.c (ada_get_gnat_encoded_number)
5808 (ada_get_gnat_encoded_ratio): New functions.
5809 (finish_fixed_point_type): Use them. Add parameters.
5810 (GNAT_FIXED_POINT_SUFFIX): New define.
5811 (gnat_encoded_fixed_point_type_info): New function.
5812 (read_base_type): Handle gnat encodings.
5814 2021-03-02 Tom Tromey <tromey@adacore.com>
5816 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5817 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5819 (GROW_VECT): Remove.
5820 (grow_vect): Remove.
5822 2021-03-02 Tom Tromey <tromey@adacore.com>
5824 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5825 * ada-lang.c (resolve_subexp): Update.
5826 (ada_resolve_function): Accept a vector.
5827 (is_nonfunction, add_defn_to_vec)
5828 (add_symbols_from_enclosing_procs): Likewise.
5829 (num_defns_collected, defns_collected): Remove.
5830 (remove_extra_symbols): Return a vector.
5831 (remove_irrelevant_renamings): Return void.
5832 (ada_add_local_symbols): Accept a vector.
5833 (struct match_data) <obstackp>: Remove.
5834 <resultp>: New member.
5835 (aux_add_nonlocal_symbols): Update.
5836 (ada_add_block_renamings, add_nonlocal_symbols)
5837 (ada_add_all_symbols): Accept a vector.
5838 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5840 (ada_lookup_symbol): Update.
5841 (ada_add_block_symbols): Accept a vector.
5842 (get_var_value, iterate_over_symbols): Update.
5843 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5846 2021-03-02 Tom Tromey <tromey@adacore.com>
5848 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5850 2021-03-02 Tom Tromey <tromey@adacore.com>
5852 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5855 (ada_pspace_data): Remove destructor.
5856 <sym_cache>: Now a unique_ptr.
5857 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5858 (ada_get_symbol_cache): Use 'new'.
5859 (ada_clear_symbol_cache): Rewrite.
5861 2021-03-02 Tom Tromey <tromey@adacore.com>
5863 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5866 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5869 * source.c (add_path): Skip empty dirnames.
5871 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5873 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5874 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5876 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5879 * target.c (target_mourn_inferior): Only compare pids in
5880 target_mourn_inferior.
5882 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5885 * remote.c (remote_target::start_remote): Ensure the single
5886 thread, automatically added for remote targets without the
5887 concept of threading, is initially in set to the "resumed"
5889 * remote.c (remote_target::add_current_inferior_and_thread):
5890 Add return value - return the main thread.
5892 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5894 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5895 (mi_tsv_created): Likewise.
5896 (mi_tsv_deleted): Likewise.
5898 2021-02-25 Tom de Vries <tdevries@suse.de>
5901 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5902 section_kind for &dwo_file->sections.info.
5904 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5907 * f-lang.c (fortran_argument_convert): Delete declaration.
5908 (fortran_prepare_argument): New function.
5909 (evaluate_subexp_f): Move logic to new function
5910 fortran_prepare_argument.
5912 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5914 * f-exp.y (f77_keywords): Add 'associated'.
5915 * f-lang.c (fortran_associated): New function.
5916 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5917 (operator_length_f): Likewise.
5918 (print_unop_or_binop_subexp_f): New function.
5919 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5920 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5921 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5922 (operator_check_f): Likewise.
5923 * std-operator.def: Add FORTRAN_ASSOCIATED.
5925 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5927 * f-exp.y (fortran_operators): Add ".xor.".
5929 2021-02-24 Tom de Vries <tdevries@suse.de>
5932 * dwarf2/attribute.c (attribute::form_is_signed): New function
5934 * dwarf2/attribute.h (attribute::as_signed): ... here.
5935 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5936 (attribute::form_is_signed): Declare.
5937 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5938 for DW_AT_decl_file.
5940 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5942 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5943 order for <sys/ptrace.h> and <asm/ptrace.h>.
5945 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5947 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5950 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5952 * exec.c (set_section_command): Move variable declarations into
5953 the function body, and use std::string instead of a fixed size
5956 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5958 * exec.c (exec_target::get_section_table): Delete member function.
5959 (section_table_read_available_memory): Use current_top_target, not
5960 just the exec_ops target.
5961 * target-delegates.c: Regenerate.
5962 * target.c (default_get_section_table): New function.
5963 * target.h (target_ops::get_section_table): Change default
5964 behaviour to call default_get_section_table.
5965 (default_get_section_table): Declare.
5967 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5969 * exec.c (exec_target::close): Call new clear_target_sections
5971 (program_space::add_target_sections): Update name of member
5973 (program_space::add_target_sections): Update name of member
5975 (program_space::remove_target_sections): Likewise.
5976 (exec_one_fork): Use new target_sections member function.
5977 (exec_target::get_section_table): Likewise.
5978 (exec_target::files_info): Likewise.
5979 (set_section_command): Likewise.
5980 (exec_set_section_address): Likewise.
5981 (exec_target::has_memory): Use new target_sections member
5983 * progspace.h (program_space::clear_target_sections): New member
5985 (program_space::target_sections): Rename member variable to
5986 m_target_sections, replace with a new member function.
5987 (program_space::m_target_sections): New member variable.
5988 * solib-dsbt.c (scan_dyntag): Use new member function.
5989 * solib-svr4.c (scan_dyntag): Likewise.
5991 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5993 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5995 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5996 (section_table_read_available_memory): Make local const.
5997 (exec_target::xfer_partial): Make local const.
5998 (print_section_info): Make parameter const.
5999 * gdb/exec.h (print_section_info): Likewise.
6000 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
6002 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
6004 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
6006 * gdb/s390-tdep.c (s390_load): Likewise.
6007 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
6008 * gdb/solib-svr4.c (scan_dyntag): Likewise.
6009 * gdb/target-debug.h (target_debug_print_target_section_table_p):
6011 (target_debug_print_const_target_section_table_p): ...this.
6012 * gdb/target-delegates.c: Regenerate.
6013 * gdb/target.c (target_get_section_table): Make return type const.
6014 (target_section_by_addr): Likewise. Also make some locals const.
6015 (memory_xfer_partial_1): Make some locals const.
6016 * gdb/target.h (struct target_ops) <get_section_table>: Make
6018 (target_section_by_addr): Likewise.
6019 (target_get_section_table): Likewise.
6021 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6023 * NEWS: Mention new 'maint info target-sections' command.
6024 * maint.c (maintenance_info_target_sections): New function.
6025 (_initialize_maint_cmds): Register new command.
6027 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6029 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
6030 (riscv_features_from_bfd): ...this. Change parameter type to
6031 'bfd*', and update as required.
6032 (riscv_find_default_target_description): Update call to
6033 riscv_features_from_bfd. Select a default xlen based on
6035 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
6037 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
6039 * eval.c (evaluate_subexp_standard): Call value_ind for points to
6040 dynamic types in UNOP_IND.
6042 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6045 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
6047 (~dwarf2_queue_guard): Clear queue.
6048 (queue_comp_unit): Assert that queue is
6050 (process_queue): Adjust.
6051 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
6053 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6056 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
6057 to decide whether or not to enqueue it for expansion.
6058 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
6059 after calling maybe_queue_comp_unit.
6061 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
6063 * linux-nat.c (linux_nat_filter_event): Return void.
6065 2021-02-22 Tom Tromey <tromey@adacore.com>
6067 * solib-svr4.c (enable_break): Update.
6068 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
6070 (target_bfd_reopen): Change parameter type.
6071 * bfd-target.h (target_bfd_reopen): Change parameter type.
6073 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6075 * thread.c (add_thread_silent): Add assert.
6076 (find_thread_ptid): Add assert.
6078 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
6081 * inf-ptrace.c (struct target_unpusher): Move to target.h.
6082 (target_unpush_up): Likewise.
6083 * procfs.c (procfs_target::attach): Push target early. Use
6084 target_unpush_up to unpush target in case of error.
6085 * target.h (struct target_unpusher): Move here.
6086 (target_unpush_up): Likewise.
6088 2021-02-19 Kevin Buettner <kevinb@redhat.com>
6090 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
6091 (which in turn includes <gnulib/config.h>) before include
6094 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
6097 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
6098 (decode_j_type_insn): Likewise.
6099 (decode_cj_type_insn): Likewise.
6100 (decode_b_type_insn): Likewise.
6103 2021-02-18 Tom Tromey <tom@tromey.com>
6105 * expression.h (struct expression) <evaluate>: Declare method.
6106 * eval.c (evaluate_subexp): Simplify.
6107 (expression::evaluate): New method.
6108 (evaluate_expression, evaluate_type): Use expression::evaluate.
6110 2021-02-17 Kevin Buettner <kevinb@redhat.com>
6112 * ada-lang.c (ada_fold_name): Check for non-empty string prior
6114 (ada_lookup_name_info): Likewise.
6116 2021-02-13 Mike Frysinger <vapier@gentoo.org>
6118 * aclocal.m4: Regenerate.
6120 2021-02-12 Tom de Vries <tdevries@suse.de>
6123 * linux-nat.c (lin_thread_get_thread_signals): Remove.
6124 (lin_thread_signals): New static var.
6125 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6127 * linux-nat.h (lin_thread_get_thread_signals): Remove.
6128 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
6130 * linux-thread-db.c (check_thread_signals): Use
6131 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
6133 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
6135 * f-exp.y (f77_keywords): Add allocated.
6136 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
6137 (operator_length_f): Likewise.
6138 (print_subexp_f): Likewise.
6139 (dump_subexp_body_f): Likewise.
6140 (operator_check_f): Likewise.
6141 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
6143 2021-02-11 Tom de Vries <tdevries@suse.de>
6146 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
6147 Return true for DW_FORM_strx.
6149 2021-02-11 Tom Tromey <tromey@adacore.com>
6152 * parse.c (write_exp_symbol_reference): Write sym.block.
6154 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6156 * NEWS: Mention changes to 'maint info sections'.
6157 * maint.c (match_substring): Return a bool, fix whitespace issue.
6158 (struct single_bfd_flag_info): New struct.
6159 (bfd_flag_info): New static global.
6160 (match_bfd_flags): Return a bool, use bfd_flag_info.
6161 (print_bfd_flags): Use bfd_flag_info.
6162 (maint_print_section_info): Delete trailing whitespace.
6163 (struct maint_info_sections_opts): New struct.
6164 (maint_info_sections_option_defs): New static global.
6165 (maint_info_sections_completer): New function.
6166 (maintenance_info_sections): Use option parsing mechanism.
6167 (_initialize_maint_cmds): Update command help text for 'maint info
6168 sections' and register a command completer.
6170 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6172 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
6173 functionality merged into...
6174 (maint_print_all_sections): ...this new function.
6175 (maintenance_info_sections): Make use of maint_print_all_sections,
6176 allow all objects to be printed even where there's no executable.
6178 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
6180 * breakpoint.c (resolve_sal_pc): Make use of
6181 bound_minimal_symbol::obj_section.
6182 * maint.c (maintenance_translate_address): Likewise.
6183 * minsyms.c (minimal_symbol_upper_bound): Likewise.
6184 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
6186 * printcmd.c (info_address_command): Make use of
6187 bound_minimal_symbol::obj_section.
6189 2021-02-11 Alan Modra <amodra@gmail.com>
6191 * arm-symbian-tdep.c: Delete.
6192 * NEWS: Mention arm-symbian removal.
6193 * Makefile.in: Remove arm-symbian-tdep entries.
6194 * configure.tgt: Remove arm*-*-symbianelf*.
6195 * doc/gdb.texinfo: Remove mention of SymbianOS.
6196 * osabi.c (gdb_osabi_names): Remove "Symbian".
6197 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
6198 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
6199 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
6201 * testsuite/gdb.base/dup-sect.exp: Likewise.
6202 * testsuite/gdb.base/long_long.exp: Likewise.
6203 * testsuite/gdb.base/solib-weak.exp: Likewise.
6204 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
6205 * testsuite/gdb.python/py-section-script.exp: Likewise.
6206 * testsuite/lib/dwarf.exp: Likewise.
6207 * testsuite/lib/gdb.exp: Likewise.
6209 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6211 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
6212 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
6213 (one_or_two_args): New pattern.
6214 (f77_keywords): Add lbound and ubound.
6215 * f-lang.c (fortran_bounds_all_dims): New function.
6216 (fortran_bounds_for_dimension): New function.
6217 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
6218 (operator_length_f): Likewise.
6219 (print_subexp_f): Likewise.
6220 (dump_subexp_body_f): Likewise.
6221 (operator_check_f): Likewise.
6222 * std-operator.def (FORTRAN_LBOUND): Define.
6223 (FORTRAN_UBOUND): Define.
6225 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6227 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
6228 and set_section_index member functions where appropriate.
6229 * coffread.c (coff_symtab_read): Likewise.
6230 (process_coff_symbol): Likewise.
6231 * ctfread.c (set_symbol_address): Likewise.
6232 * dwarf2/read.c (add_partial_symbol): Likewise.
6233 (var_decode_location): Likewise.
6234 * language.c: Likewise.
6235 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
6236 (compact_minimal_symbols): Likewise.
6237 (minimal_symbol_upper_bound): Likewise.
6238 * objfiles.c (relocate_one_symbol): Likewise.
6239 * psympriv.h (partial_symbol::obj_section): Likewise.
6240 (partial_symbol::address): Likewise.
6241 * psymtab.c (partial_symtab::add_psymbol): Likewise.
6242 * stabsread.c (scan_file_globals): Likewise.
6243 * symmisc.c (dump_msymbols): Likewise.
6244 * symtab.c (general_symbol_info::obj_section): Likewise.
6245 (fixup_section): Likewise.
6246 (get_msymbol_address): Likewise.
6247 * symtab.h (general_symbol_info::section): Rename to...
6248 (general_symbol_info::m_section): ...this.
6249 (general_symbol_info::set_section_index): New member function.
6250 (general_symbol_info::section_index): Likewise.
6251 (SYMBOL_SECTION): Delete.
6252 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
6253 set_section_index member functions where appropriate.
6254 (MSYMBOL_SECTION): Delete.
6255 (symbol::symbol): Update to initialize 'm_section'.
6256 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
6257 (process_xcoff_symbol): Likewise.
6259 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
6261 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
6262 MSYMBOL_OBJ_SECTION.
6263 * findvar.c (language_defn::read_var_value): Likewise.
6264 * infcmd.c (jump_command): Likewise.
6265 * linespec.c (minsym_found): Likewise.
6266 * maint.c (maintenance_translate_address): Likewise.
6267 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
6268 (minimal_symbol_upper_bound): Likewise.
6269 * parse.c (find_minsym_type_and_address): Likewise.
6270 (operator_check_standard): Likewise.
6271 * printcmd.c (info_address_command): Likewise.
6272 * symmisc.c (dump_msymbols): Likewise.
6273 (print_symbol): Likewise.
6274 * symtab.c (general_symbol_info::obj_section): Define new
6276 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
6277 (find_pc_sect_compunit_symtab): Likewise.
6278 (find_function_start_sal): Likewise.
6279 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
6280 MSYMBOL_OBJ_SECTION.
6281 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
6283 (SYMBOL_OBJ_SECTION): Delete.
6284 (MSYMBOL_OBJ_SECTION): Delete.
6286 2021-02-09 Tom Tromey <tom@tromey.com>
6288 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
6290 2021-02-09 Tom de Vries <tdevries@suse.de>
6293 * dwarf2/read.c (read_array_type): Return NULL when not being able to
6294 construct an array type. Add assert to ensure that element_type is
6297 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
6299 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
6300 (gcore_collect_regset_section_cb): Delete.
6301 (gcore_collect_thread_registers): Delete.
6302 (gcore_build_thread_register_notes): Delete.
6303 (gcore_find_signalled_thread): Delete.
6304 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
6305 'gdbarch' and 'thread_info' declarations.
6306 (gcore_build_thread_register_notes): Delete declaration.
6307 (gcore_find_signalled_thread): Likewise.
6308 * fbsd-tdep.c: Remove 'gcore.h' include.
6309 (struct fbsd_collect_regset_section_cb_data): New struct.
6310 (fbsd_collect_regset_section_cb): New function.
6311 (fbsd_collect_thread_registers): New function.
6312 (struct fbsd_corefile_thread_data): New struct.
6313 (fbsd_corefile_thread): New function.
6314 (fbsd_make_corefile_notes): Call FreeBSD specific code.
6315 * linux-tdep.c: Remove 'gcore.h' include.
6316 (struct linux_collect_regset_section_cb_data): New struct.
6317 (linux_collect_regset_section_cb): New function.
6318 (linux_collect_thread_registers): New function.
6319 (linux_corefile_thread): Call Linux specific code.
6320 (find_signalled_thread): New function.
6321 (linux_make_corefile_notes): Call find_signalled_thread.
6323 2021-02-09 Tom Tromey <tromey@adacore.com>
6325 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
6327 * value.c (value_contents_copy_raw): Now static.
6328 * value.h (value_contents_copy_raw): Don't declare.
6330 2021-02-09 Tom Tromey <tromey@adacore.com>
6332 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
6335 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
6338 * arc-linux-tdep.c (handle_atomic_sequence): New.
6339 (arc_linux_software_single_step): Call handle_atomic_sequence().
6341 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6343 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
6345 (REQUIRE_WINDOW): Call is_valid member function.
6346 (REQUIRE_WINDOW_FOR_SETTER): New define.
6347 (gdbpy_tui_is_valid): Call is_valid member function.
6348 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
6349 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
6351 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
6352 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
6355 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6357 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
6358 for the title is not nullptr.
6360 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6362 * tui-layout.c (saved_tui_windows): Delete.
6363 (tui_apply_current_layout): Don't make use of saved_tui_windows,
6364 call new get_windows member function instead.
6365 (tui_get_window_by_name): Check in tui_windows.
6366 (tui_layout_window::apply): Don't add to tui_windows.
6367 * tui-layout.h (tui_layout_base::get_windows): New member function.
6368 (tui_layout_window::get_windows): Likewise.
6369 (tui_layout_split::get_windows): Likewise.
6371 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6373 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
6374 of the window objects.
6376 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6378 * python/python.c (gdbpy_print_stack): Reformat an error message.
6380 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
6382 * tui/tui-interp.c (tui_command_line_handler): New function.
6383 (tui_interp::resume): Register tui_command_line_handler as the
6385 * tui/tui-io.c (tui_inject_newline_into_command_window): New
6387 (tui_getc_1): Delete handling of '\n' and '\r'.
6388 * tui-io.h (tui_inject_newline_into_command_window): Declare.
6390 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6392 * tui/tui-regs.c (tui_data_window::display_registers_from):
6393 Mark invisible register sub windows.
6394 (tui_data_window::check_register_values): Ignore invisible
6395 register sub windows.
6397 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6399 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
6400 n_spaces with a negative value.
6402 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6404 * tui/tui-regs.c (tui_data_window::display_registers_from):
6405 Add refresh_window call.
6407 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
6409 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
6411 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
6413 * symmisc.c (std_in, std_out, std_err): Remove.
6414 (_initialize_symmisc): Don't set std_in, std_out and std_err.
6416 2021-02-05 Tom de Vries <tdevries@suse.de>
6418 PR breakpoints/27330
6419 * breakpoint.c (create_exception_master_breakpoint): Handle case that
6420 glibc object file has debug info.
6422 2021-02-05 Tom de Vries <tdevries@suse.de>
6425 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
6427 2021-02-05 Tom de Vries <tdevries@suse.de>
6429 PR breakpoints/27313
6430 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
6433 2021-02-05 Tom Tromey <tom@tromey.com>
6435 * compile/compile-c-support.c (get_compile_context)
6436 (c_get_compile_context, cplus_get_compile_context): Change return
6438 * language.c (language_defn::get_compile_instance): New method.
6439 * language.h (language_defn::get_compile_instance): Change return
6440 type. No longer inline.
6441 * c-lang.c (c_language::get_compile_instance): Change return type.
6442 (cplus_language::get_compile_instance): Change return type.
6443 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
6445 * compile/compile.c (compile_to_object): Update.
6447 2021-02-05 Tom Tromey <tom@tromey.com>
6449 * parser-defs.h (write_exp_symbol_reference): Declare.
6450 * parse.c (write_exp_symbol_reference): New function.
6451 * p-exp.y (variable): Use write_exp_symbol_reference.
6452 * m2-exp.y (variable): Use write_exp_symbol_reference.
6453 * f-exp.y (variable): Use write_exp_symbol_reference.
6454 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
6455 * c-exp.y (variable): Use write_exp_symbol_reference.
6457 2021-02-05 Tom de Vries <tdevries@suse.de>
6460 * valarith.c (complex_binop): Throw an error if complex type can't
6463 2021-02-05 Tom de Vries <tdevries@suse.de>
6466 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
6469 2021-02-05 Tom de Vries <tdevries@suse.de>
6471 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
6473 2021-02-04 Mike Frysinger <vapier@gentoo.org>
6475 * configure.tgt (riscv*-*-*): Set gdb_sim.
6477 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
6479 * target.c (target_is_non_stop_p): Return bool.
6480 * target.h (target_is_non_stop_p): Return bool.
6482 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6484 * record-full.c (record_full_async_inferior_event_handler):
6485 Don't clear async event handler.
6486 (record_full_base_target::wait): Clear async event handler at
6489 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6491 * record-btrace.c (record_btrace_handle_async_inferior_event):
6492 Don't clear async event handler.
6493 (record_btrace_target::wait): Clear async event handler at
6496 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6498 * remote.c (remote_target::wait): Clear async event handler at
6499 beginning, mark if needed at the end.
6500 (remote_async_inferior_event_handler): Don't set or clear async
6503 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
6505 * async-event.h (async_event_handler_func): Add documentation.
6506 * async-event.c (check_async_event_handlers): Don't clear
6507 async_event_handler ready flag.
6508 * infrun.c (infrun_async_inferior_event_handler): Clear ready
6510 * record-btrace.c (record_btrace_handle_async_inferior_event):
6512 * record-full.c (record_full_async_inferior_event_handler):
6514 * remote-notif.c (remote_async_get_pending_events_handler):
6516 * remote.c (remote_async_inferior_event_handler): Likewise.
6518 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
6520 * infrun.c (handle_inferior_event): Move stop_soon variable to
6523 2021-02-03 Pedro Alves <pedro@palves.net>
6525 * infcmd.c (detach_command): Hold strong reference to target, and
6526 if all-stop on entry, restart threads on exit.
6527 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
6528 (restart_stepped_thread): ... this new function. Also handle
6530 (restart_after_all_stop_detach): New function.
6531 * infrun.h (restart_after_all_stop_detach): Declare.
6533 2021-02-03 Pedro Alves <pedro@palves.net>
6535 * infrun.c (struct step_over_info): Initialize fields.
6536 (prepare_for_detach): Handle ongoing in-line step over.
6538 2021-02-03 Pedro Alves <pedro@palves.net>
6540 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
6542 * remote.c (remote_target::remote_detach_1): ... and here ...
6543 * target.c (target_detach): ... instead of here.
6544 * target.h (target_ops::detach): Add comment.
6546 2021-02-03 Pedro Alves <pedro@palves.net>
6548 * infrun.c (struct wait_one_event): Move higher up.
6549 (prepare_for_detach): Abort in-progress displaced steps instead of
6550 letting them complete.
6551 (handle_one): If the inferior is detaching, don't add the thread
6552 back to the global step-over chain.
6553 (restart_threads): Don't restart threads if detaching.
6554 (handle_signal_stop): Remove inferior::detaching reference.
6556 2021-02-03 Pedro Alves <pedro@palves.net>
6558 * infrun.c (prepare_for_detach): Don't release scoped_restore
6561 2021-02-03 Pedro Alves <pedro@palves.net>
6563 * infrun.c (handle_one): New function, factored out from ...
6564 (stop_all_threads): ... here.
6566 2021-02-03 Pedro Alves <pedro@palves.net>
6568 * remote.c (remote_notif_stop_ack): Don't error out on
6569 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
6570 (remote_target::discard_pending_stop_replies): Don't delete
6571 in-flight notification; instead, clear its contents.
6573 2021-02-03 Pedro Alves <pedro@palves.net>
6575 * remote.c (extended_remote_target::attach): Set target async in
6576 the target-non-stop path too.
6578 2021-02-03 Pedro Alves <pedro@palves.net>
6581 * infrun.c (handle_signal_stop): Move main context_switch call
6582 earlier, before STOP_QUIETLY_NO_SIGSTOP.
6584 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
6586 * NEWS (Changed commands): Add entry for the behavior change of
6587 the inferior command.
6588 * inferior.c (inferior_command): When no argument is given to the
6589 inferior command, display info about the currently selected
6592 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6594 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
6596 (read_attribute_reprocess): Adjust.
6598 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6600 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
6601 <gnu_ranges_base>: ... this...
6602 <rnglists_base>: ... and this.
6603 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
6604 <gnu_ranges_base>: ... this...
6605 <rnglists_base>: ... and this.
6606 (read_cutu_die_from_dwo): Adjust
6607 (dwarf2_get_pc_bounds): Adjust
6608 (dwarf2_record_block_ranges): Adjust.
6609 (read_full_die_1): Adjust
6610 (partial_die_info::read): Adjust.
6611 (read_rnglist_index): Adjust.
6613 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6616 * dwarf2/read.c (read_loclists_rnglists_header): Add
6617 header_offset parameter and use it.
6618 (read_loclist_index): Read header of the current contribution,
6619 not the one at the beginning of the section.
6620 (read_rnglist_index): Likewise.
6622 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6625 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
6626 requires_reprocessing flag.
6627 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
6629 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
6630 and DW_FORM_loclistx.
6631 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
6632 instead of set_address for DW_FORM_loclistx and
6635 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6637 * dwarf2/read.c (read_loclist_index): Remove bound check for
6639 (read_rnglist_index): Likewise.
6641 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6643 * dwarf2/read.c (read_loclist_index): Add bound check for the end
6646 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6648 * dwarf2/read.c (read_rnglist_index): Fix bound check.
6650 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
6652 * dwarf2/read.c (read_loclist_index): Change complaints into
6655 2021-02-02 Tom de Vries <tdevries@suse.de>
6658 * dwarf2/index-write.c (write_one_signatured_type): Skip if
6661 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
6663 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
6664 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
6665 here from linux-tdep.c and given a new name. Minor cleanups.
6666 (gcore_collect_regset_section_cb): Likewise.
6667 (gcore_collect_thread_registers): Likewise.
6668 (gcore_build_thread_register_notes): Likewise.
6669 (gcore_find_signalled_thread): Likewise.
6670 * gcore.h (gcore_build_thread_register_notes): Declare.
6671 (gcore_find_signalled_thread): Declare.
6672 * fbsd-tdep.c: Add 'gcore.h' include.
6673 (struct fbsd_collect_regset_section_cb_data): Delete.
6674 (fbsd_collect_regset_section_cb): Delete.
6675 (fbsd_collect_thread_registers): Delete.
6676 (struct fbsd_corefile_thread_data): Delete.
6677 (fbsd_corefile_thread): Delete.
6678 (fbsd_make_corefile_notes): Call
6679 gcore_build_thread_register_notes instead of the now deleted
6681 * linux-tdep.c: Add 'gcore.h' include.
6682 (struct linux_collect_regset_section_cb_data): Delete.
6683 (linux_collect_regset_section_cb): Delete.
6684 (linux_collect_thread_registers): Delete.
6685 (linux_corefile_thread): Call
6686 gcore_build_thread_register_notes.
6687 (find_signalled_thread): Delete.
6688 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6690 2021-01-29 Tom de Vries <tdevries@suse.de>
6692 PR breakpoints/26063
6693 * infrun.c (process_event_stop_test): Reset
6694 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6697 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6699 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6700 assert. Extend the header comment.
6702 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6704 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6705 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6706 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6707 (tui_locator_win_info_ptr): Delete declaration.
6708 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6709 (tui_disasm_window::set_contents): Fetch state from tui_location
6711 (tui_get_begin_asm_address): Likewise.
6712 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6714 (get_locator_window): Delete.
6715 (initialize_known_windows): Treat locator window just like all the
6717 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6718 (tui_source_window::set_contents): Fetch state from tui_location
6720 (tui_source_window::showing_source_p): Likewise.
6721 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6723 (tui_locator_win_info_ptr): Delete.
6724 (tui_locator_window::make_status_line): Fetch state from
6725 tui_location global.
6726 (tui_locator_window::rerender): Remove check of 'handle',
6727 reindent function body.
6728 (tui_locator_window::set_locator_fullname): Delete.
6729 (tui_locator_window::set_locator_info): Delete.
6730 (tui_update_locator_fullname): Delete.
6731 (tui_show_frame_info): Likewise.
6732 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6733 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6734 tui/tui-location.h and renamed to
6735 tui_location_tracker::set_location.
6736 (tui_locator_window::set_locator_fullname): Moved to
6737 tui/tui-location.h and renamed to
6738 tui_location_tracker::set_fullname.
6739 (tui_locator_window::full_name): Delete.
6740 (tui_locator_window::proc_name): Delete.
6741 (tui_locator_window::line_no): Delete.
6742 (tui_locator_window::addr): Delete.
6743 (tui_locator_window::gdbarch): Delete.
6744 (tui_update_locator_fullname): Delete declaration.
6745 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6747 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6748 (tui_display_main): Call function on tui_location directly.
6749 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6750 * tui/tui-location.c: New file.
6751 * tui/tui-location.h: New file.
6753 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6755 * gdbtypes.h (get_type_arch): Rename to...
6756 (struct type) <arch>: ... this, update all users.
6758 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6760 * gdbtypes.h (struct type) <arch>: Rename to...
6761 <arch_owner>: ... this, update all users.
6762 <objfile>: Rename to...
6763 <objfile_owner>: ... this, update all users.
6765 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6767 * gdbcmd.h (execute_command_to_string): Update comment.
6768 * top.c (execute_command_to_string): Update header comment.
6770 2021-01-28 Tom de Vries <tdevries@suse.de>
6772 PR breakpoints/27205
6773 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6774 (create_longjmp_master_breakpoint_names): New function, factored out
6776 (create_longjmp_master_breakpoint): ... here. Only try to install
6777 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6778 breakpoint in libc.so failed.
6780 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6783 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6784 unique_ptr is released when the wrapped pointer is kept for later
6787 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6789 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6790 BLR and BR instructions.
6791 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6792 (enum aarch64_masks): New.
6794 2021-01-26 Tom Tromey <tromey@adacore.com>
6796 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6797 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6798 (windows_init_thread_list, windows_nat::handle_load_dll)
6799 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6800 (windows_nat_target::resume)
6801 (windows_nat_target::get_windows_debug_event)
6802 (windows_nat_target::interrupt, windows_xfer_memory)
6803 (windows_nat_target::close): Update.
6804 * nat/windows-nat.c (DEBUG_EVENTS): Use
6805 debug_prefixed_printf_cond.
6806 (matching_pending_stop, fetch_pending_stop)
6807 (continue_last_debug_event): Update.
6809 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6811 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6812 elfcore_write_file_note.
6814 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6816 * arc-tdep.c (arc_add_reggroups): New function.
6817 (arc_gdbarch_init): Call arc_add_reggroups.
6819 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6821 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6823 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6824 Simon Marchi <simon.marchi@polymtl.ca>
6825 Tom de Vries <tdevries@suse.de>
6827 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6830 2021-01-25 Tom Tromey <tromey@adacore.com>
6832 * dwarf2/read.c (get_mpz): New function.
6833 (get_dwarf2_rational_constant): Use it.
6835 2021-01-25 Tom Tromey <tromey@adacore.com>
6837 * ada-lang.c (resolve_subexp): Handle array context.
6839 2021-01-23 Tom Tromey <tom@tromey.com>
6842 * compile/compile-loc2c.c (note_register): New function.
6843 (pushf_register_address, pushf_register): Use it.
6845 2021-01-23 Tom Tromey <tom@tromey.com>
6847 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6848 Change type of "registers_used".
6849 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6850 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6851 (locexpr_generate_c_location, loclist_generate_c_location): Change
6852 type of "registers_used".
6853 * compile/compile.h (compile_dwarf_expr_to_c)
6854 (compile_dwarf_bounds_to_c): Update.
6855 * compile/compile-loc2c.c (pushf_register_address)
6856 (pushf_register, do_compile_dwarf_expr_to_c)
6857 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6858 of "registers_used".
6859 * compile/compile-c.h (generate_c_for_variable_locations):
6861 * compile/compile-c-symbols.c (generate_vla_size)
6862 (generate_c_for_for_one_variable): Change type of
6864 (generate_c_for_variable_locations): Return std::vector.
6865 * compile/compile-c-support.c (generate_register_struct): Change
6866 type of "registers_used".
6869 2021-01-23 Tom Tromey <tom@tromey.com>
6871 * compile/compile-internal.h (class compile_instance)
6872 <set_arguments>: Change return type.
6873 * compile/compile.c (compile_to_object): Remove call to reset.
6874 (compile_instance::set_arguments): Change return type.
6876 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6878 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6879 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6881 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6883 * Makefile.in (SELFTESTS_SRCS): Add
6884 unittests/gdb_tilde_expand-selftests.c.
6885 * unittests/gdb_tilde_expand-selftests.c: New file.
6887 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6890 * NEWS: Mention new command.
6891 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6892 (version_style): Define.
6893 (cli_style_option::cli_style_option): Add intensity parameter, and
6895 (_initialize_cli_style): Register version style set/show commands.
6896 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6897 (version_style): Declare.
6898 * top.c (print_gdb_version): Use version_stype, and styled_string
6899 to print the GDB version string.
6901 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6903 * utils.c (emit_style_escape): Only emit an escape sequence if the
6904 requested style is different than the current applied style.
6905 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6906 current applied_style.
6907 (fputs_styled): Remove is_default check.
6908 (fputs_styled_unfiltered): Likewise.
6909 (vfprintf_styled_no_gdbfmt): Likewise.
6911 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6913 * remote.h (remote_debug_printf): New.
6914 (remote_debug_printf_nofunc): New.
6915 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6916 * remote.c: Use above macros throughout file.
6918 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6920 * remote.h (remote_debug): Change to bool.
6921 * remote.c (remote_debug): Change to bool.
6922 (_initialize_remote): Adjust.
6924 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6926 * target.h (remote_debug): Move to...
6927 * remote.h (remote_debug): ... here.
6928 * top.c (remote_debug): Move to...
6929 * remote.c (remote_debug): ... here.
6930 * remote-sim.c: Include remote.h.
6932 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6934 * cli/cli-cmds.c (show_remote_debug): Remove.
6935 (show_remote_timeout): Remove.
6936 (_initialize_cli_cmds): Don't register commands.
6937 * remote.c (show_remote_debug): Move here.
6938 (show_remote_timeout): Move here.
6939 (_initialize_remote): Register commands.
6941 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6943 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6944 type::objfile method instead.
6946 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6948 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6949 use the type::is_objfile_owned method.
6951 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6953 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6954 (TYPE_OWNER): Remove.
6955 (TYPE_OBJFILE): Adjust.
6956 (struct main_type) <flag_objfile_owned>: Rename to...
6957 <m_flag_objfile_owned>: ... this.
6958 <owner>: Rename to...
6959 <m_owner>: ... this.
6960 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6962 (TYPE_ALLOC): Adjust.
6963 * gdbtypes.c (alloc_type): Adjust.
6964 (alloc_type_arch): Adjust.
6965 (alloc_type_copy): Adjust.
6966 (get_type_arch): Adjust.
6967 (smash_type): Adjust.
6968 (lookup_array_range_type): Adjust.
6969 (recursive_dump_type): Adjust.
6970 (copy_type_recursive): Adjust.
6971 * compile/compile-c-types.c (convert_func): Adjust.
6972 (convert_type_basic): Adjust.
6973 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6976 (language_arch_info::type_and_symbol::alloc_type_symbol):
6979 2021-01-21 Luis Machado <luis.machado@linaro.org>
6981 * coffread.c (enter_linenos): Passing string to complaint.
6982 * valops.c (value_assign): Make array view.
6984 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6986 * auto-load.h (debug_auto_load): Move here.
6987 (auto_load_debug_printf): New.
6988 * auto-load.c: Use auto_load_debug_printf.
6989 (debug_auto_load): Move to header.
6990 * linux-thread-db.c (try_thread_db_load): Use
6991 auto_load_debug_printf.
6992 * main.c (captured_main_1): Likewise.
6994 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6996 * f-valprint.c (f77_array_offset_tbl): Remove.
6998 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7000 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
7002 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7004 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
7007 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
7010 * python/py-breakpoint.c (bppy_get_location): Handle
7011 bp_hardware_breakpoint.
7012 (bppy_init): Likewise.
7013 (gdbpy_breakpoint_created): Likewise.
7015 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
7017 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
7019 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7021 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
7022 (_initialize_gdb_bfd): Adjust.
7024 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7027 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
7029 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7031 * dwarf2/read.c (follow_die_offset): Add logging.
7032 (dwarf2_per_objfile::age_comp_units): Add logging.
7034 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
7036 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
7037 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
7038 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
7039 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
7040 * arm-tdep.c (struct frame_unwind): Make static.
7041 * auto-load.c (auto_load_safe_path_vec): Make static.
7042 * csky-tdep.c (csky_stub_unwind): Make static.
7043 * gdbarch.c (gdbarch_data_registry): Make static.
7044 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
7045 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
7046 * i386-tdep.c (i386_frame_setup_skip_insns,
7047 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
7049 * infrun.c (observer_mode): Make static.
7050 * linux-nat.c (sigchld_action): Make static.
7051 * linux-thread-db.c (thread_db_list): Make static.
7052 * maint-test-options.c (maintenance_test_options_list):
7053 * mep-tdep.c (mep_csr_registers): Make static.
7054 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
7055 (stats): Make static.
7056 * nat/linux-osdata.c (struct osdata_type): Make static.
7057 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
7058 * progspace.c (last_program_space_num): Make static.
7059 * python/py-param.c (struct parm_constant): Remove struct type
7061 (parm_constants): Make static.
7062 * python/py-record-btrace.c (btpy_list_methods): Make static.
7063 * python/py-record.c (recpy_gap_type): Make static.
7064 * record.c (record_goto_cmdlist): Make static.
7065 * regcache.c (regcache_descr_handle): Make static.
7066 * registry.h (DEFINE_REGISTRY): Make definition static.
7067 * symmisc.c (std_in, std_out, std_err): Make static.
7068 * top.c (previous_saved_command_line): Make static.
7069 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
7071 * unittests/command-def-selftests.c (nr_duplicates,
7072 nr_invalid_prefixcmd, lists): Make static.
7073 * unittests/observable-selftests.c (test_notification): Make
7075 * unittests/optional/assignment/1.cc (counter): Make static.
7076 * unittests/optional/assignment/2.cc (counter): Make static.
7077 * unittests/optional/assignment/3.cc (counter): Make static.
7078 * unittests/optional/assignment/4.cc (counter): Make static.
7079 * unittests/optional/assignment/5.cc (counter): Make static.
7080 * unittests/optional/assignment/6.cc (counter): Make static.
7082 2021-01-20 Joel Sherrill <joel@rtems.org>
7085 * remote.c (struct remote_thread_info) <resume_state>: Rename
7087 <get_resume_state>: ... this.
7088 (remote_target::resume): Adjust.
7089 (remote_target::commit_resume): Adjust.
7090 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
7092 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
7093 Tom Tromey <tom@tromey.com>
7095 * stap-probe.c (stap_parse_single_operand): Handle '!'
7097 (stap_parse_argument_conditionally): Likewise.
7098 Skip spaces after processing open-parenthesis sub-expression.
7099 (stap_parse_argument_1): Skip spaces after call to
7100 stap_parse_argument_conditionally.
7101 Handle case when right-side expression is a parenthesized
7103 Skip spaces after call to stap_parse_argument_1.
7105 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
7107 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
7109 2021-01-19 Luis Machado <luis.machado@linaro.org>
7111 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
7112 memory and save data.
7113 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
7114 (trad_frame_set_unknown, trad_frame_set_value_bytes)
7115 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7116 (trad_frame_value_bytes_p): Remove.
7117 (trad_frame_reset_saved_regs): Adjust documentation.
7118 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
7119 constructor and reset the state of the registers.
7120 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
7121 (trad_frame_value_bytes_p, trad_frame_set_value)
7122 (trad_frame_set_realreg, trad_frame_set_addr)
7123 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
7124 (trad_frame_set_reg_realreg): Update to call member function.
7125 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
7126 (trad_frame_get_prev_register): Likewise.
7128 * aarch64-tdep.c (aarch64_analyze_prologue)
7129 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
7130 (aarch64_prologue_prev_register): Update to use member functions.
7131 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
7132 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
7133 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
7134 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
7135 (arm_make_epilogue_frame_cache): Likewise.
7136 * avr-tdep.c (avr_frame_unwind_cache)
7137 (avr_frame_prev_register): Likewise.
7138 * cris-tdep.c (cris_scan_prologue): Likewise.
7139 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
7140 * frv-tdep.c (frv_analyze_prologue): Likewise.
7141 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
7142 * lm32-tdep.c (lm32_frame_cache): Likewise.
7143 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
7144 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
7145 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
7146 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
7147 (reset_saved_regs): Adjust to set realreg.
7148 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
7149 call member functions.
7150 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
7151 * s390-tdep.c (s390_prologue_frame_unwind_cache)
7152 (s390_backchain_frame_unwind_cache): Likewise.
7153 * score-tdep.c (score7_analyze_prologue)
7154 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
7155 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
7156 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
7157 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
7158 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
7159 * tilegx-tdep.c (tilegx_analyze_prologue)
7160 (tilegx_frame_cache): Likewise.
7161 * v850-tdep.c (v850_frame_cache): Likewise.
7162 * vax-tdep.c (vax_frame_cache): Likewise.
7164 2021-01-19 Luis Machado <luis.machado@linaro.org>
7166 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
7168 (put_frame_register_bytes): Likewise.
7169 Adjust documentation.
7170 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
7171 (safe_frame_unwind_memory): Likewise.
7172 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
7173 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
7175 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
7176 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
7177 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
7178 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
7179 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
7180 * dwarf2/loc.c (rw_pieced_value): Likewise.
7181 * hppa-tdep.c (hppa_frame_cache): Likewise.
7182 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
7183 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
7184 * i386-linux-tdep.c (i386_linux_sigtramp_start)
7185 (i386_linux_rt_sigtramp_start): Likewise.
7186 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
7187 * i386-tdep.c (i386_register_to_value): Likewise.
7188 * i387-tdep.c (i387_register_to_value): Likewise.
7189 * ia64-tdep.c (ia64_register_to_value): Likewise.
7190 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
7191 (m32r_linux_rt_sigtramp_start): Likewise.
7192 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
7193 * m68k-tdep.c (m68k_register_to_value): Likewise.
7194 * mips-tdep.c (mips_register_to_value)
7195 (mips_value_to_register): Likewise.
7196 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
7197 (ppcfbsd_sigtramp_frame_cache): Likewise.
7198 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
7199 (ppcobsd_sigtramp_frame_cache): Likewise.
7200 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
7201 (rs6000_register_to_value): Likewise.
7202 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
7203 * tramp-frame.c (tramp_frame_start): Likewise.
7204 * valops.c (value_assign): Likewise.
7206 2021-01-19 Luis Machado <luis.machado@linaro.org>
7208 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
7210 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
7211 instead of buffer and size.
7212 (trad_frame_set_reg_value_bytes): Likewise.
7213 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
7214 (trad_frame_set_value_bytes): Likewise.
7216 2021-01-18 Mike Frysinger <vapier@gentoo.org>
7218 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
7220 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
7222 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
7223 (riscv_fbsd_gregset): Use riscv_supply_regset.
7224 (riscv_fbsd_fpregset): Likewise.
7225 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
7226 (riscv_linux_fregset): Likewise.
7227 * riscv-tdep.c (riscv_supply_regset): Define new function.
7228 * riscv-tdep.h (riscv_supply_regset): Declare new function.
7230 2021-01-18 Tom de Vries <tdevries@suse.de>
7233 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
7235 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
7238 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7240 * remote.c (class remote_target) <remote_hostio_send_command,
7241 remote_hostio_parse_result>: Constify parameter.
7242 (remote_hostio_parse_result): Likewise.
7243 (remote_target::remote_hostio_send_command): Adjust.
7244 (remote_target::remote_hostio_pread_vFile): Adjust.
7245 (remote_target::fileio_readlink): Adjust.
7246 (remote_target::fileio_fstat): Adjust.
7248 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7250 * remote.c (remote_target::start_remote): Move wait_status to
7253 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7255 * remote.c (class remote_target):
7256 <add_current_inferior_and_thread>: Constify parameter.
7257 (stop_reply_extract_thread): Likewise.
7258 (remote_target::get_current_thread): Likewise.
7259 (remote_target::add_current_inferior_and_thread): Likewise.
7261 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
7263 * remote.c (class remote_target)
7264 <remote_unpack_thread_info_response,
7265 parse_threadlist_response>: Constify parameter and/or return
7266 value and or local variable.
7267 (stub_unpack_int): Likewise.
7268 (unpack_nibble): Likewise.
7269 (unpack_byte): Likewise.
7270 (unpack_int): Likewise.
7271 (unpack_string): Likewise.
7272 (unpack_threadid): Likewise.
7273 (remote_target::remote_unpack_thread_info_response): Likewise.
7274 (remote_target::parse_threadlist_response): Likewise.
7276 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
7278 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
7280 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
7282 * MAINTAINERS (Write After Approval): Add myself.
7284 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
7286 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
7287 because is_trivially_default_constructible was first implemented with
7290 2021-01-14 Tom de Vries <tdevries@suse.de>
7292 PR breakpoints/27151
7293 * objfiles.h (in_plt_section): Handle .plt.sec.
7295 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
7299 (remote_target::select_thread_for_ambiguous_stop_reply): New
7301 (remote_target::process_stop_reply): Call
7302 select_thread_for_ambiguous_stop_reply.
7304 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7306 * record-btrace.c (class record_btrace_target): Remove.
7307 (record_btrace_target::commit_resume): Remove.
7308 * record-full.c (class record_full_target): Remove.
7309 (record_full_target::commit_resume): Remove.
7311 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
7313 * remote.c (enum class resume_state): New.
7314 (struct resumed_pending_vcont_info): New.
7315 (struct remote_thread_info) <resume_state, set_not_resumed,
7316 set_resumed_pending_vcont, resumed_pending_vcont_info,
7317 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
7319 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
7320 (remote_target::remote_add_thread): Adjust.
7321 (remote_target::process_initial_stop_replies): Adjust.
7322 (remote_target::resume): Adjust.
7323 (remote_target::commit_resume): Rely on state in
7324 remote_thread_info and not on tp->executing.
7325 (remote_target::process_stop_reply): Adjust.
7327 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7329 * arc-tdep.h (arc_debug_printf): New.
7330 * arc-tdep.c: Use arc_debug_printf.
7331 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
7332 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
7333 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
7335 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7337 * arc-tdep.h (arc_debug): Change type to bool.
7338 * arc-tdep.c (arc_debug): Change type to bool.
7339 (arc_analyze_prologue): Adjust.
7340 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
7341 * arc-linux-nat.c (ps_get_thread_area): Adjust.
7343 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7345 * auto-load.c (auto_load_objfile_script_1): Use bool.
7346 (execute_script_contents): Use bool.
7348 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7350 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
7352 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
7354 * extension-priv.h (struct extension_language_script_ops)
7355 <auto_load_enabled>: Return bool.
7356 * extension.h (ext_lang_auto_load_enabled): Return bool, move
7358 * extension.c (ext_lang_auto_load_enabled): Return bool, move
7360 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
7362 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
7363 move comment to header.
7364 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
7366 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
7367 move comment to header.
7369 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7371 * auto-load.h (file_is_auto_load_safe): Change return type to
7372 bool, move comment here.
7373 * auto-load.c (file_is_auto_load_safe): Change return type and
7374 advice_printed to bool. Move comment to header.
7376 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
7378 * jit.c (jit_debug_printf): New, use throughout file.
7380 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7382 * infrun.c (normal_stop): Fix indentation.
7384 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7386 * top.h (readnow_symbol_files, readnever_symbol_files): Move
7388 * symfile.h: ... here.
7389 * symfile.c: Update doc.
7391 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7393 * target.h (baud_rate, serial_parity): Move declarations...
7394 * serial.h: ... here.
7395 * main.c: Include serial.h.
7396 * serial.c (baud_rate, serial_parity): Update doc.
7398 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
7400 * top.c (pre_init_ui_hook): Remove.
7402 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
7404 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
7405 (aarch64_vnv_type): Add "bf" type in h field of v registers.
7406 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
7407 * features/aarch64-fpu.xml: Add bfloat16 type.
7409 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7411 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
7413 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
7415 * f-exp.y (dot_ops): Rename to...
7416 (fortran_operators): ...this. Add a header comment. Add symbol
7418 (yylex): Update to use fortran_operators not dot_ops. Remove
7419 special handling for '**', this is now included in
7422 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7424 * arch/aarch64-insn.h (aarch64_debug_printf): New.
7425 * arch/aarch64-insn.c: Use aarch64_debug_printf.
7426 * aarch64-tdep.c: Use aarch64_debug_printf.
7428 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7430 * solib-aix.c (solib_aix_debug_printf): New, use throughout
7433 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
7435 * jit.c (jit_debug): Change type to bool.
7436 (_initialize_jit): Adjust.
7438 2021-01-09 Tom Tromey <tom@tromey.com>
7441 * compile/compile.c (compile_to_object): Avoid crash when
7442 osabi_triplet_regexp returns NULL.
7444 2021-01-09 Tom Tromey <tom@tromey.com>
7446 * tracepoint.h (class collection_list) <append_exp>: Take a
7448 * tracepoint.c (collection_list::append_exp): Take a std::string.
7449 (encode_actions_1): Update.
7451 2021-01-08 Tom Tromey <tromey@adacore.com>
7453 * parse.c (parse_expression): Add void_context_p parameter. Use
7454 parse_exp_in_context.
7455 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
7457 (print_command, call_command): Update.
7458 * expression.h (parse_expression): Add void_context_p parameter.
7460 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7462 * value.c (set_value_component_location): Adjust the VALUE_LVAL
7463 for internalvar components that have a dynamic location.
7465 2021-01-08 Tom de Vries <tdevries@suse.de>
7468 * breakpoint.c (create_exception_master_breakpoint_probe)
7469 (create_exception_master_breakpoint_hook): Factor out
7471 (create_exception_master_breakpoint): ... here. Only try to install
7472 the master exception breakpoint in objfile.debug using the
7473 _Unwind_DebugHook method, if the install using probes in objfile
7476 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
7478 * f-lang.c (fortran_value_subarray): Call value_from_component.
7480 2021-01-07 Mike Frysinger <vapier@gentoo.org>
7482 * remote-sim.c: Include memory-map.h.
7483 (gdbsim_target): Define memory_map override.
7484 (gdbsim_target::memory_map): Define.
7486 2021-01-07 Tom Tromey <tromey@adacore.com>
7488 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
7490 2021-01-07 Tom Tromey <tromey@adacore.com>
7492 * ada-lang.c (add_component_interval): Start loop using vector's
7495 2021-01-06 Tom Tromey <tromey@adacore.com>
7497 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
7499 * valarith.c (fixed_point_binop): Handle multiplication
7500 and division specially.
7501 * valops.c (value_to_gdb_mpq): New function.
7502 (value_cast_to_fixed_point): Use it.
7504 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7506 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7507 Call wnoutrefresh instead of tui_win_info::refresh_window.
7509 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7511 * tui/tui-source.c (tui_source_window::show_line_number):
7512 Redraw second space after line number.
7514 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
7517 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
7518 Fix source pad size in prefresh.
7519 (tui_source_window_base::show_source_content): Grow source pad
7522 2021-01-04 Mike Frysinger <vapier@gentoo.org>
7524 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
7525 (bfin_frame_align): Use align_down.
7527 2021-01-04 Tom de Vries <tdevries@suse.de>
7529 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
7530 terminators that do not terminate anything.
7532 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7534 * debug.c (debug_print_depth): New.
7535 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
7536 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
7537 * infrun.c (start_step_over): Use
7538 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7539 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
7540 INFRUN_SCOPED_DEBUG_START_END.
7541 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
7543 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7545 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
7547 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
7549 * utils.c (vfprintf_unfiltered): Print timestamp only when
7550 previous debug output ended with a newline.
7552 2021-01-04 Luis Machado <luis.machado@linaro.org>
7554 Update all users of trad_frame_saved_reg to use the new member
7557 Remote all struct keywords from declarations of trad_frame_saved_reg
7558 types, except on forward declarations.
7560 * aarch64-tdep.c: Update.
7561 * alpha-mdebug-tdep.c: Update.
7562 * alpha-tdep.c: Update.
7563 * arc-tdep.c: Update.
7564 * arm-tdep.c: Update.
7565 * avr-tdep.c: Update.
7566 * cris-tdep.c: Update.
7567 * csky-tdep.c: Update.
7568 * frv-tdep.c: Update.
7569 * hppa-linux-tdep.c: Update.
7570 * hppa-tdep.c: Update.
7571 * hppa-tdep.h: Update.
7572 * lm32-tdep.c: Update.
7573 * m32r-linux-tdep.c: Update.
7574 * m32r-tdep.c: Update.
7575 * m68hc11-tdep.c: Update.
7576 * mips-tdep.c: Update.
7577 * moxie-tdep.c: Update.
7578 * riscv-tdep.c: Update.
7579 * rs6000-tdep.c: Update.
7580 * s390-linux-tdep.c: Update.
7581 * s390-tdep.c: Update.
7582 * score-tdep.c: Update.
7583 * sparc-netbsd-tdep.c: Update.
7584 * sparc-sol2-tdep.c: Update.
7585 * sparc64-fbsd-tdep.c: Update.
7586 * sparc64-netbsd-tdep.c: Update.
7587 * sparc64-obsd-tdep.c: Update.
7588 * sparc64-sol2-tdep.c: Update.
7589 * tilegx-tdep.c: Update.
7590 * v850-tdep.c: Update.
7591 * vax-tdep.c: Update.
7593 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
7594 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
7596 * trad-frame.c: Update.
7597 Remove TF_REG_* enum.
7598 (trad_frame_alloc_saved_regs): Add a static assertion to check for
7599 a trivially-constructible struct.
7600 (trad_frame_reset_saved_regs): Adjust to use member function.
7601 (trad_frame_value_p): Likewise.
7602 (trad_frame_addr_p): Likewise.
7603 (trad_frame_realreg_p): Likewise.
7604 (trad_frame_value_bytes_p): Likewise.
7605 (trad_frame_set_value): Likewise.
7606 (trad_frame_set_realreg): Likewise.
7607 (trad_frame_set_addr): Likewise.
7608 (trad_frame_set_unknown): Likewise.
7609 (trad_frame_set_value_bytes): Likewise.
7610 (trad_frame_get_prev_register): Likewise.
7611 * trad-frame.h: Update.
7612 (trad_frame_saved_reg_kind): New enum.
7613 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
7614 <m_kind, m_reg>: New member fields.
7615 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
7616 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
7617 <is_addr, is_unknown, is_value_bytes>: New member functions.
7619 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
7621 * target-float.c: Fix typos.
7623 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
7625 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
7627 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7629 * gdbarch.sh: Update copyright year range.
7631 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7633 Update copyright year range in copyright header of all GDB files.
7635 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7637 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
7638 to the list of directories to update.
7640 2021-01-01 Joel Brobecker <brobecker@adacore.com>
7642 * top.c (print_gdb_version): Update copyright year.
7644 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
7646 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
7648 For older changes see ChangeLog-2020.
7654 version-control: never