1 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
3 * python/py-tui.c (tui_py_window::output): Add full_window
5 (gdbpy_tui_write): Parse "full_window" argument.
7 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9 * make-init-c: Add option to reverse function calls.
11 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
13 * Makefile.in (INIT_FILES_FILTER_OUT): New.
14 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
15 (stamp-init): Use make-init-c.
16 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
17 * silent-rules.mk (ECHO_INIT_C): Change.
18 * make-init-c: New file.
20 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
22 * command.h (add_alias_cmd): Accept target as
23 cmd_list_element. Update callers.
25 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
27 * command.h (add_info_alias): Accept target as
28 cmd_list_element. Update callers.
30 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
32 * command.h (add_com_alias): Accept target as
33 cmd_list_element. Update callers.
35 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
37 * python/py-param.c (add_setshow_generic): Use return values of
38 add_setshow functions.
40 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
42 * mi/mi-main.c (_initialize_mi_main):
43 * python/py-auto-load.c (gdbpy_initialize_auto_load):
44 * remote.c (_initialize_remote):
46 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
48 * command.h (set_show_commands): New.
49 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
50 add_setshow_boolean_cmd, add_setshow_filename_cmd,
51 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
52 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
53 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
54 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
55 Return set_show_commands. Adjust callers.
56 * cli/cli-decode.c (add_setshow_cmd_full): Return
57 set_show_commands, remove result parameters, adjust callers.
59 2021-05-27 Tom de Vries <tdevries@suse.de>
62 * dwarf2/read.c (process_psymtab_comp_unit):
64 2021-05-27 Tom de Vries <tdevries@suse.de>
66 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
69 2021-05-27 Tom de Vries <tdevries@suse.de>
72 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
73 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
74 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
75 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
77 (dwarf2_per_cu_data): Remove load_all_dies field.
79 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
81 * regcache.c (reg_buffer::reg_buffer): Default-initialize
84 2021-05-26 Tom Tromey <tom@tromey.com>
86 * dwarf2/read.c (allocate_type_unit_groups_table)
87 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
89 (free_line_header_voidp): Remove.
91 (completion_tracker::completion_hash_entry::deleter): Remove.
92 (completion_tracker::discard_completions): Use htab_delete_entry.
93 * utils.h (htab_delete_entry): New template function.
95 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
97 * python/py-tui.c (tui_py_window::refresh_window):
100 2021-05-23 Tom de Vries <tdevries@suse.de>
103 * target.h (struct target_ops): Mention target_thread_architecture in
104 read_description comment.
105 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
106 pid to determine if process is 64-bit or 32-bit.
107 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
109 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
110 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
111 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
112 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
113 Likewise, use pid to determine if kernel supports reading VFP
116 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
118 * main.c (enum cmdarg_kind): Fix option type comments for
119 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
121 2021-05-21 Tom de Vries <tdevries@suse.de>
124 * contrib/cc-with-tweaks.sh: Handle -l.
126 2021-05-21 Tom de Vries <tdevries@suse.de>
129 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
130 objects. Call get_jiter_objfile_data with the_objfile.
132 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
134 * linespec.c (linespec_p): Remove. Replace all uses with
137 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
138 Pedro Alves <pedro@palves.net>
140 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
141 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
142 command_line_up instead of struct command_line.
143 (build_command_line): Likewise.
144 (get_command_line): Update the cmd function call parameter.
145 (process_next_line): Use unique_ptr command_line_up instead
146 of struct command_line.
147 (recurse_read_control_structure): Change the the type of
148 next to command_line_up.
149 (read_command_lines_1): Change type of `next' to be
150 command_line_up and update all references of `next'
153 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
155 * MAINTAINERS (Write After Approval): Add myself.
157 2021-05-19 John Baldwin <jhb@FreeBSD.org>
159 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
161 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
163 * inflow.c (new_tty): Do not leak tty.
165 2021-05-17 Tom Tromey <tom@tromey.com>
167 * dwarf2/read.h: Update include.
168 * dwarf2/read.c: Update include.
169 * dwarf2/line-header.c: Update include.
170 * dwarf2/cu.h: Update include.
171 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
172 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
173 * Makefile.in (COMMON_SFILES): Update.
175 2021-05-17 Tom Tromey <tom@tromey.com>
177 * dwarf2/read.c (maybe_queue_comp_unit)
178 (dwarf2_per_objfile::age_comp_units): Update.
179 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
181 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
182 add_dependence>: New methods.
183 <m_dependencies>: Add "m_" prefix. Now private.
184 <m_mark>: Add "m_" prefix.
185 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
186 (dwarf2_mark_helper): New function.
187 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
189 2021-05-17 Tom Tromey <tom@tromey.com>
191 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
192 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
193 (dwarf2_cu::dwarf2_cu): Move to cu.c.
194 * dwarf2/cu.c: New file.
195 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
197 2021-05-17 Tom Tromey <tom@tromey.com>
199 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
200 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
202 * dwarf2/cu.h: New file.
204 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
206 * .dir-locals.el: Set sentence-end-double-space for all modes, and
207 set brace-list-open to 0 for C and C++ modes.
209 2021-05-17 Tom Tromey <tromey@adacore.com>
211 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
214 2021-05-17 Tom Tromey <tromey@adacore.com>
216 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
217 (group_from_gid): Subtract one from strncpy length.
219 2021-05-17 Tom Tromey <tromey@adacore.com>
221 * source.c (add_path): Check 'p' before using 'p[-1]'.
223 2021-05-17 Tom Tromey <tromey@adacore.com>
225 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
226 (dwarf2_per_cu_data_up): New typedef.
227 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
228 <all_comp_units>: Use dwarf2_per_cu_data_up.
229 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
230 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
231 (create_cu_from_index_list): Likewise.
232 (create_signatured_type_table_from_index)
233 (create_cus_from_debug_names_list, add_type_unit)
234 (read_comp_units_from_section): Update.
235 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
238 2021-05-17 Tom Tromey <tom@tromey.com>
240 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
241 (sort_tu_by_abbrev_offset): Remove.
242 (build_type_psymtabs): Update.
244 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
246 * py-project.toml: New.
247 * gdb-gdb.py.in: Re-format.
249 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
251 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
253 * command.h (cmd_func_p): Remove.
254 * cli/cli-decode.c (cmd_func_p): Remove.
256 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
258 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
260 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
262 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
264 <alias_target>: ... this.
265 (add_alias_cmd): Rename old to target.
266 (add_info_alias): Rename old_name to target_name.
267 (add_com_alias): Likewise.
269 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
271 * Rename "prefixlist" parameters to "subcommands" throughout.
272 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
273 <subcommands>: ... this.
274 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
275 (lookup_cmd_with_subcommands): ... this.
277 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
279 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
281 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
283 * cli/cli-decode.h (prefixname): Make const, move implementation
285 * cli/cli-decode.c (cmd_list_element::prefixname): New.
287 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
289 * ctfread.c (new_symbol): Set function address.
290 (read_func_kind_type): Remove incorrect type name setting.
291 Don't copy name returned from ctf_type_ame_raw throughout file.
293 2021-05-14 Tom Tromey <tom@tromey.com>
295 * rust-lang.c (rust_language::val_print_struct)
296 (rust_language::print_enum): Use common_val_print, not
299 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
301 * python/py-inferior.c (infpy_get_connection_num): New function.
302 (inferior_object_getset): Add a new element for 'connection_num'.
303 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
305 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
307 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
308 argument type, update and re-wrap, header comment.
309 (remote_target::commit_resumed): Convert any_process_wildcard and
310 may_global_wildcard_vcont from int to bool.
312 2021-05-14 Kent Cheung <kent.cheung@arm.com>
314 * cp-valprint.c (cp_print_value): Replaced duplicate code.
315 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
316 just before printing child values.
317 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
318 printing string representation.
319 * python/py-prettyprint.c (print_children): Check max_depth just
320 before printing child values.
321 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
322 printing string representation.
324 2021-05-14 Mike Frysinger <vapier@gentoo.org>
326 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
327 sim/callback.h & sim/sim.h.
329 2021-05-13 Mike Frysinger <vapier@gentoo.org>
331 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
334 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
336 * inf-child.h (inf_child_target) <follow_exec>: New.
337 * inf-child.c (inf_child_target::follow_exec): New.
339 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
341 * target.h (struct target_ops) <follow_exec>: Add ptid_t
343 (target_follow_exec): Likewise.
344 * target.c (target_follow_exec): Add ptid_t parameter.
345 * infrun.c (follow_exec): Adjust call to target_follow_exec,
346 don't push target nor create thread.
347 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
348 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
349 (thread_db_target::follow_exec): New.
350 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
351 (remote_target::follow_exec): Call
352 process_stratum_target::follow_exec.
353 * target-delegates.c: Re-generate.
355 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
357 * infrun.c (follow_exec): Call target_follow_fork when
358 follow-exec-mode is same.
359 * target.h (target_follow_fork): Improve doc.
361 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
363 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
365 * cli/cli-setshow.c (do_show_command): Adjust.
367 2021-05-13 Luis Machado <luis.machado@linaro.org>
369 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
370 include the last address in the range.
372 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
374 * python/python-internal.h (gdbpy_parse_command_name): Return
375 gdb::unique_xmalloc_ptr.
376 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
377 (cmdpy_init): Adjust.
378 * python/py-param.c (parmpy_init): Adjust.
379 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
382 2021-05-12 George Barrett <bob@bob131.so>
384 * NEWS (Guile API): Note the addition of the new procedure.
385 * guile/scm-value.c (gdbscm_value_const_value): Add
386 implementation of value-const-value procedure.
387 (value_functions): Add value-const-value procedure.
389 2021-05-12 George Barrett <bob@bob131.so>
391 * NEWS (Guile API): Note the addition of new procedures.
392 * guile/scm-value.c (gdbscm_reference_value): Add helper function
393 for reference value creation.
394 (gdbscm_value_reference_value): Add implementation of
395 value-reference-value procedure.
396 (gdbscm_value_rvalue_reference_value): Add implementation of
397 value-rvalue-reference-value procedure.
398 (value_functions): Add value-reference-value procedure. Add
399 value-rvalue-reference-value procedure.
401 2021-05-12 George Barrett <bob@bob131.so>
403 * guile/scm-type.c (type_integer_constants): Add binding for
404 TYPE_CODE_RVALUE_REF.
405 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
406 dereferencing of rvalue references.
407 * NEWS (Guile API): Note improvements in rvalue reference support.
409 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
411 * btrace.c (handle_pt_insn_events): Ignore status update enable
414 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
416 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
419 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
421 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
423 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
426 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
429 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
431 * nat/linux-waitpid.c (status_to_str): Show signal name.
433 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
435 * python/py-breakpoint.c (pybp_debug): New static global.
436 (show_pybp_debug): New function.
437 (pybp_debug_printf): Define.
438 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
439 (gdbpy_breakpoint_created): Add some debugging.
440 (gdbpy_breakpoint_deleted): Likewise.
441 (gdbpy_breakpoint_modified): Likewise.
442 (_initialize_py_breakpoint): New function.
444 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
446 * python/py-unwind.c (pyuw_debug): Convert to bool.
447 (show_pyuw_debug): New function.
448 (pyuw_debug_printf): Define.
449 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
450 (pyuw_this_id): Convert to new debug print macros.
451 (pyuw_prev_register): Likewise.
452 (pyuw_sniffer): Likewise.
453 (pyuw_dealloc_cache): Likewise.
454 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
455 show function when registering.
457 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
459 * dummy-frame.c (fprint_dummy_frames): Convert use of
460 fprint_frame_id to use frame_id::to_string.
461 * frame.c (fprint_field): Delete.
462 (fprint_frame_id): Moved to...
463 (frame_id::to_string): ...this, rewritten to return a string.
464 (fprint_frame): Convert use of fprint_frame_id to use
466 (compute_frame_id): Likewise.
467 (frame_id_p): Likewise.
468 (frame_id_eq): Likewise.
469 (frame_id_inner): Likewise.
470 * frame.h (struct frame_id) <to_string>: New member function.
471 (fprint_frame_id): Delete declaration.
472 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
473 fprint_frame_id to use frame_id::to_string.
474 * python/py-frame.c (frame_object_to_frame_info): Likewise.
475 * python/py-unwind.c (unwind_infopy_str): Likewise.
476 (pyuw_this_id): Likewise.
478 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
480 * nat/linux-waitpid.c (status_to_str): Return std::string.
481 * nat/linux-waitpid.h (status_to_str): Likewise.
482 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
483 (linux_nat_target::attach): Adjust.
484 (linux_handle_extended_wait): Adjust.
486 (stop_wait_callback): Adjust.
487 (linux_nat_filter_event): Adjust.
488 (linux_nat_wait_1): Adjust.
489 * nat/linux-waitpid.c (status_to_str): Adjust.
490 * nat/linux-waitpid.h (status_to_str): Adjust.
492 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
494 * infrun.h (infrun_debug_printf): Add missing space.
496 2021-05-08 Pedro Alves <pedro@palves.net>
498 * linux-nat.c (linux_nat_target::supports_disable_randomization):
499 Remove references to HAVE_PERSONALITY.
500 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
501 (maybe_disable_address_space_randomization)
502 (~maybe_disable_address_space_randomizatio): Remove references to
504 * config.in, configure: Regenerate.
506 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
508 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
510 (source_script_with_search): Perform tilde expansion.
512 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
514 * target-descriptions.c (struct target_desc_info) <filename>:
516 (copy_inferior_target_desc_info): Adjust.
517 (target_desc_info_free): Adjust.
518 (target_find_description): Adjust.
519 (set_tdesc_filename_cmd): Adjust.
520 (show_tdesc_filename_cmd): Adjust.
521 (unset_tdesc_filename_cmd): Adjust.
522 (maint_print_c_tdesc_cmd): Adjust.
524 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
526 * target-descriptions.c (struct target_desc_info): Initialize
528 (get_tdesc_info): Use new.
529 (target_desc_info_free): Use delete.
531 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
533 * target-descriptions.c (struct target_desc_info) <fetched>:
535 (target_find_description): Adjust.
536 (target_clear_description): Adjust.
538 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
540 * target-descriptions.c (struct target_desc_info) <tdesc>:
542 (target_desc_fetched): Remove.
543 (current_target_desc): Remove.
544 (target_description_filename): Remove.
545 (target_find_description): Adjust.
546 (target_clear_description): Adjust.
547 (target_current_description): Adjust.
548 (set_tdesc_filename_cmd): Adjust.
549 (show_tdesc_filename_cmd): Adjust.
550 (unset_tdesc_filename_cmd): Adjust.
551 (maint_print_c_tdesc_cmd): Adjust.
552 (maint_print_xml_tdesc_cmd): Adjust.
554 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
556 * infcmd.c (notice_new_inferior): Change parameter type.
557 * inferior.h (notice_new_inferior): Change parameter type.
558 * remote.c (remote_notice_new_inferior): Change parameter type to
559 bool. Also update type of local variable to bool.
560 (remote_target::update_thread_list): Change type of local variable
562 (remote_target::process_stop_reply): Pass bool instead of int to
563 remote_notice_new_inferior.
565 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
567 * target.c (target_stack::unpush): Call target_ops::find_beneath
568 to get the target beneath `t`.
570 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
572 * target.c (target_close): Check in all inferiors that the
573 target is not pushed.
575 2021-05-07 Aaron Merey <amerey@redhat.com>
577 * debuginfod-support.c (debuginfod_init): Remove.
578 (get_debuginfod_client): New function.
580 2021-05-07 Tom Tromey <tom@tromey.com>
582 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
583 * utils.c (streq_hash): Remove.
584 * utils.h (streq_hash): Don't declare.
585 * completer.c (completion_tracker::discard_completions): Update
587 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
589 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
591 * Re-format all Python files using black.
593 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
595 * guile/guile-internal.h (gdbscm_safe_source_script): Change
596 function return type.
597 * guile/guile.c (gdbscm_source_script): Update to handle change in
598 gdbscm_safe_source_script.
599 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
600 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
603 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
605 * inferior.h (class inferior) <args>: Change type to
607 * inferior.c (inferior::~inferior): Don't free args.
608 * infcmd.c (get_inferior_args): Adjust.
609 (set_inferior_args): Adjust.
611 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
613 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
614 breakpoint locations when the breakpoint actually has a location.
616 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
618 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
619 * mi/mi-cmds.c: Change the binding of "-break-condition" to
620 mi_cmd_break_condition.
621 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
622 * breakpoint.h (set_breakpoint_condition): Declare a new
624 * breakpoint.c (set_breakpoint_condition): New overloaded function
625 extracted out from ...
626 (condition_command): ... this.
627 * NEWS: Mention the change.
629 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
631 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
632 '--force-condition' flag to force the condition in the
633 '-break-insert' and '-dprintf-insert' commands.
634 * NEWS: Mention the change.
636 2021-05-04 Tom de Vries <tdevries@suse.de>
639 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
642 2021-04-30 Tom Tromey <tom@tromey.com>
644 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
645 (add_signatured_type_cu_to_table): Remove.
646 (create_debug_type_hash_table): Assume dwo_file is non-null.
647 (create_debug_types_hash_table): Update comment.
648 (create_all_type_units): Remove.
649 (sort_tu_by_abbrev_offset): Update comment.
650 (build_type_psymtabs): Rename from build_type_psymtabs_1.
651 (build_type_psymtabs): Remove.
652 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
654 (read_comp_units_from_section): Add types_htab, section_kind
656 (create_all_comp_units): Read type units.
658 2021-04-30 Tom Tromey <tom@tromey.com>
660 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
661 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
662 <get_cu>: Now inline.
663 <all_type_units>: Remove.
664 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
665 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
666 (dwarf2_per_bfd::get_tu): Remove.
667 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
668 (create_signatured_type_table_from_index)
669 (create_signatured_type_table_from_debug_names)
670 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
671 (dwarf2_base_index_functions::expand_all_symtabs)
672 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
673 (dwarf2_base_index_functions::map_symbol_filenames)
674 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
675 (add_signatured_type_cu_to_table, create_all_type_units)
676 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
677 (create_all_comp_units): Update.
678 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
679 (write_debug_names): Update.
681 2021-04-30 Tom Tromey <tom@tromey.com>
683 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
684 allocate_signatured_type>: Change return type.
685 <all_comp_units, all_type_units>: Hold unique pointers.
686 (struct dwarf2_per_cu_data): Add constructor and initializers.
687 (struct signatured_type): Derive from dwarf2_per_cu_data.
688 * dwarf2/read.c (type_unit_group): Derive from
690 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
691 (dwarf2_per_bfd::get_tu)
692 (dwarf2_per_bfd::allocate_signatured_type)
693 (dwarf2_per_bfd::allocate_signatured_type)
694 (create_cu_from_index_list, create_cus_from_index_list)
695 (create_signatured_type_table_from_index)
696 (create_signatured_type_table_from_debug_names)
697 (create_addrmap_from_aranges)
698 (dwarf2_base_index_functions::find_last_source_symtab)
699 (dw_expand_symtabs_matching_file_matcher)
700 (dwarf2_gdb_index::expand_symtabs_matching)
701 (dwarf2_base_index_functions::map_symbol_filenames)
702 (create_cus_from_debug_names_list)
703 (dw2_debug_names_iterator::next)
704 (dwarf2_debug_names_index::expand_symtabs_matching)
705 (create_debug_type_hash_table, add_type_unit)
706 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
708 (allocate_type_unit_groups_table): Use delete.
709 (create_type_unit_group): Change return type. Use new.
710 (get_type_unit_group, build_type_psymtabs_1)
711 (build_type_psymtab_dependencies)
712 (process_skeletonless_type_unit, set_partial_user)
713 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
714 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
715 (read_signatured_type): Update.
716 (dwarf2_find_containing_comp_unit): Change type of
719 (dwarf2_per_bfd::allocate_per_cu)
720 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
722 (add_signatured_type_cu_to_table): Update.
723 * dwarf2/index-write.c (write_one_signatured_type)
724 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
725 (write_debug_names): Update.
727 2021-04-30 Tom Tromey <tromey@adacore.com>
729 * nat/windows-nat.h (get_image_name): Don't declare.
730 * nat/windows-nat.c (get_image_name): Now static.
732 2021-04-30 Tom Tromey <tromey@adacore.com>
734 * windows-nat.c (windows_nat::handle_load_dll): Update.
735 (windows_nat_target::get_windows_debug_event): Call
737 (windows_add_all_dlls, windows_add_dll): Move to
739 * nat/windows-nat.h (handle_load_dll): Change parameters.
740 (dll_loaded_event, windows_add_all_dlls): Declare.
741 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
743 (dll_loaded_event): New function.
745 2021-04-30 Tom Tromey <tromey@adacore.com>
747 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
748 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
750 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
751 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
753 2021-04-30 Tom Tromey <tromey@adacore.com>
755 * windows-nat.c: Move code to nat/windows-nat.[ch].
756 (_initialize_windows_nat): Call initialize_loadable.
757 * nat/windows-nat.h (AdjustTokenPrivileges)
758 (DebugActiveProcessStop, DebugBreakProcess)
759 (DebugSetProcessKillOnExit, EnumProcessModules)
760 (EnumProcessModulesEx, GetModuleInformation)
761 (GetModuleFileNameExA, GetModuleFileNameExW)
762 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
763 (GetCurrentConsoleFont, Wow64SuspendThread)
764 (Wow64GetThreadContext, Wow64SetThreadContext)
765 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
766 (AdjustTokenPrivileges_ftype)
767 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
768 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
769 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
770 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
771 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
772 (GetConsoleFontSize_ftype)
773 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
774 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
775 (Wow64GetThreadSelectorEntry_ftype): Likewise.
776 (initialize_loadable): Declare.
777 * nat/windows-nat.c (AdjustTokenPrivileges)
778 (DebugActiveProcessStop, DebugBreakProcess)
779 (DebugSetProcessKillOnExit, EnumProcessModules)
780 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
781 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
782 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
783 (Wow64GetThreadContext, Wow64SetThreadContext)
784 (Wow64GetThreadSelectorEntry): Define.
785 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
787 (initialize_loadable): Likewise, and rename.
789 2021-04-30 Tom Tromey <tromey@adacore.com>
791 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
792 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
793 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
794 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
795 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
796 (bad): New template functions.
797 (_initialize_loadable): Update.
799 2021-04-30 Tom Tromey <tromey@adacore.com>
801 * ada-lang.c (ada_index_type): Use ada_check_typedef.
803 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
805 * auto-load.h: Split namespace declaration.
807 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
809 * infrun.c (save_waitstatus): Move variables to inner scope.
811 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
813 * NEWS: Fix typo and stray full stop.
815 2021-04-28 Tom Tromey <tromey@adacore.com>
817 * ada-exp.y (primary): Use new type for null pointer.
818 * ada-lang.c (ada_type_match): Remove "may_deref"
819 parameter. Handle null pointer.
820 (ada_args_match): Update.
821 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
824 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
826 * NEWS: Mention new commands.
827 * python/python.c (python_ignore_environment): New static global.
828 (show_python_ignore_environment): New function.
829 (set_python_ignore_environment): New function.
830 (python_dont_write_bytecode): New static global.
831 (show_python_dont_write_bytecode): New function.
832 (set_python_dont_write_bytecode): New function.
833 (_initialize_python): Register new commands.
835 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
837 * extension-priv.h (struct extension_language_ops): Rename
838 'finish_initialization' to 'initialize'.
839 * extension.c (finish_ext_lang_initialization): Renamed to...
840 (ext_lang_initialization): ...this, update comment, and updated
841 the calls to reflect the change in struct extension_language_ops.
842 * extension.h (finish_ext_lang_initialization): Renamed to...
843 (ext_lang_initialization): ...this.
844 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
845 (gdbscm_initialize): ...this, update comment at definition.
846 (guile_extension_ops): Update.
847 * main.c (captured_main_1): Update call to
848 finish_ext_lang_initialization.
849 * python/python.c (gdbpy_finish_initialization): Rename to...
850 (gdbpy_initialize): ...this, update comment at definition, and
851 update call to do_finish_initialization.
852 (python_extension_ops): Update.
853 (do_finish_initialization): Rename to...
854 (do_initialize): ...this, and update comment.
856 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
858 * main.c (captured_main_1): Add a call to
859 finish_ext_lang_initialization.
860 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
862 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
864 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
865 (gdbscm_finish_initialization): Add code moved from
867 (_initialize_guile): Move code to gdbscm_finish_initialization.
868 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
869 _initialize_scm_arch.
870 (_initialize_scm_arch): New function.
871 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
872 into _initialize_scm_block.
873 (_initialize_scm_block): New function.
874 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
875 into _initialize_scm_frame.
876 (_initialize_scm_frame): New function.
877 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
878 into _initialize_scm_objfile.
879 (_initialize_scm_objfile): New function.
880 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
881 code into _initialize_scm_progspace.
882 (_initialize_scm_progspace): New function.
883 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
884 into _initialize_scm_symbol.
885 (_initialize_scm_symbol): New function.
886 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
887 into _initialize_scm_symtab.
888 (_initialize_scm_symtab): New function.
889 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
890 _initialize_scm_type.
891 (_initialize_scm_type): New function.
893 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
895 * python/py-arch.c (_initialize_py_arch): New function.
896 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
897 * python/py-block.c (_initialize_py_block): New function.
898 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
899 * python/py-inferior.c (_initialize_py_inferior): New function.
900 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
901 * python/py-objfile.c (_initialize_py_objfile): New function.
902 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
903 * python/py-progspace.c (_initialize_py_progspace): New function.
904 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
905 * python/py-registers.c (_initialize_py_registers): New function.
906 (gdbpy_initialize_registers): Move code to
907 _initialize_py_registers.
908 * python/py-symbol.c (_initialize_py_symbol): New function.
909 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
910 * python/py-symtab.c (_initialize_py_symtab): New function.
911 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
912 * python/py-type.c (_initialize_py_type): New function.
913 (gdbpy_initialize_types): Move code to _initialize_py_type.
914 * python/py-unwind.c (_initialize_py_unwind): New function.
915 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
916 * python/python.c (_initialize_python): Move call to
917 do_start_initialization to gdbpy_finish_initialization.
918 (gdbpy_finish_initialization): Add call to
919 do_start_initialization.
921 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
923 * extension.c (struct scoped_default_signal): New struct.
924 (scoped_default_sigint): New typedef.
925 (finish_ext_lang_initialization): Make use of
926 scoped_default_sigint.
928 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
930 * main.c (captured_main_1): Don't pass argument to gdb_init.
931 * top.c (gdb_init): Remove unused argument, and add header
933 * top.h (gdb_init): Remove argument.
935 2021-04-27 Luis Machado <luis.machado@linaro.org>
937 * psymtab.c (psymbol_functions::dump): Output newline.
939 * symmisc.c (dump_objfile): Likewise.
941 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
942 Simon Marchi <simon.marchi@polymtl.ca>
944 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
945 when attaching the 'auto_load_new_objfile' observer, so
946 other observers can specify it as a dependency.
947 * gdb/auto-load.h (struct token): Declare
948 'auto_load_new_objfile_observer_token' as token to be used
949 for the 'auto_load_new_objfile' observer.
950 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
951 'python_new_objfile' observer depend on 'auto_load_new_objfile'
952 observer, so it gets notified after the latter.
954 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
955 Simon Marchi <simon.marchi@polymtl.ca>
957 * unittests/observable-selftests.c (dependency_test_counters):
959 (observer_token0, observer_token1, observer_token2,
960 observer_token3, observer_token4, observer_token5): New.
961 (struct dependency_observer_data): New struct.
962 (observer_dependency_test_callback): New function.
963 (test_observers): New.
964 (run_dependency_test): New function.
965 (test_dependency): New.
966 (_initialize_observer_selftest): Register dependency test.
968 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
971 * cli/cli-dump.c (dump_binary_file): Check result of
974 2021-04-25 Sergei Trofimovich <siarheit@google.com>
976 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
977 by passing `process_stratum_target*` parameter.
979 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
982 * typeprint.h (struct type_print_options): Add print_in_hex
984 (struct print_offset_data): Add print_in_hex flag, add a
985 constructor accepting a type_print_options* argument.
986 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
987 default value for print_in_hex.
988 (print_offset_data::indentation): Allow more horizontal space.
989 (print_offset_data::print_offset_data): Add ctor.
990 (print_offset_data::maybe_print_hole, print_offset_data::update):
991 Handle the print_in_hex flag.
992 (whatis_exp): Handle 'x' and 'd' flags.
993 (print_offsets_and_sizes_in_hex): Declare.
994 (set_print_offsets_and_sizes_in_hex): Create.
995 (show_print_offsets_and_sizes_in_hex): Create.
996 (_initialize_typeprint): Update help message for the ptype
997 command, register the 'set print type hex' and 'show print type
999 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1000 (c_type_print_base): Construct the print_offset_data
1001 object using the type_print_optons parameter.
1002 * rust-lang.c (rust_language::print_type): Construct the
1003 print_offset_data object using the type_print_optons parameter.
1004 * NEWS: Mention the new flags of the ptype command.
1006 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1008 * typeprint.h (struct type_print_options): Move before
1011 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1015 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1017 * observable.c (observer_debug): Change to bool.
1019 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1021 * dwarf2/read.c: Add 'unordered_set' include.
1022 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1023 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1024 of per_Bfd->filenames_cache cache, and use function local
1025 filenames_cache instead. Reindent.
1026 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1028 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1030 * breakpoint.c (iterate_over_bp_locations): Change callback to
1031 function view, remove data parameter.
1032 * breakpoint.h (iterate_over_bp_locations): Likewise.
1033 * record-full.c (record_full_sync_record_breakpoints): Remove
1036 2021-04-22 Tom Tromey <tom@tromey.com>
1038 * c-typeprint.c (c_type_print_base_struct_union): Use
1039 print_spaces_filtered_with_print_options.
1041 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1044 * python/py-type.c (typy_range): Check that bounds are constant
1045 before accessing them as such.
1046 * guile/scm-type.c (gdbscm_type_range): Likewise.
1048 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1050 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1051 * inferior.c (inferior::add_continuation): New method, adapted
1052 from 'add_inferior_continuation'.
1053 (inferior::do_all_continuations): New method, adapted from
1054 'do_all_inferior_continuations'.
1055 (inferior::~inferior): Clear the list of continuations directly.
1056 * inferior.h (class inferior) <continuations>: Rename into...
1057 <m_continuations>: ...this and make private.
1058 * continuations.c: Remove.
1059 * continuations.h: Remove.
1060 * event-top.c: Don't include "continuations.h".
1062 Update the users below.
1063 * inf-loop.c (inferior_event_handler)
1064 * infcmd.c (attach_command)
1065 (notice_new_inferior): Update.
1067 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1069 * inferior.h (class inferior) <continuations>: Change the type
1070 to be an std::list of std::function's.
1071 Update the references and uses below.
1072 * continuations.c (struct continuation): Delete.
1073 (make_continuation): Delete.
1074 (do_my_continuations_1): Delete.
1075 (do_my_continuations): Delete.
1076 (discard_my_continuations_1): Delete.
1077 (discard_my_continuations): Delete.
1078 (add_inferior_continuation): Update.
1079 (do_all_inferior_continuations): Update.
1080 (discard_all_inferior_continuations): Update.
1081 * continuations.h (add_inferior_continuation): Update to take
1082 an std::function as the parameter.
1083 * infcmd.c (struct attach_command_continuation_args): Delete.
1084 (attach_command_continuation): Delete.
1085 (attach_command_continuation_free_args): Delete.
1086 (attach_command): Update.
1087 (notice_new_inferior): Update.
1089 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1091 * continuations.h: Update the general comment.
1092 * inferior.h (class inferior) <continuations>: Update the comment.
1093 * interps.c: Do not include "continuations.h".
1095 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1097 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1098 parameter. Update the references below.
1099 * continuations.c (do_my_continuations_1)
1100 (do_my_continuations)
1101 (do_all_inferior_continuations): Update.
1102 * inf-loop.c (inferior_event_handler): Update.
1103 * infcmd.c (attach_command_continuation): Update.
1105 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1107 * infcmd.c (attach_post_wait): Update the function comment.
1109 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1111 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1112 Update the references below.
1113 (struct attach_command_continuation_args)
1114 (attach_command_continuation)
1115 (attach_command_continuation_free_args)
1117 (notice_new_inferior): Update to remove the reference to 'args'.
1119 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1120 Tom de Vries <tdevries@suse.de>
1123 * remote.c (remote_target_is_non_stop_p): New function.
1124 * remote.h (remote_target_is_non_stop_p): Declare.
1125 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1126 to check non-stopness using notif_state->remote rather current target.
1128 2021-04-22 Tom Tromey <tom@tromey.com>
1130 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1131 (struct typed_val_int) <val>: Now ULONGEST.
1132 (rust_parser::parse_array_type): Remove negative check.
1133 (rust_lex_int_test): Change 'value' to ULONGEST.
1135 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1137 * arch-utils.c (default_addressable_memory_unit_size): Return a
1138 value based on bfd's bits per byte.
1140 2021-04-21 Tom Tromey <tom@tromey.com>
1142 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1144 (struct dwarf2_per_cu_data): Rearrange.
1145 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1147 (struct comp_unit_head): Rearrange.
1148 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1150 2021-04-21 Tom de Vries <tdevries@suse.de>
1153 * configure.ac: Remove --without-included-regex/--with-included-regex.
1154 * config.in: Regenerate.
1155 * configure: Regenerate.
1156 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1158 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1160 * breakpoint.h (create_breakpoint): Add a new parameter,
1162 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1163 argument when 'parse_extra' is false to check if the condition
1164 is invalid at all of the breakpoint locations.
1165 Update the users below.
1171 (create_tracepoint_from_upload): Update.
1172 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1173 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1174 * python/py-breakpoint.c (bppy_init): Update.
1175 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1177 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1179 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1180 disabled-by-condition locations on MI-like output.
1181 (breakpoint_1): Do not display the disabled-by-condition footnote
1182 if the output is MI-like.
1184 2021-04-21 Frederic Cambus <fred@statdns.com>
1186 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1187 update year range in generated copyright notices.
1189 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1191 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1192 qualifier_seq_noopt.
1194 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1196 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1198 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1200 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1201 (producer_is_icc): Replace use of std::regex with gdb's
1204 2021-04-17 Tom Tromey <tom@tromey.com>
1207 * dwarf2/read.c (class offset_view): New.
1208 (struct symbol_table_slot): Remove.
1209 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1210 <symbol_name_index, symbol_vec_index>: New methods.
1211 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1213 (read_gdb_index_from_buffer): Update.
1214 (struct dw2_symtab_iterator) <vec>: Change type.
1215 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1216 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1217 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1218 <append_array, append_offset>: New methods.
1219 (write_hash_table, add_address_entry, write_gdbindex_1)
1220 (write_debug_names): Update.
1221 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1223 2021-04-17 Tom Tromey <tom@tromey.com>
1225 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1228 2021-04-17 Tom Tromey <tom@tromey.com>
1230 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1231 from map_matching_symbols. Change parameters.
1232 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1233 Rename from map_matching_symbols. Change parameters.
1234 * dwarf2/read.c (struct dwarf2_gdb_index)
1235 <expand_matching_symbols>: Rename from map_matching_symbols.
1237 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1238 Rename from map_matching_symbols. Change parameters.
1239 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1240 dw2_map_matching_symbols. Change parameters.
1241 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1243 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1244 map_matching_symbols. Change parameters.
1245 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1246 from map_matching_symbols. Change parameters.
1247 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1248 map_matching_symbols. Change parameters.
1249 * ada-lang.c (map_matching_symbols): New function.
1250 (add_nonlocal_symbols): Update.
1252 2021-04-17 Tom Tromey <tom@tromey.com>
1254 * quick-symbol.h (struct quick_symbol_functions)
1255 <expand_symtabs_with_fullname>: Remove.
1256 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1258 * psympriv.h (struct psymbol_functions)
1259 <expand_symtabs_with_fullname>: Remove.
1260 * dwarf2/read.c (struct dwarf2_base_index_functions)
1261 <expand_symtabs_with_fullname>: Remove.
1262 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1264 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1266 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1269 2021-04-17 Tom Tromey <tom@tromey.com>
1271 * symfile-debug.c (objfile::expand_symtabs_for_function):
1273 * quick-symbol.h (struct quick_symbol_functions)
1274 <expand_symtabs_for_function>: Remove.
1275 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1277 * psympriv.h (struct psymbol_functions)
1278 <expand_symtabs_for_function>: Remove.
1279 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1281 * dwarf2/read.c (struct dwarf2_gdb_index)
1282 <expand_symtabs_for_function>: Remove.
1283 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1285 (find_slot_in_mapped_hash): Remove.
1286 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1287 (dw2_symtab_iter_init): Remove one overload.
1288 (dwarf2_gdb_index::expand_symtabs_for_function)
1289 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1291 2021-04-17 Tom Tromey <tom@tromey.com>
1293 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1295 * quick-symbol.h (struct quick_symbol_functions)
1296 <map_symtabs_matching_filename>: Remove.
1297 * psymtab.c (partial_map_expand_apply)
1298 (psymbol_functions::map_symtabs_matching_filename): Remove.
1299 * psympriv.h (struct psymbol_functions)
1300 <map_symtabs_matching_filename>: Remove.
1301 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1303 * dwarf2/read.c (struct dwarf2_base_index_functions)
1304 <map_symtabs_matching_filename>: Remove.
1305 (dw2_map_expand_apply)
1306 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1309 2021-04-17 Tom Tromey <tom@tromey.com>
1311 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1312 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1314 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1315 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1316 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1317 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1319 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1320 (dwarf2_gdb_index::lookup_symbol)
1321 (dwarf2_debug_names_index::lookup_symbol): Remove.
1323 2021-04-17 Tom Tromey <tom@tromey.com>
1325 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1326 * symmisc.c (maintenance_expand_symtabs): Update.
1327 * symfile.c (expand_symtabs_matching): Update.
1328 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1330 * quick-symbol.h (struct quick_symbol_functions)
1331 <expand_symtabs_matching>: Add 'domain' parameter.
1332 * psymtab.c (recursively_search_psymtabs)
1333 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1335 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1336 Add 'domain' parameter.
1337 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1339 * linespec.c (iterate_over_all_matching_symtabs): Update.
1340 * dwarf2/read.c (struct dwarf2_gdb_index)
1341 <expand_symtabs_matching>: Add 'domain' parameter.
1342 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1344 (dw2_expand_symtabs_matching)
1345 (dwarf2_gdb_index::expand_symtabs_matching)
1346 (dw2_debug_names_iterator)
1347 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1350 2021-04-17 Tom Tromey <tom@tromey.com>
1352 * symtab.c (global_symbol_searcher::expand_symtabs)
1353 (default_collect_symbol_completion_matches_break_on): Update.
1354 * symmisc.c (maintenance_expand_symtabs): Update.
1355 * symfile.h (expand_symtabs_matching): Add search_flags
1357 * symfile.c (expand_symtabs_matching): Add search_flags
1359 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1360 search_flags parameter.
1361 * quick-symbol.h (struct quick_symbol_functions)
1362 <expand_symtabs_matching>: Add search_flags parameter.
1363 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1364 * psymtab.c (recursively_search_psymtabs)
1365 (psymbol_functions::expand_symtabs_matching): Add search_flags
1367 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1368 Add search_flags parameter.
1369 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1370 search_flags parameter.
1371 * linespec.c (iterate_over_all_matching_symtabs): Update.
1372 * dwarf2/read.c (struct dwarf2_gdb_index)
1373 <expand_symtabs_matching>: Add search_flags parameter.
1374 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1375 search_flags parameter.
1376 (dw2_map_matching_symbols): Update.
1377 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1378 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1380 (dw2_debug_names_iterator): Change block_index to search flags.
1381 <m_block_index>: Likewise.
1382 (dw2_debug_names_iterator::next)
1383 (dwarf2_debug_names_index::lookup_symbol)
1384 (dwarf2_debug_names_index::expand_symtabs_for_function)
1385 (dwarf2_debug_names_index::map_matching_symbols)
1386 (dwarf2_debug_names_index::map_matching_symbols): Update.
1387 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1388 search_flags parameter.
1389 * ada-lang.c (ada_add_global_exceptions)
1390 (collect_symbol_completion_matches): Update.
1392 2021-04-17 Tom Tromey <tom@tromey.com>
1394 * symtab.c (default_collect_symbol_completion_matches_break_on):
1396 * symfile.h (expand_symtabs_matching): Return bool.
1397 * symfile.c (expand_symtabs_matching): Return bool.
1398 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1400 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1401 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1403 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1405 * psympriv.h (struct psymbol_functions)
1406 <expand_symtabs_matching>: Return bool.
1407 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1409 * dwarf2/read.c (struct dwarf2_gdb_index)
1410 <expand_symtabs_matching>: Return bool.
1411 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1413 (dw2_expand_symtabs_matching_symbol): Return bool.
1414 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1415 (dw2_expand_symtabs_matching)
1416 (dwarf2_gdb_index::expand_symtabs_matching)
1417 (dwarf2_debug_names_index::expand_symtabs_matching)
1418 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1420 2021-04-17 Tom Tromey <tom@tromey.com>
1422 * quick-symbol.h (enum block_search_flag_values): New.
1423 (block_search_flags): New enum flags type.
1425 2021-04-16 Tom Tromey <tom@tromey.com>
1427 * rust-parse.c: New file.
1428 * rust-exp.y: Remove.
1429 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1430 (SFILES): Remove rust-exp.y.
1431 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1433 2021-04-16 Luis Machado <luis.machado@linaro.org>
1435 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1437 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1439 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1440 use throughout file.
1442 2021-04-15 Tom Tromey <tromey@adacore.com>
1444 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1447 2021-04-15 Tom Tromey <tromey@adacore.com>
1449 * printcmd.c (print_variable_and_value): Use
1450 common_val_print_checked.
1452 2021-04-15 Tom Tromey <tromey@adacore.com>
1454 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1455 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1457 * p-exp.y (variable): Update.
1458 * m2-exp.y (variable): Update.
1459 * go-exp.y (variable): Update.
1460 * expprint.c (dump_for_expression): New overload.
1461 * expop.h (check_objfile): New overload.
1462 (check_constant): New overload.
1463 (class var_value_operation): Use block_symbol.
1464 <get_symbol>: Rewrite.
1465 * eval.c (var_value_operation::evaluate)
1466 (var_value_operation::evaluate_funcall)
1467 (var_value_operation::evaluate_for_address)
1468 (var_value_operation::evaluate_for_address)
1469 (var_value_operation::evaluate_with_coercion)
1470 (var_value_operation::evaluate_for_sizeof)
1471 (var_value_operation::evaluate_for_cast): Update.
1472 * d-exp.y (PrimaryExpression): Update.
1473 * c-exp.y (variable): Update.
1474 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1475 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1476 (ada_var_value_operation::evaluate)
1477 (ada_var_value_operation::resolve)
1478 (ada_funcall_operation::resolve): Update.
1479 * ada-exp.y (write_var_from_sym, write_object_renaming)
1480 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1481 (maybe_overload): Update.
1482 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1484 2021-04-15 Tom Tromey <tom@tromey.com>
1485 Andrew Burgess <andrew.burgess@embecosm.com>
1488 * main.c (captured_main_1): Call check_quiet_mode.
1489 * top.c (startup_quiet): New global.
1490 (check_quiet_mode): New function.
1491 (show_startup_quiet): New function.
1492 (init_main): Register new command.
1493 * top.h (check_quiet_mode): Declare.
1495 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1498 * NEWS: Mention new early init files and command line options.
1499 * config.in: Regenerate.
1500 * configure: Regenerate.
1501 * configure.ac: Define GDBEARLYINIT.
1502 * main.c (get_earlyinit_files): New function.
1503 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1504 CMDARG_EARLYINIT_COMMAND.
1505 (captured_main_1): Add support for new command line flags, and for
1506 processing startup files.
1507 (print_gdb_help): Include startup files in the output.
1509 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1511 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1512 (relocate_file_path_maybe_in_datadir): ...this.
1513 (class gdb_initfile_finder): New class.
1514 (get_init_files): Now uses gdb_initfile_finder.
1515 (print_gdb_help): Print 'None found' when there are no init files.
1517 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1519 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1520 corresponding child of the abstract DIE when iterating the
1521 children of the concrete DIE.
1523 2021-04-13 Tom de Vries <tdevries@suse.de>
1525 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1528 2021-04-13 Luis Machado <luis.machado@linaro.org>
1530 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1533 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1535 * rs6000-tdep.c: Add support for single-stepping of
1536 prefixed instructions.
1538 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1541 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1542 handle the addpcis/lnia instruction.
1544 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1546 * MAINTAINERS (Write After Approval): Add myself.
1548 2021-4-12 Carl Love <cel@us.ibm.com>
1550 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1551 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1554 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1556 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1557 * nat/windows-nat.h: Likewise.
1559 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1561 * windows-nat.c (windows_nat::handle_load_dll): Call
1562 windows_add_dll if get_image_name failed to glean the name of the
1563 DLL by using the lpImageName pointer.
1564 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1565 (windows_add_dll): Now does what windows_add_all_dlls did before,
1566 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1567 specifies the address where the DLL was loaded into the inferior,
1568 and looks for the single DLL loaded at that address.
1570 2021-04-09 Luis Machado <luis.machado@linaro.org>
1572 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1574 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1576 * darwin-nat.c (darwin_nat_target::resume): Remove status
1579 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1581 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1582 prologue end for Intel compilers.
1583 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1584 * producer.c (producer_is_icc_ge_19): New function.
1585 * producer.h (producer_is_icc_ge_19): New declaration.
1587 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1589 * producer.c: (producer_is_icc): Update for new version scheme.
1590 (producer_parsing_tests): Update names and expected results.
1591 * producer.h: (producer_is_icc): Update comment accordingly.
1593 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1595 * target.h (struct target_ops) <follow_fork>: Return void.
1596 (target_follow_fork): Likewise.
1597 * target.c (default_follow_fork): Likewise.
1598 (target_follow_fork): Likewise.
1599 * infrun.c (follow_fork_inferior): Adjust.
1600 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1601 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1602 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1603 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1604 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1605 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1606 * remote.c (class remote_target) <follow_fork>: Likewise.
1607 (remote_target::follow_fork): Likewise.
1608 * target-delegates.c: Re-generate.
1610 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1612 * ctfread.c (fetch_tid_type): New function, use throughout file.
1613 (read_forward_type): New function.
1614 (read_type_record): Call read_forward_type.
1616 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1618 * f-exp.h (class fortran_structop_operation): New class.
1619 * f-exp.y (exp): Create fortran_structop_operation instead of the
1620 generic structop_operation.
1621 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1622 expression as EVAL_NORMAL if the result type was dynamic so we can
1623 extract the actual array bounds.
1624 (fortran_structop_operation::evaluate): New function.
1626 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1628 * eval.c (evaluate_subexp_standard): Remove
1629 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1632 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1634 * valops.c (value_cast): Call value_deeply_equal before performing
1637 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1639 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1642 2021-04-07 Caroline Tice <cmtice@google.com>
1644 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1645 the search paths used resolve relative location of .dwo file.
1647 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1649 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1651 (dwarf2_section_info::get_file_name): Add an assert.
1652 (dwarf2_section_info::read_string): Display a minimal, sane error
1653 when the dwarf2_section_info is not associated with a bfd section.
1655 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1657 * top.c (staged_gdb_datadir): Update comment.
1658 (set_gdb_datadir): Copy the value of gdb_datadir back into
1660 (init_main): Initialise staged_gdb_datadir.
1662 2021-04-06 Tom de Vries <tdevries@suse.de>
1664 PR breakpoints/25884
1665 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1668 2021-04-06 Tom de Vries <tdevries@suse.de>
1671 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1674 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1676 * avr-tdep.c (avr_frame_unwind_cache): Use
1677 trad_frame_saved_reg::is_addr.
1679 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1681 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1684 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1686 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1687 objfile parameter for objfile_per_bfd_storage, adjust callers.
1688 (struct standard_psymtab) <standard_psymtab>: Likewise.
1689 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1690 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1691 * ctfread.c (struct ctf_psymtab): Likewise.
1692 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1693 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1694 (dwarf2_create_include_psymtab): Likewise.
1695 * objfiles.h (struct objfile_per_bfd_storage)
1696 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1697 <get_bfd>: New method.
1699 * objfiles.c (get_objfile_bfd_data): Adjust.
1701 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1703 * psymtab.c (partial_symtab::partial_symtab): Change
1704 last_objfile_name to be an std::string.
1705 * symfile.c (allocate_symtab): Likewise.
1707 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1709 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1711 (struct objfile) <intern>: Use
1712 objfile::objfile_per_bfd_storage::intern.
1714 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1716 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1717 with type::is_flag_enum.
1719 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1721 * gdbtypes.h (struct type) <is_flag_enum,
1722 set_is_flag_enum>: New methods.
1723 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1724 write call sites to use type::set_is_flag_enum.
1726 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1728 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1729 with type::is_declared_class.
1731 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1733 * gdbtypes.h (struct type) <is_declared_class,
1734 set_is_declared_class>: New methods.
1735 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1736 write call sites to use type::set_is_declared_class.
1738 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1740 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1741 to avoid deprecation warnings.
1743 2021-04-01 Martin Liska <mliska@suse.cz>
1745 * cp-name-parser.y: Use startswith instead of strncmp.
1746 * m2-exp.y: Likewise.
1747 * macroexp.c (substitute_args): Likewise.
1748 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1749 * rust-exp.y: Likewise.
1751 2021-03-31 Tom Tromey <tom@tromey.com>
1753 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1754 with dw2_map_matching_symbols.
1755 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1756 dw2_expand_symtabs_matching.
1758 2021-03-31 Tom Tromey <tromey@adacore.com>
1760 * dwarf2/stringify.h: Fix typo.
1762 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1765 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1766 with objfiles using READNOW.
1768 2021-03-29 Tom Tromey <tromey@adacore.com>
1770 * top.c (check_frame_language_change): Update.
1771 * language.c (language_info): Remove parameter.
1772 * language.h (language_info): Remove parameter.
1774 2021-03-29 Luis Machado <luis.machado@linaro.org>
1776 * compile/compile.c (get_args): Don't add empty argv entries.
1778 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1781 * procfs.c (procfs_target::attach): Define inf.
1783 (procfs_target::create_inferior): Likewise.
1785 2021-03-28 Tom Tromey <tom@tromey.com>
1787 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1788 (elf_symfile_read): Simplify.
1789 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1790 (make_lazy_dwarf_reader): New function.
1791 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1792 (dwarf2_initialize_objfile): Return void. Remove index_kind
1793 parameter. Push on 'qf' list.
1794 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1795 type. Remove 'index_kind' parameter.
1796 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1798 2021-03-27 Tom Tromey <tom@tromey.com>
1800 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1802 2021-03-27 Tom Tromey <tom@tromey.com>
1804 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1806 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1808 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1811 2021-03-26 Tom Tromey <tom@tromey.com>
1813 * symtab.c (struct output_source_filename_data): Add 'output'
1814 method and operator().
1815 (output_source_filename_data::output): Rename from
1816 output_source_filename.
1817 (output_partial_symbol_filename): Remove.
1818 (info_sources_command): Update.
1819 (struct add_partial_filename_data): Add operator().
1820 (add_partial_filename_data::operator()): Rename from
1821 maybe_add_partial_symtab_filename.
1822 (make_source_files_completion_list): Update.
1823 * symfile.c (quick_symbol_functions): Update.
1824 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1825 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1826 'need_fullname'. Remove 'data' parameter.
1827 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1828 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1829 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1830 Change type of 'fun' and 'need_fullname'. Remove 'data'
1832 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1833 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1834 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1836 (mi_cmd_file_list_exec_source_files): Update.
1838 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1840 2021-03-26 Tom Tromey <tom@tromey.com>
1842 * ada-lang.c (struct match_data): Add operator().
1843 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1844 (callback): Remove 'callback'.
1846 2021-03-26 Tom Tromey <tom@tromey.com>
1848 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1849 call make_ignore_params once.
1851 2021-03-26 Tom Tromey <tom@tromey.com>
1853 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1856 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1857 Pedro Alves <pedro@palves.net>
1859 * async-event.c: Include "infrun.h".
1860 (async_event_handler_marked): New.
1861 * async-event.h (async_event_handler_marked): Declare.
1862 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1863 inferior before calling target method. Don't commit-resumed if
1864 target_has_pending_events is true.
1865 * remote.c (remote_target::has_pending_events): New.
1866 * target-delegates.c: Regenerate.
1867 * target.c (target_has_pending_events): New.
1868 * target.h (target_ops::has_pending_events): New target method.
1869 (target_has_pending_events): New.
1871 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1872 Pedro Alves <pedro@palves.net>
1874 * infcmd.c (run_command_1, attach_command, detach_command)
1875 (interrupt_target_1): Use scoped_disable_commit_resumed.
1876 * infrun.c (do_target_resume): Remove
1877 target_commit_resume call.
1878 (commit_resume_all_targets): Remove.
1879 (maybe_set_commit_resumed_all_targets): New.
1880 (maybe_call_commit_resumed_all_targets): New.
1881 (enable_commit_resumed): New.
1882 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1883 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1884 (scoped_disable_commit_resumed::reset)
1885 (scoped_disable_commit_resumed::reset_and_commit)
1886 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1887 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1889 (proceed): Use scoped_disable_commit_resumed and
1890 maybe_call_commit_resumed_all_targets.
1891 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1892 * infrun.h (struct scoped_disable_commit_resumed): New.
1893 (maybe_call_commit_resumed_all_process_targets): New.
1894 (struct scoped_enable_commit_resumed): New.
1895 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1896 * process-stratum-target.h (class process_stratum_target):
1897 <commit_resumed_state>: New.
1898 * record-full.c (record_full_wait_1): Change commit_resumed_state
1899 around calling commit_resumed.
1900 * remote.c (class remote_target) <commit_resume>: Rename to...
1901 <commit_resumed>: ... this.
1902 (struct stop_reply): Move up.
1903 (remote_target::commit_resume): Rename to...
1904 (remote_target::commit_resumed): ... this. Check if there is any
1905 thread pending vCont resume.
1906 (remote_target::remote_stop_ns): Generate stop replies for resumed
1907 but pending vCont threads.
1908 (remote_target::wait_ns): Add gdb_assert.
1909 * target-delegates.c: Regenerate.
1910 * target.c (target_wait, target_resume): Assert that the current
1911 process_stratum target isn't in commit-resumed state.
1912 (defer_target_commit_resume): Remove.
1913 (target_commit_resume): Remove.
1914 (target_commit_resumed): New.
1915 (make_scoped_defer_target_commit_resume): Remove.
1916 (target_stop): Assert that the current process_stratum target
1917 isn't in commit-resumed state.
1918 * target.h (struct target_ops) <commit_resume>: Rename to ...
1919 <commit_resumed>: ... this.
1920 (target_commit_resume): Remove.
1921 (target_commit_resumed): New.
1922 (make_scoped_defer_target_commit_resume): Remove.
1923 * top.c (wait_sync_command_done): Use
1924 scoped_enable_commit_resumed.
1926 2021-03-26 Pedro Alves <pedro@palves.net>
1928 * target.c (target_always_non_stop_p): Also check whether the
1931 2021-03-26 Tom Tromey <tom@tromey.com>
1933 * dwarf2/read.c (dwarf2_read_debug_names)
1934 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1935 (dw2_debug_names_iterator::next, create_type_unit_group):
1938 2021-03-25 Pedro Alves <pedro@palves.net>
1940 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1941 around setting the breakpoint.
1943 2021-03-25 Pedro Alves <pedro@palves.net>
1946 (remote_target::check_pending_events_prevent_wildcard_vcont):
1947 Check whether the event's ptid is not null_ptid before looking up
1948 the corresponding inferior.
1950 2021-03-24 Changbin Du <changbin.du@gmail.com>
1952 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1955 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1957 * target.h (current_top_target): Remove, make callers use the
1958 current inferior instead.
1959 * target.c (current_top_target): Remove.
1961 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1963 * target.h (target_shortname): Change to function declaration.
1964 (target_longname): Likewise.
1965 (target_attach_no_wait): Likewise.
1966 (target_post_attach): Likewise.
1967 (target_prepare_to_store): Likewise.
1968 (target_supports_enable_disable_tracepoint): Likewise.
1969 (target_supports_string_tracing): Likewise.
1970 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1971 (target_supports_dumpcore): Likewise.
1972 (target_dumpcore): Likewise.
1973 (target_can_run_breakpoint_commands): Likewise.
1974 (target_files_info): Likewise.
1975 (target_post_startup_inferior): Likewise.
1976 (target_insert_fork_catchpoint): Likewise.
1977 (target_remove_fork_catchpoint): Likewise.
1978 (target_insert_vfork_catchpoint): Likewise.
1979 (target_remove_vfork_catchpoint): Likewise.
1980 (target_insert_exec_catchpoint): Likewise.
1981 (target_remove_exec_catchpoint): Likewise.
1982 (target_set_syscall_catchpoint): Likewise.
1983 (target_rcmd): Likewise.
1984 (target_can_lock_scheduler): Likewise.
1985 (target_can_async_p): Likewise.
1986 (target_is_async_p): Likewise.
1987 (target_execution_direction): Likewise.
1988 (target_extra_thread_info): Likewise.
1989 (target_pid_to_exec_file): Likewise.
1990 (target_thread_architecture): Likewise.
1991 (target_find_memory_regions): Likewise.
1992 (target_make_corefile_notes): Likewise.
1993 (target_get_bookmark): Likewise.
1994 (target_goto_bookmark): Likewise.
1995 (target_stopped_by_watchpoint): Likewise.
1996 (target_stopped_by_sw_breakpoint): Likewise.
1997 (target_supports_stopped_by_sw_breakpoint): Likewise.
1998 (target_stopped_by_hw_breakpoint): Likewise.
1999 (target_supports_stopped_by_hw_breakpoint): Likewise.
2000 (target_have_steppable_watchpoint): Likewise.
2001 (target_can_use_hardware_watchpoint): Likewise.
2002 (target_region_ok_for_hw_watchpoint): Likewise.
2003 (target_can_do_single_step): Likewise.
2004 (target_insert_watchpoint): Likewise.
2005 (target_remove_watchpoint): Likewise.
2006 (target_insert_hw_breakpoint): Likewise.
2007 (target_remove_hw_breakpoint): Likewise.
2008 (target_can_accel_watchpoint_condition): Likewise.
2009 (target_can_execute_reverse): Likewise.
2010 (target_get_ada_task_ptid): Likewise.
2011 (target_filesystem_is_local): Likewise.
2012 (target_trace_init): Likewise.
2013 (target_download_tracepoint): Likewise.
2014 (target_can_download_tracepoint): Likewise.
2015 (target_download_trace_state_variable): Likewise.
2016 (target_enable_tracepoint): Likewise.
2017 (target_disable_tracepoint): Likewise.
2018 (target_trace_start): Likewise.
2019 (target_trace_set_readonly_regions): Likewise.
2020 (target_get_trace_status): Likewise.
2021 (target_get_tracepoint_status): Likewise.
2022 (target_trace_stop): Likewise.
2023 (target_trace_find): Likewise.
2024 (target_get_trace_state_variable_value): Likewise.
2025 (target_save_trace_data): Likewise.
2026 (target_upload_tracepoints): Likewise.
2027 (target_upload_trace_state_variables): Likewise.
2028 (target_get_raw_trace_data): Likewise.
2029 (target_get_min_fast_tracepoint_insn_len): Likewise.
2030 (target_set_disconnected_tracing): Likewise.
2031 (target_set_circular_trace_buffer): Likewise.
2032 (target_set_trace_buffer_size): Likewise.
2033 (target_set_trace_notes): Likewise.
2034 (target_get_tib_address): Likewise.
2035 (target_set_permissions): Likewise.
2036 (target_static_tracepoint_marker_at): Likewise.
2037 (target_static_tracepoint_markers_by_strid): Likewise.
2038 (target_traceframe_info): Likewise.
2039 (target_use_agent): Likewise.
2040 (target_can_use_agent): Likewise.
2041 (target_augmented_libraries_svr4_read): Likewise.
2042 (target_log_command): Likewise.
2043 * target.c (target_shortname): New.
2044 (target_longname): New.
2045 (target_attach_no_wait): New.
2046 (target_post_attach): New.
2047 (target_prepare_to_store): New.
2048 (target_supports_enable_disable_tracepoint): New.
2049 (target_supports_string_tracing): New.
2050 (target_supports_evaluation_of_breakpoint_conditions): New.
2051 (target_supports_dumpcore): New.
2052 (target_dumpcore): New.
2053 (target_can_run_breakpoint_commands): New.
2054 (target_files_info): New.
2055 (target_post_startup_inferior): New.
2056 (target_insert_fork_catchpoint): New.
2057 (target_remove_fork_catchpoint): New.
2058 (target_insert_vfork_catchpoint): New.
2059 (target_remove_vfork_catchpoint): New.
2060 (target_insert_exec_catchpoint): New.
2061 (target_remove_exec_catchpoint): New.
2062 (target_set_syscall_catchpoint): New.
2064 (target_can_lock_scheduler): New.
2065 (target_can_async_p): New.
2066 (target_is_async_p): New.
2067 (target_execution_direction): New.
2068 (target_extra_thread_info): New.
2069 (target_pid_to_exec_file): New.
2070 (target_thread_architecture): New.
2071 (target_find_memory_regions): New.
2072 (target_make_corefile_notes): New.
2073 (target_get_bookmark): New.
2074 (target_goto_bookmark): New.
2075 (target_stopped_by_watchpoint): New.
2076 (target_stopped_by_sw_breakpoint): New.
2077 (target_supports_stopped_by_sw_breakpoint): New.
2078 (target_stopped_by_hw_breakpoint): New.
2079 (target_supports_stopped_by_hw_breakpoint): New.
2080 (target_have_steppable_watchpoint): New.
2081 (target_can_use_hardware_watchpoint): New.
2082 (target_region_ok_for_hw_watchpoint): New.
2083 (target_can_do_single_step): New.
2084 (target_insert_watchpoint): New.
2085 (target_remove_watchpoint): New.
2086 (target_insert_hw_breakpoint): New.
2087 (target_remove_hw_breakpoint): New.
2088 (target_can_accel_watchpoint_condition): New.
2089 (target_can_execute_reverse): New.
2090 (target_get_ada_task_ptid): New.
2091 (target_filesystem_is_local): New.
2092 (target_trace_init): New.
2093 (target_download_tracepoint): New.
2094 (target_can_download_tracepoint): New.
2095 (target_download_trace_state_variable): New.
2096 (target_enable_tracepoint): New.
2097 (target_disable_tracepoint): New.
2098 (target_trace_start): New.
2099 (target_trace_set_readonly_regions): New.
2100 (target_get_trace_status): New.
2101 (target_get_tracepoint_status): New.
2102 (target_trace_stop): New.
2103 (target_trace_find): New.
2104 (target_get_trace_state_variable_value): New.
2105 (target_save_trace_data): New.
2106 (target_upload_tracepoints): New.
2107 (target_upload_trace_state_variables): New.
2108 (target_get_raw_trace_data): New.
2109 (target_get_min_fast_tracepoint_insn_len): New.
2110 (target_set_disconnected_tracing): New.
2111 (target_set_circular_trace_buffer): New.
2112 (target_set_trace_buffer_size): New.
2113 (target_set_trace_notes): New.
2114 (target_get_tib_address): New.
2115 (target_set_permissions): New.
2116 (target_static_tracepoint_marker_at): New.
2117 (target_static_tracepoint_markers_by_strid): New.
2118 (target_traceframe_info): New.
2119 (target_use_agent): New.
2120 (target_can_use_agent): New.
2121 (target_augmented_libraries_svr4_read): New.
2122 (target_log_command): New.
2123 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2124 * infrun.c (set_schedlock_func): Adjust.
2125 * mi/mi-main.c (exec_reverse_continue): Adjust.
2126 * reverse.c (exec_reverse_once): Adjust.
2127 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2128 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2129 * remote-sim.c (gdbsim_target::detach): Adjust.
2130 (gdbsim_target::files_info): Adjust.
2132 2021-03-24 Tom Tromey <tom@tromey.com>
2134 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2135 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2136 (check_match, dw2_expand_symtabs_matching)
2137 (dwarf2_debug_names_index::map_matching_symbols)
2138 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2140 2021-03-24 Keith Seitz <keiths@redhat.com>
2142 * compile/compile-cplus-types.c
2143 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2146 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2148 * gdbarch.sh (gdbarch_data_registry): Make static.
2149 * gdbarch.c: Re-generate.
2151 2021-03-24 Luis Machado <luis.machado@linaro.org>
2153 * NEWS: Mention memory tagging changes.
2155 2021-03-24 Luis Machado <luis.machado@linaro.org>
2157 * printcmd.c (decode_format): Handle the 'm' modifier.
2158 (do_examine): Display allocation tags when required/supported.
2159 (should_validate_memtags): New function.
2160 (print_command_1): Display memory tag mismatches.
2161 * valprint.c (show_memory_tag_violations): New function.
2162 (value_print_option_defs): Add new option "memory-tag-violations".
2163 (user_print_options) <memory_tag_violations>: Initialize to 1.
2164 * valprint.h (struct format_data) <print_tags>: New field.
2165 (value_print_options) <memory_tag_violations>: New field.
2167 2021-03-24 Luis Machado <luis.machado@linaro.org>
2169 * printcmd.c: Include gdbsupport/rsp-low.h.
2170 (memory_tag_list): New static global.
2171 (process_print_command_args): Factored out of
2173 (print_command_1): Use process_print_command_args.
2174 (show_addr_not_tagged, show_memory_tagging_unsupported)
2175 (memory_tag_command, memory_tag_print_tag_command)
2176 (memory_tag_print_logical_tag_command)
2177 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2178 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2179 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2181 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2183 2021-03-24 Luis Machado <luis.machado@linaro.org>
2185 * aarch64-linux-tdep.c
2186 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2187 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2189 2021-03-24 Luis Machado <luis.machado@linaro.org>
2191 * aarch64-linux-tdep.c
2192 (aarch64_linux_report_signal_info): New function.
2193 (aarch64_linux_init_abi): Register
2194 aarch64_linux_report_signal_info as the report_signal_info hook.
2195 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2196 (SEGV_MTESERR): Define.
2198 2021-03-24 Luis Machado <luis.machado@linaro.org>
2200 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2201 (aarch64_linux_ltag_tests): New function.
2202 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2204 2021-03-24 Luis Machado <luis.machado@linaro.org>
2206 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2207 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2208 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2209 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2211 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2212 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2213 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2214 (aarch64_linux_get_ltag): New functions.
2215 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2216 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2217 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2218 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2220 2021-03-24 Luis Machado <luis.machado@linaro.org>
2222 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2224 (struct smaps_data): New struct.
2225 (decode_vmflags): Handle the 'mt' flag.
2226 (parse_smaps_data): New function, refactored from
2227 linux_find_memory_regions_full.
2228 (linux_address_in_memtag_page): New function.
2229 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2230 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2232 2021-03-24 Luis Machado <luis.machado@linaro.org>
2234 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2235 instead of char arrays.
2237 2021-03-24 Luis Machado <luis.machado@linaro.org>
2239 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2240 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2241 nat/aarch64-mte-linux-ptrace.h.
2242 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2243 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2245 <fetch_memtags>: New method override.
2246 <store_memtags>: New method override.
2247 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2248 (aarch64_linux_nat_target::fetch_memtags): New method.
2249 (aarch64_linux_nat_target::store_memtags): New method.
2250 * arch/aarch64-mte-linux.c: New file.
2251 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2252 (AARCH64_MTE_GRANULE_SIZE): Define.
2253 (aarch64_memtag_type): New enum.
2254 (aarch64_mte_get_tag_granules): New prototype.
2255 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2256 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2257 * nat/aarch64-mte-linux-ptrace.c: New file.
2258 * nat/aarch64-mte-linux-ptrace.h: New file.
2260 2021-03-24 Luis Machado <luis.machado@linaro.org>
2262 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2263 * nat/aarch64-mte-linux-ptrace.h: New file.
2265 2021-03-24 Luis Machado <luis.machado@linaro.org>
2267 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2268 (store_mteregs_to_thread): New function.
2269 (aarch64_linux_nat_target::fetch_registers): Update to call
2270 fetch_mteregs_from_thread.
2271 (aarch64_linux_nat_target::store_registers): Update to call
2272 store_mteregs_to_thread.
2273 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2274 (aarch64_cannot_store_register): Handle MTE registers.
2275 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2276 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2277 <has_mte>: New method.
2278 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2280 2021-03-24 Luis Machado <luis.machado@linaro.org>
2282 * aarch64-linux-nat.c
2283 (aarch64_linux_nat_target::read_description): Take MTE flag into
2285 Slight refactor to hwcap flag checking.
2286 * aarch64-linux-tdep.c
2287 (aarch64_linux_core_read_description): Likewise.
2288 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2290 (aarch64_read_description): Add mte_p parameter and update to use it.
2291 Update the documentation.
2292 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2293 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2294 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2295 (aarch64_create_target_description): Add mte_p parameter and update
2297 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2299 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2300 * features/aarch64-mte.c: New file, generated.
2301 * features/aarch64-mte.xml: New file.
2303 2021-03-24 Luis Machado <luis.machado@linaro.org>
2305 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2306 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2307 * aarch64-linux-tdep.c: Likewise
2308 * arch/aarch64-mte-linux.h: New file.
2310 2021-03-24 Luis Machado <luis.machado@linaro.org>
2312 * remote: Include gdbsupport/selftest.h.
2313 (test_memory_tagging_functions): New function.
2314 (_initialize_remote): Register test_memory_tagging_functions.
2316 2021-03-24 Luis Machado <luis.machado@linaro.org>
2318 * remote.c (PACKET_memory_tagging_feature): New enum.
2319 (remote_memory_tagging_p): New function.
2320 (remote_protocol_features): New "memory-tagging" entry.
2321 (remote_target::remote_query_supported): Handle memory tagging
2323 (remote_target::supports_memory_tagging): Implement.
2324 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2325 (create_store_memtags_request): New functions.
2326 (remote_target::fetch_memtags): Implement.
2327 (remote_target::store_memtags): Implement.
2328 (_initialize_remote): Add new "memory-tagging-feature"
2331 2021-03-24 Luis Machado <luis.machado@linaro.org>
2333 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2334 (default_memtag_matches_p, default_set_memtags)
2335 (default_get_memtag): New functions.
2336 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2337 (default_memtag_matches_p, default_set_memtags)
2338 (default_get_memtag): New prototypes.
2339 * gdbarch.c: Regenerate.
2340 * gdbarch.h: Regenerate.
2341 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2342 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2343 (enum memtag_type): New enum.
2345 2021-03-24 Luis Machado <luis.machado@linaro.org>
2347 * remote.c (remote_target) <supports_memory_tagging>: New method
2349 <fetch_memtags>: New method override.
2350 <store_memtags>: New method override.
2351 (remote_target::supports_memory_tagging): New method.
2352 (remote_target::fetch_memtags): New method.
2353 (remote_target::store_memtags): New method.
2354 * target-delegates.c: Regenerate.
2355 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2357 <fetch_memtags>: New virtual method.
2358 <store_memtags>: New virtual method.
2359 (target_supports_memory_tagging): Define.
2360 (target_fetch_memtags): Define.
2361 (target_store_memtags): Define.
2362 * target-debug.h (target_debug_print_size_t)
2363 (target_debug_print_const_gdb_byte_vector_r)
2364 (target_debug_print_gdb_byte_vector_r): New functions.
2366 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2368 * target.h (target_longname): Remove.
2370 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2372 * target.h (target_is_pushed): Remove, update callers to use
2373 inferior::target_is_pushed instead.
2374 * target.c (target_is_pushed): Remove.
2376 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2378 * target.h (push_target): Remove, update callers to use
2379 inferior::push_target.
2380 * target.c (push_target): Remove.
2381 * inferior.h (class inferior) <push_target>: New overload.
2383 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2385 * target.h (unpush_target): Remove, update all callers
2386 to use `inferior::unpush_target` instead.
2387 (struct target_unpusher) <operator()>: Just declare.
2388 * target.c (unpush_target): Remove.
2389 (target_unpusher::operator()): New.
2391 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2393 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2395 (process_full_comp_unit): Validate the top-level tag before
2396 processing the first DIE.
2397 (read_func_scope): Ensure we have a valid builder.
2399 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2401 * objc-lang.c (objc_demangle): Renamed to
2402 objc_language::demangle_symbol, and moved later in the file.
2403 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2405 (objc_language::demangle_symbol): Defined outside of class
2406 declaration. The definition is the old objc_demangle with NULL
2407 changed to nullptr, and if conditions relating to nullptr pointers
2408 or null character checks made explicit.
2409 * objc-lang.h (objc_demangle): Delete declaration.
2411 2021-03-22 Martin Liska <mliska@suse.cz>
2413 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2414 (_initialize_arm_tdep): Likewise.
2416 2021-03-20 Tom Tromey <tom@tromey.com>
2418 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2419 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2420 * psymtab.h (make_psymbol_functions): Don't declare.
2421 * psymtab.c (make_psymbol_functions): Remove.
2422 (maintenance_print_psymbols): Update.
2423 * psympriv.h (struct psymbol_functions): Add no-argument
2425 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2426 <partial_symtabs>: Remove.
2427 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2428 * elfread.c (read_partial_symbols): Update.
2429 (elf_symfile_read): Remove check for existing partial symbols.
2431 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2433 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2435 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2437 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2438 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2440 2021-03-20 Tom Tromey <tom@tromey.com>
2442 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2443 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2444 * symfile-debug.c (objfile::has_partial_symbols)
2445 (objfile::find_last_source_symtab)
2446 (objfile::forget_cached_source_info)
2447 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2448 (objfile::print_stats, objfile::dump)
2449 (objfile::expand_symtabs_for_function)
2450 (objfile::expand_all_symtabs)
2451 (objfile::expand_symtabs_with_fullname)
2452 (objfile::map_matching_symbols)
2453 (objfile::expand_symtabs_matching)
2454 (objfile::find_pc_sect_compunit_symtab)
2455 (objfile::map_symbol_filenames)
2456 (objfile::find_compunit_symtab_by_address)
2457 (objfile::lookup_global_symbol_language)
2458 (objfile::require_partial_symbols): Update.
2459 * psymtab.c (maintenance_print_psymbols)
2460 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2461 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2462 * objfiles.c (objfile_relocate1): Update.
2463 * elfread.c (elf_symfile_read): Update.
2465 2021-03-20 Tom Tromey <tom@tromey.com>
2467 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2469 2021-03-20 Tom Tromey <tom@tromey.com>
2471 * psymtab.c (psymbol_functions::count_psyms): Rename.
2472 (psymbol_functions::print_stats): Update.
2473 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2476 2021-03-20 Tom Tromey <tom@tromey.com>
2478 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2479 (psymbol_functions::find_pc_sect_psymtab): Rename.
2480 (psymbol_functions::find_pc_sect_compunit_symtab)
2481 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2482 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2484 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2486 2021-03-20 Tom Tromey <tom@tromey.com>
2488 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2489 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2490 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2492 (add_psymbol_to_bcache): Remove.
2493 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2494 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2496 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2497 <add_psymbol>: Likewise.
2498 (standard_psymtab, legacy_psymtab): Likewise.
2499 * mdebugread.c (parse_partial_symbols): Update.
2500 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2501 (handle_psymbol_enumerators): Update.
2502 (new_psymtab): Add partial_symtabs parameter.
2503 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2504 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2506 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2507 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2509 * dbxread.c (read_dbx_symtab): Update.
2510 (start_psymtab): Add partial_symtabs parameter.
2511 (dbx_end_psymtab): Update.
2512 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2513 (ctf_psymtab): Add partial_symtabs parameter.
2514 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2516 (scan_partial_symbols): Add partial_symtabs parameter.
2517 (scan_partial_symbols, elfctf_build_psymtabs)
2518 (ctf_psymtab_add_enums): Update.
2520 2021-03-20 Tom Tromey <tom@tromey.com>
2522 * symfile.c (read_symbols): Use objfile method.
2523 * symfile-debug.c (objfile::require_partial_symbols): New method.
2524 * psymtab.h (require_partial_symbols): Don't declare.
2525 * psymtab.c (require_partial_symbols): Use objfile method. Now
2527 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2528 (psymbol_functions::lookup_symbol)
2529 (psymbol_functions::lookup_global_symbol_language)
2530 (psymbol_functions::find_last_source_symtab)
2531 (psymbol_functions::forget_cached_source_info)
2532 (psymbol_functions::print_stats)
2533 (psymbol_functions::expand_symtabs_for_function)
2534 (psymbol_functions::expand_all_symtabs)
2535 (psymbol_functions::expand_symtabs_with_fullname)
2536 (psymbol_functions::map_symbol_filenames)
2537 (psymbol_functions::map_matching_symbols)
2538 (psymbol_functions::expand_symtabs_matching)
2539 (psymbol_functions::find_compunit_symtab_by_address)
2540 (maintenance_print_psymbols, maintenance_info_psymtabs)
2541 (maintenance_check_psymtabs): Update.
2542 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2545 2021-03-20 Tom Tromey <tom@tromey.com>
2547 * xcoffread.c (xcoff_sym_fns): Update.
2548 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2549 * symfile-debug.c (objfile::has_partial_symbols): Use
2550 can_lazily_read_symbols.
2551 (debug_sym_read_psymbols): Remove.
2552 (debug_sym_fns, install_symfile_debug_logging): Update.
2553 * quick-symbol.h (struct quick_symbol_functions)
2554 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2555 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2556 * mipsread.c (ecoff_sym_fns): Update.
2557 * machoread.c (macho_sym_fns): Update.
2558 * elfread.c (struct lazy_dwarf_reader): New.
2559 (elf_symfile_read): Update.
2560 (read_psyms): Now a method of lazy_dwarf_reader.
2561 (elf_sym_fns): Update.
2562 (elf_sym_fns_lazy_psyms): Remove.
2563 * dbxread.c (aout_sym_fns): Update.
2564 * coffread.c (coff_sym_fns): Update.
2566 2021-03-20 Tom Tromey <tom@tromey.com>
2568 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2569 (reread_symbols): Move reset_psymtabs call later.
2570 * objfiles.c (objfile::objfile): Don't initialize
2573 2021-03-20 Tom Tromey <tom@tromey.com>
2575 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2576 set_partial_symtabs.
2577 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2578 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2580 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2582 (psymbol_functions::find_pc_sect_compunit_symtab)
2583 (psymbol_functions::print_stats, psymbol_functions::dump)
2584 (psymbol_functions::has_symbols): Update.
2585 (make_psymbol_functions, dump_psymtab_addrmap): Add
2586 partial_symtabs parameter.
2587 (maintenance_print_psymbols): Update.
2588 (psymbol_functions::expand_symtabs_matching): Update.
2589 * psympriv.h (struct psymbol_functions): Add constructor.
2590 <m_partial_symtabs>: New member.
2591 <set_partial_symtabs>: New method.
2593 2021-03-20 Tom Tromey <tom@tromey.com>
2595 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2597 (process_psymtab_comp_unit_reader)
2598 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2599 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2600 Reference psymtabs via per_bfd.
2602 2021-03-20 Tom Tromey <tom@tromey.com>
2604 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2606 (add_address_entry): Remove objfile parameter.
2607 (add_address_entry_worker): Update.
2608 (write_address_map): Replace objfile parameter with per_bfd.
2609 (write_gdbindex, write_psymtabs_to_index): Update.
2611 2021-03-20 Tom Tromey <tom@tromey.com>
2613 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2614 print_bcache parameter.
2615 * symfile-debug.c (objfile::print_stats): Add print_bcache
2617 * quick-symbol.h (struct quick_symbol_functions)
2618 <print_stats>: Add print_bcache parameter.
2619 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2621 (print_objfile_statistics): Move psymtab code to psymtab.c.
2622 * psymtab.c (count_psyms): Move from symmisc.c.
2623 (psymbol_functions::print_stats): Print partial symbol and bcache
2624 statistics. Add print_bcache parameter.
2625 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2626 (struct objfile) <print_stats>: Add print_bcache parameter.
2627 * maint.c (maintenance_print_statistics): Update.
2629 2021-03-20 Tom Tromey <tom@tromey.com>
2631 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2633 * dwarf2/read.c (create_addrmap_from_index)
2634 (create_addrmap_from_aranges): Set per_bfd addrmap.
2635 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2636 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2638 (dwarf2_read_debug_names): Don't set partial_symtabs.
2639 (dwarf2_initialize_objfile): Likewise.
2641 2021-03-20 Tom Tromey <tom@tromey.com>
2643 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2646 2021-03-20 Tom Tromey <tom@tromey.com>
2648 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2649 (~psymtab_discarder, keep): Update.
2650 <m_objfile>: Remove.
2651 <m_partial_symtabs>: New member.
2652 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2654 2021-03-20 Tom Tromey <tom@tromey.com>
2656 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2657 (xcoff_end_psymtab): Update.
2658 (scan_xcoff_symtab): Add partial_symtabs parameter.
2659 (xcoff_initial_scan): Update.
2660 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2661 * mdebugread.c (mdebug_build_psymtabs): Update.
2662 (parse_partial_symbols): Add partial_symtabs parameter.
2663 * dbxread.c (dbx_symfile_read): Update.
2664 (read_dbx_symtab): Add partial_symtabs parameter.
2665 (read_dbx_symtab): Update.
2666 (dbx_end_psymtab): Add partial_symtabs parameter.
2668 2021-03-20 Tom Tromey <tom@tromey.com>
2670 * quick-symbol.h (struct quick_symbol_functions)
2671 <relocated>: New method.
2672 * psymtab.h (struct psymbol_functions) <relocated>: New
2674 <fill_psymbol_map>: Declare method.
2675 <m_psymbol_map>: New member.
2676 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2677 (psymbol_functions::find_compunit_symtab_by_address): Update.
2678 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2679 (struct objfile) <psymbol_map>: Remove.
2680 * objfiles.c (objfile_relocate1): Update.
2682 2021-03-20 Tom Tromey <tom@tromey.com>
2684 * psympriv.h (struct psymbol_functions): New.
2685 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2686 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2687 (objfile::lookup_global_symbol_language): Update.
2688 * quick-symbol.h (struct quick_symbol_functions): Convert function
2689 pointers to methods. Add virtual destructor.
2690 (quick_symbol_functions_up): New typedef.
2691 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2692 (dwarf2_debug_names_functions): Don't declare.
2693 (make_psymbol_functions): Declare.
2694 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2695 (psymbol_functions::find_pc_sect_compunit_symtab)
2696 (psymbol_functions::lookup_symbol)
2697 (psymbol_functions::lookup_global_symbol_language)
2698 (psymbol_functions::find_last_source_symtab)
2699 (psymbol_functions::forget_cached_source_info)
2700 (psymbol_functions::print_stats, psymbol_functions::dump)
2701 (psymbol_functions::expand_symtabs_for_function)
2702 (psymbol_functions::expand_all_symtabs)
2703 (psymbol_functions::expand_symtabs_with_fullname)
2704 (psymbol_functions::map_symbol_filenames)
2705 (psymbol_functions::map_matching_symbols)
2706 (psymbol_functions::expand_symtabs_matching)
2707 (psymbol_functions::has_symbols)
2708 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2709 (psym_functions): Remove.
2710 (make_psymbol_functions): New function.
2711 * objfiles.h (struct objfile) <qf>: Change type.
2712 * elfread.c (elf_symfile_read): Update.
2713 * dwarf2/read.c (struct dwarf2_base_index_functions)
2714 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2715 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2716 (dwarf2_base_index_functions::find_last_source_symtab)
2717 (dwarf2_base_index_functions::forget_cached_source_info)
2718 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2719 (dwarf2_gdb_index::lookup_symbol)
2720 (dwarf2_base_index_functions::print_stats)
2721 (dwarf2_gdb_index::dump)
2722 (dwarf2_gdb_index::expand_symtabs_for_function)
2723 (dwarf2_base_index_functions::expand_all_symtabs)
2724 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2726 (dwarf2_gdb_index::map_matching_symbols): New method.
2727 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2728 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2729 (dwarf2_base_index_functions::map_symbol_filenames)
2730 (dwarf2_base_index_functions::has_symbols): Rename.
2731 (dwarf2_gdb_index_functions): Remove.
2732 (dwarf2_debug_names_index::lookup_symbol)
2733 (dwarf2_debug_names_index::dump)
2734 (dwarf2_debug_names_index::expand_symtabs_for_function)
2735 (dwarf2_debug_names_index::map_matching_symbols)
2736 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2737 (dwarf2_debug_names_functions): Remove.
2738 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2741 2021-03-20 Tom Tromey <tom@tromey.com>
2743 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2745 * xcoffread.c (xcoff_sym_fns): Update.
2746 * symfile.h (struct sym_fns) <qf>: Remove.
2747 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2748 * symfile-debug.c (objfile::has_partial_symbols)
2749 (objfile::find_last_source_symtab)
2750 (objfile::forget_cached_source_info)
2751 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2752 (objfile::print_stats, objfile::dump)
2753 (objfile::expand_symtabs_for_function)
2754 (objfile::expand_all_symtabs)
2755 (objfile::expand_symtabs_with_fullname)
2756 (objfile::map_matching_symbols)
2757 (objfile::expand_symtabs_matching)
2758 (objfile::find_pc_sect_compunit_symtab)
2759 (objfile::map_symbol_filenames)
2760 (objfile::find_compunit_symtab_by_address)
2761 (objfile::lookup_global_symbol_language, debug_sym_fns)
2762 (install_symfile_debug_logging): Update.
2763 * objfiles.h (struct objfile) <qf>: New member.
2764 * mipsread.c (ecoff_sym_fns): Update.
2765 * machoread.c (macho_sym_fns): Update.
2766 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2768 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2769 * dbxread.c (aout_sym_fns): Update.
2770 * coffread.c (coff_sym_fns): Update.
2772 2021-03-20 Tom Tromey <tom@tromey.com>
2774 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2775 (expand_symtabs_file_matcher_ftype)
2776 (expand_symtabs_symbol_matcher_ftype)
2777 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2778 Move to quick-symbol.h.
2779 * quick-symbol.h: New file.
2781 2021-03-20 Tom Tromey <tom@tromey.com>
2783 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2784 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2785 (basic_lookup_transparent_type_quick)
2786 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2787 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2789 * symmisc.c (print_objfile_statistics, dump_objfile)
2790 (maintenance_expand_symtabs): Update.
2791 * symfile.c (symbol_file_add_with_addrs)
2792 (expand_symtabs_matching, map_symbol_filenames): Update.
2793 * symfile-debug.c (objfile::has_partial_symbols)
2794 (objfile::find_last_source_symtab)
2795 (objfile::forget_cached_source_info)
2796 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2797 (objfile::print_stats, objfile::dump)
2798 (objfile::expand_symtabs_for_function)
2799 (objfile::expand_all_symtabs)
2800 (objfile::expand_symtabs_with_fullname)
2801 (objfile::map_matching_symbols)
2802 (objfile::expand_symtabs_matching)
2803 (objfile::find_pc_sect_compunit_symtab)
2804 (objfile::map_symbol_filenames)
2805 (objfile::find_compunit_symtab_by_address)
2806 (objfile::lookup_global_symbol_language): New methods.
2807 (debug_sym_quick_functions): Remove.
2808 (debug_sym_fns, install_symfile_debug_logging): Update.
2809 * source.c (forget_cached_source_info_for_objfile)
2810 (select_source_symtab): Update.
2811 * objfiles.h (struct objfile): Add methods corresponding to
2812 quick_symbol_functions.
2813 * objfiles.c (objfile::has_partial_symbols): Move to
2815 * linespec.c (iterate_over_all_matching_symtabs): Update.
2816 * cp-support.c (add_symbol_overload_list_qualified): Update.
2817 * ada-lang.c (add_nonlocal_symbols): Update.
2819 2021-03-20 Tom Tromey <tom@tromey.com>
2821 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2822 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2824 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2825 * psymtab.c (psym_has_symbols): Return bool.
2826 * objfiles.c (objfile::has_partial_symbols): Return bool.
2827 * dwarf2/read.c (dw2_has_symbols): Return bool.
2829 2021-03-20 Tom Tromey <tom@tromey.com>
2831 * symfile.c (read_symbols): Update.
2832 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2833 (objfile_has_partial_symbols): Don't declare.
2834 * objfiles.c (objfile::has_partial_symbols): Rename from
2835 objfile_has_partial_symbols.
2836 (objfile_has_symbols, have_partial_symbols): Update.
2837 * elfread.c (elf_symfile_read): Update.
2838 * dwarf2/read.c (dwarf2_has_info): Update.
2839 * coffread.c (coff_symfile_read): Update.
2841 2021-03-20 Tom Tromey <tom@tromey.com>
2843 * coffread.c: Include dwarf2/public.h.
2844 * dwarf2/frame.c: Include dwarf2/public.h.
2845 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2846 * dwarf2/public.h: New file.
2847 * dwarf2/read.c: Include dwarf2/public.h.
2848 * elfread.c: Include dwarf2/public.h.
2849 * machoread.c: Include dwarf2/public.h.
2850 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2851 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2852 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2853 * xcoffread.c: Include dwarf2/public.h.
2855 2021-03-20 Tom Tromey <tom@tromey.com>
2857 * symfile.h (enum dwarf2_section_enum)
2858 (dwarf2_get_section_info): Move to dwarf2/read.h.
2859 * dwarf2/read.h (enum dwarf2_section_enum)
2860 (dwarf2_get_section_info): Move from symfile.h.
2862 2021-03-19 Pedro Alves <pedro@palves.net>
2864 * thread.c (any_thread_of_inferior): Check if there's a selected
2865 thread before calling inferior_thread().
2867 2021-03-18 Tom Tromey <tromey@adacore.com>
2869 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2871 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2872 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2874 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2876 * python/py-param.c (get_set_value): Update header comment.
2878 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2880 * infrun.c (check_multi_target_resumption): Remove argument to
2881 all_non_exited_inferiors.
2883 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2885 * windows-nat.c (windows_init_thread_list): Add message to
2888 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2890 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2891 well as PyLong_Check for Python 2.
2893 2021-03-15 Tom Tromey <tromey@adacore.com>
2896 * rust-exp.y (maker_map): Use gdb::hash_enum.
2897 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2899 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2901 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2904 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2906 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2907 parameter, adjust caller.
2909 2021-03-15 Tom Tromey <tromey@adacore.com>
2911 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2913 2021-03-15 Tom Tromey <tromey@adacore.com>
2915 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2916 ada_ensure_varsize_limit.
2918 2021-03-15 Tom Tromey <tromey@adacore.com>
2920 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2922 * ada-exp.y (maybe_overload): New function.
2923 (ada_wrap_overload): New function.
2924 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2925 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2926 (or_else_exp, xor_exp, primary): Update.
2928 2021-03-15 Tom Tromey <tromey@adacore.com>
2931 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2932 call for tagged type.
2934 2021-03-15 Tom Tromey <tromey@adacore.com>
2936 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2939 2021-03-15 Tom Tromey <tromey@adacore.com>
2941 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2943 (ada_assign_operation::evaluate): Update.
2944 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2947 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2949 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2951 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2953 * python/python.c (gdbpy_source_objfile_script): Use
2954 make_scoped_restore to restore gdbpy_current_objfile.
2955 (gdbpy_execute_objfile_script): Likewise.
2957 2021-03-14 Tom Tromey <tom@tromey.com>
2959 * dwarf2/read.c (read_attribute_value): Use cu_header
2962 2021-03-14 Tom Tromey <tom@tromey.com>
2964 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2965 (peek_die_abbrev): Use reader.abfd.
2967 2021-03-14 Tom Tromey <tom@tromey.com>
2969 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2972 2021-03-13 Tom Tromey <tom@tromey.com>
2974 * dwarf2/read.c (struct partial_die_info): Update.
2975 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2976 (load_partial_dies, partial_die_info::partial_die_info): Update.
2977 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2979 2021-03-13 Tom Tromey <tom@tromey.com>
2981 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2983 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2986 * cp-support.c: Use scoped_segv_handler_restore.
2987 * event-top.c (thread_local_segv_handler): Made static.
2988 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2990 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2992 * event-top.h (class scoped_segv_handler_restore): New class.
2993 (thread_local_segv_handler): Removed.
2995 2021-03-10 Tom Tromey <tromey@adacore.com>
2997 * parser-defs.h (parser_state): Change completion to bool.
2998 <parse_completion>: Likewise.
2999 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3000 (ada_resolve_variable, ada_resolve_function): Update.
3001 * ada-lang.c (ada_find_operator_symbol): Change
3002 parse_completion to bool.
3003 (ada_resolve_funcall, ada_resolve_variable)
3004 (ada_resolve_function): Likewise.
3006 2021-03-09 Tom Tromey <tromey@adacore.com>
3008 * eval.c (operation::evaluate_funcall): Use function formal
3009 parameter types when evaluating.
3011 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3013 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3014 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3015 and owner to m_owner.
3017 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3019 * f-exp.h (eval_op_f_loc): Declare.
3020 (expr::fortran_loc_operation): New typedef.
3021 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3023 (f77_keywords): Add LOC keyword.
3024 * f-lang.c (eval_op_f_loc): New function.
3025 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3027 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3029 * f-exp.h (eval_op_f_array_shape): Declare.
3030 (fortran_array_shape_operation): New type.
3031 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3033 (f77_keywords): Add "shape" keyword.
3034 * f-lang.c (fortran_array_shape): New function.
3035 (eval_op_f_array_shape): New function.
3036 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3038 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3040 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3042 (expr::fortran_array_size_1arg): New type.
3043 (expr::fortran_array_size_2arg): Likewise.
3044 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3045 UNOP_OR_BINOP_INTRINSIC.
3046 (f77_keywords): Add "size" keyword.
3047 * f-lang.c (fortran_array_size): New function.
3048 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3049 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3051 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3053 * f-exp.h (eval_op_f_rank): Declare.
3054 (expr::fortran_rank_operation): New typedef.
3055 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3057 (f77_keywords): Add "rank" keyword.
3058 * f-lang.c (eval_op_f_rank): New function.
3059 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3061 2021-03-08 Tom Tromey <tom@tromey.com>
3063 * printcmd.c (set_command): Remove null check.
3064 * value.c (init_if_undefined_command): Remove null check.
3066 2021-03-08 Tom Tromey <tom@tromey.com>
3068 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3070 * p-exp.y (variable): Update.
3071 * go-exp.y (variable): Update.
3072 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3073 Remove overload for objfile.
3074 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3076 (check_objfile): Likewise.
3077 (dump_for_expression): Likewise. Remove overload for objfile.
3078 (class var_msym_value_operation): Use bound_minimal_symbol.
3079 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3081 (var_msym_value_operation::evaluate_for_address)
3082 (var_msym_value_operation::evaluate_for_sizeof)
3083 (var_msym_value_operation::evaluate_for_cast): Update.
3084 * d-exp.y (PrimaryExpression): Update.
3085 * c-exp.y (variable): Update.
3086 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3087 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3089 * ada-exp.y (write_var_or_type): Update.
3091 2021-03-08 Tom Tromey <tom@tromey.com>
3093 * parser-defs.h (exp_uses_objfile): Return bool.
3094 * parse.c (exp_uses_objfile): Return bool.
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3098 * value.h (eval_skip_value): Don't declare.
3099 * opencl-lang.c (eval_opencl_assign): Update.
3100 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3101 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3102 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3103 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3104 * expop.h (typeof_operation::evaluate)
3105 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3106 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3107 (cxx_cast_operation::evaluate): Update.
3108 * eval.c (eval_skip_value): Remove.
3109 (eval_op_scope, eval_op_var_entry_value)
3110 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3111 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3112 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3113 (eval_op_binary, eval_op_subscript, eval_op_equal)
3114 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3115 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3116 (eval_op_complement, eval_op_lognot, eval_op_ind)
3117 (eval_op_memval, eval_op_preinc, eval_op_predec)
3118 (eval_op_postinc, eval_op_postdec, eval_op_type)
3119 (eval_binop_assign_modify, eval_op_objc_msgcall)
3120 (eval_multi_subscript, logical_and_operation::evaluate)
3121 (logical_or_operation::evaluate, array_operation::evaluate)
3122 (operation::evaluate_for_cast)
3123 (var_msym_value_operation::evaluate_for_cast)
3124 (var_value_operation::evaluate_for_cast): Update.
3125 * c-lang.c (c_string_operation::evaluate): Update.
3126 * c-exp.h (objc_nsstring_operation::evaluate)
3127 (objc_selector_operation::evaluate): Update.
3128 * ada-lang.c (ada_assign_operation::evaluate)
3129 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3130 (ada_atr_size): Update.
3132 2021-03-08 Tom Tromey <tom@tromey.com>
3134 * eval.c: Merge "namespace" scopes.
3136 2021-03-08 Tom Tromey <tom@tromey.com>
3138 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3140 * parse.c (expr_builder::expr_builder, expr_builder::release):
3143 2021-03-08 Tom Tromey <tom@tromey.com>
3145 * parse.c (expression::expression, expression::~expression):
3147 * expression.h (struct expression): Inline constructor. Remove
3150 2021-03-08 Tom Tromey <tom@tromey.com>
3152 * std-operator.def (BINOP_END): Remove.
3153 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3154 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3155 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3156 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3157 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3160 2021-03-08 Tom Tromey <tom@tromey.com>
3162 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3164 2021-03-08 Tom Tromey <tom@tromey.com>
3166 * std-operator.def (OP_EXTENDED0): Remove.
3168 2021-03-08 Tom Tromey <tom@tromey.com>
3170 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3171 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3174 2021-03-08 Tom Tromey <tom@tromey.com>
3176 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3177 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3179 2021-03-08 Tom Tromey <tom@tromey.com>
3181 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3182 * ada-lang.c (ada_binop_minmax): Update.
3183 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3184 Use BINOP_MIN and BINOP_MAX.
3186 2021-03-08 Tom Tromey <tom@tromey.com>
3188 * value.h (evaluate_subexp_with_coercion): Don't declare.
3189 * parse.c (exp_descriptor_standard): Remove.
3190 (expr_builder::expr_builder, expr_builder::release): Update.
3191 (expression::expression): Remove size_t parameter.
3192 (expression::~expression): Simplify.
3193 (expression::resize): Remove.
3194 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3195 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3196 (write_exp_elt_longcst, write_exp_elt_floatcst)
3197 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3198 (write_exp_string_vector, write_exp_bitstring): Remove.
3199 * p-lang.h (class pascal_language) <opcode_print_table,
3200 op_print_tab>: Remove.
3201 * p-lang.c (pascal_language::op_print_tab): Remove.
3202 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3204 * objc-lang.c (objc_op_print_tab): Remove.
3205 (class objc_language) <opcode_print_table>: Remove.
3206 * m2-lang.h (class m2_language) <opcode_print_table,
3207 op_print_tab>: Remove.
3208 * m2-lang.c (m2_language::op_print_tab): Remove.
3209 * language.h (struct language_defn) <post_parser, expression_ops,
3210 opcode_print_table>: Remove.
3211 * language.c (language_defn::expression_ops)
3212 (auto_or_unknown_language::opcode_print_table): Remove.
3213 * go-lang.h (class go_language) <opcode_print_table,
3214 op_print_tab>: Remove.
3215 * go-lang.c (go_language::op_print_tab): Remove.
3216 * f-lang.h (class f_language) <opcode_print_table>: Remove
3217 <op_print_tab>: Remove.
3218 * f-lang.c (f_language::op_print_tab): Remove.
3219 * expression.h (union exp_element): Remove.
3220 (struct expression): Remove size_t parameter from constructor.
3222 <first_opcode>: Update.
3223 <nelts, elts>: Remove.
3224 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3225 (evaluate_subexp_standard, print_expression, op_string)
3226 (dump_raw_expression): Don't declare.
3227 * expprint.c (print_expression, print_subexp)
3228 (print_subexp_funcall, print_subexp_standard, op_string)
3229 (dump_raw_expression, dump_subexp, dump_subexp_body)
3230 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3231 (dump_prefix_expression): Update.
3232 * eval.c (evaluate_subexp): Remove.
3233 (evaluate_expression, evaluate_type): Update.
3234 (evaluate_subexpression_type): Remove.
3235 (fetch_subexp_value): Remove "pc" parameter. Update.
3236 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3237 (evaluate_subexp_standard, evaluate_subexp_for_address)
3238 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3239 (evaluate_subexp_for_cast): Remove.
3240 (parse_and_eval_type): Update.
3241 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3242 * d-lang.c (d_op_print_tab): Remove.
3243 (class d_language) <opcode_print_table>: Remove.
3244 * c-lang.h (c_op_print_tab): Don't declare.
3245 * c-lang.c (c_op_print_tab): Remove.
3246 (class c_language, class cplus_language, class asm_language, class
3247 minimal_language) <opcode_print_table>: Remove.
3248 * breakpoint.c (update_watchpoint, watchpoint_check)
3249 (watchpoint_exp_is_const, watch_command_1): Update.
3250 * ax-gdb.h (union exp_element): Don't declare.
3251 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3252 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3253 (gen_expr_binop_rest): Remove.
3254 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3255 * ada-lang.c (ada_op_print_tab): Remove.
3256 (class ada_language) <post_parser, opcode_print_table>: Remove.
3258 2021-03-08 Tom Tromey <tom@tromey.com>
3260 * go-lang.c (go_language::expression_ops): Don't declare.
3261 * go-lang.h (class go_language) <expression_ops>: Remove.
3262 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3264 (class opencl_language) <expression_ops>: Remove.
3265 * d-lang.c (class d_language) <expression_ops>: Remove.
3266 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3267 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3268 (class c_language, class cplus_language, class asm_language)
3269 (class minimal_language) <expression_ops>: Remove.
3271 2021-03-08 Tom Tromey <tom@tromey.com>
3273 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3274 (evaluate_subexp_type, assign_aggregate)
3275 (aggregate_assign_positional, aggregate_assign_from_choices)
3276 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3277 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3278 (ada_operator_check, ada_forward_operator_length)
3279 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3281 (post_parser): Update.
3282 (class ada_language) <expresssion_ops>: Remove.
3284 2021-03-08 Tom Tromey <tom@tromey.com>
3286 * m2-lang.h (class m2_language) <expresssion_ops,
3287 exp_descriptor_modula2>: Remove.
3288 * m2-lang.c (evaluate_subexp_modula2)
3289 (m2_language::exp_descriptor_modula2): Remove.
3291 2021-03-08 Tom Tromey <tom@tromey.com>
3293 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3294 <exp_descriptor_tab>: Remove.
3295 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3296 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3297 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3298 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3301 2021-03-08 Tom Tromey <tom@tromey.com>
3303 * rust-lang.h (class rust_language) <expression_ops,
3304 exp_descriptor_tab>: Remove.
3305 * rust-lang.c (rust_evaluate_funcall): Remove.
3306 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3308 (rust_evaluate_subexp): Remove.
3309 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3310 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3311 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3313 2021-03-08 Tom Tromey <tom@tromey.com>
3315 * ada-exp.y: Create operations.
3316 (empty_stoken): Remove.
3317 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3318 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3319 (components): New global.
3320 (push_component, choice_component, pop_component, pop_components):
3322 (associations): New global
3323 (push_association, pop_association, pop_associations): New
3325 (ada_parse): Update.
3326 (write_var_from_sym, write_int): Create operations.
3327 (write_exp_op_with_string): Remove.
3328 (write_object_renaming, write_selectors, write_ambiguous_var)
3329 (write_var_or_type, write_name_assoc): Create operations.
3330 * ada-lang.h (ada_index_type): Declare.
3331 * ada-lang.c (ada_index_type): No longer static.
3333 2021-03-08 Tom Tromey <tom@tromey.com>
3335 * f-exp.y: Create operations.
3336 (f_language::parser): Update.
3338 2021-03-08 Tom Tromey <tom@tromey.com>
3340 * m2-exp.y: Create operations.
3341 (m2_language::parser): Update.
3343 2021-03-08 Tom Tromey <tom@tromey.com>
3345 * p-exp.y: Create operations.
3346 (pascal_language::parser): Update.
3348 2021-03-08 Tom Tromey <tom@tromey.com>
3350 * d-exp.y: Create operations.
3353 2021-03-08 Tom Tromey <tom@tromey.com>
3355 * go-exp.y: Create operations.
3356 (go_language::parser): Update.
3358 2021-03-08 Tom Tromey <tom@tromey.com>
3360 * objc-lang.c (end_msglist): Create operations.
3361 * c-exp.y: Change parser to create operations.
3362 (write_destructor_name): Remove.
3365 2021-03-08 Tom Tromey <tom@tromey.com>
3367 * rust-exp.y: Create operations.
3368 (rust_parser::convert_params_to_expression): Change return type.
3369 (binop_maker_ftype): New typedef.
3370 (maker_map): New global.
3371 (rust_parser::convert_ast_to_expression): Change return type.
3372 (rust_language::parser): Update.
3373 (_initialize_rust_exp): Initialize maker_map.
3375 2021-03-08 Tom Tromey <tom@tromey.com>
3377 * stap-probe.c (binop_maker_ftype): New typedef.
3378 (stap_maker_map): New global.
3379 (stap_make_binop): New function.
3380 (stap_parse_register_operand): Return operation_up.
3381 (stap_parse_single_operand, stap_parse_argument_conditionally)
3382 (stap_parse_argument_1): Likewise.
3383 (stap_parse_argument): Create operations.
3384 (stap_probe::parse_arguments): Update.
3385 (_initialize_stap_probe): Initialize stap_maker_map.
3386 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3388 * i386-tdep.h (i386_stap_parse_special_token): Change return
3390 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3391 (i386_stap_parse_special_token_three_arg_disp)
3392 (i386_stap_parse_special_token): Change return type.
3393 * gdbarch.sh (stap_parse_special_token): Change return type.
3394 * gdbarch.c: Rebuild.
3395 * gdbarch.h: Rebuild.
3396 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3398 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3401 2021-03-08 Tom Tromey <tom@tromey.com>
3403 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3404 * gdbarch.h: Rebuild.
3405 * gdbarch.c: Rebuild.
3406 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3407 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3409 (amd64_dtrace_parse_probe_argument): Update.
3411 2021-03-08 Tom Tromey <tom@tromey.com>
3413 * parser-defs.h (struct parser_state) <push, push_new,
3414 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3415 wrap2>: New methods.
3416 <m_operations>: New member.
3417 * parse.c (parser_state::push_c_string)
3418 (parser_state::push_symbol, parser_state::push_dollar): New
3421 2021-03-08 Tom Tromey <tom@tromey.com>
3423 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3425 (struct parser_state) <mark_struct_expression>: New method.
3426 * parse.c (parser_state::mark_struct_expression): Update assert.
3427 (parser_state::mark_struct_expression): New method.
3428 (parser_state::mark_completion_tag): Update assert.
3429 (parse_expression_for_completion): Handle expout_last_op.
3431 2021-03-08 Tom Tromey <tom@tromey.com>
3433 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3435 * value.h (fetch_subexp_value): Add "op" parameter.
3436 * value.c (init_if_undefined_command): Update.
3437 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3438 * stap-probe.c (stap_probe::compile_to_ax): Update.
3439 * printcmd.c (set_command): Update.
3440 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3442 * parser-defs.h (struct expr_builder) <set_operation>: New
3444 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3445 * expression.h (struct expression) <first_opcode>: Update.
3447 * expprint.c (dump_raw_expression, dump_prefix_expression):
3449 * expop.h (class var_value_operation) <get_symbol>: New method.
3450 (class register_operation) <get_name>: New method.
3451 (class equal_operation): No longer a typedef, now a subclass.
3452 (class unop_memval_operation) <get_type>: New method.
3453 (class assign_operation) <get_lhs>: New method.
3454 (class unop_cast_operation) <get_type>: New method.
3455 * eval.c (evaluate_expression, evaluate_type)
3456 (evaluate_subexpression_type): Update.
3457 (fetch_subexp_value): Add "op" parameter.
3458 (parse_and_eval_type): Update.
3459 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3460 * breakpoint.c (update_watchpoint, watchpoint_check)
3461 (watchpoint_exp_is_const, watch_command_1): Update.
3462 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3465 2021-03-08 Tom Tromey <tom@tromey.com>
3467 * ada-lang.c (ada_value_binop): Do not use op_string.
3469 2021-03-08 Tom Tromey <tom@tromey.com>
3471 * expprint.c (dump_for_expression): New overload.
3472 * expop.h (check_objfile, dump_for_expression): Declare new
3474 * ada-lang.c (check_objfile): New overload.
3475 (assign_component, ada_aggregate_component::uses_objfile)
3476 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3477 (ada_aggregate_component::assign_aggregate)
3478 (ada_positional_component::uses_objfile)
3479 (ada_positional_component::dump, ada_positional_component::assign)
3480 (ada_discrete_range_association::uses_objfile)
3481 (ada_discrete_range_association::dump)
3482 (ada_discrete_range_association::assign)
3483 (ada_name_association::uses_objfile, ada_name_association::dump)
3484 (ada_name_association::assign)
3485 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3486 (ada_choices_component::assign)
3487 (ada_others_component::uses_objfile, ada_others_component::dump)
3488 (ada_others_component::assign, ada_assign_operation::evaluate):
3490 * ada-exp.h (ada_string_operation) <get_name>: New method.
3491 (class ada_assign_operation): New.
3492 (class ada_component): New.
3493 (ada_component_up): New typedef.
3494 (class ada_aggregate_operation, class ada_aggregate_component)
3495 (class ada_positional_component, class ada_others_component)
3496 (class ada_association): New.
3497 (ada_association_up): New typedef.
3498 (class ada_choices_component)
3499 (class ada_discrete_range_association)
3500 (class ada_name_association): New.
3502 2021-03-08 Tom Tromey <tom@tromey.com>
3504 * ada-lang.c (ada_var_value_operation::resolve)
3505 (ada_funcall_operation::resolve)
3506 (ada_ternop_slice_operation::resolve): New methods.
3507 * ada-exp.h (struct ada_resolvable): New.
3508 (class ada_var_value_operation): Derive from ada_resolvable.
3509 <get_block, resolve>: New methods.
3510 (class ada_funcall_operation): Derive from ada_resolvable.
3511 <resolve>: New method.
3512 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3513 <resolve>: New method.
3515 2021-03-08 Tom Tromey <tom@tromey.com>
3517 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3518 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3520 (class ada_funcall_operation): New.
3522 2021-03-08 Tom Tromey <tom@tromey.com>
3524 * ada-lang.c (ada_structop_operation::evaluate): New method.
3525 * ada-exp.h (class ada_structop_operation): New.
3527 2021-03-08 Tom Tromey <tom@tromey.com>
3529 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3530 * ada-exp.h (class ada_unop_ind_operation): New.
3532 2021-03-08 Tom Tromey <tom@tromey.com>
3534 * ada-lang.c (ada_binop_exp): No longer static.
3535 * ada-exp.h (ada_binop_exp_operation): New typedef.
3537 2021-03-08 Tom Tromey <tom@tromey.com>
3539 * ada-lang.c (ada_val_atr): No longer static.
3540 (ada_atr_val_operation::evaluate): New method.
3541 * ada-exp.h (class ada_atr_val_operation): New.
3543 2021-03-08 Tom Tromey <tom@tromey.com>
3545 * ada-lang.c (ada_pos_atr): No longer static.
3546 * ada-exp.h (ada_pos_operation): New typedef.
3548 2021-03-08 Tom Tromey <tom@tromey.com>
3550 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3552 (ada_evaluate_subexp): Use it.
3554 2021-03-08 Tom Tromey <tom@tromey.com>
3556 * ada-lang.c (ada_binop_minmax): No longer static.
3557 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3560 2021-03-08 Tom Tromey <tom@tromey.com>
3562 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3564 * ada-exp.h (class ada_var_msym_value_operation): New.
3566 2021-03-08 Tom Tromey <tom@tromey.com>
3568 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3569 (ada_var_value_operation::evaluate): New methods.
3570 * ada-exp.h (class ada_var_value_operation): New.
3572 2021-03-08 Tom Tromey <tom@tromey.com>
3574 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3575 * ada-exp.h (class ada_unop_atr_operation): New.
3577 2021-03-08 Tom Tromey <tom@tromey.com>
3579 * ada-lang.c (ada_binop_in_bounds): No longer static.
3580 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3582 2021-03-08 Tom Tromey <tom@tromey.com>
3584 * ada-lang.c (ada_ternop_slice): No longer static.
3585 * ada-exp.h (class ada_ternop_slice_operation): New.
3587 2021-03-08 Tom Tromey <tom@tromey.com>
3589 * ada-exp.h (ada_bitwise_operation): New template class.
3590 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3591 (ada_bitwise_xor_operation): New typedefs.
3593 2021-03-08 Tom Tromey <tom@tromey.com>
3595 * ada-lang.c (ada_equal_binop): No longer static.
3596 * ada-exp.h (class ada_binop_equal_operation): New.
3598 2021-03-08 Tom Tromey <tom@tromey.com>
3600 * ada-lang.c (ada_mult_binop): No longer static.
3601 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3602 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3604 2021-03-08 Tom Tromey <tom@tromey.com>
3606 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3607 * ada-exp.h (class ada_binop_addsub_operation): New.
3609 2021-03-08 Tom Tromey <tom@tromey.com>
3611 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3612 (ada_resolve_variable): Declare.
3613 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3614 (ada_resolve_variable): New functions.
3615 (resolve_subexp): Update.
3617 2021-03-08 Tom Tromey <tom@tromey.com>
3619 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3621 * c-exp.h (class opencl_ternop_cond_operation): New.
3623 2021-03-08 Tom Tromey <tom@tromey.com>
3625 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3627 * c-exp.h (class opencl_logical_binop_operation): New.
3629 2021-03-08 Tom Tromey <tom@tromey.com>
3631 * opencl-lang.c (opencl_structop_operation::evaluate): New
3633 * c-exp.h (class opencl_structop_operation): New.
3635 2021-03-08 Tom Tromey <tom@tromey.com>
3637 * opencl-lang.c (opencl_logical_not): No longer static. Change
3639 (evaluate_subexp_opencl): Update.
3640 * c-exp.h (opencl_notequal_operation): New typedef.
3642 2021-03-08 Tom Tromey <tom@tromey.com>
3644 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3645 static. Change parameters.
3646 (eval_opencl_assign): No longer static. Add "op" parameter.
3647 (evaluate_subexp_opencl): Update.
3648 * c-exp.h (opencl_binop_operation): New template class.
3649 (opencl_assign_operation, opencl_equal_operation)
3650 (opencl_notequal_operation, opencl_less_operation)
3651 (opencl_gtr_operation, opencl_geq_operation)
3652 (opencl_leq_operation): New typedefs.
3654 2021-03-08 Tom Tromey <tom@tromey.com>
3656 * opencl-lang.c (opencl_value_cast): No longer static.
3657 * c-exp.h (opencl_cast_type_operation): New typedef.
3659 2021-03-08 Tom Tromey <tom@tromey.com>
3661 * f-exp.h (eval_op_f_allocated): Declare.
3662 (fortran_allocated_operation): New typedef.
3663 * f-lang.c (eval_op_f_allocated): No longer static.
3665 2021-03-08 Tom Tromey <tom@tromey.com>
3667 * f-lang.c (eval_op_f_associated): New functions.
3668 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3671 2021-03-08 Tom Tromey <tom@tromey.com>
3673 * f-lang.c (fortran_bound_1arg::evaluate)
3674 (fortran_bound_2arg::evaluate): New methods.
3675 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3678 2021-03-08 Tom Tromey <tom@tromey.com>
3680 * expop.h (class unop_addr_operation) <get_expression>: New
3682 * f-lang.c (fortran_undetermined::value_subarray)
3683 (fortran_undetermined::evaluate): New methods.
3684 (fortran_prepare_argument): New overload.
3685 * f-exp.h (class fortran_range_operation)
3686 (class fortran_undetermined): New classes.
3688 2021-03-08 Tom Tromey <tom@tromey.com>
3690 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3691 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3694 2021-03-08 Tom Tromey <tom@tromey.com>
3696 * expression.h (class operation) <evaluate_funcall>: New methods.
3697 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3698 (class var_value_operation) <evaluate_funcall>: New method.
3699 (class structop_base_operation) <evaluate_funcall>: New method.
3700 (class var_msym_value_operation) <evaluate_funcall>: New method.
3701 (class structop_member_base): New class.
3702 (class structop_member_operation): Derive from
3703 structop_member_base.
3704 (class structop_mptr_operation): Derive from
3705 structop_member_base.
3706 (class funcall_operation): New class.
3707 * eval.c (operation::evaluate_funcall)
3708 (var_value_operation::evaluate_funcall)
3709 (scope_operation::evaluate_funcall)
3710 (structop_member_base::evaluate_funcall)
3711 (structop_base_operation::evaluate_funcall): New methods.
3713 2021-03-08 Tom Tromey <tom@tromey.com>
3715 * expop.h (class array_operation): New.
3716 * eval.c (array_operation::evaluate_struct_tuple)
3717 (array_operation::evaluate): New methods.
3719 2021-03-08 Tom Tromey <tom@tromey.com>
3721 * expop.h (class adl_func_operation): New.
3722 * eval.c (adl_func_operation::evaluate): New method.
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3726 * ada-lang.c (ada_unop_in_range): No longer static.
3727 * ada-exp.h (class ada_unop_range_operation): New.
3729 2021-03-08 Tom Tromey <tom@tromey.com>
3731 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3733 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3734 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3736 2021-03-08 Tom Tromey <tom@tromey.com>
3738 * expop.h (class logical_and_operation)
3739 (class logical_or_operation): New.
3740 * eval.c (logical_and_operation::evaluate)
3741 (logical_or_operation::evaluate): New methods.
3742 * ax-gdb.c (logical_and_operation::do_generate_ax)
3743 (logical_or_operation::do_generate_ax): New methods.
3745 2021-03-08 Tom Tromey <tom@tromey.com>
3747 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3749 * m2-exp.h: New file.
3751 2021-03-08 Tom Tromey <tom@tromey.com>
3753 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3754 * rust-exp.h (class rust_aggregate_operation): New.
3756 2021-03-08 Tom Tromey <tom@tromey.com>
3758 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3760 * rust-exp.h (class rust_struct_anon): New.
3761 (class rust_structop): New.
3763 2021-03-08 Tom Tromey <tom@tromey.com>
3765 * rust-lang.c (rust_range): No longer static.
3766 * rust-exp.h (class rust_range_operation): New.
3768 2021-03-08 Tom Tromey <tom@tromey.com>
3770 * rust-lang.c (rust_subscript): No longer static.
3771 * rust-exp.h (class rust_subscript_operation): New.
3773 2021-03-08 Tom Tromey <tom@tromey.com>
3775 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3777 (rust_evaluate_subexp): Update.
3778 * rust-exp.h (class rust_unop_ind_operation): New.
3780 2021-03-08 Tom Tromey <tom@tromey.com>
3782 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3783 longer static. Add "opcode" parameter.
3784 (rust_evaluate_subexp): Update.
3785 * rust-exp.h: New file.
3787 2021-03-08 Tom Tromey <tom@tromey.com>
3789 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3790 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3791 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3792 (evaluate_subexp_f): Update.
3793 * f-exp.h: New file.
3795 2021-03-08 Tom Tromey <tom@tromey.com>
3797 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3798 * ada-exp.h (class ada_ternop_range_operation): New.
3800 2021-03-08 Tom Tromey <tom@tromey.com>
3802 * ada-lang.c (ada_qual_operation::evaluate): New method.
3803 * ada-exp.h (class ada_qual_operation): New.
3805 2021-03-08 Tom Tromey <tom@tromey.com>
3807 * ada-lang.c (ada_string_operation::evaluate): New method.
3808 * ada-exp.h (class ada_string_operation): New.
3810 2021-03-08 Tom Tromey <tom@tromey.com>
3812 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3813 * ada-exp.h: New file.
3815 2021-03-08 Tom Tromey <tom@tromey.com>
3817 * expop.h (class multi_subscript_operation): New.
3818 * eval.c (multi_subscript_operation::evaluate): New method.
3820 2021-03-08 Tom Tromey <tom@tromey.com>
3822 * eval.c (objc_msgcall_operation::evaluate): New method.
3823 * c-exp.h (class objc_msgcall_operation): New.
3825 2021-03-08 Tom Tromey <tom@tromey.com>
3827 * expop.h (class var_value_operation): New.
3828 * eval.c (var_value_operation::evaluate)
3829 (var_value_operation::evaluate_for_address)
3830 (var_value_operation::evaluate_with_coercion)
3831 (var_value_operation::evaluate_for_sizeof)
3832 (var_value_operation::evaluate_for_cast): New methods.
3833 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3835 2021-03-08 Tom Tromey <tom@tromey.com>
3837 * expop.h (cxx_cast_ftype): New typedef.
3838 (cxx_cast_operation): New template.
3839 (dynamic_cast_operation, reinterpret_cast_operation): New
3842 2021-03-08 Tom Tromey <tom@tromey.com>
3844 * expop.h (class unop_cast_type_operation): New.
3845 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3848 2021-03-08 Tom Tromey <tom@tromey.com>
3850 * expop.h (class unop_cast_operation): New.
3851 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3853 2021-03-08 Tom Tromey <tom@tromey.com>
3855 * expop.h (class assign_modify_operation): New.
3856 * eval.c (eval_binop_assign_modify): No longer static.
3857 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3861 * expop.h (class assign_operation): New.
3862 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3864 2021-03-08 Tom Tromey <tom@tromey.com>
3866 * expop.h (class type_instance_operation): New.
3867 * eval.c (type_instance_operation::evaluate): New method.
3869 2021-03-08 Tom Tromey <tom@tromey.com>
3871 * expop.h (class op_this_operation): New.
3872 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3874 2021-03-08 Tom Tromey <tom@tromey.com>
3876 * expop.h (class unop_memval_operation)
3877 (class unop_memval_type_operation): New.
3878 * eval.c (eval_op_memval): No longer static.
3879 (unop_memval_operation::evaluate_for_address)
3880 (unop_memval_type_operation::evaluate_for_address)
3881 (unop_memval_operation::evaluate_for_sizeof)
3882 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3883 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3884 (unop_memval_type_operation::do_generate_ax): New methods.
3886 2021-03-08 Tom Tromey <tom@tromey.com>
3888 * expop.h (class unop_alignof_operation): New.
3889 * eval.c (eval_op_alignof): No longer static.
3891 2021-03-08 Tom Tromey <tom@tromey.com>
3893 * expop.h (class unop_sizeof_operation): New.
3894 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3896 2021-03-08 Tom Tromey <tom@tromey.com>
3898 * expop.h (class unop_addr_operation): New.
3899 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3901 2021-03-08 Tom Tromey <tom@tromey.com>
3903 * expop.h (class typeid_operation): New.
3905 2021-03-08 Tom Tromey <tom@tromey.com>
3907 * expop.h (class decltype_operation): New.
3909 2021-03-08 Tom Tromey <tom@tromey.com>
3911 * expop.h (class typeof_operation): New.
3913 2021-03-08 Tom Tromey <tom@tromey.com>
3915 * expop.h (class type_operation): New.
3916 * eval.c (eval_op_type): No longer static.
3918 2021-03-08 Tom Tromey <tom@tromey.com>
3920 * expop.h (class unop_ind_base_operation)
3921 (class unop_ind_operation): New.
3922 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3923 (unop_ind_base_operation::evaluate_for_address)
3924 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3925 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3927 2021-03-08 Tom Tromey <tom@tromey.com>
3929 * expop.h (unop_incr_operation): New template.
3930 (preinc_operation, predec_operation, postinc_operation)
3931 (postdec_operation): New typedefs.
3932 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3933 (eval_op_postdec): No longer static.
3935 2021-03-08 Tom Tromey <tom@tromey.com>
3937 * expop.h (unary_ftype): New typedef.
3938 (unop_operation, usual_ax_binop_operation): New templates.
3939 (unary_plus_operation, unary_neg_operation)
3940 (unary_complement_operation, unary_logical_not_operation): New
3942 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3943 (eval_op_lognot): No longer static.
3944 * ax-gdb.c (gen_expr_unop): New function.
3946 2021-03-08 Tom Tromey <tom@tromey.com>
3948 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3950 2021-03-08 Tom Tromey <tom@tromey.com>
3952 * expop.h (class repeat_operation): New.
3953 * eval.c (eval_op_repeat): No longer static. Remove "op"
3955 (evaluate_subexp_standard): Update.
3956 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3958 2021-03-08 Tom Tromey <tom@tromey.com>
3960 * expop.h (class comparison_operation): New.
3961 (equal_operation, notequal_operation, less_operation)
3962 (gtr_operation, geq_operation, leq_operation): New typedefs.
3963 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3964 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3966 2021-03-08 Tom Tromey <tom@tromey.com>
3968 * expop.h (class subscript_operation): New.
3969 * eval.c (eval_op_subscript): No longer static.
3971 2021-03-08 Tom Tromey <tom@tromey.com>
3973 * expop.h (class binop_operation, class usual_ax_binop_operation):
3975 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3976 (div_operation, rem_operation, lsh_operation, rsh_operation)
3977 (bitwise_and_operation, bitwise_ior_operation)
3978 (bitwise_xor_operation): New typedefs.
3979 * eval.c (eval_op_binary): No longer static.
3981 2021-03-08 Tom Tromey <tom@tromey.com>
3983 * expop.h (class sub_operation): New.
3984 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3985 (evaluate_subexp_standard): Update.
3987 2021-03-08 Tom Tromey <tom@tromey.com>
3989 * expop.h (class add_operation): New.
3990 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3991 (evaluate_subexp_standard): Update.
3993 2021-03-08 Tom Tromey <tom@tromey.com>
3995 * expop.h (class concat_operation): New.
3996 * eval.c (eval_op_concat): No longer static. Remove "op"
3998 (evaluate_subexp_standard): Update.
4000 2021-03-08 Tom Tromey <tom@tromey.com>
4002 * expop.h (class structop_member_operation)
4003 (class structop_mptr_operation): New.
4004 * eval.c (eval_op_member): No longer static.
4006 2021-03-08 Tom Tromey <tom@tromey.com>
4008 * expop.h (class structop_ptr_operation): New.
4009 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4012 2021-03-08 Tom Tromey <tom@tromey.com>
4014 * expop.h (class structop_base_operation)
4015 (class structop_operation): New.
4016 * eval.c (eval_op_structop_struct): No longer static.
4018 2021-03-08 Tom Tromey <tom@tromey.com>
4020 * expop.h (class complex_operation): New.
4022 2021-03-08 Tom Tromey <tom@tromey.com>
4024 * eval.c (eval_op_objc_selector): No longer static.
4025 * c-exp.h (class objc_selector_operation): New.
4027 2021-03-08 Tom Tromey <tom@tromey.com>
4029 * eval.c: Include c-exp.h.
4030 * c-exp.h (class objc_nsstring_operation): New.
4032 2021-03-08 Tom Tromey <tom@tromey.com>
4034 * c-lang.c (c_string_operation::evaluate): New method.
4035 * c-exp.h: New file.
4037 2021-03-08 Tom Tromey <tom@tromey.com>
4039 * expop.h (class ternop_cond_operation): New.
4040 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4042 2021-03-08 Tom Tromey <tom@tromey.com>
4044 * expop.h (class ternop_slice_operation): New.
4045 * eval.c (eval_op_ternop): No longer static.
4047 2021-03-08 Tom Tromey <tom@tromey.com>
4049 * expop.h (class string_operation): New.
4050 * eval.c (eval_op_string): No longer static.
4052 2021-03-08 Tom Tromey <tom@tromey.com>
4054 * expop.h (class internalvar_operation): New.
4055 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4057 2021-03-08 Tom Tromey <tom@tromey.com>
4059 * expop.h (class bool_operation): New.
4061 2021-03-08 Tom Tromey <tom@tromey.com>
4063 * expop.h (class register_operation): New.
4064 * eval.c (eval_op_register): No longer static.
4065 * ax-gdb.c (register_operation::do_generate_ax): New method.
4067 2021-03-08 Tom Tromey <tom@tromey.com>
4069 * expop.h (class last_operation): New.
4071 2021-03-08 Tom Tromey <tom@tromey.com>
4073 * expop.h (class func_static_var_operation): New.
4074 * eval.c (eval_op_func_static_var): No longer static.
4076 2021-03-08 Tom Tromey <tom@tromey.com>
4078 * expop.h (class var_entry_value_operation): New.
4079 * eval.c (eval_op_var_entry_value): No longer static.
4081 2021-03-08 Tom Tromey <tom@tromey.com>
4083 * expression.h (class operation) <set_outermost>: New method.
4084 * expop.h (class var_msym_value_operation): New.
4085 * eval.c (eval_op_var_msym_value): No longer static.
4086 (var_msym_value_operation::evaluate_for_address)
4087 (var_msym_value_operation::evaluate_for_sizeof)
4088 (var_msym_value_operation::evaluate_for_cast): New methods.
4089 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4092 2021-03-08 Tom Tromey <tom@tromey.com>
4094 * expop.h (class long_const_operation): New.
4095 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4097 2021-03-08 Tom Tromey <tom@tromey.com>
4099 * expop.h (class scope_operation): New.
4100 * eval.c (eval_op_scope): No longer static.
4101 (scope_operation::evaluate_for_address): New method.
4102 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4104 2021-03-08 Tom Tromey <tom@tromey.com>
4106 * expprint.c (float_const_operation::dump): New method.
4107 * expop.h (float_data): New typedef.
4108 (class float_const_operation): New.
4110 2021-03-08 Tom Tromey <tom@tromey.com>
4112 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4113 * ax-gdb.c (gen_expr_binop): New function.
4114 (gen_expr_structop): Likewise.
4116 2021-03-08 Tom Tromey <tom@tromey.com>
4118 * expprint.c (expr::dump_for_expression): New functions.
4119 * expop.h (dump_for_expression): New overloads.
4120 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4123 2021-03-08 Tom Tromey <tom@tromey.com>
4125 * expression.h (expr::operation): New class.
4126 (expr::make_operation): New function.
4127 (expr::operation_up): New typedef.
4128 * expop.h: New file.
4129 * eval.c (operation::evaluate_for_cast)
4130 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4132 * ax-gdb.c (operation::generate_ax): New method.
4134 2021-03-08 Tom Tromey <tom@tromey.com>
4136 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4137 (gen_expr_binop_rest): New overload.
4139 2021-03-08 Tom Tromey <tom@tromey.com>
4141 * eval.c (eval_multi_subscript): New function.
4142 (evaluate_subexp_standard): Use it.
4144 2021-03-08 Tom Tromey <tom@tromey.com>
4146 * ada-lang.c (ada_binop_exp): New function.
4147 (ada_evaluate_subexp): Use it.
4149 2021-03-08 Tom Tromey <tom@tromey.com>
4151 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4153 (ada_evaluate_subexp): Use it.
4155 2021-03-08 Tom Tromey <tom@tromey.com>
4157 * ada-lang.c (ada_binop_minmax): New function.
4158 (ada_evaluate_subexp): Use it.
4160 2021-03-08 Tom Tromey <tom@tromey.com>
4162 * ada-lang.c (ada_unop_atr): New function.
4163 (ada_evaluate_subexp): Use it.
4165 2021-03-08 Tom Tromey <tom@tromey.com>
4167 * ada-lang.c (ada_binop_in_bounds): New function.
4168 (ada_evaluate_subexp): Use it.
4170 2021-03-08 Tom Tromey <tom@tromey.com>
4172 * ada-lang.c (ada_ternop_slice): New function.
4173 (ada_evaluate_subexp): Use it.
4175 2021-03-08 Tom Tromey <tom@tromey.com>
4177 * ada-lang.c (ada_equal_binop): New function.
4178 (ada_evaluate_subexp): Use it.
4180 2021-03-08 Tom Tromey <tom@tromey.com>
4182 * ada-lang.c (ada_mult_binop): New function.
4183 (ada_evaluate_subexp): Use it.
4185 2021-03-08 Tom Tromey <tom@tromey.com>
4187 * ada-lang.c (ada_abs): New function.
4188 (ada_evaluate_subexp): Use it.
4190 2021-03-08 Tom Tromey <tom@tromey.com>
4192 * ada-lang.c (ada_atr_size): New function.
4193 (ada_evaluate_subexp): Use it.
4195 2021-03-08 Tom Tromey <tom@tromey.com>
4197 * ada-lang.c (ada_atr_tag): New function.
4198 (ada_evaluate_subexp): Use it.
4200 2021-03-08 Tom Tromey <tom@tromey.com>
4202 * ada-lang.c (ada_unop_in_range): New function.
4203 (ada_evaluate_subexp): Use it.
4205 2021-03-08 Tom Tromey <tom@tromey.com>
4207 * ada-lang.c (ada_unop_neg): New function.
4208 (ada_evaluate_subexp): Use it.
4210 2021-03-08 Tom Tromey <tom@tromey.com>
4212 * ada-lang.c (eval_ternop_in_range): New function.
4213 (ada_evaluate_subexp): Use it.
4215 2021-03-08 Tom Tromey <tom@tromey.com>
4217 * opencl-lang.c (eval_opencl_assign): New function.
4218 (evaluate_subexp_opencl): Use it.
4220 2021-03-08 Tom Tromey <tom@tromey.com>
4222 * eval.c (eval_op_objc_msgcall): New function.
4223 (evaluate_subexp_standard): Use it.
4225 2021-03-08 Tom Tromey <tom@tromey.com>
4227 * eval.c (eval_binop_assign_modify): New function.
4228 (evaluate_subexp_standard): Use it.
4230 2021-03-08 Tom Tromey <tom@tromey.com>
4232 * m2-lang.c (eval_op_m2_subscript): New function.
4233 (evaluate_subexp_modula2): Use it.
4235 2021-03-08 Tom Tromey <tom@tromey.com>
4237 * m2-lang.c (eval_op_m2_high): New function.
4238 (evaluate_subexp_modula2): Use it.
4240 2021-03-08 Tom Tromey <tom@tromey.com>
4242 * eval.c (evaluate_subexp_for_address_base): New function.
4243 (evaluate_subexp_for_address): Use it.
4244 (evaluate_subexp_for_sizeof_base): New function.
4245 (evaluate_subexp_for_sizeof): Use it.
4247 2021-03-08 Tom Tromey <tom@tromey.com>
4249 * rust-lang.c (eval_op_rust_structop): New function.
4250 (rust_evaluate_subexp): Use it.
4252 2021-03-08 Tom Tromey <tom@tromey.com>
4254 * rust-lang.c (eval_op_rust_struct_anon): New function.
4255 (rust_evaluate_subexp): Use it.
4257 2021-03-08 Tom Tromey <tom@tromey.com>
4259 * rust-lang.c (eval_op_rust_array): New function.
4260 (rust_evaluate_subexp): Use it.
4262 2021-03-08 Tom Tromey <tom@tromey.com>
4264 * rust-lang.c (eval_op_rust_complement): New function.
4265 (rust_evaluate_subexp): Use it.
4267 2021-03-08 Tom Tromey <tom@tromey.com>
4269 * rust-lang.c (eval_op_rust_ind): New function.
4270 (rust_evaluate_subexp): Use it.
4272 2021-03-08 Tom Tromey <tom@tromey.com>
4274 * rust-lang.c (rust_subscript): Change parameters.
4275 (rust_evaluate_subexp): Update.
4277 2021-03-08 Tom Tromey <tom@tromey.com>
4279 * rust-lang.c (rust_range): Change parameters.
4280 (rust_evaluate_subexp): Update.
4282 2021-03-08 Tom Tromey <tom@tromey.com>
4284 * f-lang.c (eval_op_f_allocated): New function.
4285 (evaluate_subexp_f): Use it.
4287 2021-03-08 Tom Tromey <tom@tromey.com>
4289 * f-lang.c (fortran_require_array): New function.
4290 (evaluate_subexp_f): Use it.
4292 2021-03-08 Tom Tromey <tom@tromey.com>
4294 * f-lang.c (eval_op_f_kind): New function.
4295 (evaluate_subexp_f): Use it.
4297 2021-03-08 Tom Tromey <tom@tromey.com>
4299 * f-lang.c (eval_op_f_cmplx): New function.
4300 (evaluate_subexp_f): Use it.
4302 2021-03-08 Tom Tromey <tom@tromey.com>
4304 * f-lang.c (eval_op_f_modulo): New function.
4305 (evaluate_subexp_f): Use it.
4307 2021-03-08 Tom Tromey <tom@tromey.com>
4309 * f-lang.c (eval_op_f_floor): New function.
4310 (evaluate_subexp_f): Use it.
4312 2021-03-08 Tom Tromey <tom@tromey.com>
4314 * f-lang.c (eval_op_f_ceil): New function.
4315 (evaluate_subexp_f): Use it.
4317 2021-03-08 Tom Tromey <tom@tromey.com>
4319 * f-lang.c (eval_op_f_mod): New function.
4320 (evaluate_subexp_f): Use it.
4322 2021-03-08 Tom Tromey <tom@tromey.com>
4324 * f-lang.c (eval_op_f_abs): New function.
4325 (evaluate_subexp_f): Use it.
4327 2021-03-08 Tom Tromey <tom@tromey.com>
4329 * eval.c (eval_op_type): New function.
4330 (evaluate_subexp_standard): Use it.
4332 2021-03-08 Tom Tromey <tom@tromey.com>
4334 * eval.c (eval_op_postdec): New function.
4335 (evaluate_subexp_standard): Use it.
4337 2021-03-08 Tom Tromey <tom@tromey.com>
4339 * eval.c (eval_op_postinc): New function.
4340 (evaluate_subexp_standard): Use it.
4342 2021-03-08 Tom Tromey <tom@tromey.com>
4344 * eval.c (eval_op_predec): New file.
4345 (evaluate_subexp_standard): Use it.
4347 2021-03-08 Tom Tromey <tom@tromey.com>
4349 * eval.c (eval_op_preinc): New function.
4350 (evaluate_subexp_standard): Use it.
4352 2021-03-08 Tom Tromey <tom@tromey.com>
4354 * eval.c (eval_op_memval): New function.
4355 (evaluate_subexp_standard): Use it.
4357 2021-03-08 Tom Tromey <tom@tromey.com>
4359 * eval.c (eval_op_alignof): New function.
4360 (evaluate_subexp_standard): Use it.
4362 2021-03-08 Tom Tromey <tom@tromey.com>
4364 * eval.c (eval_op_ind): New function.
4365 (evaluate_subexp_standard): Use it.
4367 2021-03-08 Tom Tromey <tom@tromey.com>
4369 * eval.c (eval_op_lognot): New function.
4370 (evaluate_subexp_standard): Use it.
4372 2021-03-08 Tom Tromey <tom@tromey.com>
4374 * eval.c (eval_op_complement): New function.
4375 (evaluate_subexp_standard): Use it.
4377 2021-03-08 Tom Tromey <tom@tromey.com>
4379 * eval.c (eval_op_neg): New function.
4380 (evaluate_subexp_standard): Use it.
4382 2021-03-08 Tom Tromey <tom@tromey.com>
4384 * eval.c (eval_op_plus): New function.
4385 (evaluate_subexp_standard): Use it.
4387 2021-03-08 Tom Tromey <tom@tromey.com>
4389 * eval.c (eval_op_repeat): New function.
4390 (evaluate_subexp_standard): Use it.
4392 2021-03-08 Tom Tromey <tom@tromey.com>
4394 * eval.c (eval_op_leq): New function.
4395 (evaluate_subexp_standard): Use it.
4397 2021-03-08 Tom Tromey <tom@tromey.com>
4399 * eval.c (eval_op_geq): New function.
4400 (evaluate_subexp_standard): Use it.
4402 2021-03-08 Tom Tromey <tom@tromey.com>
4404 * eval.c (eval_op_gtr): New function.
4405 (evaluate_subexp_standard): Use it.
4407 2021-03-08 Tom Tromey <tom@tromey.com>
4409 * eval.c (eval_op_less): New function.
4410 (evaluate_subexp_standard): Use it.
4412 2021-03-08 Tom Tromey <tom@tromey.com>
4414 * eval.c (eval_op_notequal): New function.
4415 (evaluate_subexp_standard): Use it.
4417 2021-03-08 Tom Tromey <tom@tromey.com>
4419 * eval.c (eval_op_equal): New function.
4420 (evaluate_subexp_standard): Use it.
4422 2021-03-08 Tom Tromey <tom@tromey.com>
4424 * eval.c (eval_op_subscript): New function.
4425 (evaluate_subexp_standard): Use it.
4427 2021-03-08 Tom Tromey <tom@tromey.com>
4429 * eval.c (eval_op_binary): New function.
4430 (evaluate_subexp_standard): Use it.
4432 2021-03-08 Tom Tromey <tom@tromey.com>
4434 * eval.c (eval_op_sub): New function.
4435 (evaluate_subexp_standard): Use it.
4437 2021-03-08 Tom Tromey <tom@tromey.com>
4439 * eval.c (eval_op_add): New function.
4440 (evaluate_subexp_standard): Use it.
4442 2021-03-08 Tom Tromey <tom@tromey.com>
4444 * eval.c (eval_op_member): New function.
4445 (evaluate_subexp_standard): Use it.
4447 2021-03-08 Tom Tromey <tom@tromey.com>
4449 * eval.c (eval_op_structop_ptr): New function.
4450 (evaluate_subexp_standard): Use it.
4452 2021-03-08 Tom Tromey <tom@tromey.com>
4454 * eval.c (eval_op_structop_struct): New function.
4455 (evaluate_subexp_standard): Use it.
4457 2021-03-08 Tom Tromey <tom@tromey.com>
4459 * eval.c (eval_op_ternop): New function.
4460 (evaluate_subexp_standard): Use it.
4462 2021-03-08 Tom Tromey <tom@tromey.com>
4464 * eval.c (eval_op_concat): New function.
4465 (evaluate_subexp_standard): Use it.
4467 2021-03-08 Tom Tromey <tom@tromey.com>
4469 * eval.c (eval_op_objc_selector): New function.
4470 (evaluate_subexp_standard): Use it.
4472 2021-03-08 Tom Tromey <tom@tromey.com>
4474 * eval.c (eval_op_string): New function.
4475 (evaluate_subexp_standard): Use it.
4477 2021-03-08 Tom Tromey <tom@tromey.com>
4479 * eval.c (eval_op_register): New function.
4480 (evaluate_subexp_standard): Use it.
4482 2021-03-08 Tom Tromey <tom@tromey.com>
4484 * eval.c (eval_op_func_static_var): New function.
4485 (evaluate_subexp_standard): Use it.
4487 2021-03-08 Tom Tromey <tom@tromey.com>
4489 * eval.c (eval_op_var_msym_value): New function.
4490 (evaluate_subexp_standard): Use it.
4492 2021-03-08 Tom Tromey <tom@tromey.com>
4494 * eval.c (eval_op_var_entry_value): New function.
4495 (evaluate_subexp_standard): Use it.
4497 2021-03-08 Tom Tromey <tom@tromey.com>
4499 * eval.c (eval_op_scope): New function.
4500 (evaluate_subexp_standard): Use it.
4502 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4505 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4507 2021-03-06 Tom Tromey <tom@tromey.com>
4509 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4510 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4511 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4512 (locate_dwz_sections, dwz_search_other_debugdirs)
4513 (dwarf2_get_dwz_file): Move to dwz.c.
4514 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4516 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4517 (dwarf2_get_dwz_file): Move from read.c.
4519 2021-03-06 Tom Tromey <tom@tromey.com>
4521 * debuginfod-support.h: Include scoped_fd.h.
4523 2021-03-06 Tom Tromey <tom@tromey.com>
4525 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4526 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4527 (get_abbrev_section_for_cu, read_attribute_value)
4528 (get_debug_line_section): Update.
4529 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4531 2021-03-06 Tom Tromey <tom@tromey.com>
4533 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4535 * dwarf2/read.c (section_is_p): Remove.
4536 (dwarf2_per_bfd::locate_sections)
4537 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4538 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4539 (dwarf2_locate_common_dwp_sections)
4540 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4543 2021-03-06 Tom Tromey <tom@tromey.com>
4545 * xcoffread.c: Include sect-names.h.
4546 * symfile.h (struct dwarf2_section_names, struct
4547 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4548 * dwarf2/sect-names.h: New file, from symfile.h.
4549 * dwarf2/read.c: Include sect-names.h.
4551 2021-03-06 Tom Tromey <tom@tromey.com>
4553 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4554 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4555 (abbrev_table::read): Update.
4556 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4557 (struct abbrev_info): Reformat.
4558 <attrs>: Now an array.
4559 (struct abbrev_table) <alloc_abbrev>: Remove.
4561 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4563 * ctfread.c (ctf_psymtab_add_enums): New function.
4564 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4566 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4568 * ctfread.c (read_func_kind_type): Set up function arguments.
4570 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4571 Andrew Burgess <andrew.burgess@embecosm.com>
4573 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4575 (riscv_csrset): New static global.
4576 (riscv_update_csrmap): New function.
4577 (riscv_iterate_over_regset_sections): Process CSRs.
4579 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4581 * riscv-tdep.c (riscv_feature_name_csr): Define.
4582 (riscv_feature_name_cpu): Define.
4583 (riscv_feature_name_fpu): Define.
4584 (riscv_feature_name_virtual): Define.
4585 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4586 (riscv_freg_feature): Use riscv_feature_name_fpu.
4587 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4588 (riscv_csr_feature): Use riscv_feature_name_csr.
4589 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4591 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4592 Craig Blackmore <craig.blackmore@embecosm.com>
4594 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4595 (ALLDEPFILES): Add riscv-none-tdep.c.
4596 * configure: Regenerate.
4597 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4599 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4600 * elf-none-tdep.c: New file.
4601 * elf-none-tdep.h: New file.
4602 * riscv-none-tdep.c: New file.
4604 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4605 Andrew Burgess <andrew.burgess@embecosm.com>
4607 * corelow.c: Add 'xml-tdesc.h' include.
4608 (core_target::read_description): Load the target description from
4609 the core file when possible.
4610 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4612 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4613 (gcore_elf_make_tdesc_note): New function.
4614 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4615 * linux-tdep.c (linux_make_corefile_notes): Add target description
4618 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4620 * Makefile.in (SFILES): Add gcore-elf.c.
4621 (HFILES_NO_SRCDIR): Add gcore-elf.h
4622 * configure: Regenerate.
4623 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4625 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4626 (struct fbsd_collect_regset_section_cb_data): Delete.
4627 (fbsd_collect_regset_section_cb): Delete.
4628 (fbsd_collect_thread_registers): Delete.
4629 (struct fbsd_corefile_thread_data): Delete.
4630 (fbsd_corefile_thread): Delete.
4631 (fbsd_make_corefile_notes): Call
4632 gcore_elf_build_thread_register_notes instead of the now deleted
4634 * gcore-elf.c: New file, the content was moved here from
4635 linux-tdep.c, functions were renamed and given minor cleanup.
4636 * gcore-elf.h: New file.
4637 * gcore.c (gcore_find_signalled_thread): Moved here from
4638 linux-tdep.c and given a new name. Minor cleanups.
4639 * gcore.h (gcore_find_signalled_thread): Declare.
4640 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4641 (struct linux_collect_regset_section_cb_data): Delete.
4642 (linux_collect_regset_section_cb): Delete.
4643 (linux_collect_thread_registers): Delete.
4644 (linux_corefile_thread): Call
4645 gcore_elf_build_thread_register_notes.
4646 (find_signalled_thread): Delete.
4647 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4649 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4652 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4653 process_stratum_target parameter,
4654 sparc_store_inferior_registers): update callers.
4655 * sparc-nat.c (sparc_fetch_inferior_registers,
4656 sparc_store_inferior_registers): Add process_stratum_target
4657 parameter. Switch current thread before calling
4658 sparc_supply_gregset / sparc_collect_rwindow.
4659 (sparc_store_inferior_registers): Likewise.
4660 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4661 (sparc32obsd_collect_uthread): Likewise.
4662 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4664 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4665 sparc64obsd_supply_uthread): Add assertion.
4667 2021-03-04 Tom Tromey <tromey@adacore.com>
4669 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4670 (aux_add_nonlocal_symbols): Update.
4671 (ada_add_block_symbols): Change "found_sym" to bool.
4673 2021-03-03 Tom Tromey <tromey@adacore.com>
4675 * ada-lang.c (ada_resolve_function): Update comment.
4676 (is_nonfunction, add_symbols_from_enclosing_procs)
4677 (remove_extra_symbols): Likewise.
4678 (struct match_data): Add constructor, initializers.
4679 (add_nonlocal_symbols): Remove memset.
4680 (aux_add_nonlocal_symbols): Update comment.
4681 (ada_add_block_renamings, add_nonlocal_symbols)
4682 (ada_add_all_symbols): Likewise.
4683 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4685 2021-03-02 Tom Tromey <tromey@adacore.com>
4687 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4688 (cast_to_gnat_encoded_fixed_point_type): Remove.
4689 (ada_value_cast, ada_evaluate_subexp): Update.
4690 (gnat_encoded_fixed_point_type_info)
4691 (ada_is_gnat_encoded_fixed_point_type)
4692 (gnat_encoded_fixed_point_delta)
4693 (gnat_encoded_fixed_point_scaling_factor): Remove.
4694 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4695 (gnat_encoded_fixed_point_delta)
4696 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4697 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4698 (ada_print_type): Update.
4699 * ada-valprint.c (ada_value_print_num): Update.
4700 * dwarf2/read.c (ada_get_gnat_encoded_number)
4701 (ada_get_gnat_encoded_ratio): New functions.
4702 (finish_fixed_point_type): Use them. Add parameters.
4703 (GNAT_FIXED_POINT_SUFFIX): New define.
4704 (gnat_encoded_fixed_point_type_info): New function.
4705 (read_base_type): Handle gnat encodings.
4707 2021-03-02 Tom Tromey <tromey@adacore.com>
4709 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4710 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4712 (GROW_VECT): Remove.
4713 (grow_vect): Remove.
4715 2021-03-02 Tom Tromey <tromey@adacore.com>
4717 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4718 * ada-lang.c (resolve_subexp): Update.
4719 (ada_resolve_function): Accept a vector.
4720 (is_nonfunction, add_defn_to_vec)
4721 (add_symbols_from_enclosing_procs): Likewise.
4722 (num_defns_collected, defns_collected): Remove.
4723 (remove_extra_symbols): Return a vector.
4724 (remove_irrelevant_renamings): Return void.
4725 (ada_add_local_symbols): Accept a vector.
4726 (struct match_data) <obstackp>: Remove.
4727 <resultp>: New member.
4728 (aux_add_nonlocal_symbols): Update.
4729 (ada_add_block_renamings, add_nonlocal_symbols)
4730 (ada_add_all_symbols): Accept a vector.
4731 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4733 (ada_lookup_symbol): Update.
4734 (ada_add_block_symbols): Accept a vector.
4735 (get_var_value, iterate_over_symbols): Update.
4736 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4739 2021-03-02 Tom Tromey <tromey@adacore.com>
4741 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4743 2021-03-02 Tom Tromey <tromey@adacore.com>
4745 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4748 (ada_pspace_data): Remove destructor.
4749 <sym_cache>: Now a unique_ptr.
4750 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4751 (ada_get_symbol_cache): Use 'new'.
4752 (ada_clear_symbol_cache): Rewrite.
4754 2021-03-02 Tom Tromey <tromey@adacore.com>
4756 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4759 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4762 * source.c (add_path): Skip empty dirnames.
4764 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4766 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4767 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4769 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4772 * target.c (target_mourn_inferior): Only compare pids in
4773 target_mourn_inferior.
4775 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4778 * remote.c (remote_target::start_remote): Ensure the single
4779 thread, automatically added for remote targets without the
4780 concept of threading, is initially in set to the "resumed"
4782 * remote.c (remote_target::add_current_inferior_and_thread):
4783 Add return value - return the main thread.
4785 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4787 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4788 (mi_tsv_created): Likewise.
4789 (mi_tsv_deleted): Likewise.
4791 2021-02-25 Tom de Vries <tdevries@suse.de>
4794 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4795 section_kind for &dwo_file->sections.info.
4797 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4800 * f-lang.c (fortran_argument_convert): Delete declaration.
4801 (fortran_prepare_argument): New function.
4802 (evaluate_subexp_f): Move logic to new function
4803 fortran_prepare_argument.
4805 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4807 * f-exp.y (f77_keywords): Add 'associated'.
4808 * f-lang.c (fortran_associated): New function.
4809 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4810 (operator_length_f): Likewise.
4811 (print_unop_or_binop_subexp_f): New function.
4812 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4813 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4814 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4815 (operator_check_f): Likewise.
4816 * std-operator.def: Add FORTRAN_ASSOCIATED.
4818 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4820 * f-exp.y (fortran_operators): Add ".xor.".
4822 2021-02-24 Tom de Vries <tdevries@suse.de>
4825 * dwarf2/attribute.c (attribute::form_is_signed): New function
4827 * dwarf2/attribute.h (attribute::as_signed): ... here.
4828 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4829 (attribute::form_is_signed): Declare.
4830 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4831 for DW_AT_decl_file.
4833 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4835 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4836 order for <sys/ptrace.h> and <asm/ptrace.h>.
4838 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4840 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4843 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4845 * exec.c (set_section_command): Move variable declarations into
4846 the function body, and use std::string instead of a fixed size
4849 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4851 * exec.c (exec_target::get_section_table): Delete member function.
4852 (section_table_read_available_memory): Use current_top_target, not
4853 just the exec_ops target.
4854 * target-delegates.c: Regenerate.
4855 * target.c (default_get_section_table): New function.
4856 * target.h (target_ops::get_section_table): Change default
4857 behaviour to call default_get_section_table.
4858 (default_get_section_table): Declare.
4860 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4862 * exec.c (exec_target::close): Call new clear_target_sections
4864 (program_space::add_target_sections): Update name of member
4866 (program_space::add_target_sections): Update name of member
4868 (program_space::remove_target_sections): Likewise.
4869 (exec_one_fork): Use new target_sections member function.
4870 (exec_target::get_section_table): Likewise.
4871 (exec_target::files_info): Likewise.
4872 (set_section_command): Likewise.
4873 (exec_set_section_address): Likewise.
4874 (exec_target::has_memory): Use new target_sections member
4876 * progspace.h (program_space::clear_target_sections): New member
4878 (program_space::target_sections): Rename member variable to
4879 m_target_sections, replace with a new member function.
4880 (program_space::m_target_sections): New member variable.
4881 * solib-dsbt.c (scan_dyntag): Use new member function.
4882 * solib-svr4.c (scan_dyntag): Likewise.
4884 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4886 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4888 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4889 (section_table_read_available_memory): Make local const.
4890 (exec_target::xfer_partial): Make local const.
4891 (print_section_info): Make parameter const.
4892 * gdb/exec.h (print_section_info): Likewise.
4893 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4895 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4897 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4899 * gdb/s390-tdep.c (s390_load): Likewise.
4900 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4901 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4902 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4904 (target_debug_print_const_target_section_table_p): ...this.
4905 * gdb/target-delegates.c: Regenerate.
4906 * gdb/target.c (target_get_section_table): Make return type const.
4907 (target_section_by_addr): Likewise. Also make some locals const.
4908 (memory_xfer_partial_1): Make some locals const.
4909 * gdb/target.h (struct target_ops) <get_section_table>: Make
4911 (target_section_by_addr): Likewise.
4912 (target_get_section_table): Likewise.
4914 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4916 * NEWS: Mention new 'maint info target-sections' command.
4917 * maint.c (maintenance_info_target_sections): New function.
4918 (_initialize_maint_cmds): Register new command.
4920 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4922 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4923 (riscv_features_from_bfd): ...this. Change parameter type to
4924 'bfd*', and update as required.
4925 (riscv_find_default_target_description): Update call to
4926 riscv_features_from_bfd. Select a default xlen based on
4928 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4930 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4932 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4933 dynamic types in UNOP_IND.
4935 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4938 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4940 (~dwarf2_queue_guard): Clear queue.
4941 (queue_comp_unit): Assert that queue is
4943 (process_queue): Adjust.
4944 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4946 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4949 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4950 to decide whether or not to enqueue it for expansion.
4951 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4952 after calling maybe_queue_comp_unit.
4954 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4956 * linux-nat.c (linux_nat_filter_event): Return void.
4958 2021-02-22 Tom Tromey <tromey@adacore.com>
4960 * solib-svr4.c (enable_break): Update.
4961 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4963 (target_bfd_reopen): Change parameter type.
4964 * bfd-target.h (target_bfd_reopen): Change parameter type.
4966 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4968 * thread.c (add_thread_silent): Add assert.
4969 (find_thread_ptid): Add assert.
4971 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4974 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4975 (target_unpush_up): Likewise.
4976 * procfs.c (procfs_target::attach): Push target early. Use
4977 target_unpush_up to unpush target in case of error.
4978 * target.h (struct target_unpusher): Move here.
4979 (target_unpush_up): Likewise.
4981 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4983 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4984 (which in turn includes <gnulib/config.h>) before include
4987 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4990 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4991 (decode_j_type_insn): Likewise.
4992 (decode_cj_type_insn): Likewise.
4993 (decode_b_type_insn): Likewise.
4996 2021-02-18 Tom Tromey <tom@tromey.com>
4998 * expression.h (struct expression) <evaluate>: Declare method.
4999 * eval.c (evaluate_subexp): Simplify.
5000 (expression::evaluate): New method.
5001 (evaluate_expression, evaluate_type): Use expression::evaluate.
5003 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5005 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5007 (ada_lookup_name_info): Likewise.
5009 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5011 * aclocal.m4: Regenerate.
5013 2021-02-12 Tom de Vries <tdevries@suse.de>
5016 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5017 (lin_thread_signals): New static var.
5018 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5020 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5021 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5023 * linux-thread-db.c (check_thread_signals): Use
5024 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5026 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5028 * f-exp.y (f77_keywords): Add allocated.
5029 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5030 (operator_length_f): Likewise.
5031 (print_subexp_f): Likewise.
5032 (dump_subexp_body_f): Likewise.
5033 (operator_check_f): Likewise.
5034 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5036 2021-02-11 Tom de Vries <tdevries@suse.de>
5039 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5040 Return true for DW_FORM_strx.
5042 2021-02-11 Tom Tromey <tromey@adacore.com>
5045 * parse.c (write_exp_symbol_reference): Write sym.block.
5047 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5049 * NEWS: Mention changes to 'maint info sections'.
5050 * maint.c (match_substring): Return a bool, fix whitespace issue.
5051 (struct single_bfd_flag_info): New struct.
5052 (bfd_flag_info): New static global.
5053 (match_bfd_flags): Return a bool, use bfd_flag_info.
5054 (print_bfd_flags): Use bfd_flag_info.
5055 (maint_print_section_info): Delete trailing whitespace.
5056 (struct maint_info_sections_opts): New struct.
5057 (maint_info_sections_option_defs): New static global.
5058 (maint_info_sections_completer): New function.
5059 (maintenance_info_sections): Use option parsing mechanism.
5060 (_initialize_maint_cmds): Update command help text for 'maint info
5061 sections' and register a command completer.
5063 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5065 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5066 functionality merged into...
5067 (maint_print_all_sections): ...this new function.
5068 (maintenance_info_sections): Make use of maint_print_all_sections,
5069 allow all objects to be printed even where there's no executable.
5071 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5073 * breakpoint.c (resolve_sal_pc): Make use of
5074 bound_minimal_symbol::obj_section.
5075 * maint.c (maintenance_translate_address): Likewise.
5076 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5077 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5079 * printcmd.c (info_address_command): Make use of
5080 bound_minimal_symbol::obj_section.
5082 2021-02-11 Alan Modra <amodra@gmail.com>
5084 * arm-symbian-tdep.c: Delete.
5085 * NEWS: Mention arm-symbian removal.
5086 * Makefile.in: Remove arm-symbian-tdep entries.
5087 * configure.tgt: Remove arm*-*-symbianelf*.
5088 * doc/gdb.texinfo: Remove mention of SymbianOS.
5089 * osabi.c (gdb_osabi_names): Remove "Symbian".
5090 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5091 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5092 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5094 * testsuite/gdb.base/dup-sect.exp: Likewise.
5095 * testsuite/gdb.base/long_long.exp: Likewise.
5096 * testsuite/gdb.base/solib-weak.exp: Likewise.
5097 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5098 * testsuite/gdb.python/py-section-script.exp: Likewise.
5099 * testsuite/lib/dwarf.exp: Likewise.
5100 * testsuite/lib/gdb.exp: Likewise.
5102 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5104 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5105 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5106 (one_or_two_args): New pattern.
5107 (f77_keywords): Add lbound and ubound.
5108 * f-lang.c (fortran_bounds_all_dims): New function.
5109 (fortran_bounds_for_dimension): New function.
5110 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5111 (operator_length_f): Likewise.
5112 (print_subexp_f): Likewise.
5113 (dump_subexp_body_f): Likewise.
5114 (operator_check_f): Likewise.
5115 * std-operator.def (FORTRAN_LBOUND): Define.
5116 (FORTRAN_UBOUND): Define.
5118 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5120 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5121 and set_section_index member functions where appropriate.
5122 * coffread.c (coff_symtab_read): Likewise.
5123 (process_coff_symbol): Likewise.
5124 * ctfread.c (set_symbol_address): Likewise.
5125 * dwarf2/read.c (add_partial_symbol): Likewise.
5126 (var_decode_location): Likewise.
5127 * language.c: Likewise.
5128 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5129 (compact_minimal_symbols): Likewise.
5130 (minimal_symbol_upper_bound): Likewise.
5131 * objfiles.c (relocate_one_symbol): Likewise.
5132 * psympriv.h (partial_symbol::obj_section): Likewise.
5133 (partial_symbol::address): Likewise.
5134 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5135 * stabsread.c (scan_file_globals): Likewise.
5136 * symmisc.c (dump_msymbols): Likewise.
5137 * symtab.c (general_symbol_info::obj_section): Likewise.
5138 (fixup_section): Likewise.
5139 (get_msymbol_address): Likewise.
5140 * symtab.h (general_symbol_info::section): Rename to...
5141 (general_symbol_info::m_section): ...this.
5142 (general_symbol_info::set_section_index): New member function.
5143 (general_symbol_info::section_index): Likewise.
5144 (SYMBOL_SECTION): Delete.
5145 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5146 set_section_index member functions where appropriate.
5147 (MSYMBOL_SECTION): Delete.
5148 (symbol::symbol): Update to initialize 'm_section'.
5149 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5150 (process_xcoff_symbol): Likewise.
5152 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5154 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5155 MSYMBOL_OBJ_SECTION.
5156 * findvar.c (language_defn::read_var_value): Likewise.
5157 * infcmd.c (jump_command): Likewise.
5158 * linespec.c (minsym_found): Likewise.
5159 * maint.c (maintenance_translate_address): Likewise.
5160 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5161 (minimal_symbol_upper_bound): Likewise.
5162 * parse.c (find_minsym_type_and_address): Likewise.
5163 (operator_check_standard): Likewise.
5164 * printcmd.c (info_address_command): Likewise.
5165 * symmisc.c (dump_msymbols): Likewise.
5166 (print_symbol): Likewise.
5167 * symtab.c (general_symbol_info::obj_section): Define new
5169 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5170 (find_pc_sect_compunit_symtab): Likewise.
5171 (find_function_start_sal): Likewise.
5172 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5173 MSYMBOL_OBJ_SECTION.
5174 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5176 (SYMBOL_OBJ_SECTION): Delete.
5177 (MSYMBOL_OBJ_SECTION): Delete.
5179 2021-02-09 Tom Tromey <tom@tromey.com>
5181 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5183 2021-02-09 Tom de Vries <tdevries@suse.de>
5186 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5187 construct an array type. Add assert to ensure that element_type is
5190 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5192 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5193 (gcore_collect_regset_section_cb): Delete.
5194 (gcore_collect_thread_registers): Delete.
5195 (gcore_build_thread_register_notes): Delete.
5196 (gcore_find_signalled_thread): Delete.
5197 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5198 'gdbarch' and 'thread_info' declarations.
5199 (gcore_build_thread_register_notes): Delete declaration.
5200 (gcore_find_signalled_thread): Likewise.
5201 * fbsd-tdep.c: Remove 'gcore.h' include.
5202 (struct fbsd_collect_regset_section_cb_data): New struct.
5203 (fbsd_collect_regset_section_cb): New function.
5204 (fbsd_collect_thread_registers): New function.
5205 (struct fbsd_corefile_thread_data): New struct.
5206 (fbsd_corefile_thread): New function.
5207 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5208 * linux-tdep.c: Remove 'gcore.h' include.
5209 (struct linux_collect_regset_section_cb_data): New struct.
5210 (linux_collect_regset_section_cb): New function.
5211 (linux_collect_thread_registers): New function.
5212 (linux_corefile_thread): Call Linux specific code.
5213 (find_signalled_thread): New function.
5214 (linux_make_corefile_notes): Call find_signalled_thread.
5216 2021-02-09 Tom Tromey <tromey@adacore.com>
5218 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5220 * value.c (value_contents_copy_raw): Now static.
5221 * value.h (value_contents_copy_raw): Don't declare.
5223 2021-02-09 Tom Tromey <tromey@adacore.com>
5225 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5228 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5231 * arc-linux-tdep.c (handle_atomic_sequence): New.
5232 (arc_linux_software_single_step): Call handle_atomic_sequence().
5234 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5236 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5238 (REQUIRE_WINDOW): Call is_valid member function.
5239 (REQUIRE_WINDOW_FOR_SETTER): New define.
5240 (gdbpy_tui_is_valid): Call is_valid member function.
5241 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5242 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5244 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5245 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5248 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5250 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5251 for the title is not nullptr.
5253 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5255 * tui-layout.c (saved_tui_windows): Delete.
5256 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5257 call new get_windows member function instead.
5258 (tui_get_window_by_name): Check in tui_windows.
5259 (tui_layout_window::apply): Don't add to tui_windows.
5260 * tui-layout.h (tui_layout_base::get_windows): New member function.
5261 (tui_layout_window::get_windows): Likewise.
5262 (tui_layout_split::get_windows): Likewise.
5264 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5266 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5267 of the window objects.
5269 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5271 * python/python.c (gdbpy_print_stack): Reformat an error message.
5273 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5275 * tui/tui-interp.c (tui_command_line_handler): New function.
5276 (tui_interp::resume): Register tui_command_line_handler as the
5278 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5280 (tui_getc_1): Delete handling of '\n' and '\r'.
5281 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5283 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5285 * tui/tui-regs.c (tui_data_window::display_registers_from):
5286 Mark invisible register sub windows.
5287 (tui_data_window::check_register_values): Ignore invisible
5288 register sub windows.
5290 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5292 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5293 n_spaces with a negative value.
5295 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5297 * tui/tui-regs.c (tui_data_window::display_registers_from):
5298 Add refresh_window call.
5300 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5302 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5304 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5306 * symmisc.c (std_in, std_out, std_err): Remove.
5307 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5309 2021-02-05 Tom de Vries <tdevries@suse.de>
5311 PR breakpoints/27330
5312 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5313 glibc object file has debug info.
5315 2021-02-05 Tom de Vries <tdevries@suse.de>
5318 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5320 2021-02-05 Tom de Vries <tdevries@suse.de>
5322 PR breakpoints/27313
5323 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5326 2021-02-05 Tom Tromey <tom@tromey.com>
5328 * compile/compile-c-support.c (get_compile_context)
5329 (c_get_compile_context, cplus_get_compile_context): Change return
5331 * language.c (language_defn::get_compile_instance): New method.
5332 * language.h (language_defn::get_compile_instance): Change return
5333 type. No longer inline.
5334 * c-lang.c (c_language::get_compile_instance): Change return type.
5335 (cplus_language::get_compile_instance): Change return type.
5336 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5338 * compile/compile.c (compile_to_object): Update.
5340 2021-02-05 Tom Tromey <tom@tromey.com>
5342 * parser-defs.h (write_exp_symbol_reference): Declare.
5343 * parse.c (write_exp_symbol_reference): New function.
5344 * p-exp.y (variable): Use write_exp_symbol_reference.
5345 * m2-exp.y (variable): Use write_exp_symbol_reference.
5346 * f-exp.y (variable): Use write_exp_symbol_reference.
5347 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5348 * c-exp.y (variable): Use write_exp_symbol_reference.
5350 2021-02-05 Tom de Vries <tdevries@suse.de>
5353 * valarith.c (complex_binop): Throw an error if complex type can't
5356 2021-02-05 Tom de Vries <tdevries@suse.de>
5359 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5362 2021-02-05 Tom de Vries <tdevries@suse.de>
5364 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5366 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5368 * configure.tgt (riscv*-*-*): Set gdb_sim.
5370 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5372 * target.c (target_is_non_stop_p): Return bool.
5373 * target.h (target_is_non_stop_p): Return bool.
5375 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5377 * record-full.c (record_full_async_inferior_event_handler):
5378 Don't clear async event handler.
5379 (record_full_base_target::wait): Clear async event handler at
5382 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5384 * record-btrace.c (record_btrace_handle_async_inferior_event):
5385 Don't clear async event handler.
5386 (record_btrace_target::wait): Clear async event handler at
5389 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5391 * remote.c (remote_target::wait): Clear async event handler at
5392 beginning, mark if needed at the end.
5393 (remote_async_inferior_event_handler): Don't set or clear async
5396 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5398 * async-event.h (async_event_handler_func): Add documentation.
5399 * async-event.c (check_async_event_handlers): Don't clear
5400 async_event_handler ready flag.
5401 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5403 * record-btrace.c (record_btrace_handle_async_inferior_event):
5405 * record-full.c (record_full_async_inferior_event_handler):
5407 * remote-notif.c (remote_async_get_pending_events_handler):
5409 * remote.c (remote_async_inferior_event_handler): Likewise.
5411 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5413 * infrun.c (handle_inferior_event): Move stop_soon variable to
5416 2021-02-03 Pedro Alves <pedro@palves.net>
5418 * infcmd.c (detach_command): Hold strong reference to target, and
5419 if all-stop on entry, restart threads on exit.
5420 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5421 (restart_stepped_thread): ... this new function. Also handle
5423 (restart_after_all_stop_detach): New function.
5424 * infrun.h (restart_after_all_stop_detach): Declare.
5426 2021-02-03 Pedro Alves <pedro@palves.net>
5428 * infrun.c (struct step_over_info): Initialize fields.
5429 (prepare_for_detach): Handle ongoing in-line step over.
5431 2021-02-03 Pedro Alves <pedro@palves.net>
5433 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5435 * remote.c (remote_target::remote_detach_1): ... and here ...
5436 * target.c (target_detach): ... instead of here.
5437 * target.h (target_ops::detach): Add comment.
5439 2021-02-03 Pedro Alves <pedro@palves.net>
5441 * infrun.c (struct wait_one_event): Move higher up.
5442 (prepare_for_detach): Abort in-progress displaced steps instead of
5443 letting them complete.
5444 (handle_one): If the inferior is detaching, don't add the thread
5445 back to the global step-over chain.
5446 (restart_threads): Don't restart threads if detaching.
5447 (handle_signal_stop): Remove inferior::detaching reference.
5449 2021-02-03 Pedro Alves <pedro@palves.net>
5451 * infrun.c (prepare_for_detach): Don't release scoped_restore
5454 2021-02-03 Pedro Alves <pedro@palves.net>
5456 * infrun.c (handle_one): New function, factored out from ...
5457 (stop_all_threads): ... here.
5459 2021-02-03 Pedro Alves <pedro@palves.net>
5461 * remote.c (remote_notif_stop_ack): Don't error out on
5462 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5463 (remote_target::discard_pending_stop_replies): Don't delete
5464 in-flight notification; instead, clear its contents.
5466 2021-02-03 Pedro Alves <pedro@palves.net>
5468 * remote.c (extended_remote_target::attach): Set target async in
5469 the target-non-stop path too.
5471 2021-02-03 Pedro Alves <pedro@palves.net>
5474 * infrun.c (handle_signal_stop): Move main context_switch call
5475 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5477 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5479 * NEWS (Changed commands): Add entry for the behavior change of
5480 the inferior command.
5481 * inferior.c (inferior_command): When no argument is given to the
5482 inferior command, display info about the currently selected
5485 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5487 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5489 (read_attribute_reprocess): Adjust.
5491 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5493 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5494 <gnu_ranges_base>: ... this...
5495 <rnglists_base>: ... and this.
5496 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5497 <gnu_ranges_base>: ... this...
5498 <rnglists_base>: ... and this.
5499 (read_cutu_die_from_dwo): Adjust
5500 (dwarf2_get_pc_bounds): Adjust
5501 (dwarf2_record_block_ranges): Adjust.
5502 (read_full_die_1): Adjust
5503 (partial_die_info::read): Adjust.
5504 (read_rnglist_index): Adjust.
5506 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5509 * dwarf2/read.c (read_loclists_rnglists_header): Add
5510 header_offset parameter and use it.
5511 (read_loclist_index): Read header of the current contribution,
5512 not the one at the beginning of the section.
5513 (read_rnglist_index): Likewise.
5515 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5518 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5519 requires_reprocessing flag.
5520 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5522 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5523 and DW_FORM_loclistx.
5524 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5525 instead of set_address for DW_FORM_loclistx and
5528 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5530 * dwarf2/read.c (read_loclist_index): Remove bound check for
5532 (read_rnglist_index): Likewise.
5534 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5536 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5539 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5541 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5543 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5545 * dwarf2/read.c (read_loclist_index): Change complaints into
5548 2021-02-02 Tom de Vries <tdevries@suse.de>
5551 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5554 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5556 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5557 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5558 here from linux-tdep.c and given a new name. Minor cleanups.
5559 (gcore_collect_regset_section_cb): Likewise.
5560 (gcore_collect_thread_registers): Likewise.
5561 (gcore_build_thread_register_notes): Likewise.
5562 (gcore_find_signalled_thread): Likewise.
5563 * gcore.h (gcore_build_thread_register_notes): Declare.
5564 (gcore_find_signalled_thread): Declare.
5565 * fbsd-tdep.c: Add 'gcore.h' include.
5566 (struct fbsd_collect_regset_section_cb_data): Delete.
5567 (fbsd_collect_regset_section_cb): Delete.
5568 (fbsd_collect_thread_registers): Delete.
5569 (struct fbsd_corefile_thread_data): Delete.
5570 (fbsd_corefile_thread): Delete.
5571 (fbsd_make_corefile_notes): Call
5572 gcore_build_thread_register_notes instead of the now deleted
5574 * linux-tdep.c: Add 'gcore.h' include.
5575 (struct linux_collect_regset_section_cb_data): Delete.
5576 (linux_collect_regset_section_cb): Delete.
5577 (linux_collect_thread_registers): Delete.
5578 (linux_corefile_thread): Call
5579 gcore_build_thread_register_notes.
5580 (find_signalled_thread): Delete.
5581 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5583 2021-01-29 Tom de Vries <tdevries@suse.de>
5585 PR breakpoints/26063
5586 * infrun.c (process_event_stop_test): Reset
5587 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5590 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5592 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5593 assert. Extend the header comment.
5595 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5597 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5598 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5599 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5600 (tui_locator_win_info_ptr): Delete declaration.
5601 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5602 (tui_disasm_window::set_contents): Fetch state from tui_location
5604 (tui_get_begin_asm_address): Likewise.
5605 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5607 (get_locator_window): Delete.
5608 (initialize_known_windows): Treat locator window just like all the
5610 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5611 (tui_source_window::set_contents): Fetch state from tui_location
5613 (tui_source_window::showing_source_p): Likewise.
5614 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5616 (tui_locator_win_info_ptr): Delete.
5617 (tui_locator_window::make_status_line): Fetch state from
5618 tui_location global.
5619 (tui_locator_window::rerender): Remove check of 'handle',
5620 reindent function body.
5621 (tui_locator_window::set_locator_fullname): Delete.
5622 (tui_locator_window::set_locator_info): Delete.
5623 (tui_update_locator_fullname): Delete.
5624 (tui_show_frame_info): Likewise.
5625 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5626 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5627 tui/tui-location.h and renamed to
5628 tui_location_tracker::set_location.
5629 (tui_locator_window::set_locator_fullname): Moved to
5630 tui/tui-location.h and renamed to
5631 tui_location_tracker::set_fullname.
5632 (tui_locator_window::full_name): Delete.
5633 (tui_locator_window::proc_name): Delete.
5634 (tui_locator_window::line_no): Delete.
5635 (tui_locator_window::addr): Delete.
5636 (tui_locator_window::gdbarch): Delete.
5637 (tui_update_locator_fullname): Delete declaration.
5638 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5640 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5641 (tui_display_main): Call function on tui_location directly.
5642 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5643 * tui/tui-location.c: New file.
5644 * tui/tui-location.h: New file.
5646 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5648 * gdbtypes.h (get_type_arch): Rename to...
5649 (struct type) <arch>: ... this, update all users.
5651 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5653 * gdbtypes.h (struct type) <arch>: Rename to...
5654 <arch_owner>: ... this, update all users.
5655 <objfile>: Rename to...
5656 <objfile_owner>: ... this, update all users.
5658 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5660 * gdbcmd.h (execute_command_to_string): Update comment.
5661 * top.c (execute_command_to_string): Update header comment.
5663 2021-01-28 Tom de Vries <tdevries@suse.de>
5665 PR breakpoints/27205
5666 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5667 (create_longjmp_master_breakpoint_names): New function, factored out
5669 (create_longjmp_master_breakpoint): ... here. Only try to install
5670 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5671 breakpoint in libc.so failed.
5673 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5676 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5677 unique_ptr is released when the wrapped pointer is kept for later
5680 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5682 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5683 BLR and BR instructions.
5684 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5685 (enum aarch64_masks): New.
5687 2021-01-26 Tom Tromey <tromey@adacore.com>
5689 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5690 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5691 (windows_init_thread_list, windows_nat::handle_load_dll)
5692 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5693 (windows_nat_target::resume)
5694 (windows_nat_target::get_windows_debug_event)
5695 (windows_nat_target::interrupt, windows_xfer_memory)
5696 (windows_nat_target::close): Update.
5697 * nat/windows-nat.c (DEBUG_EVENTS): Use
5698 debug_prefixed_printf_cond.
5699 (matching_pending_stop, fetch_pending_stop)
5700 (continue_last_debug_event): Update.
5702 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5704 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5705 elfcore_write_file_note.
5707 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5709 * arc-tdep.c (arc_add_reggroups): New function.
5710 (arc_gdbarch_init): Call arc_add_reggroups.
5712 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5714 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5716 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5717 Simon Marchi <simon.marchi@polymtl.ca>
5718 Tom de Vries <tdevries@suse.de>
5720 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5723 2021-01-25 Tom Tromey <tromey@adacore.com>
5725 * dwarf2/read.c (get_mpz): New function.
5726 (get_dwarf2_rational_constant): Use it.
5728 2021-01-25 Tom Tromey <tromey@adacore.com>
5730 * ada-lang.c (resolve_subexp): Handle array context.
5732 2021-01-23 Tom Tromey <tom@tromey.com>
5735 * compile/compile-loc2c.c (note_register): New function.
5736 (pushf_register_address, pushf_register): Use it.
5738 2021-01-23 Tom Tromey <tom@tromey.com>
5740 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5741 Change type of "registers_used".
5742 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5743 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5744 (locexpr_generate_c_location, loclist_generate_c_location): Change
5745 type of "registers_used".
5746 * compile/compile.h (compile_dwarf_expr_to_c)
5747 (compile_dwarf_bounds_to_c): Update.
5748 * compile/compile-loc2c.c (pushf_register_address)
5749 (pushf_register, do_compile_dwarf_expr_to_c)
5750 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5751 of "registers_used".
5752 * compile/compile-c.h (generate_c_for_variable_locations):
5754 * compile/compile-c-symbols.c (generate_vla_size)
5755 (generate_c_for_for_one_variable): Change type of
5757 (generate_c_for_variable_locations): Return std::vector.
5758 * compile/compile-c-support.c (generate_register_struct): Change
5759 type of "registers_used".
5762 2021-01-23 Tom Tromey <tom@tromey.com>
5764 * compile/compile-internal.h (class compile_instance)
5765 <set_arguments>: Change return type.
5766 * compile/compile.c (compile_to_object): Remove call to reset.
5767 (compile_instance::set_arguments): Change return type.
5769 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5771 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5772 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5774 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5776 * Makefile.in (SELFTESTS_SRCS): Add
5777 unittests/gdb_tilde_expand-selftests.c.
5778 * unittests/gdb_tilde_expand-selftests.c: New file.
5780 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5783 * NEWS: Mention new command.
5784 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5785 (version_style): Define.
5786 (cli_style_option::cli_style_option): Add intensity parameter, and
5788 (_initialize_cli_style): Register version style set/show commands.
5789 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5790 (version_style): Declare.
5791 * top.c (print_gdb_version): Use version_stype, and styled_string
5792 to print the GDB version string.
5794 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5796 * utils.c (emit_style_escape): Only emit an escape sequence if the
5797 requested style is different than the current applied style.
5798 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5799 current applied_style.
5800 (fputs_styled): Remove is_default check.
5801 (fputs_styled_unfiltered): Likewise.
5802 (vfprintf_styled_no_gdbfmt): Likewise.
5804 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5806 * remote.h (remote_debug_printf): New.
5807 (remote_debug_printf_nofunc): New.
5808 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5809 * remote.c: Use above macros throughout file.
5811 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5813 * remote.h (remote_debug): Change to bool.
5814 * remote.c (remote_debug): Change to bool.
5815 (_initialize_remote): Adjust.
5817 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5819 * target.h (remote_debug): Move to...
5820 * remote.h (remote_debug): ... here.
5821 * top.c (remote_debug): Move to...
5822 * remote.c (remote_debug): ... here.
5823 * remote-sim.c: Include remote.h.
5825 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5827 * cli/cli-cmds.c (show_remote_debug): Remove.
5828 (show_remote_timeout): Remove.
5829 (_initialize_cli_cmds): Don't register commands.
5830 * remote.c (show_remote_debug): Move here.
5831 (show_remote_timeout): Move here.
5832 (_initialize_remote): Register commands.
5834 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5836 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5837 type::objfile method instead.
5839 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5841 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5842 use the type::is_objfile_owned method.
5844 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5846 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5847 (TYPE_OWNER): Remove.
5848 (TYPE_OBJFILE): Adjust.
5849 (struct main_type) <flag_objfile_owned>: Rename to...
5850 <m_flag_objfile_owned>: ... this.
5851 <owner>: Rename to...
5852 <m_owner>: ... this.
5853 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5855 (TYPE_ALLOC): Adjust.
5856 * gdbtypes.c (alloc_type): Adjust.
5857 (alloc_type_arch): Adjust.
5858 (alloc_type_copy): Adjust.
5859 (get_type_arch): Adjust.
5860 (smash_type): Adjust.
5861 (lookup_array_range_type): Adjust.
5862 (recursive_dump_type): Adjust.
5863 (copy_type_recursive): Adjust.
5864 * compile/compile-c-types.c (convert_func): Adjust.
5865 (convert_type_basic): Adjust.
5866 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5869 (language_arch_info::type_and_symbol::alloc_type_symbol):
5872 2021-01-21 Luis Machado <luis.machado@linaro.org>
5874 * coffread.c (enter_linenos): Passing string to complaint.
5875 * valops.c (value_assign): Make array view.
5877 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5879 * auto-load.h (debug_auto_load): Move here.
5880 (auto_load_debug_printf): New.
5881 * auto-load.c: Use auto_load_debug_printf.
5882 (debug_auto_load): Move to header.
5883 * linux-thread-db.c (try_thread_db_load): Use
5884 auto_load_debug_printf.
5885 * main.c (captured_main_1): Likewise.
5887 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5889 * f-valprint.c (f77_array_offset_tbl): Remove.
5891 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5893 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5895 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5897 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5900 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5903 * python/py-breakpoint.c (bppy_get_location): Handle
5904 bp_hardware_breakpoint.
5905 (bppy_init): Likewise.
5906 (gdbpy_breakpoint_created): Likewise.
5908 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5910 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5912 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5914 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5915 (_initialize_gdb_bfd): Adjust.
5917 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5920 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5922 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5924 * dwarf2/read.c (follow_die_offset): Add logging.
5925 (dwarf2_per_objfile::age_comp_units): Add logging.
5927 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5929 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5930 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5931 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5932 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5933 * arm-tdep.c (struct frame_unwind): Make static.
5934 * auto-load.c (auto_load_safe_path_vec): Make static.
5935 * csky-tdep.c (csky_stub_unwind): Make static.
5936 * gdbarch.c (gdbarch_data_registry): Make static.
5937 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5938 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5939 * i386-tdep.c (i386_frame_setup_skip_insns,
5940 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5942 * infrun.c (observer_mode): Make static.
5943 * linux-nat.c (sigchld_action): Make static.
5944 * linux-thread-db.c (thread_db_list): Make static.
5945 * maint-test-options.c (maintenance_test_options_list):
5946 * mep-tdep.c (mep_csr_registers): Make static.
5947 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5948 (stats): Make static.
5949 * nat/linux-osdata.c (struct osdata_type): Make static.
5950 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5951 * progspace.c (last_program_space_num): Make static.
5952 * python/py-param.c (struct parm_constant): Remove struct type
5954 (parm_constants): Make static.
5955 * python/py-record-btrace.c (btpy_list_methods): Make static.
5956 * python/py-record.c (recpy_gap_type): Make static.
5957 * record.c (record_goto_cmdlist): Make static.
5958 * regcache.c (regcache_descr_handle): Make static.
5959 * registry.h (DEFINE_REGISTRY): Make definition static.
5960 * symmisc.c (std_in, std_out, std_err): Make static.
5961 * top.c (previous_saved_command_line): Make static.
5962 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5964 * unittests/command-def-selftests.c (nr_duplicates,
5965 nr_invalid_prefixcmd, lists): Make static.
5966 * unittests/observable-selftests.c (test_notification): Make
5968 * unittests/optional/assignment/1.cc (counter): Make static.
5969 * unittests/optional/assignment/2.cc (counter): Make static.
5970 * unittests/optional/assignment/3.cc (counter): Make static.
5971 * unittests/optional/assignment/4.cc (counter): Make static.
5972 * unittests/optional/assignment/5.cc (counter): Make static.
5973 * unittests/optional/assignment/6.cc (counter): Make static.
5975 2021-01-20 Joel Sherrill <joel@rtems.org>
5978 * remote.c (struct remote_thread_info) <resume_state>: Rename
5980 <get_resume_state>: ... this.
5981 (remote_target::resume): Adjust.
5982 (remote_target::commit_resume): Adjust.
5983 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5985 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5986 Tom Tromey <tom@tromey.com>
5988 * stap-probe.c (stap_parse_single_operand): Handle '!'
5990 (stap_parse_argument_conditionally): Likewise.
5991 Skip spaces after processing open-parenthesis sub-expression.
5992 (stap_parse_argument_1): Skip spaces after call to
5993 stap_parse_argument_conditionally.
5994 Handle case when right-side expression is a parenthesized
5996 Skip spaces after call to stap_parse_argument_1.
5998 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6000 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6002 2021-01-19 Luis Machado <luis.machado@linaro.org>
6004 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6005 memory and save data.
6006 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6007 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6008 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6009 (trad_frame_value_bytes_p): Remove.
6010 (trad_frame_reset_saved_regs): Adjust documentation.
6011 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6012 constructor and reset the state of the registers.
6013 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6014 (trad_frame_value_bytes_p, trad_frame_set_value)
6015 (trad_frame_set_realreg, trad_frame_set_addr)
6016 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6017 (trad_frame_set_reg_realreg): Update to call member function.
6018 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6019 (trad_frame_get_prev_register): Likewise.
6021 * aarch64-tdep.c (aarch64_analyze_prologue)
6022 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6023 (aarch64_prologue_prev_register): Update to use member functions.
6024 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6025 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6026 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6027 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6028 (arm_make_epilogue_frame_cache): Likewise.
6029 * avr-tdep.c (avr_frame_unwind_cache)
6030 (avr_frame_prev_register): Likewise.
6031 * cris-tdep.c (cris_scan_prologue): Likewise.
6032 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6033 * frv-tdep.c (frv_analyze_prologue): Likewise.
6034 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6035 * lm32-tdep.c (lm32_frame_cache): Likewise.
6036 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6037 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6038 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6039 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6040 (reset_saved_regs): Adjust to set realreg.
6041 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6042 call member functions.
6043 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6044 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6045 (s390_backchain_frame_unwind_cache): Likewise.
6046 * score-tdep.c (score7_analyze_prologue)
6047 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6048 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6049 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6050 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6051 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6052 * tilegx-tdep.c (tilegx_analyze_prologue)
6053 (tilegx_frame_cache): Likewise.
6054 * v850-tdep.c (v850_frame_cache): Likewise.
6055 * vax-tdep.c (vax_frame_cache): Likewise.
6057 2021-01-19 Luis Machado <luis.machado@linaro.org>
6059 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6061 (put_frame_register_bytes): Likewise.
6062 Adjust documentation.
6063 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6064 (safe_frame_unwind_memory): Likewise.
6065 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6066 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6068 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6069 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6070 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6071 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6072 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6073 * dwarf2/loc.c (rw_pieced_value): Likewise.
6074 * hppa-tdep.c (hppa_frame_cache): Likewise.
6075 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6076 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6077 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6078 (i386_linux_rt_sigtramp_start): Likewise.
6079 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6080 * i386-tdep.c (i386_register_to_value): Likewise.
6081 * i387-tdep.c (i387_register_to_value): Likewise.
6082 * ia64-tdep.c (ia64_register_to_value): Likewise.
6083 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6084 (m32r_linux_rt_sigtramp_start): Likewise.
6085 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6086 * m68k-tdep.c (m68k_register_to_value): Likewise.
6087 * mips-tdep.c (mips_register_to_value)
6088 (mips_value_to_register): Likewise.
6089 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6090 (ppcfbsd_sigtramp_frame_cache): Likewise.
6091 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6092 (ppcobsd_sigtramp_frame_cache): Likewise.
6093 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6094 (rs6000_register_to_value): Likewise.
6095 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6096 * tramp-frame.c (tramp_frame_start): Likewise.
6097 * valops.c (value_assign): Likewise.
6099 2021-01-19 Luis Machado <luis.machado@linaro.org>
6101 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6103 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6104 instead of buffer and size.
6105 (trad_frame_set_reg_value_bytes): Likewise.
6106 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6107 (trad_frame_set_value_bytes): Likewise.
6109 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6111 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6113 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6115 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6116 (riscv_fbsd_gregset): Use riscv_supply_regset.
6117 (riscv_fbsd_fpregset): Likewise.
6118 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6119 (riscv_linux_fregset): Likewise.
6120 * riscv-tdep.c (riscv_supply_regset): Define new function.
6121 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6123 2021-01-18 Tom de Vries <tdevries@suse.de>
6126 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6128 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6131 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6133 * remote.c (class remote_target) <remote_hostio_send_command,
6134 remote_hostio_parse_result>: Constify parameter.
6135 (remote_hostio_parse_result): Likewise.
6136 (remote_target::remote_hostio_send_command): Adjust.
6137 (remote_target::remote_hostio_pread_vFile): Adjust.
6138 (remote_target::fileio_readlink): Adjust.
6139 (remote_target::fileio_fstat): Adjust.
6141 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6143 * remote.c (remote_target::start_remote): Move wait_status to
6146 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6148 * remote.c (class remote_target):
6149 <add_current_inferior_and_thread>: Constify parameter.
6150 (stop_reply_extract_thread): Likewise.
6151 (remote_target::get_current_thread): Likewise.
6152 (remote_target::add_current_inferior_and_thread): Likewise.
6154 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6156 * remote.c (class remote_target)
6157 <remote_unpack_thread_info_response,
6158 parse_threadlist_response>: Constify parameter and/or return
6159 value and or local variable.
6160 (stub_unpack_int): Likewise.
6161 (unpack_nibble): Likewise.
6162 (unpack_byte): Likewise.
6163 (unpack_int): Likewise.
6164 (unpack_string): Likewise.
6165 (unpack_threadid): Likewise.
6166 (remote_target::remote_unpack_thread_info_response): Likewise.
6167 (remote_target::parse_threadlist_response): Likewise.
6169 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6171 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6173 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
6175 * MAINTAINERS (Write After Approval): Add myself.
6177 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6179 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6180 because is_trivially_default_constructible was first implemented with
6183 2021-01-14 Tom de Vries <tdevries@suse.de>
6185 PR breakpoints/27151
6186 * objfiles.h (in_plt_section): Handle .plt.sec.
6188 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6192 (remote_target::select_thread_for_ambiguous_stop_reply): New
6194 (remote_target::process_stop_reply): Call
6195 select_thread_for_ambiguous_stop_reply.
6197 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6199 * record-btrace.c (class record_btrace_target): Remove.
6200 (record_btrace_target::commit_resume): Remove.
6201 * record-full.c (class record_full_target): Remove.
6202 (record_full_target::commit_resume): Remove.
6204 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6206 * remote.c (enum class resume_state): New.
6207 (struct resumed_pending_vcont_info): New.
6208 (struct remote_thread_info) <resume_state, set_not_resumed,
6209 set_resumed_pending_vcont, resumed_pending_vcont_info,
6210 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6212 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6213 (remote_target::remote_add_thread): Adjust.
6214 (remote_target::process_initial_stop_replies): Adjust.
6215 (remote_target::resume): Adjust.
6216 (remote_target::commit_resume): Rely on state in
6217 remote_thread_info and not on tp->executing.
6218 (remote_target::process_stop_reply): Adjust.
6220 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6222 * arc-tdep.h (arc_debug_printf): New.
6223 * arc-tdep.c: Use arc_debug_printf.
6224 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6225 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6226 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6228 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6230 * arc-tdep.h (arc_debug): Change type to bool.
6231 * arc-tdep.c (arc_debug): Change type to bool.
6232 (arc_analyze_prologue): Adjust.
6233 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6234 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6236 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6238 * auto-load.c (auto_load_objfile_script_1): Use bool.
6239 (execute_script_contents): Use bool.
6241 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6243 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6245 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6247 * extension-priv.h (struct extension_language_script_ops)
6248 <auto_load_enabled>: Return bool.
6249 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6251 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6253 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6255 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6256 move comment to header.
6257 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6259 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6260 move comment to header.
6262 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6264 * auto-load.h (file_is_auto_load_safe): Change return type to
6265 bool, move comment here.
6266 * auto-load.c (file_is_auto_load_safe): Change return type and
6267 advice_printed to bool. Move comment to header.
6269 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6271 * jit.c (jit_debug_printf): New, use throughout file.
6273 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6275 * infrun.c (normal_stop): Fix indentation.
6277 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6279 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6281 * symfile.h: ... here.
6282 * symfile.c: Update doc.
6284 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6286 * target.h (baud_rate, serial_parity): Move declarations...
6287 * serial.h: ... here.
6288 * main.c: Include serial.h.
6289 * serial.c (baud_rate, serial_parity): Update doc.
6291 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6293 * top.c (pre_init_ui_hook): Remove.
6295 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6297 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6298 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6299 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6300 * features/aarch64-fpu.xml: Add bfloat16 type.
6302 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6304 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6306 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6308 * f-exp.y (dot_ops): Rename to...
6309 (fortran_operators): ...this. Add a header comment. Add symbol
6311 (yylex): Update to use fortran_operators not dot_ops. Remove
6312 special handling for '**', this is now included in
6315 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6317 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6318 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6319 * aarch64-tdep.c: Use aarch64_debug_printf.
6321 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6323 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6326 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6328 * jit.c (jit_debug): Change type to bool.
6329 (_initialize_jit): Adjust.
6331 2021-01-09 Tom Tromey <tom@tromey.com>
6334 * compile/compile.c (compile_to_object): Avoid crash when
6335 osabi_triplet_regexp returns NULL.
6337 2021-01-09 Tom Tromey <tom@tromey.com>
6339 * tracepoint.h (class collection_list) <append_exp>: Take a
6341 * tracepoint.c (collection_list::append_exp): Take a std::string.
6342 (encode_actions_1): Update.
6344 2021-01-08 Tom Tromey <tromey@adacore.com>
6346 * parse.c (parse_expression): Add void_context_p parameter. Use
6347 parse_exp_in_context.
6348 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6350 (print_command, call_command): Update.
6351 * expression.h (parse_expression): Add void_context_p parameter.
6353 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6355 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6356 for internalvar components that have a dynamic location.
6358 2021-01-08 Tom de Vries <tdevries@suse.de>
6361 * breakpoint.c (create_exception_master_breakpoint_probe)
6362 (create_exception_master_breakpoint_hook): Factor out
6364 (create_exception_master_breakpoint): ... here. Only try to install
6365 the master exception breakpoint in objfile.debug using the
6366 _Unwind_DebugHook method, if the install using probes in objfile
6369 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6371 * f-lang.c (fortran_value_subarray): Call value_from_component.
6373 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6375 * remote-sim.c: Include memory-map.h.
6376 (gdbsim_target): Define memory_map override.
6377 (gdbsim_target::memory_map): Define.
6379 2021-01-07 Tom Tromey <tromey@adacore.com>
6381 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6383 2021-01-07 Tom Tromey <tromey@adacore.com>
6385 * ada-lang.c (add_component_interval): Start loop using vector's
6388 2021-01-06 Tom Tromey <tromey@adacore.com>
6390 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6392 * valarith.c (fixed_point_binop): Handle multiplication
6393 and division specially.
6394 * valops.c (value_to_gdb_mpq): New function.
6395 (value_cast_to_fixed_point): Use it.
6397 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6399 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6400 Call wnoutrefresh instead of tui_win_info::refresh_window.
6402 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6404 * tui/tui-source.c (tui_source_window::show_line_number):
6405 Redraw second space after line number.
6407 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6410 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6411 Fix source pad size in prefresh.
6412 (tui_source_window_base::show_source_content): Grow source pad
6415 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6417 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6418 (bfin_frame_align): Use align_down.
6420 2021-01-04 Tom de Vries <tdevries@suse.de>
6422 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6423 terminators that do not terminate anything.
6425 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6427 * debug.c (debug_print_depth): New.
6428 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6429 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6430 * infrun.c (start_step_over): Use
6431 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6432 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6433 INFRUN_SCOPED_DEBUG_START_END.
6434 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6436 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6438 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6440 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6442 * utils.c (vfprintf_unfiltered): Print timestamp only when
6443 previous debug output ended with a newline.
6445 2021-01-04 Luis Machado <luis.machado@linaro.org>
6447 Update all users of trad_frame_saved_reg to use the new member
6450 Remote all struct keywords from declarations of trad_frame_saved_reg
6451 types, except on forward declarations.
6453 * aarch64-tdep.c: Update.
6454 * alpha-mdebug-tdep.c: Update.
6455 * alpha-tdep.c: Update.
6456 * arc-tdep.c: Update.
6457 * arm-tdep.c: Update.
6458 * avr-tdep.c: Update.
6459 * cris-tdep.c: Update.
6460 * csky-tdep.c: Update.
6461 * frv-tdep.c: Update.
6462 * hppa-linux-tdep.c: Update.
6463 * hppa-tdep.c: Update.
6464 * hppa-tdep.h: Update.
6465 * lm32-tdep.c: Update.
6466 * m32r-linux-tdep.c: Update.
6467 * m32r-tdep.c: Update.
6468 * m68hc11-tdep.c: Update.
6469 * mips-tdep.c: Update.
6470 * moxie-tdep.c: Update.
6471 * riscv-tdep.c: Update.
6472 * rs6000-tdep.c: Update.
6473 * s390-linux-tdep.c: Update.
6474 * s390-tdep.c: Update.
6475 * score-tdep.c: Update.
6476 * sparc-netbsd-tdep.c: Update.
6477 * sparc-sol2-tdep.c: Update.
6478 * sparc64-fbsd-tdep.c: Update.
6479 * sparc64-netbsd-tdep.c: Update.
6480 * sparc64-obsd-tdep.c: Update.
6481 * sparc64-sol2-tdep.c: Update.
6482 * tilegx-tdep.c: Update.
6483 * v850-tdep.c: Update.
6484 * vax-tdep.c: Update.
6486 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6487 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6489 * trad-frame.c: Update.
6490 Remove TF_REG_* enum.
6491 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6492 a trivially-constructible struct.
6493 (trad_frame_reset_saved_regs): Adjust to use member function.
6494 (trad_frame_value_p): Likewise.
6495 (trad_frame_addr_p): Likewise.
6496 (trad_frame_realreg_p): Likewise.
6497 (trad_frame_value_bytes_p): Likewise.
6498 (trad_frame_set_value): Likewise.
6499 (trad_frame_set_realreg): Likewise.
6500 (trad_frame_set_addr): Likewise.
6501 (trad_frame_set_unknown): Likewise.
6502 (trad_frame_set_value_bytes): Likewise.
6503 (trad_frame_get_prev_register): Likewise.
6504 * trad-frame.h: Update.
6505 (trad_frame_saved_reg_kind): New enum.
6506 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6507 <m_kind, m_reg>: New member fields.
6508 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6509 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6510 <is_addr, is_unknown, is_value_bytes>: New member functions.
6512 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6514 * target-float.c: Fix typos.
6516 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6518 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6520 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6522 * gdbarch.sh: Update copyright year range.
6524 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6526 Update copyright year range in copyright header of all GDB files.
6528 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6530 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6531 to the list of directories to update.
6533 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6535 * top.c (print_gdb_version): Update copyright year.
6537 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6539 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6541 For older changes see ChangeLog-2020.
6547 version-control: never