1 2021-06-16 Simon Marchi <simon.marchi@polymtl.ca>
3 * silent-rules.mk (ECHO_CCLD, ECHO_AR, ECHO_RANLIB): New.
5 2021-06-16 Tom de Vries <tdevries@suse.de>
8 * dwarf2/cu.h (dwarf2_cu::ancestor): Remove.
9 (dwarf2_cu::get_builder): Declare and move ...
10 * dwarf2/cu.c (dwarf2_cu::get_builder): ... here. Use sym_cu instead
11 of ancestor. Assert return value is non-null.
12 * dwarf2/read.c (read_file_scope): Set per_objfile->sym_cu.
13 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
14 (dwarf2_per_objfile): Add sym_cu field.
16 2021-06-15 Alan Modra <amodra@gmail.com>
18 * testsuite/lib/gdb.exp (exec_is_pie): Match new PIE readelf output.
20 2021-06-14 Mike Frysinger <vapier@gentoo.org>
22 * Makefile.in (GNULIB_BUILDDIR): Rename to ...
23 (GNULIB_PARENT_DIR): ... this. Remove "gnulib" from value.
25 2021-06-14 John Baldwin <jhb@FreeBSD.org>
27 * configure.ac: Check for <sys/procctl.h>.
28 * config.in, configure: Regenerate.
29 * fbsd-nat.c: Include <sys/procctl.h> if present.
30 [PROC_ASLR_CTL] (maybe_disable_address_space_randomization): New.
31 (fbsd_nat_target::create_inferior)
32 (fbsd_nat_target::supports_disable_randomization): New.
33 * fbsd-nat.h (fbsd_nat_target::create_inferior)
34 (fbsd_nat_target::supports_disable_randomization): New.
36 2021-06-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
38 * compile/compile.c: Include missing header signal.h.
40 2021-06-12 John Baldwin <jhb@FreeBSD.org>
42 * remote.c (remote_new_objfile): Fix indentation.
44 2021-06-11 Kevin Buettner <kevinb@redhat.com>
46 * solib.c (libpthread_name_p): Match "libc" in addition
48 * linux-thread-db.c (libpthread_objfile_p): New function.
49 (libpthread_name_p): Adjust preexisting callers to use
50 libpthread_objfile_p().
52 2021-06-11 Simon Marchi <simon.marchi@polymtl.ca>
54 * dwarf2/loc.h (struct call_site_stuff): Remove.
56 2021-06-11 Tom Tromey <tom@tromey.com>
59 * rust-parse.c (rust_parser::lex_identifier): Handle raw
61 (rust_lex_tests): Add raw identifier tests.
63 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
65 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
67 (FrameVars): Use 'is not None' instead of '!= None'.
68 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
69 Use 'is None' instead of '== None' and 'is not None' instead of '!=
72 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
74 * inferior.h (class inferior) <in_initial_library_scan>: New.
75 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
76 * infrun.c (follow_fork_inferior): Likewise.
77 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
78 by try_thread_db_load_1
79 (thread_db_load): Return early if in_initial_library_scan is
81 * remote.c (remote_new_objfile): Return early if
82 in_initial_library_scan is set.
84 2021-06-07 Pedro Alves <pedro@palves.net>
86 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
88 * symtab.h (struct symbol): Add defaulted copy assignment
91 2021-06-07 Pedro Alves <pedro@palves.net>
93 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
94 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
95 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
98 2021-06-07 Pedro Alves <pedro@palves.net>
100 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
101 (nat_sigval_t): ... this and remove typedef of same name.
102 (struct nat_siginfo): Rename to ...
103 (nat_siginfo_t): ... this and remove typedef of same name.
104 (struct compat_sigval): Rename to ...
105 (compat_sigval_t): ... this and remove typedef of same name.
106 (struct compat_siginfo): Rename to ...
107 (compat_siginfo_t): ... this and remove typedef of same name.
108 (struct compat_x32_siginfo): Rename to ...
109 (compat_x32_siginfo_t): ... this and remove typedef of same name.
110 (amd64_linux_siginfo_fixup_common): Adjust.
112 2021-06-07 Pedro Alves <pedro@palves.net>
114 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
115 __attribute__ __aligned__ from the typedef to the struct.
117 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
120 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
121 type_align, and spot case where the alignment is unknown.
123 2021-06-07 Carl Love <cel@us.ibm.com>
125 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
126 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
127 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
128 ppc64_pcrel_linkage2_target): New functions.
129 (ppc64_standard_linkage9, ppc64_standard_linkage10,
130 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
131 instruction patterns.
132 (ppc64_standard_linkage9, ppc64_standard_linkage10,
133 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
134 in define MAX expression.
135 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
136 ppc64_standard_linkage10, ppc64_standard_linkage11,
137 ppc64_standard_linkage12.
138 * (ppc_insn_prefix_dform): New function.
140 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
143 * sparc-nat.c (sparc_fetch_inferior_registers): Set
144 inferior_ptid instead of using switch_to_thread.
145 (sparc_store_inferior_registers): Likewise.
147 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
149 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
150 (compile_to_object): Ignore SIGPIPE before calling the plugin.
152 2021-06-05 Tom Tromey <tom@tromey.com>
154 * data-directory/Makefile.in (Makefile): Use correct directory
157 2021-06-05 Tom Tromey <tom@tromey.com>
159 * data-directory/Makefile.in (Makefile): Rewrite.
161 2021-06-05 Tom Tromey <tromey@adacore.com>
163 * configure: Rebuild.
164 * configure.ac: Add ACX_NONCANONICAL_TARGET.
166 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
168 * NEWS: Document 'set disassembler-options' support for the ARC
170 * arc-tdep.c (arc_gdbarch_init): Set
171 'gdbarch_valid_disassembler_options'.
173 2021-06-04 Tom Tromey <tromey@adacore.com>
175 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
177 * dwarf2/loc.c (dwarf2_evaluate_property) <case
178 PROP_VARIABLE_NAME>: New case.
179 (compute_var_value): New function.
180 (sect_variable_value): Use compute_var_value.
181 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
182 (var_decl_name): New function.
183 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
184 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
186 (union dynamic_prop_data) <variable_name>: New member.
187 (struct dynamic_prop) <variable_name, set_variable_name>: New
190 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
192 * remote.c (remote_target)
193 <select_thread_for_ambiguous_stop_reply>: Add additional debug
196 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
198 * python/py-tui.c (class tui_py_window): Add click function.
199 (tui_py_window::click): Likewise.
201 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
203 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
204 * tui/tui-data.h (struct tui_win_info): Add click function.
205 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
206 (tui_deprep_terminal): Disable mouse events.
207 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
208 * tui/tui.c (tui_disable): Disable mouse events.
210 2021-06-03 Magne Hov <mhov@undo.io>
213 * eval.c (expression::evaluate): Check inferior_ptid.
215 2021-06-03 Pedro Alves <pedro@palves.net>
217 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
219 (Global Maintainers): Update my address.
220 (Write After Approval): Remove stale entry.
222 2021-06-03 John Baldwin <jhb@FreeBSD.org>
224 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
225 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
226 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
227 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
228 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
229 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
230 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
231 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
232 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
233 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
234 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
235 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
236 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
237 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
238 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
239 (fbsd_report_signal_info): New.
240 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
241 report_signal_info method.
243 2021-06-03 Magne Hov <mhov@undo.io>
245 * MAINTAINERS (Write After Approval): Add Magne Hov.
247 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
249 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
250 gdb.SYMBOL_LABEL_DOMAIN constant.
252 2021-06-01 John Baldwin <jhb@FreeBSD.org>
254 * infrun.c (handle_inferior_event): Only call
255 gdbarch_displaced_step_restore_all_in_ptid if
256 gdbarch_supports_displaced_stepping is true.
258 2021-06-01 Tom Tromey <tromey@adacore.com>
260 * Makefile.in (all-data-directory): Remove.
261 (data-directory/Makefile): Remove.
263 2021-06-01 Tom Tromey <tromey@adacore.com>
265 * configure: Rebuild.
266 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
268 2021-06-01 Tom Tromey <tromey@adacore.com>
270 * silent-rules.mk (ECHO_CC): New variable.
272 2021-06-01 Tom Tromey <tromey@adacore.com>
274 * Makefile.in (SUBDIRS): Add testsuite.
275 (all): Don't exclude testsuite.
277 2021-06-01 Tom Tromey <tromey@adacore.com>
279 * configure.ac: Copy some code from testsuite/configure.ac.
280 (enable_libctf): Subst this, not ENABLE_LIBCTF.
281 * configure: Rebuild.
283 2021-06-01 Tom de Vries <tdevries@suse.de>
286 * minsyms.c (msymbol_is_cold_clone): New function.
287 (msymbol_is_function): Use msymbol_is_cold_clone.
289 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
290 Andrew Burgess <andrew.burgess@embecosm.com>
293 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
294 (ALLDEPFILES): Add arm-none-tdep.c
295 * arm-none-tdep.c: New file.
296 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
298 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
299 Richard Bunt <richard.bunt@arm.com>
301 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
302 check for why the backtrace stopped.
304 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
306 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
308 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
309 signature parameter, update all callers.
310 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
313 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
315 * dwarf2/read.h (signatured_type_up): New, use where possible.
317 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
319 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
321 2021-05-30 Tom Tromey <tom@tromey.com>
323 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
325 (create_signatured_type_table_from_index)
326 (create_signatured_type_table_from_debug_names, add_type_unit)
327 (read_comp_units_from_section): Update.
329 2021-05-30 Tom Tromey <tom@tromey.com>
331 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
332 m_num_psymtabs>: Remove.
333 (resize_symtabs): Update.
334 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
335 (dwarf2_per_bfd::allocate_signatured_type): Update.
337 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
339 * Fix tab after space indentation issues throughout.
341 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
343 * Fix some indentation mistakes throughout.
345 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
347 * breakpoint.h (iterate_over_bp_locations): Remove. Update
348 users to use all_bp_locations.
349 (all_bp_locations): New.
350 * breakpoint.c (all_bp_locations): Make non-static.
351 (iterate_over_bp_locations): Remove.
353 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
355 * breakpoint.h (iterate_over_breakpoints): Remove. Update
356 callers to use all_breakpoints or all_breakpoints_safe.
357 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
358 all_breakpoints_safe): Move here.
359 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
361 (iterate_over_breakpoints): Remove.
362 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
364 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
366 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
368 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
370 * breakpoint.c (get_first_locp_gte_addr): Remove.
371 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
372 all_bp_locations_at_addr.
373 (struct bp_locations_at_addr_range): New.
374 (all_bp_locations_at_addr): New.
375 (bp_locations_compare_addrs): New.
377 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
379 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
381 (all_bp_locations): New.
383 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
385 * breakpoint.c (bp_locations): Change to std::vector, update all
387 (bp_locations_count): Remove.
388 (update_global_location_list): Change to work with indices
389 rather than bp_location**.
391 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
393 * breakpoint.h (bp_locations_range): New.
394 (struct breakpoint) <locations>: New. Use where possible.
396 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
398 * breakpoint.h (all_tracepoints): Remove.
399 (breakpoint_iterator): Move here.
400 (struct tracepoint_filter): New.
401 (tracepoint_iterator): New.
402 (tracepoint_range): New.
403 (all_tracepoints): New.
404 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
406 (breakpoint_iterator): Move to header.
407 (all_tracepoints): New.
408 * tracepoint.c (start_tracing): Adjust.
410 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
412 * breakpoint.c (breakpoint_safe_range): New.
413 (all_breakpoints_safe): New. Use instead of
414 ALL_BREAKPOINTS_SAFE where possible.
416 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
418 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
420 (breakpoint_iterator): New.
421 (breakpoint_range): New.
422 (all_breakpoints): New.
424 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
426 * python/py-tui.c (tui_py_window::output): Add full_window
428 (gdbpy_tui_write): Parse "full_window" argument.
430 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
432 * make-init-c: Add option to reverse function calls.
434 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
436 * Makefile.in (INIT_FILES_FILTER_OUT): New.
437 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
438 (stamp-init): Use make-init-c.
439 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
440 * silent-rules.mk (ECHO_INIT_C): Change.
441 * make-init-c: New file.
443 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
445 * command.h (add_alias_cmd): Accept target as
446 cmd_list_element. Update callers.
448 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
450 * command.h (add_info_alias): Accept target as
451 cmd_list_element. Update callers.
453 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
455 * command.h (add_com_alias): Accept target as
456 cmd_list_element. Update callers.
458 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
460 * python/py-param.c (add_setshow_generic): Use return values of
461 add_setshow functions.
463 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
465 * mi/mi-main.c (_initialize_mi_main):
466 * python/py-auto-load.c (gdbpy_initialize_auto_load):
467 * remote.c (_initialize_remote):
469 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
471 * command.h (set_show_commands): New.
472 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
473 add_setshow_boolean_cmd, add_setshow_filename_cmd,
474 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
475 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
476 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
477 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
478 Return set_show_commands. Adjust callers.
479 * cli/cli-decode.c (add_setshow_cmd_full): Return
480 set_show_commands, remove result parameters, adjust callers.
482 2021-05-27 Tom de Vries <tdevries@suse.de>
485 * dwarf2/read.c (process_psymtab_comp_unit):
487 2021-05-27 Tom de Vries <tdevries@suse.de>
489 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
492 2021-05-27 Tom de Vries <tdevries@suse.de>
495 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
496 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
497 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
498 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
500 (dwarf2_per_cu_data): Remove load_all_dies field.
502 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
504 * regcache.c (reg_buffer::reg_buffer): Default-initialize
507 2021-05-26 Tom Tromey <tom@tromey.com>
509 * dwarf2/read.c (allocate_type_unit_groups_table)
510 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
512 (free_line_header_voidp): Remove.
514 (completion_tracker::completion_hash_entry::deleter): Remove.
515 (completion_tracker::discard_completions): Use htab_delete_entry.
516 * utils.h (htab_delete_entry): New template function.
518 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
520 * python/py-tui.c (tui_py_window::refresh_window):
523 2021-05-23 Tom de Vries <tdevries@suse.de>
526 * target.h (struct target_ops): Mention target_thread_architecture in
527 read_description comment.
528 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
529 pid to determine if process is 64-bit or 32-bit.
530 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
532 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
533 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
534 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
535 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
536 Likewise, use pid to determine if kernel supports reading VFP
539 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
541 * main.c (enum cmdarg_kind): Fix option type comments for
542 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
544 2021-05-21 Tom de Vries <tdevries@suse.de>
547 * contrib/cc-with-tweaks.sh: Handle -l.
549 2021-05-21 Tom de Vries <tdevries@suse.de>
552 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
553 objects. Call get_jiter_objfile_data with the_objfile.
555 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
557 * linespec.c (linespec_p): Remove. Replace all uses with
560 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
561 Pedro Alves <pedro@palves.net>
563 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
564 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
565 command_line_up instead of struct command_line.
566 (build_command_line): Likewise.
567 (get_command_line): Update the cmd function call parameter.
568 (process_next_line): Use unique_ptr command_line_up instead
569 of struct command_line.
570 (recurse_read_control_structure): Change the the type of
571 next to command_line_up.
572 (read_command_lines_1): Change type of `next' to be
573 command_line_up and update all references of `next'
576 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
578 * MAINTAINERS (Write After Approval): Add myself.
580 2021-05-19 John Baldwin <jhb@FreeBSD.org>
582 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
584 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
586 * inflow.c (new_tty): Do not leak tty.
588 2021-05-17 Tom Tromey <tom@tromey.com>
590 * dwarf2/read.h: Update include.
591 * dwarf2/read.c: Update include.
592 * dwarf2/line-header.c: Update include.
593 * dwarf2/cu.h: Update include.
594 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
595 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
596 * Makefile.in (COMMON_SFILES): Update.
598 2021-05-17 Tom Tromey <tom@tromey.com>
600 * dwarf2/read.c (maybe_queue_comp_unit)
601 (dwarf2_per_objfile::age_comp_units): Update.
602 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
604 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
605 add_dependence>: New methods.
606 <m_dependencies>: Add "m_" prefix. Now private.
607 <m_mark>: Add "m_" prefix.
608 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
609 (dwarf2_mark_helper): New function.
610 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
612 2021-05-17 Tom Tromey <tom@tromey.com>
614 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
615 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
616 (dwarf2_cu::dwarf2_cu): Move to cu.c.
617 * dwarf2/cu.c: New file.
618 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
620 2021-05-17 Tom Tromey <tom@tromey.com>
622 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
623 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
625 * dwarf2/cu.h: New file.
627 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
629 * .dir-locals.el: Set sentence-end-double-space for all modes, and
630 set brace-list-open to 0 for C and C++ modes.
632 2021-05-17 Tom Tromey <tromey@adacore.com>
634 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
637 2021-05-17 Tom Tromey <tromey@adacore.com>
639 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
640 (group_from_gid): Subtract one from strncpy length.
642 2021-05-17 Tom Tromey <tromey@adacore.com>
644 * source.c (add_path): Check 'p' before using 'p[-1]'.
646 2021-05-17 Tom Tromey <tromey@adacore.com>
648 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
649 (dwarf2_per_cu_data_up): New typedef.
650 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
651 <all_comp_units>: Use dwarf2_per_cu_data_up.
652 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
653 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
654 (create_cu_from_index_list): Likewise.
655 (create_signatured_type_table_from_index)
656 (create_cus_from_debug_names_list, add_type_unit)
657 (read_comp_units_from_section): Update.
658 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
661 2021-05-17 Tom Tromey <tom@tromey.com>
663 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
664 (sort_tu_by_abbrev_offset): Remove.
665 (build_type_psymtabs): Update.
667 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
669 * py-project.toml: New.
670 * gdb-gdb.py.in: Re-format.
672 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
674 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
676 * command.h (cmd_func_p): Remove.
677 * cli/cli-decode.c (cmd_func_p): Remove.
679 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
681 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
683 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
685 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
687 <alias_target>: ... this.
688 (add_alias_cmd): Rename old to target.
689 (add_info_alias): Rename old_name to target_name.
690 (add_com_alias): Likewise.
692 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
694 * Rename "prefixlist" parameters to "subcommands" throughout.
695 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
696 <subcommands>: ... this.
697 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
698 (lookup_cmd_with_subcommands): ... this.
700 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
702 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
704 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
706 * cli/cli-decode.h (prefixname): Make const, move implementation
708 * cli/cli-decode.c (cmd_list_element::prefixname): New.
710 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
712 * ctfread.c (new_symbol): Set function address.
713 (read_func_kind_type): Remove incorrect type name setting.
714 Don't copy name returned from ctf_type_ame_raw throughout file.
716 2021-05-14 Tom Tromey <tom@tromey.com>
718 * rust-lang.c (rust_language::val_print_struct)
719 (rust_language::print_enum): Use common_val_print, not
722 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
724 * python/py-inferior.c (infpy_get_connection_num): New function.
725 (inferior_object_getset): Add a new element for 'connection_num'.
726 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
728 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
730 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
731 argument type, update and re-wrap, header comment.
732 (remote_target::commit_resumed): Convert any_process_wildcard and
733 may_global_wildcard_vcont from int to bool.
735 2021-05-14 Kent Cheung <kent.cheung@arm.com>
737 * cp-valprint.c (cp_print_value): Replaced duplicate code.
738 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
739 just before printing child values.
740 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
741 printing string representation.
742 * python/py-prettyprint.c (print_children): Check max_depth just
743 before printing child values.
744 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
745 printing string representation.
747 2021-05-14 Mike Frysinger <vapier@gentoo.org>
749 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
750 sim/callback.h & sim/sim.h.
752 2021-05-13 Mike Frysinger <vapier@gentoo.org>
754 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
757 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
759 * inf-child.h (inf_child_target) <follow_exec>: New.
760 * inf-child.c (inf_child_target::follow_exec): New.
762 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
764 * target.h (struct target_ops) <follow_exec>: Add ptid_t
766 (target_follow_exec): Likewise.
767 * target.c (target_follow_exec): Add ptid_t parameter.
768 * infrun.c (follow_exec): Adjust call to target_follow_exec,
769 don't push target nor create thread.
770 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
771 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
772 (thread_db_target::follow_exec): New.
773 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
774 (remote_target::follow_exec): Call
775 process_stratum_target::follow_exec.
776 * target-delegates.c: Re-generate.
778 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
780 * infrun.c (follow_exec): Call target_follow_fork when
781 follow-exec-mode is same.
782 * target.h (target_follow_fork): Improve doc.
784 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
786 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
788 * cli/cli-setshow.c (do_show_command): Adjust.
790 2021-05-13 Luis Machado <luis.machado@linaro.org>
792 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
793 include the last address in the range.
795 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
797 * python/python-internal.h (gdbpy_parse_command_name): Return
798 gdb::unique_xmalloc_ptr.
799 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
800 (cmdpy_init): Adjust.
801 * python/py-param.c (parmpy_init): Adjust.
802 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
805 2021-05-12 George Barrett <bob@bob131.so>
807 * NEWS (Guile API): Note the addition of the new procedure.
808 * guile/scm-value.c (gdbscm_value_const_value): Add
809 implementation of value-const-value procedure.
810 (value_functions): Add value-const-value procedure.
812 2021-05-12 George Barrett <bob@bob131.so>
814 * NEWS (Guile API): Note the addition of new procedures.
815 * guile/scm-value.c (gdbscm_reference_value): Add helper function
816 for reference value creation.
817 (gdbscm_value_reference_value): Add implementation of
818 value-reference-value procedure.
819 (gdbscm_value_rvalue_reference_value): Add implementation of
820 value-rvalue-reference-value procedure.
821 (value_functions): Add value-reference-value procedure. Add
822 value-rvalue-reference-value procedure.
824 2021-05-12 George Barrett <bob@bob131.so>
826 * guile/scm-type.c (type_integer_constants): Add binding for
827 TYPE_CODE_RVALUE_REF.
828 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
829 dereferencing of rvalue references.
830 * NEWS (Guile API): Note improvements in rvalue reference support.
832 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
834 * btrace.c (handle_pt_insn_events): Ignore status update enable
837 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
839 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
842 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
844 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
846 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
849 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
852 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
854 * nat/linux-waitpid.c (status_to_str): Show signal name.
856 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
858 * python/py-breakpoint.c (pybp_debug): New static global.
859 (show_pybp_debug): New function.
860 (pybp_debug_printf): Define.
861 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
862 (gdbpy_breakpoint_created): Add some debugging.
863 (gdbpy_breakpoint_deleted): Likewise.
864 (gdbpy_breakpoint_modified): Likewise.
865 (_initialize_py_breakpoint): New function.
867 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
869 * python/py-unwind.c (pyuw_debug): Convert to bool.
870 (show_pyuw_debug): New function.
871 (pyuw_debug_printf): Define.
872 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
873 (pyuw_this_id): Convert to new debug print macros.
874 (pyuw_prev_register): Likewise.
875 (pyuw_sniffer): Likewise.
876 (pyuw_dealloc_cache): Likewise.
877 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
878 show function when registering.
880 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
882 * dummy-frame.c (fprint_dummy_frames): Convert use of
883 fprint_frame_id to use frame_id::to_string.
884 * frame.c (fprint_field): Delete.
885 (fprint_frame_id): Moved to...
886 (frame_id::to_string): ...this, rewritten to return a string.
887 (fprint_frame): Convert use of fprint_frame_id to use
889 (compute_frame_id): Likewise.
890 (frame_id_p): Likewise.
891 (frame_id_eq): Likewise.
892 (frame_id_inner): Likewise.
893 * frame.h (struct frame_id) <to_string>: New member function.
894 (fprint_frame_id): Delete declaration.
895 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
896 fprint_frame_id to use frame_id::to_string.
897 * python/py-frame.c (frame_object_to_frame_info): Likewise.
898 * python/py-unwind.c (unwind_infopy_str): Likewise.
899 (pyuw_this_id): Likewise.
901 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
903 * nat/linux-waitpid.c (status_to_str): Return std::string.
904 * nat/linux-waitpid.h (status_to_str): Likewise.
905 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
906 (linux_nat_target::attach): Adjust.
907 (linux_handle_extended_wait): Adjust.
909 (stop_wait_callback): Adjust.
910 (linux_nat_filter_event): Adjust.
911 (linux_nat_wait_1): Adjust.
912 * nat/linux-waitpid.c (status_to_str): Adjust.
913 * nat/linux-waitpid.h (status_to_str): Adjust.
915 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
917 * infrun.h (infrun_debug_printf): Add missing space.
919 2021-05-08 Pedro Alves <pedro@palves.net>
921 * linux-nat.c (linux_nat_target::supports_disable_randomization):
922 Remove references to HAVE_PERSONALITY.
923 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
924 (maybe_disable_address_space_randomization)
925 (~maybe_disable_address_space_randomizatio): Remove references to
927 * config.in, configure: Regenerate.
929 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
931 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
933 (source_script_with_search): Perform tilde expansion.
935 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
937 * target-descriptions.c (struct target_desc_info) <filename>:
939 (copy_inferior_target_desc_info): Adjust.
940 (target_desc_info_free): Adjust.
941 (target_find_description): Adjust.
942 (set_tdesc_filename_cmd): Adjust.
943 (show_tdesc_filename_cmd): Adjust.
944 (unset_tdesc_filename_cmd): Adjust.
945 (maint_print_c_tdesc_cmd): Adjust.
947 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
949 * target-descriptions.c (struct target_desc_info): Initialize
951 (get_tdesc_info): Use new.
952 (target_desc_info_free): Use delete.
954 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
956 * target-descriptions.c (struct target_desc_info) <fetched>:
958 (target_find_description): Adjust.
959 (target_clear_description): Adjust.
961 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
963 * target-descriptions.c (struct target_desc_info) <tdesc>:
965 (target_desc_fetched): Remove.
966 (current_target_desc): Remove.
967 (target_description_filename): Remove.
968 (target_find_description): Adjust.
969 (target_clear_description): Adjust.
970 (target_current_description): Adjust.
971 (set_tdesc_filename_cmd): Adjust.
972 (show_tdesc_filename_cmd): Adjust.
973 (unset_tdesc_filename_cmd): Adjust.
974 (maint_print_c_tdesc_cmd): Adjust.
975 (maint_print_xml_tdesc_cmd): Adjust.
977 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
979 * infcmd.c (notice_new_inferior): Change parameter type.
980 * inferior.h (notice_new_inferior): Change parameter type.
981 * remote.c (remote_notice_new_inferior): Change parameter type to
982 bool. Also update type of local variable to bool.
983 (remote_target::update_thread_list): Change type of local variable
985 (remote_target::process_stop_reply): Pass bool instead of int to
986 remote_notice_new_inferior.
988 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
990 * target.c (target_stack::unpush): Call target_ops::find_beneath
991 to get the target beneath `t`.
993 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
995 * target.c (target_close): Check in all inferiors that the
996 target is not pushed.
998 2021-05-07 Aaron Merey <amerey@redhat.com>
1000 * debuginfod-support.c (debuginfod_init): Remove.
1001 (get_debuginfod_client): New function.
1003 2021-05-07 Tom Tromey <tom@tromey.com>
1005 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
1006 * utils.c (streq_hash): Remove.
1007 * utils.h (streq_hash): Don't declare.
1008 * completer.c (completion_tracker::discard_completions): Update
1010 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
1012 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
1014 * Re-format all Python files using black.
1016 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
1018 * guile/guile-internal.h (gdbscm_safe_source_script): Change
1019 function return type.
1020 * guile/guile.c (gdbscm_source_script): Update to handle change in
1021 gdbscm_safe_source_script.
1022 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
1023 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
1026 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
1028 * inferior.h (class inferior) <args>: Change type to
1030 * inferior.c (inferior::~inferior): Don't free args.
1031 * infcmd.c (get_inferior_args): Adjust.
1032 (set_inferior_args): Adjust.
1034 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
1036 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
1037 breakpoint locations when the breakpoint actually has a location.
1039 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1041 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1042 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1043 mi_cmd_break_condition.
1044 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1045 * breakpoint.h (set_breakpoint_condition): Declare a new
1047 * breakpoint.c (set_breakpoint_condition): New overloaded function
1048 extracted out from ...
1049 (condition_command): ... this.
1050 * NEWS: Mention the change.
1052 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1054 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1055 '--force-condition' flag to force the condition in the
1056 '-break-insert' and '-dprintf-insert' commands.
1057 * NEWS: Mention the change.
1059 2021-05-04 Tom de Vries <tdevries@suse.de>
1062 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1065 2021-04-30 Tom Tromey <tom@tromey.com>
1067 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1068 (add_signatured_type_cu_to_table): Remove.
1069 (create_debug_type_hash_table): Assume dwo_file is non-null.
1070 (create_debug_types_hash_table): Update comment.
1071 (create_all_type_units): Remove.
1072 (sort_tu_by_abbrev_offset): Update comment.
1073 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1074 (build_type_psymtabs): Remove.
1075 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1077 (read_comp_units_from_section): Add types_htab, section_kind
1079 (create_all_comp_units): Read type units.
1081 2021-04-30 Tom Tromey <tom@tromey.com>
1083 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1084 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1085 <get_cu>: Now inline.
1086 <all_type_units>: Remove.
1087 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1088 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1089 (dwarf2_per_bfd::get_tu): Remove.
1090 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1091 (create_signatured_type_table_from_index)
1092 (create_signatured_type_table_from_debug_names)
1093 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1094 (dwarf2_base_index_functions::expand_all_symtabs)
1095 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1096 (dwarf2_base_index_functions::map_symbol_filenames)
1097 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1098 (add_signatured_type_cu_to_table, create_all_type_units)
1099 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1100 (create_all_comp_units): Update.
1101 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1102 (write_debug_names): Update.
1104 2021-04-30 Tom Tromey <tom@tromey.com>
1106 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1107 allocate_signatured_type>: Change return type.
1108 <all_comp_units, all_type_units>: Hold unique pointers.
1109 (struct dwarf2_per_cu_data): Add constructor and initializers.
1110 (struct signatured_type): Derive from dwarf2_per_cu_data.
1111 * dwarf2/read.c (type_unit_group): Derive from
1113 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1114 (dwarf2_per_bfd::get_tu)
1115 (dwarf2_per_bfd::allocate_signatured_type)
1116 (dwarf2_per_bfd::allocate_signatured_type)
1117 (create_cu_from_index_list, create_cus_from_index_list)
1118 (create_signatured_type_table_from_index)
1119 (create_signatured_type_table_from_debug_names)
1120 (create_addrmap_from_aranges)
1121 (dwarf2_base_index_functions::find_last_source_symtab)
1122 (dw_expand_symtabs_matching_file_matcher)
1123 (dwarf2_gdb_index::expand_symtabs_matching)
1124 (dwarf2_base_index_functions::map_symbol_filenames)
1125 (create_cus_from_debug_names_list)
1126 (dw2_debug_names_iterator::next)
1127 (dwarf2_debug_names_index::expand_symtabs_matching)
1128 (create_debug_type_hash_table, add_type_unit)
1129 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1131 (allocate_type_unit_groups_table): Use delete.
1132 (create_type_unit_group): Change return type. Use new.
1133 (get_type_unit_group, build_type_psymtabs_1)
1134 (build_type_psymtab_dependencies)
1135 (process_skeletonless_type_unit, set_partial_user)
1136 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1137 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1138 (read_signatured_type): Update.
1139 (dwarf2_find_containing_comp_unit): Change type of
1142 (dwarf2_per_bfd::allocate_per_cu)
1143 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1145 (add_signatured_type_cu_to_table): Update.
1146 * dwarf2/index-write.c (write_one_signatured_type)
1147 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1148 (write_debug_names): Update.
1150 2021-04-30 Tom Tromey <tromey@adacore.com>
1152 * nat/windows-nat.h (get_image_name): Don't declare.
1153 * nat/windows-nat.c (get_image_name): Now static.
1155 2021-04-30 Tom Tromey <tromey@adacore.com>
1157 * windows-nat.c (windows_nat::handle_load_dll): Update.
1158 (windows_nat_target::get_windows_debug_event): Call
1160 (windows_add_all_dlls, windows_add_dll): Move to
1162 * nat/windows-nat.h (handle_load_dll): Change parameters.
1163 (dll_loaded_event, windows_add_all_dlls): Declare.
1164 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1166 (dll_loaded_event): New function.
1168 2021-04-30 Tom Tromey <tromey@adacore.com>
1170 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1171 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1173 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1174 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1176 2021-04-30 Tom Tromey <tromey@adacore.com>
1178 * windows-nat.c: Move code to nat/windows-nat.[ch].
1179 (_initialize_windows_nat): Call initialize_loadable.
1180 * nat/windows-nat.h (AdjustTokenPrivileges)
1181 (DebugActiveProcessStop, DebugBreakProcess)
1182 (DebugSetProcessKillOnExit, EnumProcessModules)
1183 (EnumProcessModulesEx, GetModuleInformation)
1184 (GetModuleFileNameExA, GetModuleFileNameExW)
1185 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1186 (GetCurrentConsoleFont, Wow64SuspendThread)
1187 (Wow64GetThreadContext, Wow64SetThreadContext)
1188 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1189 (AdjustTokenPrivileges_ftype)
1190 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1191 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1192 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1193 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1194 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1195 (GetConsoleFontSize_ftype)
1196 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1197 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1198 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1199 (initialize_loadable): Declare.
1200 * nat/windows-nat.c (AdjustTokenPrivileges)
1201 (DebugActiveProcessStop, DebugBreakProcess)
1202 (DebugSetProcessKillOnExit, EnumProcessModules)
1203 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1204 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1205 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1206 (Wow64GetThreadContext, Wow64SetThreadContext)
1207 (Wow64GetThreadSelectorEntry): Define.
1208 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1210 (initialize_loadable): Likewise, and rename.
1212 2021-04-30 Tom Tromey <tromey@adacore.com>
1214 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1215 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1216 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1217 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1218 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1219 (bad): New template functions.
1220 (_initialize_loadable): Update.
1222 2021-04-30 Tom Tromey <tromey@adacore.com>
1224 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1226 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1228 * auto-load.h: Split namespace declaration.
1230 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1232 * infrun.c (save_waitstatus): Move variables to inner scope.
1234 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1236 * NEWS: Fix typo and stray full stop.
1238 2021-04-28 Tom Tromey <tromey@adacore.com>
1240 * ada-exp.y (primary): Use new type for null pointer.
1241 * ada-lang.c (ada_type_match): Remove "may_deref"
1242 parameter. Handle null pointer.
1243 (ada_args_match): Update.
1244 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1245 Handle null pointer.
1247 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1249 * NEWS: Mention new commands.
1250 * python/python.c (python_ignore_environment): New static global.
1251 (show_python_ignore_environment): New function.
1252 (set_python_ignore_environment): New function.
1253 (python_dont_write_bytecode): New static global.
1254 (show_python_dont_write_bytecode): New function.
1255 (set_python_dont_write_bytecode): New function.
1256 (_initialize_python): Register new commands.
1258 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1260 * extension-priv.h (struct extension_language_ops): Rename
1261 'finish_initialization' to 'initialize'.
1262 * extension.c (finish_ext_lang_initialization): Renamed to...
1263 (ext_lang_initialization): ...this, update comment, and updated
1264 the calls to reflect the change in struct extension_language_ops.
1265 * extension.h (finish_ext_lang_initialization): Renamed to...
1266 (ext_lang_initialization): ...this.
1267 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1268 (gdbscm_initialize): ...this, update comment at definition.
1269 (guile_extension_ops): Update.
1270 * main.c (captured_main_1): Update call to
1271 finish_ext_lang_initialization.
1272 * python/python.c (gdbpy_finish_initialization): Rename to...
1273 (gdbpy_initialize): ...this, update comment at definition, and
1274 update call to do_finish_initialization.
1275 (python_extension_ops): Update.
1276 (do_finish_initialization): Rename to...
1277 (do_initialize): ...this, and update comment.
1279 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1281 * main.c (captured_main_1): Add a call to
1282 finish_ext_lang_initialization.
1283 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1285 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1287 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1288 (gdbscm_finish_initialization): Add code moved from
1290 (_initialize_guile): Move code to gdbscm_finish_initialization.
1291 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1292 _initialize_scm_arch.
1293 (_initialize_scm_arch): New function.
1294 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1295 into _initialize_scm_block.
1296 (_initialize_scm_block): New function.
1297 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1298 into _initialize_scm_frame.
1299 (_initialize_scm_frame): New function.
1300 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1301 into _initialize_scm_objfile.
1302 (_initialize_scm_objfile): New function.
1303 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1304 code into _initialize_scm_progspace.
1305 (_initialize_scm_progspace): New function.
1306 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1307 into _initialize_scm_symbol.
1308 (_initialize_scm_symbol): New function.
1309 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1310 into _initialize_scm_symtab.
1311 (_initialize_scm_symtab): New function.
1312 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1313 _initialize_scm_type.
1314 (_initialize_scm_type): New function.
1316 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1318 * python/py-arch.c (_initialize_py_arch): New function.
1319 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1320 * python/py-block.c (_initialize_py_block): New function.
1321 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1322 * python/py-inferior.c (_initialize_py_inferior): New function.
1323 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1324 * python/py-objfile.c (_initialize_py_objfile): New function.
1325 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1326 * python/py-progspace.c (_initialize_py_progspace): New function.
1327 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1328 * python/py-registers.c (_initialize_py_registers): New function.
1329 (gdbpy_initialize_registers): Move code to
1330 _initialize_py_registers.
1331 * python/py-symbol.c (_initialize_py_symbol): New function.
1332 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1333 * python/py-symtab.c (_initialize_py_symtab): New function.
1334 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1335 * python/py-type.c (_initialize_py_type): New function.
1336 (gdbpy_initialize_types): Move code to _initialize_py_type.
1337 * python/py-unwind.c (_initialize_py_unwind): New function.
1338 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1339 * python/python.c (_initialize_python): Move call to
1340 do_start_initialization to gdbpy_finish_initialization.
1341 (gdbpy_finish_initialization): Add call to
1342 do_start_initialization.
1344 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1346 * extension.c (struct scoped_default_signal): New struct.
1347 (scoped_default_sigint): New typedef.
1348 (finish_ext_lang_initialization): Make use of
1349 scoped_default_sigint.
1351 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1353 * main.c (captured_main_1): Don't pass argument to gdb_init.
1354 * top.c (gdb_init): Remove unused argument, and add header
1356 * top.h (gdb_init): Remove argument.
1358 2021-04-27 Luis Machado <luis.machado@linaro.org>
1360 * psymtab.c (psymbol_functions::dump): Output newline.
1362 * symmisc.c (dump_objfile): Likewise.
1364 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1365 Simon Marchi <simon.marchi@polymtl.ca>
1367 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1368 when attaching the 'auto_load_new_objfile' observer, so
1369 other observers can specify it as a dependency.
1370 * gdb/auto-load.h (struct token): Declare
1371 'auto_load_new_objfile_observer_token' as token to be used
1372 for the 'auto_load_new_objfile' observer.
1373 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1374 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1375 observer, so it gets notified after the latter.
1377 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1378 Simon Marchi <simon.marchi@polymtl.ca>
1380 * unittests/observable-selftests.c (dependency_test_counters):
1382 (observer_token0, observer_token1, observer_token2,
1383 observer_token3, observer_token4, observer_token5): New.
1384 (struct dependency_observer_data): New struct.
1385 (observer_dependency_test_callback): New function.
1386 (test_observers): New.
1387 (run_dependency_test): New function.
1388 (test_dependency): New.
1389 (_initialize_observer_selftest): Register dependency test.
1391 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1394 * cli/cli-dump.c (dump_binary_file): Check result of
1397 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1399 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1400 by passing `process_stratum_target*` parameter.
1402 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1405 * typeprint.h (struct type_print_options): Add print_in_hex
1407 (struct print_offset_data): Add print_in_hex flag, add a
1408 constructor accepting a type_print_options* argument.
1409 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1410 default value for print_in_hex.
1411 (print_offset_data::indentation): Allow more horizontal space.
1412 (print_offset_data::print_offset_data): Add ctor.
1413 (print_offset_data::maybe_print_hole, print_offset_data::update):
1414 Handle the print_in_hex flag.
1415 (whatis_exp): Handle 'x' and 'd' flags.
1416 (print_offsets_and_sizes_in_hex): Declare.
1417 (set_print_offsets_and_sizes_in_hex): Create.
1418 (show_print_offsets_and_sizes_in_hex): Create.
1419 (_initialize_typeprint): Update help message for the ptype
1420 command, register the 'set print type hex' and 'show print type
1422 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1423 (c_type_print_base): Construct the print_offset_data
1424 object using the type_print_optons parameter.
1425 * rust-lang.c (rust_language::print_type): Construct the
1426 print_offset_data object using the type_print_optons parameter.
1427 * NEWS: Mention the new flags of the ptype command.
1429 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1431 * typeprint.h (struct type_print_options): Move before
1434 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1438 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1440 * observable.c (observer_debug): Change to bool.
1442 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1444 * dwarf2/read.c: Add 'unordered_set' include.
1445 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1446 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1447 of per_Bfd->filenames_cache cache, and use function local
1448 filenames_cache instead. Reindent.
1449 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1451 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1453 * breakpoint.c (iterate_over_bp_locations): Change callback to
1454 function view, remove data parameter.
1455 * breakpoint.h (iterate_over_bp_locations): Likewise.
1456 * record-full.c (record_full_sync_record_breakpoints): Remove
1459 2021-04-22 Tom Tromey <tom@tromey.com>
1461 * c-typeprint.c (c_type_print_base_struct_union): Use
1462 print_spaces_filtered_with_print_options.
1464 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1467 * python/py-type.c (typy_range): Check that bounds are constant
1468 before accessing them as such.
1469 * guile/scm-type.c (gdbscm_type_range): Likewise.
1471 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1473 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1474 * inferior.c (inferior::add_continuation): New method, adapted
1475 from 'add_inferior_continuation'.
1476 (inferior::do_all_continuations): New method, adapted from
1477 'do_all_inferior_continuations'.
1478 (inferior::~inferior): Clear the list of continuations directly.
1479 * inferior.h (class inferior) <continuations>: Rename into...
1480 <m_continuations>: ...this and make private.
1481 * continuations.c: Remove.
1482 * continuations.h: Remove.
1483 * event-top.c: Don't include "continuations.h".
1485 Update the users below.
1486 * inf-loop.c (inferior_event_handler)
1487 * infcmd.c (attach_command)
1488 (notice_new_inferior): Update.
1490 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1492 * inferior.h (class inferior) <continuations>: Change the type
1493 to be an std::list of std::function's.
1494 Update the references and uses below.
1495 * continuations.c (struct continuation): Delete.
1496 (make_continuation): Delete.
1497 (do_my_continuations_1): Delete.
1498 (do_my_continuations): Delete.
1499 (discard_my_continuations_1): Delete.
1500 (discard_my_continuations): Delete.
1501 (add_inferior_continuation): Update.
1502 (do_all_inferior_continuations): Update.
1503 (discard_all_inferior_continuations): Update.
1504 * continuations.h (add_inferior_continuation): Update to take
1505 an std::function as the parameter.
1506 * infcmd.c (struct attach_command_continuation_args): Delete.
1507 (attach_command_continuation): Delete.
1508 (attach_command_continuation_free_args): Delete.
1509 (attach_command): Update.
1510 (notice_new_inferior): Update.
1512 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1514 * continuations.h: Update the general comment.
1515 * inferior.h (class inferior) <continuations>: Update the comment.
1516 * interps.c: Do not include "continuations.h".
1518 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1520 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1521 parameter. Update the references below.
1522 * continuations.c (do_my_continuations_1)
1523 (do_my_continuations)
1524 (do_all_inferior_continuations): Update.
1525 * inf-loop.c (inferior_event_handler): Update.
1526 * infcmd.c (attach_command_continuation): Update.
1528 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1530 * infcmd.c (attach_post_wait): Update the function comment.
1532 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1534 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1535 Update the references below.
1536 (struct attach_command_continuation_args)
1537 (attach_command_continuation)
1538 (attach_command_continuation_free_args)
1540 (notice_new_inferior): Update to remove the reference to 'args'.
1542 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1543 Tom de Vries <tdevries@suse.de>
1546 * remote.c (remote_target_is_non_stop_p): New function.
1547 * remote.h (remote_target_is_non_stop_p): Declare.
1548 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1549 to check non-stopness using notif_state->remote rather current target.
1551 2021-04-22 Tom Tromey <tom@tromey.com>
1553 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1554 (struct typed_val_int) <val>: Now ULONGEST.
1555 (rust_parser::parse_array_type): Remove negative check.
1556 (rust_lex_int_test): Change 'value' to ULONGEST.
1558 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1560 * arch-utils.c (default_addressable_memory_unit_size): Return a
1561 value based on bfd's bits per byte.
1563 2021-04-21 Tom Tromey <tom@tromey.com>
1565 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1567 (struct dwarf2_per_cu_data): Rearrange.
1568 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1570 (struct comp_unit_head): Rearrange.
1571 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1573 2021-04-21 Tom de Vries <tdevries@suse.de>
1576 * configure.ac: Remove --without-included-regex/--with-included-regex.
1577 * config.in: Regenerate.
1578 * configure: Regenerate.
1579 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1581 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1583 * breakpoint.h (create_breakpoint): Add a new parameter,
1585 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1586 argument when 'parse_extra' is false to check if the condition
1587 is invalid at all of the breakpoint locations.
1588 Update the users below.
1594 (create_tracepoint_from_upload): Update.
1595 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1596 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1597 * python/py-breakpoint.c (bppy_init): Update.
1598 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1600 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1602 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1603 disabled-by-condition locations on MI-like output.
1604 (breakpoint_1): Do not display the disabled-by-condition footnote
1605 if the output is MI-like.
1607 2021-04-21 Frederic Cambus <fred@statdns.com>
1609 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1610 update year range in generated copyright notices.
1612 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1614 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1615 qualifier_seq_noopt.
1617 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1619 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1621 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1623 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1624 (producer_is_icc): Replace use of std::regex with gdb's
1627 2021-04-17 Tom Tromey <tom@tromey.com>
1630 * dwarf2/read.c (class offset_view): New.
1631 (struct symbol_table_slot): Remove.
1632 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1633 <symbol_name_index, symbol_vec_index>: New methods.
1634 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1636 (read_gdb_index_from_buffer): Update.
1637 (struct dw2_symtab_iterator) <vec>: Change type.
1638 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1639 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1640 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1641 <append_array, append_offset>: New methods.
1642 (write_hash_table, add_address_entry, write_gdbindex_1)
1643 (write_debug_names): Update.
1644 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1646 2021-04-17 Tom Tromey <tom@tromey.com>
1648 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1651 2021-04-17 Tom Tromey <tom@tromey.com>
1653 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1654 from map_matching_symbols. Change parameters.
1655 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1656 Rename from map_matching_symbols. Change parameters.
1657 * dwarf2/read.c (struct dwarf2_gdb_index)
1658 <expand_matching_symbols>: Rename from map_matching_symbols.
1660 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1661 Rename from map_matching_symbols. Change parameters.
1662 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1663 dw2_map_matching_symbols. Change parameters.
1664 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1666 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1667 map_matching_symbols. Change parameters.
1668 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1669 from map_matching_symbols. Change parameters.
1670 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1671 map_matching_symbols. Change parameters.
1672 * ada-lang.c (map_matching_symbols): New function.
1673 (add_nonlocal_symbols): Update.
1675 2021-04-17 Tom Tromey <tom@tromey.com>
1677 * quick-symbol.h (struct quick_symbol_functions)
1678 <expand_symtabs_with_fullname>: Remove.
1679 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1681 * psympriv.h (struct psymbol_functions)
1682 <expand_symtabs_with_fullname>: Remove.
1683 * dwarf2/read.c (struct dwarf2_base_index_functions)
1684 <expand_symtabs_with_fullname>: Remove.
1685 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1687 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1689 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1692 2021-04-17 Tom Tromey <tom@tromey.com>
1694 * symfile-debug.c (objfile::expand_symtabs_for_function):
1696 * quick-symbol.h (struct quick_symbol_functions)
1697 <expand_symtabs_for_function>: Remove.
1698 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1700 * psympriv.h (struct psymbol_functions)
1701 <expand_symtabs_for_function>: Remove.
1702 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1704 * dwarf2/read.c (struct dwarf2_gdb_index)
1705 <expand_symtabs_for_function>: Remove.
1706 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1708 (find_slot_in_mapped_hash): Remove.
1709 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1710 (dw2_symtab_iter_init): Remove one overload.
1711 (dwarf2_gdb_index::expand_symtabs_for_function)
1712 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1714 2021-04-17 Tom Tromey <tom@tromey.com>
1716 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1718 * quick-symbol.h (struct quick_symbol_functions)
1719 <map_symtabs_matching_filename>: Remove.
1720 * psymtab.c (partial_map_expand_apply)
1721 (psymbol_functions::map_symtabs_matching_filename): Remove.
1722 * psympriv.h (struct psymbol_functions)
1723 <map_symtabs_matching_filename>: Remove.
1724 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1726 * dwarf2/read.c (struct dwarf2_base_index_functions)
1727 <map_symtabs_matching_filename>: Remove.
1728 (dw2_map_expand_apply)
1729 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1732 2021-04-17 Tom Tromey <tom@tromey.com>
1734 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1735 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1737 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1738 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1739 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1740 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1742 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1743 (dwarf2_gdb_index::lookup_symbol)
1744 (dwarf2_debug_names_index::lookup_symbol): Remove.
1746 2021-04-17 Tom Tromey <tom@tromey.com>
1748 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1749 * symmisc.c (maintenance_expand_symtabs): Update.
1750 * symfile.c (expand_symtabs_matching): Update.
1751 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1753 * quick-symbol.h (struct quick_symbol_functions)
1754 <expand_symtabs_matching>: Add 'domain' parameter.
1755 * psymtab.c (recursively_search_psymtabs)
1756 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1758 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1759 Add 'domain' parameter.
1760 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1762 * linespec.c (iterate_over_all_matching_symtabs): Update.
1763 * dwarf2/read.c (struct dwarf2_gdb_index)
1764 <expand_symtabs_matching>: Add 'domain' parameter.
1765 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1767 (dw2_expand_symtabs_matching)
1768 (dwarf2_gdb_index::expand_symtabs_matching)
1769 (dw2_debug_names_iterator)
1770 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1773 2021-04-17 Tom Tromey <tom@tromey.com>
1775 * symtab.c (global_symbol_searcher::expand_symtabs)
1776 (default_collect_symbol_completion_matches_break_on): Update.
1777 * symmisc.c (maintenance_expand_symtabs): Update.
1778 * symfile.h (expand_symtabs_matching): Add search_flags
1780 * symfile.c (expand_symtabs_matching): Add search_flags
1782 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1783 search_flags parameter.
1784 * quick-symbol.h (struct quick_symbol_functions)
1785 <expand_symtabs_matching>: Add search_flags parameter.
1786 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1787 * psymtab.c (recursively_search_psymtabs)
1788 (psymbol_functions::expand_symtabs_matching): Add search_flags
1790 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1791 Add search_flags parameter.
1792 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1793 search_flags parameter.
1794 * linespec.c (iterate_over_all_matching_symtabs): Update.
1795 * dwarf2/read.c (struct dwarf2_gdb_index)
1796 <expand_symtabs_matching>: Add search_flags parameter.
1797 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1798 search_flags parameter.
1799 (dw2_map_matching_symbols): Update.
1800 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1801 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1803 (dw2_debug_names_iterator): Change block_index to search flags.
1804 <m_block_index>: Likewise.
1805 (dw2_debug_names_iterator::next)
1806 (dwarf2_debug_names_index::lookup_symbol)
1807 (dwarf2_debug_names_index::expand_symtabs_for_function)
1808 (dwarf2_debug_names_index::map_matching_symbols)
1809 (dwarf2_debug_names_index::map_matching_symbols): Update.
1810 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1811 search_flags parameter.
1812 * ada-lang.c (ada_add_global_exceptions)
1813 (collect_symbol_completion_matches): Update.
1815 2021-04-17 Tom Tromey <tom@tromey.com>
1817 * symtab.c (default_collect_symbol_completion_matches_break_on):
1819 * symfile.h (expand_symtabs_matching): Return bool.
1820 * symfile.c (expand_symtabs_matching): Return bool.
1821 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1823 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1824 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1826 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1828 * psympriv.h (struct psymbol_functions)
1829 <expand_symtabs_matching>: Return bool.
1830 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1832 * dwarf2/read.c (struct dwarf2_gdb_index)
1833 <expand_symtabs_matching>: Return bool.
1834 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1836 (dw2_expand_symtabs_matching_symbol): Return bool.
1837 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1838 (dw2_expand_symtabs_matching)
1839 (dwarf2_gdb_index::expand_symtabs_matching)
1840 (dwarf2_debug_names_index::expand_symtabs_matching)
1841 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1843 2021-04-17 Tom Tromey <tom@tromey.com>
1845 * quick-symbol.h (enum block_search_flag_values): New.
1846 (block_search_flags): New enum flags type.
1848 2021-04-16 Tom Tromey <tom@tromey.com>
1850 * rust-parse.c: New file.
1851 * rust-exp.y: Remove.
1852 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1853 (SFILES): Remove rust-exp.y.
1854 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1856 2021-04-16 Luis Machado <luis.machado@linaro.org>
1858 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1860 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1862 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1863 use throughout file.
1865 2021-04-15 Tom Tromey <tromey@adacore.com>
1867 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1870 2021-04-15 Tom Tromey <tromey@adacore.com>
1872 * printcmd.c (print_variable_and_value): Use
1873 common_val_print_checked.
1875 2021-04-15 Tom Tromey <tromey@adacore.com>
1877 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1878 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1880 * p-exp.y (variable): Update.
1881 * m2-exp.y (variable): Update.
1882 * go-exp.y (variable): Update.
1883 * expprint.c (dump_for_expression): New overload.
1884 * expop.h (check_objfile): New overload.
1885 (check_constant): New overload.
1886 (class var_value_operation): Use block_symbol.
1887 <get_symbol>: Rewrite.
1888 * eval.c (var_value_operation::evaluate)
1889 (var_value_operation::evaluate_funcall)
1890 (var_value_operation::evaluate_for_address)
1891 (var_value_operation::evaluate_for_address)
1892 (var_value_operation::evaluate_with_coercion)
1893 (var_value_operation::evaluate_for_sizeof)
1894 (var_value_operation::evaluate_for_cast): Update.
1895 * d-exp.y (PrimaryExpression): Update.
1896 * c-exp.y (variable): Update.
1897 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1898 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1899 (ada_var_value_operation::evaluate)
1900 (ada_var_value_operation::resolve)
1901 (ada_funcall_operation::resolve): Update.
1902 * ada-exp.y (write_var_from_sym, write_object_renaming)
1903 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1904 (maybe_overload): Update.
1905 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1907 2021-04-15 Tom Tromey <tom@tromey.com>
1908 Andrew Burgess <andrew.burgess@embecosm.com>
1911 * main.c (captured_main_1): Call check_quiet_mode.
1912 * top.c (startup_quiet): New global.
1913 (check_quiet_mode): New function.
1914 (show_startup_quiet): New function.
1915 (init_main): Register new command.
1916 * top.h (check_quiet_mode): Declare.
1918 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1921 * NEWS: Mention new early init files and command line options.
1922 * config.in: Regenerate.
1923 * configure: Regenerate.
1924 * configure.ac: Define GDBEARLYINIT.
1925 * main.c (get_earlyinit_files): New function.
1926 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1927 CMDARG_EARLYINIT_COMMAND.
1928 (captured_main_1): Add support for new command line flags, and for
1929 processing startup files.
1930 (print_gdb_help): Include startup files in the output.
1932 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1934 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1935 (relocate_file_path_maybe_in_datadir): ...this.
1936 (class gdb_initfile_finder): New class.
1937 (get_init_files): Now uses gdb_initfile_finder.
1938 (print_gdb_help): Print 'None found' when there are no init files.
1940 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1942 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1943 corresponding child of the abstract DIE when iterating the
1944 children of the concrete DIE.
1946 2021-04-13 Tom de Vries <tdevries@suse.de>
1948 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1951 2021-04-13 Luis Machado <luis.machado@linaro.org>
1953 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1956 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1958 * rs6000-tdep.c: Add support for single-stepping of
1959 prefixed instructions.
1961 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1964 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1965 handle the addpcis/lnia instruction.
1967 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1969 * MAINTAINERS (Write After Approval): Add myself.
1971 2021-4-12 Carl Love <cel@us.ibm.com>
1973 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1974 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1977 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1979 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1980 * nat/windows-nat.h: Likewise.
1982 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1984 * windows-nat.c (windows_nat::handle_load_dll): Call
1985 windows_add_dll if get_image_name failed to glean the name of the
1986 DLL by using the lpImageName pointer.
1987 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1988 (windows_add_dll): Now does what windows_add_all_dlls did before,
1989 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1990 specifies the address where the DLL was loaded into the inferior,
1991 and looks for the single DLL loaded at that address.
1993 2021-04-09 Luis Machado <luis.machado@linaro.org>
1995 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1997 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1999 * darwin-nat.c (darwin_nat_target::resume): Remove status
2002 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2004 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
2005 prologue end for Intel compilers.
2006 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2007 * producer.c (producer_is_icc_ge_19): New function.
2008 * producer.h (producer_is_icc_ge_19): New declaration.
2010 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
2012 * producer.c: (producer_is_icc): Update for new version scheme.
2013 (producer_parsing_tests): Update names and expected results.
2014 * producer.h: (producer_is_icc): Update comment accordingly.
2016 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
2018 * target.h (struct target_ops) <follow_fork>: Return void.
2019 (target_follow_fork): Likewise.
2020 * target.c (default_follow_fork): Likewise.
2021 (target_follow_fork): Likewise.
2022 * infrun.c (follow_fork_inferior): Adjust.
2023 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
2024 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
2025 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
2026 * linux-nat.c (linux_nat_target::follow_fork): Return void.
2027 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
2028 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
2029 * remote.c (class remote_target) <follow_fork>: Likewise.
2030 (remote_target::follow_fork): Likewise.
2031 * target-delegates.c: Re-generate.
2033 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
2035 * ctfread.c (fetch_tid_type): New function, use throughout file.
2036 (read_forward_type): New function.
2037 (read_type_record): Call read_forward_type.
2039 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2041 * f-exp.h (class fortran_structop_operation): New class.
2042 * f-exp.y (exp): Create fortran_structop_operation instead of the
2043 generic structop_operation.
2044 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2045 expression as EVAL_NORMAL if the result type was dynamic so we can
2046 extract the actual array bounds.
2047 (fortran_structop_operation::evaluate): New function.
2049 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2051 * eval.c (evaluate_subexp_standard): Remove
2052 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2055 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2057 * valops.c (value_cast): Call value_deeply_equal before performing
2060 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2062 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2065 2021-04-07 Caroline Tice <cmtice@google.com>
2067 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2068 the search paths used resolve relative location of .dwo file.
2070 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2072 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2074 (dwarf2_section_info::get_file_name): Add an assert.
2075 (dwarf2_section_info::read_string): Display a minimal, sane error
2076 when the dwarf2_section_info is not associated with a bfd section.
2078 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2080 * top.c (staged_gdb_datadir): Update comment.
2081 (set_gdb_datadir): Copy the value of gdb_datadir back into
2083 (init_main): Initialise staged_gdb_datadir.
2085 2021-04-06 Tom de Vries <tdevries@suse.de>
2087 PR breakpoints/25884
2088 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2091 2021-04-06 Tom de Vries <tdevries@suse.de>
2094 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2097 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2099 * avr-tdep.c (avr_frame_unwind_cache): Use
2100 trad_frame_saved_reg::is_addr.
2102 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2104 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2107 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2109 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2110 objfile parameter for objfile_per_bfd_storage, adjust callers.
2111 (struct standard_psymtab) <standard_psymtab>: Likewise.
2112 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2113 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2114 * ctfread.c (struct ctf_psymtab): Likewise.
2115 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2116 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2117 (dwarf2_create_include_psymtab): Likewise.
2118 * objfiles.h (struct objfile_per_bfd_storage)
2119 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2120 <get_bfd>: New method.
2122 * objfiles.c (get_objfile_bfd_data): Adjust.
2124 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2126 * psymtab.c (partial_symtab::partial_symtab): Change
2127 last_objfile_name to be an std::string.
2128 * symfile.c (allocate_symtab): Likewise.
2130 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2132 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2134 (struct objfile) <intern>: Use
2135 objfile::objfile_per_bfd_storage::intern.
2137 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2139 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2140 with type::is_flag_enum.
2142 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2144 * gdbtypes.h (struct type) <is_flag_enum,
2145 set_is_flag_enum>: New methods.
2146 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2147 write call sites to use type::set_is_flag_enum.
2149 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2151 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2152 with type::is_declared_class.
2154 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2156 * gdbtypes.h (struct type) <is_declared_class,
2157 set_is_declared_class>: New methods.
2158 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2159 write call sites to use type::set_is_declared_class.
2161 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2163 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2164 to avoid deprecation warnings.
2166 2021-04-01 Martin Liska <mliska@suse.cz>
2168 * cp-name-parser.y: Use startswith instead of strncmp.
2169 * m2-exp.y: Likewise.
2170 * macroexp.c (substitute_args): Likewise.
2171 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2172 * rust-exp.y: Likewise.
2174 2021-03-31 Tom Tromey <tom@tromey.com>
2176 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2177 with dw2_map_matching_symbols.
2178 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2179 dw2_expand_symtabs_matching.
2181 2021-03-31 Tom Tromey <tromey@adacore.com>
2183 * dwarf2/stringify.h: Fix typo.
2185 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2188 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2189 with objfiles using READNOW.
2191 2021-03-29 Tom Tromey <tromey@adacore.com>
2193 * top.c (check_frame_language_change): Update.
2194 * language.c (language_info): Remove parameter.
2195 * language.h (language_info): Remove parameter.
2197 2021-03-29 Luis Machado <luis.machado@linaro.org>
2199 * compile/compile.c (get_args): Don't add empty argv entries.
2201 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2204 * procfs.c (procfs_target::attach): Define inf.
2206 (procfs_target::create_inferior): Likewise.
2208 2021-03-28 Tom Tromey <tom@tromey.com>
2210 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2211 (elf_symfile_read): Simplify.
2212 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2213 (make_lazy_dwarf_reader): New function.
2214 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2215 (dwarf2_initialize_objfile): Return void. Remove index_kind
2216 parameter. Push on 'qf' list.
2217 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2218 type. Remove 'index_kind' parameter.
2219 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2221 2021-03-27 Tom Tromey <tom@tromey.com>
2223 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2225 2021-03-27 Tom Tromey <tom@tromey.com>
2227 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2229 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2231 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2234 2021-03-26 Tom Tromey <tom@tromey.com>
2236 * symtab.c (struct output_source_filename_data): Add 'output'
2237 method and operator().
2238 (output_source_filename_data::output): Rename from
2239 output_source_filename.
2240 (output_partial_symbol_filename): Remove.
2241 (info_sources_command): Update.
2242 (struct add_partial_filename_data): Add operator().
2243 (add_partial_filename_data::operator()): Rename from
2244 maybe_add_partial_symtab_filename.
2245 (make_source_files_completion_list): Update.
2246 * symfile.c (quick_symbol_functions): Update.
2247 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2248 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2249 'need_fullname'. Remove 'data' parameter.
2250 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2251 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2252 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2253 Change type of 'fun' and 'need_fullname'. Remove 'data'
2255 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2256 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2257 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2259 (mi_cmd_file_list_exec_source_files): Update.
2261 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2263 2021-03-26 Tom Tromey <tom@tromey.com>
2265 * ada-lang.c (struct match_data): Add operator().
2266 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2267 (callback): Remove 'callback'.
2269 2021-03-26 Tom Tromey <tom@tromey.com>
2271 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2272 call make_ignore_params once.
2274 2021-03-26 Tom Tromey <tom@tromey.com>
2276 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2279 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2280 Pedro Alves <pedro@palves.net>
2282 * async-event.c: Include "infrun.h".
2283 (async_event_handler_marked): New.
2284 * async-event.h (async_event_handler_marked): Declare.
2285 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2286 inferior before calling target method. Don't commit-resumed if
2287 target_has_pending_events is true.
2288 * remote.c (remote_target::has_pending_events): New.
2289 * target-delegates.c: Regenerate.
2290 * target.c (target_has_pending_events): New.
2291 * target.h (target_ops::has_pending_events): New target method.
2292 (target_has_pending_events): New.
2294 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2295 Pedro Alves <pedro@palves.net>
2297 * infcmd.c (run_command_1, attach_command, detach_command)
2298 (interrupt_target_1): Use scoped_disable_commit_resumed.
2299 * infrun.c (do_target_resume): Remove
2300 target_commit_resume call.
2301 (commit_resume_all_targets): Remove.
2302 (maybe_set_commit_resumed_all_targets): New.
2303 (maybe_call_commit_resumed_all_targets): New.
2304 (enable_commit_resumed): New.
2305 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2306 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2307 (scoped_disable_commit_resumed::reset)
2308 (scoped_disable_commit_resumed::reset_and_commit)
2309 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2310 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2312 (proceed): Use scoped_disable_commit_resumed and
2313 maybe_call_commit_resumed_all_targets.
2314 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2315 * infrun.h (struct scoped_disable_commit_resumed): New.
2316 (maybe_call_commit_resumed_all_process_targets): New.
2317 (struct scoped_enable_commit_resumed): New.
2318 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2319 * process-stratum-target.h (class process_stratum_target):
2320 <commit_resumed_state>: New.
2321 * record-full.c (record_full_wait_1): Change commit_resumed_state
2322 around calling commit_resumed.
2323 * remote.c (class remote_target) <commit_resume>: Rename to...
2324 <commit_resumed>: ... this.
2325 (struct stop_reply): Move up.
2326 (remote_target::commit_resume): Rename to...
2327 (remote_target::commit_resumed): ... this. Check if there is any
2328 thread pending vCont resume.
2329 (remote_target::remote_stop_ns): Generate stop replies for resumed
2330 but pending vCont threads.
2331 (remote_target::wait_ns): Add gdb_assert.
2332 * target-delegates.c: Regenerate.
2333 * target.c (target_wait, target_resume): Assert that the current
2334 process_stratum target isn't in commit-resumed state.
2335 (defer_target_commit_resume): Remove.
2336 (target_commit_resume): Remove.
2337 (target_commit_resumed): New.
2338 (make_scoped_defer_target_commit_resume): Remove.
2339 (target_stop): Assert that the current process_stratum target
2340 isn't in commit-resumed state.
2341 * target.h (struct target_ops) <commit_resume>: Rename to ...
2342 <commit_resumed>: ... this.
2343 (target_commit_resume): Remove.
2344 (target_commit_resumed): New.
2345 (make_scoped_defer_target_commit_resume): Remove.
2346 * top.c (wait_sync_command_done): Use
2347 scoped_enable_commit_resumed.
2349 2021-03-26 Pedro Alves <pedro@palves.net>
2351 * target.c (target_always_non_stop_p): Also check whether the
2354 2021-03-26 Tom Tromey <tom@tromey.com>
2356 * dwarf2/read.c (dwarf2_read_debug_names)
2357 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2358 (dw2_debug_names_iterator::next, create_type_unit_group):
2361 2021-03-25 Pedro Alves <pedro@palves.net>
2363 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2364 around setting the breakpoint.
2366 2021-03-25 Pedro Alves <pedro@palves.net>
2369 (remote_target::check_pending_events_prevent_wildcard_vcont):
2370 Check whether the event's ptid is not null_ptid before looking up
2371 the corresponding inferior.
2373 2021-03-24 Changbin Du <changbin.du@gmail.com>
2375 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2378 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2380 * target.h (current_top_target): Remove, make callers use the
2381 current inferior instead.
2382 * target.c (current_top_target): Remove.
2384 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2386 * target.h (target_shortname): Change to function declaration.
2387 (target_longname): Likewise.
2388 (target_attach_no_wait): Likewise.
2389 (target_post_attach): Likewise.
2390 (target_prepare_to_store): Likewise.
2391 (target_supports_enable_disable_tracepoint): Likewise.
2392 (target_supports_string_tracing): Likewise.
2393 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2394 (target_supports_dumpcore): Likewise.
2395 (target_dumpcore): Likewise.
2396 (target_can_run_breakpoint_commands): Likewise.
2397 (target_files_info): Likewise.
2398 (target_post_startup_inferior): Likewise.
2399 (target_insert_fork_catchpoint): Likewise.
2400 (target_remove_fork_catchpoint): Likewise.
2401 (target_insert_vfork_catchpoint): Likewise.
2402 (target_remove_vfork_catchpoint): Likewise.
2403 (target_insert_exec_catchpoint): Likewise.
2404 (target_remove_exec_catchpoint): Likewise.
2405 (target_set_syscall_catchpoint): Likewise.
2406 (target_rcmd): Likewise.
2407 (target_can_lock_scheduler): Likewise.
2408 (target_can_async_p): Likewise.
2409 (target_is_async_p): Likewise.
2410 (target_execution_direction): Likewise.
2411 (target_extra_thread_info): Likewise.
2412 (target_pid_to_exec_file): Likewise.
2413 (target_thread_architecture): Likewise.
2414 (target_find_memory_regions): Likewise.
2415 (target_make_corefile_notes): Likewise.
2416 (target_get_bookmark): Likewise.
2417 (target_goto_bookmark): Likewise.
2418 (target_stopped_by_watchpoint): Likewise.
2419 (target_stopped_by_sw_breakpoint): Likewise.
2420 (target_supports_stopped_by_sw_breakpoint): Likewise.
2421 (target_stopped_by_hw_breakpoint): Likewise.
2422 (target_supports_stopped_by_hw_breakpoint): Likewise.
2423 (target_have_steppable_watchpoint): Likewise.
2424 (target_can_use_hardware_watchpoint): Likewise.
2425 (target_region_ok_for_hw_watchpoint): Likewise.
2426 (target_can_do_single_step): Likewise.
2427 (target_insert_watchpoint): Likewise.
2428 (target_remove_watchpoint): Likewise.
2429 (target_insert_hw_breakpoint): Likewise.
2430 (target_remove_hw_breakpoint): Likewise.
2431 (target_can_accel_watchpoint_condition): Likewise.
2432 (target_can_execute_reverse): Likewise.
2433 (target_get_ada_task_ptid): Likewise.
2434 (target_filesystem_is_local): Likewise.
2435 (target_trace_init): Likewise.
2436 (target_download_tracepoint): Likewise.
2437 (target_can_download_tracepoint): Likewise.
2438 (target_download_trace_state_variable): Likewise.
2439 (target_enable_tracepoint): Likewise.
2440 (target_disable_tracepoint): Likewise.
2441 (target_trace_start): Likewise.
2442 (target_trace_set_readonly_regions): Likewise.
2443 (target_get_trace_status): Likewise.
2444 (target_get_tracepoint_status): Likewise.
2445 (target_trace_stop): Likewise.
2446 (target_trace_find): Likewise.
2447 (target_get_trace_state_variable_value): Likewise.
2448 (target_save_trace_data): Likewise.
2449 (target_upload_tracepoints): Likewise.
2450 (target_upload_trace_state_variables): Likewise.
2451 (target_get_raw_trace_data): Likewise.
2452 (target_get_min_fast_tracepoint_insn_len): Likewise.
2453 (target_set_disconnected_tracing): Likewise.
2454 (target_set_circular_trace_buffer): Likewise.
2455 (target_set_trace_buffer_size): Likewise.
2456 (target_set_trace_notes): Likewise.
2457 (target_get_tib_address): Likewise.
2458 (target_set_permissions): Likewise.
2459 (target_static_tracepoint_marker_at): Likewise.
2460 (target_static_tracepoint_markers_by_strid): Likewise.
2461 (target_traceframe_info): Likewise.
2462 (target_use_agent): Likewise.
2463 (target_can_use_agent): Likewise.
2464 (target_augmented_libraries_svr4_read): Likewise.
2465 (target_log_command): Likewise.
2466 * target.c (target_shortname): New.
2467 (target_longname): New.
2468 (target_attach_no_wait): New.
2469 (target_post_attach): New.
2470 (target_prepare_to_store): New.
2471 (target_supports_enable_disable_tracepoint): New.
2472 (target_supports_string_tracing): New.
2473 (target_supports_evaluation_of_breakpoint_conditions): New.
2474 (target_supports_dumpcore): New.
2475 (target_dumpcore): New.
2476 (target_can_run_breakpoint_commands): New.
2477 (target_files_info): New.
2478 (target_post_startup_inferior): New.
2479 (target_insert_fork_catchpoint): New.
2480 (target_remove_fork_catchpoint): New.
2481 (target_insert_vfork_catchpoint): New.
2482 (target_remove_vfork_catchpoint): New.
2483 (target_insert_exec_catchpoint): New.
2484 (target_remove_exec_catchpoint): New.
2485 (target_set_syscall_catchpoint): New.
2487 (target_can_lock_scheduler): New.
2488 (target_can_async_p): New.
2489 (target_is_async_p): New.
2490 (target_execution_direction): New.
2491 (target_extra_thread_info): New.
2492 (target_pid_to_exec_file): New.
2493 (target_thread_architecture): New.
2494 (target_find_memory_regions): New.
2495 (target_make_corefile_notes): New.
2496 (target_get_bookmark): New.
2497 (target_goto_bookmark): New.
2498 (target_stopped_by_watchpoint): New.
2499 (target_stopped_by_sw_breakpoint): New.
2500 (target_supports_stopped_by_sw_breakpoint): New.
2501 (target_stopped_by_hw_breakpoint): New.
2502 (target_supports_stopped_by_hw_breakpoint): New.
2503 (target_have_steppable_watchpoint): New.
2504 (target_can_use_hardware_watchpoint): New.
2505 (target_region_ok_for_hw_watchpoint): New.
2506 (target_can_do_single_step): New.
2507 (target_insert_watchpoint): New.
2508 (target_remove_watchpoint): New.
2509 (target_insert_hw_breakpoint): New.
2510 (target_remove_hw_breakpoint): New.
2511 (target_can_accel_watchpoint_condition): New.
2512 (target_can_execute_reverse): New.
2513 (target_get_ada_task_ptid): New.
2514 (target_filesystem_is_local): New.
2515 (target_trace_init): New.
2516 (target_download_tracepoint): New.
2517 (target_can_download_tracepoint): New.
2518 (target_download_trace_state_variable): New.
2519 (target_enable_tracepoint): New.
2520 (target_disable_tracepoint): New.
2521 (target_trace_start): New.
2522 (target_trace_set_readonly_regions): New.
2523 (target_get_trace_status): New.
2524 (target_get_tracepoint_status): New.
2525 (target_trace_stop): New.
2526 (target_trace_find): New.
2527 (target_get_trace_state_variable_value): New.
2528 (target_save_trace_data): New.
2529 (target_upload_tracepoints): New.
2530 (target_upload_trace_state_variables): New.
2531 (target_get_raw_trace_data): New.
2532 (target_get_min_fast_tracepoint_insn_len): New.
2533 (target_set_disconnected_tracing): New.
2534 (target_set_circular_trace_buffer): New.
2535 (target_set_trace_buffer_size): New.
2536 (target_set_trace_notes): New.
2537 (target_get_tib_address): New.
2538 (target_set_permissions): New.
2539 (target_static_tracepoint_marker_at): New.
2540 (target_static_tracepoint_markers_by_strid): New.
2541 (target_traceframe_info): New.
2542 (target_use_agent): New.
2543 (target_can_use_agent): New.
2544 (target_augmented_libraries_svr4_read): New.
2545 (target_log_command): New.
2546 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2547 * infrun.c (set_schedlock_func): Adjust.
2548 * mi/mi-main.c (exec_reverse_continue): Adjust.
2549 * reverse.c (exec_reverse_once): Adjust.
2550 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2551 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2552 * remote-sim.c (gdbsim_target::detach): Adjust.
2553 (gdbsim_target::files_info): Adjust.
2555 2021-03-24 Tom Tromey <tom@tromey.com>
2557 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2558 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2559 (check_match, dw2_expand_symtabs_matching)
2560 (dwarf2_debug_names_index::map_matching_symbols)
2561 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2563 2021-03-24 Keith Seitz <keiths@redhat.com>
2565 * compile/compile-cplus-types.c
2566 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2569 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2571 * gdbarch.sh (gdbarch_data_registry): Make static.
2572 * gdbarch.c: Re-generate.
2574 2021-03-24 Luis Machado <luis.machado@linaro.org>
2576 * NEWS: Mention memory tagging changes.
2578 2021-03-24 Luis Machado <luis.machado@linaro.org>
2580 * printcmd.c (decode_format): Handle the 'm' modifier.
2581 (do_examine): Display allocation tags when required/supported.
2582 (should_validate_memtags): New function.
2583 (print_command_1): Display memory tag mismatches.
2584 * valprint.c (show_memory_tag_violations): New function.
2585 (value_print_option_defs): Add new option "memory-tag-violations".
2586 (user_print_options) <memory_tag_violations>: Initialize to 1.
2587 * valprint.h (struct format_data) <print_tags>: New field.
2588 (value_print_options) <memory_tag_violations>: New field.
2590 2021-03-24 Luis Machado <luis.machado@linaro.org>
2592 * printcmd.c: Include gdbsupport/rsp-low.h.
2593 (memory_tag_list): New static global.
2594 (process_print_command_args): Factored out of
2596 (print_command_1): Use process_print_command_args.
2597 (show_addr_not_tagged, show_memory_tagging_unsupported)
2598 (memory_tag_command, memory_tag_print_tag_command)
2599 (memory_tag_print_logical_tag_command)
2600 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2601 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2602 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2604 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2606 2021-03-24 Luis Machado <luis.machado@linaro.org>
2608 * aarch64-linux-tdep.c
2609 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2610 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2612 2021-03-24 Luis Machado <luis.machado@linaro.org>
2614 * aarch64-linux-tdep.c
2615 (aarch64_linux_report_signal_info): New function.
2616 (aarch64_linux_init_abi): Register
2617 aarch64_linux_report_signal_info as the report_signal_info hook.
2618 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2619 (SEGV_MTESERR): Define.
2621 2021-03-24 Luis Machado <luis.machado@linaro.org>
2623 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2624 (aarch64_linux_ltag_tests): New function.
2625 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2627 2021-03-24 Luis Machado <luis.machado@linaro.org>
2629 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2630 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2631 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2632 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2634 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2635 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2636 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2637 (aarch64_linux_get_ltag): New functions.
2638 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2639 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2640 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2641 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2643 2021-03-24 Luis Machado <luis.machado@linaro.org>
2645 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2647 (struct smaps_data): New struct.
2648 (decode_vmflags): Handle the 'mt' flag.
2649 (parse_smaps_data): New function, refactored from
2650 linux_find_memory_regions_full.
2651 (linux_address_in_memtag_page): New function.
2652 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2653 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2655 2021-03-24 Luis Machado <luis.machado@linaro.org>
2657 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2658 instead of char arrays.
2660 2021-03-24 Luis Machado <luis.machado@linaro.org>
2662 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2663 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2664 nat/aarch64-mte-linux-ptrace.h.
2665 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2666 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2668 <fetch_memtags>: New method override.
2669 <store_memtags>: New method override.
2670 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2671 (aarch64_linux_nat_target::fetch_memtags): New method.
2672 (aarch64_linux_nat_target::store_memtags): New method.
2673 * arch/aarch64-mte-linux.c: New file.
2674 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2675 (AARCH64_MTE_GRANULE_SIZE): Define.
2676 (aarch64_memtag_type): New enum.
2677 (aarch64_mte_get_tag_granules): New prototype.
2678 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2679 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2680 * nat/aarch64-mte-linux-ptrace.c: New file.
2681 * nat/aarch64-mte-linux-ptrace.h: New file.
2683 2021-03-24 Luis Machado <luis.machado@linaro.org>
2685 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2686 * nat/aarch64-mte-linux-ptrace.h: New file.
2688 2021-03-24 Luis Machado <luis.machado@linaro.org>
2690 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2691 (store_mteregs_to_thread): New function.
2692 (aarch64_linux_nat_target::fetch_registers): Update to call
2693 fetch_mteregs_from_thread.
2694 (aarch64_linux_nat_target::store_registers): Update to call
2695 store_mteregs_to_thread.
2696 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2697 (aarch64_cannot_store_register): Handle MTE registers.
2698 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2699 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2700 <has_mte>: New method.
2701 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2703 2021-03-24 Luis Machado <luis.machado@linaro.org>
2705 * aarch64-linux-nat.c
2706 (aarch64_linux_nat_target::read_description): Take MTE flag into
2708 Slight refactor to hwcap flag checking.
2709 * aarch64-linux-tdep.c
2710 (aarch64_linux_core_read_description): Likewise.
2711 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2713 (aarch64_read_description): Add mte_p parameter and update to use it.
2714 Update the documentation.
2715 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2716 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2717 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2718 (aarch64_create_target_description): Add mte_p parameter and update
2720 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2722 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2723 * features/aarch64-mte.c: New file, generated.
2724 * features/aarch64-mte.xml: New file.
2726 2021-03-24 Luis Machado <luis.machado@linaro.org>
2728 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2729 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2730 * aarch64-linux-tdep.c: Likewise
2731 * arch/aarch64-mte-linux.h: New file.
2733 2021-03-24 Luis Machado <luis.machado@linaro.org>
2735 * remote: Include gdbsupport/selftest.h.
2736 (test_memory_tagging_functions): New function.
2737 (_initialize_remote): Register test_memory_tagging_functions.
2739 2021-03-24 Luis Machado <luis.machado@linaro.org>
2741 * remote.c (PACKET_memory_tagging_feature): New enum.
2742 (remote_memory_tagging_p): New function.
2743 (remote_protocol_features): New "memory-tagging" entry.
2744 (remote_target::remote_query_supported): Handle memory tagging
2746 (remote_target::supports_memory_tagging): Implement.
2747 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2748 (create_store_memtags_request): New functions.
2749 (remote_target::fetch_memtags): Implement.
2750 (remote_target::store_memtags): Implement.
2751 (_initialize_remote): Add new "memory-tagging-feature"
2754 2021-03-24 Luis Machado <luis.machado@linaro.org>
2756 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2757 (default_memtag_matches_p, default_set_memtags)
2758 (default_get_memtag): New functions.
2759 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2760 (default_memtag_matches_p, default_set_memtags)
2761 (default_get_memtag): New prototypes.
2762 * gdbarch.c: Regenerate.
2763 * gdbarch.h: Regenerate.
2764 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2765 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2766 (enum memtag_type): New enum.
2768 2021-03-24 Luis Machado <luis.machado@linaro.org>
2770 * remote.c (remote_target) <supports_memory_tagging>: New method
2772 <fetch_memtags>: New method override.
2773 <store_memtags>: New method override.
2774 (remote_target::supports_memory_tagging): New method.
2775 (remote_target::fetch_memtags): New method.
2776 (remote_target::store_memtags): New method.
2777 * target-delegates.c: Regenerate.
2778 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2780 <fetch_memtags>: New virtual method.
2781 <store_memtags>: New virtual method.
2782 (target_supports_memory_tagging): Define.
2783 (target_fetch_memtags): Define.
2784 (target_store_memtags): Define.
2785 * target-debug.h (target_debug_print_size_t)
2786 (target_debug_print_const_gdb_byte_vector_r)
2787 (target_debug_print_gdb_byte_vector_r): New functions.
2789 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2791 * target.h (target_longname): Remove.
2793 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2795 * target.h (target_is_pushed): Remove, update callers to use
2796 inferior::target_is_pushed instead.
2797 * target.c (target_is_pushed): Remove.
2799 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2801 * target.h (push_target): Remove, update callers to use
2802 inferior::push_target.
2803 * target.c (push_target): Remove.
2804 * inferior.h (class inferior) <push_target>: New overload.
2806 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2808 * target.h (unpush_target): Remove, update all callers
2809 to use `inferior::unpush_target` instead.
2810 (struct target_unpusher) <operator()>: Just declare.
2811 * target.c (unpush_target): Remove.
2812 (target_unpusher::operator()): New.
2814 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2816 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2818 (process_full_comp_unit): Validate the top-level tag before
2819 processing the first DIE.
2820 (read_func_scope): Ensure we have a valid builder.
2822 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2824 * objc-lang.c (objc_demangle): Renamed to
2825 objc_language::demangle_symbol, and moved later in the file.
2826 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2828 (objc_language::demangle_symbol): Defined outside of class
2829 declaration. The definition is the old objc_demangle with NULL
2830 changed to nullptr, and if conditions relating to nullptr pointers
2831 or null character checks made explicit.
2832 * objc-lang.h (objc_demangle): Delete declaration.
2834 2021-03-22 Martin Liska <mliska@suse.cz>
2836 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2837 (_initialize_arm_tdep): Likewise.
2839 2021-03-20 Tom Tromey <tom@tromey.com>
2841 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2842 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2843 * psymtab.h (make_psymbol_functions): Don't declare.
2844 * psymtab.c (make_psymbol_functions): Remove.
2845 (maintenance_print_psymbols): Update.
2846 * psympriv.h (struct psymbol_functions): Add no-argument
2848 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2849 <partial_symtabs>: Remove.
2850 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2851 * elfread.c (read_partial_symbols): Update.
2852 (elf_symfile_read): Remove check for existing partial symbols.
2854 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2856 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2858 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2860 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2861 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2863 2021-03-20 Tom Tromey <tom@tromey.com>
2865 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2866 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2867 * symfile-debug.c (objfile::has_partial_symbols)
2868 (objfile::find_last_source_symtab)
2869 (objfile::forget_cached_source_info)
2870 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2871 (objfile::print_stats, objfile::dump)
2872 (objfile::expand_symtabs_for_function)
2873 (objfile::expand_all_symtabs)
2874 (objfile::expand_symtabs_with_fullname)
2875 (objfile::map_matching_symbols)
2876 (objfile::expand_symtabs_matching)
2877 (objfile::find_pc_sect_compunit_symtab)
2878 (objfile::map_symbol_filenames)
2879 (objfile::find_compunit_symtab_by_address)
2880 (objfile::lookup_global_symbol_language)
2881 (objfile::require_partial_symbols): Update.
2882 * psymtab.c (maintenance_print_psymbols)
2883 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2884 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2885 * objfiles.c (objfile_relocate1): Update.
2886 * elfread.c (elf_symfile_read): Update.
2888 2021-03-20 Tom Tromey <tom@tromey.com>
2890 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2892 2021-03-20 Tom Tromey <tom@tromey.com>
2894 * psymtab.c (psymbol_functions::count_psyms): Rename.
2895 (psymbol_functions::print_stats): Update.
2896 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2899 2021-03-20 Tom Tromey <tom@tromey.com>
2901 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2902 (psymbol_functions::find_pc_sect_psymtab): Rename.
2903 (psymbol_functions::find_pc_sect_compunit_symtab)
2904 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2905 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2907 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2909 2021-03-20 Tom Tromey <tom@tromey.com>
2911 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2912 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2913 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2915 (add_psymbol_to_bcache): Remove.
2916 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2917 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2919 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2920 <add_psymbol>: Likewise.
2921 (standard_psymtab, legacy_psymtab): Likewise.
2922 * mdebugread.c (parse_partial_symbols): Update.
2923 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2924 (handle_psymbol_enumerators): Update.
2925 (new_psymtab): Add partial_symtabs parameter.
2926 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2927 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2929 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2930 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2932 * dbxread.c (read_dbx_symtab): Update.
2933 (start_psymtab): Add partial_symtabs parameter.
2934 (dbx_end_psymtab): Update.
2935 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2936 (ctf_psymtab): Add partial_symtabs parameter.
2937 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2939 (scan_partial_symbols): Add partial_symtabs parameter.
2940 (scan_partial_symbols, elfctf_build_psymtabs)
2941 (ctf_psymtab_add_enums): Update.
2943 2021-03-20 Tom Tromey <tom@tromey.com>
2945 * symfile.c (read_symbols): Use objfile method.
2946 * symfile-debug.c (objfile::require_partial_symbols): New method.
2947 * psymtab.h (require_partial_symbols): Don't declare.
2948 * psymtab.c (require_partial_symbols): Use objfile method. Now
2950 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2951 (psymbol_functions::lookup_symbol)
2952 (psymbol_functions::lookup_global_symbol_language)
2953 (psymbol_functions::find_last_source_symtab)
2954 (psymbol_functions::forget_cached_source_info)
2955 (psymbol_functions::print_stats)
2956 (psymbol_functions::expand_symtabs_for_function)
2957 (psymbol_functions::expand_all_symtabs)
2958 (psymbol_functions::expand_symtabs_with_fullname)
2959 (psymbol_functions::map_symbol_filenames)
2960 (psymbol_functions::map_matching_symbols)
2961 (psymbol_functions::expand_symtabs_matching)
2962 (psymbol_functions::find_compunit_symtab_by_address)
2963 (maintenance_print_psymbols, maintenance_info_psymtabs)
2964 (maintenance_check_psymtabs): Update.
2965 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2968 2021-03-20 Tom Tromey <tom@tromey.com>
2970 * xcoffread.c (xcoff_sym_fns): Update.
2971 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2972 * symfile-debug.c (objfile::has_partial_symbols): Use
2973 can_lazily_read_symbols.
2974 (debug_sym_read_psymbols): Remove.
2975 (debug_sym_fns, install_symfile_debug_logging): Update.
2976 * quick-symbol.h (struct quick_symbol_functions)
2977 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2978 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2979 * mipsread.c (ecoff_sym_fns): Update.
2980 * machoread.c (macho_sym_fns): Update.
2981 * elfread.c (struct lazy_dwarf_reader): New.
2982 (elf_symfile_read): Update.
2983 (read_psyms): Now a method of lazy_dwarf_reader.
2984 (elf_sym_fns): Update.
2985 (elf_sym_fns_lazy_psyms): Remove.
2986 * dbxread.c (aout_sym_fns): Update.
2987 * coffread.c (coff_sym_fns): Update.
2989 2021-03-20 Tom Tromey <tom@tromey.com>
2991 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2992 (reread_symbols): Move reset_psymtabs call later.
2993 * objfiles.c (objfile::objfile): Don't initialize
2996 2021-03-20 Tom Tromey <tom@tromey.com>
2998 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2999 set_partial_symtabs.
3000 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3001 * psymtab.h (make_psymbol_functions): Add partial_symtabs
3003 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
3005 (psymbol_functions::find_pc_sect_compunit_symtab)
3006 (psymbol_functions::print_stats, psymbol_functions::dump)
3007 (psymbol_functions::has_symbols): Update.
3008 (make_psymbol_functions, dump_psymtab_addrmap): Add
3009 partial_symtabs parameter.
3010 (maintenance_print_psymbols): Update.
3011 (psymbol_functions::expand_symtabs_matching): Update.
3012 * psympriv.h (struct psymbol_functions): Add constructor.
3013 <m_partial_symtabs>: New member.
3014 <set_partial_symtabs>: New method.
3016 2021-03-20 Tom Tromey <tom@tromey.com>
3018 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
3020 (process_psymtab_comp_unit_reader)
3021 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
3022 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
3023 Reference psymtabs via per_bfd.
3025 2021-03-20 Tom Tromey <tom@tromey.com>
3027 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
3029 (add_address_entry): Remove objfile parameter.
3030 (add_address_entry_worker): Update.
3031 (write_address_map): Replace objfile parameter with per_bfd.
3032 (write_gdbindex, write_psymtabs_to_index): Update.
3034 2021-03-20 Tom Tromey <tom@tromey.com>
3036 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
3037 print_bcache parameter.
3038 * symfile-debug.c (objfile::print_stats): Add print_bcache
3040 * quick-symbol.h (struct quick_symbol_functions)
3041 <print_stats>: Add print_bcache parameter.
3042 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3044 (print_objfile_statistics): Move psymtab code to psymtab.c.
3045 * psymtab.c (count_psyms): Move from symmisc.c.
3046 (psymbol_functions::print_stats): Print partial symbol and bcache
3047 statistics. Add print_bcache parameter.
3048 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3049 (struct objfile) <print_stats>: Add print_bcache parameter.
3050 * maint.c (maintenance_print_statistics): Update.
3052 2021-03-20 Tom Tromey <tom@tromey.com>
3054 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3056 * dwarf2/read.c (create_addrmap_from_index)
3057 (create_addrmap_from_aranges): Set per_bfd addrmap.
3058 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3059 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3061 (dwarf2_read_debug_names): Don't set partial_symtabs.
3062 (dwarf2_initialize_objfile): Likewise.
3064 2021-03-20 Tom Tromey <tom@tromey.com>
3066 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3069 2021-03-20 Tom Tromey <tom@tromey.com>
3071 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3072 (~psymtab_discarder, keep): Update.
3073 <m_objfile>: Remove.
3074 <m_partial_symtabs>: New member.
3075 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3077 2021-03-20 Tom Tromey <tom@tromey.com>
3079 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3080 (xcoff_end_psymtab): Update.
3081 (scan_xcoff_symtab): Add partial_symtabs parameter.
3082 (xcoff_initial_scan): Update.
3083 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3084 * mdebugread.c (mdebug_build_psymtabs): Update.
3085 (parse_partial_symbols): Add partial_symtabs parameter.
3086 * dbxread.c (dbx_symfile_read): Update.
3087 (read_dbx_symtab): Add partial_symtabs parameter.
3088 (read_dbx_symtab): Update.
3089 (dbx_end_psymtab): Add partial_symtabs parameter.
3091 2021-03-20 Tom Tromey <tom@tromey.com>
3093 * quick-symbol.h (struct quick_symbol_functions)
3094 <relocated>: New method.
3095 * psymtab.h (struct psymbol_functions) <relocated>: New
3097 <fill_psymbol_map>: Declare method.
3098 <m_psymbol_map>: New member.
3099 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3100 (psymbol_functions::find_compunit_symtab_by_address): Update.
3101 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3102 (struct objfile) <psymbol_map>: Remove.
3103 * objfiles.c (objfile_relocate1): Update.
3105 2021-03-20 Tom Tromey <tom@tromey.com>
3107 * psympriv.h (struct psymbol_functions): New.
3108 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3109 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3110 (objfile::lookup_global_symbol_language): Update.
3111 * quick-symbol.h (struct quick_symbol_functions): Convert function
3112 pointers to methods. Add virtual destructor.
3113 (quick_symbol_functions_up): New typedef.
3114 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3115 (dwarf2_debug_names_functions): Don't declare.
3116 (make_psymbol_functions): Declare.
3117 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3118 (psymbol_functions::find_pc_sect_compunit_symtab)
3119 (psymbol_functions::lookup_symbol)
3120 (psymbol_functions::lookup_global_symbol_language)
3121 (psymbol_functions::find_last_source_symtab)
3122 (psymbol_functions::forget_cached_source_info)
3123 (psymbol_functions::print_stats, psymbol_functions::dump)
3124 (psymbol_functions::expand_symtabs_for_function)
3125 (psymbol_functions::expand_all_symtabs)
3126 (psymbol_functions::expand_symtabs_with_fullname)
3127 (psymbol_functions::map_symbol_filenames)
3128 (psymbol_functions::map_matching_symbols)
3129 (psymbol_functions::expand_symtabs_matching)
3130 (psymbol_functions::has_symbols)
3131 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3132 (psym_functions): Remove.
3133 (make_psymbol_functions): New function.
3134 * objfiles.h (struct objfile) <qf>: Change type.
3135 * elfread.c (elf_symfile_read): Update.
3136 * dwarf2/read.c (struct dwarf2_base_index_functions)
3137 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3138 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3139 (dwarf2_base_index_functions::find_last_source_symtab)
3140 (dwarf2_base_index_functions::forget_cached_source_info)
3141 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3142 (dwarf2_gdb_index::lookup_symbol)
3143 (dwarf2_base_index_functions::print_stats)
3144 (dwarf2_gdb_index::dump)
3145 (dwarf2_gdb_index::expand_symtabs_for_function)
3146 (dwarf2_base_index_functions::expand_all_symtabs)
3147 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3149 (dwarf2_gdb_index::map_matching_symbols): New method.
3150 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3151 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3152 (dwarf2_base_index_functions::map_symbol_filenames)
3153 (dwarf2_base_index_functions::has_symbols): Rename.
3154 (dwarf2_gdb_index_functions): Remove.
3155 (dwarf2_debug_names_index::lookup_symbol)
3156 (dwarf2_debug_names_index::dump)
3157 (dwarf2_debug_names_index::expand_symtabs_for_function)
3158 (dwarf2_debug_names_index::map_matching_symbols)
3159 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3160 (dwarf2_debug_names_functions): Remove.
3161 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3164 2021-03-20 Tom Tromey <tom@tromey.com>
3166 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3168 * xcoffread.c (xcoff_sym_fns): Update.
3169 * symfile.h (struct sym_fns) <qf>: Remove.
3170 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3171 * symfile-debug.c (objfile::has_partial_symbols)
3172 (objfile::find_last_source_symtab)
3173 (objfile::forget_cached_source_info)
3174 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3175 (objfile::print_stats, objfile::dump)
3176 (objfile::expand_symtabs_for_function)
3177 (objfile::expand_all_symtabs)
3178 (objfile::expand_symtabs_with_fullname)
3179 (objfile::map_matching_symbols)
3180 (objfile::expand_symtabs_matching)
3181 (objfile::find_pc_sect_compunit_symtab)
3182 (objfile::map_symbol_filenames)
3183 (objfile::find_compunit_symtab_by_address)
3184 (objfile::lookup_global_symbol_language, debug_sym_fns)
3185 (install_symfile_debug_logging): Update.
3186 * objfiles.h (struct objfile) <qf>: New member.
3187 * mipsread.c (ecoff_sym_fns): Update.
3188 * machoread.c (macho_sym_fns): Update.
3189 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3191 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3192 * dbxread.c (aout_sym_fns): Update.
3193 * coffread.c (coff_sym_fns): Update.
3195 2021-03-20 Tom Tromey <tom@tromey.com>
3197 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3198 (expand_symtabs_file_matcher_ftype)
3199 (expand_symtabs_symbol_matcher_ftype)
3200 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3201 Move to quick-symbol.h.
3202 * quick-symbol.h: New file.
3204 2021-03-20 Tom Tromey <tom@tromey.com>
3206 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3207 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3208 (basic_lookup_transparent_type_quick)
3209 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3210 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3212 * symmisc.c (print_objfile_statistics, dump_objfile)
3213 (maintenance_expand_symtabs): Update.
3214 * symfile.c (symbol_file_add_with_addrs)
3215 (expand_symtabs_matching, map_symbol_filenames): Update.
3216 * symfile-debug.c (objfile::has_partial_symbols)
3217 (objfile::find_last_source_symtab)
3218 (objfile::forget_cached_source_info)
3219 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3220 (objfile::print_stats, objfile::dump)
3221 (objfile::expand_symtabs_for_function)
3222 (objfile::expand_all_symtabs)
3223 (objfile::expand_symtabs_with_fullname)
3224 (objfile::map_matching_symbols)
3225 (objfile::expand_symtabs_matching)
3226 (objfile::find_pc_sect_compunit_symtab)
3227 (objfile::map_symbol_filenames)
3228 (objfile::find_compunit_symtab_by_address)
3229 (objfile::lookup_global_symbol_language): New methods.
3230 (debug_sym_quick_functions): Remove.
3231 (debug_sym_fns, install_symfile_debug_logging): Update.
3232 * source.c (forget_cached_source_info_for_objfile)
3233 (select_source_symtab): Update.
3234 * objfiles.h (struct objfile): Add methods corresponding to
3235 quick_symbol_functions.
3236 * objfiles.c (objfile::has_partial_symbols): Move to
3238 * linespec.c (iterate_over_all_matching_symtabs): Update.
3239 * cp-support.c (add_symbol_overload_list_qualified): Update.
3240 * ada-lang.c (add_nonlocal_symbols): Update.
3242 2021-03-20 Tom Tromey <tom@tromey.com>
3244 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3245 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3247 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3248 * psymtab.c (psym_has_symbols): Return bool.
3249 * objfiles.c (objfile::has_partial_symbols): Return bool.
3250 * dwarf2/read.c (dw2_has_symbols): Return bool.
3252 2021-03-20 Tom Tromey <tom@tromey.com>
3254 * symfile.c (read_symbols): Update.
3255 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3256 (objfile_has_partial_symbols): Don't declare.
3257 * objfiles.c (objfile::has_partial_symbols): Rename from
3258 objfile_has_partial_symbols.
3259 (objfile_has_symbols, have_partial_symbols): Update.
3260 * elfread.c (elf_symfile_read): Update.
3261 * dwarf2/read.c (dwarf2_has_info): Update.
3262 * coffread.c (coff_symfile_read): Update.
3264 2021-03-20 Tom Tromey <tom@tromey.com>
3266 * coffread.c: Include dwarf2/public.h.
3267 * dwarf2/frame.c: Include dwarf2/public.h.
3268 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3269 * dwarf2/public.h: New file.
3270 * dwarf2/read.c: Include dwarf2/public.h.
3271 * elfread.c: Include dwarf2/public.h.
3272 * machoread.c: Include dwarf2/public.h.
3273 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3274 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3275 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3276 * xcoffread.c: Include dwarf2/public.h.
3278 2021-03-20 Tom Tromey <tom@tromey.com>
3280 * symfile.h (enum dwarf2_section_enum)
3281 (dwarf2_get_section_info): Move to dwarf2/read.h.
3282 * dwarf2/read.h (enum dwarf2_section_enum)
3283 (dwarf2_get_section_info): Move from symfile.h.
3285 2021-03-19 Pedro Alves <pedro@palves.net>
3287 * thread.c (any_thread_of_inferior): Check if there's a selected
3288 thread before calling inferior_thread().
3290 2021-03-18 Tom Tromey <tromey@adacore.com>
3292 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3294 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3295 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3297 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3299 * python/py-param.c (get_set_value): Update header comment.
3301 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3303 * infrun.c (check_multi_target_resumption): Remove argument to
3304 all_non_exited_inferiors.
3306 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3308 * windows-nat.c (windows_init_thread_list): Add message to
3311 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3313 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3314 well as PyLong_Check for Python 2.
3316 2021-03-15 Tom Tromey <tromey@adacore.com>
3319 * rust-exp.y (maker_map): Use gdb::hash_enum.
3320 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3322 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3324 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3327 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3329 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3330 parameter, adjust caller.
3332 2021-03-15 Tom Tromey <tromey@adacore.com>
3334 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3336 2021-03-15 Tom Tromey <tromey@adacore.com>
3338 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3339 ada_ensure_varsize_limit.
3341 2021-03-15 Tom Tromey <tromey@adacore.com>
3343 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3345 * ada-exp.y (maybe_overload): New function.
3346 (ada_wrap_overload): New function.
3347 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3348 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3349 (or_else_exp, xor_exp, primary): Update.
3351 2021-03-15 Tom Tromey <tromey@adacore.com>
3354 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3355 call for tagged type.
3357 2021-03-15 Tom Tromey <tromey@adacore.com>
3359 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3362 2021-03-15 Tom Tromey <tromey@adacore.com>
3364 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3366 (ada_assign_operation::evaluate): Update.
3367 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3370 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3372 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3374 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3376 * python/python.c (gdbpy_source_objfile_script): Use
3377 make_scoped_restore to restore gdbpy_current_objfile.
3378 (gdbpy_execute_objfile_script): Likewise.
3380 2021-03-14 Tom Tromey <tom@tromey.com>
3382 * dwarf2/read.c (read_attribute_value): Use cu_header
3385 2021-03-14 Tom Tromey <tom@tromey.com>
3387 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3388 (peek_die_abbrev): Use reader.abfd.
3390 2021-03-14 Tom Tromey <tom@tromey.com>
3392 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3395 2021-03-13 Tom Tromey <tom@tromey.com>
3397 * dwarf2/read.c (struct partial_die_info): Update.
3398 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3399 (load_partial_dies, partial_die_info::partial_die_info): Update.
3400 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3402 2021-03-13 Tom Tromey <tom@tromey.com>
3404 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3406 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3409 * cp-support.c: Use scoped_segv_handler_restore.
3410 * event-top.c (thread_local_segv_handler): Made static.
3411 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3413 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3415 * event-top.h (class scoped_segv_handler_restore): New class.
3416 (thread_local_segv_handler): Removed.
3418 2021-03-10 Tom Tromey <tromey@adacore.com>
3420 * parser-defs.h (parser_state): Change completion to bool.
3421 <parse_completion>: Likewise.
3422 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3423 (ada_resolve_variable, ada_resolve_function): Update.
3424 * ada-lang.c (ada_find_operator_symbol): Change
3425 parse_completion to bool.
3426 (ada_resolve_funcall, ada_resolve_variable)
3427 (ada_resolve_function): Likewise.
3429 2021-03-09 Tom Tromey <tromey@adacore.com>
3431 * eval.c (operation::evaluate_funcall): Use function formal
3432 parameter types when evaluating.
3434 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3436 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3437 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3438 and owner to m_owner.
3440 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3442 * f-exp.h (eval_op_f_loc): Declare.
3443 (expr::fortran_loc_operation): New typedef.
3444 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3446 (f77_keywords): Add LOC keyword.
3447 * f-lang.c (eval_op_f_loc): New function.
3448 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3450 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3452 * f-exp.h (eval_op_f_array_shape): Declare.
3453 (fortran_array_shape_operation): New type.
3454 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3456 (f77_keywords): Add "shape" keyword.
3457 * f-lang.c (fortran_array_shape): New function.
3458 (eval_op_f_array_shape): New function.
3459 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3461 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3463 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3465 (expr::fortran_array_size_1arg): New type.
3466 (expr::fortran_array_size_2arg): Likewise.
3467 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3468 UNOP_OR_BINOP_INTRINSIC.
3469 (f77_keywords): Add "size" keyword.
3470 * f-lang.c (fortran_array_size): New function.
3471 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3472 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3474 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3476 * f-exp.h (eval_op_f_rank): Declare.
3477 (expr::fortran_rank_operation): New typedef.
3478 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3480 (f77_keywords): Add "rank" keyword.
3481 * f-lang.c (eval_op_f_rank): New function.
3482 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3484 2021-03-08 Tom Tromey <tom@tromey.com>
3486 * printcmd.c (set_command): Remove null check.
3487 * value.c (init_if_undefined_command): Remove null check.
3489 2021-03-08 Tom Tromey <tom@tromey.com>
3491 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3493 * p-exp.y (variable): Update.
3494 * go-exp.y (variable): Update.
3495 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3496 Remove overload for objfile.
3497 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3499 (check_objfile): Likewise.
3500 (dump_for_expression): Likewise. Remove overload for objfile.
3501 (class var_msym_value_operation): Use bound_minimal_symbol.
3502 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3504 (var_msym_value_operation::evaluate_for_address)
3505 (var_msym_value_operation::evaluate_for_sizeof)
3506 (var_msym_value_operation::evaluate_for_cast): Update.
3507 * d-exp.y (PrimaryExpression): Update.
3508 * c-exp.y (variable): Update.
3509 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3510 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3512 * ada-exp.y (write_var_or_type): Update.
3514 2021-03-08 Tom Tromey <tom@tromey.com>
3516 * parser-defs.h (exp_uses_objfile): Return bool.
3517 * parse.c (exp_uses_objfile): Return bool.
3519 2021-03-08 Tom Tromey <tom@tromey.com>
3521 * value.h (eval_skip_value): Don't declare.
3522 * opencl-lang.c (eval_opencl_assign): Update.
3523 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3524 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3525 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3526 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3527 * expop.h (typeof_operation::evaluate)
3528 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3529 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3530 (cxx_cast_operation::evaluate): Update.
3531 * eval.c (eval_skip_value): Remove.
3532 (eval_op_scope, eval_op_var_entry_value)
3533 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3534 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3535 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3536 (eval_op_binary, eval_op_subscript, eval_op_equal)
3537 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3538 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3539 (eval_op_complement, eval_op_lognot, eval_op_ind)
3540 (eval_op_memval, eval_op_preinc, eval_op_predec)
3541 (eval_op_postinc, eval_op_postdec, eval_op_type)
3542 (eval_binop_assign_modify, eval_op_objc_msgcall)
3543 (eval_multi_subscript, logical_and_operation::evaluate)
3544 (logical_or_operation::evaluate, array_operation::evaluate)
3545 (operation::evaluate_for_cast)
3546 (var_msym_value_operation::evaluate_for_cast)
3547 (var_value_operation::evaluate_for_cast): Update.
3548 * c-lang.c (c_string_operation::evaluate): Update.
3549 * c-exp.h (objc_nsstring_operation::evaluate)
3550 (objc_selector_operation::evaluate): Update.
3551 * ada-lang.c (ada_assign_operation::evaluate)
3552 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3553 (ada_atr_size): Update.
3555 2021-03-08 Tom Tromey <tom@tromey.com>
3557 * eval.c: Merge "namespace" scopes.
3559 2021-03-08 Tom Tromey <tom@tromey.com>
3561 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3563 * parse.c (expr_builder::expr_builder, expr_builder::release):
3566 2021-03-08 Tom Tromey <tom@tromey.com>
3568 * parse.c (expression::expression, expression::~expression):
3570 * expression.h (struct expression): Inline constructor. Remove
3573 2021-03-08 Tom Tromey <tom@tromey.com>
3575 * std-operator.def (BINOP_END): Remove.
3576 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3577 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3578 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3579 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3580 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3583 2021-03-08 Tom Tromey <tom@tromey.com>
3585 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3587 2021-03-08 Tom Tromey <tom@tromey.com>
3589 * std-operator.def (OP_EXTENDED0): Remove.
3591 2021-03-08 Tom Tromey <tom@tromey.com>
3593 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3594 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3597 2021-03-08 Tom Tromey <tom@tromey.com>
3599 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3600 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3602 2021-03-08 Tom Tromey <tom@tromey.com>
3604 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3605 * ada-lang.c (ada_binop_minmax): Update.
3606 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3607 Use BINOP_MIN and BINOP_MAX.
3609 2021-03-08 Tom Tromey <tom@tromey.com>
3611 * value.h (evaluate_subexp_with_coercion): Don't declare.
3612 * parse.c (exp_descriptor_standard): Remove.
3613 (expr_builder::expr_builder, expr_builder::release): Update.
3614 (expression::expression): Remove size_t parameter.
3615 (expression::~expression): Simplify.
3616 (expression::resize): Remove.
3617 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3618 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3619 (write_exp_elt_longcst, write_exp_elt_floatcst)
3620 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3621 (write_exp_string_vector, write_exp_bitstring): Remove.
3622 * p-lang.h (class pascal_language) <opcode_print_table,
3623 op_print_tab>: Remove.
3624 * p-lang.c (pascal_language::op_print_tab): Remove.
3625 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3627 * objc-lang.c (objc_op_print_tab): Remove.
3628 (class objc_language) <opcode_print_table>: Remove.
3629 * m2-lang.h (class m2_language) <opcode_print_table,
3630 op_print_tab>: Remove.
3631 * m2-lang.c (m2_language::op_print_tab): Remove.
3632 * language.h (struct language_defn) <post_parser, expression_ops,
3633 opcode_print_table>: Remove.
3634 * language.c (language_defn::expression_ops)
3635 (auto_or_unknown_language::opcode_print_table): Remove.
3636 * go-lang.h (class go_language) <opcode_print_table,
3637 op_print_tab>: Remove.
3638 * go-lang.c (go_language::op_print_tab): Remove.
3639 * f-lang.h (class f_language) <opcode_print_table>: Remove
3640 <op_print_tab>: Remove.
3641 * f-lang.c (f_language::op_print_tab): Remove.
3642 * expression.h (union exp_element): Remove.
3643 (struct expression): Remove size_t parameter from constructor.
3645 <first_opcode>: Update.
3646 <nelts, elts>: Remove.
3647 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3648 (evaluate_subexp_standard, print_expression, op_string)
3649 (dump_raw_expression): Don't declare.
3650 * expprint.c (print_expression, print_subexp)
3651 (print_subexp_funcall, print_subexp_standard, op_string)
3652 (dump_raw_expression, dump_subexp, dump_subexp_body)
3653 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3654 (dump_prefix_expression): Update.
3655 * eval.c (evaluate_subexp): Remove.
3656 (evaluate_expression, evaluate_type): Update.
3657 (evaluate_subexpression_type): Remove.
3658 (fetch_subexp_value): Remove "pc" parameter. Update.
3659 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3660 (evaluate_subexp_standard, evaluate_subexp_for_address)
3661 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3662 (evaluate_subexp_for_cast): Remove.
3663 (parse_and_eval_type): Update.
3664 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3665 * d-lang.c (d_op_print_tab): Remove.
3666 (class d_language) <opcode_print_table>: Remove.
3667 * c-lang.h (c_op_print_tab): Don't declare.
3668 * c-lang.c (c_op_print_tab): Remove.
3669 (class c_language, class cplus_language, class asm_language, class
3670 minimal_language) <opcode_print_table>: Remove.
3671 * breakpoint.c (update_watchpoint, watchpoint_check)
3672 (watchpoint_exp_is_const, watch_command_1): Update.
3673 * ax-gdb.h (union exp_element): Don't declare.
3674 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3675 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3676 (gen_expr_binop_rest): Remove.
3677 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3678 * ada-lang.c (ada_op_print_tab): Remove.
3679 (class ada_language) <post_parser, opcode_print_table>: Remove.
3681 2021-03-08 Tom Tromey <tom@tromey.com>
3683 * go-lang.c (go_language::expression_ops): Don't declare.
3684 * go-lang.h (class go_language) <expression_ops>: Remove.
3685 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3687 (class opencl_language) <expression_ops>: Remove.
3688 * d-lang.c (class d_language) <expression_ops>: Remove.
3689 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3690 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3691 (class c_language, class cplus_language, class asm_language)
3692 (class minimal_language) <expression_ops>: Remove.
3694 2021-03-08 Tom Tromey <tom@tromey.com>
3696 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3697 (evaluate_subexp_type, assign_aggregate)
3698 (aggregate_assign_positional, aggregate_assign_from_choices)
3699 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3700 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3701 (ada_operator_check, ada_forward_operator_length)
3702 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3704 (post_parser): Update.
3705 (class ada_language) <expresssion_ops>: Remove.
3707 2021-03-08 Tom Tromey <tom@tromey.com>
3709 * m2-lang.h (class m2_language) <expresssion_ops,
3710 exp_descriptor_modula2>: Remove.
3711 * m2-lang.c (evaluate_subexp_modula2)
3712 (m2_language::exp_descriptor_modula2): Remove.
3714 2021-03-08 Tom Tromey <tom@tromey.com>
3716 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3717 <exp_descriptor_tab>: Remove.
3718 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3719 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3720 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3721 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3726 * rust-lang.h (class rust_language) <expression_ops,
3727 exp_descriptor_tab>: Remove.
3728 * rust-lang.c (rust_evaluate_funcall): Remove.
3729 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3731 (rust_evaluate_subexp): Remove.
3732 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3733 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3734 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3736 2021-03-08 Tom Tromey <tom@tromey.com>
3738 * ada-exp.y: Create operations.
3739 (empty_stoken): Remove.
3740 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3741 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3742 (components): New global.
3743 (push_component, choice_component, pop_component, pop_components):
3745 (associations): New global
3746 (push_association, pop_association, pop_associations): New
3748 (ada_parse): Update.
3749 (write_var_from_sym, write_int): Create operations.
3750 (write_exp_op_with_string): Remove.
3751 (write_object_renaming, write_selectors, write_ambiguous_var)
3752 (write_var_or_type, write_name_assoc): Create operations.
3753 * ada-lang.h (ada_index_type): Declare.
3754 * ada-lang.c (ada_index_type): No longer static.
3756 2021-03-08 Tom Tromey <tom@tromey.com>
3758 * f-exp.y: Create operations.
3759 (f_language::parser): Update.
3761 2021-03-08 Tom Tromey <tom@tromey.com>
3763 * m2-exp.y: Create operations.
3764 (m2_language::parser): Update.
3766 2021-03-08 Tom Tromey <tom@tromey.com>
3768 * p-exp.y: Create operations.
3769 (pascal_language::parser): Update.
3771 2021-03-08 Tom Tromey <tom@tromey.com>
3773 * d-exp.y: Create operations.
3776 2021-03-08 Tom Tromey <tom@tromey.com>
3778 * go-exp.y: Create operations.
3779 (go_language::parser): Update.
3781 2021-03-08 Tom Tromey <tom@tromey.com>
3783 * objc-lang.c (end_msglist): Create operations.
3784 * c-exp.y: Change parser to create operations.
3785 (write_destructor_name): Remove.
3788 2021-03-08 Tom Tromey <tom@tromey.com>
3790 * rust-exp.y: Create operations.
3791 (rust_parser::convert_params_to_expression): Change return type.
3792 (binop_maker_ftype): New typedef.
3793 (maker_map): New global.
3794 (rust_parser::convert_ast_to_expression): Change return type.
3795 (rust_language::parser): Update.
3796 (_initialize_rust_exp): Initialize maker_map.
3798 2021-03-08 Tom Tromey <tom@tromey.com>
3800 * stap-probe.c (binop_maker_ftype): New typedef.
3801 (stap_maker_map): New global.
3802 (stap_make_binop): New function.
3803 (stap_parse_register_operand): Return operation_up.
3804 (stap_parse_single_operand, stap_parse_argument_conditionally)
3805 (stap_parse_argument_1): Likewise.
3806 (stap_parse_argument): Create operations.
3807 (stap_probe::parse_arguments): Update.
3808 (_initialize_stap_probe): Initialize stap_maker_map.
3809 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3811 * i386-tdep.h (i386_stap_parse_special_token): Change return
3813 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3814 (i386_stap_parse_special_token_three_arg_disp)
3815 (i386_stap_parse_special_token): Change return type.
3816 * gdbarch.sh (stap_parse_special_token): Change return type.
3817 * gdbarch.c: Rebuild.
3818 * gdbarch.h: Rebuild.
3819 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3821 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3824 2021-03-08 Tom Tromey <tom@tromey.com>
3826 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3827 * gdbarch.h: Rebuild.
3828 * gdbarch.c: Rebuild.
3829 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3830 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3832 (amd64_dtrace_parse_probe_argument): Update.
3834 2021-03-08 Tom Tromey <tom@tromey.com>
3836 * parser-defs.h (struct parser_state) <push, push_new,
3837 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3838 wrap2>: New methods.
3839 <m_operations>: New member.
3840 * parse.c (parser_state::push_c_string)
3841 (parser_state::push_symbol, parser_state::push_dollar): New
3844 2021-03-08 Tom Tromey <tom@tromey.com>
3846 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3848 (struct parser_state) <mark_struct_expression>: New method.
3849 * parse.c (parser_state::mark_struct_expression): Update assert.
3850 (parser_state::mark_struct_expression): New method.
3851 (parser_state::mark_completion_tag): Update assert.
3852 (parse_expression_for_completion): Handle expout_last_op.
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3856 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3858 * value.h (fetch_subexp_value): Add "op" parameter.
3859 * value.c (init_if_undefined_command): Update.
3860 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3861 * stap-probe.c (stap_probe::compile_to_ax): Update.
3862 * printcmd.c (set_command): Update.
3863 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3865 * parser-defs.h (struct expr_builder) <set_operation>: New
3867 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3868 * expression.h (struct expression) <first_opcode>: Update.
3870 * expprint.c (dump_raw_expression, dump_prefix_expression):
3872 * expop.h (class var_value_operation) <get_symbol>: New method.
3873 (class register_operation) <get_name>: New method.
3874 (class equal_operation): No longer a typedef, now a subclass.
3875 (class unop_memval_operation) <get_type>: New method.
3876 (class assign_operation) <get_lhs>: New method.
3877 (class unop_cast_operation) <get_type>: New method.
3878 * eval.c (evaluate_expression, evaluate_type)
3879 (evaluate_subexpression_type): Update.
3880 (fetch_subexp_value): Add "op" parameter.
3881 (parse_and_eval_type): Update.
3882 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3883 * breakpoint.c (update_watchpoint, watchpoint_check)
3884 (watchpoint_exp_is_const, watch_command_1): Update.
3885 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3888 2021-03-08 Tom Tromey <tom@tromey.com>
3890 * ada-lang.c (ada_value_binop): Do not use op_string.
3892 2021-03-08 Tom Tromey <tom@tromey.com>
3894 * expprint.c (dump_for_expression): New overload.
3895 * expop.h (check_objfile, dump_for_expression): Declare new
3897 * ada-lang.c (check_objfile): New overload.
3898 (assign_component, ada_aggregate_component::uses_objfile)
3899 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3900 (ada_aggregate_component::assign_aggregate)
3901 (ada_positional_component::uses_objfile)
3902 (ada_positional_component::dump, ada_positional_component::assign)
3903 (ada_discrete_range_association::uses_objfile)
3904 (ada_discrete_range_association::dump)
3905 (ada_discrete_range_association::assign)
3906 (ada_name_association::uses_objfile, ada_name_association::dump)
3907 (ada_name_association::assign)
3908 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3909 (ada_choices_component::assign)
3910 (ada_others_component::uses_objfile, ada_others_component::dump)
3911 (ada_others_component::assign, ada_assign_operation::evaluate):
3913 * ada-exp.h (ada_string_operation) <get_name>: New method.
3914 (class ada_assign_operation): New.
3915 (class ada_component): New.
3916 (ada_component_up): New typedef.
3917 (class ada_aggregate_operation, class ada_aggregate_component)
3918 (class ada_positional_component, class ada_others_component)
3919 (class ada_association): New.
3920 (ada_association_up): New typedef.
3921 (class ada_choices_component)
3922 (class ada_discrete_range_association)
3923 (class ada_name_association): New.
3925 2021-03-08 Tom Tromey <tom@tromey.com>
3927 * ada-lang.c (ada_var_value_operation::resolve)
3928 (ada_funcall_operation::resolve)
3929 (ada_ternop_slice_operation::resolve): New methods.
3930 * ada-exp.h (struct ada_resolvable): New.
3931 (class ada_var_value_operation): Derive from ada_resolvable.
3932 <get_block, resolve>: New methods.
3933 (class ada_funcall_operation): Derive from ada_resolvable.
3934 <resolve>: New method.
3935 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3936 <resolve>: New method.
3938 2021-03-08 Tom Tromey <tom@tromey.com>
3940 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3941 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3943 (class ada_funcall_operation): New.
3945 2021-03-08 Tom Tromey <tom@tromey.com>
3947 * ada-lang.c (ada_structop_operation::evaluate): New method.
3948 * ada-exp.h (class ada_structop_operation): New.
3950 2021-03-08 Tom Tromey <tom@tromey.com>
3952 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3953 * ada-exp.h (class ada_unop_ind_operation): New.
3955 2021-03-08 Tom Tromey <tom@tromey.com>
3957 * ada-lang.c (ada_binop_exp): No longer static.
3958 * ada-exp.h (ada_binop_exp_operation): New typedef.
3960 2021-03-08 Tom Tromey <tom@tromey.com>
3962 * ada-lang.c (ada_val_atr): No longer static.
3963 (ada_atr_val_operation::evaluate): New method.
3964 * ada-exp.h (class ada_atr_val_operation): New.
3966 2021-03-08 Tom Tromey <tom@tromey.com>
3968 * ada-lang.c (ada_pos_atr): No longer static.
3969 * ada-exp.h (ada_pos_operation): New typedef.
3971 2021-03-08 Tom Tromey <tom@tromey.com>
3973 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3975 (ada_evaluate_subexp): Use it.
3977 2021-03-08 Tom Tromey <tom@tromey.com>
3979 * ada-lang.c (ada_binop_minmax): No longer static.
3980 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3983 2021-03-08 Tom Tromey <tom@tromey.com>
3985 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3987 * ada-exp.h (class ada_var_msym_value_operation): New.
3989 2021-03-08 Tom Tromey <tom@tromey.com>
3991 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3992 (ada_var_value_operation::evaluate): New methods.
3993 * ada-exp.h (class ada_var_value_operation): New.
3995 2021-03-08 Tom Tromey <tom@tromey.com>
3997 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3998 * ada-exp.h (class ada_unop_atr_operation): New.
4000 2021-03-08 Tom Tromey <tom@tromey.com>
4002 * ada-lang.c (ada_binop_in_bounds): No longer static.
4003 * ada-exp.h (class ada_binop_in_bounds_operation): New.
4005 2021-03-08 Tom Tromey <tom@tromey.com>
4007 * ada-lang.c (ada_ternop_slice): No longer static.
4008 * ada-exp.h (class ada_ternop_slice_operation): New.
4010 2021-03-08 Tom Tromey <tom@tromey.com>
4012 * ada-exp.h (ada_bitwise_operation): New template class.
4013 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
4014 (ada_bitwise_xor_operation): New typedefs.
4016 2021-03-08 Tom Tromey <tom@tromey.com>
4018 * ada-lang.c (ada_equal_binop): No longer static.
4019 * ada-exp.h (class ada_binop_equal_operation): New.
4021 2021-03-08 Tom Tromey <tom@tromey.com>
4023 * ada-lang.c (ada_mult_binop): No longer static.
4024 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
4025 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
4027 2021-03-08 Tom Tromey <tom@tromey.com>
4029 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4030 * ada-exp.h (class ada_binop_addsub_operation): New.
4032 2021-03-08 Tom Tromey <tom@tromey.com>
4034 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
4035 (ada_resolve_variable): Declare.
4036 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
4037 (ada_resolve_variable): New functions.
4038 (resolve_subexp): Update.
4040 2021-03-08 Tom Tromey <tom@tromey.com>
4042 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4044 * c-exp.h (class opencl_ternop_cond_operation): New.
4046 2021-03-08 Tom Tromey <tom@tromey.com>
4048 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4050 * c-exp.h (class opencl_logical_binop_operation): New.
4052 2021-03-08 Tom Tromey <tom@tromey.com>
4054 * opencl-lang.c (opencl_structop_operation::evaluate): New
4056 * c-exp.h (class opencl_structop_operation): New.
4058 2021-03-08 Tom Tromey <tom@tromey.com>
4060 * opencl-lang.c (opencl_logical_not): No longer static. Change
4062 (evaluate_subexp_opencl): Update.
4063 * c-exp.h (opencl_notequal_operation): New typedef.
4065 2021-03-08 Tom Tromey <tom@tromey.com>
4067 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4068 static. Change parameters.
4069 (eval_opencl_assign): No longer static. Add "op" parameter.
4070 (evaluate_subexp_opencl): Update.
4071 * c-exp.h (opencl_binop_operation): New template class.
4072 (opencl_assign_operation, opencl_equal_operation)
4073 (opencl_notequal_operation, opencl_less_operation)
4074 (opencl_gtr_operation, opencl_geq_operation)
4075 (opencl_leq_operation): New typedefs.
4077 2021-03-08 Tom Tromey <tom@tromey.com>
4079 * opencl-lang.c (opencl_value_cast): No longer static.
4080 * c-exp.h (opencl_cast_type_operation): New typedef.
4082 2021-03-08 Tom Tromey <tom@tromey.com>
4084 * f-exp.h (eval_op_f_allocated): Declare.
4085 (fortran_allocated_operation): New typedef.
4086 * f-lang.c (eval_op_f_allocated): No longer static.
4088 2021-03-08 Tom Tromey <tom@tromey.com>
4090 * f-lang.c (eval_op_f_associated): New functions.
4091 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4094 2021-03-08 Tom Tromey <tom@tromey.com>
4096 * f-lang.c (fortran_bound_1arg::evaluate)
4097 (fortran_bound_2arg::evaluate): New methods.
4098 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4101 2021-03-08 Tom Tromey <tom@tromey.com>
4103 * expop.h (class unop_addr_operation) <get_expression>: New
4105 * f-lang.c (fortran_undetermined::value_subarray)
4106 (fortran_undetermined::evaluate): New methods.
4107 (fortran_prepare_argument): New overload.
4108 * f-exp.h (class fortran_range_operation)
4109 (class fortran_undetermined): New classes.
4111 2021-03-08 Tom Tromey <tom@tromey.com>
4113 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4114 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4117 2021-03-08 Tom Tromey <tom@tromey.com>
4119 * expression.h (class operation) <evaluate_funcall>: New methods.
4120 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4121 (class var_value_operation) <evaluate_funcall>: New method.
4122 (class structop_base_operation) <evaluate_funcall>: New method.
4123 (class var_msym_value_operation) <evaluate_funcall>: New method.
4124 (class structop_member_base): New class.
4125 (class structop_member_operation): Derive from
4126 structop_member_base.
4127 (class structop_mptr_operation): Derive from
4128 structop_member_base.
4129 (class funcall_operation): New class.
4130 * eval.c (operation::evaluate_funcall)
4131 (var_value_operation::evaluate_funcall)
4132 (scope_operation::evaluate_funcall)
4133 (structop_member_base::evaluate_funcall)
4134 (structop_base_operation::evaluate_funcall): New methods.
4136 2021-03-08 Tom Tromey <tom@tromey.com>
4138 * expop.h (class array_operation): New.
4139 * eval.c (array_operation::evaluate_struct_tuple)
4140 (array_operation::evaluate): New methods.
4142 2021-03-08 Tom Tromey <tom@tromey.com>
4144 * expop.h (class adl_func_operation): New.
4145 * eval.c (adl_func_operation::evaluate): New method.
4147 2021-03-08 Tom Tromey <tom@tromey.com>
4149 * ada-lang.c (ada_unop_in_range): No longer static.
4150 * ada-exp.h (class ada_unop_range_operation): New.
4152 2021-03-08 Tom Tromey <tom@tromey.com>
4154 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4156 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4157 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4159 2021-03-08 Tom Tromey <tom@tromey.com>
4161 * expop.h (class logical_and_operation)
4162 (class logical_or_operation): New.
4163 * eval.c (logical_and_operation::evaluate)
4164 (logical_or_operation::evaluate): New methods.
4165 * ax-gdb.c (logical_and_operation::do_generate_ax)
4166 (logical_or_operation::do_generate_ax): New methods.
4168 2021-03-08 Tom Tromey <tom@tromey.com>
4170 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4172 * m2-exp.h: New file.
4174 2021-03-08 Tom Tromey <tom@tromey.com>
4176 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4177 * rust-exp.h (class rust_aggregate_operation): New.
4179 2021-03-08 Tom Tromey <tom@tromey.com>
4181 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4183 * rust-exp.h (class rust_struct_anon): New.
4184 (class rust_structop): New.
4186 2021-03-08 Tom Tromey <tom@tromey.com>
4188 * rust-lang.c (rust_range): No longer static.
4189 * rust-exp.h (class rust_range_operation): New.
4191 2021-03-08 Tom Tromey <tom@tromey.com>
4193 * rust-lang.c (rust_subscript): No longer static.
4194 * rust-exp.h (class rust_subscript_operation): New.
4196 2021-03-08 Tom Tromey <tom@tromey.com>
4198 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4200 (rust_evaluate_subexp): Update.
4201 * rust-exp.h (class rust_unop_ind_operation): New.
4203 2021-03-08 Tom Tromey <tom@tromey.com>
4205 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4206 longer static. Add "opcode" parameter.
4207 (rust_evaluate_subexp): Update.
4208 * rust-exp.h: New file.
4210 2021-03-08 Tom Tromey <tom@tromey.com>
4212 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4213 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4214 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4215 (evaluate_subexp_f): Update.
4216 * f-exp.h: New file.
4218 2021-03-08 Tom Tromey <tom@tromey.com>
4220 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4221 * ada-exp.h (class ada_ternop_range_operation): New.
4223 2021-03-08 Tom Tromey <tom@tromey.com>
4225 * ada-lang.c (ada_qual_operation::evaluate): New method.
4226 * ada-exp.h (class ada_qual_operation): New.
4228 2021-03-08 Tom Tromey <tom@tromey.com>
4230 * ada-lang.c (ada_string_operation::evaluate): New method.
4231 * ada-exp.h (class ada_string_operation): New.
4233 2021-03-08 Tom Tromey <tom@tromey.com>
4235 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4236 * ada-exp.h: New file.
4238 2021-03-08 Tom Tromey <tom@tromey.com>
4240 * expop.h (class multi_subscript_operation): New.
4241 * eval.c (multi_subscript_operation::evaluate): New method.
4243 2021-03-08 Tom Tromey <tom@tromey.com>
4245 * eval.c (objc_msgcall_operation::evaluate): New method.
4246 * c-exp.h (class objc_msgcall_operation): New.
4248 2021-03-08 Tom Tromey <tom@tromey.com>
4250 * expop.h (class var_value_operation): New.
4251 * eval.c (var_value_operation::evaluate)
4252 (var_value_operation::evaluate_for_address)
4253 (var_value_operation::evaluate_with_coercion)
4254 (var_value_operation::evaluate_for_sizeof)
4255 (var_value_operation::evaluate_for_cast): New methods.
4256 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4258 2021-03-08 Tom Tromey <tom@tromey.com>
4260 * expop.h (cxx_cast_ftype): New typedef.
4261 (cxx_cast_operation): New template.
4262 (dynamic_cast_operation, reinterpret_cast_operation): New
4265 2021-03-08 Tom Tromey <tom@tromey.com>
4267 * expop.h (class unop_cast_type_operation): New.
4268 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4271 2021-03-08 Tom Tromey <tom@tromey.com>
4273 * expop.h (class unop_cast_operation): New.
4274 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4276 2021-03-08 Tom Tromey <tom@tromey.com>
4278 * expop.h (class assign_modify_operation): New.
4279 * eval.c (eval_binop_assign_modify): No longer static.
4280 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4282 2021-03-08 Tom Tromey <tom@tromey.com>
4284 * expop.h (class assign_operation): New.
4285 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4287 2021-03-08 Tom Tromey <tom@tromey.com>
4289 * expop.h (class type_instance_operation): New.
4290 * eval.c (type_instance_operation::evaluate): New method.
4292 2021-03-08 Tom Tromey <tom@tromey.com>
4294 * expop.h (class op_this_operation): New.
4295 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4297 2021-03-08 Tom Tromey <tom@tromey.com>
4299 * expop.h (class unop_memval_operation)
4300 (class unop_memval_type_operation): New.
4301 * eval.c (eval_op_memval): No longer static.
4302 (unop_memval_operation::evaluate_for_address)
4303 (unop_memval_type_operation::evaluate_for_address)
4304 (unop_memval_operation::evaluate_for_sizeof)
4305 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4306 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4307 (unop_memval_type_operation::do_generate_ax): New methods.
4309 2021-03-08 Tom Tromey <tom@tromey.com>
4311 * expop.h (class unop_alignof_operation): New.
4312 * eval.c (eval_op_alignof): No longer static.
4314 2021-03-08 Tom Tromey <tom@tromey.com>
4316 * expop.h (class unop_sizeof_operation): New.
4317 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4319 2021-03-08 Tom Tromey <tom@tromey.com>
4321 * expop.h (class unop_addr_operation): New.
4322 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4324 2021-03-08 Tom Tromey <tom@tromey.com>
4326 * expop.h (class typeid_operation): New.
4328 2021-03-08 Tom Tromey <tom@tromey.com>
4330 * expop.h (class decltype_operation): New.
4332 2021-03-08 Tom Tromey <tom@tromey.com>
4334 * expop.h (class typeof_operation): New.
4336 2021-03-08 Tom Tromey <tom@tromey.com>
4338 * expop.h (class type_operation): New.
4339 * eval.c (eval_op_type): No longer static.
4341 2021-03-08 Tom Tromey <tom@tromey.com>
4343 * expop.h (class unop_ind_base_operation)
4344 (class unop_ind_operation): New.
4345 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4346 (unop_ind_base_operation::evaluate_for_address)
4347 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4348 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4350 2021-03-08 Tom Tromey <tom@tromey.com>
4352 * expop.h (unop_incr_operation): New template.
4353 (preinc_operation, predec_operation, postinc_operation)
4354 (postdec_operation): New typedefs.
4355 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4356 (eval_op_postdec): No longer static.
4358 2021-03-08 Tom Tromey <tom@tromey.com>
4360 * expop.h (unary_ftype): New typedef.
4361 (unop_operation, usual_ax_binop_operation): New templates.
4362 (unary_plus_operation, unary_neg_operation)
4363 (unary_complement_operation, unary_logical_not_operation): New
4365 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4366 (eval_op_lognot): No longer static.
4367 * ax-gdb.c (gen_expr_unop): New function.
4369 2021-03-08 Tom Tromey <tom@tromey.com>
4371 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4373 2021-03-08 Tom Tromey <tom@tromey.com>
4375 * expop.h (class repeat_operation): New.
4376 * eval.c (eval_op_repeat): No longer static. Remove "op"
4378 (evaluate_subexp_standard): Update.
4379 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4381 2021-03-08 Tom Tromey <tom@tromey.com>
4383 * expop.h (class comparison_operation): New.
4384 (equal_operation, notequal_operation, less_operation)
4385 (gtr_operation, geq_operation, leq_operation): New typedefs.
4386 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4387 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4389 2021-03-08 Tom Tromey <tom@tromey.com>
4391 * expop.h (class subscript_operation): New.
4392 * eval.c (eval_op_subscript): No longer static.
4394 2021-03-08 Tom Tromey <tom@tromey.com>
4396 * expop.h (class binop_operation, class usual_ax_binop_operation):
4398 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4399 (div_operation, rem_operation, lsh_operation, rsh_operation)
4400 (bitwise_and_operation, bitwise_ior_operation)
4401 (bitwise_xor_operation): New typedefs.
4402 * eval.c (eval_op_binary): No longer static.
4404 2021-03-08 Tom Tromey <tom@tromey.com>
4406 * expop.h (class sub_operation): New.
4407 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4408 (evaluate_subexp_standard): Update.
4410 2021-03-08 Tom Tromey <tom@tromey.com>
4412 * expop.h (class add_operation): New.
4413 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4414 (evaluate_subexp_standard): Update.
4416 2021-03-08 Tom Tromey <tom@tromey.com>
4418 * expop.h (class concat_operation): New.
4419 * eval.c (eval_op_concat): No longer static. Remove "op"
4421 (evaluate_subexp_standard): Update.
4423 2021-03-08 Tom Tromey <tom@tromey.com>
4425 * expop.h (class structop_member_operation)
4426 (class structop_mptr_operation): New.
4427 * eval.c (eval_op_member): No longer static.
4429 2021-03-08 Tom Tromey <tom@tromey.com>
4431 * expop.h (class structop_ptr_operation): New.
4432 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4435 2021-03-08 Tom Tromey <tom@tromey.com>
4437 * expop.h (class structop_base_operation)
4438 (class structop_operation): New.
4439 * eval.c (eval_op_structop_struct): No longer static.
4441 2021-03-08 Tom Tromey <tom@tromey.com>
4443 * expop.h (class complex_operation): New.
4445 2021-03-08 Tom Tromey <tom@tromey.com>
4447 * eval.c (eval_op_objc_selector): No longer static.
4448 * c-exp.h (class objc_selector_operation): New.
4450 2021-03-08 Tom Tromey <tom@tromey.com>
4452 * eval.c: Include c-exp.h.
4453 * c-exp.h (class objc_nsstring_operation): New.
4455 2021-03-08 Tom Tromey <tom@tromey.com>
4457 * c-lang.c (c_string_operation::evaluate): New method.
4458 * c-exp.h: New file.
4460 2021-03-08 Tom Tromey <tom@tromey.com>
4462 * expop.h (class ternop_cond_operation): New.
4463 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4465 2021-03-08 Tom Tromey <tom@tromey.com>
4467 * expop.h (class ternop_slice_operation): New.
4468 * eval.c (eval_op_ternop): No longer static.
4470 2021-03-08 Tom Tromey <tom@tromey.com>
4472 * expop.h (class string_operation): New.
4473 * eval.c (eval_op_string): No longer static.
4475 2021-03-08 Tom Tromey <tom@tromey.com>
4477 * expop.h (class internalvar_operation): New.
4478 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4480 2021-03-08 Tom Tromey <tom@tromey.com>
4482 * expop.h (class bool_operation): New.
4484 2021-03-08 Tom Tromey <tom@tromey.com>
4486 * expop.h (class register_operation): New.
4487 * eval.c (eval_op_register): No longer static.
4488 * ax-gdb.c (register_operation::do_generate_ax): New method.
4490 2021-03-08 Tom Tromey <tom@tromey.com>
4492 * expop.h (class last_operation): New.
4494 2021-03-08 Tom Tromey <tom@tromey.com>
4496 * expop.h (class func_static_var_operation): New.
4497 * eval.c (eval_op_func_static_var): No longer static.
4499 2021-03-08 Tom Tromey <tom@tromey.com>
4501 * expop.h (class var_entry_value_operation): New.
4502 * eval.c (eval_op_var_entry_value): No longer static.
4504 2021-03-08 Tom Tromey <tom@tromey.com>
4506 * expression.h (class operation) <set_outermost>: New method.
4507 * expop.h (class var_msym_value_operation): New.
4508 * eval.c (eval_op_var_msym_value): No longer static.
4509 (var_msym_value_operation::evaluate_for_address)
4510 (var_msym_value_operation::evaluate_for_sizeof)
4511 (var_msym_value_operation::evaluate_for_cast): New methods.
4512 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4515 2021-03-08 Tom Tromey <tom@tromey.com>
4517 * expop.h (class long_const_operation): New.
4518 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4520 2021-03-08 Tom Tromey <tom@tromey.com>
4522 * expop.h (class scope_operation): New.
4523 * eval.c (eval_op_scope): No longer static.
4524 (scope_operation::evaluate_for_address): New method.
4525 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4527 2021-03-08 Tom Tromey <tom@tromey.com>
4529 * expprint.c (float_const_operation::dump): New method.
4530 * expop.h (float_data): New typedef.
4531 (class float_const_operation): New.
4533 2021-03-08 Tom Tromey <tom@tromey.com>
4535 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4536 * ax-gdb.c (gen_expr_binop): New function.
4537 (gen_expr_structop): Likewise.
4539 2021-03-08 Tom Tromey <tom@tromey.com>
4541 * expprint.c (expr::dump_for_expression): New functions.
4542 * expop.h (dump_for_expression): New overloads.
4543 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4546 2021-03-08 Tom Tromey <tom@tromey.com>
4548 * expression.h (expr::operation): New class.
4549 (expr::make_operation): New function.
4550 (expr::operation_up): New typedef.
4551 * expop.h: New file.
4552 * eval.c (operation::evaluate_for_cast)
4553 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4555 * ax-gdb.c (operation::generate_ax): New method.
4557 2021-03-08 Tom Tromey <tom@tromey.com>
4559 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4560 (gen_expr_binop_rest): New overload.
4562 2021-03-08 Tom Tromey <tom@tromey.com>
4564 * eval.c (eval_multi_subscript): New function.
4565 (evaluate_subexp_standard): Use it.
4567 2021-03-08 Tom Tromey <tom@tromey.com>
4569 * ada-lang.c (ada_binop_exp): New function.
4570 (ada_evaluate_subexp): Use it.
4572 2021-03-08 Tom Tromey <tom@tromey.com>
4574 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4576 (ada_evaluate_subexp): Use it.
4578 2021-03-08 Tom Tromey <tom@tromey.com>
4580 * ada-lang.c (ada_binop_minmax): New function.
4581 (ada_evaluate_subexp): Use it.
4583 2021-03-08 Tom Tromey <tom@tromey.com>
4585 * ada-lang.c (ada_unop_atr): New function.
4586 (ada_evaluate_subexp): Use it.
4588 2021-03-08 Tom Tromey <tom@tromey.com>
4590 * ada-lang.c (ada_binop_in_bounds): New function.
4591 (ada_evaluate_subexp): Use it.
4593 2021-03-08 Tom Tromey <tom@tromey.com>
4595 * ada-lang.c (ada_ternop_slice): New function.
4596 (ada_evaluate_subexp): Use it.
4598 2021-03-08 Tom Tromey <tom@tromey.com>
4600 * ada-lang.c (ada_equal_binop): New function.
4601 (ada_evaluate_subexp): Use it.
4603 2021-03-08 Tom Tromey <tom@tromey.com>
4605 * ada-lang.c (ada_mult_binop): New function.
4606 (ada_evaluate_subexp): Use it.
4608 2021-03-08 Tom Tromey <tom@tromey.com>
4610 * ada-lang.c (ada_abs): New function.
4611 (ada_evaluate_subexp): Use it.
4613 2021-03-08 Tom Tromey <tom@tromey.com>
4615 * ada-lang.c (ada_atr_size): New function.
4616 (ada_evaluate_subexp): Use it.
4618 2021-03-08 Tom Tromey <tom@tromey.com>
4620 * ada-lang.c (ada_atr_tag): New function.
4621 (ada_evaluate_subexp): Use it.
4623 2021-03-08 Tom Tromey <tom@tromey.com>
4625 * ada-lang.c (ada_unop_in_range): New function.
4626 (ada_evaluate_subexp): Use it.
4628 2021-03-08 Tom Tromey <tom@tromey.com>
4630 * ada-lang.c (ada_unop_neg): New function.
4631 (ada_evaluate_subexp): Use it.
4633 2021-03-08 Tom Tromey <tom@tromey.com>
4635 * ada-lang.c (eval_ternop_in_range): New function.
4636 (ada_evaluate_subexp): Use it.
4638 2021-03-08 Tom Tromey <tom@tromey.com>
4640 * opencl-lang.c (eval_opencl_assign): New function.
4641 (evaluate_subexp_opencl): Use it.
4643 2021-03-08 Tom Tromey <tom@tromey.com>
4645 * eval.c (eval_op_objc_msgcall): New function.
4646 (evaluate_subexp_standard): Use it.
4648 2021-03-08 Tom Tromey <tom@tromey.com>
4650 * eval.c (eval_binop_assign_modify): New function.
4651 (evaluate_subexp_standard): Use it.
4653 2021-03-08 Tom Tromey <tom@tromey.com>
4655 * m2-lang.c (eval_op_m2_subscript): New function.
4656 (evaluate_subexp_modula2): Use it.
4658 2021-03-08 Tom Tromey <tom@tromey.com>
4660 * m2-lang.c (eval_op_m2_high): New function.
4661 (evaluate_subexp_modula2): Use it.
4663 2021-03-08 Tom Tromey <tom@tromey.com>
4665 * eval.c (evaluate_subexp_for_address_base): New function.
4666 (evaluate_subexp_for_address): Use it.
4667 (evaluate_subexp_for_sizeof_base): New function.
4668 (evaluate_subexp_for_sizeof): Use it.
4670 2021-03-08 Tom Tromey <tom@tromey.com>
4672 * rust-lang.c (eval_op_rust_structop): New function.
4673 (rust_evaluate_subexp): Use it.
4675 2021-03-08 Tom Tromey <tom@tromey.com>
4677 * rust-lang.c (eval_op_rust_struct_anon): New function.
4678 (rust_evaluate_subexp): Use it.
4680 2021-03-08 Tom Tromey <tom@tromey.com>
4682 * rust-lang.c (eval_op_rust_array): New function.
4683 (rust_evaluate_subexp): Use it.
4685 2021-03-08 Tom Tromey <tom@tromey.com>
4687 * rust-lang.c (eval_op_rust_complement): New function.
4688 (rust_evaluate_subexp): Use it.
4690 2021-03-08 Tom Tromey <tom@tromey.com>
4692 * rust-lang.c (eval_op_rust_ind): New function.
4693 (rust_evaluate_subexp): Use it.
4695 2021-03-08 Tom Tromey <tom@tromey.com>
4697 * rust-lang.c (rust_subscript): Change parameters.
4698 (rust_evaluate_subexp): Update.
4700 2021-03-08 Tom Tromey <tom@tromey.com>
4702 * rust-lang.c (rust_range): Change parameters.
4703 (rust_evaluate_subexp): Update.
4705 2021-03-08 Tom Tromey <tom@tromey.com>
4707 * f-lang.c (eval_op_f_allocated): New function.
4708 (evaluate_subexp_f): Use it.
4710 2021-03-08 Tom Tromey <tom@tromey.com>
4712 * f-lang.c (fortran_require_array): New function.
4713 (evaluate_subexp_f): Use it.
4715 2021-03-08 Tom Tromey <tom@tromey.com>
4717 * f-lang.c (eval_op_f_kind): New function.
4718 (evaluate_subexp_f): Use it.
4720 2021-03-08 Tom Tromey <tom@tromey.com>
4722 * f-lang.c (eval_op_f_cmplx): New function.
4723 (evaluate_subexp_f): Use it.
4725 2021-03-08 Tom Tromey <tom@tromey.com>
4727 * f-lang.c (eval_op_f_modulo): New function.
4728 (evaluate_subexp_f): Use it.
4730 2021-03-08 Tom Tromey <tom@tromey.com>
4732 * f-lang.c (eval_op_f_floor): New function.
4733 (evaluate_subexp_f): Use it.
4735 2021-03-08 Tom Tromey <tom@tromey.com>
4737 * f-lang.c (eval_op_f_ceil): New function.
4738 (evaluate_subexp_f): Use it.
4740 2021-03-08 Tom Tromey <tom@tromey.com>
4742 * f-lang.c (eval_op_f_mod): New function.
4743 (evaluate_subexp_f): Use it.
4745 2021-03-08 Tom Tromey <tom@tromey.com>
4747 * f-lang.c (eval_op_f_abs): New function.
4748 (evaluate_subexp_f): Use it.
4750 2021-03-08 Tom Tromey <tom@tromey.com>
4752 * eval.c (eval_op_type): New function.
4753 (evaluate_subexp_standard): Use it.
4755 2021-03-08 Tom Tromey <tom@tromey.com>
4757 * eval.c (eval_op_postdec): New function.
4758 (evaluate_subexp_standard): Use it.
4760 2021-03-08 Tom Tromey <tom@tromey.com>
4762 * eval.c (eval_op_postinc): New function.
4763 (evaluate_subexp_standard): Use it.
4765 2021-03-08 Tom Tromey <tom@tromey.com>
4767 * eval.c (eval_op_predec): New file.
4768 (evaluate_subexp_standard): Use it.
4770 2021-03-08 Tom Tromey <tom@tromey.com>
4772 * eval.c (eval_op_preinc): New function.
4773 (evaluate_subexp_standard): Use it.
4775 2021-03-08 Tom Tromey <tom@tromey.com>
4777 * eval.c (eval_op_memval): New function.
4778 (evaluate_subexp_standard): Use it.
4780 2021-03-08 Tom Tromey <tom@tromey.com>
4782 * eval.c (eval_op_alignof): New function.
4783 (evaluate_subexp_standard): Use it.
4785 2021-03-08 Tom Tromey <tom@tromey.com>
4787 * eval.c (eval_op_ind): New function.
4788 (evaluate_subexp_standard): Use it.
4790 2021-03-08 Tom Tromey <tom@tromey.com>
4792 * eval.c (eval_op_lognot): New function.
4793 (evaluate_subexp_standard): Use it.
4795 2021-03-08 Tom Tromey <tom@tromey.com>
4797 * eval.c (eval_op_complement): New function.
4798 (evaluate_subexp_standard): Use it.
4800 2021-03-08 Tom Tromey <tom@tromey.com>
4802 * eval.c (eval_op_neg): New function.
4803 (evaluate_subexp_standard): Use it.
4805 2021-03-08 Tom Tromey <tom@tromey.com>
4807 * eval.c (eval_op_plus): New function.
4808 (evaluate_subexp_standard): Use it.
4810 2021-03-08 Tom Tromey <tom@tromey.com>
4812 * eval.c (eval_op_repeat): New function.
4813 (evaluate_subexp_standard): Use it.
4815 2021-03-08 Tom Tromey <tom@tromey.com>
4817 * eval.c (eval_op_leq): New function.
4818 (evaluate_subexp_standard): Use it.
4820 2021-03-08 Tom Tromey <tom@tromey.com>
4822 * eval.c (eval_op_geq): New function.
4823 (evaluate_subexp_standard): Use it.
4825 2021-03-08 Tom Tromey <tom@tromey.com>
4827 * eval.c (eval_op_gtr): New function.
4828 (evaluate_subexp_standard): Use it.
4830 2021-03-08 Tom Tromey <tom@tromey.com>
4832 * eval.c (eval_op_less): New function.
4833 (evaluate_subexp_standard): Use it.
4835 2021-03-08 Tom Tromey <tom@tromey.com>
4837 * eval.c (eval_op_notequal): New function.
4838 (evaluate_subexp_standard): Use it.
4840 2021-03-08 Tom Tromey <tom@tromey.com>
4842 * eval.c (eval_op_equal): New function.
4843 (evaluate_subexp_standard): Use it.
4845 2021-03-08 Tom Tromey <tom@tromey.com>
4847 * eval.c (eval_op_subscript): New function.
4848 (evaluate_subexp_standard): Use it.
4850 2021-03-08 Tom Tromey <tom@tromey.com>
4852 * eval.c (eval_op_binary): New function.
4853 (evaluate_subexp_standard): Use it.
4855 2021-03-08 Tom Tromey <tom@tromey.com>
4857 * eval.c (eval_op_sub): New function.
4858 (evaluate_subexp_standard): Use it.
4860 2021-03-08 Tom Tromey <tom@tromey.com>
4862 * eval.c (eval_op_add): New function.
4863 (evaluate_subexp_standard): Use it.
4865 2021-03-08 Tom Tromey <tom@tromey.com>
4867 * eval.c (eval_op_member): New function.
4868 (evaluate_subexp_standard): Use it.
4870 2021-03-08 Tom Tromey <tom@tromey.com>
4872 * eval.c (eval_op_structop_ptr): New function.
4873 (evaluate_subexp_standard): Use it.
4875 2021-03-08 Tom Tromey <tom@tromey.com>
4877 * eval.c (eval_op_structop_struct): New function.
4878 (evaluate_subexp_standard): Use it.
4880 2021-03-08 Tom Tromey <tom@tromey.com>
4882 * eval.c (eval_op_ternop): New function.
4883 (evaluate_subexp_standard): Use it.
4885 2021-03-08 Tom Tromey <tom@tromey.com>
4887 * eval.c (eval_op_concat): New function.
4888 (evaluate_subexp_standard): Use it.
4890 2021-03-08 Tom Tromey <tom@tromey.com>
4892 * eval.c (eval_op_objc_selector): New function.
4893 (evaluate_subexp_standard): Use it.
4895 2021-03-08 Tom Tromey <tom@tromey.com>
4897 * eval.c (eval_op_string): New function.
4898 (evaluate_subexp_standard): Use it.
4900 2021-03-08 Tom Tromey <tom@tromey.com>
4902 * eval.c (eval_op_register): New function.
4903 (evaluate_subexp_standard): Use it.
4905 2021-03-08 Tom Tromey <tom@tromey.com>
4907 * eval.c (eval_op_func_static_var): New function.
4908 (evaluate_subexp_standard): Use it.
4910 2021-03-08 Tom Tromey <tom@tromey.com>
4912 * eval.c (eval_op_var_msym_value): New function.
4913 (evaluate_subexp_standard): Use it.
4915 2021-03-08 Tom Tromey <tom@tromey.com>
4917 * eval.c (eval_op_var_entry_value): New function.
4918 (evaluate_subexp_standard): Use it.
4920 2021-03-08 Tom Tromey <tom@tromey.com>
4922 * eval.c (eval_op_scope): New function.
4923 (evaluate_subexp_standard): Use it.
4925 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4928 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4930 2021-03-06 Tom Tromey <tom@tromey.com>
4932 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4933 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4934 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4935 (locate_dwz_sections, dwz_search_other_debugdirs)
4936 (dwarf2_get_dwz_file): Move to dwz.c.
4937 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4939 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4940 (dwarf2_get_dwz_file): Move from read.c.
4942 2021-03-06 Tom Tromey <tom@tromey.com>
4944 * debuginfod-support.h: Include scoped_fd.h.
4946 2021-03-06 Tom Tromey <tom@tromey.com>
4948 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4949 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4950 (get_abbrev_section_for_cu, read_attribute_value)
4951 (get_debug_line_section): Update.
4952 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4954 2021-03-06 Tom Tromey <tom@tromey.com>
4956 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4958 * dwarf2/read.c (section_is_p): Remove.
4959 (dwarf2_per_bfd::locate_sections)
4960 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4961 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4962 (dwarf2_locate_common_dwp_sections)
4963 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4966 2021-03-06 Tom Tromey <tom@tromey.com>
4968 * xcoffread.c: Include sect-names.h.
4969 * symfile.h (struct dwarf2_section_names, struct
4970 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4971 * dwarf2/sect-names.h: New file, from symfile.h.
4972 * dwarf2/read.c: Include sect-names.h.
4974 2021-03-06 Tom Tromey <tom@tromey.com>
4976 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4977 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4978 (abbrev_table::read): Update.
4979 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4980 (struct abbrev_info): Reformat.
4981 <attrs>: Now an array.
4982 (struct abbrev_table) <alloc_abbrev>: Remove.
4984 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4986 * ctfread.c (ctf_psymtab_add_enums): New function.
4987 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4989 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4991 * ctfread.c (read_func_kind_type): Set up function arguments.
4993 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4994 Andrew Burgess <andrew.burgess@embecosm.com>
4996 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4998 (riscv_csrset): New static global.
4999 (riscv_update_csrmap): New function.
5000 (riscv_iterate_over_regset_sections): Process CSRs.
5002 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5004 * riscv-tdep.c (riscv_feature_name_csr): Define.
5005 (riscv_feature_name_cpu): Define.
5006 (riscv_feature_name_fpu): Define.
5007 (riscv_feature_name_virtual): Define.
5008 (riscv_xreg_feature): Use riscv_feature_name_cpu.
5009 (riscv_freg_feature): Use riscv_feature_name_fpu.
5010 (riscv_virtual_feature): Use riscv_feature_name_virtual.
5011 (riscv_csr_feature): Use riscv_feature_name_csr.
5012 * riscv-tdep.h (riscv_feature_name_csr): Declare.
5014 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5015 Craig Blackmore <craig.blackmore@embecosm.com>
5017 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
5018 (ALLDEPFILES): Add riscv-none-tdep.c.
5019 * configure: Regenerate.
5020 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
5022 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
5023 * elf-none-tdep.c: New file.
5024 * elf-none-tdep.h: New file.
5025 * riscv-none-tdep.c: New file.
5027 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
5028 Andrew Burgess <andrew.burgess@embecosm.com>
5030 * corelow.c: Add 'xml-tdesc.h' include.
5031 (core_target::read_description): Load the target description from
5032 the core file when possible.
5033 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
5035 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
5036 (gcore_elf_make_tdesc_note): New function.
5037 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
5038 * linux-tdep.c (linux_make_corefile_notes): Add target description
5041 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5043 * Makefile.in (SFILES): Add gcore-elf.c.
5044 (HFILES_NO_SRCDIR): Add gcore-elf.h
5045 * configure: Regenerate.
5046 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5048 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5049 (struct fbsd_collect_regset_section_cb_data): Delete.
5050 (fbsd_collect_regset_section_cb): Delete.
5051 (fbsd_collect_thread_registers): Delete.
5052 (struct fbsd_corefile_thread_data): Delete.
5053 (fbsd_corefile_thread): Delete.
5054 (fbsd_make_corefile_notes): Call
5055 gcore_elf_build_thread_register_notes instead of the now deleted
5057 * gcore-elf.c: New file, the content was moved here from
5058 linux-tdep.c, functions were renamed and given minor cleanup.
5059 * gcore-elf.h: New file.
5060 * gcore.c (gcore_find_signalled_thread): Moved here from
5061 linux-tdep.c and given a new name. Minor cleanups.
5062 * gcore.h (gcore_find_signalled_thread): Declare.
5063 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5064 (struct linux_collect_regset_section_cb_data): Delete.
5065 (linux_collect_regset_section_cb): Delete.
5066 (linux_collect_thread_registers): Delete.
5067 (linux_corefile_thread): Call
5068 gcore_elf_build_thread_register_notes.
5069 (find_signalled_thread): Delete.
5070 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5072 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5075 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5076 process_stratum_target parameter,
5077 sparc_store_inferior_registers): update callers.
5078 * sparc-nat.c (sparc_fetch_inferior_registers,
5079 sparc_store_inferior_registers): Add process_stratum_target
5080 parameter. Switch current thread before calling
5081 sparc_supply_gregset / sparc_collect_rwindow.
5082 (sparc_store_inferior_registers): Likewise.
5083 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5084 (sparc32obsd_collect_uthread): Likewise.
5085 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5087 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5088 sparc64obsd_supply_uthread): Add assertion.
5090 2021-03-04 Tom Tromey <tromey@adacore.com>
5092 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5093 (aux_add_nonlocal_symbols): Update.
5094 (ada_add_block_symbols): Change "found_sym" to bool.
5096 2021-03-03 Tom Tromey <tromey@adacore.com>
5098 * ada-lang.c (ada_resolve_function): Update comment.
5099 (is_nonfunction, add_symbols_from_enclosing_procs)
5100 (remove_extra_symbols): Likewise.
5101 (struct match_data): Add constructor, initializers.
5102 (add_nonlocal_symbols): Remove memset.
5103 (aux_add_nonlocal_symbols): Update comment.
5104 (ada_add_block_renamings, add_nonlocal_symbols)
5105 (ada_add_all_symbols): Likewise.
5106 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5108 2021-03-02 Tom Tromey <tromey@adacore.com>
5110 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5111 (cast_to_gnat_encoded_fixed_point_type): Remove.
5112 (ada_value_cast, ada_evaluate_subexp): Update.
5113 (gnat_encoded_fixed_point_type_info)
5114 (ada_is_gnat_encoded_fixed_point_type)
5115 (gnat_encoded_fixed_point_delta)
5116 (gnat_encoded_fixed_point_scaling_factor): Remove.
5117 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5118 (gnat_encoded_fixed_point_delta)
5119 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5120 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5121 (ada_print_type): Update.
5122 * ada-valprint.c (ada_value_print_num): Update.
5123 * dwarf2/read.c (ada_get_gnat_encoded_number)
5124 (ada_get_gnat_encoded_ratio): New functions.
5125 (finish_fixed_point_type): Use them. Add parameters.
5126 (GNAT_FIXED_POINT_SUFFIX): New define.
5127 (gnat_encoded_fixed_point_type_info): New function.
5128 (read_base_type): Handle gnat encodings.
5130 2021-03-02 Tom Tromey <tromey@adacore.com>
5132 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5133 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5135 (GROW_VECT): Remove.
5136 (grow_vect): Remove.
5138 2021-03-02 Tom Tromey <tromey@adacore.com>
5140 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5141 * ada-lang.c (resolve_subexp): Update.
5142 (ada_resolve_function): Accept a vector.
5143 (is_nonfunction, add_defn_to_vec)
5144 (add_symbols_from_enclosing_procs): Likewise.
5145 (num_defns_collected, defns_collected): Remove.
5146 (remove_extra_symbols): Return a vector.
5147 (remove_irrelevant_renamings): Return void.
5148 (ada_add_local_symbols): Accept a vector.
5149 (struct match_data) <obstackp>: Remove.
5150 <resultp>: New member.
5151 (aux_add_nonlocal_symbols): Update.
5152 (ada_add_block_renamings, add_nonlocal_symbols)
5153 (ada_add_all_symbols): Accept a vector.
5154 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5156 (ada_lookup_symbol): Update.
5157 (ada_add_block_symbols): Accept a vector.
5158 (get_var_value, iterate_over_symbols): Update.
5159 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5162 2021-03-02 Tom Tromey <tromey@adacore.com>
5164 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5166 2021-03-02 Tom Tromey <tromey@adacore.com>
5168 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5171 (ada_pspace_data): Remove destructor.
5172 <sym_cache>: Now a unique_ptr.
5173 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5174 (ada_get_symbol_cache): Use 'new'.
5175 (ada_clear_symbol_cache): Rewrite.
5177 2021-03-02 Tom Tromey <tromey@adacore.com>
5179 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5182 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5185 * source.c (add_path): Skip empty dirnames.
5187 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5189 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5190 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5192 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5195 * target.c (target_mourn_inferior): Only compare pids in
5196 target_mourn_inferior.
5198 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5201 * remote.c (remote_target::start_remote): Ensure the single
5202 thread, automatically added for remote targets without the
5203 concept of threading, is initially in set to the "resumed"
5205 * remote.c (remote_target::add_current_inferior_and_thread):
5206 Add return value - return the main thread.
5208 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5210 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5211 (mi_tsv_created): Likewise.
5212 (mi_tsv_deleted): Likewise.
5214 2021-02-25 Tom de Vries <tdevries@suse.de>
5217 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5218 section_kind for &dwo_file->sections.info.
5220 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5223 * f-lang.c (fortran_argument_convert): Delete declaration.
5224 (fortran_prepare_argument): New function.
5225 (evaluate_subexp_f): Move logic to new function
5226 fortran_prepare_argument.
5228 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5230 * f-exp.y (f77_keywords): Add 'associated'.
5231 * f-lang.c (fortran_associated): New function.
5232 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5233 (operator_length_f): Likewise.
5234 (print_unop_or_binop_subexp_f): New function.
5235 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5236 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5237 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5238 (operator_check_f): Likewise.
5239 * std-operator.def: Add FORTRAN_ASSOCIATED.
5241 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5243 * f-exp.y (fortran_operators): Add ".xor.".
5245 2021-02-24 Tom de Vries <tdevries@suse.de>
5248 * dwarf2/attribute.c (attribute::form_is_signed): New function
5250 * dwarf2/attribute.h (attribute::as_signed): ... here.
5251 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5252 (attribute::form_is_signed): Declare.
5253 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5254 for DW_AT_decl_file.
5256 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5258 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5259 order for <sys/ptrace.h> and <asm/ptrace.h>.
5261 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5263 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5266 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5268 * exec.c (set_section_command): Move variable declarations into
5269 the function body, and use std::string instead of a fixed size
5272 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5274 * exec.c (exec_target::get_section_table): Delete member function.
5275 (section_table_read_available_memory): Use current_top_target, not
5276 just the exec_ops target.
5277 * target-delegates.c: Regenerate.
5278 * target.c (default_get_section_table): New function.
5279 * target.h (target_ops::get_section_table): Change default
5280 behaviour to call default_get_section_table.
5281 (default_get_section_table): Declare.
5283 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5285 * exec.c (exec_target::close): Call new clear_target_sections
5287 (program_space::add_target_sections): Update name of member
5289 (program_space::add_target_sections): Update name of member
5291 (program_space::remove_target_sections): Likewise.
5292 (exec_one_fork): Use new target_sections member function.
5293 (exec_target::get_section_table): Likewise.
5294 (exec_target::files_info): Likewise.
5295 (set_section_command): Likewise.
5296 (exec_set_section_address): Likewise.
5297 (exec_target::has_memory): Use new target_sections member
5299 * progspace.h (program_space::clear_target_sections): New member
5301 (program_space::target_sections): Rename member variable to
5302 m_target_sections, replace with a new member function.
5303 (program_space::m_target_sections): New member variable.
5304 * solib-dsbt.c (scan_dyntag): Use new member function.
5305 * solib-svr4.c (scan_dyntag): Likewise.
5307 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5309 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5311 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5312 (section_table_read_available_memory): Make local const.
5313 (exec_target::xfer_partial): Make local const.
5314 (print_section_info): Make parameter const.
5315 * gdb/exec.h (print_section_info): Likewise.
5316 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5318 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5320 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5322 * gdb/s390-tdep.c (s390_load): Likewise.
5323 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5324 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5325 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5327 (target_debug_print_const_target_section_table_p): ...this.
5328 * gdb/target-delegates.c: Regenerate.
5329 * gdb/target.c (target_get_section_table): Make return type const.
5330 (target_section_by_addr): Likewise. Also make some locals const.
5331 (memory_xfer_partial_1): Make some locals const.
5332 * gdb/target.h (struct target_ops) <get_section_table>: Make
5334 (target_section_by_addr): Likewise.
5335 (target_get_section_table): Likewise.
5337 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5339 * NEWS: Mention new 'maint info target-sections' command.
5340 * maint.c (maintenance_info_target_sections): New function.
5341 (_initialize_maint_cmds): Register new command.
5343 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5345 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5346 (riscv_features_from_bfd): ...this. Change parameter type to
5347 'bfd*', and update as required.
5348 (riscv_find_default_target_description): Update call to
5349 riscv_features_from_bfd. Select a default xlen based on
5351 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5353 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5355 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5356 dynamic types in UNOP_IND.
5358 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5361 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5363 (~dwarf2_queue_guard): Clear queue.
5364 (queue_comp_unit): Assert that queue is
5366 (process_queue): Adjust.
5367 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5369 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5372 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5373 to decide whether or not to enqueue it for expansion.
5374 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5375 after calling maybe_queue_comp_unit.
5377 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5379 * linux-nat.c (linux_nat_filter_event): Return void.
5381 2021-02-22 Tom Tromey <tromey@adacore.com>
5383 * solib-svr4.c (enable_break): Update.
5384 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5386 (target_bfd_reopen): Change parameter type.
5387 * bfd-target.h (target_bfd_reopen): Change parameter type.
5389 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5391 * thread.c (add_thread_silent): Add assert.
5392 (find_thread_ptid): Add assert.
5394 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5397 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5398 (target_unpush_up): Likewise.
5399 * procfs.c (procfs_target::attach): Push target early. Use
5400 target_unpush_up to unpush target in case of error.
5401 * target.h (struct target_unpusher): Move here.
5402 (target_unpush_up): Likewise.
5404 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5406 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5407 (which in turn includes <gnulib/config.h>) before include
5410 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5413 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5414 (decode_j_type_insn): Likewise.
5415 (decode_cj_type_insn): Likewise.
5416 (decode_b_type_insn): Likewise.
5419 2021-02-18 Tom Tromey <tom@tromey.com>
5421 * expression.h (struct expression) <evaluate>: Declare method.
5422 * eval.c (evaluate_subexp): Simplify.
5423 (expression::evaluate): New method.
5424 (evaluate_expression, evaluate_type): Use expression::evaluate.
5426 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5428 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5430 (ada_lookup_name_info): Likewise.
5432 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5434 * aclocal.m4: Regenerate.
5436 2021-02-12 Tom de Vries <tdevries@suse.de>
5439 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5440 (lin_thread_signals): New static var.
5441 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5443 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5444 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5446 * linux-thread-db.c (check_thread_signals): Use
5447 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5449 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5451 * f-exp.y (f77_keywords): Add allocated.
5452 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5453 (operator_length_f): Likewise.
5454 (print_subexp_f): Likewise.
5455 (dump_subexp_body_f): Likewise.
5456 (operator_check_f): Likewise.
5457 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5459 2021-02-11 Tom de Vries <tdevries@suse.de>
5462 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5463 Return true for DW_FORM_strx.
5465 2021-02-11 Tom Tromey <tromey@adacore.com>
5468 * parse.c (write_exp_symbol_reference): Write sym.block.
5470 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5472 * NEWS: Mention changes to 'maint info sections'.
5473 * maint.c (match_substring): Return a bool, fix whitespace issue.
5474 (struct single_bfd_flag_info): New struct.
5475 (bfd_flag_info): New static global.
5476 (match_bfd_flags): Return a bool, use bfd_flag_info.
5477 (print_bfd_flags): Use bfd_flag_info.
5478 (maint_print_section_info): Delete trailing whitespace.
5479 (struct maint_info_sections_opts): New struct.
5480 (maint_info_sections_option_defs): New static global.
5481 (maint_info_sections_completer): New function.
5482 (maintenance_info_sections): Use option parsing mechanism.
5483 (_initialize_maint_cmds): Update command help text for 'maint info
5484 sections' and register a command completer.
5486 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5488 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5489 functionality merged into...
5490 (maint_print_all_sections): ...this new function.
5491 (maintenance_info_sections): Make use of maint_print_all_sections,
5492 allow all objects to be printed even where there's no executable.
5494 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5496 * breakpoint.c (resolve_sal_pc): Make use of
5497 bound_minimal_symbol::obj_section.
5498 * maint.c (maintenance_translate_address): Likewise.
5499 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5500 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5502 * printcmd.c (info_address_command): Make use of
5503 bound_minimal_symbol::obj_section.
5505 2021-02-11 Alan Modra <amodra@gmail.com>
5507 * arm-symbian-tdep.c: Delete.
5508 * NEWS: Mention arm-symbian removal.
5509 * Makefile.in: Remove arm-symbian-tdep entries.
5510 * configure.tgt: Remove arm*-*-symbianelf*.
5511 * doc/gdb.texinfo: Remove mention of SymbianOS.
5512 * osabi.c (gdb_osabi_names): Remove "Symbian".
5513 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5514 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5515 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5517 * testsuite/gdb.base/dup-sect.exp: Likewise.
5518 * testsuite/gdb.base/long_long.exp: Likewise.
5519 * testsuite/gdb.base/solib-weak.exp: Likewise.
5520 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5521 * testsuite/gdb.python/py-section-script.exp: Likewise.
5522 * testsuite/lib/dwarf.exp: Likewise.
5523 * testsuite/lib/gdb.exp: Likewise.
5525 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5527 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5528 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5529 (one_or_two_args): New pattern.
5530 (f77_keywords): Add lbound and ubound.
5531 * f-lang.c (fortran_bounds_all_dims): New function.
5532 (fortran_bounds_for_dimension): New function.
5533 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5534 (operator_length_f): Likewise.
5535 (print_subexp_f): Likewise.
5536 (dump_subexp_body_f): Likewise.
5537 (operator_check_f): Likewise.
5538 * std-operator.def (FORTRAN_LBOUND): Define.
5539 (FORTRAN_UBOUND): Define.
5541 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5543 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5544 and set_section_index member functions where appropriate.
5545 * coffread.c (coff_symtab_read): Likewise.
5546 (process_coff_symbol): Likewise.
5547 * ctfread.c (set_symbol_address): Likewise.
5548 * dwarf2/read.c (add_partial_symbol): Likewise.
5549 (var_decode_location): Likewise.
5550 * language.c: Likewise.
5551 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5552 (compact_minimal_symbols): Likewise.
5553 (minimal_symbol_upper_bound): Likewise.
5554 * objfiles.c (relocate_one_symbol): Likewise.
5555 * psympriv.h (partial_symbol::obj_section): Likewise.
5556 (partial_symbol::address): Likewise.
5557 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5558 * stabsread.c (scan_file_globals): Likewise.
5559 * symmisc.c (dump_msymbols): Likewise.
5560 * symtab.c (general_symbol_info::obj_section): Likewise.
5561 (fixup_section): Likewise.
5562 (get_msymbol_address): Likewise.
5563 * symtab.h (general_symbol_info::section): Rename to...
5564 (general_symbol_info::m_section): ...this.
5565 (general_symbol_info::set_section_index): New member function.
5566 (general_symbol_info::section_index): Likewise.
5567 (SYMBOL_SECTION): Delete.
5568 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5569 set_section_index member functions where appropriate.
5570 (MSYMBOL_SECTION): Delete.
5571 (symbol::symbol): Update to initialize 'm_section'.
5572 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5573 (process_xcoff_symbol): Likewise.
5575 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5577 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5578 MSYMBOL_OBJ_SECTION.
5579 * findvar.c (language_defn::read_var_value): Likewise.
5580 * infcmd.c (jump_command): Likewise.
5581 * linespec.c (minsym_found): Likewise.
5582 * maint.c (maintenance_translate_address): Likewise.
5583 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5584 (minimal_symbol_upper_bound): Likewise.
5585 * parse.c (find_minsym_type_and_address): Likewise.
5586 (operator_check_standard): Likewise.
5587 * printcmd.c (info_address_command): Likewise.
5588 * symmisc.c (dump_msymbols): Likewise.
5589 (print_symbol): Likewise.
5590 * symtab.c (general_symbol_info::obj_section): Define new
5592 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5593 (find_pc_sect_compunit_symtab): Likewise.
5594 (find_function_start_sal): Likewise.
5595 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5596 MSYMBOL_OBJ_SECTION.
5597 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5599 (SYMBOL_OBJ_SECTION): Delete.
5600 (MSYMBOL_OBJ_SECTION): Delete.
5602 2021-02-09 Tom Tromey <tom@tromey.com>
5604 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5606 2021-02-09 Tom de Vries <tdevries@suse.de>
5609 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5610 construct an array type. Add assert to ensure that element_type is
5613 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5615 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5616 (gcore_collect_regset_section_cb): Delete.
5617 (gcore_collect_thread_registers): Delete.
5618 (gcore_build_thread_register_notes): Delete.
5619 (gcore_find_signalled_thread): Delete.
5620 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5621 'gdbarch' and 'thread_info' declarations.
5622 (gcore_build_thread_register_notes): Delete declaration.
5623 (gcore_find_signalled_thread): Likewise.
5624 * fbsd-tdep.c: Remove 'gcore.h' include.
5625 (struct fbsd_collect_regset_section_cb_data): New struct.
5626 (fbsd_collect_regset_section_cb): New function.
5627 (fbsd_collect_thread_registers): New function.
5628 (struct fbsd_corefile_thread_data): New struct.
5629 (fbsd_corefile_thread): New function.
5630 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5631 * linux-tdep.c: Remove 'gcore.h' include.
5632 (struct linux_collect_regset_section_cb_data): New struct.
5633 (linux_collect_regset_section_cb): New function.
5634 (linux_collect_thread_registers): New function.
5635 (linux_corefile_thread): Call Linux specific code.
5636 (find_signalled_thread): New function.
5637 (linux_make_corefile_notes): Call find_signalled_thread.
5639 2021-02-09 Tom Tromey <tromey@adacore.com>
5641 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5643 * value.c (value_contents_copy_raw): Now static.
5644 * value.h (value_contents_copy_raw): Don't declare.
5646 2021-02-09 Tom Tromey <tromey@adacore.com>
5648 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5651 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5654 * arc-linux-tdep.c (handle_atomic_sequence): New.
5655 (arc_linux_software_single_step): Call handle_atomic_sequence().
5657 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5659 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5661 (REQUIRE_WINDOW): Call is_valid member function.
5662 (REQUIRE_WINDOW_FOR_SETTER): New define.
5663 (gdbpy_tui_is_valid): Call is_valid member function.
5664 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5665 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5667 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5668 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5671 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5673 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5674 for the title is not nullptr.
5676 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5678 * tui-layout.c (saved_tui_windows): Delete.
5679 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5680 call new get_windows member function instead.
5681 (tui_get_window_by_name): Check in tui_windows.
5682 (tui_layout_window::apply): Don't add to tui_windows.
5683 * tui-layout.h (tui_layout_base::get_windows): New member function.
5684 (tui_layout_window::get_windows): Likewise.
5685 (tui_layout_split::get_windows): Likewise.
5687 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5689 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5690 of the window objects.
5692 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5694 * python/python.c (gdbpy_print_stack): Reformat an error message.
5696 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5698 * tui/tui-interp.c (tui_command_line_handler): New function.
5699 (tui_interp::resume): Register tui_command_line_handler as the
5701 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5703 (tui_getc_1): Delete handling of '\n' and '\r'.
5704 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5706 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5708 * tui/tui-regs.c (tui_data_window::display_registers_from):
5709 Mark invisible register sub windows.
5710 (tui_data_window::check_register_values): Ignore invisible
5711 register sub windows.
5713 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5715 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5716 n_spaces with a negative value.
5718 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5720 * tui/tui-regs.c (tui_data_window::display_registers_from):
5721 Add refresh_window call.
5723 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5725 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5727 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5729 * symmisc.c (std_in, std_out, std_err): Remove.
5730 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5732 2021-02-05 Tom de Vries <tdevries@suse.de>
5734 PR breakpoints/27330
5735 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5736 glibc object file has debug info.
5738 2021-02-05 Tom de Vries <tdevries@suse.de>
5741 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5743 2021-02-05 Tom de Vries <tdevries@suse.de>
5745 PR breakpoints/27313
5746 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5749 2021-02-05 Tom Tromey <tom@tromey.com>
5751 * compile/compile-c-support.c (get_compile_context)
5752 (c_get_compile_context, cplus_get_compile_context): Change return
5754 * language.c (language_defn::get_compile_instance): New method.
5755 * language.h (language_defn::get_compile_instance): Change return
5756 type. No longer inline.
5757 * c-lang.c (c_language::get_compile_instance): Change return type.
5758 (cplus_language::get_compile_instance): Change return type.
5759 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5761 * compile/compile.c (compile_to_object): Update.
5763 2021-02-05 Tom Tromey <tom@tromey.com>
5765 * parser-defs.h (write_exp_symbol_reference): Declare.
5766 * parse.c (write_exp_symbol_reference): New function.
5767 * p-exp.y (variable): Use write_exp_symbol_reference.
5768 * m2-exp.y (variable): Use write_exp_symbol_reference.
5769 * f-exp.y (variable): Use write_exp_symbol_reference.
5770 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5771 * c-exp.y (variable): Use write_exp_symbol_reference.
5773 2021-02-05 Tom de Vries <tdevries@suse.de>
5776 * valarith.c (complex_binop): Throw an error if complex type can't
5779 2021-02-05 Tom de Vries <tdevries@suse.de>
5782 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5785 2021-02-05 Tom de Vries <tdevries@suse.de>
5787 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5789 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5791 * configure.tgt (riscv*-*-*): Set gdb_sim.
5793 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5795 * target.c (target_is_non_stop_p): Return bool.
5796 * target.h (target_is_non_stop_p): Return bool.
5798 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5800 * record-full.c (record_full_async_inferior_event_handler):
5801 Don't clear async event handler.
5802 (record_full_base_target::wait): Clear async event handler at
5805 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5807 * record-btrace.c (record_btrace_handle_async_inferior_event):
5808 Don't clear async event handler.
5809 (record_btrace_target::wait): Clear async event handler at
5812 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5814 * remote.c (remote_target::wait): Clear async event handler at
5815 beginning, mark if needed at the end.
5816 (remote_async_inferior_event_handler): Don't set or clear async
5819 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5821 * async-event.h (async_event_handler_func): Add documentation.
5822 * async-event.c (check_async_event_handlers): Don't clear
5823 async_event_handler ready flag.
5824 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5826 * record-btrace.c (record_btrace_handle_async_inferior_event):
5828 * record-full.c (record_full_async_inferior_event_handler):
5830 * remote-notif.c (remote_async_get_pending_events_handler):
5832 * remote.c (remote_async_inferior_event_handler): Likewise.
5834 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5836 * infrun.c (handle_inferior_event): Move stop_soon variable to
5839 2021-02-03 Pedro Alves <pedro@palves.net>
5841 * infcmd.c (detach_command): Hold strong reference to target, and
5842 if all-stop on entry, restart threads on exit.
5843 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5844 (restart_stepped_thread): ... this new function. Also handle
5846 (restart_after_all_stop_detach): New function.
5847 * infrun.h (restart_after_all_stop_detach): Declare.
5849 2021-02-03 Pedro Alves <pedro@palves.net>
5851 * infrun.c (struct step_over_info): Initialize fields.
5852 (prepare_for_detach): Handle ongoing in-line step over.
5854 2021-02-03 Pedro Alves <pedro@palves.net>
5856 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5858 * remote.c (remote_target::remote_detach_1): ... and here ...
5859 * target.c (target_detach): ... instead of here.
5860 * target.h (target_ops::detach): Add comment.
5862 2021-02-03 Pedro Alves <pedro@palves.net>
5864 * infrun.c (struct wait_one_event): Move higher up.
5865 (prepare_for_detach): Abort in-progress displaced steps instead of
5866 letting them complete.
5867 (handle_one): If the inferior is detaching, don't add the thread
5868 back to the global step-over chain.
5869 (restart_threads): Don't restart threads if detaching.
5870 (handle_signal_stop): Remove inferior::detaching reference.
5872 2021-02-03 Pedro Alves <pedro@palves.net>
5874 * infrun.c (prepare_for_detach): Don't release scoped_restore
5877 2021-02-03 Pedro Alves <pedro@palves.net>
5879 * infrun.c (handle_one): New function, factored out from ...
5880 (stop_all_threads): ... here.
5882 2021-02-03 Pedro Alves <pedro@palves.net>
5884 * remote.c (remote_notif_stop_ack): Don't error out on
5885 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5886 (remote_target::discard_pending_stop_replies): Don't delete
5887 in-flight notification; instead, clear its contents.
5889 2021-02-03 Pedro Alves <pedro@palves.net>
5891 * remote.c (extended_remote_target::attach): Set target async in
5892 the target-non-stop path too.
5894 2021-02-03 Pedro Alves <pedro@palves.net>
5897 * infrun.c (handle_signal_stop): Move main context_switch call
5898 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5900 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5902 * NEWS (Changed commands): Add entry for the behavior change of
5903 the inferior command.
5904 * inferior.c (inferior_command): When no argument is given to the
5905 inferior command, display info about the currently selected
5908 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5910 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5912 (read_attribute_reprocess): Adjust.
5914 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5916 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5917 <gnu_ranges_base>: ... this...
5918 <rnglists_base>: ... and this.
5919 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5920 <gnu_ranges_base>: ... this...
5921 <rnglists_base>: ... and this.
5922 (read_cutu_die_from_dwo): Adjust
5923 (dwarf2_get_pc_bounds): Adjust
5924 (dwarf2_record_block_ranges): Adjust.
5925 (read_full_die_1): Adjust
5926 (partial_die_info::read): Adjust.
5927 (read_rnglist_index): Adjust.
5929 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5932 * dwarf2/read.c (read_loclists_rnglists_header): Add
5933 header_offset parameter and use it.
5934 (read_loclist_index): Read header of the current contribution,
5935 not the one at the beginning of the section.
5936 (read_rnglist_index): Likewise.
5938 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5941 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5942 requires_reprocessing flag.
5943 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5945 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5946 and DW_FORM_loclistx.
5947 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5948 instead of set_address for DW_FORM_loclistx and
5951 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5953 * dwarf2/read.c (read_loclist_index): Remove bound check for
5955 (read_rnglist_index): Likewise.
5957 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5959 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5962 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5964 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5966 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5968 * dwarf2/read.c (read_loclist_index): Change complaints into
5971 2021-02-02 Tom de Vries <tdevries@suse.de>
5974 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5977 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5979 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5980 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5981 here from linux-tdep.c and given a new name. Minor cleanups.
5982 (gcore_collect_regset_section_cb): Likewise.
5983 (gcore_collect_thread_registers): Likewise.
5984 (gcore_build_thread_register_notes): Likewise.
5985 (gcore_find_signalled_thread): Likewise.
5986 * gcore.h (gcore_build_thread_register_notes): Declare.
5987 (gcore_find_signalled_thread): Declare.
5988 * fbsd-tdep.c: Add 'gcore.h' include.
5989 (struct fbsd_collect_regset_section_cb_data): Delete.
5990 (fbsd_collect_regset_section_cb): Delete.
5991 (fbsd_collect_thread_registers): Delete.
5992 (struct fbsd_corefile_thread_data): Delete.
5993 (fbsd_corefile_thread): Delete.
5994 (fbsd_make_corefile_notes): Call
5995 gcore_build_thread_register_notes instead of the now deleted
5997 * linux-tdep.c: Add 'gcore.h' include.
5998 (struct linux_collect_regset_section_cb_data): Delete.
5999 (linux_collect_regset_section_cb): Delete.
6000 (linux_collect_thread_registers): Delete.
6001 (linux_corefile_thread): Call
6002 gcore_build_thread_register_notes.
6003 (find_signalled_thread): Delete.
6004 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
6006 2021-01-29 Tom de Vries <tdevries@suse.de>
6008 PR breakpoints/26063
6009 * infrun.c (process_event_stop_test): Reset
6010 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
6013 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6015 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
6016 assert. Extend the header comment.
6018 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6020 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
6021 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
6022 * tui/tui-data.h (TUI_STATUS_WIN): Define.
6023 (tui_locator_win_info_ptr): Delete declaration.
6024 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
6025 (tui_disasm_window::set_contents): Fetch state from tui_location
6027 (tui_get_begin_asm_address): Likewise.
6028 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
6030 (get_locator_window): Delete.
6031 (initialize_known_windows): Treat locator window just like all the
6033 * tui/tui-source.c: Add 'tui/tui-location.h' include.
6034 (tui_source_window::set_contents): Fetch state from tui_location
6036 (tui_source_window::showing_source_p): Likewise.
6037 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
6039 (tui_locator_win_info_ptr): Delete.
6040 (tui_locator_window::make_status_line): Fetch state from
6041 tui_location global.
6042 (tui_locator_window::rerender): Remove check of 'handle',
6043 reindent function body.
6044 (tui_locator_window::set_locator_fullname): Delete.
6045 (tui_locator_window::set_locator_info): Delete.
6046 (tui_update_locator_fullname): Delete.
6047 (tui_show_frame_info): Likewise.
6048 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6049 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6050 tui/tui-location.h and renamed to
6051 tui_location_tracker::set_location.
6052 (tui_locator_window::set_locator_fullname): Moved to
6053 tui/tui-location.h and renamed to
6054 tui_location_tracker::set_fullname.
6055 (tui_locator_window::full_name): Delete.
6056 (tui_locator_window::proc_name): Delete.
6057 (tui_locator_window::line_no): Delete.
6058 (tui_locator_window::addr): Delete.
6059 (tui_locator_window::gdbarch): Delete.
6060 (tui_update_locator_fullname): Delete declaration.
6061 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6063 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6064 (tui_display_main): Call function on tui_location directly.
6065 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6066 * tui/tui-location.c: New file.
6067 * tui/tui-location.h: New file.
6069 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6071 * gdbtypes.h (get_type_arch): Rename to...
6072 (struct type) <arch>: ... this, update all users.
6074 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6076 * gdbtypes.h (struct type) <arch>: Rename to...
6077 <arch_owner>: ... this, update all users.
6078 <objfile>: Rename to...
6079 <objfile_owner>: ... this, update all users.
6081 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6083 * gdbcmd.h (execute_command_to_string): Update comment.
6084 * top.c (execute_command_to_string): Update header comment.
6086 2021-01-28 Tom de Vries <tdevries@suse.de>
6088 PR breakpoints/27205
6089 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6090 (create_longjmp_master_breakpoint_names): New function, factored out
6092 (create_longjmp_master_breakpoint): ... here. Only try to install
6093 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6094 breakpoint in libc.so failed.
6096 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6099 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6100 unique_ptr is released when the wrapped pointer is kept for later
6103 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6105 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6106 BLR and BR instructions.
6107 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6108 (enum aarch64_masks): New.
6110 2021-01-26 Tom Tromey <tromey@adacore.com>
6112 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6113 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6114 (windows_init_thread_list, windows_nat::handle_load_dll)
6115 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6116 (windows_nat_target::resume)
6117 (windows_nat_target::get_windows_debug_event)
6118 (windows_nat_target::interrupt, windows_xfer_memory)
6119 (windows_nat_target::close): Update.
6120 * nat/windows-nat.c (DEBUG_EVENTS): Use
6121 debug_prefixed_printf_cond.
6122 (matching_pending_stop, fetch_pending_stop)
6123 (continue_last_debug_event): Update.
6125 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6127 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6128 elfcore_write_file_note.
6130 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6132 * arc-tdep.c (arc_add_reggroups): New function.
6133 (arc_gdbarch_init): Call arc_add_reggroups.
6135 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6137 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6139 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6140 Simon Marchi <simon.marchi@polymtl.ca>
6141 Tom de Vries <tdevries@suse.de>
6143 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6146 2021-01-25 Tom Tromey <tromey@adacore.com>
6148 * dwarf2/read.c (get_mpz): New function.
6149 (get_dwarf2_rational_constant): Use it.
6151 2021-01-25 Tom Tromey <tromey@adacore.com>
6153 * ada-lang.c (resolve_subexp): Handle array context.
6155 2021-01-23 Tom Tromey <tom@tromey.com>
6158 * compile/compile-loc2c.c (note_register): New function.
6159 (pushf_register_address, pushf_register): Use it.
6161 2021-01-23 Tom Tromey <tom@tromey.com>
6163 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6164 Change type of "registers_used".
6165 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6166 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6167 (locexpr_generate_c_location, loclist_generate_c_location): Change
6168 type of "registers_used".
6169 * compile/compile.h (compile_dwarf_expr_to_c)
6170 (compile_dwarf_bounds_to_c): Update.
6171 * compile/compile-loc2c.c (pushf_register_address)
6172 (pushf_register, do_compile_dwarf_expr_to_c)
6173 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6174 of "registers_used".
6175 * compile/compile-c.h (generate_c_for_variable_locations):
6177 * compile/compile-c-symbols.c (generate_vla_size)
6178 (generate_c_for_for_one_variable): Change type of
6180 (generate_c_for_variable_locations): Return std::vector.
6181 * compile/compile-c-support.c (generate_register_struct): Change
6182 type of "registers_used".
6185 2021-01-23 Tom Tromey <tom@tromey.com>
6187 * compile/compile-internal.h (class compile_instance)
6188 <set_arguments>: Change return type.
6189 * compile/compile.c (compile_to_object): Remove call to reset.
6190 (compile_instance::set_arguments): Change return type.
6192 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6194 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6195 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6197 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6199 * Makefile.in (SELFTESTS_SRCS): Add
6200 unittests/gdb_tilde_expand-selftests.c.
6201 * unittests/gdb_tilde_expand-selftests.c: New file.
6203 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6206 * NEWS: Mention new command.
6207 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6208 (version_style): Define.
6209 (cli_style_option::cli_style_option): Add intensity parameter, and
6211 (_initialize_cli_style): Register version style set/show commands.
6212 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6213 (version_style): Declare.
6214 * top.c (print_gdb_version): Use version_stype, and styled_string
6215 to print the GDB version string.
6217 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6219 * utils.c (emit_style_escape): Only emit an escape sequence if the
6220 requested style is different than the current applied style.
6221 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6222 current applied_style.
6223 (fputs_styled): Remove is_default check.
6224 (fputs_styled_unfiltered): Likewise.
6225 (vfprintf_styled_no_gdbfmt): Likewise.
6227 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6229 * remote.h (remote_debug_printf): New.
6230 (remote_debug_printf_nofunc): New.
6231 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6232 * remote.c: Use above macros throughout file.
6234 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6236 * remote.h (remote_debug): Change to bool.
6237 * remote.c (remote_debug): Change to bool.
6238 (_initialize_remote): Adjust.
6240 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6242 * target.h (remote_debug): Move to...
6243 * remote.h (remote_debug): ... here.
6244 * top.c (remote_debug): Move to...
6245 * remote.c (remote_debug): ... here.
6246 * remote-sim.c: Include remote.h.
6248 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6250 * cli/cli-cmds.c (show_remote_debug): Remove.
6251 (show_remote_timeout): Remove.
6252 (_initialize_cli_cmds): Don't register commands.
6253 * remote.c (show_remote_debug): Move here.
6254 (show_remote_timeout): Move here.
6255 (_initialize_remote): Register commands.
6257 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6259 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6260 type::objfile method instead.
6262 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6264 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6265 use the type::is_objfile_owned method.
6267 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6269 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6270 (TYPE_OWNER): Remove.
6271 (TYPE_OBJFILE): Adjust.
6272 (struct main_type) <flag_objfile_owned>: Rename to...
6273 <m_flag_objfile_owned>: ... this.
6274 <owner>: Rename to...
6275 <m_owner>: ... this.
6276 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6278 (TYPE_ALLOC): Adjust.
6279 * gdbtypes.c (alloc_type): Adjust.
6280 (alloc_type_arch): Adjust.
6281 (alloc_type_copy): Adjust.
6282 (get_type_arch): Adjust.
6283 (smash_type): Adjust.
6284 (lookup_array_range_type): Adjust.
6285 (recursive_dump_type): Adjust.
6286 (copy_type_recursive): Adjust.
6287 * compile/compile-c-types.c (convert_func): Adjust.
6288 (convert_type_basic): Adjust.
6289 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6292 (language_arch_info::type_and_symbol::alloc_type_symbol):
6295 2021-01-21 Luis Machado <luis.machado@linaro.org>
6297 * coffread.c (enter_linenos): Passing string to complaint.
6298 * valops.c (value_assign): Make array view.
6300 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6302 * auto-load.h (debug_auto_load): Move here.
6303 (auto_load_debug_printf): New.
6304 * auto-load.c: Use auto_load_debug_printf.
6305 (debug_auto_load): Move to header.
6306 * linux-thread-db.c (try_thread_db_load): Use
6307 auto_load_debug_printf.
6308 * main.c (captured_main_1): Likewise.
6310 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6312 * f-valprint.c (f77_array_offset_tbl): Remove.
6314 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6316 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6318 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6320 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6323 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
6326 * python/py-breakpoint.c (bppy_get_location): Handle
6327 bp_hardware_breakpoint.
6328 (bppy_init): Likewise.
6329 (gdbpy_breakpoint_created): Likewise.
6331 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6333 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6335 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6337 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6338 (_initialize_gdb_bfd): Adjust.
6340 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6343 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6345 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6347 * dwarf2/read.c (follow_die_offset): Add logging.
6348 (dwarf2_per_objfile::age_comp_units): Add logging.
6350 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6352 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6353 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6354 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6355 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6356 * arm-tdep.c (struct frame_unwind): Make static.
6357 * auto-load.c (auto_load_safe_path_vec): Make static.
6358 * csky-tdep.c (csky_stub_unwind): Make static.
6359 * gdbarch.c (gdbarch_data_registry): Make static.
6360 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6361 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6362 * i386-tdep.c (i386_frame_setup_skip_insns,
6363 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6365 * infrun.c (observer_mode): Make static.
6366 * linux-nat.c (sigchld_action): Make static.
6367 * linux-thread-db.c (thread_db_list): Make static.
6368 * maint-test-options.c (maintenance_test_options_list):
6369 * mep-tdep.c (mep_csr_registers): Make static.
6370 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6371 (stats): Make static.
6372 * nat/linux-osdata.c (struct osdata_type): Make static.
6373 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6374 * progspace.c (last_program_space_num): Make static.
6375 * python/py-param.c (struct parm_constant): Remove struct type
6377 (parm_constants): Make static.
6378 * python/py-record-btrace.c (btpy_list_methods): Make static.
6379 * python/py-record.c (recpy_gap_type): Make static.
6380 * record.c (record_goto_cmdlist): Make static.
6381 * regcache.c (regcache_descr_handle): Make static.
6382 * registry.h (DEFINE_REGISTRY): Make definition static.
6383 * symmisc.c (std_in, std_out, std_err): Make static.
6384 * top.c (previous_saved_command_line): Make static.
6385 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6387 * unittests/command-def-selftests.c (nr_duplicates,
6388 nr_invalid_prefixcmd, lists): Make static.
6389 * unittests/observable-selftests.c (test_notification): Make
6391 * unittests/optional/assignment/1.cc (counter): Make static.
6392 * unittests/optional/assignment/2.cc (counter): Make static.
6393 * unittests/optional/assignment/3.cc (counter): Make static.
6394 * unittests/optional/assignment/4.cc (counter): Make static.
6395 * unittests/optional/assignment/5.cc (counter): Make static.
6396 * unittests/optional/assignment/6.cc (counter): Make static.
6398 2021-01-20 Joel Sherrill <joel@rtems.org>
6401 * remote.c (struct remote_thread_info) <resume_state>: Rename
6403 <get_resume_state>: ... this.
6404 (remote_target::resume): Adjust.
6405 (remote_target::commit_resume): Adjust.
6406 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6408 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6409 Tom Tromey <tom@tromey.com>
6411 * stap-probe.c (stap_parse_single_operand): Handle '!'
6413 (stap_parse_argument_conditionally): Likewise.
6414 Skip spaces after processing open-parenthesis sub-expression.
6415 (stap_parse_argument_1): Skip spaces after call to
6416 stap_parse_argument_conditionally.
6417 Handle case when right-side expression is a parenthesized
6419 Skip spaces after call to stap_parse_argument_1.
6421 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6423 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6425 2021-01-19 Luis Machado <luis.machado@linaro.org>
6427 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6428 memory and save data.
6429 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6430 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6431 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6432 (trad_frame_value_bytes_p): Remove.
6433 (trad_frame_reset_saved_regs): Adjust documentation.
6434 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6435 constructor and reset the state of the registers.
6436 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6437 (trad_frame_value_bytes_p, trad_frame_set_value)
6438 (trad_frame_set_realreg, trad_frame_set_addr)
6439 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6440 (trad_frame_set_reg_realreg): Update to call member function.
6441 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6442 (trad_frame_get_prev_register): Likewise.
6444 * aarch64-tdep.c (aarch64_analyze_prologue)
6445 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6446 (aarch64_prologue_prev_register): Update to use member functions.
6447 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6448 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6449 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6450 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6451 (arm_make_epilogue_frame_cache): Likewise.
6452 * avr-tdep.c (avr_frame_unwind_cache)
6453 (avr_frame_prev_register): Likewise.
6454 * cris-tdep.c (cris_scan_prologue): Likewise.
6455 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6456 * frv-tdep.c (frv_analyze_prologue): Likewise.
6457 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6458 * lm32-tdep.c (lm32_frame_cache): Likewise.
6459 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6460 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6461 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6462 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6463 (reset_saved_regs): Adjust to set realreg.
6464 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6465 call member functions.
6466 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6467 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6468 (s390_backchain_frame_unwind_cache): Likewise.
6469 * score-tdep.c (score7_analyze_prologue)
6470 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6471 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6472 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6473 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6474 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6475 * tilegx-tdep.c (tilegx_analyze_prologue)
6476 (tilegx_frame_cache): Likewise.
6477 * v850-tdep.c (v850_frame_cache): Likewise.
6478 * vax-tdep.c (vax_frame_cache): Likewise.
6480 2021-01-19 Luis Machado <luis.machado@linaro.org>
6482 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6484 (put_frame_register_bytes): Likewise.
6485 Adjust documentation.
6486 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6487 (safe_frame_unwind_memory): Likewise.
6488 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6489 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6491 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6492 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6493 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6494 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6495 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6496 * dwarf2/loc.c (rw_pieced_value): Likewise.
6497 * hppa-tdep.c (hppa_frame_cache): Likewise.
6498 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6499 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6500 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6501 (i386_linux_rt_sigtramp_start): Likewise.
6502 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6503 * i386-tdep.c (i386_register_to_value): Likewise.
6504 * i387-tdep.c (i387_register_to_value): Likewise.
6505 * ia64-tdep.c (ia64_register_to_value): Likewise.
6506 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6507 (m32r_linux_rt_sigtramp_start): Likewise.
6508 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6509 * m68k-tdep.c (m68k_register_to_value): Likewise.
6510 * mips-tdep.c (mips_register_to_value)
6511 (mips_value_to_register): Likewise.
6512 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6513 (ppcfbsd_sigtramp_frame_cache): Likewise.
6514 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6515 (ppcobsd_sigtramp_frame_cache): Likewise.
6516 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6517 (rs6000_register_to_value): Likewise.
6518 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6519 * tramp-frame.c (tramp_frame_start): Likewise.
6520 * valops.c (value_assign): Likewise.
6522 2021-01-19 Luis Machado <luis.machado@linaro.org>
6524 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6526 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6527 instead of buffer and size.
6528 (trad_frame_set_reg_value_bytes): Likewise.
6529 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6530 (trad_frame_set_value_bytes): Likewise.
6532 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6534 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6536 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6538 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6539 (riscv_fbsd_gregset): Use riscv_supply_regset.
6540 (riscv_fbsd_fpregset): Likewise.
6541 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6542 (riscv_linux_fregset): Likewise.
6543 * riscv-tdep.c (riscv_supply_regset): Define new function.
6544 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6546 2021-01-18 Tom de Vries <tdevries@suse.de>
6549 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6551 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6554 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6556 * remote.c (class remote_target) <remote_hostio_send_command,
6557 remote_hostio_parse_result>: Constify parameter.
6558 (remote_hostio_parse_result): Likewise.
6559 (remote_target::remote_hostio_send_command): Adjust.
6560 (remote_target::remote_hostio_pread_vFile): Adjust.
6561 (remote_target::fileio_readlink): Adjust.
6562 (remote_target::fileio_fstat): Adjust.
6564 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6566 * remote.c (remote_target::start_remote): Move wait_status to
6569 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6571 * remote.c (class remote_target):
6572 <add_current_inferior_and_thread>: Constify parameter.
6573 (stop_reply_extract_thread): Likewise.
6574 (remote_target::get_current_thread): Likewise.
6575 (remote_target::add_current_inferior_and_thread): Likewise.
6577 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6579 * remote.c (class remote_target)
6580 <remote_unpack_thread_info_response,
6581 parse_threadlist_response>: Constify parameter and/or return
6582 value and or local variable.
6583 (stub_unpack_int): Likewise.
6584 (unpack_nibble): Likewise.
6585 (unpack_byte): Likewise.
6586 (unpack_int): Likewise.
6587 (unpack_string): Likewise.
6588 (unpack_threadid): Likewise.
6589 (remote_target::remote_unpack_thread_info_response): Likewise.
6590 (remote_target::parse_threadlist_response): Likewise.
6592 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6594 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6596 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
6598 * MAINTAINERS (Write After Approval): Add myself.
6600 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6602 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6603 because is_trivially_default_constructible was first implemented with
6606 2021-01-14 Tom de Vries <tdevries@suse.de>
6608 PR breakpoints/27151
6609 * objfiles.h (in_plt_section): Handle .plt.sec.
6611 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6615 (remote_target::select_thread_for_ambiguous_stop_reply): New
6617 (remote_target::process_stop_reply): Call
6618 select_thread_for_ambiguous_stop_reply.
6620 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6622 * record-btrace.c (class record_btrace_target): Remove.
6623 (record_btrace_target::commit_resume): Remove.
6624 * record-full.c (class record_full_target): Remove.
6625 (record_full_target::commit_resume): Remove.
6627 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6629 * remote.c (enum class resume_state): New.
6630 (struct resumed_pending_vcont_info): New.
6631 (struct remote_thread_info) <resume_state, set_not_resumed,
6632 set_resumed_pending_vcont, resumed_pending_vcont_info,
6633 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6635 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6636 (remote_target::remote_add_thread): Adjust.
6637 (remote_target::process_initial_stop_replies): Adjust.
6638 (remote_target::resume): Adjust.
6639 (remote_target::commit_resume): Rely on state in
6640 remote_thread_info and not on tp->executing.
6641 (remote_target::process_stop_reply): Adjust.
6643 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6645 * arc-tdep.h (arc_debug_printf): New.
6646 * arc-tdep.c: Use arc_debug_printf.
6647 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6648 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6649 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6651 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6653 * arc-tdep.h (arc_debug): Change type to bool.
6654 * arc-tdep.c (arc_debug): Change type to bool.
6655 (arc_analyze_prologue): Adjust.
6656 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6657 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6659 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6661 * auto-load.c (auto_load_objfile_script_1): Use bool.
6662 (execute_script_contents): Use bool.
6664 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6666 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6668 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6670 * extension-priv.h (struct extension_language_script_ops)
6671 <auto_load_enabled>: Return bool.
6672 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6674 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6676 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6678 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6679 move comment to header.
6680 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6682 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6683 move comment to header.
6685 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6687 * auto-load.h (file_is_auto_load_safe): Change return type to
6688 bool, move comment here.
6689 * auto-load.c (file_is_auto_load_safe): Change return type and
6690 advice_printed to bool. Move comment to header.
6692 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6694 * jit.c (jit_debug_printf): New, use throughout file.
6696 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6698 * infrun.c (normal_stop): Fix indentation.
6700 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6702 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6704 * symfile.h: ... here.
6705 * symfile.c: Update doc.
6707 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6709 * target.h (baud_rate, serial_parity): Move declarations...
6710 * serial.h: ... here.
6711 * main.c: Include serial.h.
6712 * serial.c (baud_rate, serial_parity): Update doc.
6714 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6716 * top.c (pre_init_ui_hook): Remove.
6718 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6720 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6721 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6722 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6723 * features/aarch64-fpu.xml: Add bfloat16 type.
6725 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6727 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6729 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6731 * f-exp.y (dot_ops): Rename to...
6732 (fortran_operators): ...this. Add a header comment. Add symbol
6734 (yylex): Update to use fortran_operators not dot_ops. Remove
6735 special handling for '**', this is now included in
6738 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6740 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6741 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6742 * aarch64-tdep.c: Use aarch64_debug_printf.
6744 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6746 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6749 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6751 * jit.c (jit_debug): Change type to bool.
6752 (_initialize_jit): Adjust.
6754 2021-01-09 Tom Tromey <tom@tromey.com>
6757 * compile/compile.c (compile_to_object): Avoid crash when
6758 osabi_triplet_regexp returns NULL.
6760 2021-01-09 Tom Tromey <tom@tromey.com>
6762 * tracepoint.h (class collection_list) <append_exp>: Take a
6764 * tracepoint.c (collection_list::append_exp): Take a std::string.
6765 (encode_actions_1): Update.
6767 2021-01-08 Tom Tromey <tromey@adacore.com>
6769 * parse.c (parse_expression): Add void_context_p parameter. Use
6770 parse_exp_in_context.
6771 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6773 (print_command, call_command): Update.
6774 * expression.h (parse_expression): Add void_context_p parameter.
6776 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6778 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6779 for internalvar components that have a dynamic location.
6781 2021-01-08 Tom de Vries <tdevries@suse.de>
6784 * breakpoint.c (create_exception_master_breakpoint_probe)
6785 (create_exception_master_breakpoint_hook): Factor out
6787 (create_exception_master_breakpoint): ... here. Only try to install
6788 the master exception breakpoint in objfile.debug using the
6789 _Unwind_DebugHook method, if the install using probes in objfile
6792 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6794 * f-lang.c (fortran_value_subarray): Call value_from_component.
6796 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6798 * remote-sim.c: Include memory-map.h.
6799 (gdbsim_target): Define memory_map override.
6800 (gdbsim_target::memory_map): Define.
6802 2021-01-07 Tom Tromey <tromey@adacore.com>
6804 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6806 2021-01-07 Tom Tromey <tromey@adacore.com>
6808 * ada-lang.c (add_component_interval): Start loop using vector's
6811 2021-01-06 Tom Tromey <tromey@adacore.com>
6813 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6815 * valarith.c (fixed_point_binop): Handle multiplication
6816 and division specially.
6817 * valops.c (value_to_gdb_mpq): New function.
6818 (value_cast_to_fixed_point): Use it.
6820 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6822 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6823 Call wnoutrefresh instead of tui_win_info::refresh_window.
6825 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6827 * tui/tui-source.c (tui_source_window::show_line_number):
6828 Redraw second space after line number.
6830 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6833 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6834 Fix source pad size in prefresh.
6835 (tui_source_window_base::show_source_content): Grow source pad
6838 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6840 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6841 (bfin_frame_align): Use align_down.
6843 2021-01-04 Tom de Vries <tdevries@suse.de>
6845 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6846 terminators that do not terminate anything.
6848 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6850 * debug.c (debug_print_depth): New.
6851 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6852 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6853 * infrun.c (start_step_over): Use
6854 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6855 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6856 INFRUN_SCOPED_DEBUG_START_END.
6857 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6859 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6861 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6863 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6865 * utils.c (vfprintf_unfiltered): Print timestamp only when
6866 previous debug output ended with a newline.
6868 2021-01-04 Luis Machado <luis.machado@linaro.org>
6870 Update all users of trad_frame_saved_reg to use the new member
6873 Remote all struct keywords from declarations of trad_frame_saved_reg
6874 types, except on forward declarations.
6876 * aarch64-tdep.c: Update.
6877 * alpha-mdebug-tdep.c: Update.
6878 * alpha-tdep.c: Update.
6879 * arc-tdep.c: Update.
6880 * arm-tdep.c: Update.
6881 * avr-tdep.c: Update.
6882 * cris-tdep.c: Update.
6883 * csky-tdep.c: Update.
6884 * frv-tdep.c: Update.
6885 * hppa-linux-tdep.c: Update.
6886 * hppa-tdep.c: Update.
6887 * hppa-tdep.h: Update.
6888 * lm32-tdep.c: Update.
6889 * m32r-linux-tdep.c: Update.
6890 * m32r-tdep.c: Update.
6891 * m68hc11-tdep.c: Update.
6892 * mips-tdep.c: Update.
6893 * moxie-tdep.c: Update.
6894 * riscv-tdep.c: Update.
6895 * rs6000-tdep.c: Update.
6896 * s390-linux-tdep.c: Update.
6897 * s390-tdep.c: Update.
6898 * score-tdep.c: Update.
6899 * sparc-netbsd-tdep.c: Update.
6900 * sparc-sol2-tdep.c: Update.
6901 * sparc64-fbsd-tdep.c: Update.
6902 * sparc64-netbsd-tdep.c: Update.
6903 * sparc64-obsd-tdep.c: Update.
6904 * sparc64-sol2-tdep.c: Update.
6905 * tilegx-tdep.c: Update.
6906 * v850-tdep.c: Update.
6907 * vax-tdep.c: Update.
6909 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6910 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6912 * trad-frame.c: Update.
6913 Remove TF_REG_* enum.
6914 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6915 a trivially-constructible struct.
6916 (trad_frame_reset_saved_regs): Adjust to use member function.
6917 (trad_frame_value_p): Likewise.
6918 (trad_frame_addr_p): Likewise.
6919 (trad_frame_realreg_p): Likewise.
6920 (trad_frame_value_bytes_p): Likewise.
6921 (trad_frame_set_value): Likewise.
6922 (trad_frame_set_realreg): Likewise.
6923 (trad_frame_set_addr): Likewise.
6924 (trad_frame_set_unknown): Likewise.
6925 (trad_frame_set_value_bytes): Likewise.
6926 (trad_frame_get_prev_register): Likewise.
6927 * trad-frame.h: Update.
6928 (trad_frame_saved_reg_kind): New enum.
6929 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6930 <m_kind, m_reg>: New member fields.
6931 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6932 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6933 <is_addr, is_unknown, is_value_bytes>: New member functions.
6935 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6937 * target-float.c: Fix typos.
6939 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6941 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6943 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6945 * gdbarch.sh: Update copyright year range.
6947 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6949 Update copyright year range in copyright header of all GDB files.
6951 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6953 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6954 to the list of directories to update.
6956 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6958 * top.c (print_gdb_version): Update copyright year.
6960 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6962 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6964 For older changes see ChangeLog-2020.
6970 version-control: never