1 2021-05-30 Tom Tromey <tom@tromey.com>
3 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
4 m_num_psymtabs>: Remove.
5 (resize_symtabs): Update.
6 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
7 (dwarf2_per_bfd::allocate_signatured_type): Update.
9 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
11 * Fix tab after space indentation issues throughout.
13 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
15 * Fix some indentation mistakes throughout.
17 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
19 * breakpoint.h (iterate_over_bp_locations): Remove. Update
20 users to use all_bp_locations.
21 (all_bp_locations): New.
22 * breakpoint.c (all_bp_locations): Make non-static.
23 (iterate_over_bp_locations): Remove.
25 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
27 * breakpoint.h (iterate_over_breakpoints): Remove. Update
28 callers to use all_breakpoints or all_breakpoints_safe.
29 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
30 all_breakpoints_safe): Move here.
31 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
33 (iterate_over_breakpoints): Remove.
34 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
36 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
38 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
40 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
42 * breakpoint.c (get_first_locp_gte_addr): Remove.
43 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
44 all_bp_locations_at_addr.
45 (struct bp_locations_at_addr_range): New.
46 (all_bp_locations_at_addr): New.
47 (bp_locations_compare_addrs): New.
49 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
51 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
53 (all_bp_locations): New.
55 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
57 * breakpoint.c (bp_locations): Change to std::vector, update all
59 (bp_locations_count): Remove.
60 (update_global_location_list): Change to work with indices
61 rather than bp_location**.
63 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
65 * breakpoint.h (bp_locations_range): New.
66 (struct breakpoint) <locations>: New. Use where possible.
68 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
70 * breakpoint.h (all_tracepoints): Remove.
71 (breakpoint_iterator): Move here.
72 (struct tracepoint_filter): New.
73 (tracepoint_iterator): New.
74 (tracepoint_range): New.
75 (all_tracepoints): New.
76 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
78 (breakpoint_iterator): Move to header.
79 (all_tracepoints): New.
80 * tracepoint.c (start_tracing): Adjust.
82 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
84 * breakpoint.c (breakpoint_safe_range): New.
85 (all_breakpoints_safe): New. Use instead of
86 ALL_BREAKPOINTS_SAFE where possible.
88 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
90 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
92 (breakpoint_iterator): New.
93 (breakpoint_range): New.
94 (all_breakpoints): New.
96 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
98 * python/py-tui.c (tui_py_window::output): Add full_window
100 (gdbpy_tui_write): Parse "full_window" argument.
102 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
104 * make-init-c: Add option to reverse function calls.
106 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
108 * Makefile.in (INIT_FILES_FILTER_OUT): New.
109 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
110 (stamp-init): Use make-init-c.
111 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
112 * silent-rules.mk (ECHO_INIT_C): Change.
113 * make-init-c: New file.
115 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
117 * command.h (add_alias_cmd): Accept target as
118 cmd_list_element. Update callers.
120 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
122 * command.h (add_info_alias): Accept target as
123 cmd_list_element. Update callers.
125 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
127 * command.h (add_com_alias): Accept target as
128 cmd_list_element. Update callers.
130 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
132 * python/py-param.c (add_setshow_generic): Use return values of
133 add_setshow functions.
135 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
137 * mi/mi-main.c (_initialize_mi_main):
138 * python/py-auto-load.c (gdbpy_initialize_auto_load):
139 * remote.c (_initialize_remote):
141 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
143 * command.h (set_show_commands): New.
144 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
145 add_setshow_boolean_cmd, add_setshow_filename_cmd,
146 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
147 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
148 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
149 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
150 Return set_show_commands. Adjust callers.
151 * cli/cli-decode.c (add_setshow_cmd_full): Return
152 set_show_commands, remove result parameters, adjust callers.
154 2021-05-27 Tom de Vries <tdevries@suse.de>
157 * dwarf2/read.c (process_psymtab_comp_unit):
159 2021-05-27 Tom de Vries <tdevries@suse.de>
161 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
164 2021-05-27 Tom de Vries <tdevries@suse.de>
167 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
168 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
169 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
170 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
172 (dwarf2_per_cu_data): Remove load_all_dies field.
174 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
176 * regcache.c (reg_buffer::reg_buffer): Default-initialize
179 2021-05-26 Tom Tromey <tom@tromey.com>
181 * dwarf2/read.c (allocate_type_unit_groups_table)
182 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
184 (free_line_header_voidp): Remove.
186 (completion_tracker::completion_hash_entry::deleter): Remove.
187 (completion_tracker::discard_completions): Use htab_delete_entry.
188 * utils.h (htab_delete_entry): New template function.
190 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
192 * python/py-tui.c (tui_py_window::refresh_window):
195 2021-05-23 Tom de Vries <tdevries@suse.de>
198 * target.h (struct target_ops): Mention target_thread_architecture in
199 read_description comment.
200 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
201 pid to determine if process is 64-bit or 32-bit.
202 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
204 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
205 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
206 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
207 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
208 Likewise, use pid to determine if kernel supports reading VFP
211 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
213 * main.c (enum cmdarg_kind): Fix option type comments for
214 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
216 2021-05-21 Tom de Vries <tdevries@suse.de>
219 * contrib/cc-with-tweaks.sh: Handle -l.
221 2021-05-21 Tom de Vries <tdevries@suse.de>
224 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
225 objects. Call get_jiter_objfile_data with the_objfile.
227 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
229 * linespec.c (linespec_p): Remove. Replace all uses with
232 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
233 Pedro Alves <pedro@palves.net>
235 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
236 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
237 command_line_up instead of struct command_line.
238 (build_command_line): Likewise.
239 (get_command_line): Update the cmd function call parameter.
240 (process_next_line): Use unique_ptr command_line_up instead
241 of struct command_line.
242 (recurse_read_control_structure): Change the the type of
243 next to command_line_up.
244 (read_command_lines_1): Change type of `next' to be
245 command_line_up and update all references of `next'
248 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
250 * MAINTAINERS (Write After Approval): Add myself.
252 2021-05-19 John Baldwin <jhb@FreeBSD.org>
254 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
256 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
258 * inflow.c (new_tty): Do not leak tty.
260 2021-05-17 Tom Tromey <tom@tromey.com>
262 * dwarf2/read.h: Update include.
263 * dwarf2/read.c: Update include.
264 * dwarf2/line-header.c: Update include.
265 * dwarf2/cu.h: Update include.
266 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
267 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
268 * Makefile.in (COMMON_SFILES): Update.
270 2021-05-17 Tom Tromey <tom@tromey.com>
272 * dwarf2/read.c (maybe_queue_comp_unit)
273 (dwarf2_per_objfile::age_comp_units): Update.
274 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
276 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
277 add_dependence>: New methods.
278 <m_dependencies>: Add "m_" prefix. Now private.
279 <m_mark>: Add "m_" prefix.
280 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
281 (dwarf2_mark_helper): New function.
282 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
284 2021-05-17 Tom Tromey <tom@tromey.com>
286 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
287 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
288 (dwarf2_cu::dwarf2_cu): Move to cu.c.
289 * dwarf2/cu.c: New file.
290 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
292 2021-05-17 Tom Tromey <tom@tromey.com>
294 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
295 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
297 * dwarf2/cu.h: New file.
299 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
301 * .dir-locals.el: Set sentence-end-double-space for all modes, and
302 set brace-list-open to 0 for C and C++ modes.
304 2021-05-17 Tom Tromey <tromey@adacore.com>
306 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
309 2021-05-17 Tom Tromey <tromey@adacore.com>
311 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
312 (group_from_gid): Subtract one from strncpy length.
314 2021-05-17 Tom Tromey <tromey@adacore.com>
316 * source.c (add_path): Check 'p' before using 'p[-1]'.
318 2021-05-17 Tom Tromey <tromey@adacore.com>
320 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
321 (dwarf2_per_cu_data_up): New typedef.
322 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
323 <all_comp_units>: Use dwarf2_per_cu_data_up.
324 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
325 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
326 (create_cu_from_index_list): Likewise.
327 (create_signatured_type_table_from_index)
328 (create_cus_from_debug_names_list, add_type_unit)
329 (read_comp_units_from_section): Update.
330 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
333 2021-05-17 Tom Tromey <tom@tromey.com>
335 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
336 (sort_tu_by_abbrev_offset): Remove.
337 (build_type_psymtabs): Update.
339 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
341 * py-project.toml: New.
342 * gdb-gdb.py.in: Re-format.
344 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
346 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
348 * command.h (cmd_func_p): Remove.
349 * cli/cli-decode.c (cmd_func_p): Remove.
351 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
353 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
355 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
357 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
359 <alias_target>: ... this.
360 (add_alias_cmd): Rename old to target.
361 (add_info_alias): Rename old_name to target_name.
362 (add_com_alias): Likewise.
364 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
366 * Rename "prefixlist" parameters to "subcommands" throughout.
367 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
368 <subcommands>: ... this.
369 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
370 (lookup_cmd_with_subcommands): ... this.
372 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
374 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
376 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
378 * cli/cli-decode.h (prefixname): Make const, move implementation
380 * cli/cli-decode.c (cmd_list_element::prefixname): New.
382 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
384 * ctfread.c (new_symbol): Set function address.
385 (read_func_kind_type): Remove incorrect type name setting.
386 Don't copy name returned from ctf_type_ame_raw throughout file.
388 2021-05-14 Tom Tromey <tom@tromey.com>
390 * rust-lang.c (rust_language::val_print_struct)
391 (rust_language::print_enum): Use common_val_print, not
394 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
396 * python/py-inferior.c (infpy_get_connection_num): New function.
397 (inferior_object_getset): Add a new element for 'connection_num'.
398 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
400 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
402 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
403 argument type, update and re-wrap, header comment.
404 (remote_target::commit_resumed): Convert any_process_wildcard and
405 may_global_wildcard_vcont from int to bool.
407 2021-05-14 Kent Cheung <kent.cheung@arm.com>
409 * cp-valprint.c (cp_print_value): Replaced duplicate code.
410 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
411 just before printing child values.
412 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
413 printing string representation.
414 * python/py-prettyprint.c (print_children): Check max_depth just
415 before printing child values.
416 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
417 printing string representation.
419 2021-05-14 Mike Frysinger <vapier@gentoo.org>
421 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
422 sim/callback.h & sim/sim.h.
424 2021-05-13 Mike Frysinger <vapier@gentoo.org>
426 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
429 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
431 * inf-child.h (inf_child_target) <follow_exec>: New.
432 * inf-child.c (inf_child_target::follow_exec): New.
434 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
436 * target.h (struct target_ops) <follow_exec>: Add ptid_t
438 (target_follow_exec): Likewise.
439 * target.c (target_follow_exec): Add ptid_t parameter.
440 * infrun.c (follow_exec): Adjust call to target_follow_exec,
441 don't push target nor create thread.
442 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
443 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
444 (thread_db_target::follow_exec): New.
445 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
446 (remote_target::follow_exec): Call
447 process_stratum_target::follow_exec.
448 * target-delegates.c: Re-generate.
450 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
452 * infrun.c (follow_exec): Call target_follow_fork when
453 follow-exec-mode is same.
454 * target.h (target_follow_fork): Improve doc.
456 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
458 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
460 * cli/cli-setshow.c (do_show_command): Adjust.
462 2021-05-13 Luis Machado <luis.machado@linaro.org>
464 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
465 include the last address in the range.
467 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
469 * python/python-internal.h (gdbpy_parse_command_name): Return
470 gdb::unique_xmalloc_ptr.
471 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
472 (cmdpy_init): Adjust.
473 * python/py-param.c (parmpy_init): Adjust.
474 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
477 2021-05-12 George Barrett <bob@bob131.so>
479 * NEWS (Guile API): Note the addition of the new procedure.
480 * guile/scm-value.c (gdbscm_value_const_value): Add
481 implementation of value-const-value procedure.
482 (value_functions): Add value-const-value procedure.
484 2021-05-12 George Barrett <bob@bob131.so>
486 * NEWS (Guile API): Note the addition of new procedures.
487 * guile/scm-value.c (gdbscm_reference_value): Add helper function
488 for reference value creation.
489 (gdbscm_value_reference_value): Add implementation of
490 value-reference-value procedure.
491 (gdbscm_value_rvalue_reference_value): Add implementation of
492 value-rvalue-reference-value procedure.
493 (value_functions): Add value-reference-value procedure. Add
494 value-rvalue-reference-value procedure.
496 2021-05-12 George Barrett <bob@bob131.so>
498 * guile/scm-type.c (type_integer_constants): Add binding for
499 TYPE_CODE_RVALUE_REF.
500 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
501 dereferencing of rvalue references.
502 * NEWS (Guile API): Note improvements in rvalue reference support.
504 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
506 * btrace.c (handle_pt_insn_events): Ignore status update enable
509 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
511 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
514 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
516 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
518 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
521 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
524 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
526 * nat/linux-waitpid.c (status_to_str): Show signal name.
528 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
530 * python/py-breakpoint.c (pybp_debug): New static global.
531 (show_pybp_debug): New function.
532 (pybp_debug_printf): Define.
533 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
534 (gdbpy_breakpoint_created): Add some debugging.
535 (gdbpy_breakpoint_deleted): Likewise.
536 (gdbpy_breakpoint_modified): Likewise.
537 (_initialize_py_breakpoint): New function.
539 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
541 * python/py-unwind.c (pyuw_debug): Convert to bool.
542 (show_pyuw_debug): New function.
543 (pyuw_debug_printf): Define.
544 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
545 (pyuw_this_id): Convert to new debug print macros.
546 (pyuw_prev_register): Likewise.
547 (pyuw_sniffer): Likewise.
548 (pyuw_dealloc_cache): Likewise.
549 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
550 show function when registering.
552 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
554 * dummy-frame.c (fprint_dummy_frames): Convert use of
555 fprint_frame_id to use frame_id::to_string.
556 * frame.c (fprint_field): Delete.
557 (fprint_frame_id): Moved to...
558 (frame_id::to_string): ...this, rewritten to return a string.
559 (fprint_frame): Convert use of fprint_frame_id to use
561 (compute_frame_id): Likewise.
562 (frame_id_p): Likewise.
563 (frame_id_eq): Likewise.
564 (frame_id_inner): Likewise.
565 * frame.h (struct frame_id) <to_string>: New member function.
566 (fprint_frame_id): Delete declaration.
567 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
568 fprint_frame_id to use frame_id::to_string.
569 * python/py-frame.c (frame_object_to_frame_info): Likewise.
570 * python/py-unwind.c (unwind_infopy_str): Likewise.
571 (pyuw_this_id): Likewise.
573 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
575 * nat/linux-waitpid.c (status_to_str): Return std::string.
576 * nat/linux-waitpid.h (status_to_str): Likewise.
577 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
578 (linux_nat_target::attach): Adjust.
579 (linux_handle_extended_wait): Adjust.
581 (stop_wait_callback): Adjust.
582 (linux_nat_filter_event): Adjust.
583 (linux_nat_wait_1): Adjust.
584 * nat/linux-waitpid.c (status_to_str): Adjust.
585 * nat/linux-waitpid.h (status_to_str): Adjust.
587 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
589 * infrun.h (infrun_debug_printf): Add missing space.
591 2021-05-08 Pedro Alves <pedro@palves.net>
593 * linux-nat.c (linux_nat_target::supports_disable_randomization):
594 Remove references to HAVE_PERSONALITY.
595 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
596 (maybe_disable_address_space_randomization)
597 (~maybe_disable_address_space_randomizatio): Remove references to
599 * config.in, configure: Regenerate.
601 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
603 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
605 (source_script_with_search): Perform tilde expansion.
607 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
609 * target-descriptions.c (struct target_desc_info) <filename>:
611 (copy_inferior_target_desc_info): Adjust.
612 (target_desc_info_free): Adjust.
613 (target_find_description): Adjust.
614 (set_tdesc_filename_cmd): Adjust.
615 (show_tdesc_filename_cmd): Adjust.
616 (unset_tdesc_filename_cmd): Adjust.
617 (maint_print_c_tdesc_cmd): Adjust.
619 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
621 * target-descriptions.c (struct target_desc_info): Initialize
623 (get_tdesc_info): Use new.
624 (target_desc_info_free): Use delete.
626 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
628 * target-descriptions.c (struct target_desc_info) <fetched>:
630 (target_find_description): Adjust.
631 (target_clear_description): Adjust.
633 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
635 * target-descriptions.c (struct target_desc_info) <tdesc>:
637 (target_desc_fetched): Remove.
638 (current_target_desc): Remove.
639 (target_description_filename): Remove.
640 (target_find_description): Adjust.
641 (target_clear_description): Adjust.
642 (target_current_description): Adjust.
643 (set_tdesc_filename_cmd): Adjust.
644 (show_tdesc_filename_cmd): Adjust.
645 (unset_tdesc_filename_cmd): Adjust.
646 (maint_print_c_tdesc_cmd): Adjust.
647 (maint_print_xml_tdesc_cmd): Adjust.
649 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
651 * infcmd.c (notice_new_inferior): Change parameter type.
652 * inferior.h (notice_new_inferior): Change parameter type.
653 * remote.c (remote_notice_new_inferior): Change parameter type to
654 bool. Also update type of local variable to bool.
655 (remote_target::update_thread_list): Change type of local variable
657 (remote_target::process_stop_reply): Pass bool instead of int to
658 remote_notice_new_inferior.
660 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
662 * target.c (target_stack::unpush): Call target_ops::find_beneath
663 to get the target beneath `t`.
665 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
667 * target.c (target_close): Check in all inferiors that the
668 target is not pushed.
670 2021-05-07 Aaron Merey <amerey@redhat.com>
672 * debuginfod-support.c (debuginfod_init): Remove.
673 (get_debuginfod_client): New function.
675 2021-05-07 Tom Tromey <tom@tromey.com>
677 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
678 * utils.c (streq_hash): Remove.
679 * utils.h (streq_hash): Don't declare.
680 * completer.c (completion_tracker::discard_completions): Update
682 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
684 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
686 * Re-format all Python files using black.
688 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
690 * guile/guile-internal.h (gdbscm_safe_source_script): Change
691 function return type.
692 * guile/guile.c (gdbscm_source_script): Update to handle change in
693 gdbscm_safe_source_script.
694 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
695 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
698 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
700 * inferior.h (class inferior) <args>: Change type to
702 * inferior.c (inferior::~inferior): Don't free args.
703 * infcmd.c (get_inferior_args): Adjust.
704 (set_inferior_args): Adjust.
706 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
708 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
709 breakpoint locations when the breakpoint actually has a location.
711 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
713 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
714 * mi/mi-cmds.c: Change the binding of "-break-condition" to
715 mi_cmd_break_condition.
716 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
717 * breakpoint.h (set_breakpoint_condition): Declare a new
719 * breakpoint.c (set_breakpoint_condition): New overloaded function
720 extracted out from ...
721 (condition_command): ... this.
722 * NEWS: Mention the change.
724 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
726 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
727 '--force-condition' flag to force the condition in the
728 '-break-insert' and '-dprintf-insert' commands.
729 * NEWS: Mention the change.
731 2021-05-04 Tom de Vries <tdevries@suse.de>
734 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
737 2021-04-30 Tom Tromey <tom@tromey.com>
739 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
740 (add_signatured_type_cu_to_table): Remove.
741 (create_debug_type_hash_table): Assume dwo_file is non-null.
742 (create_debug_types_hash_table): Update comment.
743 (create_all_type_units): Remove.
744 (sort_tu_by_abbrev_offset): Update comment.
745 (build_type_psymtabs): Rename from build_type_psymtabs_1.
746 (build_type_psymtabs): Remove.
747 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
749 (read_comp_units_from_section): Add types_htab, section_kind
751 (create_all_comp_units): Read type units.
753 2021-04-30 Tom Tromey <tom@tromey.com>
755 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
756 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
757 <get_cu>: Now inline.
758 <all_type_units>: Remove.
759 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
760 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
761 (dwarf2_per_bfd::get_tu): Remove.
762 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
763 (create_signatured_type_table_from_index)
764 (create_signatured_type_table_from_debug_names)
765 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
766 (dwarf2_base_index_functions::expand_all_symtabs)
767 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
768 (dwarf2_base_index_functions::map_symbol_filenames)
769 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
770 (add_signatured_type_cu_to_table, create_all_type_units)
771 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
772 (create_all_comp_units): Update.
773 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
774 (write_debug_names): Update.
776 2021-04-30 Tom Tromey <tom@tromey.com>
778 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
779 allocate_signatured_type>: Change return type.
780 <all_comp_units, all_type_units>: Hold unique pointers.
781 (struct dwarf2_per_cu_data): Add constructor and initializers.
782 (struct signatured_type): Derive from dwarf2_per_cu_data.
783 * dwarf2/read.c (type_unit_group): Derive from
785 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
786 (dwarf2_per_bfd::get_tu)
787 (dwarf2_per_bfd::allocate_signatured_type)
788 (dwarf2_per_bfd::allocate_signatured_type)
789 (create_cu_from_index_list, create_cus_from_index_list)
790 (create_signatured_type_table_from_index)
791 (create_signatured_type_table_from_debug_names)
792 (create_addrmap_from_aranges)
793 (dwarf2_base_index_functions::find_last_source_symtab)
794 (dw_expand_symtabs_matching_file_matcher)
795 (dwarf2_gdb_index::expand_symtabs_matching)
796 (dwarf2_base_index_functions::map_symbol_filenames)
797 (create_cus_from_debug_names_list)
798 (dw2_debug_names_iterator::next)
799 (dwarf2_debug_names_index::expand_symtabs_matching)
800 (create_debug_type_hash_table, add_type_unit)
801 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
803 (allocate_type_unit_groups_table): Use delete.
804 (create_type_unit_group): Change return type. Use new.
805 (get_type_unit_group, build_type_psymtabs_1)
806 (build_type_psymtab_dependencies)
807 (process_skeletonless_type_unit, set_partial_user)
808 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
809 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
810 (read_signatured_type): Update.
811 (dwarf2_find_containing_comp_unit): Change type of
814 (dwarf2_per_bfd::allocate_per_cu)
815 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
817 (add_signatured_type_cu_to_table): Update.
818 * dwarf2/index-write.c (write_one_signatured_type)
819 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
820 (write_debug_names): Update.
822 2021-04-30 Tom Tromey <tromey@adacore.com>
824 * nat/windows-nat.h (get_image_name): Don't declare.
825 * nat/windows-nat.c (get_image_name): Now static.
827 2021-04-30 Tom Tromey <tromey@adacore.com>
829 * windows-nat.c (windows_nat::handle_load_dll): Update.
830 (windows_nat_target::get_windows_debug_event): Call
832 (windows_add_all_dlls, windows_add_dll): Move to
834 * nat/windows-nat.h (handle_load_dll): Change parameters.
835 (dll_loaded_event, windows_add_all_dlls): Declare.
836 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
838 (dll_loaded_event): New function.
840 2021-04-30 Tom Tromey <tromey@adacore.com>
842 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
843 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
845 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
846 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
848 2021-04-30 Tom Tromey <tromey@adacore.com>
850 * windows-nat.c: Move code to nat/windows-nat.[ch].
851 (_initialize_windows_nat): Call initialize_loadable.
852 * nat/windows-nat.h (AdjustTokenPrivileges)
853 (DebugActiveProcessStop, DebugBreakProcess)
854 (DebugSetProcessKillOnExit, EnumProcessModules)
855 (EnumProcessModulesEx, GetModuleInformation)
856 (GetModuleFileNameExA, GetModuleFileNameExW)
857 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
858 (GetCurrentConsoleFont, Wow64SuspendThread)
859 (Wow64GetThreadContext, Wow64SetThreadContext)
860 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
861 (AdjustTokenPrivileges_ftype)
862 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
863 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
864 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
865 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
866 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
867 (GetConsoleFontSize_ftype)
868 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
869 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
870 (Wow64GetThreadSelectorEntry_ftype): Likewise.
871 (initialize_loadable): Declare.
872 * nat/windows-nat.c (AdjustTokenPrivileges)
873 (DebugActiveProcessStop, DebugBreakProcess)
874 (DebugSetProcessKillOnExit, EnumProcessModules)
875 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
876 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
877 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
878 (Wow64GetThreadContext, Wow64SetThreadContext)
879 (Wow64GetThreadSelectorEntry): Define.
880 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
882 (initialize_loadable): Likewise, and rename.
884 2021-04-30 Tom Tromey <tromey@adacore.com>
886 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
887 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
888 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
889 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
890 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
891 (bad): New template functions.
892 (_initialize_loadable): Update.
894 2021-04-30 Tom Tromey <tromey@adacore.com>
896 * ada-lang.c (ada_index_type): Use ada_check_typedef.
898 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
900 * auto-load.h: Split namespace declaration.
902 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
904 * infrun.c (save_waitstatus): Move variables to inner scope.
906 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
908 * NEWS: Fix typo and stray full stop.
910 2021-04-28 Tom Tromey <tromey@adacore.com>
912 * ada-exp.y (primary): Use new type for null pointer.
913 * ada-lang.c (ada_type_match): Remove "may_deref"
914 parameter. Handle null pointer.
915 (ada_args_match): Update.
916 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
919 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
921 * NEWS: Mention new commands.
922 * python/python.c (python_ignore_environment): New static global.
923 (show_python_ignore_environment): New function.
924 (set_python_ignore_environment): New function.
925 (python_dont_write_bytecode): New static global.
926 (show_python_dont_write_bytecode): New function.
927 (set_python_dont_write_bytecode): New function.
928 (_initialize_python): Register new commands.
930 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
932 * extension-priv.h (struct extension_language_ops): Rename
933 'finish_initialization' to 'initialize'.
934 * extension.c (finish_ext_lang_initialization): Renamed to...
935 (ext_lang_initialization): ...this, update comment, and updated
936 the calls to reflect the change in struct extension_language_ops.
937 * extension.h (finish_ext_lang_initialization): Renamed to...
938 (ext_lang_initialization): ...this.
939 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
940 (gdbscm_initialize): ...this, update comment at definition.
941 (guile_extension_ops): Update.
942 * main.c (captured_main_1): Update call to
943 finish_ext_lang_initialization.
944 * python/python.c (gdbpy_finish_initialization): Rename to...
945 (gdbpy_initialize): ...this, update comment at definition, and
946 update call to do_finish_initialization.
947 (python_extension_ops): Update.
948 (do_finish_initialization): Rename to...
949 (do_initialize): ...this, and update comment.
951 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
953 * main.c (captured_main_1): Add a call to
954 finish_ext_lang_initialization.
955 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
957 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
959 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
960 (gdbscm_finish_initialization): Add code moved from
962 (_initialize_guile): Move code to gdbscm_finish_initialization.
963 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
964 _initialize_scm_arch.
965 (_initialize_scm_arch): New function.
966 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
967 into _initialize_scm_block.
968 (_initialize_scm_block): New function.
969 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
970 into _initialize_scm_frame.
971 (_initialize_scm_frame): New function.
972 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
973 into _initialize_scm_objfile.
974 (_initialize_scm_objfile): New function.
975 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
976 code into _initialize_scm_progspace.
977 (_initialize_scm_progspace): New function.
978 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
979 into _initialize_scm_symbol.
980 (_initialize_scm_symbol): New function.
981 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
982 into _initialize_scm_symtab.
983 (_initialize_scm_symtab): New function.
984 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
985 _initialize_scm_type.
986 (_initialize_scm_type): New function.
988 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
990 * python/py-arch.c (_initialize_py_arch): New function.
991 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
992 * python/py-block.c (_initialize_py_block): New function.
993 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
994 * python/py-inferior.c (_initialize_py_inferior): New function.
995 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
996 * python/py-objfile.c (_initialize_py_objfile): New function.
997 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
998 * python/py-progspace.c (_initialize_py_progspace): New function.
999 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1000 * python/py-registers.c (_initialize_py_registers): New function.
1001 (gdbpy_initialize_registers): Move code to
1002 _initialize_py_registers.
1003 * python/py-symbol.c (_initialize_py_symbol): New function.
1004 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1005 * python/py-symtab.c (_initialize_py_symtab): New function.
1006 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1007 * python/py-type.c (_initialize_py_type): New function.
1008 (gdbpy_initialize_types): Move code to _initialize_py_type.
1009 * python/py-unwind.c (_initialize_py_unwind): New function.
1010 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1011 * python/python.c (_initialize_python): Move call to
1012 do_start_initialization to gdbpy_finish_initialization.
1013 (gdbpy_finish_initialization): Add call to
1014 do_start_initialization.
1016 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1018 * extension.c (struct scoped_default_signal): New struct.
1019 (scoped_default_sigint): New typedef.
1020 (finish_ext_lang_initialization): Make use of
1021 scoped_default_sigint.
1023 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1025 * main.c (captured_main_1): Don't pass argument to gdb_init.
1026 * top.c (gdb_init): Remove unused argument, and add header
1028 * top.h (gdb_init): Remove argument.
1030 2021-04-27 Luis Machado <luis.machado@linaro.org>
1032 * psymtab.c (psymbol_functions::dump): Output newline.
1034 * symmisc.c (dump_objfile): Likewise.
1036 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1037 Simon Marchi <simon.marchi@polymtl.ca>
1039 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1040 when attaching the 'auto_load_new_objfile' observer, so
1041 other observers can specify it as a dependency.
1042 * gdb/auto-load.h (struct token): Declare
1043 'auto_load_new_objfile_observer_token' as token to be used
1044 for the 'auto_load_new_objfile' observer.
1045 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1046 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1047 observer, so it gets notified after the latter.
1049 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1050 Simon Marchi <simon.marchi@polymtl.ca>
1052 * unittests/observable-selftests.c (dependency_test_counters):
1054 (observer_token0, observer_token1, observer_token2,
1055 observer_token3, observer_token4, observer_token5): New.
1056 (struct dependency_observer_data): New struct.
1057 (observer_dependency_test_callback): New function.
1058 (test_observers): New.
1059 (run_dependency_test): New function.
1060 (test_dependency): New.
1061 (_initialize_observer_selftest): Register dependency test.
1063 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1066 * cli/cli-dump.c (dump_binary_file): Check result of
1069 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1071 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1072 by passing `process_stratum_target*` parameter.
1074 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1077 * typeprint.h (struct type_print_options): Add print_in_hex
1079 (struct print_offset_data): Add print_in_hex flag, add a
1080 constructor accepting a type_print_options* argument.
1081 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1082 default value for print_in_hex.
1083 (print_offset_data::indentation): Allow more horizontal space.
1084 (print_offset_data::print_offset_data): Add ctor.
1085 (print_offset_data::maybe_print_hole, print_offset_data::update):
1086 Handle the print_in_hex flag.
1087 (whatis_exp): Handle 'x' and 'd' flags.
1088 (print_offsets_and_sizes_in_hex): Declare.
1089 (set_print_offsets_and_sizes_in_hex): Create.
1090 (show_print_offsets_and_sizes_in_hex): Create.
1091 (_initialize_typeprint): Update help message for the ptype
1092 command, register the 'set print type hex' and 'show print type
1094 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1095 (c_type_print_base): Construct the print_offset_data
1096 object using the type_print_optons parameter.
1097 * rust-lang.c (rust_language::print_type): Construct the
1098 print_offset_data object using the type_print_optons parameter.
1099 * NEWS: Mention the new flags of the ptype command.
1101 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1103 * typeprint.h (struct type_print_options): Move before
1106 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1110 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1112 * observable.c (observer_debug): Change to bool.
1114 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1116 * dwarf2/read.c: Add 'unordered_set' include.
1117 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1118 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1119 of per_Bfd->filenames_cache cache, and use function local
1120 filenames_cache instead. Reindent.
1121 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1123 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1125 * breakpoint.c (iterate_over_bp_locations): Change callback to
1126 function view, remove data parameter.
1127 * breakpoint.h (iterate_over_bp_locations): Likewise.
1128 * record-full.c (record_full_sync_record_breakpoints): Remove
1131 2021-04-22 Tom Tromey <tom@tromey.com>
1133 * c-typeprint.c (c_type_print_base_struct_union): Use
1134 print_spaces_filtered_with_print_options.
1136 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1139 * python/py-type.c (typy_range): Check that bounds are constant
1140 before accessing them as such.
1141 * guile/scm-type.c (gdbscm_type_range): Likewise.
1143 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1145 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1146 * inferior.c (inferior::add_continuation): New method, adapted
1147 from 'add_inferior_continuation'.
1148 (inferior::do_all_continuations): New method, adapted from
1149 'do_all_inferior_continuations'.
1150 (inferior::~inferior): Clear the list of continuations directly.
1151 * inferior.h (class inferior) <continuations>: Rename into...
1152 <m_continuations>: ...this and make private.
1153 * continuations.c: Remove.
1154 * continuations.h: Remove.
1155 * event-top.c: Don't include "continuations.h".
1157 Update the users below.
1158 * inf-loop.c (inferior_event_handler)
1159 * infcmd.c (attach_command)
1160 (notice_new_inferior): Update.
1162 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1164 * inferior.h (class inferior) <continuations>: Change the type
1165 to be an std::list of std::function's.
1166 Update the references and uses below.
1167 * continuations.c (struct continuation): Delete.
1168 (make_continuation): Delete.
1169 (do_my_continuations_1): Delete.
1170 (do_my_continuations): Delete.
1171 (discard_my_continuations_1): Delete.
1172 (discard_my_continuations): Delete.
1173 (add_inferior_continuation): Update.
1174 (do_all_inferior_continuations): Update.
1175 (discard_all_inferior_continuations): Update.
1176 * continuations.h (add_inferior_continuation): Update to take
1177 an std::function as the parameter.
1178 * infcmd.c (struct attach_command_continuation_args): Delete.
1179 (attach_command_continuation): Delete.
1180 (attach_command_continuation_free_args): Delete.
1181 (attach_command): Update.
1182 (notice_new_inferior): Update.
1184 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1186 * continuations.h: Update the general comment.
1187 * inferior.h (class inferior) <continuations>: Update the comment.
1188 * interps.c: Do not include "continuations.h".
1190 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1192 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1193 parameter. Update the references below.
1194 * continuations.c (do_my_continuations_1)
1195 (do_my_continuations)
1196 (do_all_inferior_continuations): Update.
1197 * inf-loop.c (inferior_event_handler): Update.
1198 * infcmd.c (attach_command_continuation): Update.
1200 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1202 * infcmd.c (attach_post_wait): Update the function comment.
1204 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1206 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1207 Update the references below.
1208 (struct attach_command_continuation_args)
1209 (attach_command_continuation)
1210 (attach_command_continuation_free_args)
1212 (notice_new_inferior): Update to remove the reference to 'args'.
1214 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1215 Tom de Vries <tdevries@suse.de>
1218 * remote.c (remote_target_is_non_stop_p): New function.
1219 * remote.h (remote_target_is_non_stop_p): Declare.
1220 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1221 to check non-stopness using notif_state->remote rather current target.
1223 2021-04-22 Tom Tromey <tom@tromey.com>
1225 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1226 (struct typed_val_int) <val>: Now ULONGEST.
1227 (rust_parser::parse_array_type): Remove negative check.
1228 (rust_lex_int_test): Change 'value' to ULONGEST.
1230 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1232 * arch-utils.c (default_addressable_memory_unit_size): Return a
1233 value based on bfd's bits per byte.
1235 2021-04-21 Tom Tromey <tom@tromey.com>
1237 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1239 (struct dwarf2_per_cu_data): Rearrange.
1240 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1242 (struct comp_unit_head): Rearrange.
1243 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1245 2021-04-21 Tom de Vries <tdevries@suse.de>
1248 * configure.ac: Remove --without-included-regex/--with-included-regex.
1249 * config.in: Regenerate.
1250 * configure: Regenerate.
1251 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1253 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1255 * breakpoint.h (create_breakpoint): Add a new parameter,
1257 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1258 argument when 'parse_extra' is false to check if the condition
1259 is invalid at all of the breakpoint locations.
1260 Update the users below.
1266 (create_tracepoint_from_upload): Update.
1267 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1268 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1269 * python/py-breakpoint.c (bppy_init): Update.
1270 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1272 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1274 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1275 disabled-by-condition locations on MI-like output.
1276 (breakpoint_1): Do not display the disabled-by-condition footnote
1277 if the output is MI-like.
1279 2021-04-21 Frederic Cambus <fred@statdns.com>
1281 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1282 update year range in generated copyright notices.
1284 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1286 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1287 qualifier_seq_noopt.
1289 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1291 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1293 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1295 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1296 (producer_is_icc): Replace use of std::regex with gdb's
1299 2021-04-17 Tom Tromey <tom@tromey.com>
1302 * dwarf2/read.c (class offset_view): New.
1303 (struct symbol_table_slot): Remove.
1304 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1305 <symbol_name_index, symbol_vec_index>: New methods.
1306 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1308 (read_gdb_index_from_buffer): Update.
1309 (struct dw2_symtab_iterator) <vec>: Change type.
1310 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1311 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1312 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1313 <append_array, append_offset>: New methods.
1314 (write_hash_table, add_address_entry, write_gdbindex_1)
1315 (write_debug_names): Update.
1316 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1318 2021-04-17 Tom Tromey <tom@tromey.com>
1320 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1323 2021-04-17 Tom Tromey <tom@tromey.com>
1325 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1326 from map_matching_symbols. Change parameters.
1327 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1328 Rename from map_matching_symbols. Change parameters.
1329 * dwarf2/read.c (struct dwarf2_gdb_index)
1330 <expand_matching_symbols>: Rename from map_matching_symbols.
1332 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1333 Rename from map_matching_symbols. Change parameters.
1334 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1335 dw2_map_matching_symbols. Change parameters.
1336 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1338 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1339 map_matching_symbols. Change parameters.
1340 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1341 from map_matching_symbols. Change parameters.
1342 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1343 map_matching_symbols. Change parameters.
1344 * ada-lang.c (map_matching_symbols): New function.
1345 (add_nonlocal_symbols): Update.
1347 2021-04-17 Tom Tromey <tom@tromey.com>
1349 * quick-symbol.h (struct quick_symbol_functions)
1350 <expand_symtabs_with_fullname>: Remove.
1351 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1353 * psympriv.h (struct psymbol_functions)
1354 <expand_symtabs_with_fullname>: Remove.
1355 * dwarf2/read.c (struct dwarf2_base_index_functions)
1356 <expand_symtabs_with_fullname>: Remove.
1357 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1359 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1361 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1364 2021-04-17 Tom Tromey <tom@tromey.com>
1366 * symfile-debug.c (objfile::expand_symtabs_for_function):
1368 * quick-symbol.h (struct quick_symbol_functions)
1369 <expand_symtabs_for_function>: Remove.
1370 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1372 * psympriv.h (struct psymbol_functions)
1373 <expand_symtabs_for_function>: Remove.
1374 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1376 * dwarf2/read.c (struct dwarf2_gdb_index)
1377 <expand_symtabs_for_function>: Remove.
1378 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1380 (find_slot_in_mapped_hash): Remove.
1381 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1382 (dw2_symtab_iter_init): Remove one overload.
1383 (dwarf2_gdb_index::expand_symtabs_for_function)
1384 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1386 2021-04-17 Tom Tromey <tom@tromey.com>
1388 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1390 * quick-symbol.h (struct quick_symbol_functions)
1391 <map_symtabs_matching_filename>: Remove.
1392 * psymtab.c (partial_map_expand_apply)
1393 (psymbol_functions::map_symtabs_matching_filename): Remove.
1394 * psympriv.h (struct psymbol_functions)
1395 <map_symtabs_matching_filename>: Remove.
1396 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1398 * dwarf2/read.c (struct dwarf2_base_index_functions)
1399 <map_symtabs_matching_filename>: Remove.
1400 (dw2_map_expand_apply)
1401 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1404 2021-04-17 Tom Tromey <tom@tromey.com>
1406 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1407 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1409 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1410 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1411 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1412 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1414 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1415 (dwarf2_gdb_index::lookup_symbol)
1416 (dwarf2_debug_names_index::lookup_symbol): Remove.
1418 2021-04-17 Tom Tromey <tom@tromey.com>
1420 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1421 * symmisc.c (maintenance_expand_symtabs): Update.
1422 * symfile.c (expand_symtabs_matching): Update.
1423 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1425 * quick-symbol.h (struct quick_symbol_functions)
1426 <expand_symtabs_matching>: Add 'domain' parameter.
1427 * psymtab.c (recursively_search_psymtabs)
1428 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1430 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1431 Add 'domain' parameter.
1432 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1434 * linespec.c (iterate_over_all_matching_symtabs): Update.
1435 * dwarf2/read.c (struct dwarf2_gdb_index)
1436 <expand_symtabs_matching>: Add 'domain' parameter.
1437 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1439 (dw2_expand_symtabs_matching)
1440 (dwarf2_gdb_index::expand_symtabs_matching)
1441 (dw2_debug_names_iterator)
1442 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1445 2021-04-17 Tom Tromey <tom@tromey.com>
1447 * symtab.c (global_symbol_searcher::expand_symtabs)
1448 (default_collect_symbol_completion_matches_break_on): Update.
1449 * symmisc.c (maintenance_expand_symtabs): Update.
1450 * symfile.h (expand_symtabs_matching): Add search_flags
1452 * symfile.c (expand_symtabs_matching): Add search_flags
1454 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1455 search_flags parameter.
1456 * quick-symbol.h (struct quick_symbol_functions)
1457 <expand_symtabs_matching>: Add search_flags parameter.
1458 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1459 * psymtab.c (recursively_search_psymtabs)
1460 (psymbol_functions::expand_symtabs_matching): Add search_flags
1462 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1463 Add search_flags parameter.
1464 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1465 search_flags parameter.
1466 * linespec.c (iterate_over_all_matching_symtabs): Update.
1467 * dwarf2/read.c (struct dwarf2_gdb_index)
1468 <expand_symtabs_matching>: Add search_flags parameter.
1469 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1470 search_flags parameter.
1471 (dw2_map_matching_symbols): Update.
1472 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1473 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1475 (dw2_debug_names_iterator): Change block_index to search flags.
1476 <m_block_index>: Likewise.
1477 (dw2_debug_names_iterator::next)
1478 (dwarf2_debug_names_index::lookup_symbol)
1479 (dwarf2_debug_names_index::expand_symtabs_for_function)
1480 (dwarf2_debug_names_index::map_matching_symbols)
1481 (dwarf2_debug_names_index::map_matching_symbols): Update.
1482 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1483 search_flags parameter.
1484 * ada-lang.c (ada_add_global_exceptions)
1485 (collect_symbol_completion_matches): Update.
1487 2021-04-17 Tom Tromey <tom@tromey.com>
1489 * symtab.c (default_collect_symbol_completion_matches_break_on):
1491 * symfile.h (expand_symtabs_matching): Return bool.
1492 * symfile.c (expand_symtabs_matching): Return bool.
1493 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1495 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1496 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1498 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1500 * psympriv.h (struct psymbol_functions)
1501 <expand_symtabs_matching>: Return bool.
1502 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1504 * dwarf2/read.c (struct dwarf2_gdb_index)
1505 <expand_symtabs_matching>: Return bool.
1506 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1508 (dw2_expand_symtabs_matching_symbol): Return bool.
1509 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1510 (dw2_expand_symtabs_matching)
1511 (dwarf2_gdb_index::expand_symtabs_matching)
1512 (dwarf2_debug_names_index::expand_symtabs_matching)
1513 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1515 2021-04-17 Tom Tromey <tom@tromey.com>
1517 * quick-symbol.h (enum block_search_flag_values): New.
1518 (block_search_flags): New enum flags type.
1520 2021-04-16 Tom Tromey <tom@tromey.com>
1522 * rust-parse.c: New file.
1523 * rust-exp.y: Remove.
1524 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1525 (SFILES): Remove rust-exp.y.
1526 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1528 2021-04-16 Luis Machado <luis.machado@linaro.org>
1530 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1532 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1534 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1535 use throughout file.
1537 2021-04-15 Tom Tromey <tromey@adacore.com>
1539 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1542 2021-04-15 Tom Tromey <tromey@adacore.com>
1544 * printcmd.c (print_variable_and_value): Use
1545 common_val_print_checked.
1547 2021-04-15 Tom Tromey <tromey@adacore.com>
1549 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1550 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1552 * p-exp.y (variable): Update.
1553 * m2-exp.y (variable): Update.
1554 * go-exp.y (variable): Update.
1555 * expprint.c (dump_for_expression): New overload.
1556 * expop.h (check_objfile): New overload.
1557 (check_constant): New overload.
1558 (class var_value_operation): Use block_symbol.
1559 <get_symbol>: Rewrite.
1560 * eval.c (var_value_operation::evaluate)
1561 (var_value_operation::evaluate_funcall)
1562 (var_value_operation::evaluate_for_address)
1563 (var_value_operation::evaluate_for_address)
1564 (var_value_operation::evaluate_with_coercion)
1565 (var_value_operation::evaluate_for_sizeof)
1566 (var_value_operation::evaluate_for_cast): Update.
1567 * d-exp.y (PrimaryExpression): Update.
1568 * c-exp.y (variable): Update.
1569 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1570 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1571 (ada_var_value_operation::evaluate)
1572 (ada_var_value_operation::resolve)
1573 (ada_funcall_operation::resolve): Update.
1574 * ada-exp.y (write_var_from_sym, write_object_renaming)
1575 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1576 (maybe_overload): Update.
1577 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1579 2021-04-15 Tom Tromey <tom@tromey.com>
1580 Andrew Burgess <andrew.burgess@embecosm.com>
1583 * main.c (captured_main_1): Call check_quiet_mode.
1584 * top.c (startup_quiet): New global.
1585 (check_quiet_mode): New function.
1586 (show_startup_quiet): New function.
1587 (init_main): Register new command.
1588 * top.h (check_quiet_mode): Declare.
1590 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1593 * NEWS: Mention new early init files and command line options.
1594 * config.in: Regenerate.
1595 * configure: Regenerate.
1596 * configure.ac: Define GDBEARLYINIT.
1597 * main.c (get_earlyinit_files): New function.
1598 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1599 CMDARG_EARLYINIT_COMMAND.
1600 (captured_main_1): Add support for new command line flags, and for
1601 processing startup files.
1602 (print_gdb_help): Include startup files in the output.
1604 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1606 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1607 (relocate_file_path_maybe_in_datadir): ...this.
1608 (class gdb_initfile_finder): New class.
1609 (get_init_files): Now uses gdb_initfile_finder.
1610 (print_gdb_help): Print 'None found' when there are no init files.
1612 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1614 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1615 corresponding child of the abstract DIE when iterating the
1616 children of the concrete DIE.
1618 2021-04-13 Tom de Vries <tdevries@suse.de>
1620 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1623 2021-04-13 Luis Machado <luis.machado@linaro.org>
1625 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1628 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1630 * rs6000-tdep.c: Add support for single-stepping of
1631 prefixed instructions.
1633 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1636 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1637 handle the addpcis/lnia instruction.
1639 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1641 * MAINTAINERS (Write After Approval): Add myself.
1643 2021-4-12 Carl Love <cel@us.ibm.com>
1645 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1646 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1649 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1651 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1652 * nat/windows-nat.h: Likewise.
1654 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1656 * windows-nat.c (windows_nat::handle_load_dll): Call
1657 windows_add_dll if get_image_name failed to glean the name of the
1658 DLL by using the lpImageName pointer.
1659 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1660 (windows_add_dll): Now does what windows_add_all_dlls did before,
1661 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1662 specifies the address where the DLL was loaded into the inferior,
1663 and looks for the single DLL loaded at that address.
1665 2021-04-09 Luis Machado <luis.machado@linaro.org>
1667 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1669 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1671 * darwin-nat.c (darwin_nat_target::resume): Remove status
1674 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1676 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1677 prologue end for Intel compilers.
1678 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1679 * producer.c (producer_is_icc_ge_19): New function.
1680 * producer.h (producer_is_icc_ge_19): New declaration.
1682 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1684 * producer.c: (producer_is_icc): Update for new version scheme.
1685 (producer_parsing_tests): Update names and expected results.
1686 * producer.h: (producer_is_icc): Update comment accordingly.
1688 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1690 * target.h (struct target_ops) <follow_fork>: Return void.
1691 (target_follow_fork): Likewise.
1692 * target.c (default_follow_fork): Likewise.
1693 (target_follow_fork): Likewise.
1694 * infrun.c (follow_fork_inferior): Adjust.
1695 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1696 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1697 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1698 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1699 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1700 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1701 * remote.c (class remote_target) <follow_fork>: Likewise.
1702 (remote_target::follow_fork): Likewise.
1703 * target-delegates.c: Re-generate.
1705 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1707 * ctfread.c (fetch_tid_type): New function, use throughout file.
1708 (read_forward_type): New function.
1709 (read_type_record): Call read_forward_type.
1711 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1713 * f-exp.h (class fortran_structop_operation): New class.
1714 * f-exp.y (exp): Create fortran_structop_operation instead of the
1715 generic structop_operation.
1716 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1717 expression as EVAL_NORMAL if the result type was dynamic so we can
1718 extract the actual array bounds.
1719 (fortran_structop_operation::evaluate): New function.
1721 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1723 * eval.c (evaluate_subexp_standard): Remove
1724 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1727 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1729 * valops.c (value_cast): Call value_deeply_equal before performing
1732 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1734 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1737 2021-04-07 Caroline Tice <cmtice@google.com>
1739 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1740 the search paths used resolve relative location of .dwo file.
1742 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1744 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1746 (dwarf2_section_info::get_file_name): Add an assert.
1747 (dwarf2_section_info::read_string): Display a minimal, sane error
1748 when the dwarf2_section_info is not associated with a bfd section.
1750 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1752 * top.c (staged_gdb_datadir): Update comment.
1753 (set_gdb_datadir): Copy the value of gdb_datadir back into
1755 (init_main): Initialise staged_gdb_datadir.
1757 2021-04-06 Tom de Vries <tdevries@suse.de>
1759 PR breakpoints/25884
1760 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1763 2021-04-06 Tom de Vries <tdevries@suse.de>
1766 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1769 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1771 * avr-tdep.c (avr_frame_unwind_cache): Use
1772 trad_frame_saved_reg::is_addr.
1774 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1776 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1779 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1781 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1782 objfile parameter for objfile_per_bfd_storage, adjust callers.
1783 (struct standard_psymtab) <standard_psymtab>: Likewise.
1784 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1785 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1786 * ctfread.c (struct ctf_psymtab): Likewise.
1787 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1788 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1789 (dwarf2_create_include_psymtab): Likewise.
1790 * objfiles.h (struct objfile_per_bfd_storage)
1791 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1792 <get_bfd>: New method.
1794 * objfiles.c (get_objfile_bfd_data): Adjust.
1796 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1798 * psymtab.c (partial_symtab::partial_symtab): Change
1799 last_objfile_name to be an std::string.
1800 * symfile.c (allocate_symtab): Likewise.
1802 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1804 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1806 (struct objfile) <intern>: Use
1807 objfile::objfile_per_bfd_storage::intern.
1809 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1811 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1812 with type::is_flag_enum.
1814 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1816 * gdbtypes.h (struct type) <is_flag_enum,
1817 set_is_flag_enum>: New methods.
1818 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1819 write call sites to use type::set_is_flag_enum.
1821 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1823 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1824 with type::is_declared_class.
1826 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1828 * gdbtypes.h (struct type) <is_declared_class,
1829 set_is_declared_class>: New methods.
1830 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1831 write call sites to use type::set_is_declared_class.
1833 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1835 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1836 to avoid deprecation warnings.
1838 2021-04-01 Martin Liska <mliska@suse.cz>
1840 * cp-name-parser.y: Use startswith instead of strncmp.
1841 * m2-exp.y: Likewise.
1842 * macroexp.c (substitute_args): Likewise.
1843 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1844 * rust-exp.y: Likewise.
1846 2021-03-31 Tom Tromey <tom@tromey.com>
1848 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1849 with dw2_map_matching_symbols.
1850 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1851 dw2_expand_symtabs_matching.
1853 2021-03-31 Tom Tromey <tromey@adacore.com>
1855 * dwarf2/stringify.h: Fix typo.
1857 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1860 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1861 with objfiles using READNOW.
1863 2021-03-29 Tom Tromey <tromey@adacore.com>
1865 * top.c (check_frame_language_change): Update.
1866 * language.c (language_info): Remove parameter.
1867 * language.h (language_info): Remove parameter.
1869 2021-03-29 Luis Machado <luis.machado@linaro.org>
1871 * compile/compile.c (get_args): Don't add empty argv entries.
1873 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1876 * procfs.c (procfs_target::attach): Define inf.
1878 (procfs_target::create_inferior): Likewise.
1880 2021-03-28 Tom Tromey <tom@tromey.com>
1882 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1883 (elf_symfile_read): Simplify.
1884 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1885 (make_lazy_dwarf_reader): New function.
1886 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1887 (dwarf2_initialize_objfile): Return void. Remove index_kind
1888 parameter. Push on 'qf' list.
1889 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1890 type. Remove 'index_kind' parameter.
1891 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1893 2021-03-27 Tom Tromey <tom@tromey.com>
1895 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1897 2021-03-27 Tom Tromey <tom@tromey.com>
1899 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1901 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1903 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1906 2021-03-26 Tom Tromey <tom@tromey.com>
1908 * symtab.c (struct output_source_filename_data): Add 'output'
1909 method and operator().
1910 (output_source_filename_data::output): Rename from
1911 output_source_filename.
1912 (output_partial_symbol_filename): Remove.
1913 (info_sources_command): Update.
1914 (struct add_partial_filename_data): Add operator().
1915 (add_partial_filename_data::operator()): Rename from
1916 maybe_add_partial_symtab_filename.
1917 (make_source_files_completion_list): Update.
1918 * symfile.c (quick_symbol_functions): Update.
1919 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1920 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1921 'need_fullname'. Remove 'data' parameter.
1922 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1923 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1924 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1925 Change type of 'fun' and 'need_fullname'. Remove 'data'
1927 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1928 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1929 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1931 (mi_cmd_file_list_exec_source_files): Update.
1933 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1935 2021-03-26 Tom Tromey <tom@tromey.com>
1937 * ada-lang.c (struct match_data): Add operator().
1938 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1939 (callback): Remove 'callback'.
1941 2021-03-26 Tom Tromey <tom@tromey.com>
1943 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1944 call make_ignore_params once.
1946 2021-03-26 Tom Tromey <tom@tromey.com>
1948 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1951 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1952 Pedro Alves <pedro@palves.net>
1954 * async-event.c: Include "infrun.h".
1955 (async_event_handler_marked): New.
1956 * async-event.h (async_event_handler_marked): Declare.
1957 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1958 inferior before calling target method. Don't commit-resumed if
1959 target_has_pending_events is true.
1960 * remote.c (remote_target::has_pending_events): New.
1961 * target-delegates.c: Regenerate.
1962 * target.c (target_has_pending_events): New.
1963 * target.h (target_ops::has_pending_events): New target method.
1964 (target_has_pending_events): New.
1966 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1967 Pedro Alves <pedro@palves.net>
1969 * infcmd.c (run_command_1, attach_command, detach_command)
1970 (interrupt_target_1): Use scoped_disable_commit_resumed.
1971 * infrun.c (do_target_resume): Remove
1972 target_commit_resume call.
1973 (commit_resume_all_targets): Remove.
1974 (maybe_set_commit_resumed_all_targets): New.
1975 (maybe_call_commit_resumed_all_targets): New.
1976 (enable_commit_resumed): New.
1977 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1978 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1979 (scoped_disable_commit_resumed::reset)
1980 (scoped_disable_commit_resumed::reset_and_commit)
1981 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1982 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1984 (proceed): Use scoped_disable_commit_resumed and
1985 maybe_call_commit_resumed_all_targets.
1986 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1987 * infrun.h (struct scoped_disable_commit_resumed): New.
1988 (maybe_call_commit_resumed_all_process_targets): New.
1989 (struct scoped_enable_commit_resumed): New.
1990 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1991 * process-stratum-target.h (class process_stratum_target):
1992 <commit_resumed_state>: New.
1993 * record-full.c (record_full_wait_1): Change commit_resumed_state
1994 around calling commit_resumed.
1995 * remote.c (class remote_target) <commit_resume>: Rename to...
1996 <commit_resumed>: ... this.
1997 (struct stop_reply): Move up.
1998 (remote_target::commit_resume): Rename to...
1999 (remote_target::commit_resumed): ... this. Check if there is any
2000 thread pending vCont resume.
2001 (remote_target::remote_stop_ns): Generate stop replies for resumed
2002 but pending vCont threads.
2003 (remote_target::wait_ns): Add gdb_assert.
2004 * target-delegates.c: Regenerate.
2005 * target.c (target_wait, target_resume): Assert that the current
2006 process_stratum target isn't in commit-resumed state.
2007 (defer_target_commit_resume): Remove.
2008 (target_commit_resume): Remove.
2009 (target_commit_resumed): New.
2010 (make_scoped_defer_target_commit_resume): Remove.
2011 (target_stop): Assert that the current process_stratum target
2012 isn't in commit-resumed state.
2013 * target.h (struct target_ops) <commit_resume>: Rename to ...
2014 <commit_resumed>: ... this.
2015 (target_commit_resume): Remove.
2016 (target_commit_resumed): New.
2017 (make_scoped_defer_target_commit_resume): Remove.
2018 * top.c (wait_sync_command_done): Use
2019 scoped_enable_commit_resumed.
2021 2021-03-26 Pedro Alves <pedro@palves.net>
2023 * target.c (target_always_non_stop_p): Also check whether the
2026 2021-03-26 Tom Tromey <tom@tromey.com>
2028 * dwarf2/read.c (dwarf2_read_debug_names)
2029 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2030 (dw2_debug_names_iterator::next, create_type_unit_group):
2033 2021-03-25 Pedro Alves <pedro@palves.net>
2035 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2036 around setting the breakpoint.
2038 2021-03-25 Pedro Alves <pedro@palves.net>
2041 (remote_target::check_pending_events_prevent_wildcard_vcont):
2042 Check whether the event's ptid is not null_ptid before looking up
2043 the corresponding inferior.
2045 2021-03-24 Changbin Du <changbin.du@gmail.com>
2047 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2050 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2052 * target.h (current_top_target): Remove, make callers use the
2053 current inferior instead.
2054 * target.c (current_top_target): Remove.
2056 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2058 * target.h (target_shortname): Change to function declaration.
2059 (target_longname): Likewise.
2060 (target_attach_no_wait): Likewise.
2061 (target_post_attach): Likewise.
2062 (target_prepare_to_store): Likewise.
2063 (target_supports_enable_disable_tracepoint): Likewise.
2064 (target_supports_string_tracing): Likewise.
2065 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2066 (target_supports_dumpcore): Likewise.
2067 (target_dumpcore): Likewise.
2068 (target_can_run_breakpoint_commands): Likewise.
2069 (target_files_info): Likewise.
2070 (target_post_startup_inferior): Likewise.
2071 (target_insert_fork_catchpoint): Likewise.
2072 (target_remove_fork_catchpoint): Likewise.
2073 (target_insert_vfork_catchpoint): Likewise.
2074 (target_remove_vfork_catchpoint): Likewise.
2075 (target_insert_exec_catchpoint): Likewise.
2076 (target_remove_exec_catchpoint): Likewise.
2077 (target_set_syscall_catchpoint): Likewise.
2078 (target_rcmd): Likewise.
2079 (target_can_lock_scheduler): Likewise.
2080 (target_can_async_p): Likewise.
2081 (target_is_async_p): Likewise.
2082 (target_execution_direction): Likewise.
2083 (target_extra_thread_info): Likewise.
2084 (target_pid_to_exec_file): Likewise.
2085 (target_thread_architecture): Likewise.
2086 (target_find_memory_regions): Likewise.
2087 (target_make_corefile_notes): Likewise.
2088 (target_get_bookmark): Likewise.
2089 (target_goto_bookmark): Likewise.
2090 (target_stopped_by_watchpoint): Likewise.
2091 (target_stopped_by_sw_breakpoint): Likewise.
2092 (target_supports_stopped_by_sw_breakpoint): Likewise.
2093 (target_stopped_by_hw_breakpoint): Likewise.
2094 (target_supports_stopped_by_hw_breakpoint): Likewise.
2095 (target_have_steppable_watchpoint): Likewise.
2096 (target_can_use_hardware_watchpoint): Likewise.
2097 (target_region_ok_for_hw_watchpoint): Likewise.
2098 (target_can_do_single_step): Likewise.
2099 (target_insert_watchpoint): Likewise.
2100 (target_remove_watchpoint): Likewise.
2101 (target_insert_hw_breakpoint): Likewise.
2102 (target_remove_hw_breakpoint): Likewise.
2103 (target_can_accel_watchpoint_condition): Likewise.
2104 (target_can_execute_reverse): Likewise.
2105 (target_get_ada_task_ptid): Likewise.
2106 (target_filesystem_is_local): Likewise.
2107 (target_trace_init): Likewise.
2108 (target_download_tracepoint): Likewise.
2109 (target_can_download_tracepoint): Likewise.
2110 (target_download_trace_state_variable): Likewise.
2111 (target_enable_tracepoint): Likewise.
2112 (target_disable_tracepoint): Likewise.
2113 (target_trace_start): Likewise.
2114 (target_trace_set_readonly_regions): Likewise.
2115 (target_get_trace_status): Likewise.
2116 (target_get_tracepoint_status): Likewise.
2117 (target_trace_stop): Likewise.
2118 (target_trace_find): Likewise.
2119 (target_get_trace_state_variable_value): Likewise.
2120 (target_save_trace_data): Likewise.
2121 (target_upload_tracepoints): Likewise.
2122 (target_upload_trace_state_variables): Likewise.
2123 (target_get_raw_trace_data): Likewise.
2124 (target_get_min_fast_tracepoint_insn_len): Likewise.
2125 (target_set_disconnected_tracing): Likewise.
2126 (target_set_circular_trace_buffer): Likewise.
2127 (target_set_trace_buffer_size): Likewise.
2128 (target_set_trace_notes): Likewise.
2129 (target_get_tib_address): Likewise.
2130 (target_set_permissions): Likewise.
2131 (target_static_tracepoint_marker_at): Likewise.
2132 (target_static_tracepoint_markers_by_strid): Likewise.
2133 (target_traceframe_info): Likewise.
2134 (target_use_agent): Likewise.
2135 (target_can_use_agent): Likewise.
2136 (target_augmented_libraries_svr4_read): Likewise.
2137 (target_log_command): Likewise.
2138 * target.c (target_shortname): New.
2139 (target_longname): New.
2140 (target_attach_no_wait): New.
2141 (target_post_attach): New.
2142 (target_prepare_to_store): New.
2143 (target_supports_enable_disable_tracepoint): New.
2144 (target_supports_string_tracing): New.
2145 (target_supports_evaluation_of_breakpoint_conditions): New.
2146 (target_supports_dumpcore): New.
2147 (target_dumpcore): New.
2148 (target_can_run_breakpoint_commands): New.
2149 (target_files_info): New.
2150 (target_post_startup_inferior): New.
2151 (target_insert_fork_catchpoint): New.
2152 (target_remove_fork_catchpoint): New.
2153 (target_insert_vfork_catchpoint): New.
2154 (target_remove_vfork_catchpoint): New.
2155 (target_insert_exec_catchpoint): New.
2156 (target_remove_exec_catchpoint): New.
2157 (target_set_syscall_catchpoint): New.
2159 (target_can_lock_scheduler): New.
2160 (target_can_async_p): New.
2161 (target_is_async_p): New.
2162 (target_execution_direction): New.
2163 (target_extra_thread_info): New.
2164 (target_pid_to_exec_file): New.
2165 (target_thread_architecture): New.
2166 (target_find_memory_regions): New.
2167 (target_make_corefile_notes): New.
2168 (target_get_bookmark): New.
2169 (target_goto_bookmark): New.
2170 (target_stopped_by_watchpoint): New.
2171 (target_stopped_by_sw_breakpoint): New.
2172 (target_supports_stopped_by_sw_breakpoint): New.
2173 (target_stopped_by_hw_breakpoint): New.
2174 (target_supports_stopped_by_hw_breakpoint): New.
2175 (target_have_steppable_watchpoint): New.
2176 (target_can_use_hardware_watchpoint): New.
2177 (target_region_ok_for_hw_watchpoint): New.
2178 (target_can_do_single_step): New.
2179 (target_insert_watchpoint): New.
2180 (target_remove_watchpoint): New.
2181 (target_insert_hw_breakpoint): New.
2182 (target_remove_hw_breakpoint): New.
2183 (target_can_accel_watchpoint_condition): New.
2184 (target_can_execute_reverse): New.
2185 (target_get_ada_task_ptid): New.
2186 (target_filesystem_is_local): New.
2187 (target_trace_init): New.
2188 (target_download_tracepoint): New.
2189 (target_can_download_tracepoint): New.
2190 (target_download_trace_state_variable): New.
2191 (target_enable_tracepoint): New.
2192 (target_disable_tracepoint): New.
2193 (target_trace_start): New.
2194 (target_trace_set_readonly_regions): New.
2195 (target_get_trace_status): New.
2196 (target_get_tracepoint_status): New.
2197 (target_trace_stop): New.
2198 (target_trace_find): New.
2199 (target_get_trace_state_variable_value): New.
2200 (target_save_trace_data): New.
2201 (target_upload_tracepoints): New.
2202 (target_upload_trace_state_variables): New.
2203 (target_get_raw_trace_data): New.
2204 (target_get_min_fast_tracepoint_insn_len): New.
2205 (target_set_disconnected_tracing): New.
2206 (target_set_circular_trace_buffer): New.
2207 (target_set_trace_buffer_size): New.
2208 (target_set_trace_notes): New.
2209 (target_get_tib_address): New.
2210 (target_set_permissions): New.
2211 (target_static_tracepoint_marker_at): New.
2212 (target_static_tracepoint_markers_by_strid): New.
2213 (target_traceframe_info): New.
2214 (target_use_agent): New.
2215 (target_can_use_agent): New.
2216 (target_augmented_libraries_svr4_read): New.
2217 (target_log_command): New.
2218 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2219 * infrun.c (set_schedlock_func): Adjust.
2220 * mi/mi-main.c (exec_reverse_continue): Adjust.
2221 * reverse.c (exec_reverse_once): Adjust.
2222 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2223 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2224 * remote-sim.c (gdbsim_target::detach): Adjust.
2225 (gdbsim_target::files_info): Adjust.
2227 2021-03-24 Tom Tromey <tom@tromey.com>
2229 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2230 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2231 (check_match, dw2_expand_symtabs_matching)
2232 (dwarf2_debug_names_index::map_matching_symbols)
2233 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2235 2021-03-24 Keith Seitz <keiths@redhat.com>
2237 * compile/compile-cplus-types.c
2238 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2241 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2243 * gdbarch.sh (gdbarch_data_registry): Make static.
2244 * gdbarch.c: Re-generate.
2246 2021-03-24 Luis Machado <luis.machado@linaro.org>
2248 * NEWS: Mention memory tagging changes.
2250 2021-03-24 Luis Machado <luis.machado@linaro.org>
2252 * printcmd.c (decode_format): Handle the 'm' modifier.
2253 (do_examine): Display allocation tags when required/supported.
2254 (should_validate_memtags): New function.
2255 (print_command_1): Display memory tag mismatches.
2256 * valprint.c (show_memory_tag_violations): New function.
2257 (value_print_option_defs): Add new option "memory-tag-violations".
2258 (user_print_options) <memory_tag_violations>: Initialize to 1.
2259 * valprint.h (struct format_data) <print_tags>: New field.
2260 (value_print_options) <memory_tag_violations>: New field.
2262 2021-03-24 Luis Machado <luis.machado@linaro.org>
2264 * printcmd.c: Include gdbsupport/rsp-low.h.
2265 (memory_tag_list): New static global.
2266 (process_print_command_args): Factored out of
2268 (print_command_1): Use process_print_command_args.
2269 (show_addr_not_tagged, show_memory_tagging_unsupported)
2270 (memory_tag_command, memory_tag_print_tag_command)
2271 (memory_tag_print_logical_tag_command)
2272 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2273 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2274 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2276 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2278 2021-03-24 Luis Machado <luis.machado@linaro.org>
2280 * aarch64-linux-tdep.c
2281 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2282 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2284 2021-03-24 Luis Machado <luis.machado@linaro.org>
2286 * aarch64-linux-tdep.c
2287 (aarch64_linux_report_signal_info): New function.
2288 (aarch64_linux_init_abi): Register
2289 aarch64_linux_report_signal_info as the report_signal_info hook.
2290 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2291 (SEGV_MTESERR): Define.
2293 2021-03-24 Luis Machado <luis.machado@linaro.org>
2295 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2296 (aarch64_linux_ltag_tests): New function.
2297 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2299 2021-03-24 Luis Machado <luis.machado@linaro.org>
2301 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2302 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2303 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2304 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2306 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2307 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2308 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2309 (aarch64_linux_get_ltag): New functions.
2310 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2311 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2312 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2313 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2315 2021-03-24 Luis Machado <luis.machado@linaro.org>
2317 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2319 (struct smaps_data): New struct.
2320 (decode_vmflags): Handle the 'mt' flag.
2321 (parse_smaps_data): New function, refactored from
2322 linux_find_memory_regions_full.
2323 (linux_address_in_memtag_page): New function.
2324 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2325 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2327 2021-03-24 Luis Machado <luis.machado@linaro.org>
2329 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2330 instead of char arrays.
2332 2021-03-24 Luis Machado <luis.machado@linaro.org>
2334 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2335 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2336 nat/aarch64-mte-linux-ptrace.h.
2337 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2338 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2340 <fetch_memtags>: New method override.
2341 <store_memtags>: New method override.
2342 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2343 (aarch64_linux_nat_target::fetch_memtags): New method.
2344 (aarch64_linux_nat_target::store_memtags): New method.
2345 * arch/aarch64-mte-linux.c: New file.
2346 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2347 (AARCH64_MTE_GRANULE_SIZE): Define.
2348 (aarch64_memtag_type): New enum.
2349 (aarch64_mte_get_tag_granules): New prototype.
2350 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2351 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2352 * nat/aarch64-mte-linux-ptrace.c: New file.
2353 * nat/aarch64-mte-linux-ptrace.h: New file.
2355 2021-03-24 Luis Machado <luis.machado@linaro.org>
2357 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2358 * nat/aarch64-mte-linux-ptrace.h: New file.
2360 2021-03-24 Luis Machado <luis.machado@linaro.org>
2362 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2363 (store_mteregs_to_thread): New function.
2364 (aarch64_linux_nat_target::fetch_registers): Update to call
2365 fetch_mteregs_from_thread.
2366 (aarch64_linux_nat_target::store_registers): Update to call
2367 store_mteregs_to_thread.
2368 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2369 (aarch64_cannot_store_register): Handle MTE registers.
2370 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2371 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2372 <has_mte>: New method.
2373 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2375 2021-03-24 Luis Machado <luis.machado@linaro.org>
2377 * aarch64-linux-nat.c
2378 (aarch64_linux_nat_target::read_description): Take MTE flag into
2380 Slight refactor to hwcap flag checking.
2381 * aarch64-linux-tdep.c
2382 (aarch64_linux_core_read_description): Likewise.
2383 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2385 (aarch64_read_description): Add mte_p parameter and update to use it.
2386 Update the documentation.
2387 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2388 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2389 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2390 (aarch64_create_target_description): Add mte_p parameter and update
2392 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2394 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2395 * features/aarch64-mte.c: New file, generated.
2396 * features/aarch64-mte.xml: New file.
2398 2021-03-24 Luis Machado <luis.machado@linaro.org>
2400 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2401 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2402 * aarch64-linux-tdep.c: Likewise
2403 * arch/aarch64-mte-linux.h: New file.
2405 2021-03-24 Luis Machado <luis.machado@linaro.org>
2407 * remote: Include gdbsupport/selftest.h.
2408 (test_memory_tagging_functions): New function.
2409 (_initialize_remote): Register test_memory_tagging_functions.
2411 2021-03-24 Luis Machado <luis.machado@linaro.org>
2413 * remote.c (PACKET_memory_tagging_feature): New enum.
2414 (remote_memory_tagging_p): New function.
2415 (remote_protocol_features): New "memory-tagging" entry.
2416 (remote_target::remote_query_supported): Handle memory tagging
2418 (remote_target::supports_memory_tagging): Implement.
2419 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2420 (create_store_memtags_request): New functions.
2421 (remote_target::fetch_memtags): Implement.
2422 (remote_target::store_memtags): Implement.
2423 (_initialize_remote): Add new "memory-tagging-feature"
2426 2021-03-24 Luis Machado <luis.machado@linaro.org>
2428 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2429 (default_memtag_matches_p, default_set_memtags)
2430 (default_get_memtag): New functions.
2431 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2432 (default_memtag_matches_p, default_set_memtags)
2433 (default_get_memtag): New prototypes.
2434 * gdbarch.c: Regenerate.
2435 * gdbarch.h: Regenerate.
2436 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2437 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2438 (enum memtag_type): New enum.
2440 2021-03-24 Luis Machado <luis.machado@linaro.org>
2442 * remote.c (remote_target) <supports_memory_tagging>: New method
2444 <fetch_memtags>: New method override.
2445 <store_memtags>: New method override.
2446 (remote_target::supports_memory_tagging): New method.
2447 (remote_target::fetch_memtags): New method.
2448 (remote_target::store_memtags): New method.
2449 * target-delegates.c: Regenerate.
2450 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2452 <fetch_memtags>: New virtual method.
2453 <store_memtags>: New virtual method.
2454 (target_supports_memory_tagging): Define.
2455 (target_fetch_memtags): Define.
2456 (target_store_memtags): Define.
2457 * target-debug.h (target_debug_print_size_t)
2458 (target_debug_print_const_gdb_byte_vector_r)
2459 (target_debug_print_gdb_byte_vector_r): New functions.
2461 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2463 * target.h (target_longname): Remove.
2465 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2467 * target.h (target_is_pushed): Remove, update callers to use
2468 inferior::target_is_pushed instead.
2469 * target.c (target_is_pushed): Remove.
2471 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2473 * target.h (push_target): Remove, update callers to use
2474 inferior::push_target.
2475 * target.c (push_target): Remove.
2476 * inferior.h (class inferior) <push_target>: New overload.
2478 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2480 * target.h (unpush_target): Remove, update all callers
2481 to use `inferior::unpush_target` instead.
2482 (struct target_unpusher) <operator()>: Just declare.
2483 * target.c (unpush_target): Remove.
2484 (target_unpusher::operator()): New.
2486 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2488 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2490 (process_full_comp_unit): Validate the top-level tag before
2491 processing the first DIE.
2492 (read_func_scope): Ensure we have a valid builder.
2494 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2496 * objc-lang.c (objc_demangle): Renamed to
2497 objc_language::demangle_symbol, and moved later in the file.
2498 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2500 (objc_language::demangle_symbol): Defined outside of class
2501 declaration. The definition is the old objc_demangle with NULL
2502 changed to nullptr, and if conditions relating to nullptr pointers
2503 or null character checks made explicit.
2504 * objc-lang.h (objc_demangle): Delete declaration.
2506 2021-03-22 Martin Liska <mliska@suse.cz>
2508 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2509 (_initialize_arm_tdep): Likewise.
2511 2021-03-20 Tom Tromey <tom@tromey.com>
2513 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2514 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2515 * psymtab.h (make_psymbol_functions): Don't declare.
2516 * psymtab.c (make_psymbol_functions): Remove.
2517 (maintenance_print_psymbols): Update.
2518 * psympriv.h (struct psymbol_functions): Add no-argument
2520 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2521 <partial_symtabs>: Remove.
2522 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2523 * elfread.c (read_partial_symbols): Update.
2524 (elf_symfile_read): Remove check for existing partial symbols.
2526 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2528 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2530 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2532 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2533 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2535 2021-03-20 Tom Tromey <tom@tromey.com>
2537 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2538 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2539 * symfile-debug.c (objfile::has_partial_symbols)
2540 (objfile::find_last_source_symtab)
2541 (objfile::forget_cached_source_info)
2542 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2543 (objfile::print_stats, objfile::dump)
2544 (objfile::expand_symtabs_for_function)
2545 (objfile::expand_all_symtabs)
2546 (objfile::expand_symtabs_with_fullname)
2547 (objfile::map_matching_symbols)
2548 (objfile::expand_symtabs_matching)
2549 (objfile::find_pc_sect_compunit_symtab)
2550 (objfile::map_symbol_filenames)
2551 (objfile::find_compunit_symtab_by_address)
2552 (objfile::lookup_global_symbol_language)
2553 (objfile::require_partial_symbols): Update.
2554 * psymtab.c (maintenance_print_psymbols)
2555 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2556 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2557 * objfiles.c (objfile_relocate1): Update.
2558 * elfread.c (elf_symfile_read): Update.
2560 2021-03-20 Tom Tromey <tom@tromey.com>
2562 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2564 2021-03-20 Tom Tromey <tom@tromey.com>
2566 * psymtab.c (psymbol_functions::count_psyms): Rename.
2567 (psymbol_functions::print_stats): Update.
2568 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2571 2021-03-20 Tom Tromey <tom@tromey.com>
2573 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2574 (psymbol_functions::find_pc_sect_psymtab): Rename.
2575 (psymbol_functions::find_pc_sect_compunit_symtab)
2576 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2577 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2579 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2581 2021-03-20 Tom Tromey <tom@tromey.com>
2583 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2584 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2585 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2587 (add_psymbol_to_bcache): Remove.
2588 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2589 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2591 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2592 <add_psymbol>: Likewise.
2593 (standard_psymtab, legacy_psymtab): Likewise.
2594 * mdebugread.c (parse_partial_symbols): Update.
2595 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2596 (handle_psymbol_enumerators): Update.
2597 (new_psymtab): Add partial_symtabs parameter.
2598 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2599 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2601 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2602 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2604 * dbxread.c (read_dbx_symtab): Update.
2605 (start_psymtab): Add partial_symtabs parameter.
2606 (dbx_end_psymtab): Update.
2607 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2608 (ctf_psymtab): Add partial_symtabs parameter.
2609 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2611 (scan_partial_symbols): Add partial_symtabs parameter.
2612 (scan_partial_symbols, elfctf_build_psymtabs)
2613 (ctf_psymtab_add_enums): Update.
2615 2021-03-20 Tom Tromey <tom@tromey.com>
2617 * symfile.c (read_symbols): Use objfile method.
2618 * symfile-debug.c (objfile::require_partial_symbols): New method.
2619 * psymtab.h (require_partial_symbols): Don't declare.
2620 * psymtab.c (require_partial_symbols): Use objfile method. Now
2622 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2623 (psymbol_functions::lookup_symbol)
2624 (psymbol_functions::lookup_global_symbol_language)
2625 (psymbol_functions::find_last_source_symtab)
2626 (psymbol_functions::forget_cached_source_info)
2627 (psymbol_functions::print_stats)
2628 (psymbol_functions::expand_symtabs_for_function)
2629 (psymbol_functions::expand_all_symtabs)
2630 (psymbol_functions::expand_symtabs_with_fullname)
2631 (psymbol_functions::map_symbol_filenames)
2632 (psymbol_functions::map_matching_symbols)
2633 (psymbol_functions::expand_symtabs_matching)
2634 (psymbol_functions::find_compunit_symtab_by_address)
2635 (maintenance_print_psymbols, maintenance_info_psymtabs)
2636 (maintenance_check_psymtabs): Update.
2637 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2640 2021-03-20 Tom Tromey <tom@tromey.com>
2642 * xcoffread.c (xcoff_sym_fns): Update.
2643 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2644 * symfile-debug.c (objfile::has_partial_symbols): Use
2645 can_lazily_read_symbols.
2646 (debug_sym_read_psymbols): Remove.
2647 (debug_sym_fns, install_symfile_debug_logging): Update.
2648 * quick-symbol.h (struct quick_symbol_functions)
2649 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2650 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2651 * mipsread.c (ecoff_sym_fns): Update.
2652 * machoread.c (macho_sym_fns): Update.
2653 * elfread.c (struct lazy_dwarf_reader): New.
2654 (elf_symfile_read): Update.
2655 (read_psyms): Now a method of lazy_dwarf_reader.
2656 (elf_sym_fns): Update.
2657 (elf_sym_fns_lazy_psyms): Remove.
2658 * dbxread.c (aout_sym_fns): Update.
2659 * coffread.c (coff_sym_fns): Update.
2661 2021-03-20 Tom Tromey <tom@tromey.com>
2663 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2664 (reread_symbols): Move reset_psymtabs call later.
2665 * objfiles.c (objfile::objfile): Don't initialize
2668 2021-03-20 Tom Tromey <tom@tromey.com>
2670 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2671 set_partial_symtabs.
2672 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2673 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2675 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2677 (psymbol_functions::find_pc_sect_compunit_symtab)
2678 (psymbol_functions::print_stats, psymbol_functions::dump)
2679 (psymbol_functions::has_symbols): Update.
2680 (make_psymbol_functions, dump_psymtab_addrmap): Add
2681 partial_symtabs parameter.
2682 (maintenance_print_psymbols): Update.
2683 (psymbol_functions::expand_symtabs_matching): Update.
2684 * psympriv.h (struct psymbol_functions): Add constructor.
2685 <m_partial_symtabs>: New member.
2686 <set_partial_symtabs>: New method.
2688 2021-03-20 Tom Tromey <tom@tromey.com>
2690 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2692 (process_psymtab_comp_unit_reader)
2693 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2694 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2695 Reference psymtabs via per_bfd.
2697 2021-03-20 Tom Tromey <tom@tromey.com>
2699 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2701 (add_address_entry): Remove objfile parameter.
2702 (add_address_entry_worker): Update.
2703 (write_address_map): Replace objfile parameter with per_bfd.
2704 (write_gdbindex, write_psymtabs_to_index): Update.
2706 2021-03-20 Tom Tromey <tom@tromey.com>
2708 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2709 print_bcache parameter.
2710 * symfile-debug.c (objfile::print_stats): Add print_bcache
2712 * quick-symbol.h (struct quick_symbol_functions)
2713 <print_stats>: Add print_bcache parameter.
2714 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2716 (print_objfile_statistics): Move psymtab code to psymtab.c.
2717 * psymtab.c (count_psyms): Move from symmisc.c.
2718 (psymbol_functions::print_stats): Print partial symbol and bcache
2719 statistics. Add print_bcache parameter.
2720 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2721 (struct objfile) <print_stats>: Add print_bcache parameter.
2722 * maint.c (maintenance_print_statistics): Update.
2724 2021-03-20 Tom Tromey <tom@tromey.com>
2726 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2728 * dwarf2/read.c (create_addrmap_from_index)
2729 (create_addrmap_from_aranges): Set per_bfd addrmap.
2730 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2731 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2733 (dwarf2_read_debug_names): Don't set partial_symtabs.
2734 (dwarf2_initialize_objfile): Likewise.
2736 2021-03-20 Tom Tromey <tom@tromey.com>
2738 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2741 2021-03-20 Tom Tromey <tom@tromey.com>
2743 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2744 (~psymtab_discarder, keep): Update.
2745 <m_objfile>: Remove.
2746 <m_partial_symtabs>: New member.
2747 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2749 2021-03-20 Tom Tromey <tom@tromey.com>
2751 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2752 (xcoff_end_psymtab): Update.
2753 (scan_xcoff_symtab): Add partial_symtabs parameter.
2754 (xcoff_initial_scan): Update.
2755 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2756 * mdebugread.c (mdebug_build_psymtabs): Update.
2757 (parse_partial_symbols): Add partial_symtabs parameter.
2758 * dbxread.c (dbx_symfile_read): Update.
2759 (read_dbx_symtab): Add partial_symtabs parameter.
2760 (read_dbx_symtab): Update.
2761 (dbx_end_psymtab): Add partial_symtabs parameter.
2763 2021-03-20 Tom Tromey <tom@tromey.com>
2765 * quick-symbol.h (struct quick_symbol_functions)
2766 <relocated>: New method.
2767 * psymtab.h (struct psymbol_functions) <relocated>: New
2769 <fill_psymbol_map>: Declare method.
2770 <m_psymbol_map>: New member.
2771 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2772 (psymbol_functions::find_compunit_symtab_by_address): Update.
2773 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2774 (struct objfile) <psymbol_map>: Remove.
2775 * objfiles.c (objfile_relocate1): Update.
2777 2021-03-20 Tom Tromey <tom@tromey.com>
2779 * psympriv.h (struct psymbol_functions): New.
2780 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2781 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2782 (objfile::lookup_global_symbol_language): Update.
2783 * quick-symbol.h (struct quick_symbol_functions): Convert function
2784 pointers to methods. Add virtual destructor.
2785 (quick_symbol_functions_up): New typedef.
2786 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2787 (dwarf2_debug_names_functions): Don't declare.
2788 (make_psymbol_functions): Declare.
2789 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2790 (psymbol_functions::find_pc_sect_compunit_symtab)
2791 (psymbol_functions::lookup_symbol)
2792 (psymbol_functions::lookup_global_symbol_language)
2793 (psymbol_functions::find_last_source_symtab)
2794 (psymbol_functions::forget_cached_source_info)
2795 (psymbol_functions::print_stats, psymbol_functions::dump)
2796 (psymbol_functions::expand_symtabs_for_function)
2797 (psymbol_functions::expand_all_symtabs)
2798 (psymbol_functions::expand_symtabs_with_fullname)
2799 (psymbol_functions::map_symbol_filenames)
2800 (psymbol_functions::map_matching_symbols)
2801 (psymbol_functions::expand_symtabs_matching)
2802 (psymbol_functions::has_symbols)
2803 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2804 (psym_functions): Remove.
2805 (make_psymbol_functions): New function.
2806 * objfiles.h (struct objfile) <qf>: Change type.
2807 * elfread.c (elf_symfile_read): Update.
2808 * dwarf2/read.c (struct dwarf2_base_index_functions)
2809 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2810 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2811 (dwarf2_base_index_functions::find_last_source_symtab)
2812 (dwarf2_base_index_functions::forget_cached_source_info)
2813 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2814 (dwarf2_gdb_index::lookup_symbol)
2815 (dwarf2_base_index_functions::print_stats)
2816 (dwarf2_gdb_index::dump)
2817 (dwarf2_gdb_index::expand_symtabs_for_function)
2818 (dwarf2_base_index_functions::expand_all_symtabs)
2819 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2821 (dwarf2_gdb_index::map_matching_symbols): New method.
2822 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2823 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2824 (dwarf2_base_index_functions::map_symbol_filenames)
2825 (dwarf2_base_index_functions::has_symbols): Rename.
2826 (dwarf2_gdb_index_functions): Remove.
2827 (dwarf2_debug_names_index::lookup_symbol)
2828 (dwarf2_debug_names_index::dump)
2829 (dwarf2_debug_names_index::expand_symtabs_for_function)
2830 (dwarf2_debug_names_index::map_matching_symbols)
2831 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2832 (dwarf2_debug_names_functions): Remove.
2833 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2836 2021-03-20 Tom Tromey <tom@tromey.com>
2838 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2840 * xcoffread.c (xcoff_sym_fns): Update.
2841 * symfile.h (struct sym_fns) <qf>: Remove.
2842 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2843 * symfile-debug.c (objfile::has_partial_symbols)
2844 (objfile::find_last_source_symtab)
2845 (objfile::forget_cached_source_info)
2846 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2847 (objfile::print_stats, objfile::dump)
2848 (objfile::expand_symtabs_for_function)
2849 (objfile::expand_all_symtabs)
2850 (objfile::expand_symtabs_with_fullname)
2851 (objfile::map_matching_symbols)
2852 (objfile::expand_symtabs_matching)
2853 (objfile::find_pc_sect_compunit_symtab)
2854 (objfile::map_symbol_filenames)
2855 (objfile::find_compunit_symtab_by_address)
2856 (objfile::lookup_global_symbol_language, debug_sym_fns)
2857 (install_symfile_debug_logging): Update.
2858 * objfiles.h (struct objfile) <qf>: New member.
2859 * mipsread.c (ecoff_sym_fns): Update.
2860 * machoread.c (macho_sym_fns): Update.
2861 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2863 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2864 * dbxread.c (aout_sym_fns): Update.
2865 * coffread.c (coff_sym_fns): Update.
2867 2021-03-20 Tom Tromey <tom@tromey.com>
2869 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2870 (expand_symtabs_file_matcher_ftype)
2871 (expand_symtabs_symbol_matcher_ftype)
2872 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2873 Move to quick-symbol.h.
2874 * quick-symbol.h: New file.
2876 2021-03-20 Tom Tromey <tom@tromey.com>
2878 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2879 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2880 (basic_lookup_transparent_type_quick)
2881 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2882 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2884 * symmisc.c (print_objfile_statistics, dump_objfile)
2885 (maintenance_expand_symtabs): Update.
2886 * symfile.c (symbol_file_add_with_addrs)
2887 (expand_symtabs_matching, map_symbol_filenames): Update.
2888 * symfile-debug.c (objfile::has_partial_symbols)
2889 (objfile::find_last_source_symtab)
2890 (objfile::forget_cached_source_info)
2891 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2892 (objfile::print_stats, objfile::dump)
2893 (objfile::expand_symtabs_for_function)
2894 (objfile::expand_all_symtabs)
2895 (objfile::expand_symtabs_with_fullname)
2896 (objfile::map_matching_symbols)
2897 (objfile::expand_symtabs_matching)
2898 (objfile::find_pc_sect_compunit_symtab)
2899 (objfile::map_symbol_filenames)
2900 (objfile::find_compunit_symtab_by_address)
2901 (objfile::lookup_global_symbol_language): New methods.
2902 (debug_sym_quick_functions): Remove.
2903 (debug_sym_fns, install_symfile_debug_logging): Update.
2904 * source.c (forget_cached_source_info_for_objfile)
2905 (select_source_symtab): Update.
2906 * objfiles.h (struct objfile): Add methods corresponding to
2907 quick_symbol_functions.
2908 * objfiles.c (objfile::has_partial_symbols): Move to
2910 * linespec.c (iterate_over_all_matching_symtabs): Update.
2911 * cp-support.c (add_symbol_overload_list_qualified): Update.
2912 * ada-lang.c (add_nonlocal_symbols): Update.
2914 2021-03-20 Tom Tromey <tom@tromey.com>
2916 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2917 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2919 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2920 * psymtab.c (psym_has_symbols): Return bool.
2921 * objfiles.c (objfile::has_partial_symbols): Return bool.
2922 * dwarf2/read.c (dw2_has_symbols): Return bool.
2924 2021-03-20 Tom Tromey <tom@tromey.com>
2926 * symfile.c (read_symbols): Update.
2927 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2928 (objfile_has_partial_symbols): Don't declare.
2929 * objfiles.c (objfile::has_partial_symbols): Rename from
2930 objfile_has_partial_symbols.
2931 (objfile_has_symbols, have_partial_symbols): Update.
2932 * elfread.c (elf_symfile_read): Update.
2933 * dwarf2/read.c (dwarf2_has_info): Update.
2934 * coffread.c (coff_symfile_read): Update.
2936 2021-03-20 Tom Tromey <tom@tromey.com>
2938 * coffread.c: Include dwarf2/public.h.
2939 * dwarf2/frame.c: Include dwarf2/public.h.
2940 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2941 * dwarf2/public.h: New file.
2942 * dwarf2/read.c: Include dwarf2/public.h.
2943 * elfread.c: Include dwarf2/public.h.
2944 * machoread.c: Include dwarf2/public.h.
2945 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2946 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2947 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2948 * xcoffread.c: Include dwarf2/public.h.
2950 2021-03-20 Tom Tromey <tom@tromey.com>
2952 * symfile.h (enum dwarf2_section_enum)
2953 (dwarf2_get_section_info): Move to dwarf2/read.h.
2954 * dwarf2/read.h (enum dwarf2_section_enum)
2955 (dwarf2_get_section_info): Move from symfile.h.
2957 2021-03-19 Pedro Alves <pedro@palves.net>
2959 * thread.c (any_thread_of_inferior): Check if there's a selected
2960 thread before calling inferior_thread().
2962 2021-03-18 Tom Tromey <tromey@adacore.com>
2964 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2966 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2967 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2969 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2971 * python/py-param.c (get_set_value): Update header comment.
2973 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2975 * infrun.c (check_multi_target_resumption): Remove argument to
2976 all_non_exited_inferiors.
2978 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2980 * windows-nat.c (windows_init_thread_list): Add message to
2983 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2985 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2986 well as PyLong_Check for Python 2.
2988 2021-03-15 Tom Tromey <tromey@adacore.com>
2991 * rust-exp.y (maker_map): Use gdb::hash_enum.
2992 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2994 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2996 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2999 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3001 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3002 parameter, adjust caller.
3004 2021-03-15 Tom Tromey <tromey@adacore.com>
3006 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3008 2021-03-15 Tom Tromey <tromey@adacore.com>
3010 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3011 ada_ensure_varsize_limit.
3013 2021-03-15 Tom Tromey <tromey@adacore.com>
3015 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3017 * ada-exp.y (maybe_overload): New function.
3018 (ada_wrap_overload): New function.
3019 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3020 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3021 (or_else_exp, xor_exp, primary): Update.
3023 2021-03-15 Tom Tromey <tromey@adacore.com>
3026 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3027 call for tagged type.
3029 2021-03-15 Tom Tromey <tromey@adacore.com>
3031 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3034 2021-03-15 Tom Tromey <tromey@adacore.com>
3036 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3038 (ada_assign_operation::evaluate): Update.
3039 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3042 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3044 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3046 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3048 * python/python.c (gdbpy_source_objfile_script): Use
3049 make_scoped_restore to restore gdbpy_current_objfile.
3050 (gdbpy_execute_objfile_script): Likewise.
3052 2021-03-14 Tom Tromey <tom@tromey.com>
3054 * dwarf2/read.c (read_attribute_value): Use cu_header
3057 2021-03-14 Tom Tromey <tom@tromey.com>
3059 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3060 (peek_die_abbrev): Use reader.abfd.
3062 2021-03-14 Tom Tromey <tom@tromey.com>
3064 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3067 2021-03-13 Tom Tromey <tom@tromey.com>
3069 * dwarf2/read.c (struct partial_die_info): Update.
3070 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3071 (load_partial_dies, partial_die_info::partial_die_info): Update.
3072 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3074 2021-03-13 Tom Tromey <tom@tromey.com>
3076 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3078 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3081 * cp-support.c: Use scoped_segv_handler_restore.
3082 * event-top.c (thread_local_segv_handler): Made static.
3083 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3085 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3087 * event-top.h (class scoped_segv_handler_restore): New class.
3088 (thread_local_segv_handler): Removed.
3090 2021-03-10 Tom Tromey <tromey@adacore.com>
3092 * parser-defs.h (parser_state): Change completion to bool.
3093 <parse_completion>: Likewise.
3094 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3095 (ada_resolve_variable, ada_resolve_function): Update.
3096 * ada-lang.c (ada_find_operator_symbol): Change
3097 parse_completion to bool.
3098 (ada_resolve_funcall, ada_resolve_variable)
3099 (ada_resolve_function): Likewise.
3101 2021-03-09 Tom Tromey <tromey@adacore.com>
3103 * eval.c (operation::evaluate_funcall): Use function formal
3104 parameter types when evaluating.
3106 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3108 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3109 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3110 and owner to m_owner.
3112 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3114 * f-exp.h (eval_op_f_loc): Declare.
3115 (expr::fortran_loc_operation): New typedef.
3116 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3118 (f77_keywords): Add LOC keyword.
3119 * f-lang.c (eval_op_f_loc): New function.
3120 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3122 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3124 * f-exp.h (eval_op_f_array_shape): Declare.
3125 (fortran_array_shape_operation): New type.
3126 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3128 (f77_keywords): Add "shape" keyword.
3129 * f-lang.c (fortran_array_shape): New function.
3130 (eval_op_f_array_shape): New function.
3131 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3133 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3135 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3137 (expr::fortran_array_size_1arg): New type.
3138 (expr::fortran_array_size_2arg): Likewise.
3139 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3140 UNOP_OR_BINOP_INTRINSIC.
3141 (f77_keywords): Add "size" keyword.
3142 * f-lang.c (fortran_array_size): New function.
3143 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3144 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3146 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3148 * f-exp.h (eval_op_f_rank): Declare.
3149 (expr::fortran_rank_operation): New typedef.
3150 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3152 (f77_keywords): Add "rank" keyword.
3153 * f-lang.c (eval_op_f_rank): New function.
3154 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3156 2021-03-08 Tom Tromey <tom@tromey.com>
3158 * printcmd.c (set_command): Remove null check.
3159 * value.c (init_if_undefined_command): Remove null check.
3161 2021-03-08 Tom Tromey <tom@tromey.com>
3163 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3165 * p-exp.y (variable): Update.
3166 * go-exp.y (variable): Update.
3167 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3168 Remove overload for objfile.
3169 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3171 (check_objfile): Likewise.
3172 (dump_for_expression): Likewise. Remove overload for objfile.
3173 (class var_msym_value_operation): Use bound_minimal_symbol.
3174 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3176 (var_msym_value_operation::evaluate_for_address)
3177 (var_msym_value_operation::evaluate_for_sizeof)
3178 (var_msym_value_operation::evaluate_for_cast): Update.
3179 * d-exp.y (PrimaryExpression): Update.
3180 * c-exp.y (variable): Update.
3181 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3182 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3184 * ada-exp.y (write_var_or_type): Update.
3186 2021-03-08 Tom Tromey <tom@tromey.com>
3188 * parser-defs.h (exp_uses_objfile): Return bool.
3189 * parse.c (exp_uses_objfile): Return bool.
3191 2021-03-08 Tom Tromey <tom@tromey.com>
3193 * value.h (eval_skip_value): Don't declare.
3194 * opencl-lang.c (eval_opencl_assign): Update.
3195 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3196 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3197 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3198 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3199 * expop.h (typeof_operation::evaluate)
3200 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3201 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3202 (cxx_cast_operation::evaluate): Update.
3203 * eval.c (eval_skip_value): Remove.
3204 (eval_op_scope, eval_op_var_entry_value)
3205 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3206 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3207 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3208 (eval_op_binary, eval_op_subscript, eval_op_equal)
3209 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3210 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3211 (eval_op_complement, eval_op_lognot, eval_op_ind)
3212 (eval_op_memval, eval_op_preinc, eval_op_predec)
3213 (eval_op_postinc, eval_op_postdec, eval_op_type)
3214 (eval_binop_assign_modify, eval_op_objc_msgcall)
3215 (eval_multi_subscript, logical_and_operation::evaluate)
3216 (logical_or_operation::evaluate, array_operation::evaluate)
3217 (operation::evaluate_for_cast)
3218 (var_msym_value_operation::evaluate_for_cast)
3219 (var_value_operation::evaluate_for_cast): Update.
3220 * c-lang.c (c_string_operation::evaluate): Update.
3221 * c-exp.h (objc_nsstring_operation::evaluate)
3222 (objc_selector_operation::evaluate): Update.
3223 * ada-lang.c (ada_assign_operation::evaluate)
3224 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3225 (ada_atr_size): Update.
3227 2021-03-08 Tom Tromey <tom@tromey.com>
3229 * eval.c: Merge "namespace" scopes.
3231 2021-03-08 Tom Tromey <tom@tromey.com>
3233 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3235 * parse.c (expr_builder::expr_builder, expr_builder::release):
3238 2021-03-08 Tom Tromey <tom@tromey.com>
3240 * parse.c (expression::expression, expression::~expression):
3242 * expression.h (struct expression): Inline constructor. Remove
3245 2021-03-08 Tom Tromey <tom@tromey.com>
3247 * std-operator.def (BINOP_END): Remove.
3248 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3249 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3250 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3251 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3252 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3255 2021-03-08 Tom Tromey <tom@tromey.com>
3257 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3259 2021-03-08 Tom Tromey <tom@tromey.com>
3261 * std-operator.def (OP_EXTENDED0): Remove.
3263 2021-03-08 Tom Tromey <tom@tromey.com>
3265 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3266 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3269 2021-03-08 Tom Tromey <tom@tromey.com>
3271 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3272 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3274 2021-03-08 Tom Tromey <tom@tromey.com>
3276 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3277 * ada-lang.c (ada_binop_minmax): Update.
3278 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3279 Use BINOP_MIN and BINOP_MAX.
3281 2021-03-08 Tom Tromey <tom@tromey.com>
3283 * value.h (evaluate_subexp_with_coercion): Don't declare.
3284 * parse.c (exp_descriptor_standard): Remove.
3285 (expr_builder::expr_builder, expr_builder::release): Update.
3286 (expression::expression): Remove size_t parameter.
3287 (expression::~expression): Simplify.
3288 (expression::resize): Remove.
3289 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3290 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3291 (write_exp_elt_longcst, write_exp_elt_floatcst)
3292 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3293 (write_exp_string_vector, write_exp_bitstring): Remove.
3294 * p-lang.h (class pascal_language) <opcode_print_table,
3295 op_print_tab>: Remove.
3296 * p-lang.c (pascal_language::op_print_tab): Remove.
3297 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3299 * objc-lang.c (objc_op_print_tab): Remove.
3300 (class objc_language) <opcode_print_table>: Remove.
3301 * m2-lang.h (class m2_language) <opcode_print_table,
3302 op_print_tab>: Remove.
3303 * m2-lang.c (m2_language::op_print_tab): Remove.
3304 * language.h (struct language_defn) <post_parser, expression_ops,
3305 opcode_print_table>: Remove.
3306 * language.c (language_defn::expression_ops)
3307 (auto_or_unknown_language::opcode_print_table): Remove.
3308 * go-lang.h (class go_language) <opcode_print_table,
3309 op_print_tab>: Remove.
3310 * go-lang.c (go_language::op_print_tab): Remove.
3311 * f-lang.h (class f_language) <opcode_print_table>: Remove
3312 <op_print_tab>: Remove.
3313 * f-lang.c (f_language::op_print_tab): Remove.
3314 * expression.h (union exp_element): Remove.
3315 (struct expression): Remove size_t parameter from constructor.
3317 <first_opcode>: Update.
3318 <nelts, elts>: Remove.
3319 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3320 (evaluate_subexp_standard, print_expression, op_string)
3321 (dump_raw_expression): Don't declare.
3322 * expprint.c (print_expression, print_subexp)
3323 (print_subexp_funcall, print_subexp_standard, op_string)
3324 (dump_raw_expression, dump_subexp, dump_subexp_body)
3325 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3326 (dump_prefix_expression): Update.
3327 * eval.c (evaluate_subexp): Remove.
3328 (evaluate_expression, evaluate_type): Update.
3329 (evaluate_subexpression_type): Remove.
3330 (fetch_subexp_value): Remove "pc" parameter. Update.
3331 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3332 (evaluate_subexp_standard, evaluate_subexp_for_address)
3333 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3334 (evaluate_subexp_for_cast): Remove.
3335 (parse_and_eval_type): Update.
3336 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3337 * d-lang.c (d_op_print_tab): Remove.
3338 (class d_language) <opcode_print_table>: Remove.
3339 * c-lang.h (c_op_print_tab): Don't declare.
3340 * c-lang.c (c_op_print_tab): Remove.
3341 (class c_language, class cplus_language, class asm_language, class
3342 minimal_language) <opcode_print_table>: Remove.
3343 * breakpoint.c (update_watchpoint, watchpoint_check)
3344 (watchpoint_exp_is_const, watch_command_1): Update.
3345 * ax-gdb.h (union exp_element): Don't declare.
3346 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3347 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3348 (gen_expr_binop_rest): Remove.
3349 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3350 * ada-lang.c (ada_op_print_tab): Remove.
3351 (class ada_language) <post_parser, opcode_print_table>: Remove.
3353 2021-03-08 Tom Tromey <tom@tromey.com>
3355 * go-lang.c (go_language::expression_ops): Don't declare.
3356 * go-lang.h (class go_language) <expression_ops>: Remove.
3357 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3359 (class opencl_language) <expression_ops>: Remove.
3360 * d-lang.c (class d_language) <expression_ops>: Remove.
3361 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3362 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3363 (class c_language, class cplus_language, class asm_language)
3364 (class minimal_language) <expression_ops>: Remove.
3366 2021-03-08 Tom Tromey <tom@tromey.com>
3368 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3369 (evaluate_subexp_type, assign_aggregate)
3370 (aggregate_assign_positional, aggregate_assign_from_choices)
3371 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3372 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3373 (ada_operator_check, ada_forward_operator_length)
3374 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3376 (post_parser): Update.
3377 (class ada_language) <expresssion_ops>: Remove.
3379 2021-03-08 Tom Tromey <tom@tromey.com>
3381 * m2-lang.h (class m2_language) <expresssion_ops,
3382 exp_descriptor_modula2>: Remove.
3383 * m2-lang.c (evaluate_subexp_modula2)
3384 (m2_language::exp_descriptor_modula2): Remove.
3386 2021-03-08 Tom Tromey <tom@tromey.com>
3388 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3389 <exp_descriptor_tab>: Remove.
3390 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3391 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3392 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3393 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3396 2021-03-08 Tom Tromey <tom@tromey.com>
3398 * rust-lang.h (class rust_language) <expression_ops,
3399 exp_descriptor_tab>: Remove.
3400 * rust-lang.c (rust_evaluate_funcall): Remove.
3401 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3403 (rust_evaluate_subexp): Remove.
3404 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3405 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3406 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3408 2021-03-08 Tom Tromey <tom@tromey.com>
3410 * ada-exp.y: Create operations.
3411 (empty_stoken): Remove.
3412 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3413 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3414 (components): New global.
3415 (push_component, choice_component, pop_component, pop_components):
3417 (associations): New global
3418 (push_association, pop_association, pop_associations): New
3420 (ada_parse): Update.
3421 (write_var_from_sym, write_int): Create operations.
3422 (write_exp_op_with_string): Remove.
3423 (write_object_renaming, write_selectors, write_ambiguous_var)
3424 (write_var_or_type, write_name_assoc): Create operations.
3425 * ada-lang.h (ada_index_type): Declare.
3426 * ada-lang.c (ada_index_type): No longer static.
3428 2021-03-08 Tom Tromey <tom@tromey.com>
3430 * f-exp.y: Create operations.
3431 (f_language::parser): Update.
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3435 * m2-exp.y: Create operations.
3436 (m2_language::parser): Update.
3438 2021-03-08 Tom Tromey <tom@tromey.com>
3440 * p-exp.y: Create operations.
3441 (pascal_language::parser): Update.
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3445 * d-exp.y: Create operations.
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3450 * go-exp.y: Create operations.
3451 (go_language::parser): Update.
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3455 * objc-lang.c (end_msglist): Create operations.
3456 * c-exp.y: Change parser to create operations.
3457 (write_destructor_name): Remove.
3460 2021-03-08 Tom Tromey <tom@tromey.com>
3462 * rust-exp.y: Create operations.
3463 (rust_parser::convert_params_to_expression): Change return type.
3464 (binop_maker_ftype): New typedef.
3465 (maker_map): New global.
3466 (rust_parser::convert_ast_to_expression): Change return type.
3467 (rust_language::parser): Update.
3468 (_initialize_rust_exp): Initialize maker_map.
3470 2021-03-08 Tom Tromey <tom@tromey.com>
3472 * stap-probe.c (binop_maker_ftype): New typedef.
3473 (stap_maker_map): New global.
3474 (stap_make_binop): New function.
3475 (stap_parse_register_operand): Return operation_up.
3476 (stap_parse_single_operand, stap_parse_argument_conditionally)
3477 (stap_parse_argument_1): Likewise.
3478 (stap_parse_argument): Create operations.
3479 (stap_probe::parse_arguments): Update.
3480 (_initialize_stap_probe): Initialize stap_maker_map.
3481 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3483 * i386-tdep.h (i386_stap_parse_special_token): Change return
3485 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3486 (i386_stap_parse_special_token_three_arg_disp)
3487 (i386_stap_parse_special_token): Change return type.
3488 * gdbarch.sh (stap_parse_special_token): Change return type.
3489 * gdbarch.c: Rebuild.
3490 * gdbarch.h: Rebuild.
3491 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3493 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3496 2021-03-08 Tom Tromey <tom@tromey.com>
3498 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3499 * gdbarch.h: Rebuild.
3500 * gdbarch.c: Rebuild.
3501 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3502 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3504 (amd64_dtrace_parse_probe_argument): Update.
3506 2021-03-08 Tom Tromey <tom@tromey.com>
3508 * parser-defs.h (struct parser_state) <push, push_new,
3509 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3510 wrap2>: New methods.
3511 <m_operations>: New member.
3512 * parse.c (parser_state::push_c_string)
3513 (parser_state::push_symbol, parser_state::push_dollar): New
3516 2021-03-08 Tom Tromey <tom@tromey.com>
3518 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3520 (struct parser_state) <mark_struct_expression>: New method.
3521 * parse.c (parser_state::mark_struct_expression): Update assert.
3522 (parser_state::mark_struct_expression): New method.
3523 (parser_state::mark_completion_tag): Update assert.
3524 (parse_expression_for_completion): Handle expout_last_op.
3526 2021-03-08 Tom Tromey <tom@tromey.com>
3528 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3530 * value.h (fetch_subexp_value): Add "op" parameter.
3531 * value.c (init_if_undefined_command): Update.
3532 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3533 * stap-probe.c (stap_probe::compile_to_ax): Update.
3534 * printcmd.c (set_command): Update.
3535 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3537 * parser-defs.h (struct expr_builder) <set_operation>: New
3539 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3540 * expression.h (struct expression) <first_opcode>: Update.
3542 * expprint.c (dump_raw_expression, dump_prefix_expression):
3544 * expop.h (class var_value_operation) <get_symbol>: New method.
3545 (class register_operation) <get_name>: New method.
3546 (class equal_operation): No longer a typedef, now a subclass.
3547 (class unop_memval_operation) <get_type>: New method.
3548 (class assign_operation) <get_lhs>: New method.
3549 (class unop_cast_operation) <get_type>: New method.
3550 * eval.c (evaluate_expression, evaluate_type)
3551 (evaluate_subexpression_type): Update.
3552 (fetch_subexp_value): Add "op" parameter.
3553 (parse_and_eval_type): Update.
3554 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3555 * breakpoint.c (update_watchpoint, watchpoint_check)
3556 (watchpoint_exp_is_const, watch_command_1): Update.
3557 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3560 2021-03-08 Tom Tromey <tom@tromey.com>
3562 * ada-lang.c (ada_value_binop): Do not use op_string.
3564 2021-03-08 Tom Tromey <tom@tromey.com>
3566 * expprint.c (dump_for_expression): New overload.
3567 * expop.h (check_objfile, dump_for_expression): Declare new
3569 * ada-lang.c (check_objfile): New overload.
3570 (assign_component, ada_aggregate_component::uses_objfile)
3571 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3572 (ada_aggregate_component::assign_aggregate)
3573 (ada_positional_component::uses_objfile)
3574 (ada_positional_component::dump, ada_positional_component::assign)
3575 (ada_discrete_range_association::uses_objfile)
3576 (ada_discrete_range_association::dump)
3577 (ada_discrete_range_association::assign)
3578 (ada_name_association::uses_objfile, ada_name_association::dump)
3579 (ada_name_association::assign)
3580 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3581 (ada_choices_component::assign)
3582 (ada_others_component::uses_objfile, ada_others_component::dump)
3583 (ada_others_component::assign, ada_assign_operation::evaluate):
3585 * ada-exp.h (ada_string_operation) <get_name>: New method.
3586 (class ada_assign_operation): New.
3587 (class ada_component): New.
3588 (ada_component_up): New typedef.
3589 (class ada_aggregate_operation, class ada_aggregate_component)
3590 (class ada_positional_component, class ada_others_component)
3591 (class ada_association): New.
3592 (ada_association_up): New typedef.
3593 (class ada_choices_component)
3594 (class ada_discrete_range_association)
3595 (class ada_name_association): New.
3597 2021-03-08 Tom Tromey <tom@tromey.com>
3599 * ada-lang.c (ada_var_value_operation::resolve)
3600 (ada_funcall_operation::resolve)
3601 (ada_ternop_slice_operation::resolve): New methods.
3602 * ada-exp.h (struct ada_resolvable): New.
3603 (class ada_var_value_operation): Derive from ada_resolvable.
3604 <get_block, resolve>: New methods.
3605 (class ada_funcall_operation): Derive from ada_resolvable.
3606 <resolve>: New method.
3607 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3608 <resolve>: New method.
3610 2021-03-08 Tom Tromey <tom@tromey.com>
3612 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3613 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3615 (class ada_funcall_operation): New.
3617 2021-03-08 Tom Tromey <tom@tromey.com>
3619 * ada-lang.c (ada_structop_operation::evaluate): New method.
3620 * ada-exp.h (class ada_structop_operation): New.
3622 2021-03-08 Tom Tromey <tom@tromey.com>
3624 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3625 * ada-exp.h (class ada_unop_ind_operation): New.
3627 2021-03-08 Tom Tromey <tom@tromey.com>
3629 * ada-lang.c (ada_binop_exp): No longer static.
3630 * ada-exp.h (ada_binop_exp_operation): New typedef.
3632 2021-03-08 Tom Tromey <tom@tromey.com>
3634 * ada-lang.c (ada_val_atr): No longer static.
3635 (ada_atr_val_operation::evaluate): New method.
3636 * ada-exp.h (class ada_atr_val_operation): New.
3638 2021-03-08 Tom Tromey <tom@tromey.com>
3640 * ada-lang.c (ada_pos_atr): No longer static.
3641 * ada-exp.h (ada_pos_operation): New typedef.
3643 2021-03-08 Tom Tromey <tom@tromey.com>
3645 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3647 (ada_evaluate_subexp): Use it.
3649 2021-03-08 Tom Tromey <tom@tromey.com>
3651 * ada-lang.c (ada_binop_minmax): No longer static.
3652 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3655 2021-03-08 Tom Tromey <tom@tromey.com>
3657 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3659 * ada-exp.h (class ada_var_msym_value_operation): New.
3661 2021-03-08 Tom Tromey <tom@tromey.com>
3663 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3664 (ada_var_value_operation::evaluate): New methods.
3665 * ada-exp.h (class ada_var_value_operation): New.
3667 2021-03-08 Tom Tromey <tom@tromey.com>
3669 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3670 * ada-exp.h (class ada_unop_atr_operation): New.
3672 2021-03-08 Tom Tromey <tom@tromey.com>
3674 * ada-lang.c (ada_binop_in_bounds): No longer static.
3675 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3677 2021-03-08 Tom Tromey <tom@tromey.com>
3679 * ada-lang.c (ada_ternop_slice): No longer static.
3680 * ada-exp.h (class ada_ternop_slice_operation): New.
3682 2021-03-08 Tom Tromey <tom@tromey.com>
3684 * ada-exp.h (ada_bitwise_operation): New template class.
3685 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3686 (ada_bitwise_xor_operation): New typedefs.
3688 2021-03-08 Tom Tromey <tom@tromey.com>
3690 * ada-lang.c (ada_equal_binop): No longer static.
3691 * ada-exp.h (class ada_binop_equal_operation): New.
3693 2021-03-08 Tom Tromey <tom@tromey.com>
3695 * ada-lang.c (ada_mult_binop): No longer static.
3696 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3697 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3699 2021-03-08 Tom Tromey <tom@tromey.com>
3701 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3702 * ada-exp.h (class ada_binop_addsub_operation): New.
3704 2021-03-08 Tom Tromey <tom@tromey.com>
3706 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3707 (ada_resolve_variable): Declare.
3708 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3709 (ada_resolve_variable): New functions.
3710 (resolve_subexp): Update.
3712 2021-03-08 Tom Tromey <tom@tromey.com>
3714 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3716 * c-exp.h (class opencl_ternop_cond_operation): New.
3718 2021-03-08 Tom Tromey <tom@tromey.com>
3720 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3722 * c-exp.h (class opencl_logical_binop_operation): New.
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3726 * opencl-lang.c (opencl_structop_operation::evaluate): New
3728 * c-exp.h (class opencl_structop_operation): New.
3730 2021-03-08 Tom Tromey <tom@tromey.com>
3732 * opencl-lang.c (opencl_logical_not): No longer static. Change
3734 (evaluate_subexp_opencl): Update.
3735 * c-exp.h (opencl_notequal_operation): New typedef.
3737 2021-03-08 Tom Tromey <tom@tromey.com>
3739 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3740 static. Change parameters.
3741 (eval_opencl_assign): No longer static. Add "op" parameter.
3742 (evaluate_subexp_opencl): Update.
3743 * c-exp.h (opencl_binop_operation): New template class.
3744 (opencl_assign_operation, opencl_equal_operation)
3745 (opencl_notequal_operation, opencl_less_operation)
3746 (opencl_gtr_operation, opencl_geq_operation)
3747 (opencl_leq_operation): New typedefs.
3749 2021-03-08 Tom Tromey <tom@tromey.com>
3751 * opencl-lang.c (opencl_value_cast): No longer static.
3752 * c-exp.h (opencl_cast_type_operation): New typedef.
3754 2021-03-08 Tom Tromey <tom@tromey.com>
3756 * f-exp.h (eval_op_f_allocated): Declare.
3757 (fortran_allocated_operation): New typedef.
3758 * f-lang.c (eval_op_f_allocated): No longer static.
3760 2021-03-08 Tom Tromey <tom@tromey.com>
3762 * f-lang.c (eval_op_f_associated): New functions.
3763 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3766 2021-03-08 Tom Tromey <tom@tromey.com>
3768 * f-lang.c (fortran_bound_1arg::evaluate)
3769 (fortran_bound_2arg::evaluate): New methods.
3770 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3773 2021-03-08 Tom Tromey <tom@tromey.com>
3775 * expop.h (class unop_addr_operation) <get_expression>: New
3777 * f-lang.c (fortran_undetermined::value_subarray)
3778 (fortran_undetermined::evaluate): New methods.
3779 (fortran_prepare_argument): New overload.
3780 * f-exp.h (class fortran_range_operation)
3781 (class fortran_undetermined): New classes.
3783 2021-03-08 Tom Tromey <tom@tromey.com>
3785 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3786 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3789 2021-03-08 Tom Tromey <tom@tromey.com>
3791 * expression.h (class operation) <evaluate_funcall>: New methods.
3792 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3793 (class var_value_operation) <evaluate_funcall>: New method.
3794 (class structop_base_operation) <evaluate_funcall>: New method.
3795 (class var_msym_value_operation) <evaluate_funcall>: New method.
3796 (class structop_member_base): New class.
3797 (class structop_member_operation): Derive from
3798 structop_member_base.
3799 (class structop_mptr_operation): Derive from
3800 structop_member_base.
3801 (class funcall_operation): New class.
3802 * eval.c (operation::evaluate_funcall)
3803 (var_value_operation::evaluate_funcall)
3804 (scope_operation::evaluate_funcall)
3805 (structop_member_base::evaluate_funcall)
3806 (structop_base_operation::evaluate_funcall): New methods.
3808 2021-03-08 Tom Tromey <tom@tromey.com>
3810 * expop.h (class array_operation): New.
3811 * eval.c (array_operation::evaluate_struct_tuple)
3812 (array_operation::evaluate): New methods.
3814 2021-03-08 Tom Tromey <tom@tromey.com>
3816 * expop.h (class adl_func_operation): New.
3817 * eval.c (adl_func_operation::evaluate): New method.
3819 2021-03-08 Tom Tromey <tom@tromey.com>
3821 * ada-lang.c (ada_unop_in_range): No longer static.
3822 * ada-exp.h (class ada_unop_range_operation): New.
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3828 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3829 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3831 2021-03-08 Tom Tromey <tom@tromey.com>
3833 * expop.h (class logical_and_operation)
3834 (class logical_or_operation): New.
3835 * eval.c (logical_and_operation::evaluate)
3836 (logical_or_operation::evaluate): New methods.
3837 * ax-gdb.c (logical_and_operation::do_generate_ax)
3838 (logical_or_operation::do_generate_ax): New methods.
3840 2021-03-08 Tom Tromey <tom@tromey.com>
3842 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3844 * m2-exp.h: New file.
3846 2021-03-08 Tom Tromey <tom@tromey.com>
3848 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3849 * rust-exp.h (class rust_aggregate_operation): New.
3851 2021-03-08 Tom Tromey <tom@tromey.com>
3853 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3855 * rust-exp.h (class rust_struct_anon): New.
3856 (class rust_structop): New.
3858 2021-03-08 Tom Tromey <tom@tromey.com>
3860 * rust-lang.c (rust_range): No longer static.
3861 * rust-exp.h (class rust_range_operation): New.
3863 2021-03-08 Tom Tromey <tom@tromey.com>
3865 * rust-lang.c (rust_subscript): No longer static.
3866 * rust-exp.h (class rust_subscript_operation): New.
3868 2021-03-08 Tom Tromey <tom@tromey.com>
3870 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3872 (rust_evaluate_subexp): Update.
3873 * rust-exp.h (class rust_unop_ind_operation): New.
3875 2021-03-08 Tom Tromey <tom@tromey.com>
3877 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3878 longer static. Add "opcode" parameter.
3879 (rust_evaluate_subexp): Update.
3880 * rust-exp.h: New file.
3882 2021-03-08 Tom Tromey <tom@tromey.com>
3884 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3885 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3886 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3887 (evaluate_subexp_f): Update.
3888 * f-exp.h: New file.
3890 2021-03-08 Tom Tromey <tom@tromey.com>
3892 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3893 * ada-exp.h (class ada_ternop_range_operation): New.
3895 2021-03-08 Tom Tromey <tom@tromey.com>
3897 * ada-lang.c (ada_qual_operation::evaluate): New method.
3898 * ada-exp.h (class ada_qual_operation): New.
3900 2021-03-08 Tom Tromey <tom@tromey.com>
3902 * ada-lang.c (ada_string_operation::evaluate): New method.
3903 * ada-exp.h (class ada_string_operation): New.
3905 2021-03-08 Tom Tromey <tom@tromey.com>
3907 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3908 * ada-exp.h: New file.
3910 2021-03-08 Tom Tromey <tom@tromey.com>
3912 * expop.h (class multi_subscript_operation): New.
3913 * eval.c (multi_subscript_operation::evaluate): New method.
3915 2021-03-08 Tom Tromey <tom@tromey.com>
3917 * eval.c (objc_msgcall_operation::evaluate): New method.
3918 * c-exp.h (class objc_msgcall_operation): New.
3920 2021-03-08 Tom Tromey <tom@tromey.com>
3922 * expop.h (class var_value_operation): New.
3923 * eval.c (var_value_operation::evaluate)
3924 (var_value_operation::evaluate_for_address)
3925 (var_value_operation::evaluate_with_coercion)
3926 (var_value_operation::evaluate_for_sizeof)
3927 (var_value_operation::evaluate_for_cast): New methods.
3928 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3930 2021-03-08 Tom Tromey <tom@tromey.com>
3932 * expop.h (cxx_cast_ftype): New typedef.
3933 (cxx_cast_operation): New template.
3934 (dynamic_cast_operation, reinterpret_cast_operation): New
3937 2021-03-08 Tom Tromey <tom@tromey.com>
3939 * expop.h (class unop_cast_type_operation): New.
3940 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3943 2021-03-08 Tom Tromey <tom@tromey.com>
3945 * expop.h (class unop_cast_operation): New.
3946 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3948 2021-03-08 Tom Tromey <tom@tromey.com>
3950 * expop.h (class assign_modify_operation): New.
3951 * eval.c (eval_binop_assign_modify): No longer static.
3952 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3954 2021-03-08 Tom Tromey <tom@tromey.com>
3956 * expop.h (class assign_operation): New.
3957 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3959 2021-03-08 Tom Tromey <tom@tromey.com>
3961 * expop.h (class type_instance_operation): New.
3962 * eval.c (type_instance_operation::evaluate): New method.
3964 2021-03-08 Tom Tromey <tom@tromey.com>
3966 * expop.h (class op_this_operation): New.
3967 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3969 2021-03-08 Tom Tromey <tom@tromey.com>
3971 * expop.h (class unop_memval_operation)
3972 (class unop_memval_type_operation): New.
3973 * eval.c (eval_op_memval): No longer static.
3974 (unop_memval_operation::evaluate_for_address)
3975 (unop_memval_type_operation::evaluate_for_address)
3976 (unop_memval_operation::evaluate_for_sizeof)
3977 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3978 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3979 (unop_memval_type_operation::do_generate_ax): New methods.
3981 2021-03-08 Tom Tromey <tom@tromey.com>
3983 * expop.h (class unop_alignof_operation): New.
3984 * eval.c (eval_op_alignof): No longer static.
3986 2021-03-08 Tom Tromey <tom@tromey.com>
3988 * expop.h (class unop_sizeof_operation): New.
3989 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3991 2021-03-08 Tom Tromey <tom@tromey.com>
3993 * expop.h (class unop_addr_operation): New.
3994 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3996 2021-03-08 Tom Tromey <tom@tromey.com>
3998 * expop.h (class typeid_operation): New.
4000 2021-03-08 Tom Tromey <tom@tromey.com>
4002 * expop.h (class decltype_operation): New.
4004 2021-03-08 Tom Tromey <tom@tromey.com>
4006 * expop.h (class typeof_operation): New.
4008 2021-03-08 Tom Tromey <tom@tromey.com>
4010 * expop.h (class type_operation): New.
4011 * eval.c (eval_op_type): No longer static.
4013 2021-03-08 Tom Tromey <tom@tromey.com>
4015 * expop.h (class unop_ind_base_operation)
4016 (class unop_ind_operation): New.
4017 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4018 (unop_ind_base_operation::evaluate_for_address)
4019 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4020 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4022 2021-03-08 Tom Tromey <tom@tromey.com>
4024 * expop.h (unop_incr_operation): New template.
4025 (preinc_operation, predec_operation, postinc_operation)
4026 (postdec_operation): New typedefs.
4027 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4028 (eval_op_postdec): No longer static.
4030 2021-03-08 Tom Tromey <tom@tromey.com>
4032 * expop.h (unary_ftype): New typedef.
4033 (unop_operation, usual_ax_binop_operation): New templates.
4034 (unary_plus_operation, unary_neg_operation)
4035 (unary_complement_operation, unary_logical_not_operation): New
4037 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4038 (eval_op_lognot): No longer static.
4039 * ax-gdb.c (gen_expr_unop): New function.
4041 2021-03-08 Tom Tromey <tom@tromey.com>
4043 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4045 2021-03-08 Tom Tromey <tom@tromey.com>
4047 * expop.h (class repeat_operation): New.
4048 * eval.c (eval_op_repeat): No longer static. Remove "op"
4050 (evaluate_subexp_standard): Update.
4051 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4053 2021-03-08 Tom Tromey <tom@tromey.com>
4055 * expop.h (class comparison_operation): New.
4056 (equal_operation, notequal_operation, less_operation)
4057 (gtr_operation, geq_operation, leq_operation): New typedefs.
4058 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4059 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4061 2021-03-08 Tom Tromey <tom@tromey.com>
4063 * expop.h (class subscript_operation): New.
4064 * eval.c (eval_op_subscript): No longer static.
4066 2021-03-08 Tom Tromey <tom@tromey.com>
4068 * expop.h (class binop_operation, class usual_ax_binop_operation):
4070 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4071 (div_operation, rem_operation, lsh_operation, rsh_operation)
4072 (bitwise_and_operation, bitwise_ior_operation)
4073 (bitwise_xor_operation): New typedefs.
4074 * eval.c (eval_op_binary): No longer static.
4076 2021-03-08 Tom Tromey <tom@tromey.com>
4078 * expop.h (class sub_operation): New.
4079 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4080 (evaluate_subexp_standard): Update.
4082 2021-03-08 Tom Tromey <tom@tromey.com>
4084 * expop.h (class add_operation): New.
4085 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4086 (evaluate_subexp_standard): Update.
4088 2021-03-08 Tom Tromey <tom@tromey.com>
4090 * expop.h (class concat_operation): New.
4091 * eval.c (eval_op_concat): No longer static. Remove "op"
4093 (evaluate_subexp_standard): Update.
4095 2021-03-08 Tom Tromey <tom@tromey.com>
4097 * expop.h (class structop_member_operation)
4098 (class structop_mptr_operation): New.
4099 * eval.c (eval_op_member): No longer static.
4101 2021-03-08 Tom Tromey <tom@tromey.com>
4103 * expop.h (class structop_ptr_operation): New.
4104 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4107 2021-03-08 Tom Tromey <tom@tromey.com>
4109 * expop.h (class structop_base_operation)
4110 (class structop_operation): New.
4111 * eval.c (eval_op_structop_struct): No longer static.
4113 2021-03-08 Tom Tromey <tom@tromey.com>
4115 * expop.h (class complex_operation): New.
4117 2021-03-08 Tom Tromey <tom@tromey.com>
4119 * eval.c (eval_op_objc_selector): No longer static.
4120 * c-exp.h (class objc_selector_operation): New.
4122 2021-03-08 Tom Tromey <tom@tromey.com>
4124 * eval.c: Include c-exp.h.
4125 * c-exp.h (class objc_nsstring_operation): New.
4127 2021-03-08 Tom Tromey <tom@tromey.com>
4129 * c-lang.c (c_string_operation::evaluate): New method.
4130 * c-exp.h: New file.
4132 2021-03-08 Tom Tromey <tom@tromey.com>
4134 * expop.h (class ternop_cond_operation): New.
4135 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4137 2021-03-08 Tom Tromey <tom@tromey.com>
4139 * expop.h (class ternop_slice_operation): New.
4140 * eval.c (eval_op_ternop): No longer static.
4142 2021-03-08 Tom Tromey <tom@tromey.com>
4144 * expop.h (class string_operation): New.
4145 * eval.c (eval_op_string): No longer static.
4147 2021-03-08 Tom Tromey <tom@tromey.com>
4149 * expop.h (class internalvar_operation): New.
4150 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4152 2021-03-08 Tom Tromey <tom@tromey.com>
4154 * expop.h (class bool_operation): New.
4156 2021-03-08 Tom Tromey <tom@tromey.com>
4158 * expop.h (class register_operation): New.
4159 * eval.c (eval_op_register): No longer static.
4160 * ax-gdb.c (register_operation::do_generate_ax): New method.
4162 2021-03-08 Tom Tromey <tom@tromey.com>
4164 * expop.h (class last_operation): New.
4166 2021-03-08 Tom Tromey <tom@tromey.com>
4168 * expop.h (class func_static_var_operation): New.
4169 * eval.c (eval_op_func_static_var): No longer static.
4171 2021-03-08 Tom Tromey <tom@tromey.com>
4173 * expop.h (class var_entry_value_operation): New.
4174 * eval.c (eval_op_var_entry_value): No longer static.
4176 2021-03-08 Tom Tromey <tom@tromey.com>
4178 * expression.h (class operation) <set_outermost>: New method.
4179 * expop.h (class var_msym_value_operation): New.
4180 * eval.c (eval_op_var_msym_value): No longer static.
4181 (var_msym_value_operation::evaluate_for_address)
4182 (var_msym_value_operation::evaluate_for_sizeof)
4183 (var_msym_value_operation::evaluate_for_cast): New methods.
4184 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4187 2021-03-08 Tom Tromey <tom@tromey.com>
4189 * expop.h (class long_const_operation): New.
4190 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4192 2021-03-08 Tom Tromey <tom@tromey.com>
4194 * expop.h (class scope_operation): New.
4195 * eval.c (eval_op_scope): No longer static.
4196 (scope_operation::evaluate_for_address): New method.
4197 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4199 2021-03-08 Tom Tromey <tom@tromey.com>
4201 * expprint.c (float_const_operation::dump): New method.
4202 * expop.h (float_data): New typedef.
4203 (class float_const_operation): New.
4205 2021-03-08 Tom Tromey <tom@tromey.com>
4207 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4208 * ax-gdb.c (gen_expr_binop): New function.
4209 (gen_expr_structop): Likewise.
4211 2021-03-08 Tom Tromey <tom@tromey.com>
4213 * expprint.c (expr::dump_for_expression): New functions.
4214 * expop.h (dump_for_expression): New overloads.
4215 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4218 2021-03-08 Tom Tromey <tom@tromey.com>
4220 * expression.h (expr::operation): New class.
4221 (expr::make_operation): New function.
4222 (expr::operation_up): New typedef.
4223 * expop.h: New file.
4224 * eval.c (operation::evaluate_for_cast)
4225 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4227 * ax-gdb.c (operation::generate_ax): New method.
4229 2021-03-08 Tom Tromey <tom@tromey.com>
4231 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4232 (gen_expr_binop_rest): New overload.
4234 2021-03-08 Tom Tromey <tom@tromey.com>
4236 * eval.c (eval_multi_subscript): New function.
4237 (evaluate_subexp_standard): Use it.
4239 2021-03-08 Tom Tromey <tom@tromey.com>
4241 * ada-lang.c (ada_binop_exp): New function.
4242 (ada_evaluate_subexp): Use it.
4244 2021-03-08 Tom Tromey <tom@tromey.com>
4246 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4248 (ada_evaluate_subexp): Use it.
4250 2021-03-08 Tom Tromey <tom@tromey.com>
4252 * ada-lang.c (ada_binop_minmax): New function.
4253 (ada_evaluate_subexp): Use it.
4255 2021-03-08 Tom Tromey <tom@tromey.com>
4257 * ada-lang.c (ada_unop_atr): New function.
4258 (ada_evaluate_subexp): Use it.
4260 2021-03-08 Tom Tromey <tom@tromey.com>
4262 * ada-lang.c (ada_binop_in_bounds): New function.
4263 (ada_evaluate_subexp): Use it.
4265 2021-03-08 Tom Tromey <tom@tromey.com>
4267 * ada-lang.c (ada_ternop_slice): New function.
4268 (ada_evaluate_subexp): Use it.
4270 2021-03-08 Tom Tromey <tom@tromey.com>
4272 * ada-lang.c (ada_equal_binop): New function.
4273 (ada_evaluate_subexp): Use it.
4275 2021-03-08 Tom Tromey <tom@tromey.com>
4277 * ada-lang.c (ada_mult_binop): New function.
4278 (ada_evaluate_subexp): Use it.
4280 2021-03-08 Tom Tromey <tom@tromey.com>
4282 * ada-lang.c (ada_abs): New function.
4283 (ada_evaluate_subexp): Use it.
4285 2021-03-08 Tom Tromey <tom@tromey.com>
4287 * ada-lang.c (ada_atr_size): New function.
4288 (ada_evaluate_subexp): Use it.
4290 2021-03-08 Tom Tromey <tom@tromey.com>
4292 * ada-lang.c (ada_atr_tag): New function.
4293 (ada_evaluate_subexp): Use it.
4295 2021-03-08 Tom Tromey <tom@tromey.com>
4297 * ada-lang.c (ada_unop_in_range): New function.
4298 (ada_evaluate_subexp): Use it.
4300 2021-03-08 Tom Tromey <tom@tromey.com>
4302 * ada-lang.c (ada_unop_neg): New function.
4303 (ada_evaluate_subexp): Use it.
4305 2021-03-08 Tom Tromey <tom@tromey.com>
4307 * ada-lang.c (eval_ternop_in_range): New function.
4308 (ada_evaluate_subexp): Use it.
4310 2021-03-08 Tom Tromey <tom@tromey.com>
4312 * opencl-lang.c (eval_opencl_assign): New function.
4313 (evaluate_subexp_opencl): Use it.
4315 2021-03-08 Tom Tromey <tom@tromey.com>
4317 * eval.c (eval_op_objc_msgcall): New function.
4318 (evaluate_subexp_standard): Use it.
4320 2021-03-08 Tom Tromey <tom@tromey.com>
4322 * eval.c (eval_binop_assign_modify): New function.
4323 (evaluate_subexp_standard): Use it.
4325 2021-03-08 Tom Tromey <tom@tromey.com>
4327 * m2-lang.c (eval_op_m2_subscript): New function.
4328 (evaluate_subexp_modula2): Use it.
4330 2021-03-08 Tom Tromey <tom@tromey.com>
4332 * m2-lang.c (eval_op_m2_high): New function.
4333 (evaluate_subexp_modula2): Use it.
4335 2021-03-08 Tom Tromey <tom@tromey.com>
4337 * eval.c (evaluate_subexp_for_address_base): New function.
4338 (evaluate_subexp_for_address): Use it.
4339 (evaluate_subexp_for_sizeof_base): New function.
4340 (evaluate_subexp_for_sizeof): Use it.
4342 2021-03-08 Tom Tromey <tom@tromey.com>
4344 * rust-lang.c (eval_op_rust_structop): New function.
4345 (rust_evaluate_subexp): Use it.
4347 2021-03-08 Tom Tromey <tom@tromey.com>
4349 * rust-lang.c (eval_op_rust_struct_anon): New function.
4350 (rust_evaluate_subexp): Use it.
4352 2021-03-08 Tom Tromey <tom@tromey.com>
4354 * rust-lang.c (eval_op_rust_array): New function.
4355 (rust_evaluate_subexp): Use it.
4357 2021-03-08 Tom Tromey <tom@tromey.com>
4359 * rust-lang.c (eval_op_rust_complement): New function.
4360 (rust_evaluate_subexp): Use it.
4362 2021-03-08 Tom Tromey <tom@tromey.com>
4364 * rust-lang.c (eval_op_rust_ind): New function.
4365 (rust_evaluate_subexp): Use it.
4367 2021-03-08 Tom Tromey <tom@tromey.com>
4369 * rust-lang.c (rust_subscript): Change parameters.
4370 (rust_evaluate_subexp): Update.
4372 2021-03-08 Tom Tromey <tom@tromey.com>
4374 * rust-lang.c (rust_range): Change parameters.
4375 (rust_evaluate_subexp): Update.
4377 2021-03-08 Tom Tromey <tom@tromey.com>
4379 * f-lang.c (eval_op_f_allocated): New function.
4380 (evaluate_subexp_f): Use it.
4382 2021-03-08 Tom Tromey <tom@tromey.com>
4384 * f-lang.c (fortran_require_array): New function.
4385 (evaluate_subexp_f): Use it.
4387 2021-03-08 Tom Tromey <tom@tromey.com>
4389 * f-lang.c (eval_op_f_kind): New function.
4390 (evaluate_subexp_f): Use it.
4392 2021-03-08 Tom Tromey <tom@tromey.com>
4394 * f-lang.c (eval_op_f_cmplx): New function.
4395 (evaluate_subexp_f): Use it.
4397 2021-03-08 Tom Tromey <tom@tromey.com>
4399 * f-lang.c (eval_op_f_modulo): New function.
4400 (evaluate_subexp_f): Use it.
4402 2021-03-08 Tom Tromey <tom@tromey.com>
4404 * f-lang.c (eval_op_f_floor): New function.
4405 (evaluate_subexp_f): Use it.
4407 2021-03-08 Tom Tromey <tom@tromey.com>
4409 * f-lang.c (eval_op_f_ceil): New function.
4410 (evaluate_subexp_f): Use it.
4412 2021-03-08 Tom Tromey <tom@tromey.com>
4414 * f-lang.c (eval_op_f_mod): New function.
4415 (evaluate_subexp_f): Use it.
4417 2021-03-08 Tom Tromey <tom@tromey.com>
4419 * f-lang.c (eval_op_f_abs): New function.
4420 (evaluate_subexp_f): Use it.
4422 2021-03-08 Tom Tromey <tom@tromey.com>
4424 * eval.c (eval_op_type): New function.
4425 (evaluate_subexp_standard): Use it.
4427 2021-03-08 Tom Tromey <tom@tromey.com>
4429 * eval.c (eval_op_postdec): New function.
4430 (evaluate_subexp_standard): Use it.
4432 2021-03-08 Tom Tromey <tom@tromey.com>
4434 * eval.c (eval_op_postinc): New function.
4435 (evaluate_subexp_standard): Use it.
4437 2021-03-08 Tom Tromey <tom@tromey.com>
4439 * eval.c (eval_op_predec): New file.
4440 (evaluate_subexp_standard): Use it.
4442 2021-03-08 Tom Tromey <tom@tromey.com>
4444 * eval.c (eval_op_preinc): New function.
4445 (evaluate_subexp_standard): Use it.
4447 2021-03-08 Tom Tromey <tom@tromey.com>
4449 * eval.c (eval_op_memval): New function.
4450 (evaluate_subexp_standard): Use it.
4452 2021-03-08 Tom Tromey <tom@tromey.com>
4454 * eval.c (eval_op_alignof): New function.
4455 (evaluate_subexp_standard): Use it.
4457 2021-03-08 Tom Tromey <tom@tromey.com>
4459 * eval.c (eval_op_ind): New function.
4460 (evaluate_subexp_standard): Use it.
4462 2021-03-08 Tom Tromey <tom@tromey.com>
4464 * eval.c (eval_op_lognot): New function.
4465 (evaluate_subexp_standard): Use it.
4467 2021-03-08 Tom Tromey <tom@tromey.com>
4469 * eval.c (eval_op_complement): New function.
4470 (evaluate_subexp_standard): Use it.
4472 2021-03-08 Tom Tromey <tom@tromey.com>
4474 * eval.c (eval_op_neg): New function.
4475 (evaluate_subexp_standard): Use it.
4477 2021-03-08 Tom Tromey <tom@tromey.com>
4479 * eval.c (eval_op_plus): New function.
4480 (evaluate_subexp_standard): Use it.
4482 2021-03-08 Tom Tromey <tom@tromey.com>
4484 * eval.c (eval_op_repeat): New function.
4485 (evaluate_subexp_standard): Use it.
4487 2021-03-08 Tom Tromey <tom@tromey.com>
4489 * eval.c (eval_op_leq): New function.
4490 (evaluate_subexp_standard): Use it.
4492 2021-03-08 Tom Tromey <tom@tromey.com>
4494 * eval.c (eval_op_geq): New function.
4495 (evaluate_subexp_standard): Use it.
4497 2021-03-08 Tom Tromey <tom@tromey.com>
4499 * eval.c (eval_op_gtr): New function.
4500 (evaluate_subexp_standard): Use it.
4502 2021-03-08 Tom Tromey <tom@tromey.com>
4504 * eval.c (eval_op_less): New function.
4505 (evaluate_subexp_standard): Use it.
4507 2021-03-08 Tom Tromey <tom@tromey.com>
4509 * eval.c (eval_op_notequal): New function.
4510 (evaluate_subexp_standard): Use it.
4512 2021-03-08 Tom Tromey <tom@tromey.com>
4514 * eval.c (eval_op_equal): New function.
4515 (evaluate_subexp_standard): Use it.
4517 2021-03-08 Tom Tromey <tom@tromey.com>
4519 * eval.c (eval_op_subscript): New function.
4520 (evaluate_subexp_standard): Use it.
4522 2021-03-08 Tom Tromey <tom@tromey.com>
4524 * eval.c (eval_op_binary): New function.
4525 (evaluate_subexp_standard): Use it.
4527 2021-03-08 Tom Tromey <tom@tromey.com>
4529 * eval.c (eval_op_sub): New function.
4530 (evaluate_subexp_standard): Use it.
4532 2021-03-08 Tom Tromey <tom@tromey.com>
4534 * eval.c (eval_op_add): New function.
4535 (evaluate_subexp_standard): Use it.
4537 2021-03-08 Tom Tromey <tom@tromey.com>
4539 * eval.c (eval_op_member): New function.
4540 (evaluate_subexp_standard): Use it.
4542 2021-03-08 Tom Tromey <tom@tromey.com>
4544 * eval.c (eval_op_structop_ptr): New function.
4545 (evaluate_subexp_standard): Use it.
4547 2021-03-08 Tom Tromey <tom@tromey.com>
4549 * eval.c (eval_op_structop_struct): New function.
4550 (evaluate_subexp_standard): Use it.
4552 2021-03-08 Tom Tromey <tom@tromey.com>
4554 * eval.c (eval_op_ternop): New function.
4555 (evaluate_subexp_standard): Use it.
4557 2021-03-08 Tom Tromey <tom@tromey.com>
4559 * eval.c (eval_op_concat): New function.
4560 (evaluate_subexp_standard): Use it.
4562 2021-03-08 Tom Tromey <tom@tromey.com>
4564 * eval.c (eval_op_objc_selector): New function.
4565 (evaluate_subexp_standard): Use it.
4567 2021-03-08 Tom Tromey <tom@tromey.com>
4569 * eval.c (eval_op_string): New function.
4570 (evaluate_subexp_standard): Use it.
4572 2021-03-08 Tom Tromey <tom@tromey.com>
4574 * eval.c (eval_op_register): New function.
4575 (evaluate_subexp_standard): Use it.
4577 2021-03-08 Tom Tromey <tom@tromey.com>
4579 * eval.c (eval_op_func_static_var): New function.
4580 (evaluate_subexp_standard): Use it.
4582 2021-03-08 Tom Tromey <tom@tromey.com>
4584 * eval.c (eval_op_var_msym_value): New function.
4585 (evaluate_subexp_standard): Use it.
4587 2021-03-08 Tom Tromey <tom@tromey.com>
4589 * eval.c (eval_op_var_entry_value): New function.
4590 (evaluate_subexp_standard): Use it.
4592 2021-03-08 Tom Tromey <tom@tromey.com>
4594 * eval.c (eval_op_scope): New function.
4595 (evaluate_subexp_standard): Use it.
4597 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4600 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4602 2021-03-06 Tom Tromey <tom@tromey.com>
4604 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4605 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4606 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4607 (locate_dwz_sections, dwz_search_other_debugdirs)
4608 (dwarf2_get_dwz_file): Move to dwz.c.
4609 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4611 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4612 (dwarf2_get_dwz_file): Move from read.c.
4614 2021-03-06 Tom Tromey <tom@tromey.com>
4616 * debuginfod-support.h: Include scoped_fd.h.
4618 2021-03-06 Tom Tromey <tom@tromey.com>
4620 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4621 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4622 (get_abbrev_section_for_cu, read_attribute_value)
4623 (get_debug_line_section): Update.
4624 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4626 2021-03-06 Tom Tromey <tom@tromey.com>
4628 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4630 * dwarf2/read.c (section_is_p): Remove.
4631 (dwarf2_per_bfd::locate_sections)
4632 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4633 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4634 (dwarf2_locate_common_dwp_sections)
4635 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4638 2021-03-06 Tom Tromey <tom@tromey.com>
4640 * xcoffread.c: Include sect-names.h.
4641 * symfile.h (struct dwarf2_section_names, struct
4642 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4643 * dwarf2/sect-names.h: New file, from symfile.h.
4644 * dwarf2/read.c: Include sect-names.h.
4646 2021-03-06 Tom Tromey <tom@tromey.com>
4648 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4649 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4650 (abbrev_table::read): Update.
4651 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4652 (struct abbrev_info): Reformat.
4653 <attrs>: Now an array.
4654 (struct abbrev_table) <alloc_abbrev>: Remove.
4656 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4658 * ctfread.c (ctf_psymtab_add_enums): New function.
4659 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4661 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4663 * ctfread.c (read_func_kind_type): Set up function arguments.
4665 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4666 Andrew Burgess <andrew.burgess@embecosm.com>
4668 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4670 (riscv_csrset): New static global.
4671 (riscv_update_csrmap): New function.
4672 (riscv_iterate_over_regset_sections): Process CSRs.
4674 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4676 * riscv-tdep.c (riscv_feature_name_csr): Define.
4677 (riscv_feature_name_cpu): Define.
4678 (riscv_feature_name_fpu): Define.
4679 (riscv_feature_name_virtual): Define.
4680 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4681 (riscv_freg_feature): Use riscv_feature_name_fpu.
4682 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4683 (riscv_csr_feature): Use riscv_feature_name_csr.
4684 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4686 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4687 Craig Blackmore <craig.blackmore@embecosm.com>
4689 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4690 (ALLDEPFILES): Add riscv-none-tdep.c.
4691 * configure: Regenerate.
4692 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4694 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4695 * elf-none-tdep.c: New file.
4696 * elf-none-tdep.h: New file.
4697 * riscv-none-tdep.c: New file.
4699 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4700 Andrew Burgess <andrew.burgess@embecosm.com>
4702 * corelow.c: Add 'xml-tdesc.h' include.
4703 (core_target::read_description): Load the target description from
4704 the core file when possible.
4705 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4707 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4708 (gcore_elf_make_tdesc_note): New function.
4709 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4710 * linux-tdep.c (linux_make_corefile_notes): Add target description
4713 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4715 * Makefile.in (SFILES): Add gcore-elf.c.
4716 (HFILES_NO_SRCDIR): Add gcore-elf.h
4717 * configure: Regenerate.
4718 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4720 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4721 (struct fbsd_collect_regset_section_cb_data): Delete.
4722 (fbsd_collect_regset_section_cb): Delete.
4723 (fbsd_collect_thread_registers): Delete.
4724 (struct fbsd_corefile_thread_data): Delete.
4725 (fbsd_corefile_thread): Delete.
4726 (fbsd_make_corefile_notes): Call
4727 gcore_elf_build_thread_register_notes instead of the now deleted
4729 * gcore-elf.c: New file, the content was moved here from
4730 linux-tdep.c, functions were renamed and given minor cleanup.
4731 * gcore-elf.h: New file.
4732 * gcore.c (gcore_find_signalled_thread): Moved here from
4733 linux-tdep.c and given a new name. Minor cleanups.
4734 * gcore.h (gcore_find_signalled_thread): Declare.
4735 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4736 (struct linux_collect_regset_section_cb_data): Delete.
4737 (linux_collect_regset_section_cb): Delete.
4738 (linux_collect_thread_registers): Delete.
4739 (linux_corefile_thread): Call
4740 gcore_elf_build_thread_register_notes.
4741 (find_signalled_thread): Delete.
4742 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4744 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4747 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4748 process_stratum_target parameter,
4749 sparc_store_inferior_registers): update callers.
4750 * sparc-nat.c (sparc_fetch_inferior_registers,
4751 sparc_store_inferior_registers): Add process_stratum_target
4752 parameter. Switch current thread before calling
4753 sparc_supply_gregset / sparc_collect_rwindow.
4754 (sparc_store_inferior_registers): Likewise.
4755 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4756 (sparc32obsd_collect_uthread): Likewise.
4757 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4759 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4760 sparc64obsd_supply_uthread): Add assertion.
4762 2021-03-04 Tom Tromey <tromey@adacore.com>
4764 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4765 (aux_add_nonlocal_symbols): Update.
4766 (ada_add_block_symbols): Change "found_sym" to bool.
4768 2021-03-03 Tom Tromey <tromey@adacore.com>
4770 * ada-lang.c (ada_resolve_function): Update comment.
4771 (is_nonfunction, add_symbols_from_enclosing_procs)
4772 (remove_extra_symbols): Likewise.
4773 (struct match_data): Add constructor, initializers.
4774 (add_nonlocal_symbols): Remove memset.
4775 (aux_add_nonlocal_symbols): Update comment.
4776 (ada_add_block_renamings, add_nonlocal_symbols)
4777 (ada_add_all_symbols): Likewise.
4778 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4780 2021-03-02 Tom Tromey <tromey@adacore.com>
4782 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4783 (cast_to_gnat_encoded_fixed_point_type): Remove.
4784 (ada_value_cast, ada_evaluate_subexp): Update.
4785 (gnat_encoded_fixed_point_type_info)
4786 (ada_is_gnat_encoded_fixed_point_type)
4787 (gnat_encoded_fixed_point_delta)
4788 (gnat_encoded_fixed_point_scaling_factor): Remove.
4789 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4790 (gnat_encoded_fixed_point_delta)
4791 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4792 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4793 (ada_print_type): Update.
4794 * ada-valprint.c (ada_value_print_num): Update.
4795 * dwarf2/read.c (ada_get_gnat_encoded_number)
4796 (ada_get_gnat_encoded_ratio): New functions.
4797 (finish_fixed_point_type): Use them. Add parameters.
4798 (GNAT_FIXED_POINT_SUFFIX): New define.
4799 (gnat_encoded_fixed_point_type_info): New function.
4800 (read_base_type): Handle gnat encodings.
4802 2021-03-02 Tom Tromey <tromey@adacore.com>
4804 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4805 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4807 (GROW_VECT): Remove.
4808 (grow_vect): Remove.
4810 2021-03-02 Tom Tromey <tromey@adacore.com>
4812 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4813 * ada-lang.c (resolve_subexp): Update.
4814 (ada_resolve_function): Accept a vector.
4815 (is_nonfunction, add_defn_to_vec)
4816 (add_symbols_from_enclosing_procs): Likewise.
4817 (num_defns_collected, defns_collected): Remove.
4818 (remove_extra_symbols): Return a vector.
4819 (remove_irrelevant_renamings): Return void.
4820 (ada_add_local_symbols): Accept a vector.
4821 (struct match_data) <obstackp>: Remove.
4822 <resultp>: New member.
4823 (aux_add_nonlocal_symbols): Update.
4824 (ada_add_block_renamings, add_nonlocal_symbols)
4825 (ada_add_all_symbols): Accept a vector.
4826 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4828 (ada_lookup_symbol): Update.
4829 (ada_add_block_symbols): Accept a vector.
4830 (get_var_value, iterate_over_symbols): Update.
4831 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4834 2021-03-02 Tom Tromey <tromey@adacore.com>
4836 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4838 2021-03-02 Tom Tromey <tromey@adacore.com>
4840 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4843 (ada_pspace_data): Remove destructor.
4844 <sym_cache>: Now a unique_ptr.
4845 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4846 (ada_get_symbol_cache): Use 'new'.
4847 (ada_clear_symbol_cache): Rewrite.
4849 2021-03-02 Tom Tromey <tromey@adacore.com>
4851 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4854 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4857 * source.c (add_path): Skip empty dirnames.
4859 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4861 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4862 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4864 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4867 * target.c (target_mourn_inferior): Only compare pids in
4868 target_mourn_inferior.
4870 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4873 * remote.c (remote_target::start_remote): Ensure the single
4874 thread, automatically added for remote targets without the
4875 concept of threading, is initially in set to the "resumed"
4877 * remote.c (remote_target::add_current_inferior_and_thread):
4878 Add return value - return the main thread.
4880 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4882 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4883 (mi_tsv_created): Likewise.
4884 (mi_tsv_deleted): Likewise.
4886 2021-02-25 Tom de Vries <tdevries@suse.de>
4889 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4890 section_kind for &dwo_file->sections.info.
4892 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4895 * f-lang.c (fortran_argument_convert): Delete declaration.
4896 (fortran_prepare_argument): New function.
4897 (evaluate_subexp_f): Move logic to new function
4898 fortran_prepare_argument.
4900 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4902 * f-exp.y (f77_keywords): Add 'associated'.
4903 * f-lang.c (fortran_associated): New function.
4904 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4905 (operator_length_f): Likewise.
4906 (print_unop_or_binop_subexp_f): New function.
4907 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4908 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4909 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4910 (operator_check_f): Likewise.
4911 * std-operator.def: Add FORTRAN_ASSOCIATED.
4913 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4915 * f-exp.y (fortran_operators): Add ".xor.".
4917 2021-02-24 Tom de Vries <tdevries@suse.de>
4920 * dwarf2/attribute.c (attribute::form_is_signed): New function
4922 * dwarf2/attribute.h (attribute::as_signed): ... here.
4923 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4924 (attribute::form_is_signed): Declare.
4925 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4926 for DW_AT_decl_file.
4928 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4930 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4931 order for <sys/ptrace.h> and <asm/ptrace.h>.
4933 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4935 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4938 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4940 * exec.c (set_section_command): Move variable declarations into
4941 the function body, and use std::string instead of a fixed size
4944 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4946 * exec.c (exec_target::get_section_table): Delete member function.
4947 (section_table_read_available_memory): Use current_top_target, not
4948 just the exec_ops target.
4949 * target-delegates.c: Regenerate.
4950 * target.c (default_get_section_table): New function.
4951 * target.h (target_ops::get_section_table): Change default
4952 behaviour to call default_get_section_table.
4953 (default_get_section_table): Declare.
4955 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4957 * exec.c (exec_target::close): Call new clear_target_sections
4959 (program_space::add_target_sections): Update name of member
4961 (program_space::add_target_sections): Update name of member
4963 (program_space::remove_target_sections): Likewise.
4964 (exec_one_fork): Use new target_sections member function.
4965 (exec_target::get_section_table): Likewise.
4966 (exec_target::files_info): Likewise.
4967 (set_section_command): Likewise.
4968 (exec_set_section_address): Likewise.
4969 (exec_target::has_memory): Use new target_sections member
4971 * progspace.h (program_space::clear_target_sections): New member
4973 (program_space::target_sections): Rename member variable to
4974 m_target_sections, replace with a new member function.
4975 (program_space::m_target_sections): New member variable.
4976 * solib-dsbt.c (scan_dyntag): Use new member function.
4977 * solib-svr4.c (scan_dyntag): Likewise.
4979 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4981 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4983 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4984 (section_table_read_available_memory): Make local const.
4985 (exec_target::xfer_partial): Make local const.
4986 (print_section_info): Make parameter const.
4987 * gdb/exec.h (print_section_info): Likewise.
4988 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4990 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4992 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4994 * gdb/s390-tdep.c (s390_load): Likewise.
4995 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4996 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4997 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4999 (target_debug_print_const_target_section_table_p): ...this.
5000 * gdb/target-delegates.c: Regenerate.
5001 * gdb/target.c (target_get_section_table): Make return type const.
5002 (target_section_by_addr): Likewise. Also make some locals const.
5003 (memory_xfer_partial_1): Make some locals const.
5004 * gdb/target.h (struct target_ops) <get_section_table>: Make
5006 (target_section_by_addr): Likewise.
5007 (target_get_section_table): Likewise.
5009 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5011 * NEWS: Mention new 'maint info target-sections' command.
5012 * maint.c (maintenance_info_target_sections): New function.
5013 (_initialize_maint_cmds): Register new command.
5015 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5017 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5018 (riscv_features_from_bfd): ...this. Change parameter type to
5019 'bfd*', and update as required.
5020 (riscv_find_default_target_description): Update call to
5021 riscv_features_from_bfd. Select a default xlen based on
5023 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5025 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5027 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5028 dynamic types in UNOP_IND.
5030 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5033 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5035 (~dwarf2_queue_guard): Clear queue.
5036 (queue_comp_unit): Assert that queue is
5038 (process_queue): Adjust.
5039 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5041 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5044 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5045 to decide whether or not to enqueue it for expansion.
5046 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5047 after calling maybe_queue_comp_unit.
5049 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5051 * linux-nat.c (linux_nat_filter_event): Return void.
5053 2021-02-22 Tom Tromey <tromey@adacore.com>
5055 * solib-svr4.c (enable_break): Update.
5056 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5058 (target_bfd_reopen): Change parameter type.
5059 * bfd-target.h (target_bfd_reopen): Change parameter type.
5061 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5063 * thread.c (add_thread_silent): Add assert.
5064 (find_thread_ptid): Add assert.
5066 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5069 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5070 (target_unpush_up): Likewise.
5071 * procfs.c (procfs_target::attach): Push target early. Use
5072 target_unpush_up to unpush target in case of error.
5073 * target.h (struct target_unpusher): Move here.
5074 (target_unpush_up): Likewise.
5076 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5078 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5079 (which in turn includes <gnulib/config.h>) before include
5082 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5085 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5086 (decode_j_type_insn): Likewise.
5087 (decode_cj_type_insn): Likewise.
5088 (decode_b_type_insn): Likewise.
5091 2021-02-18 Tom Tromey <tom@tromey.com>
5093 * expression.h (struct expression) <evaluate>: Declare method.
5094 * eval.c (evaluate_subexp): Simplify.
5095 (expression::evaluate): New method.
5096 (evaluate_expression, evaluate_type): Use expression::evaluate.
5098 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5100 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5102 (ada_lookup_name_info): Likewise.
5104 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5106 * aclocal.m4: Regenerate.
5108 2021-02-12 Tom de Vries <tdevries@suse.de>
5111 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5112 (lin_thread_signals): New static var.
5113 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5115 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5116 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5118 * linux-thread-db.c (check_thread_signals): Use
5119 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5121 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5123 * f-exp.y (f77_keywords): Add allocated.
5124 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5125 (operator_length_f): Likewise.
5126 (print_subexp_f): Likewise.
5127 (dump_subexp_body_f): Likewise.
5128 (operator_check_f): Likewise.
5129 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5131 2021-02-11 Tom de Vries <tdevries@suse.de>
5134 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5135 Return true for DW_FORM_strx.
5137 2021-02-11 Tom Tromey <tromey@adacore.com>
5140 * parse.c (write_exp_symbol_reference): Write sym.block.
5142 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5144 * NEWS: Mention changes to 'maint info sections'.
5145 * maint.c (match_substring): Return a bool, fix whitespace issue.
5146 (struct single_bfd_flag_info): New struct.
5147 (bfd_flag_info): New static global.
5148 (match_bfd_flags): Return a bool, use bfd_flag_info.
5149 (print_bfd_flags): Use bfd_flag_info.
5150 (maint_print_section_info): Delete trailing whitespace.
5151 (struct maint_info_sections_opts): New struct.
5152 (maint_info_sections_option_defs): New static global.
5153 (maint_info_sections_completer): New function.
5154 (maintenance_info_sections): Use option parsing mechanism.
5155 (_initialize_maint_cmds): Update command help text for 'maint info
5156 sections' and register a command completer.
5158 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5160 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5161 functionality merged into...
5162 (maint_print_all_sections): ...this new function.
5163 (maintenance_info_sections): Make use of maint_print_all_sections,
5164 allow all objects to be printed even where there's no executable.
5166 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5168 * breakpoint.c (resolve_sal_pc): Make use of
5169 bound_minimal_symbol::obj_section.
5170 * maint.c (maintenance_translate_address): Likewise.
5171 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5172 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5174 * printcmd.c (info_address_command): Make use of
5175 bound_minimal_symbol::obj_section.
5177 2021-02-11 Alan Modra <amodra@gmail.com>
5179 * arm-symbian-tdep.c: Delete.
5180 * NEWS: Mention arm-symbian removal.
5181 * Makefile.in: Remove arm-symbian-tdep entries.
5182 * configure.tgt: Remove arm*-*-symbianelf*.
5183 * doc/gdb.texinfo: Remove mention of SymbianOS.
5184 * osabi.c (gdb_osabi_names): Remove "Symbian".
5185 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5186 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5187 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5189 * testsuite/gdb.base/dup-sect.exp: Likewise.
5190 * testsuite/gdb.base/long_long.exp: Likewise.
5191 * testsuite/gdb.base/solib-weak.exp: Likewise.
5192 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5193 * testsuite/gdb.python/py-section-script.exp: Likewise.
5194 * testsuite/lib/dwarf.exp: Likewise.
5195 * testsuite/lib/gdb.exp: Likewise.
5197 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5199 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5200 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5201 (one_or_two_args): New pattern.
5202 (f77_keywords): Add lbound and ubound.
5203 * f-lang.c (fortran_bounds_all_dims): New function.
5204 (fortran_bounds_for_dimension): New function.
5205 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5206 (operator_length_f): Likewise.
5207 (print_subexp_f): Likewise.
5208 (dump_subexp_body_f): Likewise.
5209 (operator_check_f): Likewise.
5210 * std-operator.def (FORTRAN_LBOUND): Define.
5211 (FORTRAN_UBOUND): Define.
5213 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5215 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5216 and set_section_index member functions where appropriate.
5217 * coffread.c (coff_symtab_read): Likewise.
5218 (process_coff_symbol): Likewise.
5219 * ctfread.c (set_symbol_address): Likewise.
5220 * dwarf2/read.c (add_partial_symbol): Likewise.
5221 (var_decode_location): Likewise.
5222 * language.c: Likewise.
5223 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5224 (compact_minimal_symbols): Likewise.
5225 (minimal_symbol_upper_bound): Likewise.
5226 * objfiles.c (relocate_one_symbol): Likewise.
5227 * psympriv.h (partial_symbol::obj_section): Likewise.
5228 (partial_symbol::address): Likewise.
5229 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5230 * stabsread.c (scan_file_globals): Likewise.
5231 * symmisc.c (dump_msymbols): Likewise.
5232 * symtab.c (general_symbol_info::obj_section): Likewise.
5233 (fixup_section): Likewise.
5234 (get_msymbol_address): Likewise.
5235 * symtab.h (general_symbol_info::section): Rename to...
5236 (general_symbol_info::m_section): ...this.
5237 (general_symbol_info::set_section_index): New member function.
5238 (general_symbol_info::section_index): Likewise.
5239 (SYMBOL_SECTION): Delete.
5240 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5241 set_section_index member functions where appropriate.
5242 (MSYMBOL_SECTION): Delete.
5243 (symbol::symbol): Update to initialize 'm_section'.
5244 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5245 (process_xcoff_symbol): Likewise.
5247 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5249 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5250 MSYMBOL_OBJ_SECTION.
5251 * findvar.c (language_defn::read_var_value): Likewise.
5252 * infcmd.c (jump_command): Likewise.
5253 * linespec.c (minsym_found): Likewise.
5254 * maint.c (maintenance_translate_address): Likewise.
5255 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5256 (minimal_symbol_upper_bound): Likewise.
5257 * parse.c (find_minsym_type_and_address): Likewise.
5258 (operator_check_standard): Likewise.
5259 * printcmd.c (info_address_command): Likewise.
5260 * symmisc.c (dump_msymbols): Likewise.
5261 (print_symbol): Likewise.
5262 * symtab.c (general_symbol_info::obj_section): Define new
5264 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5265 (find_pc_sect_compunit_symtab): Likewise.
5266 (find_function_start_sal): Likewise.
5267 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5268 MSYMBOL_OBJ_SECTION.
5269 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5271 (SYMBOL_OBJ_SECTION): Delete.
5272 (MSYMBOL_OBJ_SECTION): Delete.
5274 2021-02-09 Tom Tromey <tom@tromey.com>
5276 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5278 2021-02-09 Tom de Vries <tdevries@suse.de>
5281 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5282 construct an array type. Add assert to ensure that element_type is
5285 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5287 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5288 (gcore_collect_regset_section_cb): Delete.
5289 (gcore_collect_thread_registers): Delete.
5290 (gcore_build_thread_register_notes): Delete.
5291 (gcore_find_signalled_thread): Delete.
5292 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5293 'gdbarch' and 'thread_info' declarations.
5294 (gcore_build_thread_register_notes): Delete declaration.
5295 (gcore_find_signalled_thread): Likewise.
5296 * fbsd-tdep.c: Remove 'gcore.h' include.
5297 (struct fbsd_collect_regset_section_cb_data): New struct.
5298 (fbsd_collect_regset_section_cb): New function.
5299 (fbsd_collect_thread_registers): New function.
5300 (struct fbsd_corefile_thread_data): New struct.
5301 (fbsd_corefile_thread): New function.
5302 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5303 * linux-tdep.c: Remove 'gcore.h' include.
5304 (struct linux_collect_regset_section_cb_data): New struct.
5305 (linux_collect_regset_section_cb): New function.
5306 (linux_collect_thread_registers): New function.
5307 (linux_corefile_thread): Call Linux specific code.
5308 (find_signalled_thread): New function.
5309 (linux_make_corefile_notes): Call find_signalled_thread.
5311 2021-02-09 Tom Tromey <tromey@adacore.com>
5313 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5315 * value.c (value_contents_copy_raw): Now static.
5316 * value.h (value_contents_copy_raw): Don't declare.
5318 2021-02-09 Tom Tromey <tromey@adacore.com>
5320 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5323 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5326 * arc-linux-tdep.c (handle_atomic_sequence): New.
5327 (arc_linux_software_single_step): Call handle_atomic_sequence().
5329 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5331 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5333 (REQUIRE_WINDOW): Call is_valid member function.
5334 (REQUIRE_WINDOW_FOR_SETTER): New define.
5335 (gdbpy_tui_is_valid): Call is_valid member function.
5336 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5337 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5339 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5340 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5343 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5345 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5346 for the title is not nullptr.
5348 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5350 * tui-layout.c (saved_tui_windows): Delete.
5351 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5352 call new get_windows member function instead.
5353 (tui_get_window_by_name): Check in tui_windows.
5354 (tui_layout_window::apply): Don't add to tui_windows.
5355 * tui-layout.h (tui_layout_base::get_windows): New member function.
5356 (tui_layout_window::get_windows): Likewise.
5357 (tui_layout_split::get_windows): Likewise.
5359 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5361 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5362 of the window objects.
5364 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5366 * python/python.c (gdbpy_print_stack): Reformat an error message.
5368 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5370 * tui/tui-interp.c (tui_command_line_handler): New function.
5371 (tui_interp::resume): Register tui_command_line_handler as the
5373 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5375 (tui_getc_1): Delete handling of '\n' and '\r'.
5376 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5378 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5380 * tui/tui-regs.c (tui_data_window::display_registers_from):
5381 Mark invisible register sub windows.
5382 (tui_data_window::check_register_values): Ignore invisible
5383 register sub windows.
5385 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5387 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5388 n_spaces with a negative value.
5390 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5392 * tui/tui-regs.c (tui_data_window::display_registers_from):
5393 Add refresh_window call.
5395 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5397 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5399 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5401 * symmisc.c (std_in, std_out, std_err): Remove.
5402 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5404 2021-02-05 Tom de Vries <tdevries@suse.de>
5406 PR breakpoints/27330
5407 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5408 glibc object file has debug info.
5410 2021-02-05 Tom de Vries <tdevries@suse.de>
5413 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5415 2021-02-05 Tom de Vries <tdevries@suse.de>
5417 PR breakpoints/27313
5418 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5421 2021-02-05 Tom Tromey <tom@tromey.com>
5423 * compile/compile-c-support.c (get_compile_context)
5424 (c_get_compile_context, cplus_get_compile_context): Change return
5426 * language.c (language_defn::get_compile_instance): New method.
5427 * language.h (language_defn::get_compile_instance): Change return
5428 type. No longer inline.
5429 * c-lang.c (c_language::get_compile_instance): Change return type.
5430 (cplus_language::get_compile_instance): Change return type.
5431 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5433 * compile/compile.c (compile_to_object): Update.
5435 2021-02-05 Tom Tromey <tom@tromey.com>
5437 * parser-defs.h (write_exp_symbol_reference): Declare.
5438 * parse.c (write_exp_symbol_reference): New function.
5439 * p-exp.y (variable): Use write_exp_symbol_reference.
5440 * m2-exp.y (variable): Use write_exp_symbol_reference.
5441 * f-exp.y (variable): Use write_exp_symbol_reference.
5442 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5443 * c-exp.y (variable): Use write_exp_symbol_reference.
5445 2021-02-05 Tom de Vries <tdevries@suse.de>
5448 * valarith.c (complex_binop): Throw an error if complex type can't
5451 2021-02-05 Tom de Vries <tdevries@suse.de>
5454 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5457 2021-02-05 Tom de Vries <tdevries@suse.de>
5459 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5461 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5463 * configure.tgt (riscv*-*-*): Set gdb_sim.
5465 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5467 * target.c (target_is_non_stop_p): Return bool.
5468 * target.h (target_is_non_stop_p): Return bool.
5470 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5472 * record-full.c (record_full_async_inferior_event_handler):
5473 Don't clear async event handler.
5474 (record_full_base_target::wait): Clear async event handler at
5477 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5479 * record-btrace.c (record_btrace_handle_async_inferior_event):
5480 Don't clear async event handler.
5481 (record_btrace_target::wait): Clear async event handler at
5484 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5486 * remote.c (remote_target::wait): Clear async event handler at
5487 beginning, mark if needed at the end.
5488 (remote_async_inferior_event_handler): Don't set or clear async
5491 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5493 * async-event.h (async_event_handler_func): Add documentation.
5494 * async-event.c (check_async_event_handlers): Don't clear
5495 async_event_handler ready flag.
5496 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5498 * record-btrace.c (record_btrace_handle_async_inferior_event):
5500 * record-full.c (record_full_async_inferior_event_handler):
5502 * remote-notif.c (remote_async_get_pending_events_handler):
5504 * remote.c (remote_async_inferior_event_handler): Likewise.
5506 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5508 * infrun.c (handle_inferior_event): Move stop_soon variable to
5511 2021-02-03 Pedro Alves <pedro@palves.net>
5513 * infcmd.c (detach_command): Hold strong reference to target, and
5514 if all-stop on entry, restart threads on exit.
5515 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5516 (restart_stepped_thread): ... this new function. Also handle
5518 (restart_after_all_stop_detach): New function.
5519 * infrun.h (restart_after_all_stop_detach): Declare.
5521 2021-02-03 Pedro Alves <pedro@palves.net>
5523 * infrun.c (struct step_over_info): Initialize fields.
5524 (prepare_for_detach): Handle ongoing in-line step over.
5526 2021-02-03 Pedro Alves <pedro@palves.net>
5528 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5530 * remote.c (remote_target::remote_detach_1): ... and here ...
5531 * target.c (target_detach): ... instead of here.
5532 * target.h (target_ops::detach): Add comment.
5534 2021-02-03 Pedro Alves <pedro@palves.net>
5536 * infrun.c (struct wait_one_event): Move higher up.
5537 (prepare_for_detach): Abort in-progress displaced steps instead of
5538 letting them complete.
5539 (handle_one): If the inferior is detaching, don't add the thread
5540 back to the global step-over chain.
5541 (restart_threads): Don't restart threads if detaching.
5542 (handle_signal_stop): Remove inferior::detaching reference.
5544 2021-02-03 Pedro Alves <pedro@palves.net>
5546 * infrun.c (prepare_for_detach): Don't release scoped_restore
5549 2021-02-03 Pedro Alves <pedro@palves.net>
5551 * infrun.c (handle_one): New function, factored out from ...
5552 (stop_all_threads): ... here.
5554 2021-02-03 Pedro Alves <pedro@palves.net>
5556 * remote.c (remote_notif_stop_ack): Don't error out on
5557 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5558 (remote_target::discard_pending_stop_replies): Don't delete
5559 in-flight notification; instead, clear its contents.
5561 2021-02-03 Pedro Alves <pedro@palves.net>
5563 * remote.c (extended_remote_target::attach): Set target async in
5564 the target-non-stop path too.
5566 2021-02-03 Pedro Alves <pedro@palves.net>
5569 * infrun.c (handle_signal_stop): Move main context_switch call
5570 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5572 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5574 * NEWS (Changed commands): Add entry for the behavior change of
5575 the inferior command.
5576 * inferior.c (inferior_command): When no argument is given to the
5577 inferior command, display info about the currently selected
5580 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5582 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5584 (read_attribute_reprocess): Adjust.
5586 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5588 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5589 <gnu_ranges_base>: ... this...
5590 <rnglists_base>: ... and this.
5591 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5592 <gnu_ranges_base>: ... this...
5593 <rnglists_base>: ... and this.
5594 (read_cutu_die_from_dwo): Adjust
5595 (dwarf2_get_pc_bounds): Adjust
5596 (dwarf2_record_block_ranges): Adjust.
5597 (read_full_die_1): Adjust
5598 (partial_die_info::read): Adjust.
5599 (read_rnglist_index): Adjust.
5601 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5604 * dwarf2/read.c (read_loclists_rnglists_header): Add
5605 header_offset parameter and use it.
5606 (read_loclist_index): Read header of the current contribution,
5607 not the one at the beginning of the section.
5608 (read_rnglist_index): Likewise.
5610 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5613 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5614 requires_reprocessing flag.
5615 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5617 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5618 and DW_FORM_loclistx.
5619 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5620 instead of set_address for DW_FORM_loclistx and
5623 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5625 * dwarf2/read.c (read_loclist_index): Remove bound check for
5627 (read_rnglist_index): Likewise.
5629 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5631 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5634 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5636 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5638 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5640 * dwarf2/read.c (read_loclist_index): Change complaints into
5643 2021-02-02 Tom de Vries <tdevries@suse.de>
5646 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5649 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5651 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5652 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5653 here from linux-tdep.c and given a new name. Minor cleanups.
5654 (gcore_collect_regset_section_cb): Likewise.
5655 (gcore_collect_thread_registers): Likewise.
5656 (gcore_build_thread_register_notes): Likewise.
5657 (gcore_find_signalled_thread): Likewise.
5658 * gcore.h (gcore_build_thread_register_notes): Declare.
5659 (gcore_find_signalled_thread): Declare.
5660 * fbsd-tdep.c: Add 'gcore.h' include.
5661 (struct fbsd_collect_regset_section_cb_data): Delete.
5662 (fbsd_collect_regset_section_cb): Delete.
5663 (fbsd_collect_thread_registers): Delete.
5664 (struct fbsd_corefile_thread_data): Delete.
5665 (fbsd_corefile_thread): Delete.
5666 (fbsd_make_corefile_notes): Call
5667 gcore_build_thread_register_notes instead of the now deleted
5669 * linux-tdep.c: Add 'gcore.h' include.
5670 (struct linux_collect_regset_section_cb_data): Delete.
5671 (linux_collect_regset_section_cb): Delete.
5672 (linux_collect_thread_registers): Delete.
5673 (linux_corefile_thread): Call
5674 gcore_build_thread_register_notes.
5675 (find_signalled_thread): Delete.
5676 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5678 2021-01-29 Tom de Vries <tdevries@suse.de>
5680 PR breakpoints/26063
5681 * infrun.c (process_event_stop_test): Reset
5682 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5685 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5687 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5688 assert. Extend the header comment.
5690 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5692 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5693 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5694 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5695 (tui_locator_win_info_ptr): Delete declaration.
5696 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5697 (tui_disasm_window::set_contents): Fetch state from tui_location
5699 (tui_get_begin_asm_address): Likewise.
5700 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5702 (get_locator_window): Delete.
5703 (initialize_known_windows): Treat locator window just like all the
5705 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5706 (tui_source_window::set_contents): Fetch state from tui_location
5708 (tui_source_window::showing_source_p): Likewise.
5709 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5711 (tui_locator_win_info_ptr): Delete.
5712 (tui_locator_window::make_status_line): Fetch state from
5713 tui_location global.
5714 (tui_locator_window::rerender): Remove check of 'handle',
5715 reindent function body.
5716 (tui_locator_window::set_locator_fullname): Delete.
5717 (tui_locator_window::set_locator_info): Delete.
5718 (tui_update_locator_fullname): Delete.
5719 (tui_show_frame_info): Likewise.
5720 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5721 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5722 tui/tui-location.h and renamed to
5723 tui_location_tracker::set_location.
5724 (tui_locator_window::set_locator_fullname): Moved to
5725 tui/tui-location.h and renamed to
5726 tui_location_tracker::set_fullname.
5727 (tui_locator_window::full_name): Delete.
5728 (tui_locator_window::proc_name): Delete.
5729 (tui_locator_window::line_no): Delete.
5730 (tui_locator_window::addr): Delete.
5731 (tui_locator_window::gdbarch): Delete.
5732 (tui_update_locator_fullname): Delete declaration.
5733 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5735 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5736 (tui_display_main): Call function on tui_location directly.
5737 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5738 * tui/tui-location.c: New file.
5739 * tui/tui-location.h: New file.
5741 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5743 * gdbtypes.h (get_type_arch): Rename to...
5744 (struct type) <arch>: ... this, update all users.
5746 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5748 * gdbtypes.h (struct type) <arch>: Rename to...
5749 <arch_owner>: ... this, update all users.
5750 <objfile>: Rename to...
5751 <objfile_owner>: ... this, update all users.
5753 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5755 * gdbcmd.h (execute_command_to_string): Update comment.
5756 * top.c (execute_command_to_string): Update header comment.
5758 2021-01-28 Tom de Vries <tdevries@suse.de>
5760 PR breakpoints/27205
5761 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5762 (create_longjmp_master_breakpoint_names): New function, factored out
5764 (create_longjmp_master_breakpoint): ... here. Only try to install
5765 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5766 breakpoint in libc.so failed.
5768 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5771 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5772 unique_ptr is released when the wrapped pointer is kept for later
5775 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5777 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5778 BLR and BR instructions.
5779 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5780 (enum aarch64_masks): New.
5782 2021-01-26 Tom Tromey <tromey@adacore.com>
5784 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5785 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5786 (windows_init_thread_list, windows_nat::handle_load_dll)
5787 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5788 (windows_nat_target::resume)
5789 (windows_nat_target::get_windows_debug_event)
5790 (windows_nat_target::interrupt, windows_xfer_memory)
5791 (windows_nat_target::close): Update.
5792 * nat/windows-nat.c (DEBUG_EVENTS): Use
5793 debug_prefixed_printf_cond.
5794 (matching_pending_stop, fetch_pending_stop)
5795 (continue_last_debug_event): Update.
5797 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5799 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5800 elfcore_write_file_note.
5802 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5804 * arc-tdep.c (arc_add_reggroups): New function.
5805 (arc_gdbarch_init): Call arc_add_reggroups.
5807 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5809 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5811 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5812 Simon Marchi <simon.marchi@polymtl.ca>
5813 Tom de Vries <tdevries@suse.de>
5815 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5818 2021-01-25 Tom Tromey <tromey@adacore.com>
5820 * dwarf2/read.c (get_mpz): New function.
5821 (get_dwarf2_rational_constant): Use it.
5823 2021-01-25 Tom Tromey <tromey@adacore.com>
5825 * ada-lang.c (resolve_subexp): Handle array context.
5827 2021-01-23 Tom Tromey <tom@tromey.com>
5830 * compile/compile-loc2c.c (note_register): New function.
5831 (pushf_register_address, pushf_register): Use it.
5833 2021-01-23 Tom Tromey <tom@tromey.com>
5835 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5836 Change type of "registers_used".
5837 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5838 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5839 (locexpr_generate_c_location, loclist_generate_c_location): Change
5840 type of "registers_used".
5841 * compile/compile.h (compile_dwarf_expr_to_c)
5842 (compile_dwarf_bounds_to_c): Update.
5843 * compile/compile-loc2c.c (pushf_register_address)
5844 (pushf_register, do_compile_dwarf_expr_to_c)
5845 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5846 of "registers_used".
5847 * compile/compile-c.h (generate_c_for_variable_locations):
5849 * compile/compile-c-symbols.c (generate_vla_size)
5850 (generate_c_for_for_one_variable): Change type of
5852 (generate_c_for_variable_locations): Return std::vector.
5853 * compile/compile-c-support.c (generate_register_struct): Change
5854 type of "registers_used".
5857 2021-01-23 Tom Tromey <tom@tromey.com>
5859 * compile/compile-internal.h (class compile_instance)
5860 <set_arguments>: Change return type.
5861 * compile/compile.c (compile_to_object): Remove call to reset.
5862 (compile_instance::set_arguments): Change return type.
5864 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5866 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5867 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5869 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5871 * Makefile.in (SELFTESTS_SRCS): Add
5872 unittests/gdb_tilde_expand-selftests.c.
5873 * unittests/gdb_tilde_expand-selftests.c: New file.
5875 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5878 * NEWS: Mention new command.
5879 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5880 (version_style): Define.
5881 (cli_style_option::cli_style_option): Add intensity parameter, and
5883 (_initialize_cli_style): Register version style set/show commands.
5884 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5885 (version_style): Declare.
5886 * top.c (print_gdb_version): Use version_stype, and styled_string
5887 to print the GDB version string.
5889 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5891 * utils.c (emit_style_escape): Only emit an escape sequence if the
5892 requested style is different than the current applied style.
5893 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5894 current applied_style.
5895 (fputs_styled): Remove is_default check.
5896 (fputs_styled_unfiltered): Likewise.
5897 (vfprintf_styled_no_gdbfmt): Likewise.
5899 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5901 * remote.h (remote_debug_printf): New.
5902 (remote_debug_printf_nofunc): New.
5903 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5904 * remote.c: Use above macros throughout file.
5906 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5908 * remote.h (remote_debug): Change to bool.
5909 * remote.c (remote_debug): Change to bool.
5910 (_initialize_remote): Adjust.
5912 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5914 * target.h (remote_debug): Move to...
5915 * remote.h (remote_debug): ... here.
5916 * top.c (remote_debug): Move to...
5917 * remote.c (remote_debug): ... here.
5918 * remote-sim.c: Include remote.h.
5920 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5922 * cli/cli-cmds.c (show_remote_debug): Remove.
5923 (show_remote_timeout): Remove.
5924 (_initialize_cli_cmds): Don't register commands.
5925 * remote.c (show_remote_debug): Move here.
5926 (show_remote_timeout): Move here.
5927 (_initialize_remote): Register commands.
5929 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5931 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5932 type::objfile method instead.
5934 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5936 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5937 use the type::is_objfile_owned method.
5939 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5941 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5942 (TYPE_OWNER): Remove.
5943 (TYPE_OBJFILE): Adjust.
5944 (struct main_type) <flag_objfile_owned>: Rename to...
5945 <m_flag_objfile_owned>: ... this.
5946 <owner>: Rename to...
5947 <m_owner>: ... this.
5948 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5950 (TYPE_ALLOC): Adjust.
5951 * gdbtypes.c (alloc_type): Adjust.
5952 (alloc_type_arch): Adjust.
5953 (alloc_type_copy): Adjust.
5954 (get_type_arch): Adjust.
5955 (smash_type): Adjust.
5956 (lookup_array_range_type): Adjust.
5957 (recursive_dump_type): Adjust.
5958 (copy_type_recursive): Adjust.
5959 * compile/compile-c-types.c (convert_func): Adjust.
5960 (convert_type_basic): Adjust.
5961 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5964 (language_arch_info::type_and_symbol::alloc_type_symbol):
5967 2021-01-21 Luis Machado <luis.machado@linaro.org>
5969 * coffread.c (enter_linenos): Passing string to complaint.
5970 * valops.c (value_assign): Make array view.
5972 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5974 * auto-load.h (debug_auto_load): Move here.
5975 (auto_load_debug_printf): New.
5976 * auto-load.c: Use auto_load_debug_printf.
5977 (debug_auto_load): Move to header.
5978 * linux-thread-db.c (try_thread_db_load): Use
5979 auto_load_debug_printf.
5980 * main.c (captured_main_1): Likewise.
5982 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5984 * f-valprint.c (f77_array_offset_tbl): Remove.
5986 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5988 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5990 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5992 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5995 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5998 * python/py-breakpoint.c (bppy_get_location): Handle
5999 bp_hardware_breakpoint.
6000 (bppy_init): Likewise.
6001 (gdbpy_breakpoint_created): Likewise.
6003 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6005 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6007 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6009 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6010 (_initialize_gdb_bfd): Adjust.
6012 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6015 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6017 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6019 * dwarf2/read.c (follow_die_offset): Add logging.
6020 (dwarf2_per_objfile::age_comp_units): Add logging.
6022 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6024 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6025 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6026 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6027 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6028 * arm-tdep.c (struct frame_unwind): Make static.
6029 * auto-load.c (auto_load_safe_path_vec): Make static.
6030 * csky-tdep.c (csky_stub_unwind): Make static.
6031 * gdbarch.c (gdbarch_data_registry): Make static.
6032 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6033 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6034 * i386-tdep.c (i386_frame_setup_skip_insns,
6035 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6037 * infrun.c (observer_mode): Make static.
6038 * linux-nat.c (sigchld_action): Make static.
6039 * linux-thread-db.c (thread_db_list): Make static.
6040 * maint-test-options.c (maintenance_test_options_list):
6041 * mep-tdep.c (mep_csr_registers): Make static.
6042 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6043 (stats): Make static.
6044 * nat/linux-osdata.c (struct osdata_type): Make static.
6045 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6046 * progspace.c (last_program_space_num): Make static.
6047 * python/py-param.c (struct parm_constant): Remove struct type
6049 (parm_constants): Make static.
6050 * python/py-record-btrace.c (btpy_list_methods): Make static.
6051 * python/py-record.c (recpy_gap_type): Make static.
6052 * record.c (record_goto_cmdlist): Make static.
6053 * regcache.c (regcache_descr_handle): Make static.
6054 * registry.h (DEFINE_REGISTRY): Make definition static.
6055 * symmisc.c (std_in, std_out, std_err): Make static.
6056 * top.c (previous_saved_command_line): Make static.
6057 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6059 * unittests/command-def-selftests.c (nr_duplicates,
6060 nr_invalid_prefixcmd, lists): Make static.
6061 * unittests/observable-selftests.c (test_notification): Make
6063 * unittests/optional/assignment/1.cc (counter): Make static.
6064 * unittests/optional/assignment/2.cc (counter): Make static.
6065 * unittests/optional/assignment/3.cc (counter): Make static.
6066 * unittests/optional/assignment/4.cc (counter): Make static.
6067 * unittests/optional/assignment/5.cc (counter): Make static.
6068 * unittests/optional/assignment/6.cc (counter): Make static.
6070 2021-01-20 Joel Sherrill <joel@rtems.org>
6073 * remote.c (struct remote_thread_info) <resume_state>: Rename
6075 <get_resume_state>: ... this.
6076 (remote_target::resume): Adjust.
6077 (remote_target::commit_resume): Adjust.
6078 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6080 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6081 Tom Tromey <tom@tromey.com>
6083 * stap-probe.c (stap_parse_single_operand): Handle '!'
6085 (stap_parse_argument_conditionally): Likewise.
6086 Skip spaces after processing open-parenthesis sub-expression.
6087 (stap_parse_argument_1): Skip spaces after call to
6088 stap_parse_argument_conditionally.
6089 Handle case when right-side expression is a parenthesized
6091 Skip spaces after call to stap_parse_argument_1.
6093 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6095 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6097 2021-01-19 Luis Machado <luis.machado@linaro.org>
6099 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6100 memory and save data.
6101 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6102 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6103 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6104 (trad_frame_value_bytes_p): Remove.
6105 (trad_frame_reset_saved_regs): Adjust documentation.
6106 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6107 constructor and reset the state of the registers.
6108 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6109 (trad_frame_value_bytes_p, trad_frame_set_value)
6110 (trad_frame_set_realreg, trad_frame_set_addr)
6111 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6112 (trad_frame_set_reg_realreg): Update to call member function.
6113 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6114 (trad_frame_get_prev_register): Likewise.
6116 * aarch64-tdep.c (aarch64_analyze_prologue)
6117 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6118 (aarch64_prologue_prev_register): Update to use member functions.
6119 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6120 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6121 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6122 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6123 (arm_make_epilogue_frame_cache): Likewise.
6124 * avr-tdep.c (avr_frame_unwind_cache)
6125 (avr_frame_prev_register): Likewise.
6126 * cris-tdep.c (cris_scan_prologue): Likewise.
6127 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6128 * frv-tdep.c (frv_analyze_prologue): Likewise.
6129 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6130 * lm32-tdep.c (lm32_frame_cache): Likewise.
6131 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6132 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6133 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6134 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6135 (reset_saved_regs): Adjust to set realreg.
6136 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6137 call member functions.
6138 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6139 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6140 (s390_backchain_frame_unwind_cache): Likewise.
6141 * score-tdep.c (score7_analyze_prologue)
6142 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6143 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6144 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6145 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6146 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6147 * tilegx-tdep.c (tilegx_analyze_prologue)
6148 (tilegx_frame_cache): Likewise.
6149 * v850-tdep.c (v850_frame_cache): Likewise.
6150 * vax-tdep.c (vax_frame_cache): Likewise.
6152 2021-01-19 Luis Machado <luis.machado@linaro.org>
6154 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6156 (put_frame_register_bytes): Likewise.
6157 Adjust documentation.
6158 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6159 (safe_frame_unwind_memory): Likewise.
6160 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6161 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6163 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6164 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6165 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6166 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6167 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6168 * dwarf2/loc.c (rw_pieced_value): Likewise.
6169 * hppa-tdep.c (hppa_frame_cache): Likewise.
6170 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6171 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6172 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6173 (i386_linux_rt_sigtramp_start): Likewise.
6174 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6175 * i386-tdep.c (i386_register_to_value): Likewise.
6176 * i387-tdep.c (i387_register_to_value): Likewise.
6177 * ia64-tdep.c (ia64_register_to_value): Likewise.
6178 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6179 (m32r_linux_rt_sigtramp_start): Likewise.
6180 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6181 * m68k-tdep.c (m68k_register_to_value): Likewise.
6182 * mips-tdep.c (mips_register_to_value)
6183 (mips_value_to_register): Likewise.
6184 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6185 (ppcfbsd_sigtramp_frame_cache): Likewise.
6186 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6187 (ppcobsd_sigtramp_frame_cache): Likewise.
6188 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6189 (rs6000_register_to_value): Likewise.
6190 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6191 * tramp-frame.c (tramp_frame_start): Likewise.
6192 * valops.c (value_assign): Likewise.
6194 2021-01-19 Luis Machado <luis.machado@linaro.org>
6196 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6198 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6199 instead of buffer and size.
6200 (trad_frame_set_reg_value_bytes): Likewise.
6201 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6202 (trad_frame_set_value_bytes): Likewise.
6204 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6206 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6208 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6210 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6211 (riscv_fbsd_gregset): Use riscv_supply_regset.
6212 (riscv_fbsd_fpregset): Likewise.
6213 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6214 (riscv_linux_fregset): Likewise.
6215 * riscv-tdep.c (riscv_supply_regset): Define new function.
6216 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6218 2021-01-18 Tom de Vries <tdevries@suse.de>
6221 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6223 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6226 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6228 * remote.c (class remote_target) <remote_hostio_send_command,
6229 remote_hostio_parse_result>: Constify parameter.
6230 (remote_hostio_parse_result): Likewise.
6231 (remote_target::remote_hostio_send_command): Adjust.
6232 (remote_target::remote_hostio_pread_vFile): Adjust.
6233 (remote_target::fileio_readlink): Adjust.
6234 (remote_target::fileio_fstat): Adjust.
6236 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6238 * remote.c (remote_target::start_remote): Move wait_status to
6241 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6243 * remote.c (class remote_target):
6244 <add_current_inferior_and_thread>: Constify parameter.
6245 (stop_reply_extract_thread): Likewise.
6246 (remote_target::get_current_thread): Likewise.
6247 (remote_target::add_current_inferior_and_thread): Likewise.
6249 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6251 * remote.c (class remote_target)
6252 <remote_unpack_thread_info_response,
6253 parse_threadlist_response>: Constify parameter and/or return
6254 value and or local variable.
6255 (stub_unpack_int): Likewise.
6256 (unpack_nibble): Likewise.
6257 (unpack_byte): Likewise.
6258 (unpack_int): Likewise.
6259 (unpack_string): Likewise.
6260 (unpack_threadid): Likewise.
6261 (remote_target::remote_unpack_thread_info_response): Likewise.
6262 (remote_target::parse_threadlist_response): Likewise.
6264 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6266 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6268 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
6270 * MAINTAINERS (Write After Approval): Add myself.
6272 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6274 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6275 because is_trivially_default_constructible was first implemented with
6278 2021-01-14 Tom de Vries <tdevries@suse.de>
6280 PR breakpoints/27151
6281 * objfiles.h (in_plt_section): Handle .plt.sec.
6283 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6287 (remote_target::select_thread_for_ambiguous_stop_reply): New
6289 (remote_target::process_stop_reply): Call
6290 select_thread_for_ambiguous_stop_reply.
6292 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6294 * record-btrace.c (class record_btrace_target): Remove.
6295 (record_btrace_target::commit_resume): Remove.
6296 * record-full.c (class record_full_target): Remove.
6297 (record_full_target::commit_resume): Remove.
6299 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6301 * remote.c (enum class resume_state): New.
6302 (struct resumed_pending_vcont_info): New.
6303 (struct remote_thread_info) <resume_state, set_not_resumed,
6304 set_resumed_pending_vcont, resumed_pending_vcont_info,
6305 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6307 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6308 (remote_target::remote_add_thread): Adjust.
6309 (remote_target::process_initial_stop_replies): Adjust.
6310 (remote_target::resume): Adjust.
6311 (remote_target::commit_resume): Rely on state in
6312 remote_thread_info and not on tp->executing.
6313 (remote_target::process_stop_reply): Adjust.
6315 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6317 * arc-tdep.h (arc_debug_printf): New.
6318 * arc-tdep.c: Use arc_debug_printf.
6319 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6320 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6321 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6323 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6325 * arc-tdep.h (arc_debug): Change type to bool.
6326 * arc-tdep.c (arc_debug): Change type to bool.
6327 (arc_analyze_prologue): Adjust.
6328 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6329 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6331 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6333 * auto-load.c (auto_load_objfile_script_1): Use bool.
6334 (execute_script_contents): Use bool.
6336 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6338 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6340 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6342 * extension-priv.h (struct extension_language_script_ops)
6343 <auto_load_enabled>: Return bool.
6344 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6346 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6348 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6350 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6351 move comment to header.
6352 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6354 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6355 move comment to header.
6357 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6359 * auto-load.h (file_is_auto_load_safe): Change return type to
6360 bool, move comment here.
6361 * auto-load.c (file_is_auto_load_safe): Change return type and
6362 advice_printed to bool. Move comment to header.
6364 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6366 * jit.c (jit_debug_printf): New, use throughout file.
6368 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6370 * infrun.c (normal_stop): Fix indentation.
6372 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6374 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6376 * symfile.h: ... here.
6377 * symfile.c: Update doc.
6379 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6381 * target.h (baud_rate, serial_parity): Move declarations...
6382 * serial.h: ... here.
6383 * main.c: Include serial.h.
6384 * serial.c (baud_rate, serial_parity): Update doc.
6386 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6388 * top.c (pre_init_ui_hook): Remove.
6390 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6392 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6393 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6394 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6395 * features/aarch64-fpu.xml: Add bfloat16 type.
6397 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6399 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6401 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6403 * f-exp.y (dot_ops): Rename to...
6404 (fortran_operators): ...this. Add a header comment. Add symbol
6406 (yylex): Update to use fortran_operators not dot_ops. Remove
6407 special handling for '**', this is now included in
6410 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6412 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6413 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6414 * aarch64-tdep.c: Use aarch64_debug_printf.
6416 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6418 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6421 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6423 * jit.c (jit_debug): Change type to bool.
6424 (_initialize_jit): Adjust.
6426 2021-01-09 Tom Tromey <tom@tromey.com>
6429 * compile/compile.c (compile_to_object): Avoid crash when
6430 osabi_triplet_regexp returns NULL.
6432 2021-01-09 Tom Tromey <tom@tromey.com>
6434 * tracepoint.h (class collection_list) <append_exp>: Take a
6436 * tracepoint.c (collection_list::append_exp): Take a std::string.
6437 (encode_actions_1): Update.
6439 2021-01-08 Tom Tromey <tromey@adacore.com>
6441 * parse.c (parse_expression): Add void_context_p parameter. Use
6442 parse_exp_in_context.
6443 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6445 (print_command, call_command): Update.
6446 * expression.h (parse_expression): Add void_context_p parameter.
6448 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6450 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6451 for internalvar components that have a dynamic location.
6453 2021-01-08 Tom de Vries <tdevries@suse.de>
6456 * breakpoint.c (create_exception_master_breakpoint_probe)
6457 (create_exception_master_breakpoint_hook): Factor out
6459 (create_exception_master_breakpoint): ... here. Only try to install
6460 the master exception breakpoint in objfile.debug using the
6461 _Unwind_DebugHook method, if the install using probes in objfile
6464 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6466 * f-lang.c (fortran_value_subarray): Call value_from_component.
6468 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6470 * remote-sim.c: Include memory-map.h.
6471 (gdbsim_target): Define memory_map override.
6472 (gdbsim_target::memory_map): Define.
6474 2021-01-07 Tom Tromey <tromey@adacore.com>
6476 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6478 2021-01-07 Tom Tromey <tromey@adacore.com>
6480 * ada-lang.c (add_component_interval): Start loop using vector's
6483 2021-01-06 Tom Tromey <tromey@adacore.com>
6485 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6487 * valarith.c (fixed_point_binop): Handle multiplication
6488 and division specially.
6489 * valops.c (value_to_gdb_mpq): New function.
6490 (value_cast_to_fixed_point): Use it.
6492 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6494 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6495 Call wnoutrefresh instead of tui_win_info::refresh_window.
6497 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6499 * tui/tui-source.c (tui_source_window::show_line_number):
6500 Redraw second space after line number.
6502 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6505 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6506 Fix source pad size in prefresh.
6507 (tui_source_window_base::show_source_content): Grow source pad
6510 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6512 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6513 (bfin_frame_align): Use align_down.
6515 2021-01-04 Tom de Vries <tdevries@suse.de>
6517 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6518 terminators that do not terminate anything.
6520 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6522 * debug.c (debug_print_depth): New.
6523 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6524 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6525 * infrun.c (start_step_over): Use
6526 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6527 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6528 INFRUN_SCOPED_DEBUG_START_END.
6529 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6531 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6533 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6535 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6537 * utils.c (vfprintf_unfiltered): Print timestamp only when
6538 previous debug output ended with a newline.
6540 2021-01-04 Luis Machado <luis.machado@linaro.org>
6542 Update all users of trad_frame_saved_reg to use the new member
6545 Remote all struct keywords from declarations of trad_frame_saved_reg
6546 types, except on forward declarations.
6548 * aarch64-tdep.c: Update.
6549 * alpha-mdebug-tdep.c: Update.
6550 * alpha-tdep.c: Update.
6551 * arc-tdep.c: Update.
6552 * arm-tdep.c: Update.
6553 * avr-tdep.c: Update.
6554 * cris-tdep.c: Update.
6555 * csky-tdep.c: Update.
6556 * frv-tdep.c: Update.
6557 * hppa-linux-tdep.c: Update.
6558 * hppa-tdep.c: Update.
6559 * hppa-tdep.h: Update.
6560 * lm32-tdep.c: Update.
6561 * m32r-linux-tdep.c: Update.
6562 * m32r-tdep.c: Update.
6563 * m68hc11-tdep.c: Update.
6564 * mips-tdep.c: Update.
6565 * moxie-tdep.c: Update.
6566 * riscv-tdep.c: Update.
6567 * rs6000-tdep.c: Update.
6568 * s390-linux-tdep.c: Update.
6569 * s390-tdep.c: Update.
6570 * score-tdep.c: Update.
6571 * sparc-netbsd-tdep.c: Update.
6572 * sparc-sol2-tdep.c: Update.
6573 * sparc64-fbsd-tdep.c: Update.
6574 * sparc64-netbsd-tdep.c: Update.
6575 * sparc64-obsd-tdep.c: Update.
6576 * sparc64-sol2-tdep.c: Update.
6577 * tilegx-tdep.c: Update.
6578 * v850-tdep.c: Update.
6579 * vax-tdep.c: Update.
6581 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6582 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6584 * trad-frame.c: Update.
6585 Remove TF_REG_* enum.
6586 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6587 a trivially-constructible struct.
6588 (trad_frame_reset_saved_regs): Adjust to use member function.
6589 (trad_frame_value_p): Likewise.
6590 (trad_frame_addr_p): Likewise.
6591 (trad_frame_realreg_p): Likewise.
6592 (trad_frame_value_bytes_p): Likewise.
6593 (trad_frame_set_value): Likewise.
6594 (trad_frame_set_realreg): Likewise.
6595 (trad_frame_set_addr): Likewise.
6596 (trad_frame_set_unknown): Likewise.
6597 (trad_frame_set_value_bytes): Likewise.
6598 (trad_frame_get_prev_register): Likewise.
6599 * trad-frame.h: Update.
6600 (trad_frame_saved_reg_kind): New enum.
6601 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6602 <m_kind, m_reg>: New member fields.
6603 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6604 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6605 <is_addr, is_unknown, is_value_bytes>: New member functions.
6607 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6609 * target-float.c: Fix typos.
6611 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6613 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6615 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6617 * gdbarch.sh: Update copyright year range.
6619 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6621 Update copyright year range in copyright header of all GDB files.
6623 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6625 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6626 to the list of directories to update.
6628 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6630 * top.c (print_gdb_version): Update copyright year.
6632 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6634 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6636 For older changes see ChangeLog-2020.
6642 version-control: never