1 2021-06-11 Tom Tromey <tom@tromey.com>
4 * rust-parse.c (rust_parser::lex_identifier): Handle raw
6 (rust_lex_tests): Add raw identifier tests.
8 2021-06-10 Simon Marchi <simon.marchi@polymtl.ca>
10 * lib/gdb.exp (default_gdb_exit): Unset gdb_tty_name.
11 (spawn_capture_tty_name): New, override builtin spawn.
12 (default_gdb_spawn): Capture GDB's TTY name.
13 * lib/tuiterm.exp (tuiterm_spawn): Remove.
14 (tuiterm_env_init, tuiterm_env_finish): Remove spawn override.
15 (Term) <resize>: Use new variable name.
16 (tuiterm_env_init, tuiterm_env_finish): Remove.
17 (tuiterm_env): Don't call tuiterm_env_init and register
18 tuiterm_env_finish in gdb_finish_hooks.
19 (gdb_finish_hooks): Remove.
20 (gdb_finish): Don't call finish hooks.
22 2021-06-08 Lancelot Six <lsix@lancelotsix.com>
24 * python/lib/gdb/FrameDecorator.py (FrameDecorator): Use 'is None'
26 (FrameVars): Use 'is not None' instead of '!= None'.
27 * python/lib/gdb/command/frame_filters.py (SetFrameFilterPriority):
28 Use 'is None' instead of '== None' and 'is not None' instead of '!=
31 2021-06-08 Simon Marchi <simon.marchi@polymtl.ca>
33 * inferior.h (class inferior) <in_initial_library_scan>: New.
34 * infcmd.c (post_create_inferior): Set in_initial_library_scan.
35 * infrun.c (follow_fork_inferior): Likewise.
36 * linux-thread-db.c (try_thread_db_load): Catch exception thrown
37 by try_thread_db_load_1
38 (thread_db_load): Return early if in_initial_library_scan is
40 * remote.c (remote_new_objfile): Return early if
41 in_initial_library_scan is set.
43 2021-06-07 Pedro Alves <pedro@palves.net>
45 * dwarf2/read.c (struct partial_die_info): Add defaulted copy
47 * symtab.h (struct symbol): Add defaulted copy assignment
50 2021-06-07 Pedro Alves <pedro@palves.net>
52 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
53 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
54 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
57 2021-06-07 Pedro Alves <pedro@palves.net>
59 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
60 (nat_sigval_t): ... this and remove typedef of same name.
61 (struct nat_siginfo): Rename to ...
62 (nat_siginfo_t): ... this and remove typedef of same name.
63 (struct compat_sigval): Rename to ...
64 (compat_sigval_t): ... this and remove typedef of same name.
65 (struct compat_siginfo): Rename to ...
66 (compat_siginfo_t): ... this and remove typedef of same name.
67 (struct compat_x32_siginfo): Rename to ...
68 (compat_x32_siginfo_t): ... this and remove typedef of same name.
69 (amd64_linux_siginfo_fixup_common): Adjust.
71 2021-06-07 Pedro Alves <pedro@palves.net>
73 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
74 __attribute__ __aligned__ from the typedef to the struct.
76 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
79 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
80 type_align, and spot case where the alignment is unknown.
82 2021-06-07 Carl Love <cel@us.ibm.com>
84 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
85 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
86 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
87 ppc64_pcrel_linkage2_target): New functions.
88 (ppc64_standard_linkage9, ppc64_standard_linkage10,
89 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
91 (ppc64_standard_linkage9, ppc64_standard_linkage10,
92 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
93 in define MAX expression.
94 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
95 ppc64_standard_linkage10, ppc64_standard_linkage11,
96 ppc64_standard_linkage12.
97 * (ppc_insn_prefix_dform): New function.
99 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
102 * sparc-nat.c (sparc_fetch_inferior_registers): Set
103 inferior_ptid instead of using switch_to_thread.
104 (sparc_store_inferior_registers): Likewise.
106 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
108 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
109 (compile_to_object): Ignore SIGPIPE before calling the plugin.
111 2021-06-05 Tom Tromey <tom@tromey.com>
113 * data-directory/Makefile.in (Makefile): Use correct directory
116 2021-06-05 Tom Tromey <tom@tromey.com>
118 * data-directory/Makefile.in (Makefile): Rewrite.
120 2021-06-05 Tom Tromey <tromey@adacore.com>
122 * configure: Rebuild.
123 * configure.ac: Add ACX_NONCANONICAL_TARGET.
125 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
127 * NEWS: Document 'set disassembler-options' support for the ARC
129 * arc-tdep.c (arc_gdbarch_init): Set
130 'gdbarch_valid_disassembler_options'.
132 2021-06-04 Tom Tromey <tromey@adacore.com>
134 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
136 * dwarf2/loc.c (dwarf2_evaluate_property) <case
137 PROP_VARIABLE_NAME>: New case.
138 (compute_var_value): New function.
139 (sect_variable_value): Use compute_var_value.
140 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
141 (var_decl_name): New function.
142 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
143 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
145 (union dynamic_prop_data) <variable_name>: New member.
146 (struct dynamic_prop) <variable_name, set_variable_name>: New
149 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
151 * remote.c (remote_target)
152 <select_thread_for_ambiguous_stop_reply>: Add additional debug
155 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
157 * python/py-tui.c (class tui_py_window): Add click function.
158 (tui_py_window::click): Likewise.
160 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
162 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
163 * tui/tui-data.h (struct tui_win_info): Add click function.
164 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
165 (tui_deprep_terminal): Disable mouse events.
166 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
167 * tui/tui.c (tui_disable): Disable mouse events.
169 2021-06-03 Magne Hov <mhov@undo.io>
172 * eval.c (expression::evaluate): Check inferior_ptid.
174 2021-06-03 Pedro Alves <pedro@palves.net>
176 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
178 (Global Maintainers): Update my address.
179 (Write After Approval): Remove stale entry.
181 2021-06-03 John Baldwin <jhb@FreeBSD.org>
183 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
184 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
185 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
186 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
187 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
188 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
189 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
190 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
191 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
192 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
193 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
194 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
195 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
196 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
197 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
198 (fbsd_report_signal_info): New.
199 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
200 report_signal_info method.
202 2021-06-03 Magne Hov <mhov@undo.io>
204 * MAINTAINERS (Write After Approval): Add Magne Hov.
206 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
208 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
209 gdb.SYMBOL_LABEL_DOMAIN constant.
211 2021-06-01 John Baldwin <jhb@FreeBSD.org>
213 * infrun.c (handle_inferior_event): Only call
214 gdbarch_displaced_step_restore_all_in_ptid if
215 gdbarch_supports_displaced_stepping is true.
217 2021-06-01 Tom Tromey <tromey@adacore.com>
219 * Makefile.in (all-data-directory): Remove.
220 (data-directory/Makefile): Remove.
222 2021-06-01 Tom Tromey <tromey@adacore.com>
224 * configure: Rebuild.
225 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
227 2021-06-01 Tom Tromey <tromey@adacore.com>
229 * silent-rules.mk (ECHO_CC): New variable.
231 2021-06-01 Tom Tromey <tromey@adacore.com>
233 * Makefile.in (SUBDIRS): Add testsuite.
234 (all): Don't exclude testsuite.
236 2021-06-01 Tom Tromey <tromey@adacore.com>
238 * configure.ac: Copy some code from testsuite/configure.ac.
239 (enable_libctf): Subst this, not ENABLE_LIBCTF.
240 * configure: Rebuild.
242 2021-06-01 Tom de Vries <tdevries@suse.de>
245 * minsyms.c (msymbol_is_cold_clone): New function.
246 (msymbol_is_function): Use msymbol_is_cold_clone.
248 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
249 Andrew Burgess <andrew.burgess@embecosm.com>
252 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
253 (ALLDEPFILES): Add arm-none-tdep.c
254 * arm-none-tdep.c: New file.
255 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
257 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
258 Richard Bunt <richard.bunt@arm.com>
260 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
261 check for why the backtrace stopped.
263 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
265 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
267 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
268 signature parameter, update all callers.
269 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
272 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
274 * dwarf2/read.h (signatured_type_up): New, use where possible.
276 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
278 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
280 2021-05-30 Tom Tromey <tom@tromey.com>
282 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
284 (create_signatured_type_table_from_index)
285 (create_signatured_type_table_from_debug_names, add_type_unit)
286 (read_comp_units_from_section): Update.
288 2021-05-30 Tom Tromey <tom@tromey.com>
290 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
291 m_num_psymtabs>: Remove.
292 (resize_symtabs): Update.
293 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
294 (dwarf2_per_bfd::allocate_signatured_type): Update.
296 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
298 * Fix tab after space indentation issues throughout.
300 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
302 * Fix some indentation mistakes throughout.
304 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
306 * breakpoint.h (iterate_over_bp_locations): Remove. Update
307 users to use all_bp_locations.
308 (all_bp_locations): New.
309 * breakpoint.c (all_bp_locations): Make non-static.
310 (iterate_over_bp_locations): Remove.
312 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
314 * breakpoint.h (iterate_over_breakpoints): Remove. Update
315 callers to use all_breakpoints or all_breakpoints_safe.
316 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
317 all_breakpoints_safe): Move here.
318 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
320 (iterate_over_breakpoints): Remove.
321 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
323 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
325 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
327 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
329 * breakpoint.c (get_first_locp_gte_addr): Remove.
330 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
331 all_bp_locations_at_addr.
332 (struct bp_locations_at_addr_range): New.
333 (all_bp_locations_at_addr): New.
334 (bp_locations_compare_addrs): New.
336 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
338 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
340 (all_bp_locations): New.
342 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
344 * breakpoint.c (bp_locations): Change to std::vector, update all
346 (bp_locations_count): Remove.
347 (update_global_location_list): Change to work with indices
348 rather than bp_location**.
350 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
352 * breakpoint.h (bp_locations_range): New.
353 (struct breakpoint) <locations>: New. Use where possible.
355 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
357 * breakpoint.h (all_tracepoints): Remove.
358 (breakpoint_iterator): Move here.
359 (struct tracepoint_filter): New.
360 (tracepoint_iterator): New.
361 (tracepoint_range): New.
362 (all_tracepoints): New.
363 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
365 (breakpoint_iterator): Move to header.
366 (all_tracepoints): New.
367 * tracepoint.c (start_tracing): Adjust.
369 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
371 * breakpoint.c (breakpoint_safe_range): New.
372 (all_breakpoints_safe): New. Use instead of
373 ALL_BREAKPOINTS_SAFE where possible.
375 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
377 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
379 (breakpoint_iterator): New.
380 (breakpoint_range): New.
381 (all_breakpoints): New.
383 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
385 * python/py-tui.c (tui_py_window::output): Add full_window
387 (gdbpy_tui_write): Parse "full_window" argument.
389 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
391 * make-init-c: Add option to reverse function calls.
393 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
395 * Makefile.in (INIT_FILES_FILTER_OUT): New.
396 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
397 (stamp-init): Use make-init-c.
398 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
399 * silent-rules.mk (ECHO_INIT_C): Change.
400 * make-init-c: New file.
402 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
404 * command.h (add_alias_cmd): Accept target as
405 cmd_list_element. Update callers.
407 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
409 * command.h (add_info_alias): Accept target as
410 cmd_list_element. Update callers.
412 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
414 * command.h (add_com_alias): Accept target as
415 cmd_list_element. Update callers.
417 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
419 * python/py-param.c (add_setshow_generic): Use return values of
420 add_setshow functions.
422 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
424 * mi/mi-main.c (_initialize_mi_main):
425 * python/py-auto-load.c (gdbpy_initialize_auto_load):
426 * remote.c (_initialize_remote):
428 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
430 * command.h (set_show_commands): New.
431 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
432 add_setshow_boolean_cmd, add_setshow_filename_cmd,
433 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
434 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
435 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
436 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
437 Return set_show_commands. Adjust callers.
438 * cli/cli-decode.c (add_setshow_cmd_full): Return
439 set_show_commands, remove result parameters, adjust callers.
441 2021-05-27 Tom de Vries <tdevries@suse.de>
444 * dwarf2/read.c (process_psymtab_comp_unit):
446 2021-05-27 Tom de Vries <tdevries@suse.de>
448 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
451 2021-05-27 Tom de Vries <tdevries@suse.de>
454 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
455 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
456 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
457 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
459 (dwarf2_per_cu_data): Remove load_all_dies field.
461 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
463 * regcache.c (reg_buffer::reg_buffer): Default-initialize
466 2021-05-26 Tom Tromey <tom@tromey.com>
468 * dwarf2/read.c (allocate_type_unit_groups_table)
469 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
471 (free_line_header_voidp): Remove.
473 (completion_tracker::completion_hash_entry::deleter): Remove.
474 (completion_tracker::discard_completions): Use htab_delete_entry.
475 * utils.h (htab_delete_entry): New template function.
477 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
479 * python/py-tui.c (tui_py_window::refresh_window):
482 2021-05-23 Tom de Vries <tdevries@suse.de>
485 * target.h (struct target_ops): Mention target_thread_architecture in
486 read_description comment.
487 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
488 pid to determine if process is 64-bit or 32-bit.
489 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
491 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
492 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
493 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
494 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
495 Likewise, use pid to determine if kernel supports reading VFP
498 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
500 * main.c (enum cmdarg_kind): Fix option type comments for
501 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
503 2021-05-21 Tom de Vries <tdevries@suse.de>
506 * contrib/cc-with-tweaks.sh: Handle -l.
508 2021-05-21 Tom de Vries <tdevries@suse.de>
511 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
512 objects. Call get_jiter_objfile_data with the_objfile.
514 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
516 * linespec.c (linespec_p): Remove. Replace all uses with
519 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
520 Pedro Alves <pedro@palves.net>
522 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
523 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
524 command_line_up instead of struct command_line.
525 (build_command_line): Likewise.
526 (get_command_line): Update the cmd function call parameter.
527 (process_next_line): Use unique_ptr command_line_up instead
528 of struct command_line.
529 (recurse_read_control_structure): Change the the type of
530 next to command_line_up.
531 (read_command_lines_1): Change type of `next' to be
532 command_line_up and update all references of `next'
535 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
537 * MAINTAINERS (Write After Approval): Add myself.
539 2021-05-19 John Baldwin <jhb@FreeBSD.org>
541 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
543 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
545 * inflow.c (new_tty): Do not leak tty.
547 2021-05-17 Tom Tromey <tom@tromey.com>
549 * dwarf2/read.h: Update include.
550 * dwarf2/read.c: Update include.
551 * dwarf2/line-header.c: Update include.
552 * dwarf2/cu.h: Update include.
553 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
554 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
555 * Makefile.in (COMMON_SFILES): Update.
557 2021-05-17 Tom Tromey <tom@tromey.com>
559 * dwarf2/read.c (maybe_queue_comp_unit)
560 (dwarf2_per_objfile::age_comp_units): Update.
561 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
563 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
564 add_dependence>: New methods.
565 <m_dependencies>: Add "m_" prefix. Now private.
566 <m_mark>: Add "m_" prefix.
567 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
568 (dwarf2_mark_helper): New function.
569 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
571 2021-05-17 Tom Tromey <tom@tromey.com>
573 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
574 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
575 (dwarf2_cu::dwarf2_cu): Move to cu.c.
576 * dwarf2/cu.c: New file.
577 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
579 2021-05-17 Tom Tromey <tom@tromey.com>
581 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
582 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
584 * dwarf2/cu.h: New file.
586 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
588 * .dir-locals.el: Set sentence-end-double-space for all modes, and
589 set brace-list-open to 0 for C and C++ modes.
591 2021-05-17 Tom Tromey <tromey@adacore.com>
593 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
596 2021-05-17 Tom Tromey <tromey@adacore.com>
598 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
599 (group_from_gid): Subtract one from strncpy length.
601 2021-05-17 Tom Tromey <tromey@adacore.com>
603 * source.c (add_path): Check 'p' before using 'p[-1]'.
605 2021-05-17 Tom Tromey <tromey@adacore.com>
607 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
608 (dwarf2_per_cu_data_up): New typedef.
609 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
610 <all_comp_units>: Use dwarf2_per_cu_data_up.
611 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
612 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
613 (create_cu_from_index_list): Likewise.
614 (create_signatured_type_table_from_index)
615 (create_cus_from_debug_names_list, add_type_unit)
616 (read_comp_units_from_section): Update.
617 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
620 2021-05-17 Tom Tromey <tom@tromey.com>
622 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
623 (sort_tu_by_abbrev_offset): Remove.
624 (build_type_psymtabs): Update.
626 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
628 * py-project.toml: New.
629 * gdb-gdb.py.in: Re-format.
631 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
633 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
635 * command.h (cmd_func_p): Remove.
636 * cli/cli-decode.c (cmd_func_p): Remove.
638 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
640 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
642 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
644 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
646 <alias_target>: ... this.
647 (add_alias_cmd): Rename old to target.
648 (add_info_alias): Rename old_name to target_name.
649 (add_com_alias): Likewise.
651 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
653 * Rename "prefixlist" parameters to "subcommands" throughout.
654 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
655 <subcommands>: ... this.
656 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
657 (lookup_cmd_with_subcommands): ... this.
659 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
661 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
663 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
665 * cli/cli-decode.h (prefixname): Make const, move implementation
667 * cli/cli-decode.c (cmd_list_element::prefixname): New.
669 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
671 * ctfread.c (new_symbol): Set function address.
672 (read_func_kind_type): Remove incorrect type name setting.
673 Don't copy name returned from ctf_type_ame_raw throughout file.
675 2021-05-14 Tom Tromey <tom@tromey.com>
677 * rust-lang.c (rust_language::val_print_struct)
678 (rust_language::print_enum): Use common_val_print, not
681 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
683 * python/py-inferior.c (infpy_get_connection_num): New function.
684 (inferior_object_getset): Add a new element for 'connection_num'.
685 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
687 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
689 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
690 argument type, update and re-wrap, header comment.
691 (remote_target::commit_resumed): Convert any_process_wildcard and
692 may_global_wildcard_vcont from int to bool.
694 2021-05-14 Kent Cheung <kent.cheung@arm.com>
696 * cp-valprint.c (cp_print_value): Replaced duplicate code.
697 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
698 just before printing child values.
699 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
700 printing string representation.
701 * python/py-prettyprint.c (print_children): Check max_depth just
702 before printing child values.
703 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
704 printing string representation.
706 2021-05-14 Mike Frysinger <vapier@gentoo.org>
708 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
709 sim/callback.h & sim/sim.h.
711 2021-05-13 Mike Frysinger <vapier@gentoo.org>
713 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
716 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
718 * inf-child.h (inf_child_target) <follow_exec>: New.
719 * inf-child.c (inf_child_target::follow_exec): New.
721 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
723 * target.h (struct target_ops) <follow_exec>: Add ptid_t
725 (target_follow_exec): Likewise.
726 * target.c (target_follow_exec): Add ptid_t parameter.
727 * infrun.c (follow_exec): Adjust call to target_follow_exec,
728 don't push target nor create thread.
729 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
730 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
731 (thread_db_target::follow_exec): New.
732 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
733 (remote_target::follow_exec): Call
734 process_stratum_target::follow_exec.
735 * target-delegates.c: Re-generate.
737 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
739 * infrun.c (follow_exec): Call target_follow_fork when
740 follow-exec-mode is same.
741 * target.h (target_follow_fork): Improve doc.
743 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
745 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
747 * cli/cli-setshow.c (do_show_command): Adjust.
749 2021-05-13 Luis Machado <luis.machado@linaro.org>
751 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
752 include the last address in the range.
754 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
756 * python/python-internal.h (gdbpy_parse_command_name): Return
757 gdb::unique_xmalloc_ptr.
758 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
759 (cmdpy_init): Adjust.
760 * python/py-param.c (parmpy_init): Adjust.
761 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
764 2021-05-12 George Barrett <bob@bob131.so>
766 * NEWS (Guile API): Note the addition of the new procedure.
767 * guile/scm-value.c (gdbscm_value_const_value): Add
768 implementation of value-const-value procedure.
769 (value_functions): Add value-const-value procedure.
771 2021-05-12 George Barrett <bob@bob131.so>
773 * NEWS (Guile API): Note the addition of new procedures.
774 * guile/scm-value.c (gdbscm_reference_value): Add helper function
775 for reference value creation.
776 (gdbscm_value_reference_value): Add implementation of
777 value-reference-value procedure.
778 (gdbscm_value_rvalue_reference_value): Add implementation of
779 value-rvalue-reference-value procedure.
780 (value_functions): Add value-reference-value procedure. Add
781 value-rvalue-reference-value procedure.
783 2021-05-12 George Barrett <bob@bob131.so>
785 * guile/scm-type.c (type_integer_constants): Add binding for
786 TYPE_CODE_RVALUE_REF.
787 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
788 dereferencing of rvalue references.
789 * NEWS (Guile API): Note improvements in rvalue reference support.
791 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
793 * btrace.c (handle_pt_insn_events): Ignore status update enable
796 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
798 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
801 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
803 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
805 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
808 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
811 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
813 * nat/linux-waitpid.c (status_to_str): Show signal name.
815 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
817 * python/py-breakpoint.c (pybp_debug): New static global.
818 (show_pybp_debug): New function.
819 (pybp_debug_printf): Define.
820 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
821 (gdbpy_breakpoint_created): Add some debugging.
822 (gdbpy_breakpoint_deleted): Likewise.
823 (gdbpy_breakpoint_modified): Likewise.
824 (_initialize_py_breakpoint): New function.
826 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
828 * python/py-unwind.c (pyuw_debug): Convert to bool.
829 (show_pyuw_debug): New function.
830 (pyuw_debug_printf): Define.
831 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
832 (pyuw_this_id): Convert to new debug print macros.
833 (pyuw_prev_register): Likewise.
834 (pyuw_sniffer): Likewise.
835 (pyuw_dealloc_cache): Likewise.
836 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
837 show function when registering.
839 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
841 * dummy-frame.c (fprint_dummy_frames): Convert use of
842 fprint_frame_id to use frame_id::to_string.
843 * frame.c (fprint_field): Delete.
844 (fprint_frame_id): Moved to...
845 (frame_id::to_string): ...this, rewritten to return a string.
846 (fprint_frame): Convert use of fprint_frame_id to use
848 (compute_frame_id): Likewise.
849 (frame_id_p): Likewise.
850 (frame_id_eq): Likewise.
851 (frame_id_inner): Likewise.
852 * frame.h (struct frame_id) <to_string>: New member function.
853 (fprint_frame_id): Delete declaration.
854 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
855 fprint_frame_id to use frame_id::to_string.
856 * python/py-frame.c (frame_object_to_frame_info): Likewise.
857 * python/py-unwind.c (unwind_infopy_str): Likewise.
858 (pyuw_this_id): Likewise.
860 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
862 * nat/linux-waitpid.c (status_to_str): Return std::string.
863 * nat/linux-waitpid.h (status_to_str): Likewise.
864 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
865 (linux_nat_target::attach): Adjust.
866 (linux_handle_extended_wait): Adjust.
868 (stop_wait_callback): Adjust.
869 (linux_nat_filter_event): Adjust.
870 (linux_nat_wait_1): Adjust.
871 * nat/linux-waitpid.c (status_to_str): Adjust.
872 * nat/linux-waitpid.h (status_to_str): Adjust.
874 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
876 * infrun.h (infrun_debug_printf): Add missing space.
878 2021-05-08 Pedro Alves <pedro@palves.net>
880 * linux-nat.c (linux_nat_target::supports_disable_randomization):
881 Remove references to HAVE_PERSONALITY.
882 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
883 (maybe_disable_address_space_randomization)
884 (~maybe_disable_address_space_randomizatio): Remove references to
886 * config.in, configure: Regenerate.
888 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
890 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
892 (source_script_with_search): Perform tilde expansion.
894 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
896 * target-descriptions.c (struct target_desc_info) <filename>:
898 (copy_inferior_target_desc_info): Adjust.
899 (target_desc_info_free): Adjust.
900 (target_find_description): Adjust.
901 (set_tdesc_filename_cmd): Adjust.
902 (show_tdesc_filename_cmd): Adjust.
903 (unset_tdesc_filename_cmd): Adjust.
904 (maint_print_c_tdesc_cmd): Adjust.
906 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
908 * target-descriptions.c (struct target_desc_info): Initialize
910 (get_tdesc_info): Use new.
911 (target_desc_info_free): Use delete.
913 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
915 * target-descriptions.c (struct target_desc_info) <fetched>:
917 (target_find_description): Adjust.
918 (target_clear_description): Adjust.
920 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
922 * target-descriptions.c (struct target_desc_info) <tdesc>:
924 (target_desc_fetched): Remove.
925 (current_target_desc): Remove.
926 (target_description_filename): Remove.
927 (target_find_description): Adjust.
928 (target_clear_description): Adjust.
929 (target_current_description): Adjust.
930 (set_tdesc_filename_cmd): Adjust.
931 (show_tdesc_filename_cmd): Adjust.
932 (unset_tdesc_filename_cmd): Adjust.
933 (maint_print_c_tdesc_cmd): Adjust.
934 (maint_print_xml_tdesc_cmd): Adjust.
936 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
938 * infcmd.c (notice_new_inferior): Change parameter type.
939 * inferior.h (notice_new_inferior): Change parameter type.
940 * remote.c (remote_notice_new_inferior): Change parameter type to
941 bool. Also update type of local variable to bool.
942 (remote_target::update_thread_list): Change type of local variable
944 (remote_target::process_stop_reply): Pass bool instead of int to
945 remote_notice_new_inferior.
947 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
949 * target.c (target_stack::unpush): Call target_ops::find_beneath
950 to get the target beneath `t`.
952 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
954 * target.c (target_close): Check in all inferiors that the
955 target is not pushed.
957 2021-05-07 Aaron Merey <amerey@redhat.com>
959 * debuginfod-support.c (debuginfod_init): Remove.
960 (get_debuginfod_client): New function.
962 2021-05-07 Tom Tromey <tom@tromey.com>
964 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
965 * utils.c (streq_hash): Remove.
966 * utils.h (streq_hash): Don't declare.
967 * completer.c (completion_tracker::discard_completions): Update
969 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
971 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
973 * Re-format all Python files using black.
975 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
977 * guile/guile-internal.h (gdbscm_safe_source_script): Change
978 function return type.
979 * guile/guile.c (gdbscm_source_script): Update to handle change in
980 gdbscm_safe_source_script.
981 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
982 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
985 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
987 * inferior.h (class inferior) <args>: Change type to
989 * inferior.c (inferior::~inferior): Don't free args.
990 * infcmd.c (get_inferior_args): Adjust.
991 (set_inferior_args): Adjust.
993 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
995 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
996 breakpoint locations when the breakpoint actually has a location.
998 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1000 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
1001 * mi/mi-cmds.c: Change the binding of "-break-condition" to
1002 mi_cmd_break_condition.
1003 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
1004 * breakpoint.h (set_breakpoint_condition): Declare a new
1006 * breakpoint.c (set_breakpoint_condition): New overloaded function
1007 extracted out from ...
1008 (condition_command): ... this.
1009 * NEWS: Mention the change.
1011 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1013 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
1014 '--force-condition' flag to force the condition in the
1015 '-break-insert' and '-dprintf-insert' commands.
1016 * NEWS: Mention the change.
1018 2021-05-04 Tom de Vries <tdevries@suse.de>
1021 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
1024 2021-04-30 Tom Tromey <tom@tromey.com>
1026 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
1027 (add_signatured_type_cu_to_table): Remove.
1028 (create_debug_type_hash_table): Assume dwo_file is non-null.
1029 (create_debug_types_hash_table): Update comment.
1030 (create_all_type_units): Remove.
1031 (sort_tu_by_abbrev_offset): Update comment.
1032 (build_type_psymtabs): Rename from build_type_psymtabs_1.
1033 (build_type_psymtabs): Remove.
1034 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
1036 (read_comp_units_from_section): Add types_htab, section_kind
1038 (create_all_comp_units): Read type units.
1040 2021-04-30 Tom Tromey <tom@tromey.com>
1042 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
1043 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
1044 <get_cu>: Now inline.
1045 <all_type_units>: Remove.
1046 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
1047 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1048 (dwarf2_per_bfd::get_tu): Remove.
1049 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1050 (create_signatured_type_table_from_index)
1051 (create_signatured_type_table_from_debug_names)
1052 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1053 (dwarf2_base_index_functions::expand_all_symtabs)
1054 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1055 (dwarf2_base_index_functions::map_symbol_filenames)
1056 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1057 (add_signatured_type_cu_to_table, create_all_type_units)
1058 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1059 (create_all_comp_units): Update.
1060 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1061 (write_debug_names): Update.
1063 2021-04-30 Tom Tromey <tom@tromey.com>
1065 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1066 allocate_signatured_type>: Change return type.
1067 <all_comp_units, all_type_units>: Hold unique pointers.
1068 (struct dwarf2_per_cu_data): Add constructor and initializers.
1069 (struct signatured_type): Derive from dwarf2_per_cu_data.
1070 * dwarf2/read.c (type_unit_group): Derive from
1072 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1073 (dwarf2_per_bfd::get_tu)
1074 (dwarf2_per_bfd::allocate_signatured_type)
1075 (dwarf2_per_bfd::allocate_signatured_type)
1076 (create_cu_from_index_list, create_cus_from_index_list)
1077 (create_signatured_type_table_from_index)
1078 (create_signatured_type_table_from_debug_names)
1079 (create_addrmap_from_aranges)
1080 (dwarf2_base_index_functions::find_last_source_symtab)
1081 (dw_expand_symtabs_matching_file_matcher)
1082 (dwarf2_gdb_index::expand_symtabs_matching)
1083 (dwarf2_base_index_functions::map_symbol_filenames)
1084 (create_cus_from_debug_names_list)
1085 (dw2_debug_names_iterator::next)
1086 (dwarf2_debug_names_index::expand_symtabs_matching)
1087 (create_debug_type_hash_table, add_type_unit)
1088 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1090 (allocate_type_unit_groups_table): Use delete.
1091 (create_type_unit_group): Change return type. Use new.
1092 (get_type_unit_group, build_type_psymtabs_1)
1093 (build_type_psymtab_dependencies)
1094 (process_skeletonless_type_unit, set_partial_user)
1095 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1096 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1097 (read_signatured_type): Update.
1098 (dwarf2_find_containing_comp_unit): Change type of
1101 (dwarf2_per_bfd::allocate_per_cu)
1102 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1104 (add_signatured_type_cu_to_table): Update.
1105 * dwarf2/index-write.c (write_one_signatured_type)
1106 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1107 (write_debug_names): Update.
1109 2021-04-30 Tom Tromey <tromey@adacore.com>
1111 * nat/windows-nat.h (get_image_name): Don't declare.
1112 * nat/windows-nat.c (get_image_name): Now static.
1114 2021-04-30 Tom Tromey <tromey@adacore.com>
1116 * windows-nat.c (windows_nat::handle_load_dll): Update.
1117 (windows_nat_target::get_windows_debug_event): Call
1119 (windows_add_all_dlls, windows_add_dll): Move to
1121 * nat/windows-nat.h (handle_load_dll): Change parameters.
1122 (dll_loaded_event, windows_add_all_dlls): Declare.
1123 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1125 (dll_loaded_event): New function.
1127 2021-04-30 Tom Tromey <tromey@adacore.com>
1129 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1130 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1132 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1133 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1135 2021-04-30 Tom Tromey <tromey@adacore.com>
1137 * windows-nat.c: Move code to nat/windows-nat.[ch].
1138 (_initialize_windows_nat): Call initialize_loadable.
1139 * nat/windows-nat.h (AdjustTokenPrivileges)
1140 (DebugActiveProcessStop, DebugBreakProcess)
1141 (DebugSetProcessKillOnExit, EnumProcessModules)
1142 (EnumProcessModulesEx, GetModuleInformation)
1143 (GetModuleFileNameExA, GetModuleFileNameExW)
1144 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1145 (GetCurrentConsoleFont, Wow64SuspendThread)
1146 (Wow64GetThreadContext, Wow64SetThreadContext)
1147 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1148 (AdjustTokenPrivileges_ftype)
1149 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1150 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1151 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1152 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1153 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1154 (GetConsoleFontSize_ftype)
1155 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1156 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1157 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1158 (initialize_loadable): Declare.
1159 * nat/windows-nat.c (AdjustTokenPrivileges)
1160 (DebugActiveProcessStop, DebugBreakProcess)
1161 (DebugSetProcessKillOnExit, EnumProcessModules)
1162 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1163 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1164 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1165 (Wow64GetThreadContext, Wow64SetThreadContext)
1166 (Wow64GetThreadSelectorEntry): Define.
1167 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1169 (initialize_loadable): Likewise, and rename.
1171 2021-04-30 Tom Tromey <tromey@adacore.com>
1173 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1174 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1175 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1176 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1177 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1178 (bad): New template functions.
1179 (_initialize_loadable): Update.
1181 2021-04-30 Tom Tromey <tromey@adacore.com>
1183 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1185 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1187 * auto-load.h: Split namespace declaration.
1189 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1191 * infrun.c (save_waitstatus): Move variables to inner scope.
1193 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1195 * NEWS: Fix typo and stray full stop.
1197 2021-04-28 Tom Tromey <tromey@adacore.com>
1199 * ada-exp.y (primary): Use new type for null pointer.
1200 * ada-lang.c (ada_type_match): Remove "may_deref"
1201 parameter. Handle null pointer.
1202 (ada_args_match): Update.
1203 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1204 Handle null pointer.
1206 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1208 * NEWS: Mention new commands.
1209 * python/python.c (python_ignore_environment): New static global.
1210 (show_python_ignore_environment): New function.
1211 (set_python_ignore_environment): New function.
1212 (python_dont_write_bytecode): New static global.
1213 (show_python_dont_write_bytecode): New function.
1214 (set_python_dont_write_bytecode): New function.
1215 (_initialize_python): Register new commands.
1217 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1219 * extension-priv.h (struct extension_language_ops): Rename
1220 'finish_initialization' to 'initialize'.
1221 * extension.c (finish_ext_lang_initialization): Renamed to...
1222 (ext_lang_initialization): ...this, update comment, and updated
1223 the calls to reflect the change in struct extension_language_ops.
1224 * extension.h (finish_ext_lang_initialization): Renamed to...
1225 (ext_lang_initialization): ...this.
1226 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1227 (gdbscm_initialize): ...this, update comment at definition.
1228 (guile_extension_ops): Update.
1229 * main.c (captured_main_1): Update call to
1230 finish_ext_lang_initialization.
1231 * python/python.c (gdbpy_finish_initialization): Rename to...
1232 (gdbpy_initialize): ...this, update comment at definition, and
1233 update call to do_finish_initialization.
1234 (python_extension_ops): Update.
1235 (do_finish_initialization): Rename to...
1236 (do_initialize): ...this, and update comment.
1238 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1240 * main.c (captured_main_1): Add a call to
1241 finish_ext_lang_initialization.
1242 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1244 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1246 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1247 (gdbscm_finish_initialization): Add code moved from
1249 (_initialize_guile): Move code to gdbscm_finish_initialization.
1250 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1251 _initialize_scm_arch.
1252 (_initialize_scm_arch): New function.
1253 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1254 into _initialize_scm_block.
1255 (_initialize_scm_block): New function.
1256 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1257 into _initialize_scm_frame.
1258 (_initialize_scm_frame): New function.
1259 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1260 into _initialize_scm_objfile.
1261 (_initialize_scm_objfile): New function.
1262 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1263 code into _initialize_scm_progspace.
1264 (_initialize_scm_progspace): New function.
1265 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1266 into _initialize_scm_symbol.
1267 (_initialize_scm_symbol): New function.
1268 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1269 into _initialize_scm_symtab.
1270 (_initialize_scm_symtab): New function.
1271 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1272 _initialize_scm_type.
1273 (_initialize_scm_type): New function.
1275 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1277 * python/py-arch.c (_initialize_py_arch): New function.
1278 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1279 * python/py-block.c (_initialize_py_block): New function.
1280 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1281 * python/py-inferior.c (_initialize_py_inferior): New function.
1282 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1283 * python/py-objfile.c (_initialize_py_objfile): New function.
1284 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1285 * python/py-progspace.c (_initialize_py_progspace): New function.
1286 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1287 * python/py-registers.c (_initialize_py_registers): New function.
1288 (gdbpy_initialize_registers): Move code to
1289 _initialize_py_registers.
1290 * python/py-symbol.c (_initialize_py_symbol): New function.
1291 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1292 * python/py-symtab.c (_initialize_py_symtab): New function.
1293 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1294 * python/py-type.c (_initialize_py_type): New function.
1295 (gdbpy_initialize_types): Move code to _initialize_py_type.
1296 * python/py-unwind.c (_initialize_py_unwind): New function.
1297 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1298 * python/python.c (_initialize_python): Move call to
1299 do_start_initialization to gdbpy_finish_initialization.
1300 (gdbpy_finish_initialization): Add call to
1301 do_start_initialization.
1303 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1305 * extension.c (struct scoped_default_signal): New struct.
1306 (scoped_default_sigint): New typedef.
1307 (finish_ext_lang_initialization): Make use of
1308 scoped_default_sigint.
1310 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1312 * main.c (captured_main_1): Don't pass argument to gdb_init.
1313 * top.c (gdb_init): Remove unused argument, and add header
1315 * top.h (gdb_init): Remove argument.
1317 2021-04-27 Luis Machado <luis.machado@linaro.org>
1319 * psymtab.c (psymbol_functions::dump): Output newline.
1321 * symmisc.c (dump_objfile): Likewise.
1323 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1324 Simon Marchi <simon.marchi@polymtl.ca>
1326 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1327 when attaching the 'auto_load_new_objfile' observer, so
1328 other observers can specify it as a dependency.
1329 * gdb/auto-load.h (struct token): Declare
1330 'auto_load_new_objfile_observer_token' as token to be used
1331 for the 'auto_load_new_objfile' observer.
1332 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1333 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1334 observer, so it gets notified after the latter.
1336 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1337 Simon Marchi <simon.marchi@polymtl.ca>
1339 * unittests/observable-selftests.c (dependency_test_counters):
1341 (observer_token0, observer_token1, observer_token2,
1342 observer_token3, observer_token4, observer_token5): New.
1343 (struct dependency_observer_data): New struct.
1344 (observer_dependency_test_callback): New function.
1345 (test_observers): New.
1346 (run_dependency_test): New function.
1347 (test_dependency): New.
1348 (_initialize_observer_selftest): Register dependency test.
1350 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1353 * cli/cli-dump.c (dump_binary_file): Check result of
1356 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1358 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1359 by passing `process_stratum_target*` parameter.
1361 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1364 * typeprint.h (struct type_print_options): Add print_in_hex
1366 (struct print_offset_data): Add print_in_hex flag, add a
1367 constructor accepting a type_print_options* argument.
1368 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1369 default value for print_in_hex.
1370 (print_offset_data::indentation): Allow more horizontal space.
1371 (print_offset_data::print_offset_data): Add ctor.
1372 (print_offset_data::maybe_print_hole, print_offset_data::update):
1373 Handle the print_in_hex flag.
1374 (whatis_exp): Handle 'x' and 'd' flags.
1375 (print_offsets_and_sizes_in_hex): Declare.
1376 (set_print_offsets_and_sizes_in_hex): Create.
1377 (show_print_offsets_and_sizes_in_hex): Create.
1378 (_initialize_typeprint): Update help message for the ptype
1379 command, register the 'set print type hex' and 'show print type
1381 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1382 (c_type_print_base): Construct the print_offset_data
1383 object using the type_print_optons parameter.
1384 * rust-lang.c (rust_language::print_type): Construct the
1385 print_offset_data object using the type_print_optons parameter.
1386 * NEWS: Mention the new flags of the ptype command.
1388 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1390 * typeprint.h (struct type_print_options): Move before
1393 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1397 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1399 * observable.c (observer_debug): Change to bool.
1401 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1403 * dwarf2/read.c: Add 'unordered_set' include.
1404 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1405 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1406 of per_Bfd->filenames_cache cache, and use function local
1407 filenames_cache instead. Reindent.
1408 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1410 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1412 * breakpoint.c (iterate_over_bp_locations): Change callback to
1413 function view, remove data parameter.
1414 * breakpoint.h (iterate_over_bp_locations): Likewise.
1415 * record-full.c (record_full_sync_record_breakpoints): Remove
1418 2021-04-22 Tom Tromey <tom@tromey.com>
1420 * c-typeprint.c (c_type_print_base_struct_union): Use
1421 print_spaces_filtered_with_print_options.
1423 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1426 * python/py-type.c (typy_range): Check that bounds are constant
1427 before accessing them as such.
1428 * guile/scm-type.c (gdbscm_type_range): Likewise.
1430 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1432 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1433 * inferior.c (inferior::add_continuation): New method, adapted
1434 from 'add_inferior_continuation'.
1435 (inferior::do_all_continuations): New method, adapted from
1436 'do_all_inferior_continuations'.
1437 (inferior::~inferior): Clear the list of continuations directly.
1438 * inferior.h (class inferior) <continuations>: Rename into...
1439 <m_continuations>: ...this and make private.
1440 * continuations.c: Remove.
1441 * continuations.h: Remove.
1442 * event-top.c: Don't include "continuations.h".
1444 Update the users below.
1445 * inf-loop.c (inferior_event_handler)
1446 * infcmd.c (attach_command)
1447 (notice_new_inferior): Update.
1449 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1451 * inferior.h (class inferior) <continuations>: Change the type
1452 to be an std::list of std::function's.
1453 Update the references and uses below.
1454 * continuations.c (struct continuation): Delete.
1455 (make_continuation): Delete.
1456 (do_my_continuations_1): Delete.
1457 (do_my_continuations): Delete.
1458 (discard_my_continuations_1): Delete.
1459 (discard_my_continuations): Delete.
1460 (add_inferior_continuation): Update.
1461 (do_all_inferior_continuations): Update.
1462 (discard_all_inferior_continuations): Update.
1463 * continuations.h (add_inferior_continuation): Update to take
1464 an std::function as the parameter.
1465 * infcmd.c (struct attach_command_continuation_args): Delete.
1466 (attach_command_continuation): Delete.
1467 (attach_command_continuation_free_args): Delete.
1468 (attach_command): Update.
1469 (notice_new_inferior): Update.
1471 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1473 * continuations.h: Update the general comment.
1474 * inferior.h (class inferior) <continuations>: Update the comment.
1475 * interps.c: Do not include "continuations.h".
1477 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1479 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1480 parameter. Update the references below.
1481 * continuations.c (do_my_continuations_1)
1482 (do_my_continuations)
1483 (do_all_inferior_continuations): Update.
1484 * inf-loop.c (inferior_event_handler): Update.
1485 * infcmd.c (attach_command_continuation): Update.
1487 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1489 * infcmd.c (attach_post_wait): Update the function comment.
1491 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1493 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1494 Update the references below.
1495 (struct attach_command_continuation_args)
1496 (attach_command_continuation)
1497 (attach_command_continuation_free_args)
1499 (notice_new_inferior): Update to remove the reference to 'args'.
1501 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1502 Tom de Vries <tdevries@suse.de>
1505 * remote.c (remote_target_is_non_stop_p): New function.
1506 * remote.h (remote_target_is_non_stop_p): Declare.
1507 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1508 to check non-stopness using notif_state->remote rather current target.
1510 2021-04-22 Tom Tromey <tom@tromey.com>
1512 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1513 (struct typed_val_int) <val>: Now ULONGEST.
1514 (rust_parser::parse_array_type): Remove negative check.
1515 (rust_lex_int_test): Change 'value' to ULONGEST.
1517 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1519 * arch-utils.c (default_addressable_memory_unit_size): Return a
1520 value based on bfd's bits per byte.
1522 2021-04-21 Tom Tromey <tom@tromey.com>
1524 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1526 (struct dwarf2_per_cu_data): Rearrange.
1527 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1529 (struct comp_unit_head): Rearrange.
1530 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1532 2021-04-21 Tom de Vries <tdevries@suse.de>
1535 * configure.ac: Remove --without-included-regex/--with-included-regex.
1536 * config.in: Regenerate.
1537 * configure: Regenerate.
1538 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1540 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1542 * breakpoint.h (create_breakpoint): Add a new parameter,
1544 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1545 argument when 'parse_extra' is false to check if the condition
1546 is invalid at all of the breakpoint locations.
1547 Update the users below.
1553 (create_tracepoint_from_upload): Update.
1554 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1555 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1556 * python/py-breakpoint.c (bppy_init): Update.
1557 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1559 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1561 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1562 disabled-by-condition locations on MI-like output.
1563 (breakpoint_1): Do not display the disabled-by-condition footnote
1564 if the output is MI-like.
1566 2021-04-21 Frederic Cambus <fred@statdns.com>
1568 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1569 update year range in generated copyright notices.
1571 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1573 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1574 qualifier_seq_noopt.
1576 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1578 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1580 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1582 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1583 (producer_is_icc): Replace use of std::regex with gdb's
1586 2021-04-17 Tom Tromey <tom@tromey.com>
1589 * dwarf2/read.c (class offset_view): New.
1590 (struct symbol_table_slot): Remove.
1591 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1592 <symbol_name_index, symbol_vec_index>: New methods.
1593 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1595 (read_gdb_index_from_buffer): Update.
1596 (struct dw2_symtab_iterator) <vec>: Change type.
1597 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1598 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1599 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1600 <append_array, append_offset>: New methods.
1601 (write_hash_table, add_address_entry, write_gdbindex_1)
1602 (write_debug_names): Update.
1603 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1605 2021-04-17 Tom Tromey <tom@tromey.com>
1607 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1610 2021-04-17 Tom Tromey <tom@tromey.com>
1612 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1613 from map_matching_symbols. Change parameters.
1614 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1615 Rename from map_matching_symbols. Change parameters.
1616 * dwarf2/read.c (struct dwarf2_gdb_index)
1617 <expand_matching_symbols>: Rename from map_matching_symbols.
1619 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1620 Rename from map_matching_symbols. Change parameters.
1621 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1622 dw2_map_matching_symbols. Change parameters.
1623 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1625 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1626 map_matching_symbols. Change parameters.
1627 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1628 from map_matching_symbols. Change parameters.
1629 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1630 map_matching_symbols. Change parameters.
1631 * ada-lang.c (map_matching_symbols): New function.
1632 (add_nonlocal_symbols): Update.
1634 2021-04-17 Tom Tromey <tom@tromey.com>
1636 * quick-symbol.h (struct quick_symbol_functions)
1637 <expand_symtabs_with_fullname>: Remove.
1638 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1640 * psympriv.h (struct psymbol_functions)
1641 <expand_symtabs_with_fullname>: Remove.
1642 * dwarf2/read.c (struct dwarf2_base_index_functions)
1643 <expand_symtabs_with_fullname>: Remove.
1644 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1646 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1648 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1651 2021-04-17 Tom Tromey <tom@tromey.com>
1653 * symfile-debug.c (objfile::expand_symtabs_for_function):
1655 * quick-symbol.h (struct quick_symbol_functions)
1656 <expand_symtabs_for_function>: Remove.
1657 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1659 * psympriv.h (struct psymbol_functions)
1660 <expand_symtabs_for_function>: Remove.
1661 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1663 * dwarf2/read.c (struct dwarf2_gdb_index)
1664 <expand_symtabs_for_function>: Remove.
1665 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1667 (find_slot_in_mapped_hash): Remove.
1668 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1669 (dw2_symtab_iter_init): Remove one overload.
1670 (dwarf2_gdb_index::expand_symtabs_for_function)
1671 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1673 2021-04-17 Tom Tromey <tom@tromey.com>
1675 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1677 * quick-symbol.h (struct quick_symbol_functions)
1678 <map_symtabs_matching_filename>: Remove.
1679 * psymtab.c (partial_map_expand_apply)
1680 (psymbol_functions::map_symtabs_matching_filename): Remove.
1681 * psympriv.h (struct psymbol_functions)
1682 <map_symtabs_matching_filename>: Remove.
1683 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1685 * dwarf2/read.c (struct dwarf2_base_index_functions)
1686 <map_symtabs_matching_filename>: Remove.
1687 (dw2_map_expand_apply)
1688 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1691 2021-04-17 Tom Tromey <tom@tromey.com>
1693 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1694 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1696 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1697 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1698 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1699 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1701 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1702 (dwarf2_gdb_index::lookup_symbol)
1703 (dwarf2_debug_names_index::lookup_symbol): Remove.
1705 2021-04-17 Tom Tromey <tom@tromey.com>
1707 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1708 * symmisc.c (maintenance_expand_symtabs): Update.
1709 * symfile.c (expand_symtabs_matching): Update.
1710 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1712 * quick-symbol.h (struct quick_symbol_functions)
1713 <expand_symtabs_matching>: Add 'domain' parameter.
1714 * psymtab.c (recursively_search_psymtabs)
1715 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1717 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1718 Add 'domain' parameter.
1719 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1721 * linespec.c (iterate_over_all_matching_symtabs): Update.
1722 * dwarf2/read.c (struct dwarf2_gdb_index)
1723 <expand_symtabs_matching>: Add 'domain' parameter.
1724 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1726 (dw2_expand_symtabs_matching)
1727 (dwarf2_gdb_index::expand_symtabs_matching)
1728 (dw2_debug_names_iterator)
1729 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1732 2021-04-17 Tom Tromey <tom@tromey.com>
1734 * symtab.c (global_symbol_searcher::expand_symtabs)
1735 (default_collect_symbol_completion_matches_break_on): Update.
1736 * symmisc.c (maintenance_expand_symtabs): Update.
1737 * symfile.h (expand_symtabs_matching): Add search_flags
1739 * symfile.c (expand_symtabs_matching): Add search_flags
1741 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1742 search_flags parameter.
1743 * quick-symbol.h (struct quick_symbol_functions)
1744 <expand_symtabs_matching>: Add search_flags parameter.
1745 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1746 * psymtab.c (recursively_search_psymtabs)
1747 (psymbol_functions::expand_symtabs_matching): Add search_flags
1749 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1750 Add search_flags parameter.
1751 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1752 search_flags parameter.
1753 * linespec.c (iterate_over_all_matching_symtabs): Update.
1754 * dwarf2/read.c (struct dwarf2_gdb_index)
1755 <expand_symtabs_matching>: Add search_flags parameter.
1756 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1757 search_flags parameter.
1758 (dw2_map_matching_symbols): Update.
1759 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1760 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1762 (dw2_debug_names_iterator): Change block_index to search flags.
1763 <m_block_index>: Likewise.
1764 (dw2_debug_names_iterator::next)
1765 (dwarf2_debug_names_index::lookup_symbol)
1766 (dwarf2_debug_names_index::expand_symtabs_for_function)
1767 (dwarf2_debug_names_index::map_matching_symbols)
1768 (dwarf2_debug_names_index::map_matching_symbols): Update.
1769 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1770 search_flags parameter.
1771 * ada-lang.c (ada_add_global_exceptions)
1772 (collect_symbol_completion_matches): Update.
1774 2021-04-17 Tom Tromey <tom@tromey.com>
1776 * symtab.c (default_collect_symbol_completion_matches_break_on):
1778 * symfile.h (expand_symtabs_matching): Return bool.
1779 * symfile.c (expand_symtabs_matching): Return bool.
1780 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1782 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1783 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1785 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1787 * psympriv.h (struct psymbol_functions)
1788 <expand_symtabs_matching>: Return bool.
1789 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1791 * dwarf2/read.c (struct dwarf2_gdb_index)
1792 <expand_symtabs_matching>: Return bool.
1793 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1795 (dw2_expand_symtabs_matching_symbol): Return bool.
1796 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1797 (dw2_expand_symtabs_matching)
1798 (dwarf2_gdb_index::expand_symtabs_matching)
1799 (dwarf2_debug_names_index::expand_symtabs_matching)
1800 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1802 2021-04-17 Tom Tromey <tom@tromey.com>
1804 * quick-symbol.h (enum block_search_flag_values): New.
1805 (block_search_flags): New enum flags type.
1807 2021-04-16 Tom Tromey <tom@tromey.com>
1809 * rust-parse.c: New file.
1810 * rust-exp.y: Remove.
1811 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1812 (SFILES): Remove rust-exp.y.
1813 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1815 2021-04-16 Luis Machado <luis.machado@linaro.org>
1817 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1819 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1821 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1822 use throughout file.
1824 2021-04-15 Tom Tromey <tromey@adacore.com>
1826 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1829 2021-04-15 Tom Tromey <tromey@adacore.com>
1831 * printcmd.c (print_variable_and_value): Use
1832 common_val_print_checked.
1834 2021-04-15 Tom Tromey <tromey@adacore.com>
1836 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1837 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1839 * p-exp.y (variable): Update.
1840 * m2-exp.y (variable): Update.
1841 * go-exp.y (variable): Update.
1842 * expprint.c (dump_for_expression): New overload.
1843 * expop.h (check_objfile): New overload.
1844 (check_constant): New overload.
1845 (class var_value_operation): Use block_symbol.
1846 <get_symbol>: Rewrite.
1847 * eval.c (var_value_operation::evaluate)
1848 (var_value_operation::evaluate_funcall)
1849 (var_value_operation::evaluate_for_address)
1850 (var_value_operation::evaluate_for_address)
1851 (var_value_operation::evaluate_with_coercion)
1852 (var_value_operation::evaluate_for_sizeof)
1853 (var_value_operation::evaluate_for_cast): Update.
1854 * d-exp.y (PrimaryExpression): Update.
1855 * c-exp.y (variable): Update.
1856 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1857 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1858 (ada_var_value_operation::evaluate)
1859 (ada_var_value_operation::resolve)
1860 (ada_funcall_operation::resolve): Update.
1861 * ada-exp.y (write_var_from_sym, write_object_renaming)
1862 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1863 (maybe_overload): Update.
1864 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1866 2021-04-15 Tom Tromey <tom@tromey.com>
1867 Andrew Burgess <andrew.burgess@embecosm.com>
1870 * main.c (captured_main_1): Call check_quiet_mode.
1871 * top.c (startup_quiet): New global.
1872 (check_quiet_mode): New function.
1873 (show_startup_quiet): New function.
1874 (init_main): Register new command.
1875 * top.h (check_quiet_mode): Declare.
1877 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1880 * NEWS: Mention new early init files and command line options.
1881 * config.in: Regenerate.
1882 * configure: Regenerate.
1883 * configure.ac: Define GDBEARLYINIT.
1884 * main.c (get_earlyinit_files): New function.
1885 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1886 CMDARG_EARLYINIT_COMMAND.
1887 (captured_main_1): Add support for new command line flags, and for
1888 processing startup files.
1889 (print_gdb_help): Include startup files in the output.
1891 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1893 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1894 (relocate_file_path_maybe_in_datadir): ...this.
1895 (class gdb_initfile_finder): New class.
1896 (get_init_files): Now uses gdb_initfile_finder.
1897 (print_gdb_help): Print 'None found' when there are no init files.
1899 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1901 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1902 corresponding child of the abstract DIE when iterating the
1903 children of the concrete DIE.
1905 2021-04-13 Tom de Vries <tdevries@suse.de>
1907 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1910 2021-04-13 Luis Machado <luis.machado@linaro.org>
1912 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1915 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1917 * rs6000-tdep.c: Add support for single-stepping of
1918 prefixed instructions.
1920 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1923 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1924 handle the addpcis/lnia instruction.
1926 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1928 * MAINTAINERS (Write After Approval): Add myself.
1930 2021-4-12 Carl Love <cel@us.ibm.com>
1932 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1933 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1936 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1938 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1939 * nat/windows-nat.h: Likewise.
1941 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1943 * windows-nat.c (windows_nat::handle_load_dll): Call
1944 windows_add_dll if get_image_name failed to glean the name of the
1945 DLL by using the lpImageName pointer.
1946 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1947 (windows_add_dll): Now does what windows_add_all_dlls did before,
1948 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1949 specifies the address where the DLL was loaded into the inferior,
1950 and looks for the single DLL loaded at that address.
1952 2021-04-09 Luis Machado <luis.machado@linaro.org>
1954 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1956 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1958 * darwin-nat.c (darwin_nat_target::resume): Remove status
1961 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1963 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1964 prologue end for Intel compilers.
1965 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1966 * producer.c (producer_is_icc_ge_19): New function.
1967 * producer.h (producer_is_icc_ge_19): New declaration.
1969 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1971 * producer.c: (producer_is_icc): Update for new version scheme.
1972 (producer_parsing_tests): Update names and expected results.
1973 * producer.h: (producer_is_icc): Update comment accordingly.
1975 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1977 * target.h (struct target_ops) <follow_fork>: Return void.
1978 (target_follow_fork): Likewise.
1979 * target.c (default_follow_fork): Likewise.
1980 (target_follow_fork): Likewise.
1981 * infrun.c (follow_fork_inferior): Adjust.
1982 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1983 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1984 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1985 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1986 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1987 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1988 * remote.c (class remote_target) <follow_fork>: Likewise.
1989 (remote_target::follow_fork): Likewise.
1990 * target-delegates.c: Re-generate.
1992 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1994 * ctfread.c (fetch_tid_type): New function, use throughout file.
1995 (read_forward_type): New function.
1996 (read_type_record): Call read_forward_type.
1998 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2000 * f-exp.h (class fortran_structop_operation): New class.
2001 * f-exp.y (exp): Create fortran_structop_operation instead of the
2002 generic structop_operation.
2003 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
2004 expression as EVAL_NORMAL if the result type was dynamic so we can
2005 extract the actual array bounds.
2006 (fortran_structop_operation::evaluate): New function.
2008 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2010 * eval.c (evaluate_subexp_standard): Remove
2011 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
2014 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2016 * valops.c (value_cast): Call value_deeply_equal before performing
2019 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2021 * gdbtypes.c (types_equal): Move pointer equality check earlier in
2024 2021-04-07 Caroline Tice <cmtice@google.com>
2026 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
2027 the search paths used resolve relative location of .dwo file.
2029 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2031 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
2033 (dwarf2_section_info::get_file_name): Add an assert.
2034 (dwarf2_section_info::read_string): Display a minimal, sane error
2035 when the dwarf2_section_info is not associated with a bfd section.
2037 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
2039 * top.c (staged_gdb_datadir): Update comment.
2040 (set_gdb_datadir): Copy the value of gdb_datadir back into
2042 (init_main): Initialise staged_gdb_datadir.
2044 2021-04-06 Tom de Vries <tdevries@suse.de>
2046 PR breakpoints/25884
2047 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2050 2021-04-06 Tom de Vries <tdevries@suse.de>
2053 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2056 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2058 * avr-tdep.c (avr_frame_unwind_cache): Use
2059 trad_frame_saved_reg::is_addr.
2061 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2063 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2066 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2068 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2069 objfile parameter for objfile_per_bfd_storage, adjust callers.
2070 (struct standard_psymtab) <standard_psymtab>: Likewise.
2071 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2072 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2073 * ctfread.c (struct ctf_psymtab): Likewise.
2074 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2075 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2076 (dwarf2_create_include_psymtab): Likewise.
2077 * objfiles.h (struct objfile_per_bfd_storage)
2078 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2079 <get_bfd>: New method.
2081 * objfiles.c (get_objfile_bfd_data): Adjust.
2083 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2085 * psymtab.c (partial_symtab::partial_symtab): Change
2086 last_objfile_name to be an std::string.
2087 * symfile.c (allocate_symtab): Likewise.
2089 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2091 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2093 (struct objfile) <intern>: Use
2094 objfile::objfile_per_bfd_storage::intern.
2096 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2098 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2099 with type::is_flag_enum.
2101 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2103 * gdbtypes.h (struct type) <is_flag_enum,
2104 set_is_flag_enum>: New methods.
2105 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2106 write call sites to use type::set_is_flag_enum.
2108 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2110 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2111 with type::is_declared_class.
2113 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2115 * gdbtypes.h (struct type) <is_declared_class,
2116 set_is_declared_class>: New methods.
2117 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2118 write call sites to use type::set_is_declared_class.
2120 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2122 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2123 to avoid deprecation warnings.
2125 2021-04-01 Martin Liska <mliska@suse.cz>
2127 * cp-name-parser.y: Use startswith instead of strncmp.
2128 * m2-exp.y: Likewise.
2129 * macroexp.c (substitute_args): Likewise.
2130 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2131 * rust-exp.y: Likewise.
2133 2021-03-31 Tom Tromey <tom@tromey.com>
2135 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2136 with dw2_map_matching_symbols.
2137 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2138 dw2_expand_symtabs_matching.
2140 2021-03-31 Tom Tromey <tromey@adacore.com>
2142 * dwarf2/stringify.h: Fix typo.
2144 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2147 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2148 with objfiles using READNOW.
2150 2021-03-29 Tom Tromey <tromey@adacore.com>
2152 * top.c (check_frame_language_change): Update.
2153 * language.c (language_info): Remove parameter.
2154 * language.h (language_info): Remove parameter.
2156 2021-03-29 Luis Machado <luis.machado@linaro.org>
2158 * compile/compile.c (get_args): Don't add empty argv entries.
2160 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2163 * procfs.c (procfs_target::attach): Define inf.
2165 (procfs_target::create_inferior): Likewise.
2167 2021-03-28 Tom Tromey <tom@tromey.com>
2169 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2170 (elf_symfile_read): Simplify.
2171 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2172 (make_lazy_dwarf_reader): New function.
2173 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2174 (dwarf2_initialize_objfile): Return void. Remove index_kind
2175 parameter. Push on 'qf' list.
2176 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2177 type. Remove 'index_kind' parameter.
2178 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2180 2021-03-27 Tom Tromey <tom@tromey.com>
2182 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2184 2021-03-27 Tom Tromey <tom@tromey.com>
2186 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2188 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2190 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2193 2021-03-26 Tom Tromey <tom@tromey.com>
2195 * symtab.c (struct output_source_filename_data): Add 'output'
2196 method and operator().
2197 (output_source_filename_data::output): Rename from
2198 output_source_filename.
2199 (output_partial_symbol_filename): Remove.
2200 (info_sources_command): Update.
2201 (struct add_partial_filename_data): Add operator().
2202 (add_partial_filename_data::operator()): Rename from
2203 maybe_add_partial_symtab_filename.
2204 (make_source_files_completion_list): Update.
2205 * symfile.c (quick_symbol_functions): Update.
2206 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2207 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2208 'need_fullname'. Remove 'data' parameter.
2209 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2210 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2211 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2212 Change type of 'fun' and 'need_fullname'. Remove 'data'
2214 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2215 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2216 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2218 (mi_cmd_file_list_exec_source_files): Update.
2220 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2222 2021-03-26 Tom Tromey <tom@tromey.com>
2224 * ada-lang.c (struct match_data): Add operator().
2225 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2226 (callback): Remove 'callback'.
2228 2021-03-26 Tom Tromey <tom@tromey.com>
2230 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2231 call make_ignore_params once.
2233 2021-03-26 Tom Tromey <tom@tromey.com>
2235 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2238 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2239 Pedro Alves <pedro@palves.net>
2241 * async-event.c: Include "infrun.h".
2242 (async_event_handler_marked): New.
2243 * async-event.h (async_event_handler_marked): Declare.
2244 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2245 inferior before calling target method. Don't commit-resumed if
2246 target_has_pending_events is true.
2247 * remote.c (remote_target::has_pending_events): New.
2248 * target-delegates.c: Regenerate.
2249 * target.c (target_has_pending_events): New.
2250 * target.h (target_ops::has_pending_events): New target method.
2251 (target_has_pending_events): New.
2253 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2254 Pedro Alves <pedro@palves.net>
2256 * infcmd.c (run_command_1, attach_command, detach_command)
2257 (interrupt_target_1): Use scoped_disable_commit_resumed.
2258 * infrun.c (do_target_resume): Remove
2259 target_commit_resume call.
2260 (commit_resume_all_targets): Remove.
2261 (maybe_set_commit_resumed_all_targets): New.
2262 (maybe_call_commit_resumed_all_targets): New.
2263 (enable_commit_resumed): New.
2264 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2265 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2266 (scoped_disable_commit_resumed::reset)
2267 (scoped_disable_commit_resumed::reset_and_commit)
2268 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2269 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2271 (proceed): Use scoped_disable_commit_resumed and
2272 maybe_call_commit_resumed_all_targets.
2273 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2274 * infrun.h (struct scoped_disable_commit_resumed): New.
2275 (maybe_call_commit_resumed_all_process_targets): New.
2276 (struct scoped_enable_commit_resumed): New.
2277 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2278 * process-stratum-target.h (class process_stratum_target):
2279 <commit_resumed_state>: New.
2280 * record-full.c (record_full_wait_1): Change commit_resumed_state
2281 around calling commit_resumed.
2282 * remote.c (class remote_target) <commit_resume>: Rename to...
2283 <commit_resumed>: ... this.
2284 (struct stop_reply): Move up.
2285 (remote_target::commit_resume): Rename to...
2286 (remote_target::commit_resumed): ... this. Check if there is any
2287 thread pending vCont resume.
2288 (remote_target::remote_stop_ns): Generate stop replies for resumed
2289 but pending vCont threads.
2290 (remote_target::wait_ns): Add gdb_assert.
2291 * target-delegates.c: Regenerate.
2292 * target.c (target_wait, target_resume): Assert that the current
2293 process_stratum target isn't in commit-resumed state.
2294 (defer_target_commit_resume): Remove.
2295 (target_commit_resume): Remove.
2296 (target_commit_resumed): New.
2297 (make_scoped_defer_target_commit_resume): Remove.
2298 (target_stop): Assert that the current process_stratum target
2299 isn't in commit-resumed state.
2300 * target.h (struct target_ops) <commit_resume>: Rename to ...
2301 <commit_resumed>: ... this.
2302 (target_commit_resume): Remove.
2303 (target_commit_resumed): New.
2304 (make_scoped_defer_target_commit_resume): Remove.
2305 * top.c (wait_sync_command_done): Use
2306 scoped_enable_commit_resumed.
2308 2021-03-26 Pedro Alves <pedro@palves.net>
2310 * target.c (target_always_non_stop_p): Also check whether the
2313 2021-03-26 Tom Tromey <tom@tromey.com>
2315 * dwarf2/read.c (dwarf2_read_debug_names)
2316 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2317 (dw2_debug_names_iterator::next, create_type_unit_group):
2320 2021-03-25 Pedro Alves <pedro@palves.net>
2322 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2323 around setting the breakpoint.
2325 2021-03-25 Pedro Alves <pedro@palves.net>
2328 (remote_target::check_pending_events_prevent_wildcard_vcont):
2329 Check whether the event's ptid is not null_ptid before looking up
2330 the corresponding inferior.
2332 2021-03-24 Changbin Du <changbin.du@gmail.com>
2334 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2337 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2339 * target.h (current_top_target): Remove, make callers use the
2340 current inferior instead.
2341 * target.c (current_top_target): Remove.
2343 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2345 * target.h (target_shortname): Change to function declaration.
2346 (target_longname): Likewise.
2347 (target_attach_no_wait): Likewise.
2348 (target_post_attach): Likewise.
2349 (target_prepare_to_store): Likewise.
2350 (target_supports_enable_disable_tracepoint): Likewise.
2351 (target_supports_string_tracing): Likewise.
2352 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2353 (target_supports_dumpcore): Likewise.
2354 (target_dumpcore): Likewise.
2355 (target_can_run_breakpoint_commands): Likewise.
2356 (target_files_info): Likewise.
2357 (target_post_startup_inferior): Likewise.
2358 (target_insert_fork_catchpoint): Likewise.
2359 (target_remove_fork_catchpoint): Likewise.
2360 (target_insert_vfork_catchpoint): Likewise.
2361 (target_remove_vfork_catchpoint): Likewise.
2362 (target_insert_exec_catchpoint): Likewise.
2363 (target_remove_exec_catchpoint): Likewise.
2364 (target_set_syscall_catchpoint): Likewise.
2365 (target_rcmd): Likewise.
2366 (target_can_lock_scheduler): Likewise.
2367 (target_can_async_p): Likewise.
2368 (target_is_async_p): Likewise.
2369 (target_execution_direction): Likewise.
2370 (target_extra_thread_info): Likewise.
2371 (target_pid_to_exec_file): Likewise.
2372 (target_thread_architecture): Likewise.
2373 (target_find_memory_regions): Likewise.
2374 (target_make_corefile_notes): Likewise.
2375 (target_get_bookmark): Likewise.
2376 (target_goto_bookmark): Likewise.
2377 (target_stopped_by_watchpoint): Likewise.
2378 (target_stopped_by_sw_breakpoint): Likewise.
2379 (target_supports_stopped_by_sw_breakpoint): Likewise.
2380 (target_stopped_by_hw_breakpoint): Likewise.
2381 (target_supports_stopped_by_hw_breakpoint): Likewise.
2382 (target_have_steppable_watchpoint): Likewise.
2383 (target_can_use_hardware_watchpoint): Likewise.
2384 (target_region_ok_for_hw_watchpoint): Likewise.
2385 (target_can_do_single_step): Likewise.
2386 (target_insert_watchpoint): Likewise.
2387 (target_remove_watchpoint): Likewise.
2388 (target_insert_hw_breakpoint): Likewise.
2389 (target_remove_hw_breakpoint): Likewise.
2390 (target_can_accel_watchpoint_condition): Likewise.
2391 (target_can_execute_reverse): Likewise.
2392 (target_get_ada_task_ptid): Likewise.
2393 (target_filesystem_is_local): Likewise.
2394 (target_trace_init): Likewise.
2395 (target_download_tracepoint): Likewise.
2396 (target_can_download_tracepoint): Likewise.
2397 (target_download_trace_state_variable): Likewise.
2398 (target_enable_tracepoint): Likewise.
2399 (target_disable_tracepoint): Likewise.
2400 (target_trace_start): Likewise.
2401 (target_trace_set_readonly_regions): Likewise.
2402 (target_get_trace_status): Likewise.
2403 (target_get_tracepoint_status): Likewise.
2404 (target_trace_stop): Likewise.
2405 (target_trace_find): Likewise.
2406 (target_get_trace_state_variable_value): Likewise.
2407 (target_save_trace_data): Likewise.
2408 (target_upload_tracepoints): Likewise.
2409 (target_upload_trace_state_variables): Likewise.
2410 (target_get_raw_trace_data): Likewise.
2411 (target_get_min_fast_tracepoint_insn_len): Likewise.
2412 (target_set_disconnected_tracing): Likewise.
2413 (target_set_circular_trace_buffer): Likewise.
2414 (target_set_trace_buffer_size): Likewise.
2415 (target_set_trace_notes): Likewise.
2416 (target_get_tib_address): Likewise.
2417 (target_set_permissions): Likewise.
2418 (target_static_tracepoint_marker_at): Likewise.
2419 (target_static_tracepoint_markers_by_strid): Likewise.
2420 (target_traceframe_info): Likewise.
2421 (target_use_agent): Likewise.
2422 (target_can_use_agent): Likewise.
2423 (target_augmented_libraries_svr4_read): Likewise.
2424 (target_log_command): Likewise.
2425 * target.c (target_shortname): New.
2426 (target_longname): New.
2427 (target_attach_no_wait): New.
2428 (target_post_attach): New.
2429 (target_prepare_to_store): New.
2430 (target_supports_enable_disable_tracepoint): New.
2431 (target_supports_string_tracing): New.
2432 (target_supports_evaluation_of_breakpoint_conditions): New.
2433 (target_supports_dumpcore): New.
2434 (target_dumpcore): New.
2435 (target_can_run_breakpoint_commands): New.
2436 (target_files_info): New.
2437 (target_post_startup_inferior): New.
2438 (target_insert_fork_catchpoint): New.
2439 (target_remove_fork_catchpoint): New.
2440 (target_insert_vfork_catchpoint): New.
2441 (target_remove_vfork_catchpoint): New.
2442 (target_insert_exec_catchpoint): New.
2443 (target_remove_exec_catchpoint): New.
2444 (target_set_syscall_catchpoint): New.
2446 (target_can_lock_scheduler): New.
2447 (target_can_async_p): New.
2448 (target_is_async_p): New.
2449 (target_execution_direction): New.
2450 (target_extra_thread_info): New.
2451 (target_pid_to_exec_file): New.
2452 (target_thread_architecture): New.
2453 (target_find_memory_regions): New.
2454 (target_make_corefile_notes): New.
2455 (target_get_bookmark): New.
2456 (target_goto_bookmark): New.
2457 (target_stopped_by_watchpoint): New.
2458 (target_stopped_by_sw_breakpoint): New.
2459 (target_supports_stopped_by_sw_breakpoint): New.
2460 (target_stopped_by_hw_breakpoint): New.
2461 (target_supports_stopped_by_hw_breakpoint): New.
2462 (target_have_steppable_watchpoint): New.
2463 (target_can_use_hardware_watchpoint): New.
2464 (target_region_ok_for_hw_watchpoint): New.
2465 (target_can_do_single_step): New.
2466 (target_insert_watchpoint): New.
2467 (target_remove_watchpoint): New.
2468 (target_insert_hw_breakpoint): New.
2469 (target_remove_hw_breakpoint): New.
2470 (target_can_accel_watchpoint_condition): New.
2471 (target_can_execute_reverse): New.
2472 (target_get_ada_task_ptid): New.
2473 (target_filesystem_is_local): New.
2474 (target_trace_init): New.
2475 (target_download_tracepoint): New.
2476 (target_can_download_tracepoint): New.
2477 (target_download_trace_state_variable): New.
2478 (target_enable_tracepoint): New.
2479 (target_disable_tracepoint): New.
2480 (target_trace_start): New.
2481 (target_trace_set_readonly_regions): New.
2482 (target_get_trace_status): New.
2483 (target_get_tracepoint_status): New.
2484 (target_trace_stop): New.
2485 (target_trace_find): New.
2486 (target_get_trace_state_variable_value): New.
2487 (target_save_trace_data): New.
2488 (target_upload_tracepoints): New.
2489 (target_upload_trace_state_variables): New.
2490 (target_get_raw_trace_data): New.
2491 (target_get_min_fast_tracepoint_insn_len): New.
2492 (target_set_disconnected_tracing): New.
2493 (target_set_circular_trace_buffer): New.
2494 (target_set_trace_buffer_size): New.
2495 (target_set_trace_notes): New.
2496 (target_get_tib_address): New.
2497 (target_set_permissions): New.
2498 (target_static_tracepoint_marker_at): New.
2499 (target_static_tracepoint_markers_by_strid): New.
2500 (target_traceframe_info): New.
2501 (target_use_agent): New.
2502 (target_can_use_agent): New.
2503 (target_augmented_libraries_svr4_read): New.
2504 (target_log_command): New.
2505 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2506 * infrun.c (set_schedlock_func): Adjust.
2507 * mi/mi-main.c (exec_reverse_continue): Adjust.
2508 * reverse.c (exec_reverse_once): Adjust.
2509 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2510 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2511 * remote-sim.c (gdbsim_target::detach): Adjust.
2512 (gdbsim_target::files_info): Adjust.
2514 2021-03-24 Tom Tromey <tom@tromey.com>
2516 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2517 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2518 (check_match, dw2_expand_symtabs_matching)
2519 (dwarf2_debug_names_index::map_matching_symbols)
2520 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2522 2021-03-24 Keith Seitz <keiths@redhat.com>
2524 * compile/compile-cplus-types.c
2525 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2528 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2530 * gdbarch.sh (gdbarch_data_registry): Make static.
2531 * gdbarch.c: Re-generate.
2533 2021-03-24 Luis Machado <luis.machado@linaro.org>
2535 * NEWS: Mention memory tagging changes.
2537 2021-03-24 Luis Machado <luis.machado@linaro.org>
2539 * printcmd.c (decode_format): Handle the 'm' modifier.
2540 (do_examine): Display allocation tags when required/supported.
2541 (should_validate_memtags): New function.
2542 (print_command_1): Display memory tag mismatches.
2543 * valprint.c (show_memory_tag_violations): New function.
2544 (value_print_option_defs): Add new option "memory-tag-violations".
2545 (user_print_options) <memory_tag_violations>: Initialize to 1.
2546 * valprint.h (struct format_data) <print_tags>: New field.
2547 (value_print_options) <memory_tag_violations>: New field.
2549 2021-03-24 Luis Machado <luis.machado@linaro.org>
2551 * printcmd.c: Include gdbsupport/rsp-low.h.
2552 (memory_tag_list): New static global.
2553 (process_print_command_args): Factored out of
2555 (print_command_1): Use process_print_command_args.
2556 (show_addr_not_tagged, show_memory_tagging_unsupported)
2557 (memory_tag_command, memory_tag_print_tag_command)
2558 (memory_tag_print_logical_tag_command)
2559 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2560 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2561 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2563 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2565 2021-03-24 Luis Machado <luis.machado@linaro.org>
2567 * aarch64-linux-tdep.c
2568 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2569 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2571 2021-03-24 Luis Machado <luis.machado@linaro.org>
2573 * aarch64-linux-tdep.c
2574 (aarch64_linux_report_signal_info): New function.
2575 (aarch64_linux_init_abi): Register
2576 aarch64_linux_report_signal_info as the report_signal_info hook.
2577 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2578 (SEGV_MTESERR): Define.
2580 2021-03-24 Luis Machado <luis.machado@linaro.org>
2582 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2583 (aarch64_linux_ltag_tests): New function.
2584 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2586 2021-03-24 Luis Machado <luis.machado@linaro.org>
2588 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2589 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2590 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2591 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2593 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2594 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2595 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2596 (aarch64_linux_get_ltag): New functions.
2597 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2598 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2599 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2600 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2602 2021-03-24 Luis Machado <luis.machado@linaro.org>
2604 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2606 (struct smaps_data): New struct.
2607 (decode_vmflags): Handle the 'mt' flag.
2608 (parse_smaps_data): New function, refactored from
2609 linux_find_memory_regions_full.
2610 (linux_address_in_memtag_page): New function.
2611 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2612 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2614 2021-03-24 Luis Machado <luis.machado@linaro.org>
2616 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2617 instead of char arrays.
2619 2021-03-24 Luis Machado <luis.machado@linaro.org>
2621 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2622 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2623 nat/aarch64-mte-linux-ptrace.h.
2624 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2625 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2627 <fetch_memtags>: New method override.
2628 <store_memtags>: New method override.
2629 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2630 (aarch64_linux_nat_target::fetch_memtags): New method.
2631 (aarch64_linux_nat_target::store_memtags): New method.
2632 * arch/aarch64-mte-linux.c: New file.
2633 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2634 (AARCH64_MTE_GRANULE_SIZE): Define.
2635 (aarch64_memtag_type): New enum.
2636 (aarch64_mte_get_tag_granules): New prototype.
2637 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2638 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2639 * nat/aarch64-mte-linux-ptrace.c: New file.
2640 * nat/aarch64-mte-linux-ptrace.h: New file.
2642 2021-03-24 Luis Machado <luis.machado@linaro.org>
2644 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2645 * nat/aarch64-mte-linux-ptrace.h: New file.
2647 2021-03-24 Luis Machado <luis.machado@linaro.org>
2649 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2650 (store_mteregs_to_thread): New function.
2651 (aarch64_linux_nat_target::fetch_registers): Update to call
2652 fetch_mteregs_from_thread.
2653 (aarch64_linux_nat_target::store_registers): Update to call
2654 store_mteregs_to_thread.
2655 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2656 (aarch64_cannot_store_register): Handle MTE registers.
2657 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2658 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2659 <has_mte>: New method.
2660 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2662 2021-03-24 Luis Machado <luis.machado@linaro.org>
2664 * aarch64-linux-nat.c
2665 (aarch64_linux_nat_target::read_description): Take MTE flag into
2667 Slight refactor to hwcap flag checking.
2668 * aarch64-linux-tdep.c
2669 (aarch64_linux_core_read_description): Likewise.
2670 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2672 (aarch64_read_description): Add mte_p parameter and update to use it.
2673 Update the documentation.
2674 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2675 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2676 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2677 (aarch64_create_target_description): Add mte_p parameter and update
2679 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2681 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2682 * features/aarch64-mte.c: New file, generated.
2683 * features/aarch64-mte.xml: New file.
2685 2021-03-24 Luis Machado <luis.machado@linaro.org>
2687 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2688 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2689 * aarch64-linux-tdep.c: Likewise
2690 * arch/aarch64-mte-linux.h: New file.
2692 2021-03-24 Luis Machado <luis.machado@linaro.org>
2694 * remote: Include gdbsupport/selftest.h.
2695 (test_memory_tagging_functions): New function.
2696 (_initialize_remote): Register test_memory_tagging_functions.
2698 2021-03-24 Luis Machado <luis.machado@linaro.org>
2700 * remote.c (PACKET_memory_tagging_feature): New enum.
2701 (remote_memory_tagging_p): New function.
2702 (remote_protocol_features): New "memory-tagging" entry.
2703 (remote_target::remote_query_supported): Handle memory tagging
2705 (remote_target::supports_memory_tagging): Implement.
2706 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2707 (create_store_memtags_request): New functions.
2708 (remote_target::fetch_memtags): Implement.
2709 (remote_target::store_memtags): Implement.
2710 (_initialize_remote): Add new "memory-tagging-feature"
2713 2021-03-24 Luis Machado <luis.machado@linaro.org>
2715 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2716 (default_memtag_matches_p, default_set_memtags)
2717 (default_get_memtag): New functions.
2718 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2719 (default_memtag_matches_p, default_set_memtags)
2720 (default_get_memtag): New prototypes.
2721 * gdbarch.c: Regenerate.
2722 * gdbarch.h: Regenerate.
2723 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2724 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2725 (enum memtag_type): New enum.
2727 2021-03-24 Luis Machado <luis.machado@linaro.org>
2729 * remote.c (remote_target) <supports_memory_tagging>: New method
2731 <fetch_memtags>: New method override.
2732 <store_memtags>: New method override.
2733 (remote_target::supports_memory_tagging): New method.
2734 (remote_target::fetch_memtags): New method.
2735 (remote_target::store_memtags): New method.
2736 * target-delegates.c: Regenerate.
2737 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2739 <fetch_memtags>: New virtual method.
2740 <store_memtags>: New virtual method.
2741 (target_supports_memory_tagging): Define.
2742 (target_fetch_memtags): Define.
2743 (target_store_memtags): Define.
2744 * target-debug.h (target_debug_print_size_t)
2745 (target_debug_print_const_gdb_byte_vector_r)
2746 (target_debug_print_gdb_byte_vector_r): New functions.
2748 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2750 * target.h (target_longname): Remove.
2752 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2754 * target.h (target_is_pushed): Remove, update callers to use
2755 inferior::target_is_pushed instead.
2756 * target.c (target_is_pushed): Remove.
2758 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2760 * target.h (push_target): Remove, update callers to use
2761 inferior::push_target.
2762 * target.c (push_target): Remove.
2763 * inferior.h (class inferior) <push_target>: New overload.
2765 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2767 * target.h (unpush_target): Remove, update all callers
2768 to use `inferior::unpush_target` instead.
2769 (struct target_unpusher) <operator()>: Just declare.
2770 * target.c (unpush_target): Remove.
2771 (target_unpusher::operator()): New.
2773 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2775 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2777 (process_full_comp_unit): Validate the top-level tag before
2778 processing the first DIE.
2779 (read_func_scope): Ensure we have a valid builder.
2781 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2783 * objc-lang.c (objc_demangle): Renamed to
2784 objc_language::demangle_symbol, and moved later in the file.
2785 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2787 (objc_language::demangle_symbol): Defined outside of class
2788 declaration. The definition is the old objc_demangle with NULL
2789 changed to nullptr, and if conditions relating to nullptr pointers
2790 or null character checks made explicit.
2791 * objc-lang.h (objc_demangle): Delete declaration.
2793 2021-03-22 Martin Liska <mliska@suse.cz>
2795 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2796 (_initialize_arm_tdep): Likewise.
2798 2021-03-20 Tom Tromey <tom@tromey.com>
2800 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2801 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2802 * psymtab.h (make_psymbol_functions): Don't declare.
2803 * psymtab.c (make_psymbol_functions): Remove.
2804 (maintenance_print_psymbols): Update.
2805 * psympriv.h (struct psymbol_functions): Add no-argument
2807 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2808 <partial_symtabs>: Remove.
2809 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2810 * elfread.c (read_partial_symbols): Update.
2811 (elf_symfile_read): Remove check for existing partial symbols.
2813 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2815 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2817 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2819 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2820 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2822 2021-03-20 Tom Tromey <tom@tromey.com>
2824 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2825 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2826 * symfile-debug.c (objfile::has_partial_symbols)
2827 (objfile::find_last_source_symtab)
2828 (objfile::forget_cached_source_info)
2829 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2830 (objfile::print_stats, objfile::dump)
2831 (objfile::expand_symtabs_for_function)
2832 (objfile::expand_all_symtabs)
2833 (objfile::expand_symtabs_with_fullname)
2834 (objfile::map_matching_symbols)
2835 (objfile::expand_symtabs_matching)
2836 (objfile::find_pc_sect_compunit_symtab)
2837 (objfile::map_symbol_filenames)
2838 (objfile::find_compunit_symtab_by_address)
2839 (objfile::lookup_global_symbol_language)
2840 (objfile::require_partial_symbols): Update.
2841 * psymtab.c (maintenance_print_psymbols)
2842 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2843 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2844 * objfiles.c (objfile_relocate1): Update.
2845 * elfread.c (elf_symfile_read): Update.
2847 2021-03-20 Tom Tromey <tom@tromey.com>
2849 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2851 2021-03-20 Tom Tromey <tom@tromey.com>
2853 * psymtab.c (psymbol_functions::count_psyms): Rename.
2854 (psymbol_functions::print_stats): Update.
2855 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2858 2021-03-20 Tom Tromey <tom@tromey.com>
2860 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2861 (psymbol_functions::find_pc_sect_psymtab): Rename.
2862 (psymbol_functions::find_pc_sect_compunit_symtab)
2863 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2864 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2866 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2868 2021-03-20 Tom Tromey <tom@tromey.com>
2870 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2871 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2872 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2874 (add_psymbol_to_bcache): Remove.
2875 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2876 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2878 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2879 <add_psymbol>: Likewise.
2880 (standard_psymtab, legacy_psymtab): Likewise.
2881 * mdebugread.c (parse_partial_symbols): Update.
2882 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2883 (handle_psymbol_enumerators): Update.
2884 (new_psymtab): Add partial_symtabs parameter.
2885 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2886 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2888 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2889 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2891 * dbxread.c (read_dbx_symtab): Update.
2892 (start_psymtab): Add partial_symtabs parameter.
2893 (dbx_end_psymtab): Update.
2894 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2895 (ctf_psymtab): Add partial_symtabs parameter.
2896 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2898 (scan_partial_symbols): Add partial_symtabs parameter.
2899 (scan_partial_symbols, elfctf_build_psymtabs)
2900 (ctf_psymtab_add_enums): Update.
2902 2021-03-20 Tom Tromey <tom@tromey.com>
2904 * symfile.c (read_symbols): Use objfile method.
2905 * symfile-debug.c (objfile::require_partial_symbols): New method.
2906 * psymtab.h (require_partial_symbols): Don't declare.
2907 * psymtab.c (require_partial_symbols): Use objfile method. Now
2909 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2910 (psymbol_functions::lookup_symbol)
2911 (psymbol_functions::lookup_global_symbol_language)
2912 (psymbol_functions::find_last_source_symtab)
2913 (psymbol_functions::forget_cached_source_info)
2914 (psymbol_functions::print_stats)
2915 (psymbol_functions::expand_symtabs_for_function)
2916 (psymbol_functions::expand_all_symtabs)
2917 (psymbol_functions::expand_symtabs_with_fullname)
2918 (psymbol_functions::map_symbol_filenames)
2919 (psymbol_functions::map_matching_symbols)
2920 (psymbol_functions::expand_symtabs_matching)
2921 (psymbol_functions::find_compunit_symtab_by_address)
2922 (maintenance_print_psymbols, maintenance_info_psymtabs)
2923 (maintenance_check_psymtabs): Update.
2924 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2927 2021-03-20 Tom Tromey <tom@tromey.com>
2929 * xcoffread.c (xcoff_sym_fns): Update.
2930 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2931 * symfile-debug.c (objfile::has_partial_symbols): Use
2932 can_lazily_read_symbols.
2933 (debug_sym_read_psymbols): Remove.
2934 (debug_sym_fns, install_symfile_debug_logging): Update.
2935 * quick-symbol.h (struct quick_symbol_functions)
2936 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2937 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2938 * mipsread.c (ecoff_sym_fns): Update.
2939 * machoread.c (macho_sym_fns): Update.
2940 * elfread.c (struct lazy_dwarf_reader): New.
2941 (elf_symfile_read): Update.
2942 (read_psyms): Now a method of lazy_dwarf_reader.
2943 (elf_sym_fns): Update.
2944 (elf_sym_fns_lazy_psyms): Remove.
2945 * dbxread.c (aout_sym_fns): Update.
2946 * coffread.c (coff_sym_fns): Update.
2948 2021-03-20 Tom Tromey <tom@tromey.com>
2950 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2951 (reread_symbols): Move reset_psymtabs call later.
2952 * objfiles.c (objfile::objfile): Don't initialize
2955 2021-03-20 Tom Tromey <tom@tromey.com>
2957 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2958 set_partial_symtabs.
2959 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2960 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2962 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2964 (psymbol_functions::find_pc_sect_compunit_symtab)
2965 (psymbol_functions::print_stats, psymbol_functions::dump)
2966 (psymbol_functions::has_symbols): Update.
2967 (make_psymbol_functions, dump_psymtab_addrmap): Add
2968 partial_symtabs parameter.
2969 (maintenance_print_psymbols): Update.
2970 (psymbol_functions::expand_symtabs_matching): Update.
2971 * psympriv.h (struct psymbol_functions): Add constructor.
2972 <m_partial_symtabs>: New member.
2973 <set_partial_symtabs>: New method.
2975 2021-03-20 Tom Tromey <tom@tromey.com>
2977 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2979 (process_psymtab_comp_unit_reader)
2980 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2981 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2982 Reference psymtabs via per_bfd.
2984 2021-03-20 Tom Tromey <tom@tromey.com>
2986 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2988 (add_address_entry): Remove objfile parameter.
2989 (add_address_entry_worker): Update.
2990 (write_address_map): Replace objfile parameter with per_bfd.
2991 (write_gdbindex, write_psymtabs_to_index): Update.
2993 2021-03-20 Tom Tromey <tom@tromey.com>
2995 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2996 print_bcache parameter.
2997 * symfile-debug.c (objfile::print_stats): Add print_bcache
2999 * quick-symbol.h (struct quick_symbol_functions)
3000 <print_stats>: Add print_bcache parameter.
3001 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
3003 (print_objfile_statistics): Move psymtab code to psymtab.c.
3004 * psymtab.c (count_psyms): Move from symmisc.c.
3005 (psymbol_functions::print_stats): Print partial symbol and bcache
3006 statistics. Add print_bcache parameter.
3007 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
3008 (struct objfile) <print_stats>: Add print_bcache parameter.
3009 * maint.c (maintenance_print_statistics): Update.
3011 2021-03-20 Tom Tromey <tom@tromey.com>
3013 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
3015 * dwarf2/read.c (create_addrmap_from_index)
3016 (create_addrmap_from_aranges): Set per_bfd addrmap.
3017 (dwarf2_read_gdb_index): Don't set partial_symtabs.
3018 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
3020 (dwarf2_read_debug_names): Don't set partial_symtabs.
3021 (dwarf2_initialize_objfile): Likewise.
3023 2021-03-20 Tom Tromey <tom@tromey.com>
3025 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
3028 2021-03-20 Tom Tromey <tom@tromey.com>
3030 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
3031 (~psymtab_discarder, keep): Update.
3032 <m_objfile>: Remove.
3033 <m_partial_symtabs>: New member.
3034 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
3036 2021-03-20 Tom Tromey <tom@tromey.com>
3038 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
3039 (xcoff_end_psymtab): Update.
3040 (scan_xcoff_symtab): Add partial_symtabs parameter.
3041 (xcoff_initial_scan): Update.
3042 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
3043 * mdebugread.c (mdebug_build_psymtabs): Update.
3044 (parse_partial_symbols): Add partial_symtabs parameter.
3045 * dbxread.c (dbx_symfile_read): Update.
3046 (read_dbx_symtab): Add partial_symtabs parameter.
3047 (read_dbx_symtab): Update.
3048 (dbx_end_psymtab): Add partial_symtabs parameter.
3050 2021-03-20 Tom Tromey <tom@tromey.com>
3052 * quick-symbol.h (struct quick_symbol_functions)
3053 <relocated>: New method.
3054 * psymtab.h (struct psymbol_functions) <relocated>: New
3056 <fill_psymbol_map>: Declare method.
3057 <m_psymbol_map>: New member.
3058 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3059 (psymbol_functions::find_compunit_symtab_by_address): Update.
3060 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3061 (struct objfile) <psymbol_map>: Remove.
3062 * objfiles.c (objfile_relocate1): Update.
3064 2021-03-20 Tom Tromey <tom@tromey.com>
3066 * psympriv.h (struct psymbol_functions): New.
3067 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3068 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3069 (objfile::lookup_global_symbol_language): Update.
3070 * quick-symbol.h (struct quick_symbol_functions): Convert function
3071 pointers to methods. Add virtual destructor.
3072 (quick_symbol_functions_up): New typedef.
3073 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3074 (dwarf2_debug_names_functions): Don't declare.
3075 (make_psymbol_functions): Declare.
3076 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3077 (psymbol_functions::find_pc_sect_compunit_symtab)
3078 (psymbol_functions::lookup_symbol)
3079 (psymbol_functions::lookup_global_symbol_language)
3080 (psymbol_functions::find_last_source_symtab)
3081 (psymbol_functions::forget_cached_source_info)
3082 (psymbol_functions::print_stats, psymbol_functions::dump)
3083 (psymbol_functions::expand_symtabs_for_function)
3084 (psymbol_functions::expand_all_symtabs)
3085 (psymbol_functions::expand_symtabs_with_fullname)
3086 (psymbol_functions::map_symbol_filenames)
3087 (psymbol_functions::map_matching_symbols)
3088 (psymbol_functions::expand_symtabs_matching)
3089 (psymbol_functions::has_symbols)
3090 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3091 (psym_functions): Remove.
3092 (make_psymbol_functions): New function.
3093 * objfiles.h (struct objfile) <qf>: Change type.
3094 * elfread.c (elf_symfile_read): Update.
3095 * dwarf2/read.c (struct dwarf2_base_index_functions)
3096 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3097 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3098 (dwarf2_base_index_functions::find_last_source_symtab)
3099 (dwarf2_base_index_functions::forget_cached_source_info)
3100 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3101 (dwarf2_gdb_index::lookup_symbol)
3102 (dwarf2_base_index_functions::print_stats)
3103 (dwarf2_gdb_index::dump)
3104 (dwarf2_gdb_index::expand_symtabs_for_function)
3105 (dwarf2_base_index_functions::expand_all_symtabs)
3106 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3108 (dwarf2_gdb_index::map_matching_symbols): New method.
3109 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3110 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3111 (dwarf2_base_index_functions::map_symbol_filenames)
3112 (dwarf2_base_index_functions::has_symbols): Rename.
3113 (dwarf2_gdb_index_functions): Remove.
3114 (dwarf2_debug_names_index::lookup_symbol)
3115 (dwarf2_debug_names_index::dump)
3116 (dwarf2_debug_names_index::expand_symtabs_for_function)
3117 (dwarf2_debug_names_index::map_matching_symbols)
3118 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3119 (dwarf2_debug_names_functions): Remove.
3120 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3123 2021-03-20 Tom Tromey <tom@tromey.com>
3125 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3127 * xcoffread.c (xcoff_sym_fns): Update.
3128 * symfile.h (struct sym_fns) <qf>: Remove.
3129 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3130 * symfile-debug.c (objfile::has_partial_symbols)
3131 (objfile::find_last_source_symtab)
3132 (objfile::forget_cached_source_info)
3133 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3134 (objfile::print_stats, objfile::dump)
3135 (objfile::expand_symtabs_for_function)
3136 (objfile::expand_all_symtabs)
3137 (objfile::expand_symtabs_with_fullname)
3138 (objfile::map_matching_symbols)
3139 (objfile::expand_symtabs_matching)
3140 (objfile::find_pc_sect_compunit_symtab)
3141 (objfile::map_symbol_filenames)
3142 (objfile::find_compunit_symtab_by_address)
3143 (objfile::lookup_global_symbol_language, debug_sym_fns)
3144 (install_symfile_debug_logging): Update.
3145 * objfiles.h (struct objfile) <qf>: New member.
3146 * mipsread.c (ecoff_sym_fns): Update.
3147 * machoread.c (macho_sym_fns): Update.
3148 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3150 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3151 * dbxread.c (aout_sym_fns): Update.
3152 * coffread.c (coff_sym_fns): Update.
3154 2021-03-20 Tom Tromey <tom@tromey.com>
3156 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3157 (expand_symtabs_file_matcher_ftype)
3158 (expand_symtabs_symbol_matcher_ftype)
3159 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3160 Move to quick-symbol.h.
3161 * quick-symbol.h: New file.
3163 2021-03-20 Tom Tromey <tom@tromey.com>
3165 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3166 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3167 (basic_lookup_transparent_type_quick)
3168 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3169 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3171 * symmisc.c (print_objfile_statistics, dump_objfile)
3172 (maintenance_expand_symtabs): Update.
3173 * symfile.c (symbol_file_add_with_addrs)
3174 (expand_symtabs_matching, map_symbol_filenames): Update.
3175 * symfile-debug.c (objfile::has_partial_symbols)
3176 (objfile::find_last_source_symtab)
3177 (objfile::forget_cached_source_info)
3178 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3179 (objfile::print_stats, objfile::dump)
3180 (objfile::expand_symtabs_for_function)
3181 (objfile::expand_all_symtabs)
3182 (objfile::expand_symtabs_with_fullname)
3183 (objfile::map_matching_symbols)
3184 (objfile::expand_symtabs_matching)
3185 (objfile::find_pc_sect_compunit_symtab)
3186 (objfile::map_symbol_filenames)
3187 (objfile::find_compunit_symtab_by_address)
3188 (objfile::lookup_global_symbol_language): New methods.
3189 (debug_sym_quick_functions): Remove.
3190 (debug_sym_fns, install_symfile_debug_logging): Update.
3191 * source.c (forget_cached_source_info_for_objfile)
3192 (select_source_symtab): Update.
3193 * objfiles.h (struct objfile): Add methods corresponding to
3194 quick_symbol_functions.
3195 * objfiles.c (objfile::has_partial_symbols): Move to
3197 * linespec.c (iterate_over_all_matching_symtabs): Update.
3198 * cp-support.c (add_symbol_overload_list_qualified): Update.
3199 * ada-lang.c (add_nonlocal_symbols): Update.
3201 2021-03-20 Tom Tromey <tom@tromey.com>
3203 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3204 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3206 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3207 * psymtab.c (psym_has_symbols): Return bool.
3208 * objfiles.c (objfile::has_partial_symbols): Return bool.
3209 * dwarf2/read.c (dw2_has_symbols): Return bool.
3211 2021-03-20 Tom Tromey <tom@tromey.com>
3213 * symfile.c (read_symbols): Update.
3214 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3215 (objfile_has_partial_symbols): Don't declare.
3216 * objfiles.c (objfile::has_partial_symbols): Rename from
3217 objfile_has_partial_symbols.
3218 (objfile_has_symbols, have_partial_symbols): Update.
3219 * elfread.c (elf_symfile_read): Update.
3220 * dwarf2/read.c (dwarf2_has_info): Update.
3221 * coffread.c (coff_symfile_read): Update.
3223 2021-03-20 Tom Tromey <tom@tromey.com>
3225 * coffread.c: Include dwarf2/public.h.
3226 * dwarf2/frame.c: Include dwarf2/public.h.
3227 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3228 * dwarf2/public.h: New file.
3229 * dwarf2/read.c: Include dwarf2/public.h.
3230 * elfread.c: Include dwarf2/public.h.
3231 * machoread.c: Include dwarf2/public.h.
3232 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3233 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3234 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3235 * xcoffread.c: Include dwarf2/public.h.
3237 2021-03-20 Tom Tromey <tom@tromey.com>
3239 * symfile.h (enum dwarf2_section_enum)
3240 (dwarf2_get_section_info): Move to dwarf2/read.h.
3241 * dwarf2/read.h (enum dwarf2_section_enum)
3242 (dwarf2_get_section_info): Move from symfile.h.
3244 2021-03-19 Pedro Alves <pedro@palves.net>
3246 * thread.c (any_thread_of_inferior): Check if there's a selected
3247 thread before calling inferior_thread().
3249 2021-03-18 Tom Tromey <tromey@adacore.com>
3251 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3253 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3254 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3256 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3258 * python/py-param.c (get_set_value): Update header comment.
3260 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3262 * infrun.c (check_multi_target_resumption): Remove argument to
3263 all_non_exited_inferiors.
3265 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3267 * windows-nat.c (windows_init_thread_list): Add message to
3270 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3272 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3273 well as PyLong_Check for Python 2.
3275 2021-03-15 Tom Tromey <tromey@adacore.com>
3278 * rust-exp.y (maker_map): Use gdb::hash_enum.
3279 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3281 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3283 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3286 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3288 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3289 parameter, adjust caller.
3291 2021-03-15 Tom Tromey <tromey@adacore.com>
3293 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3295 2021-03-15 Tom Tromey <tromey@adacore.com>
3297 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3298 ada_ensure_varsize_limit.
3300 2021-03-15 Tom Tromey <tromey@adacore.com>
3302 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3304 * ada-exp.y (maybe_overload): New function.
3305 (ada_wrap_overload): New function.
3306 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3307 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3308 (or_else_exp, xor_exp, primary): Update.
3310 2021-03-15 Tom Tromey <tromey@adacore.com>
3313 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3314 call for tagged type.
3316 2021-03-15 Tom Tromey <tromey@adacore.com>
3318 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3321 2021-03-15 Tom Tromey <tromey@adacore.com>
3323 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3325 (ada_assign_operation::evaluate): Update.
3326 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3329 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3331 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3333 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3335 * python/python.c (gdbpy_source_objfile_script): Use
3336 make_scoped_restore to restore gdbpy_current_objfile.
3337 (gdbpy_execute_objfile_script): Likewise.
3339 2021-03-14 Tom Tromey <tom@tromey.com>
3341 * dwarf2/read.c (read_attribute_value): Use cu_header
3344 2021-03-14 Tom Tromey <tom@tromey.com>
3346 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3347 (peek_die_abbrev): Use reader.abfd.
3349 2021-03-14 Tom Tromey <tom@tromey.com>
3351 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3354 2021-03-13 Tom Tromey <tom@tromey.com>
3356 * dwarf2/read.c (struct partial_die_info): Update.
3357 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3358 (load_partial_dies, partial_die_info::partial_die_info): Update.
3359 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3361 2021-03-13 Tom Tromey <tom@tromey.com>
3363 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3365 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3368 * cp-support.c: Use scoped_segv_handler_restore.
3369 * event-top.c (thread_local_segv_handler): Made static.
3370 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3372 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3374 * event-top.h (class scoped_segv_handler_restore): New class.
3375 (thread_local_segv_handler): Removed.
3377 2021-03-10 Tom Tromey <tromey@adacore.com>
3379 * parser-defs.h (parser_state): Change completion to bool.
3380 <parse_completion>: Likewise.
3381 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3382 (ada_resolve_variable, ada_resolve_function): Update.
3383 * ada-lang.c (ada_find_operator_symbol): Change
3384 parse_completion to bool.
3385 (ada_resolve_funcall, ada_resolve_variable)
3386 (ada_resolve_function): Likewise.
3388 2021-03-09 Tom Tromey <tromey@adacore.com>
3390 * eval.c (operation::evaluate_funcall): Use function formal
3391 parameter types when evaluating.
3393 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3395 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3396 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3397 and owner to m_owner.
3399 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3401 * f-exp.h (eval_op_f_loc): Declare.
3402 (expr::fortran_loc_operation): New typedef.
3403 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3405 (f77_keywords): Add LOC keyword.
3406 * f-lang.c (eval_op_f_loc): New function.
3407 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3409 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3411 * f-exp.h (eval_op_f_array_shape): Declare.
3412 (fortran_array_shape_operation): New type.
3413 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3415 (f77_keywords): Add "shape" keyword.
3416 * f-lang.c (fortran_array_shape): New function.
3417 (eval_op_f_array_shape): New function.
3418 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3420 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3422 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3424 (expr::fortran_array_size_1arg): New type.
3425 (expr::fortran_array_size_2arg): Likewise.
3426 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3427 UNOP_OR_BINOP_INTRINSIC.
3428 (f77_keywords): Add "size" keyword.
3429 * f-lang.c (fortran_array_size): New function.
3430 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3431 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3433 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3435 * f-exp.h (eval_op_f_rank): Declare.
3436 (expr::fortran_rank_operation): New typedef.
3437 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3439 (f77_keywords): Add "rank" keyword.
3440 * f-lang.c (eval_op_f_rank): New function.
3441 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3445 * printcmd.c (set_command): Remove null check.
3446 * value.c (init_if_undefined_command): Remove null check.
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3450 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3452 * p-exp.y (variable): Update.
3453 * go-exp.y (variable): Update.
3454 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3455 Remove overload for objfile.
3456 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3458 (check_objfile): Likewise.
3459 (dump_for_expression): Likewise. Remove overload for objfile.
3460 (class var_msym_value_operation): Use bound_minimal_symbol.
3461 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3463 (var_msym_value_operation::evaluate_for_address)
3464 (var_msym_value_operation::evaluate_for_sizeof)
3465 (var_msym_value_operation::evaluate_for_cast): Update.
3466 * d-exp.y (PrimaryExpression): Update.
3467 * c-exp.y (variable): Update.
3468 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3469 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3471 * ada-exp.y (write_var_or_type): Update.
3473 2021-03-08 Tom Tromey <tom@tromey.com>
3475 * parser-defs.h (exp_uses_objfile): Return bool.
3476 * parse.c (exp_uses_objfile): Return bool.
3478 2021-03-08 Tom Tromey <tom@tromey.com>
3480 * value.h (eval_skip_value): Don't declare.
3481 * opencl-lang.c (eval_opencl_assign): Update.
3482 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3483 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3484 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3485 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3486 * expop.h (typeof_operation::evaluate)
3487 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3488 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3489 (cxx_cast_operation::evaluate): Update.
3490 * eval.c (eval_skip_value): Remove.
3491 (eval_op_scope, eval_op_var_entry_value)
3492 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3493 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3494 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3495 (eval_op_binary, eval_op_subscript, eval_op_equal)
3496 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3497 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3498 (eval_op_complement, eval_op_lognot, eval_op_ind)
3499 (eval_op_memval, eval_op_preinc, eval_op_predec)
3500 (eval_op_postinc, eval_op_postdec, eval_op_type)
3501 (eval_binop_assign_modify, eval_op_objc_msgcall)
3502 (eval_multi_subscript, logical_and_operation::evaluate)
3503 (logical_or_operation::evaluate, array_operation::evaluate)
3504 (operation::evaluate_for_cast)
3505 (var_msym_value_operation::evaluate_for_cast)
3506 (var_value_operation::evaluate_for_cast): Update.
3507 * c-lang.c (c_string_operation::evaluate): Update.
3508 * c-exp.h (objc_nsstring_operation::evaluate)
3509 (objc_selector_operation::evaluate): Update.
3510 * ada-lang.c (ada_assign_operation::evaluate)
3511 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3512 (ada_atr_size): Update.
3514 2021-03-08 Tom Tromey <tom@tromey.com>
3516 * eval.c: Merge "namespace" scopes.
3518 2021-03-08 Tom Tromey <tom@tromey.com>
3520 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3522 * parse.c (expr_builder::expr_builder, expr_builder::release):
3525 2021-03-08 Tom Tromey <tom@tromey.com>
3527 * parse.c (expression::expression, expression::~expression):
3529 * expression.h (struct expression): Inline constructor. Remove
3532 2021-03-08 Tom Tromey <tom@tromey.com>
3534 * std-operator.def (BINOP_END): Remove.
3535 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3536 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3537 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3538 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3539 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3542 2021-03-08 Tom Tromey <tom@tromey.com>
3544 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3546 2021-03-08 Tom Tromey <tom@tromey.com>
3548 * std-operator.def (OP_EXTENDED0): Remove.
3550 2021-03-08 Tom Tromey <tom@tromey.com>
3552 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3553 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3556 2021-03-08 Tom Tromey <tom@tromey.com>
3558 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3559 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3561 2021-03-08 Tom Tromey <tom@tromey.com>
3563 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3564 * ada-lang.c (ada_binop_minmax): Update.
3565 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3566 Use BINOP_MIN and BINOP_MAX.
3568 2021-03-08 Tom Tromey <tom@tromey.com>
3570 * value.h (evaluate_subexp_with_coercion): Don't declare.
3571 * parse.c (exp_descriptor_standard): Remove.
3572 (expr_builder::expr_builder, expr_builder::release): Update.
3573 (expression::expression): Remove size_t parameter.
3574 (expression::~expression): Simplify.
3575 (expression::resize): Remove.
3576 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3577 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3578 (write_exp_elt_longcst, write_exp_elt_floatcst)
3579 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3580 (write_exp_string_vector, write_exp_bitstring): Remove.
3581 * p-lang.h (class pascal_language) <opcode_print_table,
3582 op_print_tab>: Remove.
3583 * p-lang.c (pascal_language::op_print_tab): Remove.
3584 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3586 * objc-lang.c (objc_op_print_tab): Remove.
3587 (class objc_language) <opcode_print_table>: Remove.
3588 * m2-lang.h (class m2_language) <opcode_print_table,
3589 op_print_tab>: Remove.
3590 * m2-lang.c (m2_language::op_print_tab): Remove.
3591 * language.h (struct language_defn) <post_parser, expression_ops,
3592 opcode_print_table>: Remove.
3593 * language.c (language_defn::expression_ops)
3594 (auto_or_unknown_language::opcode_print_table): Remove.
3595 * go-lang.h (class go_language) <opcode_print_table,
3596 op_print_tab>: Remove.
3597 * go-lang.c (go_language::op_print_tab): Remove.
3598 * f-lang.h (class f_language) <opcode_print_table>: Remove
3599 <op_print_tab>: Remove.
3600 * f-lang.c (f_language::op_print_tab): Remove.
3601 * expression.h (union exp_element): Remove.
3602 (struct expression): Remove size_t parameter from constructor.
3604 <first_opcode>: Update.
3605 <nelts, elts>: Remove.
3606 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3607 (evaluate_subexp_standard, print_expression, op_string)
3608 (dump_raw_expression): Don't declare.
3609 * expprint.c (print_expression, print_subexp)
3610 (print_subexp_funcall, print_subexp_standard, op_string)
3611 (dump_raw_expression, dump_subexp, dump_subexp_body)
3612 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3613 (dump_prefix_expression): Update.
3614 * eval.c (evaluate_subexp): Remove.
3615 (evaluate_expression, evaluate_type): Update.
3616 (evaluate_subexpression_type): Remove.
3617 (fetch_subexp_value): Remove "pc" parameter. Update.
3618 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3619 (evaluate_subexp_standard, evaluate_subexp_for_address)
3620 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3621 (evaluate_subexp_for_cast): Remove.
3622 (parse_and_eval_type): Update.
3623 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3624 * d-lang.c (d_op_print_tab): Remove.
3625 (class d_language) <opcode_print_table>: Remove.
3626 * c-lang.h (c_op_print_tab): Don't declare.
3627 * c-lang.c (c_op_print_tab): Remove.
3628 (class c_language, class cplus_language, class asm_language, class
3629 minimal_language) <opcode_print_table>: Remove.
3630 * breakpoint.c (update_watchpoint, watchpoint_check)
3631 (watchpoint_exp_is_const, watch_command_1): Update.
3632 * ax-gdb.h (union exp_element): Don't declare.
3633 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3634 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3635 (gen_expr_binop_rest): Remove.
3636 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3637 * ada-lang.c (ada_op_print_tab): Remove.
3638 (class ada_language) <post_parser, opcode_print_table>: Remove.
3640 2021-03-08 Tom Tromey <tom@tromey.com>
3642 * go-lang.c (go_language::expression_ops): Don't declare.
3643 * go-lang.h (class go_language) <expression_ops>: Remove.
3644 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3646 (class opencl_language) <expression_ops>: Remove.
3647 * d-lang.c (class d_language) <expression_ops>: Remove.
3648 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3649 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3650 (class c_language, class cplus_language, class asm_language)
3651 (class minimal_language) <expression_ops>: Remove.
3653 2021-03-08 Tom Tromey <tom@tromey.com>
3655 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3656 (evaluate_subexp_type, assign_aggregate)
3657 (aggregate_assign_positional, aggregate_assign_from_choices)
3658 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3659 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3660 (ada_operator_check, ada_forward_operator_length)
3661 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3663 (post_parser): Update.
3664 (class ada_language) <expresssion_ops>: Remove.
3666 2021-03-08 Tom Tromey <tom@tromey.com>
3668 * m2-lang.h (class m2_language) <expresssion_ops,
3669 exp_descriptor_modula2>: Remove.
3670 * m2-lang.c (evaluate_subexp_modula2)
3671 (m2_language::exp_descriptor_modula2): Remove.
3673 2021-03-08 Tom Tromey <tom@tromey.com>
3675 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3676 <exp_descriptor_tab>: Remove.
3677 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3678 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3679 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3680 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3683 2021-03-08 Tom Tromey <tom@tromey.com>
3685 * rust-lang.h (class rust_language) <expression_ops,
3686 exp_descriptor_tab>: Remove.
3687 * rust-lang.c (rust_evaluate_funcall): Remove.
3688 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3690 (rust_evaluate_subexp): Remove.
3691 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3692 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3693 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3695 2021-03-08 Tom Tromey <tom@tromey.com>
3697 * ada-exp.y: Create operations.
3698 (empty_stoken): Remove.
3699 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3700 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3701 (components): New global.
3702 (push_component, choice_component, pop_component, pop_components):
3704 (associations): New global
3705 (push_association, pop_association, pop_associations): New
3707 (ada_parse): Update.
3708 (write_var_from_sym, write_int): Create operations.
3709 (write_exp_op_with_string): Remove.
3710 (write_object_renaming, write_selectors, write_ambiguous_var)
3711 (write_var_or_type, write_name_assoc): Create operations.
3712 * ada-lang.h (ada_index_type): Declare.
3713 * ada-lang.c (ada_index_type): No longer static.
3715 2021-03-08 Tom Tromey <tom@tromey.com>
3717 * f-exp.y: Create operations.
3718 (f_language::parser): Update.
3720 2021-03-08 Tom Tromey <tom@tromey.com>
3722 * m2-exp.y: Create operations.
3723 (m2_language::parser): Update.
3725 2021-03-08 Tom Tromey <tom@tromey.com>
3727 * p-exp.y: Create operations.
3728 (pascal_language::parser): Update.
3730 2021-03-08 Tom Tromey <tom@tromey.com>
3732 * d-exp.y: Create operations.
3735 2021-03-08 Tom Tromey <tom@tromey.com>
3737 * go-exp.y: Create operations.
3738 (go_language::parser): Update.
3740 2021-03-08 Tom Tromey <tom@tromey.com>
3742 * objc-lang.c (end_msglist): Create operations.
3743 * c-exp.y: Change parser to create operations.
3744 (write_destructor_name): Remove.
3747 2021-03-08 Tom Tromey <tom@tromey.com>
3749 * rust-exp.y: Create operations.
3750 (rust_parser::convert_params_to_expression): Change return type.
3751 (binop_maker_ftype): New typedef.
3752 (maker_map): New global.
3753 (rust_parser::convert_ast_to_expression): Change return type.
3754 (rust_language::parser): Update.
3755 (_initialize_rust_exp): Initialize maker_map.
3757 2021-03-08 Tom Tromey <tom@tromey.com>
3759 * stap-probe.c (binop_maker_ftype): New typedef.
3760 (stap_maker_map): New global.
3761 (stap_make_binop): New function.
3762 (stap_parse_register_operand): Return operation_up.
3763 (stap_parse_single_operand, stap_parse_argument_conditionally)
3764 (stap_parse_argument_1): Likewise.
3765 (stap_parse_argument): Create operations.
3766 (stap_probe::parse_arguments): Update.
3767 (_initialize_stap_probe): Initialize stap_maker_map.
3768 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3770 * i386-tdep.h (i386_stap_parse_special_token): Change return
3772 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3773 (i386_stap_parse_special_token_three_arg_disp)
3774 (i386_stap_parse_special_token): Change return type.
3775 * gdbarch.sh (stap_parse_special_token): Change return type.
3776 * gdbarch.c: Rebuild.
3777 * gdbarch.h: Rebuild.
3778 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3780 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3783 2021-03-08 Tom Tromey <tom@tromey.com>
3785 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3786 * gdbarch.h: Rebuild.
3787 * gdbarch.c: Rebuild.
3788 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3789 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3791 (amd64_dtrace_parse_probe_argument): Update.
3793 2021-03-08 Tom Tromey <tom@tromey.com>
3795 * parser-defs.h (struct parser_state) <push, push_new,
3796 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3797 wrap2>: New methods.
3798 <m_operations>: New member.
3799 * parse.c (parser_state::push_c_string)
3800 (parser_state::push_symbol, parser_state::push_dollar): New
3803 2021-03-08 Tom Tromey <tom@tromey.com>
3805 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3807 (struct parser_state) <mark_struct_expression>: New method.
3808 * parse.c (parser_state::mark_struct_expression): Update assert.
3809 (parser_state::mark_struct_expression): New method.
3810 (parser_state::mark_completion_tag): Update assert.
3811 (parse_expression_for_completion): Handle expout_last_op.
3813 2021-03-08 Tom Tromey <tom@tromey.com>
3815 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3817 * value.h (fetch_subexp_value): Add "op" parameter.
3818 * value.c (init_if_undefined_command): Update.
3819 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3820 * stap-probe.c (stap_probe::compile_to_ax): Update.
3821 * printcmd.c (set_command): Update.
3822 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3824 * parser-defs.h (struct expr_builder) <set_operation>: New
3826 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3827 * expression.h (struct expression) <first_opcode>: Update.
3829 * expprint.c (dump_raw_expression, dump_prefix_expression):
3831 * expop.h (class var_value_operation) <get_symbol>: New method.
3832 (class register_operation) <get_name>: New method.
3833 (class equal_operation): No longer a typedef, now a subclass.
3834 (class unop_memval_operation) <get_type>: New method.
3835 (class assign_operation) <get_lhs>: New method.
3836 (class unop_cast_operation) <get_type>: New method.
3837 * eval.c (evaluate_expression, evaluate_type)
3838 (evaluate_subexpression_type): Update.
3839 (fetch_subexp_value): Add "op" parameter.
3840 (parse_and_eval_type): Update.
3841 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3842 * breakpoint.c (update_watchpoint, watchpoint_check)
3843 (watchpoint_exp_is_const, watch_command_1): Update.
3844 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3847 2021-03-08 Tom Tromey <tom@tromey.com>
3849 * ada-lang.c (ada_value_binop): Do not use op_string.
3851 2021-03-08 Tom Tromey <tom@tromey.com>
3853 * expprint.c (dump_for_expression): New overload.
3854 * expop.h (check_objfile, dump_for_expression): Declare new
3856 * ada-lang.c (check_objfile): New overload.
3857 (assign_component, ada_aggregate_component::uses_objfile)
3858 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3859 (ada_aggregate_component::assign_aggregate)
3860 (ada_positional_component::uses_objfile)
3861 (ada_positional_component::dump, ada_positional_component::assign)
3862 (ada_discrete_range_association::uses_objfile)
3863 (ada_discrete_range_association::dump)
3864 (ada_discrete_range_association::assign)
3865 (ada_name_association::uses_objfile, ada_name_association::dump)
3866 (ada_name_association::assign)
3867 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3868 (ada_choices_component::assign)
3869 (ada_others_component::uses_objfile, ada_others_component::dump)
3870 (ada_others_component::assign, ada_assign_operation::evaluate):
3872 * ada-exp.h (ada_string_operation) <get_name>: New method.
3873 (class ada_assign_operation): New.
3874 (class ada_component): New.
3875 (ada_component_up): New typedef.
3876 (class ada_aggregate_operation, class ada_aggregate_component)
3877 (class ada_positional_component, class ada_others_component)
3878 (class ada_association): New.
3879 (ada_association_up): New typedef.
3880 (class ada_choices_component)
3881 (class ada_discrete_range_association)
3882 (class ada_name_association): New.
3884 2021-03-08 Tom Tromey <tom@tromey.com>
3886 * ada-lang.c (ada_var_value_operation::resolve)
3887 (ada_funcall_operation::resolve)
3888 (ada_ternop_slice_operation::resolve): New methods.
3889 * ada-exp.h (struct ada_resolvable): New.
3890 (class ada_var_value_operation): Derive from ada_resolvable.
3891 <get_block, resolve>: New methods.
3892 (class ada_funcall_operation): Derive from ada_resolvable.
3893 <resolve>: New method.
3894 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3895 <resolve>: New method.
3897 2021-03-08 Tom Tromey <tom@tromey.com>
3899 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3900 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3902 (class ada_funcall_operation): New.
3904 2021-03-08 Tom Tromey <tom@tromey.com>
3906 * ada-lang.c (ada_structop_operation::evaluate): New method.
3907 * ada-exp.h (class ada_structop_operation): New.
3909 2021-03-08 Tom Tromey <tom@tromey.com>
3911 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3912 * ada-exp.h (class ada_unop_ind_operation): New.
3914 2021-03-08 Tom Tromey <tom@tromey.com>
3916 * ada-lang.c (ada_binop_exp): No longer static.
3917 * ada-exp.h (ada_binop_exp_operation): New typedef.
3919 2021-03-08 Tom Tromey <tom@tromey.com>
3921 * ada-lang.c (ada_val_atr): No longer static.
3922 (ada_atr_val_operation::evaluate): New method.
3923 * ada-exp.h (class ada_atr_val_operation): New.
3925 2021-03-08 Tom Tromey <tom@tromey.com>
3927 * ada-lang.c (ada_pos_atr): No longer static.
3928 * ada-exp.h (ada_pos_operation): New typedef.
3930 2021-03-08 Tom Tromey <tom@tromey.com>
3932 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3934 (ada_evaluate_subexp): Use it.
3936 2021-03-08 Tom Tromey <tom@tromey.com>
3938 * ada-lang.c (ada_binop_minmax): No longer static.
3939 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3942 2021-03-08 Tom Tromey <tom@tromey.com>
3944 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3946 * ada-exp.h (class ada_var_msym_value_operation): New.
3948 2021-03-08 Tom Tromey <tom@tromey.com>
3950 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3951 (ada_var_value_operation::evaluate): New methods.
3952 * ada-exp.h (class ada_var_value_operation): New.
3954 2021-03-08 Tom Tromey <tom@tromey.com>
3956 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3957 * ada-exp.h (class ada_unop_atr_operation): New.
3959 2021-03-08 Tom Tromey <tom@tromey.com>
3961 * ada-lang.c (ada_binop_in_bounds): No longer static.
3962 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3964 2021-03-08 Tom Tromey <tom@tromey.com>
3966 * ada-lang.c (ada_ternop_slice): No longer static.
3967 * ada-exp.h (class ada_ternop_slice_operation): New.
3969 2021-03-08 Tom Tromey <tom@tromey.com>
3971 * ada-exp.h (ada_bitwise_operation): New template class.
3972 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3973 (ada_bitwise_xor_operation): New typedefs.
3975 2021-03-08 Tom Tromey <tom@tromey.com>
3977 * ada-lang.c (ada_equal_binop): No longer static.
3978 * ada-exp.h (class ada_binop_equal_operation): New.
3980 2021-03-08 Tom Tromey <tom@tromey.com>
3982 * ada-lang.c (ada_mult_binop): No longer static.
3983 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3984 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3986 2021-03-08 Tom Tromey <tom@tromey.com>
3988 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3989 * ada-exp.h (class ada_binop_addsub_operation): New.
3991 2021-03-08 Tom Tromey <tom@tromey.com>
3993 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3994 (ada_resolve_variable): Declare.
3995 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3996 (ada_resolve_variable): New functions.
3997 (resolve_subexp): Update.
3999 2021-03-08 Tom Tromey <tom@tromey.com>
4001 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
4003 * c-exp.h (class opencl_ternop_cond_operation): New.
4005 2021-03-08 Tom Tromey <tom@tromey.com>
4007 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
4009 * c-exp.h (class opencl_logical_binop_operation): New.
4011 2021-03-08 Tom Tromey <tom@tromey.com>
4013 * opencl-lang.c (opencl_structop_operation::evaluate): New
4015 * c-exp.h (class opencl_structop_operation): New.
4017 2021-03-08 Tom Tromey <tom@tromey.com>
4019 * opencl-lang.c (opencl_logical_not): No longer static. Change
4021 (evaluate_subexp_opencl): Update.
4022 * c-exp.h (opencl_notequal_operation): New typedef.
4024 2021-03-08 Tom Tromey <tom@tromey.com>
4026 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
4027 static. Change parameters.
4028 (eval_opencl_assign): No longer static. Add "op" parameter.
4029 (evaluate_subexp_opencl): Update.
4030 * c-exp.h (opencl_binop_operation): New template class.
4031 (opencl_assign_operation, opencl_equal_operation)
4032 (opencl_notequal_operation, opencl_less_operation)
4033 (opencl_gtr_operation, opencl_geq_operation)
4034 (opencl_leq_operation): New typedefs.
4036 2021-03-08 Tom Tromey <tom@tromey.com>
4038 * opencl-lang.c (opencl_value_cast): No longer static.
4039 * c-exp.h (opencl_cast_type_operation): New typedef.
4041 2021-03-08 Tom Tromey <tom@tromey.com>
4043 * f-exp.h (eval_op_f_allocated): Declare.
4044 (fortran_allocated_operation): New typedef.
4045 * f-lang.c (eval_op_f_allocated): No longer static.
4047 2021-03-08 Tom Tromey <tom@tromey.com>
4049 * f-lang.c (eval_op_f_associated): New functions.
4050 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4053 2021-03-08 Tom Tromey <tom@tromey.com>
4055 * f-lang.c (fortran_bound_1arg::evaluate)
4056 (fortran_bound_2arg::evaluate): New methods.
4057 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4060 2021-03-08 Tom Tromey <tom@tromey.com>
4062 * expop.h (class unop_addr_operation) <get_expression>: New
4064 * f-lang.c (fortran_undetermined::value_subarray)
4065 (fortran_undetermined::evaluate): New methods.
4066 (fortran_prepare_argument): New overload.
4067 * f-exp.h (class fortran_range_operation)
4068 (class fortran_undetermined): New classes.
4070 2021-03-08 Tom Tromey <tom@tromey.com>
4072 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4073 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4076 2021-03-08 Tom Tromey <tom@tromey.com>
4078 * expression.h (class operation) <evaluate_funcall>: New methods.
4079 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4080 (class var_value_operation) <evaluate_funcall>: New method.
4081 (class structop_base_operation) <evaluate_funcall>: New method.
4082 (class var_msym_value_operation) <evaluate_funcall>: New method.
4083 (class structop_member_base): New class.
4084 (class structop_member_operation): Derive from
4085 structop_member_base.
4086 (class structop_mptr_operation): Derive from
4087 structop_member_base.
4088 (class funcall_operation): New class.
4089 * eval.c (operation::evaluate_funcall)
4090 (var_value_operation::evaluate_funcall)
4091 (scope_operation::evaluate_funcall)
4092 (structop_member_base::evaluate_funcall)
4093 (structop_base_operation::evaluate_funcall): New methods.
4095 2021-03-08 Tom Tromey <tom@tromey.com>
4097 * expop.h (class array_operation): New.
4098 * eval.c (array_operation::evaluate_struct_tuple)
4099 (array_operation::evaluate): New methods.
4101 2021-03-08 Tom Tromey <tom@tromey.com>
4103 * expop.h (class adl_func_operation): New.
4104 * eval.c (adl_func_operation::evaluate): New method.
4106 2021-03-08 Tom Tromey <tom@tromey.com>
4108 * ada-lang.c (ada_unop_in_range): No longer static.
4109 * ada-exp.h (class ada_unop_range_operation): New.
4111 2021-03-08 Tom Tromey <tom@tromey.com>
4113 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4115 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4116 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4118 2021-03-08 Tom Tromey <tom@tromey.com>
4120 * expop.h (class logical_and_operation)
4121 (class logical_or_operation): New.
4122 * eval.c (logical_and_operation::evaluate)
4123 (logical_or_operation::evaluate): New methods.
4124 * ax-gdb.c (logical_and_operation::do_generate_ax)
4125 (logical_or_operation::do_generate_ax): New methods.
4127 2021-03-08 Tom Tromey <tom@tromey.com>
4129 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4131 * m2-exp.h: New file.
4133 2021-03-08 Tom Tromey <tom@tromey.com>
4135 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4136 * rust-exp.h (class rust_aggregate_operation): New.
4138 2021-03-08 Tom Tromey <tom@tromey.com>
4140 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4142 * rust-exp.h (class rust_struct_anon): New.
4143 (class rust_structop): New.
4145 2021-03-08 Tom Tromey <tom@tromey.com>
4147 * rust-lang.c (rust_range): No longer static.
4148 * rust-exp.h (class rust_range_operation): New.
4150 2021-03-08 Tom Tromey <tom@tromey.com>
4152 * rust-lang.c (rust_subscript): No longer static.
4153 * rust-exp.h (class rust_subscript_operation): New.
4155 2021-03-08 Tom Tromey <tom@tromey.com>
4157 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4159 (rust_evaluate_subexp): Update.
4160 * rust-exp.h (class rust_unop_ind_operation): New.
4162 2021-03-08 Tom Tromey <tom@tromey.com>
4164 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4165 longer static. Add "opcode" parameter.
4166 (rust_evaluate_subexp): Update.
4167 * rust-exp.h: New file.
4169 2021-03-08 Tom Tromey <tom@tromey.com>
4171 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4172 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4173 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4174 (evaluate_subexp_f): Update.
4175 * f-exp.h: New file.
4177 2021-03-08 Tom Tromey <tom@tromey.com>
4179 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4180 * ada-exp.h (class ada_ternop_range_operation): New.
4182 2021-03-08 Tom Tromey <tom@tromey.com>
4184 * ada-lang.c (ada_qual_operation::evaluate): New method.
4185 * ada-exp.h (class ada_qual_operation): New.
4187 2021-03-08 Tom Tromey <tom@tromey.com>
4189 * ada-lang.c (ada_string_operation::evaluate): New method.
4190 * ada-exp.h (class ada_string_operation): New.
4192 2021-03-08 Tom Tromey <tom@tromey.com>
4194 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4195 * ada-exp.h: New file.
4197 2021-03-08 Tom Tromey <tom@tromey.com>
4199 * expop.h (class multi_subscript_operation): New.
4200 * eval.c (multi_subscript_operation::evaluate): New method.
4202 2021-03-08 Tom Tromey <tom@tromey.com>
4204 * eval.c (objc_msgcall_operation::evaluate): New method.
4205 * c-exp.h (class objc_msgcall_operation): New.
4207 2021-03-08 Tom Tromey <tom@tromey.com>
4209 * expop.h (class var_value_operation): New.
4210 * eval.c (var_value_operation::evaluate)
4211 (var_value_operation::evaluate_for_address)
4212 (var_value_operation::evaluate_with_coercion)
4213 (var_value_operation::evaluate_for_sizeof)
4214 (var_value_operation::evaluate_for_cast): New methods.
4215 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4217 2021-03-08 Tom Tromey <tom@tromey.com>
4219 * expop.h (cxx_cast_ftype): New typedef.
4220 (cxx_cast_operation): New template.
4221 (dynamic_cast_operation, reinterpret_cast_operation): New
4224 2021-03-08 Tom Tromey <tom@tromey.com>
4226 * expop.h (class unop_cast_type_operation): New.
4227 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4230 2021-03-08 Tom Tromey <tom@tromey.com>
4232 * expop.h (class unop_cast_operation): New.
4233 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4235 2021-03-08 Tom Tromey <tom@tromey.com>
4237 * expop.h (class assign_modify_operation): New.
4238 * eval.c (eval_binop_assign_modify): No longer static.
4239 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4241 2021-03-08 Tom Tromey <tom@tromey.com>
4243 * expop.h (class assign_operation): New.
4244 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4246 2021-03-08 Tom Tromey <tom@tromey.com>
4248 * expop.h (class type_instance_operation): New.
4249 * eval.c (type_instance_operation::evaluate): New method.
4251 2021-03-08 Tom Tromey <tom@tromey.com>
4253 * expop.h (class op_this_operation): New.
4254 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4256 2021-03-08 Tom Tromey <tom@tromey.com>
4258 * expop.h (class unop_memval_operation)
4259 (class unop_memval_type_operation): New.
4260 * eval.c (eval_op_memval): No longer static.
4261 (unop_memval_operation::evaluate_for_address)
4262 (unop_memval_type_operation::evaluate_for_address)
4263 (unop_memval_operation::evaluate_for_sizeof)
4264 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4265 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4266 (unop_memval_type_operation::do_generate_ax): New methods.
4268 2021-03-08 Tom Tromey <tom@tromey.com>
4270 * expop.h (class unop_alignof_operation): New.
4271 * eval.c (eval_op_alignof): No longer static.
4273 2021-03-08 Tom Tromey <tom@tromey.com>
4275 * expop.h (class unop_sizeof_operation): New.
4276 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4278 2021-03-08 Tom Tromey <tom@tromey.com>
4280 * expop.h (class unop_addr_operation): New.
4281 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4283 2021-03-08 Tom Tromey <tom@tromey.com>
4285 * expop.h (class typeid_operation): New.
4287 2021-03-08 Tom Tromey <tom@tromey.com>
4289 * expop.h (class decltype_operation): New.
4291 2021-03-08 Tom Tromey <tom@tromey.com>
4293 * expop.h (class typeof_operation): New.
4295 2021-03-08 Tom Tromey <tom@tromey.com>
4297 * expop.h (class type_operation): New.
4298 * eval.c (eval_op_type): No longer static.
4300 2021-03-08 Tom Tromey <tom@tromey.com>
4302 * expop.h (class unop_ind_base_operation)
4303 (class unop_ind_operation): New.
4304 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4305 (unop_ind_base_operation::evaluate_for_address)
4306 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4307 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4309 2021-03-08 Tom Tromey <tom@tromey.com>
4311 * expop.h (unop_incr_operation): New template.
4312 (preinc_operation, predec_operation, postinc_operation)
4313 (postdec_operation): New typedefs.
4314 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4315 (eval_op_postdec): No longer static.
4317 2021-03-08 Tom Tromey <tom@tromey.com>
4319 * expop.h (unary_ftype): New typedef.
4320 (unop_operation, usual_ax_binop_operation): New templates.
4321 (unary_plus_operation, unary_neg_operation)
4322 (unary_complement_operation, unary_logical_not_operation): New
4324 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4325 (eval_op_lognot): No longer static.
4326 * ax-gdb.c (gen_expr_unop): New function.
4328 2021-03-08 Tom Tromey <tom@tromey.com>
4330 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4332 2021-03-08 Tom Tromey <tom@tromey.com>
4334 * expop.h (class repeat_operation): New.
4335 * eval.c (eval_op_repeat): No longer static. Remove "op"
4337 (evaluate_subexp_standard): Update.
4338 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4340 2021-03-08 Tom Tromey <tom@tromey.com>
4342 * expop.h (class comparison_operation): New.
4343 (equal_operation, notequal_operation, less_operation)
4344 (gtr_operation, geq_operation, leq_operation): New typedefs.
4345 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4346 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4348 2021-03-08 Tom Tromey <tom@tromey.com>
4350 * expop.h (class subscript_operation): New.
4351 * eval.c (eval_op_subscript): No longer static.
4353 2021-03-08 Tom Tromey <tom@tromey.com>
4355 * expop.h (class binop_operation, class usual_ax_binop_operation):
4357 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4358 (div_operation, rem_operation, lsh_operation, rsh_operation)
4359 (bitwise_and_operation, bitwise_ior_operation)
4360 (bitwise_xor_operation): New typedefs.
4361 * eval.c (eval_op_binary): No longer static.
4363 2021-03-08 Tom Tromey <tom@tromey.com>
4365 * expop.h (class sub_operation): New.
4366 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4367 (evaluate_subexp_standard): Update.
4369 2021-03-08 Tom Tromey <tom@tromey.com>
4371 * expop.h (class add_operation): New.
4372 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4373 (evaluate_subexp_standard): Update.
4375 2021-03-08 Tom Tromey <tom@tromey.com>
4377 * expop.h (class concat_operation): New.
4378 * eval.c (eval_op_concat): No longer static. Remove "op"
4380 (evaluate_subexp_standard): Update.
4382 2021-03-08 Tom Tromey <tom@tromey.com>
4384 * expop.h (class structop_member_operation)
4385 (class structop_mptr_operation): New.
4386 * eval.c (eval_op_member): No longer static.
4388 2021-03-08 Tom Tromey <tom@tromey.com>
4390 * expop.h (class structop_ptr_operation): New.
4391 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4394 2021-03-08 Tom Tromey <tom@tromey.com>
4396 * expop.h (class structop_base_operation)
4397 (class structop_operation): New.
4398 * eval.c (eval_op_structop_struct): No longer static.
4400 2021-03-08 Tom Tromey <tom@tromey.com>
4402 * expop.h (class complex_operation): New.
4404 2021-03-08 Tom Tromey <tom@tromey.com>
4406 * eval.c (eval_op_objc_selector): No longer static.
4407 * c-exp.h (class objc_selector_operation): New.
4409 2021-03-08 Tom Tromey <tom@tromey.com>
4411 * eval.c: Include c-exp.h.
4412 * c-exp.h (class objc_nsstring_operation): New.
4414 2021-03-08 Tom Tromey <tom@tromey.com>
4416 * c-lang.c (c_string_operation::evaluate): New method.
4417 * c-exp.h: New file.
4419 2021-03-08 Tom Tromey <tom@tromey.com>
4421 * expop.h (class ternop_cond_operation): New.
4422 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4424 2021-03-08 Tom Tromey <tom@tromey.com>
4426 * expop.h (class ternop_slice_operation): New.
4427 * eval.c (eval_op_ternop): No longer static.
4429 2021-03-08 Tom Tromey <tom@tromey.com>
4431 * expop.h (class string_operation): New.
4432 * eval.c (eval_op_string): No longer static.
4434 2021-03-08 Tom Tromey <tom@tromey.com>
4436 * expop.h (class internalvar_operation): New.
4437 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4439 2021-03-08 Tom Tromey <tom@tromey.com>
4441 * expop.h (class bool_operation): New.
4443 2021-03-08 Tom Tromey <tom@tromey.com>
4445 * expop.h (class register_operation): New.
4446 * eval.c (eval_op_register): No longer static.
4447 * ax-gdb.c (register_operation::do_generate_ax): New method.
4449 2021-03-08 Tom Tromey <tom@tromey.com>
4451 * expop.h (class last_operation): New.
4453 2021-03-08 Tom Tromey <tom@tromey.com>
4455 * expop.h (class func_static_var_operation): New.
4456 * eval.c (eval_op_func_static_var): No longer static.
4458 2021-03-08 Tom Tromey <tom@tromey.com>
4460 * expop.h (class var_entry_value_operation): New.
4461 * eval.c (eval_op_var_entry_value): No longer static.
4463 2021-03-08 Tom Tromey <tom@tromey.com>
4465 * expression.h (class operation) <set_outermost>: New method.
4466 * expop.h (class var_msym_value_operation): New.
4467 * eval.c (eval_op_var_msym_value): No longer static.
4468 (var_msym_value_operation::evaluate_for_address)
4469 (var_msym_value_operation::evaluate_for_sizeof)
4470 (var_msym_value_operation::evaluate_for_cast): New methods.
4471 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4474 2021-03-08 Tom Tromey <tom@tromey.com>
4476 * expop.h (class long_const_operation): New.
4477 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4479 2021-03-08 Tom Tromey <tom@tromey.com>
4481 * expop.h (class scope_operation): New.
4482 * eval.c (eval_op_scope): No longer static.
4483 (scope_operation::evaluate_for_address): New method.
4484 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4486 2021-03-08 Tom Tromey <tom@tromey.com>
4488 * expprint.c (float_const_operation::dump): New method.
4489 * expop.h (float_data): New typedef.
4490 (class float_const_operation): New.
4492 2021-03-08 Tom Tromey <tom@tromey.com>
4494 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4495 * ax-gdb.c (gen_expr_binop): New function.
4496 (gen_expr_structop): Likewise.
4498 2021-03-08 Tom Tromey <tom@tromey.com>
4500 * expprint.c (expr::dump_for_expression): New functions.
4501 * expop.h (dump_for_expression): New overloads.
4502 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4505 2021-03-08 Tom Tromey <tom@tromey.com>
4507 * expression.h (expr::operation): New class.
4508 (expr::make_operation): New function.
4509 (expr::operation_up): New typedef.
4510 * expop.h: New file.
4511 * eval.c (operation::evaluate_for_cast)
4512 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4514 * ax-gdb.c (operation::generate_ax): New method.
4516 2021-03-08 Tom Tromey <tom@tromey.com>
4518 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4519 (gen_expr_binop_rest): New overload.
4521 2021-03-08 Tom Tromey <tom@tromey.com>
4523 * eval.c (eval_multi_subscript): New function.
4524 (evaluate_subexp_standard): Use it.
4526 2021-03-08 Tom Tromey <tom@tromey.com>
4528 * ada-lang.c (ada_binop_exp): New function.
4529 (ada_evaluate_subexp): Use it.
4531 2021-03-08 Tom Tromey <tom@tromey.com>
4533 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4535 (ada_evaluate_subexp): Use it.
4537 2021-03-08 Tom Tromey <tom@tromey.com>
4539 * ada-lang.c (ada_binop_minmax): New function.
4540 (ada_evaluate_subexp): Use it.
4542 2021-03-08 Tom Tromey <tom@tromey.com>
4544 * ada-lang.c (ada_unop_atr): New function.
4545 (ada_evaluate_subexp): Use it.
4547 2021-03-08 Tom Tromey <tom@tromey.com>
4549 * ada-lang.c (ada_binop_in_bounds): New function.
4550 (ada_evaluate_subexp): Use it.
4552 2021-03-08 Tom Tromey <tom@tromey.com>
4554 * ada-lang.c (ada_ternop_slice): New function.
4555 (ada_evaluate_subexp): Use it.
4557 2021-03-08 Tom Tromey <tom@tromey.com>
4559 * ada-lang.c (ada_equal_binop): New function.
4560 (ada_evaluate_subexp): Use it.
4562 2021-03-08 Tom Tromey <tom@tromey.com>
4564 * ada-lang.c (ada_mult_binop): New function.
4565 (ada_evaluate_subexp): Use it.
4567 2021-03-08 Tom Tromey <tom@tromey.com>
4569 * ada-lang.c (ada_abs): New function.
4570 (ada_evaluate_subexp): Use it.
4572 2021-03-08 Tom Tromey <tom@tromey.com>
4574 * ada-lang.c (ada_atr_size): New function.
4575 (ada_evaluate_subexp): Use it.
4577 2021-03-08 Tom Tromey <tom@tromey.com>
4579 * ada-lang.c (ada_atr_tag): New function.
4580 (ada_evaluate_subexp): Use it.
4582 2021-03-08 Tom Tromey <tom@tromey.com>
4584 * ada-lang.c (ada_unop_in_range): New function.
4585 (ada_evaluate_subexp): Use it.
4587 2021-03-08 Tom Tromey <tom@tromey.com>
4589 * ada-lang.c (ada_unop_neg): New function.
4590 (ada_evaluate_subexp): Use it.
4592 2021-03-08 Tom Tromey <tom@tromey.com>
4594 * ada-lang.c (eval_ternop_in_range): New function.
4595 (ada_evaluate_subexp): Use it.
4597 2021-03-08 Tom Tromey <tom@tromey.com>
4599 * opencl-lang.c (eval_opencl_assign): New function.
4600 (evaluate_subexp_opencl): Use it.
4602 2021-03-08 Tom Tromey <tom@tromey.com>
4604 * eval.c (eval_op_objc_msgcall): New function.
4605 (evaluate_subexp_standard): Use it.
4607 2021-03-08 Tom Tromey <tom@tromey.com>
4609 * eval.c (eval_binop_assign_modify): New function.
4610 (evaluate_subexp_standard): Use it.
4612 2021-03-08 Tom Tromey <tom@tromey.com>
4614 * m2-lang.c (eval_op_m2_subscript): New function.
4615 (evaluate_subexp_modula2): Use it.
4617 2021-03-08 Tom Tromey <tom@tromey.com>
4619 * m2-lang.c (eval_op_m2_high): New function.
4620 (evaluate_subexp_modula2): Use it.
4622 2021-03-08 Tom Tromey <tom@tromey.com>
4624 * eval.c (evaluate_subexp_for_address_base): New function.
4625 (evaluate_subexp_for_address): Use it.
4626 (evaluate_subexp_for_sizeof_base): New function.
4627 (evaluate_subexp_for_sizeof): Use it.
4629 2021-03-08 Tom Tromey <tom@tromey.com>
4631 * rust-lang.c (eval_op_rust_structop): New function.
4632 (rust_evaluate_subexp): Use it.
4634 2021-03-08 Tom Tromey <tom@tromey.com>
4636 * rust-lang.c (eval_op_rust_struct_anon): New function.
4637 (rust_evaluate_subexp): Use it.
4639 2021-03-08 Tom Tromey <tom@tromey.com>
4641 * rust-lang.c (eval_op_rust_array): New function.
4642 (rust_evaluate_subexp): Use it.
4644 2021-03-08 Tom Tromey <tom@tromey.com>
4646 * rust-lang.c (eval_op_rust_complement): New function.
4647 (rust_evaluate_subexp): Use it.
4649 2021-03-08 Tom Tromey <tom@tromey.com>
4651 * rust-lang.c (eval_op_rust_ind): New function.
4652 (rust_evaluate_subexp): Use it.
4654 2021-03-08 Tom Tromey <tom@tromey.com>
4656 * rust-lang.c (rust_subscript): Change parameters.
4657 (rust_evaluate_subexp): Update.
4659 2021-03-08 Tom Tromey <tom@tromey.com>
4661 * rust-lang.c (rust_range): Change parameters.
4662 (rust_evaluate_subexp): Update.
4664 2021-03-08 Tom Tromey <tom@tromey.com>
4666 * f-lang.c (eval_op_f_allocated): New function.
4667 (evaluate_subexp_f): Use it.
4669 2021-03-08 Tom Tromey <tom@tromey.com>
4671 * f-lang.c (fortran_require_array): New function.
4672 (evaluate_subexp_f): Use it.
4674 2021-03-08 Tom Tromey <tom@tromey.com>
4676 * f-lang.c (eval_op_f_kind): New function.
4677 (evaluate_subexp_f): Use it.
4679 2021-03-08 Tom Tromey <tom@tromey.com>
4681 * f-lang.c (eval_op_f_cmplx): New function.
4682 (evaluate_subexp_f): Use it.
4684 2021-03-08 Tom Tromey <tom@tromey.com>
4686 * f-lang.c (eval_op_f_modulo): New function.
4687 (evaluate_subexp_f): Use it.
4689 2021-03-08 Tom Tromey <tom@tromey.com>
4691 * f-lang.c (eval_op_f_floor): New function.
4692 (evaluate_subexp_f): Use it.
4694 2021-03-08 Tom Tromey <tom@tromey.com>
4696 * f-lang.c (eval_op_f_ceil): New function.
4697 (evaluate_subexp_f): Use it.
4699 2021-03-08 Tom Tromey <tom@tromey.com>
4701 * f-lang.c (eval_op_f_mod): New function.
4702 (evaluate_subexp_f): Use it.
4704 2021-03-08 Tom Tromey <tom@tromey.com>
4706 * f-lang.c (eval_op_f_abs): New function.
4707 (evaluate_subexp_f): Use it.
4709 2021-03-08 Tom Tromey <tom@tromey.com>
4711 * eval.c (eval_op_type): New function.
4712 (evaluate_subexp_standard): Use it.
4714 2021-03-08 Tom Tromey <tom@tromey.com>
4716 * eval.c (eval_op_postdec): New function.
4717 (evaluate_subexp_standard): Use it.
4719 2021-03-08 Tom Tromey <tom@tromey.com>
4721 * eval.c (eval_op_postinc): New function.
4722 (evaluate_subexp_standard): Use it.
4724 2021-03-08 Tom Tromey <tom@tromey.com>
4726 * eval.c (eval_op_predec): New file.
4727 (evaluate_subexp_standard): Use it.
4729 2021-03-08 Tom Tromey <tom@tromey.com>
4731 * eval.c (eval_op_preinc): New function.
4732 (evaluate_subexp_standard): Use it.
4734 2021-03-08 Tom Tromey <tom@tromey.com>
4736 * eval.c (eval_op_memval): New function.
4737 (evaluate_subexp_standard): Use it.
4739 2021-03-08 Tom Tromey <tom@tromey.com>
4741 * eval.c (eval_op_alignof): New function.
4742 (evaluate_subexp_standard): Use it.
4744 2021-03-08 Tom Tromey <tom@tromey.com>
4746 * eval.c (eval_op_ind): New function.
4747 (evaluate_subexp_standard): Use it.
4749 2021-03-08 Tom Tromey <tom@tromey.com>
4751 * eval.c (eval_op_lognot): New function.
4752 (evaluate_subexp_standard): Use it.
4754 2021-03-08 Tom Tromey <tom@tromey.com>
4756 * eval.c (eval_op_complement): New function.
4757 (evaluate_subexp_standard): Use it.
4759 2021-03-08 Tom Tromey <tom@tromey.com>
4761 * eval.c (eval_op_neg): New function.
4762 (evaluate_subexp_standard): Use it.
4764 2021-03-08 Tom Tromey <tom@tromey.com>
4766 * eval.c (eval_op_plus): New function.
4767 (evaluate_subexp_standard): Use it.
4769 2021-03-08 Tom Tromey <tom@tromey.com>
4771 * eval.c (eval_op_repeat): New function.
4772 (evaluate_subexp_standard): Use it.
4774 2021-03-08 Tom Tromey <tom@tromey.com>
4776 * eval.c (eval_op_leq): New function.
4777 (evaluate_subexp_standard): Use it.
4779 2021-03-08 Tom Tromey <tom@tromey.com>
4781 * eval.c (eval_op_geq): New function.
4782 (evaluate_subexp_standard): Use it.
4784 2021-03-08 Tom Tromey <tom@tromey.com>
4786 * eval.c (eval_op_gtr): New function.
4787 (evaluate_subexp_standard): Use it.
4789 2021-03-08 Tom Tromey <tom@tromey.com>
4791 * eval.c (eval_op_less): New function.
4792 (evaluate_subexp_standard): Use it.
4794 2021-03-08 Tom Tromey <tom@tromey.com>
4796 * eval.c (eval_op_notequal): New function.
4797 (evaluate_subexp_standard): Use it.
4799 2021-03-08 Tom Tromey <tom@tromey.com>
4801 * eval.c (eval_op_equal): New function.
4802 (evaluate_subexp_standard): Use it.
4804 2021-03-08 Tom Tromey <tom@tromey.com>
4806 * eval.c (eval_op_subscript): New function.
4807 (evaluate_subexp_standard): Use it.
4809 2021-03-08 Tom Tromey <tom@tromey.com>
4811 * eval.c (eval_op_binary): New function.
4812 (evaluate_subexp_standard): Use it.
4814 2021-03-08 Tom Tromey <tom@tromey.com>
4816 * eval.c (eval_op_sub): New function.
4817 (evaluate_subexp_standard): Use it.
4819 2021-03-08 Tom Tromey <tom@tromey.com>
4821 * eval.c (eval_op_add): New function.
4822 (evaluate_subexp_standard): Use it.
4824 2021-03-08 Tom Tromey <tom@tromey.com>
4826 * eval.c (eval_op_member): New function.
4827 (evaluate_subexp_standard): Use it.
4829 2021-03-08 Tom Tromey <tom@tromey.com>
4831 * eval.c (eval_op_structop_ptr): New function.
4832 (evaluate_subexp_standard): Use it.
4834 2021-03-08 Tom Tromey <tom@tromey.com>
4836 * eval.c (eval_op_structop_struct): New function.
4837 (evaluate_subexp_standard): Use it.
4839 2021-03-08 Tom Tromey <tom@tromey.com>
4841 * eval.c (eval_op_ternop): New function.
4842 (evaluate_subexp_standard): Use it.
4844 2021-03-08 Tom Tromey <tom@tromey.com>
4846 * eval.c (eval_op_concat): New function.
4847 (evaluate_subexp_standard): Use it.
4849 2021-03-08 Tom Tromey <tom@tromey.com>
4851 * eval.c (eval_op_objc_selector): New function.
4852 (evaluate_subexp_standard): Use it.
4854 2021-03-08 Tom Tromey <tom@tromey.com>
4856 * eval.c (eval_op_string): New function.
4857 (evaluate_subexp_standard): Use it.
4859 2021-03-08 Tom Tromey <tom@tromey.com>
4861 * eval.c (eval_op_register): New function.
4862 (evaluate_subexp_standard): Use it.
4864 2021-03-08 Tom Tromey <tom@tromey.com>
4866 * eval.c (eval_op_func_static_var): New function.
4867 (evaluate_subexp_standard): Use it.
4869 2021-03-08 Tom Tromey <tom@tromey.com>
4871 * eval.c (eval_op_var_msym_value): New function.
4872 (evaluate_subexp_standard): Use it.
4874 2021-03-08 Tom Tromey <tom@tromey.com>
4876 * eval.c (eval_op_var_entry_value): New function.
4877 (evaluate_subexp_standard): Use it.
4879 2021-03-08 Tom Tromey <tom@tromey.com>
4881 * eval.c (eval_op_scope): New function.
4882 (evaluate_subexp_standard): Use it.
4884 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4887 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4889 2021-03-06 Tom Tromey <tom@tromey.com>
4891 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4892 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4893 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4894 (locate_dwz_sections, dwz_search_other_debugdirs)
4895 (dwarf2_get_dwz_file): Move to dwz.c.
4896 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4898 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4899 (dwarf2_get_dwz_file): Move from read.c.
4901 2021-03-06 Tom Tromey <tom@tromey.com>
4903 * debuginfod-support.h: Include scoped_fd.h.
4905 2021-03-06 Tom Tromey <tom@tromey.com>
4907 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4908 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4909 (get_abbrev_section_for_cu, read_attribute_value)
4910 (get_debug_line_section): Update.
4911 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4913 2021-03-06 Tom Tromey <tom@tromey.com>
4915 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4917 * dwarf2/read.c (section_is_p): Remove.
4918 (dwarf2_per_bfd::locate_sections)
4919 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4920 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4921 (dwarf2_locate_common_dwp_sections)
4922 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4925 2021-03-06 Tom Tromey <tom@tromey.com>
4927 * xcoffread.c: Include sect-names.h.
4928 * symfile.h (struct dwarf2_section_names, struct
4929 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4930 * dwarf2/sect-names.h: New file, from symfile.h.
4931 * dwarf2/read.c: Include sect-names.h.
4933 2021-03-06 Tom Tromey <tom@tromey.com>
4935 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4936 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4937 (abbrev_table::read): Update.
4938 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4939 (struct abbrev_info): Reformat.
4940 <attrs>: Now an array.
4941 (struct abbrev_table) <alloc_abbrev>: Remove.
4943 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4945 * ctfread.c (ctf_psymtab_add_enums): New function.
4946 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4948 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4950 * ctfread.c (read_func_kind_type): Set up function arguments.
4952 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4953 Andrew Burgess <andrew.burgess@embecosm.com>
4955 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4957 (riscv_csrset): New static global.
4958 (riscv_update_csrmap): New function.
4959 (riscv_iterate_over_regset_sections): Process CSRs.
4961 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4963 * riscv-tdep.c (riscv_feature_name_csr): Define.
4964 (riscv_feature_name_cpu): Define.
4965 (riscv_feature_name_fpu): Define.
4966 (riscv_feature_name_virtual): Define.
4967 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4968 (riscv_freg_feature): Use riscv_feature_name_fpu.
4969 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4970 (riscv_csr_feature): Use riscv_feature_name_csr.
4971 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4973 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4974 Craig Blackmore <craig.blackmore@embecosm.com>
4976 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4977 (ALLDEPFILES): Add riscv-none-tdep.c.
4978 * configure: Regenerate.
4979 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4981 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4982 * elf-none-tdep.c: New file.
4983 * elf-none-tdep.h: New file.
4984 * riscv-none-tdep.c: New file.
4986 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4987 Andrew Burgess <andrew.burgess@embecosm.com>
4989 * corelow.c: Add 'xml-tdesc.h' include.
4990 (core_target::read_description): Load the target description from
4991 the core file when possible.
4992 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4994 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4995 (gcore_elf_make_tdesc_note): New function.
4996 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4997 * linux-tdep.c (linux_make_corefile_notes): Add target description
5000 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
5002 * Makefile.in (SFILES): Add gcore-elf.c.
5003 (HFILES_NO_SRCDIR): Add gcore-elf.h
5004 * configure: Regenerate.
5005 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
5007 * fbsd-tdep.c: Add 'gcore-elf.h' include.
5008 (struct fbsd_collect_regset_section_cb_data): Delete.
5009 (fbsd_collect_regset_section_cb): Delete.
5010 (fbsd_collect_thread_registers): Delete.
5011 (struct fbsd_corefile_thread_data): Delete.
5012 (fbsd_corefile_thread): Delete.
5013 (fbsd_make_corefile_notes): Call
5014 gcore_elf_build_thread_register_notes instead of the now deleted
5016 * gcore-elf.c: New file, the content was moved here from
5017 linux-tdep.c, functions were renamed and given minor cleanup.
5018 * gcore-elf.h: New file.
5019 * gcore.c (gcore_find_signalled_thread): Moved here from
5020 linux-tdep.c and given a new name. Minor cleanups.
5021 * gcore.h (gcore_find_signalled_thread): Declare.
5022 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
5023 (struct linux_collect_regset_section_cb_data): Delete.
5024 (linux_collect_regset_section_cb): Delete.
5025 (linux_collect_thread_registers): Delete.
5026 (linux_corefile_thread): Call
5027 gcore_elf_build_thread_register_notes.
5028 (find_signalled_thread): Delete.
5029 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5031 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
5034 * sparc-nat.h (sparc_fetch_inferior_registers): Add
5035 process_stratum_target parameter,
5036 sparc_store_inferior_registers): update callers.
5037 * sparc-nat.c (sparc_fetch_inferior_registers,
5038 sparc_store_inferior_registers): Add process_stratum_target
5039 parameter. Switch current thread before calling
5040 sparc_supply_gregset / sparc_collect_rwindow.
5041 (sparc_store_inferior_registers): Likewise.
5042 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
5043 (sparc32obsd_collect_uthread): Likewise.
5044 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
5046 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
5047 sparc64obsd_supply_uthread): Add assertion.
5049 2021-03-04 Tom Tromey <tromey@adacore.com>
5051 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5052 (aux_add_nonlocal_symbols): Update.
5053 (ada_add_block_symbols): Change "found_sym" to bool.
5055 2021-03-03 Tom Tromey <tromey@adacore.com>
5057 * ada-lang.c (ada_resolve_function): Update comment.
5058 (is_nonfunction, add_symbols_from_enclosing_procs)
5059 (remove_extra_symbols): Likewise.
5060 (struct match_data): Add constructor, initializers.
5061 (add_nonlocal_symbols): Remove memset.
5062 (aux_add_nonlocal_symbols): Update comment.
5063 (ada_add_block_renamings, add_nonlocal_symbols)
5064 (ada_add_all_symbols): Likewise.
5065 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5067 2021-03-02 Tom Tromey <tromey@adacore.com>
5069 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5070 (cast_to_gnat_encoded_fixed_point_type): Remove.
5071 (ada_value_cast, ada_evaluate_subexp): Update.
5072 (gnat_encoded_fixed_point_type_info)
5073 (ada_is_gnat_encoded_fixed_point_type)
5074 (gnat_encoded_fixed_point_delta)
5075 (gnat_encoded_fixed_point_scaling_factor): Remove.
5076 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5077 (gnat_encoded_fixed_point_delta)
5078 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5079 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5080 (ada_print_type): Update.
5081 * ada-valprint.c (ada_value_print_num): Update.
5082 * dwarf2/read.c (ada_get_gnat_encoded_number)
5083 (ada_get_gnat_encoded_ratio): New functions.
5084 (finish_fixed_point_type): Use them. Add parameters.
5085 (GNAT_FIXED_POINT_SUFFIX): New define.
5086 (gnat_encoded_fixed_point_type_info): New function.
5087 (read_base_type): Handle gnat encodings.
5089 2021-03-02 Tom Tromey <tromey@adacore.com>
5091 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5092 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5094 (GROW_VECT): Remove.
5095 (grow_vect): Remove.
5097 2021-03-02 Tom Tromey <tromey@adacore.com>
5099 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5100 * ada-lang.c (resolve_subexp): Update.
5101 (ada_resolve_function): Accept a vector.
5102 (is_nonfunction, add_defn_to_vec)
5103 (add_symbols_from_enclosing_procs): Likewise.
5104 (num_defns_collected, defns_collected): Remove.
5105 (remove_extra_symbols): Return a vector.
5106 (remove_irrelevant_renamings): Return void.
5107 (ada_add_local_symbols): Accept a vector.
5108 (struct match_data) <obstackp>: Remove.
5109 <resultp>: New member.
5110 (aux_add_nonlocal_symbols): Update.
5111 (ada_add_block_renamings, add_nonlocal_symbols)
5112 (ada_add_all_symbols): Accept a vector.
5113 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5115 (ada_lookup_symbol): Update.
5116 (ada_add_block_symbols): Accept a vector.
5117 (get_var_value, iterate_over_symbols): Update.
5118 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5121 2021-03-02 Tom Tromey <tromey@adacore.com>
5123 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5125 2021-03-02 Tom Tromey <tromey@adacore.com>
5127 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5130 (ada_pspace_data): Remove destructor.
5131 <sym_cache>: Now a unique_ptr.
5132 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5133 (ada_get_symbol_cache): Use 'new'.
5134 (ada_clear_symbol_cache): Rewrite.
5136 2021-03-02 Tom Tromey <tromey@adacore.com>
5138 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5141 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5144 * source.c (add_path): Skip empty dirnames.
5146 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5148 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5149 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5151 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5154 * target.c (target_mourn_inferior): Only compare pids in
5155 target_mourn_inferior.
5157 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5160 * remote.c (remote_target::start_remote): Ensure the single
5161 thread, automatically added for remote targets without the
5162 concept of threading, is initially in set to the "resumed"
5164 * remote.c (remote_target::add_current_inferior_and_thread):
5165 Add return value - return the main thread.
5167 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5169 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5170 (mi_tsv_created): Likewise.
5171 (mi_tsv_deleted): Likewise.
5173 2021-02-25 Tom de Vries <tdevries@suse.de>
5176 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5177 section_kind for &dwo_file->sections.info.
5179 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5182 * f-lang.c (fortran_argument_convert): Delete declaration.
5183 (fortran_prepare_argument): New function.
5184 (evaluate_subexp_f): Move logic to new function
5185 fortran_prepare_argument.
5187 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5189 * f-exp.y (f77_keywords): Add 'associated'.
5190 * f-lang.c (fortran_associated): New function.
5191 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5192 (operator_length_f): Likewise.
5193 (print_unop_or_binop_subexp_f): New function.
5194 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5195 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5196 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5197 (operator_check_f): Likewise.
5198 * std-operator.def: Add FORTRAN_ASSOCIATED.
5200 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5202 * f-exp.y (fortran_operators): Add ".xor.".
5204 2021-02-24 Tom de Vries <tdevries@suse.de>
5207 * dwarf2/attribute.c (attribute::form_is_signed): New function
5209 * dwarf2/attribute.h (attribute::as_signed): ... here.
5210 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5211 (attribute::form_is_signed): Declare.
5212 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5213 for DW_AT_decl_file.
5215 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5217 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5218 order for <sys/ptrace.h> and <asm/ptrace.h>.
5220 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5222 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5225 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5227 * exec.c (set_section_command): Move variable declarations into
5228 the function body, and use std::string instead of a fixed size
5231 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5233 * exec.c (exec_target::get_section_table): Delete member function.
5234 (section_table_read_available_memory): Use current_top_target, not
5235 just the exec_ops target.
5236 * target-delegates.c: Regenerate.
5237 * target.c (default_get_section_table): New function.
5238 * target.h (target_ops::get_section_table): Change default
5239 behaviour to call default_get_section_table.
5240 (default_get_section_table): Declare.
5242 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5244 * exec.c (exec_target::close): Call new clear_target_sections
5246 (program_space::add_target_sections): Update name of member
5248 (program_space::add_target_sections): Update name of member
5250 (program_space::remove_target_sections): Likewise.
5251 (exec_one_fork): Use new target_sections member function.
5252 (exec_target::get_section_table): Likewise.
5253 (exec_target::files_info): Likewise.
5254 (set_section_command): Likewise.
5255 (exec_set_section_address): Likewise.
5256 (exec_target::has_memory): Use new target_sections member
5258 * progspace.h (program_space::clear_target_sections): New member
5260 (program_space::target_sections): Rename member variable to
5261 m_target_sections, replace with a new member function.
5262 (program_space::m_target_sections): New member variable.
5263 * solib-dsbt.c (scan_dyntag): Use new member function.
5264 * solib-svr4.c (scan_dyntag): Likewise.
5266 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5268 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5270 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5271 (section_table_read_available_memory): Make local const.
5272 (exec_target::xfer_partial): Make local const.
5273 (print_section_info): Make parameter const.
5274 * gdb/exec.h (print_section_info): Likewise.
5275 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5277 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5279 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5281 * gdb/s390-tdep.c (s390_load): Likewise.
5282 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5283 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5284 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5286 (target_debug_print_const_target_section_table_p): ...this.
5287 * gdb/target-delegates.c: Regenerate.
5288 * gdb/target.c (target_get_section_table): Make return type const.
5289 (target_section_by_addr): Likewise. Also make some locals const.
5290 (memory_xfer_partial_1): Make some locals const.
5291 * gdb/target.h (struct target_ops) <get_section_table>: Make
5293 (target_section_by_addr): Likewise.
5294 (target_get_section_table): Likewise.
5296 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5298 * NEWS: Mention new 'maint info target-sections' command.
5299 * maint.c (maintenance_info_target_sections): New function.
5300 (_initialize_maint_cmds): Register new command.
5302 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5304 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5305 (riscv_features_from_bfd): ...this. Change parameter type to
5306 'bfd*', and update as required.
5307 (riscv_find_default_target_description): Update call to
5308 riscv_features_from_bfd. Select a default xlen based on
5310 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5312 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5314 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5315 dynamic types in UNOP_IND.
5317 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5320 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5322 (~dwarf2_queue_guard): Clear queue.
5323 (queue_comp_unit): Assert that queue is
5325 (process_queue): Adjust.
5326 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5328 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5331 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5332 to decide whether or not to enqueue it for expansion.
5333 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5334 after calling maybe_queue_comp_unit.
5336 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5338 * linux-nat.c (linux_nat_filter_event): Return void.
5340 2021-02-22 Tom Tromey <tromey@adacore.com>
5342 * solib-svr4.c (enable_break): Update.
5343 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5345 (target_bfd_reopen): Change parameter type.
5346 * bfd-target.h (target_bfd_reopen): Change parameter type.
5348 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5350 * thread.c (add_thread_silent): Add assert.
5351 (find_thread_ptid): Add assert.
5353 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5356 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5357 (target_unpush_up): Likewise.
5358 * procfs.c (procfs_target::attach): Push target early. Use
5359 target_unpush_up to unpush target in case of error.
5360 * target.h (struct target_unpusher): Move here.
5361 (target_unpush_up): Likewise.
5363 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5365 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5366 (which in turn includes <gnulib/config.h>) before include
5369 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5372 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5373 (decode_j_type_insn): Likewise.
5374 (decode_cj_type_insn): Likewise.
5375 (decode_b_type_insn): Likewise.
5378 2021-02-18 Tom Tromey <tom@tromey.com>
5380 * expression.h (struct expression) <evaluate>: Declare method.
5381 * eval.c (evaluate_subexp): Simplify.
5382 (expression::evaluate): New method.
5383 (evaluate_expression, evaluate_type): Use expression::evaluate.
5385 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5387 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5389 (ada_lookup_name_info): Likewise.
5391 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5393 * aclocal.m4: Regenerate.
5395 2021-02-12 Tom de Vries <tdevries@suse.de>
5398 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5399 (lin_thread_signals): New static var.
5400 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5402 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5403 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5405 * linux-thread-db.c (check_thread_signals): Use
5406 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5408 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5410 * f-exp.y (f77_keywords): Add allocated.
5411 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5412 (operator_length_f): Likewise.
5413 (print_subexp_f): Likewise.
5414 (dump_subexp_body_f): Likewise.
5415 (operator_check_f): Likewise.
5416 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5418 2021-02-11 Tom de Vries <tdevries@suse.de>
5421 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5422 Return true for DW_FORM_strx.
5424 2021-02-11 Tom Tromey <tromey@adacore.com>
5427 * parse.c (write_exp_symbol_reference): Write sym.block.
5429 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5431 * NEWS: Mention changes to 'maint info sections'.
5432 * maint.c (match_substring): Return a bool, fix whitespace issue.
5433 (struct single_bfd_flag_info): New struct.
5434 (bfd_flag_info): New static global.
5435 (match_bfd_flags): Return a bool, use bfd_flag_info.
5436 (print_bfd_flags): Use bfd_flag_info.
5437 (maint_print_section_info): Delete trailing whitespace.
5438 (struct maint_info_sections_opts): New struct.
5439 (maint_info_sections_option_defs): New static global.
5440 (maint_info_sections_completer): New function.
5441 (maintenance_info_sections): Use option parsing mechanism.
5442 (_initialize_maint_cmds): Update command help text for 'maint info
5443 sections' and register a command completer.
5445 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5447 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5448 functionality merged into...
5449 (maint_print_all_sections): ...this new function.
5450 (maintenance_info_sections): Make use of maint_print_all_sections,
5451 allow all objects to be printed even where there's no executable.
5453 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5455 * breakpoint.c (resolve_sal_pc): Make use of
5456 bound_minimal_symbol::obj_section.
5457 * maint.c (maintenance_translate_address): Likewise.
5458 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5459 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5461 * printcmd.c (info_address_command): Make use of
5462 bound_minimal_symbol::obj_section.
5464 2021-02-11 Alan Modra <amodra@gmail.com>
5466 * arm-symbian-tdep.c: Delete.
5467 * NEWS: Mention arm-symbian removal.
5468 * Makefile.in: Remove arm-symbian-tdep entries.
5469 * configure.tgt: Remove arm*-*-symbianelf*.
5470 * doc/gdb.texinfo: Remove mention of SymbianOS.
5471 * osabi.c (gdb_osabi_names): Remove "Symbian".
5472 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5473 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5474 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5476 * testsuite/gdb.base/dup-sect.exp: Likewise.
5477 * testsuite/gdb.base/long_long.exp: Likewise.
5478 * testsuite/gdb.base/solib-weak.exp: Likewise.
5479 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5480 * testsuite/gdb.python/py-section-script.exp: Likewise.
5481 * testsuite/lib/dwarf.exp: Likewise.
5482 * testsuite/lib/gdb.exp: Likewise.
5484 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5486 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5487 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5488 (one_or_two_args): New pattern.
5489 (f77_keywords): Add lbound and ubound.
5490 * f-lang.c (fortran_bounds_all_dims): New function.
5491 (fortran_bounds_for_dimension): New function.
5492 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5493 (operator_length_f): Likewise.
5494 (print_subexp_f): Likewise.
5495 (dump_subexp_body_f): Likewise.
5496 (operator_check_f): Likewise.
5497 * std-operator.def (FORTRAN_LBOUND): Define.
5498 (FORTRAN_UBOUND): Define.
5500 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5502 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5503 and set_section_index member functions where appropriate.
5504 * coffread.c (coff_symtab_read): Likewise.
5505 (process_coff_symbol): Likewise.
5506 * ctfread.c (set_symbol_address): Likewise.
5507 * dwarf2/read.c (add_partial_symbol): Likewise.
5508 (var_decode_location): Likewise.
5509 * language.c: Likewise.
5510 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5511 (compact_minimal_symbols): Likewise.
5512 (minimal_symbol_upper_bound): Likewise.
5513 * objfiles.c (relocate_one_symbol): Likewise.
5514 * psympriv.h (partial_symbol::obj_section): Likewise.
5515 (partial_symbol::address): Likewise.
5516 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5517 * stabsread.c (scan_file_globals): Likewise.
5518 * symmisc.c (dump_msymbols): Likewise.
5519 * symtab.c (general_symbol_info::obj_section): Likewise.
5520 (fixup_section): Likewise.
5521 (get_msymbol_address): Likewise.
5522 * symtab.h (general_symbol_info::section): Rename to...
5523 (general_symbol_info::m_section): ...this.
5524 (general_symbol_info::set_section_index): New member function.
5525 (general_symbol_info::section_index): Likewise.
5526 (SYMBOL_SECTION): Delete.
5527 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5528 set_section_index member functions where appropriate.
5529 (MSYMBOL_SECTION): Delete.
5530 (symbol::symbol): Update to initialize 'm_section'.
5531 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5532 (process_xcoff_symbol): Likewise.
5534 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5536 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5537 MSYMBOL_OBJ_SECTION.
5538 * findvar.c (language_defn::read_var_value): Likewise.
5539 * infcmd.c (jump_command): Likewise.
5540 * linespec.c (minsym_found): Likewise.
5541 * maint.c (maintenance_translate_address): Likewise.
5542 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5543 (minimal_symbol_upper_bound): Likewise.
5544 * parse.c (find_minsym_type_and_address): Likewise.
5545 (operator_check_standard): Likewise.
5546 * printcmd.c (info_address_command): Likewise.
5547 * symmisc.c (dump_msymbols): Likewise.
5548 (print_symbol): Likewise.
5549 * symtab.c (general_symbol_info::obj_section): Define new
5551 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5552 (find_pc_sect_compunit_symtab): Likewise.
5553 (find_function_start_sal): Likewise.
5554 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5555 MSYMBOL_OBJ_SECTION.
5556 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5558 (SYMBOL_OBJ_SECTION): Delete.
5559 (MSYMBOL_OBJ_SECTION): Delete.
5561 2021-02-09 Tom Tromey <tom@tromey.com>
5563 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5565 2021-02-09 Tom de Vries <tdevries@suse.de>
5568 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5569 construct an array type. Add assert to ensure that element_type is
5572 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5574 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5575 (gcore_collect_regset_section_cb): Delete.
5576 (gcore_collect_thread_registers): Delete.
5577 (gcore_build_thread_register_notes): Delete.
5578 (gcore_find_signalled_thread): Delete.
5579 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5580 'gdbarch' and 'thread_info' declarations.
5581 (gcore_build_thread_register_notes): Delete declaration.
5582 (gcore_find_signalled_thread): Likewise.
5583 * fbsd-tdep.c: Remove 'gcore.h' include.
5584 (struct fbsd_collect_regset_section_cb_data): New struct.
5585 (fbsd_collect_regset_section_cb): New function.
5586 (fbsd_collect_thread_registers): New function.
5587 (struct fbsd_corefile_thread_data): New struct.
5588 (fbsd_corefile_thread): New function.
5589 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5590 * linux-tdep.c: Remove 'gcore.h' include.
5591 (struct linux_collect_regset_section_cb_data): New struct.
5592 (linux_collect_regset_section_cb): New function.
5593 (linux_collect_thread_registers): New function.
5594 (linux_corefile_thread): Call Linux specific code.
5595 (find_signalled_thread): New function.
5596 (linux_make_corefile_notes): Call find_signalled_thread.
5598 2021-02-09 Tom Tromey <tromey@adacore.com>
5600 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5602 * value.c (value_contents_copy_raw): Now static.
5603 * value.h (value_contents_copy_raw): Don't declare.
5605 2021-02-09 Tom Tromey <tromey@adacore.com>
5607 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5610 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5613 * arc-linux-tdep.c (handle_atomic_sequence): New.
5614 (arc_linux_software_single_step): Call handle_atomic_sequence().
5616 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5618 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5620 (REQUIRE_WINDOW): Call is_valid member function.
5621 (REQUIRE_WINDOW_FOR_SETTER): New define.
5622 (gdbpy_tui_is_valid): Call is_valid member function.
5623 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5624 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5626 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5627 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5630 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5632 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5633 for the title is not nullptr.
5635 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5637 * tui-layout.c (saved_tui_windows): Delete.
5638 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5639 call new get_windows member function instead.
5640 (tui_get_window_by_name): Check in tui_windows.
5641 (tui_layout_window::apply): Don't add to tui_windows.
5642 * tui-layout.h (tui_layout_base::get_windows): New member function.
5643 (tui_layout_window::get_windows): Likewise.
5644 (tui_layout_split::get_windows): Likewise.
5646 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5648 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5649 of the window objects.
5651 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5653 * python/python.c (gdbpy_print_stack): Reformat an error message.
5655 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5657 * tui/tui-interp.c (tui_command_line_handler): New function.
5658 (tui_interp::resume): Register tui_command_line_handler as the
5660 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5662 (tui_getc_1): Delete handling of '\n' and '\r'.
5663 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5665 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5667 * tui/tui-regs.c (tui_data_window::display_registers_from):
5668 Mark invisible register sub windows.
5669 (tui_data_window::check_register_values): Ignore invisible
5670 register sub windows.
5672 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5674 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5675 n_spaces with a negative value.
5677 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5679 * tui/tui-regs.c (tui_data_window::display_registers_from):
5680 Add refresh_window call.
5682 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5684 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5686 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5688 * symmisc.c (std_in, std_out, std_err): Remove.
5689 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5691 2021-02-05 Tom de Vries <tdevries@suse.de>
5693 PR breakpoints/27330
5694 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5695 glibc object file has debug info.
5697 2021-02-05 Tom de Vries <tdevries@suse.de>
5700 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5702 2021-02-05 Tom de Vries <tdevries@suse.de>
5704 PR breakpoints/27313
5705 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5708 2021-02-05 Tom Tromey <tom@tromey.com>
5710 * compile/compile-c-support.c (get_compile_context)
5711 (c_get_compile_context, cplus_get_compile_context): Change return
5713 * language.c (language_defn::get_compile_instance): New method.
5714 * language.h (language_defn::get_compile_instance): Change return
5715 type. No longer inline.
5716 * c-lang.c (c_language::get_compile_instance): Change return type.
5717 (cplus_language::get_compile_instance): Change return type.
5718 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5720 * compile/compile.c (compile_to_object): Update.
5722 2021-02-05 Tom Tromey <tom@tromey.com>
5724 * parser-defs.h (write_exp_symbol_reference): Declare.
5725 * parse.c (write_exp_symbol_reference): New function.
5726 * p-exp.y (variable): Use write_exp_symbol_reference.
5727 * m2-exp.y (variable): Use write_exp_symbol_reference.
5728 * f-exp.y (variable): Use write_exp_symbol_reference.
5729 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5730 * c-exp.y (variable): Use write_exp_symbol_reference.
5732 2021-02-05 Tom de Vries <tdevries@suse.de>
5735 * valarith.c (complex_binop): Throw an error if complex type can't
5738 2021-02-05 Tom de Vries <tdevries@suse.de>
5741 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5744 2021-02-05 Tom de Vries <tdevries@suse.de>
5746 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5748 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5750 * configure.tgt (riscv*-*-*): Set gdb_sim.
5752 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5754 * target.c (target_is_non_stop_p): Return bool.
5755 * target.h (target_is_non_stop_p): Return bool.
5757 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5759 * record-full.c (record_full_async_inferior_event_handler):
5760 Don't clear async event handler.
5761 (record_full_base_target::wait): Clear async event handler at
5764 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5766 * record-btrace.c (record_btrace_handle_async_inferior_event):
5767 Don't clear async event handler.
5768 (record_btrace_target::wait): Clear async event handler at
5771 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5773 * remote.c (remote_target::wait): Clear async event handler at
5774 beginning, mark if needed at the end.
5775 (remote_async_inferior_event_handler): Don't set or clear async
5778 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5780 * async-event.h (async_event_handler_func): Add documentation.
5781 * async-event.c (check_async_event_handlers): Don't clear
5782 async_event_handler ready flag.
5783 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5785 * record-btrace.c (record_btrace_handle_async_inferior_event):
5787 * record-full.c (record_full_async_inferior_event_handler):
5789 * remote-notif.c (remote_async_get_pending_events_handler):
5791 * remote.c (remote_async_inferior_event_handler): Likewise.
5793 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5795 * infrun.c (handle_inferior_event): Move stop_soon variable to
5798 2021-02-03 Pedro Alves <pedro@palves.net>
5800 * infcmd.c (detach_command): Hold strong reference to target, and
5801 if all-stop on entry, restart threads on exit.
5802 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5803 (restart_stepped_thread): ... this new function. Also handle
5805 (restart_after_all_stop_detach): New function.
5806 * infrun.h (restart_after_all_stop_detach): Declare.
5808 2021-02-03 Pedro Alves <pedro@palves.net>
5810 * infrun.c (struct step_over_info): Initialize fields.
5811 (prepare_for_detach): Handle ongoing in-line step over.
5813 2021-02-03 Pedro Alves <pedro@palves.net>
5815 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5817 * remote.c (remote_target::remote_detach_1): ... and here ...
5818 * target.c (target_detach): ... instead of here.
5819 * target.h (target_ops::detach): Add comment.
5821 2021-02-03 Pedro Alves <pedro@palves.net>
5823 * infrun.c (struct wait_one_event): Move higher up.
5824 (prepare_for_detach): Abort in-progress displaced steps instead of
5825 letting them complete.
5826 (handle_one): If the inferior is detaching, don't add the thread
5827 back to the global step-over chain.
5828 (restart_threads): Don't restart threads if detaching.
5829 (handle_signal_stop): Remove inferior::detaching reference.
5831 2021-02-03 Pedro Alves <pedro@palves.net>
5833 * infrun.c (prepare_for_detach): Don't release scoped_restore
5836 2021-02-03 Pedro Alves <pedro@palves.net>
5838 * infrun.c (handle_one): New function, factored out from ...
5839 (stop_all_threads): ... here.
5841 2021-02-03 Pedro Alves <pedro@palves.net>
5843 * remote.c (remote_notif_stop_ack): Don't error out on
5844 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5845 (remote_target::discard_pending_stop_replies): Don't delete
5846 in-flight notification; instead, clear its contents.
5848 2021-02-03 Pedro Alves <pedro@palves.net>
5850 * remote.c (extended_remote_target::attach): Set target async in
5851 the target-non-stop path too.
5853 2021-02-03 Pedro Alves <pedro@palves.net>
5856 * infrun.c (handle_signal_stop): Move main context_switch call
5857 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5859 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5861 * NEWS (Changed commands): Add entry for the behavior change of
5862 the inferior command.
5863 * inferior.c (inferior_command): When no argument is given to the
5864 inferior command, display info about the currently selected
5867 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5869 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5871 (read_attribute_reprocess): Adjust.
5873 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5875 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5876 <gnu_ranges_base>: ... this...
5877 <rnglists_base>: ... and this.
5878 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5879 <gnu_ranges_base>: ... this...
5880 <rnglists_base>: ... and this.
5881 (read_cutu_die_from_dwo): Adjust
5882 (dwarf2_get_pc_bounds): Adjust
5883 (dwarf2_record_block_ranges): Adjust.
5884 (read_full_die_1): Adjust
5885 (partial_die_info::read): Adjust.
5886 (read_rnglist_index): Adjust.
5888 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5891 * dwarf2/read.c (read_loclists_rnglists_header): Add
5892 header_offset parameter and use it.
5893 (read_loclist_index): Read header of the current contribution,
5894 not the one at the beginning of the section.
5895 (read_rnglist_index): Likewise.
5897 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5900 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5901 requires_reprocessing flag.
5902 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5904 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5905 and DW_FORM_loclistx.
5906 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5907 instead of set_address for DW_FORM_loclistx and
5910 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5912 * dwarf2/read.c (read_loclist_index): Remove bound check for
5914 (read_rnglist_index): Likewise.
5916 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5918 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5921 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5923 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5925 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5927 * dwarf2/read.c (read_loclist_index): Change complaints into
5930 2021-02-02 Tom de Vries <tdevries@suse.de>
5933 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5936 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5938 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5939 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5940 here from linux-tdep.c and given a new name. Minor cleanups.
5941 (gcore_collect_regset_section_cb): Likewise.
5942 (gcore_collect_thread_registers): Likewise.
5943 (gcore_build_thread_register_notes): Likewise.
5944 (gcore_find_signalled_thread): Likewise.
5945 * gcore.h (gcore_build_thread_register_notes): Declare.
5946 (gcore_find_signalled_thread): Declare.
5947 * fbsd-tdep.c: Add 'gcore.h' include.
5948 (struct fbsd_collect_regset_section_cb_data): Delete.
5949 (fbsd_collect_regset_section_cb): Delete.
5950 (fbsd_collect_thread_registers): Delete.
5951 (struct fbsd_corefile_thread_data): Delete.
5952 (fbsd_corefile_thread): Delete.
5953 (fbsd_make_corefile_notes): Call
5954 gcore_build_thread_register_notes instead of the now deleted
5956 * linux-tdep.c: Add 'gcore.h' include.
5957 (struct linux_collect_regset_section_cb_data): Delete.
5958 (linux_collect_regset_section_cb): Delete.
5959 (linux_collect_thread_registers): Delete.
5960 (linux_corefile_thread): Call
5961 gcore_build_thread_register_notes.
5962 (find_signalled_thread): Delete.
5963 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5965 2021-01-29 Tom de Vries <tdevries@suse.de>
5967 PR breakpoints/26063
5968 * infrun.c (process_event_stop_test): Reset
5969 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5972 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5974 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5975 assert. Extend the header comment.
5977 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5979 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5980 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5981 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5982 (tui_locator_win_info_ptr): Delete declaration.
5983 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5984 (tui_disasm_window::set_contents): Fetch state from tui_location
5986 (tui_get_begin_asm_address): Likewise.
5987 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5989 (get_locator_window): Delete.
5990 (initialize_known_windows): Treat locator window just like all the
5992 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5993 (tui_source_window::set_contents): Fetch state from tui_location
5995 (tui_source_window::showing_source_p): Likewise.
5996 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5998 (tui_locator_win_info_ptr): Delete.
5999 (tui_locator_window::make_status_line): Fetch state from
6000 tui_location global.
6001 (tui_locator_window::rerender): Remove check of 'handle',
6002 reindent function body.
6003 (tui_locator_window::set_locator_fullname): Delete.
6004 (tui_locator_window::set_locator_info): Delete.
6005 (tui_update_locator_fullname): Delete.
6006 (tui_show_frame_info): Likewise.
6007 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
6008 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
6009 tui/tui-location.h and renamed to
6010 tui_location_tracker::set_location.
6011 (tui_locator_window::set_locator_fullname): Moved to
6012 tui/tui-location.h and renamed to
6013 tui_location_tracker::set_fullname.
6014 (tui_locator_window::full_name): Delete.
6015 (tui_locator_window::proc_name): Delete.
6016 (tui_locator_window::line_no): Delete.
6017 (tui_locator_window::addr): Delete.
6018 (tui_locator_window::gdbarch): Delete.
6019 (tui_update_locator_fullname): Delete declaration.
6020 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
6022 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
6023 (tui_display_main): Call function on tui_location directly.
6024 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
6025 * tui/tui-location.c: New file.
6026 * tui/tui-location.h: New file.
6028 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6030 * gdbtypes.h (get_type_arch): Rename to...
6031 (struct type) <arch>: ... this, update all users.
6033 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
6035 * gdbtypes.h (struct type) <arch>: Rename to...
6036 <arch_owner>: ... this, update all users.
6037 <objfile>: Rename to...
6038 <objfile_owner>: ... this, update all users.
6040 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
6042 * gdbcmd.h (execute_command_to_string): Update comment.
6043 * top.c (execute_command_to_string): Update header comment.
6045 2021-01-28 Tom de Vries <tdevries@suse.de>
6047 PR breakpoints/27205
6048 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6049 (create_longjmp_master_breakpoint_names): New function, factored out
6051 (create_longjmp_master_breakpoint): ... here. Only try to install
6052 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6053 breakpoint in libc.so failed.
6055 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6058 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6059 unique_ptr is released when the wrapped pointer is kept for later
6062 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6064 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6065 BLR and BR instructions.
6066 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6067 (enum aarch64_masks): New.
6069 2021-01-26 Tom Tromey <tromey@adacore.com>
6071 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6072 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6073 (windows_init_thread_list, windows_nat::handle_load_dll)
6074 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6075 (windows_nat_target::resume)
6076 (windows_nat_target::get_windows_debug_event)
6077 (windows_nat_target::interrupt, windows_xfer_memory)
6078 (windows_nat_target::close): Update.
6079 * nat/windows-nat.c (DEBUG_EVENTS): Use
6080 debug_prefixed_printf_cond.
6081 (matching_pending_stop, fetch_pending_stop)
6082 (continue_last_debug_event): Update.
6084 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6086 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6087 elfcore_write_file_note.
6089 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6091 * arc-tdep.c (arc_add_reggroups): New function.
6092 (arc_gdbarch_init): Call arc_add_reggroups.
6094 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6096 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6098 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6099 Simon Marchi <simon.marchi@polymtl.ca>
6100 Tom de Vries <tdevries@suse.de>
6102 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6105 2021-01-25 Tom Tromey <tromey@adacore.com>
6107 * dwarf2/read.c (get_mpz): New function.
6108 (get_dwarf2_rational_constant): Use it.
6110 2021-01-25 Tom Tromey <tromey@adacore.com>
6112 * ada-lang.c (resolve_subexp): Handle array context.
6114 2021-01-23 Tom Tromey <tom@tromey.com>
6117 * compile/compile-loc2c.c (note_register): New function.
6118 (pushf_register_address, pushf_register): Use it.
6120 2021-01-23 Tom Tromey <tom@tromey.com>
6122 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6123 Change type of "registers_used".
6124 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6125 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6126 (locexpr_generate_c_location, loclist_generate_c_location): Change
6127 type of "registers_used".
6128 * compile/compile.h (compile_dwarf_expr_to_c)
6129 (compile_dwarf_bounds_to_c): Update.
6130 * compile/compile-loc2c.c (pushf_register_address)
6131 (pushf_register, do_compile_dwarf_expr_to_c)
6132 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6133 of "registers_used".
6134 * compile/compile-c.h (generate_c_for_variable_locations):
6136 * compile/compile-c-symbols.c (generate_vla_size)
6137 (generate_c_for_for_one_variable): Change type of
6139 (generate_c_for_variable_locations): Return std::vector.
6140 * compile/compile-c-support.c (generate_register_struct): Change
6141 type of "registers_used".
6144 2021-01-23 Tom Tromey <tom@tromey.com>
6146 * compile/compile-internal.h (class compile_instance)
6147 <set_arguments>: Change return type.
6148 * compile/compile.c (compile_to_object): Remove call to reset.
6149 (compile_instance::set_arguments): Change return type.
6151 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6153 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6154 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6156 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6158 * Makefile.in (SELFTESTS_SRCS): Add
6159 unittests/gdb_tilde_expand-selftests.c.
6160 * unittests/gdb_tilde_expand-selftests.c: New file.
6162 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6165 * NEWS: Mention new command.
6166 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6167 (version_style): Define.
6168 (cli_style_option::cli_style_option): Add intensity parameter, and
6170 (_initialize_cli_style): Register version style set/show commands.
6171 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6172 (version_style): Declare.
6173 * top.c (print_gdb_version): Use version_stype, and styled_string
6174 to print the GDB version string.
6176 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6178 * utils.c (emit_style_escape): Only emit an escape sequence if the
6179 requested style is different than the current applied style.
6180 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6181 current applied_style.
6182 (fputs_styled): Remove is_default check.
6183 (fputs_styled_unfiltered): Likewise.
6184 (vfprintf_styled_no_gdbfmt): Likewise.
6186 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6188 * remote.h (remote_debug_printf): New.
6189 (remote_debug_printf_nofunc): New.
6190 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6191 * remote.c: Use above macros throughout file.
6193 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6195 * remote.h (remote_debug): Change to bool.
6196 * remote.c (remote_debug): Change to bool.
6197 (_initialize_remote): Adjust.
6199 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6201 * target.h (remote_debug): Move to...
6202 * remote.h (remote_debug): ... here.
6203 * top.c (remote_debug): Move to...
6204 * remote.c (remote_debug): ... here.
6205 * remote-sim.c: Include remote.h.
6207 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6209 * cli/cli-cmds.c (show_remote_debug): Remove.
6210 (show_remote_timeout): Remove.
6211 (_initialize_cli_cmds): Don't register commands.
6212 * remote.c (show_remote_debug): Move here.
6213 (show_remote_timeout): Move here.
6214 (_initialize_remote): Register commands.
6216 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6218 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6219 type::objfile method instead.
6221 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6223 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6224 use the type::is_objfile_owned method.
6226 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6228 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6229 (TYPE_OWNER): Remove.
6230 (TYPE_OBJFILE): Adjust.
6231 (struct main_type) <flag_objfile_owned>: Rename to...
6232 <m_flag_objfile_owned>: ... this.
6233 <owner>: Rename to...
6234 <m_owner>: ... this.
6235 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6237 (TYPE_ALLOC): Adjust.
6238 * gdbtypes.c (alloc_type): Adjust.
6239 (alloc_type_arch): Adjust.
6240 (alloc_type_copy): Adjust.
6241 (get_type_arch): Adjust.
6242 (smash_type): Adjust.
6243 (lookup_array_range_type): Adjust.
6244 (recursive_dump_type): Adjust.
6245 (copy_type_recursive): Adjust.
6246 * compile/compile-c-types.c (convert_func): Adjust.
6247 (convert_type_basic): Adjust.
6248 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6251 (language_arch_info::type_and_symbol::alloc_type_symbol):
6254 2021-01-21 Luis Machado <luis.machado@linaro.org>
6256 * coffread.c (enter_linenos): Passing string to complaint.
6257 * valops.c (value_assign): Make array view.
6259 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6261 * auto-load.h (debug_auto_load): Move here.
6262 (auto_load_debug_printf): New.
6263 * auto-load.c: Use auto_load_debug_printf.
6264 (debug_auto_load): Move to header.
6265 * linux-thread-db.c (try_thread_db_load): Use
6266 auto_load_debug_printf.
6267 * main.c (captured_main_1): Likewise.
6269 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6271 * f-valprint.c (f77_array_offset_tbl): Remove.
6273 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6275 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6277 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6279 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6282 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
6285 * python/py-breakpoint.c (bppy_get_location): Handle
6286 bp_hardware_breakpoint.
6287 (bppy_init): Likewise.
6288 (gdbpy_breakpoint_created): Likewise.
6290 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6292 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6294 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6296 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6297 (_initialize_gdb_bfd): Adjust.
6299 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6302 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6304 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6306 * dwarf2/read.c (follow_die_offset): Add logging.
6307 (dwarf2_per_objfile::age_comp_units): Add logging.
6309 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6311 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6312 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6313 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6314 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6315 * arm-tdep.c (struct frame_unwind): Make static.
6316 * auto-load.c (auto_load_safe_path_vec): Make static.
6317 * csky-tdep.c (csky_stub_unwind): Make static.
6318 * gdbarch.c (gdbarch_data_registry): Make static.
6319 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6320 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6321 * i386-tdep.c (i386_frame_setup_skip_insns,
6322 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6324 * infrun.c (observer_mode): Make static.
6325 * linux-nat.c (sigchld_action): Make static.
6326 * linux-thread-db.c (thread_db_list): Make static.
6327 * maint-test-options.c (maintenance_test_options_list):
6328 * mep-tdep.c (mep_csr_registers): Make static.
6329 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6330 (stats): Make static.
6331 * nat/linux-osdata.c (struct osdata_type): Make static.
6332 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6333 * progspace.c (last_program_space_num): Make static.
6334 * python/py-param.c (struct parm_constant): Remove struct type
6336 (parm_constants): Make static.
6337 * python/py-record-btrace.c (btpy_list_methods): Make static.
6338 * python/py-record.c (recpy_gap_type): Make static.
6339 * record.c (record_goto_cmdlist): Make static.
6340 * regcache.c (regcache_descr_handle): Make static.
6341 * registry.h (DEFINE_REGISTRY): Make definition static.
6342 * symmisc.c (std_in, std_out, std_err): Make static.
6343 * top.c (previous_saved_command_line): Make static.
6344 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6346 * unittests/command-def-selftests.c (nr_duplicates,
6347 nr_invalid_prefixcmd, lists): Make static.
6348 * unittests/observable-selftests.c (test_notification): Make
6350 * unittests/optional/assignment/1.cc (counter): Make static.
6351 * unittests/optional/assignment/2.cc (counter): Make static.
6352 * unittests/optional/assignment/3.cc (counter): Make static.
6353 * unittests/optional/assignment/4.cc (counter): Make static.
6354 * unittests/optional/assignment/5.cc (counter): Make static.
6355 * unittests/optional/assignment/6.cc (counter): Make static.
6357 2021-01-20 Joel Sherrill <joel@rtems.org>
6360 * remote.c (struct remote_thread_info) <resume_state>: Rename
6362 <get_resume_state>: ... this.
6363 (remote_target::resume): Adjust.
6364 (remote_target::commit_resume): Adjust.
6365 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6367 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6368 Tom Tromey <tom@tromey.com>
6370 * stap-probe.c (stap_parse_single_operand): Handle '!'
6372 (stap_parse_argument_conditionally): Likewise.
6373 Skip spaces after processing open-parenthesis sub-expression.
6374 (stap_parse_argument_1): Skip spaces after call to
6375 stap_parse_argument_conditionally.
6376 Handle case when right-side expression is a parenthesized
6378 Skip spaces after call to stap_parse_argument_1.
6380 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6382 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6384 2021-01-19 Luis Machado <luis.machado@linaro.org>
6386 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6387 memory and save data.
6388 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6389 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6390 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6391 (trad_frame_value_bytes_p): Remove.
6392 (trad_frame_reset_saved_regs): Adjust documentation.
6393 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6394 constructor and reset the state of the registers.
6395 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6396 (trad_frame_value_bytes_p, trad_frame_set_value)
6397 (trad_frame_set_realreg, trad_frame_set_addr)
6398 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6399 (trad_frame_set_reg_realreg): Update to call member function.
6400 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6401 (trad_frame_get_prev_register): Likewise.
6403 * aarch64-tdep.c (aarch64_analyze_prologue)
6404 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6405 (aarch64_prologue_prev_register): Update to use member functions.
6406 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6407 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6408 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6409 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6410 (arm_make_epilogue_frame_cache): Likewise.
6411 * avr-tdep.c (avr_frame_unwind_cache)
6412 (avr_frame_prev_register): Likewise.
6413 * cris-tdep.c (cris_scan_prologue): Likewise.
6414 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6415 * frv-tdep.c (frv_analyze_prologue): Likewise.
6416 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6417 * lm32-tdep.c (lm32_frame_cache): Likewise.
6418 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6419 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6420 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6421 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6422 (reset_saved_regs): Adjust to set realreg.
6423 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6424 call member functions.
6425 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6426 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6427 (s390_backchain_frame_unwind_cache): Likewise.
6428 * score-tdep.c (score7_analyze_prologue)
6429 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6430 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6431 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6432 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6433 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6434 * tilegx-tdep.c (tilegx_analyze_prologue)
6435 (tilegx_frame_cache): Likewise.
6436 * v850-tdep.c (v850_frame_cache): Likewise.
6437 * vax-tdep.c (vax_frame_cache): Likewise.
6439 2021-01-19 Luis Machado <luis.machado@linaro.org>
6441 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6443 (put_frame_register_bytes): Likewise.
6444 Adjust documentation.
6445 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6446 (safe_frame_unwind_memory): Likewise.
6447 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6448 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6450 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6451 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6452 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6453 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6454 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6455 * dwarf2/loc.c (rw_pieced_value): Likewise.
6456 * hppa-tdep.c (hppa_frame_cache): Likewise.
6457 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6458 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6459 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6460 (i386_linux_rt_sigtramp_start): Likewise.
6461 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6462 * i386-tdep.c (i386_register_to_value): Likewise.
6463 * i387-tdep.c (i387_register_to_value): Likewise.
6464 * ia64-tdep.c (ia64_register_to_value): Likewise.
6465 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6466 (m32r_linux_rt_sigtramp_start): Likewise.
6467 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6468 * m68k-tdep.c (m68k_register_to_value): Likewise.
6469 * mips-tdep.c (mips_register_to_value)
6470 (mips_value_to_register): Likewise.
6471 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6472 (ppcfbsd_sigtramp_frame_cache): Likewise.
6473 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6474 (ppcobsd_sigtramp_frame_cache): Likewise.
6475 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6476 (rs6000_register_to_value): Likewise.
6477 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6478 * tramp-frame.c (tramp_frame_start): Likewise.
6479 * valops.c (value_assign): Likewise.
6481 2021-01-19 Luis Machado <luis.machado@linaro.org>
6483 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6485 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6486 instead of buffer and size.
6487 (trad_frame_set_reg_value_bytes): Likewise.
6488 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6489 (trad_frame_set_value_bytes): Likewise.
6491 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6493 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6495 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6497 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6498 (riscv_fbsd_gregset): Use riscv_supply_regset.
6499 (riscv_fbsd_fpregset): Likewise.
6500 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6501 (riscv_linux_fregset): Likewise.
6502 * riscv-tdep.c (riscv_supply_regset): Define new function.
6503 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6505 2021-01-18 Tom de Vries <tdevries@suse.de>
6508 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6510 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6513 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6515 * remote.c (class remote_target) <remote_hostio_send_command,
6516 remote_hostio_parse_result>: Constify parameter.
6517 (remote_hostio_parse_result): Likewise.
6518 (remote_target::remote_hostio_send_command): Adjust.
6519 (remote_target::remote_hostio_pread_vFile): Adjust.
6520 (remote_target::fileio_readlink): Adjust.
6521 (remote_target::fileio_fstat): Adjust.
6523 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6525 * remote.c (remote_target::start_remote): Move wait_status to
6528 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6530 * remote.c (class remote_target):
6531 <add_current_inferior_and_thread>: Constify parameter.
6532 (stop_reply_extract_thread): Likewise.
6533 (remote_target::get_current_thread): Likewise.
6534 (remote_target::add_current_inferior_and_thread): Likewise.
6536 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6538 * remote.c (class remote_target)
6539 <remote_unpack_thread_info_response,
6540 parse_threadlist_response>: Constify parameter and/or return
6541 value and or local variable.
6542 (stub_unpack_int): Likewise.
6543 (unpack_nibble): Likewise.
6544 (unpack_byte): Likewise.
6545 (unpack_int): Likewise.
6546 (unpack_string): Likewise.
6547 (unpack_threadid): Likewise.
6548 (remote_target::remote_unpack_thread_info_response): Likewise.
6549 (remote_target::parse_threadlist_response): Likewise.
6551 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6553 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6555 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
6557 * MAINTAINERS (Write After Approval): Add myself.
6559 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6561 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6562 because is_trivially_default_constructible was first implemented with
6565 2021-01-14 Tom de Vries <tdevries@suse.de>
6567 PR breakpoints/27151
6568 * objfiles.h (in_plt_section): Handle .plt.sec.
6570 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6574 (remote_target::select_thread_for_ambiguous_stop_reply): New
6576 (remote_target::process_stop_reply): Call
6577 select_thread_for_ambiguous_stop_reply.
6579 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6581 * record-btrace.c (class record_btrace_target): Remove.
6582 (record_btrace_target::commit_resume): Remove.
6583 * record-full.c (class record_full_target): Remove.
6584 (record_full_target::commit_resume): Remove.
6586 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6588 * remote.c (enum class resume_state): New.
6589 (struct resumed_pending_vcont_info): New.
6590 (struct remote_thread_info) <resume_state, set_not_resumed,
6591 set_resumed_pending_vcont, resumed_pending_vcont_info,
6592 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6594 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6595 (remote_target::remote_add_thread): Adjust.
6596 (remote_target::process_initial_stop_replies): Adjust.
6597 (remote_target::resume): Adjust.
6598 (remote_target::commit_resume): Rely on state in
6599 remote_thread_info and not on tp->executing.
6600 (remote_target::process_stop_reply): Adjust.
6602 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6604 * arc-tdep.h (arc_debug_printf): New.
6605 * arc-tdep.c: Use arc_debug_printf.
6606 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6607 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6608 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6610 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6612 * arc-tdep.h (arc_debug): Change type to bool.
6613 * arc-tdep.c (arc_debug): Change type to bool.
6614 (arc_analyze_prologue): Adjust.
6615 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6616 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6618 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6620 * auto-load.c (auto_load_objfile_script_1): Use bool.
6621 (execute_script_contents): Use bool.
6623 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6625 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6627 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6629 * extension-priv.h (struct extension_language_script_ops)
6630 <auto_load_enabled>: Return bool.
6631 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6633 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6635 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6637 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6638 move comment to header.
6639 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6641 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6642 move comment to header.
6644 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6646 * auto-load.h (file_is_auto_load_safe): Change return type to
6647 bool, move comment here.
6648 * auto-load.c (file_is_auto_load_safe): Change return type and
6649 advice_printed to bool. Move comment to header.
6651 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6653 * jit.c (jit_debug_printf): New, use throughout file.
6655 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6657 * infrun.c (normal_stop): Fix indentation.
6659 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6661 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6663 * symfile.h: ... here.
6664 * symfile.c: Update doc.
6666 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6668 * target.h (baud_rate, serial_parity): Move declarations...
6669 * serial.h: ... here.
6670 * main.c: Include serial.h.
6671 * serial.c (baud_rate, serial_parity): Update doc.
6673 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6675 * top.c (pre_init_ui_hook): Remove.
6677 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6679 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6680 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6681 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6682 * features/aarch64-fpu.xml: Add bfloat16 type.
6684 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6686 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6688 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6690 * f-exp.y (dot_ops): Rename to...
6691 (fortran_operators): ...this. Add a header comment. Add symbol
6693 (yylex): Update to use fortran_operators not dot_ops. Remove
6694 special handling for '**', this is now included in
6697 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6699 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6700 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6701 * aarch64-tdep.c: Use aarch64_debug_printf.
6703 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6705 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6708 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6710 * jit.c (jit_debug): Change type to bool.
6711 (_initialize_jit): Adjust.
6713 2021-01-09 Tom Tromey <tom@tromey.com>
6716 * compile/compile.c (compile_to_object): Avoid crash when
6717 osabi_triplet_regexp returns NULL.
6719 2021-01-09 Tom Tromey <tom@tromey.com>
6721 * tracepoint.h (class collection_list) <append_exp>: Take a
6723 * tracepoint.c (collection_list::append_exp): Take a std::string.
6724 (encode_actions_1): Update.
6726 2021-01-08 Tom Tromey <tromey@adacore.com>
6728 * parse.c (parse_expression): Add void_context_p parameter. Use
6729 parse_exp_in_context.
6730 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6732 (print_command, call_command): Update.
6733 * expression.h (parse_expression): Add void_context_p parameter.
6735 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6737 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6738 for internalvar components that have a dynamic location.
6740 2021-01-08 Tom de Vries <tdevries@suse.de>
6743 * breakpoint.c (create_exception_master_breakpoint_probe)
6744 (create_exception_master_breakpoint_hook): Factor out
6746 (create_exception_master_breakpoint): ... here. Only try to install
6747 the master exception breakpoint in objfile.debug using the
6748 _Unwind_DebugHook method, if the install using probes in objfile
6751 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6753 * f-lang.c (fortran_value_subarray): Call value_from_component.
6755 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6757 * remote-sim.c: Include memory-map.h.
6758 (gdbsim_target): Define memory_map override.
6759 (gdbsim_target::memory_map): Define.
6761 2021-01-07 Tom Tromey <tromey@adacore.com>
6763 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6765 2021-01-07 Tom Tromey <tromey@adacore.com>
6767 * ada-lang.c (add_component_interval): Start loop using vector's
6770 2021-01-06 Tom Tromey <tromey@adacore.com>
6772 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6774 * valarith.c (fixed_point_binop): Handle multiplication
6775 and division specially.
6776 * valops.c (value_to_gdb_mpq): New function.
6777 (value_cast_to_fixed_point): Use it.
6779 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6781 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6782 Call wnoutrefresh instead of tui_win_info::refresh_window.
6784 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6786 * tui/tui-source.c (tui_source_window::show_line_number):
6787 Redraw second space after line number.
6789 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6792 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6793 Fix source pad size in prefresh.
6794 (tui_source_window_base::show_source_content): Grow source pad
6797 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6799 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6800 (bfin_frame_align): Use align_down.
6802 2021-01-04 Tom de Vries <tdevries@suse.de>
6804 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6805 terminators that do not terminate anything.
6807 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6809 * debug.c (debug_print_depth): New.
6810 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6811 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6812 * infrun.c (start_step_over): Use
6813 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6814 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6815 INFRUN_SCOPED_DEBUG_START_END.
6816 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6818 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6820 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6822 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6824 * utils.c (vfprintf_unfiltered): Print timestamp only when
6825 previous debug output ended with a newline.
6827 2021-01-04 Luis Machado <luis.machado@linaro.org>
6829 Update all users of trad_frame_saved_reg to use the new member
6832 Remote all struct keywords from declarations of trad_frame_saved_reg
6833 types, except on forward declarations.
6835 * aarch64-tdep.c: Update.
6836 * alpha-mdebug-tdep.c: Update.
6837 * alpha-tdep.c: Update.
6838 * arc-tdep.c: Update.
6839 * arm-tdep.c: Update.
6840 * avr-tdep.c: Update.
6841 * cris-tdep.c: Update.
6842 * csky-tdep.c: Update.
6843 * frv-tdep.c: Update.
6844 * hppa-linux-tdep.c: Update.
6845 * hppa-tdep.c: Update.
6846 * hppa-tdep.h: Update.
6847 * lm32-tdep.c: Update.
6848 * m32r-linux-tdep.c: Update.
6849 * m32r-tdep.c: Update.
6850 * m68hc11-tdep.c: Update.
6851 * mips-tdep.c: Update.
6852 * moxie-tdep.c: Update.
6853 * riscv-tdep.c: Update.
6854 * rs6000-tdep.c: Update.
6855 * s390-linux-tdep.c: Update.
6856 * s390-tdep.c: Update.
6857 * score-tdep.c: Update.
6858 * sparc-netbsd-tdep.c: Update.
6859 * sparc-sol2-tdep.c: Update.
6860 * sparc64-fbsd-tdep.c: Update.
6861 * sparc64-netbsd-tdep.c: Update.
6862 * sparc64-obsd-tdep.c: Update.
6863 * sparc64-sol2-tdep.c: Update.
6864 * tilegx-tdep.c: Update.
6865 * v850-tdep.c: Update.
6866 * vax-tdep.c: Update.
6868 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6869 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6871 * trad-frame.c: Update.
6872 Remove TF_REG_* enum.
6873 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6874 a trivially-constructible struct.
6875 (trad_frame_reset_saved_regs): Adjust to use member function.
6876 (trad_frame_value_p): Likewise.
6877 (trad_frame_addr_p): Likewise.
6878 (trad_frame_realreg_p): Likewise.
6879 (trad_frame_value_bytes_p): Likewise.
6880 (trad_frame_set_value): Likewise.
6881 (trad_frame_set_realreg): Likewise.
6882 (trad_frame_set_addr): Likewise.
6883 (trad_frame_set_unknown): Likewise.
6884 (trad_frame_set_value_bytes): Likewise.
6885 (trad_frame_get_prev_register): Likewise.
6886 * trad-frame.h: Update.
6887 (trad_frame_saved_reg_kind): New enum.
6888 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6889 <m_kind, m_reg>: New member fields.
6890 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6891 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6892 <is_addr, is_unknown, is_value_bytes>: New member functions.
6894 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6896 * target-float.c: Fix typos.
6898 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6900 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6902 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6904 * gdbarch.sh: Update copyright year range.
6906 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6908 Update copyright year range in copyright header of all GDB files.
6910 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6912 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6913 to the list of directories to update.
6915 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6917 * top.c (print_gdb_version): Update copyright year.
6919 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6921 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6923 For older changes see ChangeLog-2020.
6929 version-control: never