1 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
4 (compile_to_object): Ignore SIGPIPE before calling the plugin.
6 2021-06-05 Tom Tromey <tom@tromey.com>
8 * data-directory/Makefile.in (Makefile): Use correct directory
11 2021-06-05 Tom Tromey <tom@tromey.com>
13 * data-directory/Makefile.in (Makefile): Rewrite.
15 2021-06-05 Tom Tromey <tromey@adacore.com>
18 * configure.ac: Add ACX_NONCANONICAL_TARGET.
20 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
22 * NEWS: Document 'set disassembler-options' support for the ARC
24 * arc-tdep.c (arc_gdbarch_init): Set
25 'gdbarch_valid_disassembler_options'.
27 2021-06-04 Tom Tromey <tromey@adacore.com>
29 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
31 * dwarf2/loc.c (dwarf2_evaluate_property) <case
32 PROP_VARIABLE_NAME>: New case.
33 (compute_var_value): New function.
34 (sect_variable_value): Use compute_var_value.
35 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
36 (var_decl_name): New function.
37 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
38 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
40 (union dynamic_prop_data) <variable_name>: New member.
41 (struct dynamic_prop) <variable_name, set_variable_name>: New
44 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
46 * remote.c (remote_target)
47 <select_thread_for_ambiguous_stop_reply>: Add additional debug
50 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
52 * python/py-tui.c (class tui_py_window): Add click function.
53 (tui_py_window::click): Likewise.
55 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
57 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
58 * tui/tui-data.h (struct tui_win_info): Add click function.
59 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
60 (tui_deprep_terminal): Disable mouse events.
61 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
62 * tui/tui.c (tui_disable): Disable mouse events.
64 2021-06-03 Magne Hov <mhov@undo.io>
67 * eval.c (expression::evaluate): Check inferior_ptid.
69 2021-06-03 Pedro Alves <pedro@palves.net>
71 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
73 (Global Maintainers): Update my address.
74 (Write After Approval): Remove stale entry.
76 2021-06-03 John Baldwin <jhb@FreeBSD.org>
78 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
79 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
80 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
81 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
82 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
83 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
84 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
85 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
86 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
87 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
88 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
89 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
90 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
91 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
92 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
93 (fbsd_report_signal_info): New.
94 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
95 report_signal_info method.
97 2021-06-03 Magne Hov <mhov@undo.io>
99 * MAINTAINERS (Write After Approval): Add Magne Hov.
101 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
103 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
104 gdb.SYMBOL_LABEL_DOMAIN constant.
106 2021-06-01 John Baldwin <jhb@FreeBSD.org>
108 * infrun.c (handle_inferior_event): Only call
109 gdbarch_displaced_step_restore_all_in_ptid if
110 gdbarch_supports_displaced_stepping is true.
112 2021-06-01 Tom Tromey <tromey@adacore.com>
114 * Makefile.in (all-data-directory): Remove.
115 (data-directory/Makefile): Remove.
117 2021-06-01 Tom Tromey <tromey@adacore.com>
119 * configure: Rebuild.
120 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
122 2021-06-01 Tom Tromey <tromey@adacore.com>
124 * silent-rules.mk (ECHO_CC): New variable.
126 2021-06-01 Tom Tromey <tromey@adacore.com>
128 * Makefile.in (SUBDIRS): Add testsuite.
129 (all): Don't exclude testsuite.
131 2021-06-01 Tom Tromey <tromey@adacore.com>
133 * configure.ac: Copy some code from testsuite/configure.ac.
134 (enable_libctf): Subst this, not ENABLE_LIBCTF.
135 * configure: Rebuild.
137 2021-06-01 Tom de Vries <tdevries@suse.de>
140 * minsyms.c (msymbol_is_cold_clone): New function.
141 (msymbol_is_function): Use msymbol_is_cold_clone.
143 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
144 Andrew Burgess <andrew.burgess@embecosm.com>
147 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
148 (ALLDEPFILES): Add arm-none-tdep.c
149 * arm-none-tdep.c: New file.
150 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
152 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
153 Richard Bunt <richard.bunt@arm.com>
155 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
156 check for why the backtrace stopped.
158 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
160 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
162 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
163 signature parameter, update all callers.
164 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
167 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
169 * dwarf2/read.h (signatured_type_up): New, use where possible.
171 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
173 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
175 2021-05-30 Tom Tromey <tom@tromey.com>
177 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
179 (create_signatured_type_table_from_index)
180 (create_signatured_type_table_from_debug_names, add_type_unit)
181 (read_comp_units_from_section): Update.
183 2021-05-30 Tom Tromey <tom@tromey.com>
185 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
186 m_num_psymtabs>: Remove.
187 (resize_symtabs): Update.
188 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
189 (dwarf2_per_bfd::allocate_signatured_type): Update.
191 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
193 * Fix tab after space indentation issues throughout.
195 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
197 * Fix some indentation mistakes throughout.
199 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
201 * breakpoint.h (iterate_over_bp_locations): Remove. Update
202 users to use all_bp_locations.
203 (all_bp_locations): New.
204 * breakpoint.c (all_bp_locations): Make non-static.
205 (iterate_over_bp_locations): Remove.
207 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
209 * breakpoint.h (iterate_over_breakpoints): Remove. Update
210 callers to use all_breakpoints or all_breakpoints_safe.
211 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
212 all_breakpoints_safe): Move here.
213 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
215 (iterate_over_breakpoints): Remove.
216 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
218 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
220 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
222 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
224 * breakpoint.c (get_first_locp_gte_addr): Remove.
225 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
226 all_bp_locations_at_addr.
227 (struct bp_locations_at_addr_range): New.
228 (all_bp_locations_at_addr): New.
229 (bp_locations_compare_addrs): New.
231 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
233 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
235 (all_bp_locations): New.
237 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
239 * breakpoint.c (bp_locations): Change to std::vector, update all
241 (bp_locations_count): Remove.
242 (update_global_location_list): Change to work with indices
243 rather than bp_location**.
245 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
247 * breakpoint.h (bp_locations_range): New.
248 (struct breakpoint) <locations>: New. Use where possible.
250 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
252 * breakpoint.h (all_tracepoints): Remove.
253 (breakpoint_iterator): Move here.
254 (struct tracepoint_filter): New.
255 (tracepoint_iterator): New.
256 (tracepoint_range): New.
257 (all_tracepoints): New.
258 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
260 (breakpoint_iterator): Move to header.
261 (all_tracepoints): New.
262 * tracepoint.c (start_tracing): Adjust.
264 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
266 * breakpoint.c (breakpoint_safe_range): New.
267 (all_breakpoints_safe): New. Use instead of
268 ALL_BREAKPOINTS_SAFE where possible.
270 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
272 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
274 (breakpoint_iterator): New.
275 (breakpoint_range): New.
276 (all_breakpoints): New.
278 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
280 * python/py-tui.c (tui_py_window::output): Add full_window
282 (gdbpy_tui_write): Parse "full_window" argument.
284 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
286 * make-init-c: Add option to reverse function calls.
288 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
290 * Makefile.in (INIT_FILES_FILTER_OUT): New.
291 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
292 (stamp-init): Use make-init-c.
293 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
294 * silent-rules.mk (ECHO_INIT_C): Change.
295 * make-init-c: New file.
297 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
299 * command.h (add_alias_cmd): Accept target as
300 cmd_list_element. Update callers.
302 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
304 * command.h (add_info_alias): Accept target as
305 cmd_list_element. Update callers.
307 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
309 * command.h (add_com_alias): Accept target as
310 cmd_list_element. Update callers.
312 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
314 * python/py-param.c (add_setshow_generic): Use return values of
315 add_setshow functions.
317 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
319 * mi/mi-main.c (_initialize_mi_main):
320 * python/py-auto-load.c (gdbpy_initialize_auto_load):
321 * remote.c (_initialize_remote):
323 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
325 * command.h (set_show_commands): New.
326 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
327 add_setshow_boolean_cmd, add_setshow_filename_cmd,
328 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
329 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
330 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
331 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
332 Return set_show_commands. Adjust callers.
333 * cli/cli-decode.c (add_setshow_cmd_full): Return
334 set_show_commands, remove result parameters, adjust callers.
336 2021-05-27 Tom de Vries <tdevries@suse.de>
339 * dwarf2/read.c (process_psymtab_comp_unit):
341 2021-05-27 Tom de Vries <tdevries@suse.de>
343 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
346 2021-05-27 Tom de Vries <tdevries@suse.de>
349 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
350 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
351 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
352 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
354 (dwarf2_per_cu_data): Remove load_all_dies field.
356 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
358 * regcache.c (reg_buffer::reg_buffer): Default-initialize
361 2021-05-26 Tom Tromey <tom@tromey.com>
363 * dwarf2/read.c (allocate_type_unit_groups_table)
364 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
366 (free_line_header_voidp): Remove.
368 (completion_tracker::completion_hash_entry::deleter): Remove.
369 (completion_tracker::discard_completions): Use htab_delete_entry.
370 * utils.h (htab_delete_entry): New template function.
372 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
374 * python/py-tui.c (tui_py_window::refresh_window):
377 2021-05-23 Tom de Vries <tdevries@suse.de>
380 * target.h (struct target_ops): Mention target_thread_architecture in
381 read_description comment.
382 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
383 pid to determine if process is 64-bit or 32-bit.
384 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
386 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
387 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
388 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
389 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
390 Likewise, use pid to determine if kernel supports reading VFP
393 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
395 * main.c (enum cmdarg_kind): Fix option type comments for
396 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
398 2021-05-21 Tom de Vries <tdevries@suse.de>
401 * contrib/cc-with-tweaks.sh: Handle -l.
403 2021-05-21 Tom de Vries <tdevries@suse.de>
406 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
407 objects. Call get_jiter_objfile_data with the_objfile.
409 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
411 * linespec.c (linespec_p): Remove. Replace all uses with
414 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
415 Pedro Alves <pedro@palves.net>
417 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
418 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
419 command_line_up instead of struct command_line.
420 (build_command_line): Likewise.
421 (get_command_line): Update the cmd function call parameter.
422 (process_next_line): Use unique_ptr command_line_up instead
423 of struct command_line.
424 (recurse_read_control_structure): Change the the type of
425 next to command_line_up.
426 (read_command_lines_1): Change type of `next' to be
427 command_line_up and update all references of `next'
430 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
432 * MAINTAINERS (Write After Approval): Add myself.
434 2021-05-19 John Baldwin <jhb@FreeBSD.org>
436 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
438 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
440 * inflow.c (new_tty): Do not leak tty.
442 2021-05-17 Tom Tromey <tom@tromey.com>
444 * dwarf2/read.h: Update include.
445 * dwarf2/read.c: Update include.
446 * dwarf2/line-header.c: Update include.
447 * dwarf2/cu.h: Update include.
448 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
449 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
450 * Makefile.in (COMMON_SFILES): Update.
452 2021-05-17 Tom Tromey <tom@tromey.com>
454 * dwarf2/read.c (maybe_queue_comp_unit)
455 (dwarf2_per_objfile::age_comp_units): Update.
456 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
458 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
459 add_dependence>: New methods.
460 <m_dependencies>: Add "m_" prefix. Now private.
461 <m_mark>: Add "m_" prefix.
462 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
463 (dwarf2_mark_helper): New function.
464 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
466 2021-05-17 Tom Tromey <tom@tromey.com>
468 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
469 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
470 (dwarf2_cu::dwarf2_cu): Move to cu.c.
471 * dwarf2/cu.c: New file.
472 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
474 2021-05-17 Tom Tromey <tom@tromey.com>
476 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
477 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
479 * dwarf2/cu.h: New file.
481 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
483 * .dir-locals.el: Set sentence-end-double-space for all modes, and
484 set brace-list-open to 0 for C and C++ modes.
486 2021-05-17 Tom Tromey <tromey@adacore.com>
488 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
491 2021-05-17 Tom Tromey <tromey@adacore.com>
493 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
494 (group_from_gid): Subtract one from strncpy length.
496 2021-05-17 Tom Tromey <tromey@adacore.com>
498 * source.c (add_path): Check 'p' before using 'p[-1]'.
500 2021-05-17 Tom Tromey <tromey@adacore.com>
502 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
503 (dwarf2_per_cu_data_up): New typedef.
504 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
505 <all_comp_units>: Use dwarf2_per_cu_data_up.
506 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
507 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
508 (create_cu_from_index_list): Likewise.
509 (create_signatured_type_table_from_index)
510 (create_cus_from_debug_names_list, add_type_unit)
511 (read_comp_units_from_section): Update.
512 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
515 2021-05-17 Tom Tromey <tom@tromey.com>
517 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
518 (sort_tu_by_abbrev_offset): Remove.
519 (build_type_psymtabs): Update.
521 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
523 * py-project.toml: New.
524 * gdb-gdb.py.in: Re-format.
526 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
528 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
530 * command.h (cmd_func_p): Remove.
531 * cli/cli-decode.c (cmd_func_p): Remove.
533 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
535 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
537 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
539 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
541 <alias_target>: ... this.
542 (add_alias_cmd): Rename old to target.
543 (add_info_alias): Rename old_name to target_name.
544 (add_com_alias): Likewise.
546 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
548 * Rename "prefixlist" parameters to "subcommands" throughout.
549 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
550 <subcommands>: ... this.
551 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
552 (lookup_cmd_with_subcommands): ... this.
554 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
556 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
558 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
560 * cli/cli-decode.h (prefixname): Make const, move implementation
562 * cli/cli-decode.c (cmd_list_element::prefixname): New.
564 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
566 * ctfread.c (new_symbol): Set function address.
567 (read_func_kind_type): Remove incorrect type name setting.
568 Don't copy name returned from ctf_type_ame_raw throughout file.
570 2021-05-14 Tom Tromey <tom@tromey.com>
572 * rust-lang.c (rust_language::val_print_struct)
573 (rust_language::print_enum): Use common_val_print, not
576 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
578 * python/py-inferior.c (infpy_get_connection_num): New function.
579 (inferior_object_getset): Add a new element for 'connection_num'.
580 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
582 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
584 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
585 argument type, update and re-wrap, header comment.
586 (remote_target::commit_resumed): Convert any_process_wildcard and
587 may_global_wildcard_vcont from int to bool.
589 2021-05-14 Kent Cheung <kent.cheung@arm.com>
591 * cp-valprint.c (cp_print_value): Replaced duplicate code.
592 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
593 just before printing child values.
594 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
595 printing string representation.
596 * python/py-prettyprint.c (print_children): Check max_depth just
597 before printing child values.
598 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
599 printing string representation.
601 2021-05-14 Mike Frysinger <vapier@gentoo.org>
603 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
604 sim/callback.h & sim/sim.h.
606 2021-05-13 Mike Frysinger <vapier@gentoo.org>
608 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
611 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
613 * inf-child.h (inf_child_target) <follow_exec>: New.
614 * inf-child.c (inf_child_target::follow_exec): New.
616 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
618 * target.h (struct target_ops) <follow_exec>: Add ptid_t
620 (target_follow_exec): Likewise.
621 * target.c (target_follow_exec): Add ptid_t parameter.
622 * infrun.c (follow_exec): Adjust call to target_follow_exec,
623 don't push target nor create thread.
624 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
625 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
626 (thread_db_target::follow_exec): New.
627 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
628 (remote_target::follow_exec): Call
629 process_stratum_target::follow_exec.
630 * target-delegates.c: Re-generate.
632 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
634 * infrun.c (follow_exec): Call target_follow_fork when
635 follow-exec-mode is same.
636 * target.h (target_follow_fork): Improve doc.
638 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
640 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
642 * cli/cli-setshow.c (do_show_command): Adjust.
644 2021-05-13 Luis Machado <luis.machado@linaro.org>
646 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
647 include the last address in the range.
649 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
651 * python/python-internal.h (gdbpy_parse_command_name): Return
652 gdb::unique_xmalloc_ptr.
653 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
654 (cmdpy_init): Adjust.
655 * python/py-param.c (parmpy_init): Adjust.
656 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
659 2021-05-12 George Barrett <bob@bob131.so>
661 * NEWS (Guile API): Note the addition of the new procedure.
662 * guile/scm-value.c (gdbscm_value_const_value): Add
663 implementation of value-const-value procedure.
664 (value_functions): Add value-const-value procedure.
666 2021-05-12 George Barrett <bob@bob131.so>
668 * NEWS (Guile API): Note the addition of new procedures.
669 * guile/scm-value.c (gdbscm_reference_value): Add helper function
670 for reference value creation.
671 (gdbscm_value_reference_value): Add implementation of
672 value-reference-value procedure.
673 (gdbscm_value_rvalue_reference_value): Add implementation of
674 value-rvalue-reference-value procedure.
675 (value_functions): Add value-reference-value procedure. Add
676 value-rvalue-reference-value procedure.
678 2021-05-12 George Barrett <bob@bob131.so>
680 * guile/scm-type.c (type_integer_constants): Add binding for
681 TYPE_CODE_RVALUE_REF.
682 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
683 dereferencing of rvalue references.
684 * NEWS (Guile API): Note improvements in rvalue reference support.
686 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
688 * btrace.c (handle_pt_insn_events): Ignore status update enable
691 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
693 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
696 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
698 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
700 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
703 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
706 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
708 * nat/linux-waitpid.c (status_to_str): Show signal name.
710 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
712 * python/py-breakpoint.c (pybp_debug): New static global.
713 (show_pybp_debug): New function.
714 (pybp_debug_printf): Define.
715 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
716 (gdbpy_breakpoint_created): Add some debugging.
717 (gdbpy_breakpoint_deleted): Likewise.
718 (gdbpy_breakpoint_modified): Likewise.
719 (_initialize_py_breakpoint): New function.
721 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
723 * python/py-unwind.c (pyuw_debug): Convert to bool.
724 (show_pyuw_debug): New function.
725 (pyuw_debug_printf): Define.
726 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
727 (pyuw_this_id): Convert to new debug print macros.
728 (pyuw_prev_register): Likewise.
729 (pyuw_sniffer): Likewise.
730 (pyuw_dealloc_cache): Likewise.
731 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
732 show function when registering.
734 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
736 * dummy-frame.c (fprint_dummy_frames): Convert use of
737 fprint_frame_id to use frame_id::to_string.
738 * frame.c (fprint_field): Delete.
739 (fprint_frame_id): Moved to...
740 (frame_id::to_string): ...this, rewritten to return a string.
741 (fprint_frame): Convert use of fprint_frame_id to use
743 (compute_frame_id): Likewise.
744 (frame_id_p): Likewise.
745 (frame_id_eq): Likewise.
746 (frame_id_inner): Likewise.
747 * frame.h (struct frame_id) <to_string>: New member function.
748 (fprint_frame_id): Delete declaration.
749 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
750 fprint_frame_id to use frame_id::to_string.
751 * python/py-frame.c (frame_object_to_frame_info): Likewise.
752 * python/py-unwind.c (unwind_infopy_str): Likewise.
753 (pyuw_this_id): Likewise.
755 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
757 * nat/linux-waitpid.c (status_to_str): Return std::string.
758 * nat/linux-waitpid.h (status_to_str): Likewise.
759 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
760 (linux_nat_target::attach): Adjust.
761 (linux_handle_extended_wait): Adjust.
763 (stop_wait_callback): Adjust.
764 (linux_nat_filter_event): Adjust.
765 (linux_nat_wait_1): Adjust.
766 * nat/linux-waitpid.c (status_to_str): Adjust.
767 * nat/linux-waitpid.h (status_to_str): Adjust.
769 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
771 * infrun.h (infrun_debug_printf): Add missing space.
773 2021-05-08 Pedro Alves <pedro@palves.net>
775 * linux-nat.c (linux_nat_target::supports_disable_randomization):
776 Remove references to HAVE_PERSONALITY.
777 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
778 (maybe_disable_address_space_randomization)
779 (~maybe_disable_address_space_randomizatio): Remove references to
781 * config.in, configure: Regenerate.
783 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
785 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
787 (source_script_with_search): Perform tilde expansion.
789 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
791 * target-descriptions.c (struct target_desc_info) <filename>:
793 (copy_inferior_target_desc_info): Adjust.
794 (target_desc_info_free): Adjust.
795 (target_find_description): Adjust.
796 (set_tdesc_filename_cmd): Adjust.
797 (show_tdesc_filename_cmd): Adjust.
798 (unset_tdesc_filename_cmd): Adjust.
799 (maint_print_c_tdesc_cmd): Adjust.
801 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
803 * target-descriptions.c (struct target_desc_info): Initialize
805 (get_tdesc_info): Use new.
806 (target_desc_info_free): Use delete.
808 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
810 * target-descriptions.c (struct target_desc_info) <fetched>:
812 (target_find_description): Adjust.
813 (target_clear_description): Adjust.
815 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
817 * target-descriptions.c (struct target_desc_info) <tdesc>:
819 (target_desc_fetched): Remove.
820 (current_target_desc): Remove.
821 (target_description_filename): Remove.
822 (target_find_description): Adjust.
823 (target_clear_description): Adjust.
824 (target_current_description): Adjust.
825 (set_tdesc_filename_cmd): Adjust.
826 (show_tdesc_filename_cmd): Adjust.
827 (unset_tdesc_filename_cmd): Adjust.
828 (maint_print_c_tdesc_cmd): Adjust.
829 (maint_print_xml_tdesc_cmd): Adjust.
831 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
833 * infcmd.c (notice_new_inferior): Change parameter type.
834 * inferior.h (notice_new_inferior): Change parameter type.
835 * remote.c (remote_notice_new_inferior): Change parameter type to
836 bool. Also update type of local variable to bool.
837 (remote_target::update_thread_list): Change type of local variable
839 (remote_target::process_stop_reply): Pass bool instead of int to
840 remote_notice_new_inferior.
842 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
844 * target.c (target_stack::unpush): Call target_ops::find_beneath
845 to get the target beneath `t`.
847 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
849 * target.c (target_close): Check in all inferiors that the
850 target is not pushed.
852 2021-05-07 Aaron Merey <amerey@redhat.com>
854 * debuginfod-support.c (debuginfod_init): Remove.
855 (get_debuginfod_client): New function.
857 2021-05-07 Tom Tromey <tom@tromey.com>
859 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
860 * utils.c (streq_hash): Remove.
861 * utils.h (streq_hash): Don't declare.
862 * completer.c (completion_tracker::discard_completions): Update
864 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
866 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
868 * Re-format all Python files using black.
870 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
872 * guile/guile-internal.h (gdbscm_safe_source_script): Change
873 function return type.
874 * guile/guile.c (gdbscm_source_script): Update to handle change in
875 gdbscm_safe_source_script.
876 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
877 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
880 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
882 * inferior.h (class inferior) <args>: Change type to
884 * inferior.c (inferior::~inferior): Don't free args.
885 * infcmd.c (get_inferior_args): Adjust.
886 (set_inferior_args): Adjust.
888 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
890 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
891 breakpoint locations when the breakpoint actually has a location.
893 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
895 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
896 * mi/mi-cmds.c: Change the binding of "-break-condition" to
897 mi_cmd_break_condition.
898 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
899 * breakpoint.h (set_breakpoint_condition): Declare a new
901 * breakpoint.c (set_breakpoint_condition): New overloaded function
902 extracted out from ...
903 (condition_command): ... this.
904 * NEWS: Mention the change.
906 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
908 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
909 '--force-condition' flag to force the condition in the
910 '-break-insert' and '-dprintf-insert' commands.
911 * NEWS: Mention the change.
913 2021-05-04 Tom de Vries <tdevries@suse.de>
916 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
919 2021-04-30 Tom Tromey <tom@tromey.com>
921 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
922 (add_signatured_type_cu_to_table): Remove.
923 (create_debug_type_hash_table): Assume dwo_file is non-null.
924 (create_debug_types_hash_table): Update comment.
925 (create_all_type_units): Remove.
926 (sort_tu_by_abbrev_offset): Update comment.
927 (build_type_psymtabs): Rename from build_type_psymtabs_1.
928 (build_type_psymtabs): Remove.
929 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
931 (read_comp_units_from_section): Add types_htab, section_kind
933 (create_all_comp_units): Read type units.
935 2021-04-30 Tom Tromey <tom@tromey.com>
937 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
938 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
939 <get_cu>: Now inline.
940 <all_type_units>: Remove.
941 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
942 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
943 (dwarf2_per_bfd::get_tu): Remove.
944 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
945 (create_signatured_type_table_from_index)
946 (create_signatured_type_table_from_debug_names)
947 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
948 (dwarf2_base_index_functions::expand_all_symtabs)
949 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
950 (dwarf2_base_index_functions::map_symbol_filenames)
951 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
952 (add_signatured_type_cu_to_table, create_all_type_units)
953 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
954 (create_all_comp_units): Update.
955 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
956 (write_debug_names): Update.
958 2021-04-30 Tom Tromey <tom@tromey.com>
960 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
961 allocate_signatured_type>: Change return type.
962 <all_comp_units, all_type_units>: Hold unique pointers.
963 (struct dwarf2_per_cu_data): Add constructor and initializers.
964 (struct signatured_type): Derive from dwarf2_per_cu_data.
965 * dwarf2/read.c (type_unit_group): Derive from
967 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
968 (dwarf2_per_bfd::get_tu)
969 (dwarf2_per_bfd::allocate_signatured_type)
970 (dwarf2_per_bfd::allocate_signatured_type)
971 (create_cu_from_index_list, create_cus_from_index_list)
972 (create_signatured_type_table_from_index)
973 (create_signatured_type_table_from_debug_names)
974 (create_addrmap_from_aranges)
975 (dwarf2_base_index_functions::find_last_source_symtab)
976 (dw_expand_symtabs_matching_file_matcher)
977 (dwarf2_gdb_index::expand_symtabs_matching)
978 (dwarf2_base_index_functions::map_symbol_filenames)
979 (create_cus_from_debug_names_list)
980 (dw2_debug_names_iterator::next)
981 (dwarf2_debug_names_index::expand_symtabs_matching)
982 (create_debug_type_hash_table, add_type_unit)
983 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
985 (allocate_type_unit_groups_table): Use delete.
986 (create_type_unit_group): Change return type. Use new.
987 (get_type_unit_group, build_type_psymtabs_1)
988 (build_type_psymtab_dependencies)
989 (process_skeletonless_type_unit, set_partial_user)
990 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
991 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
992 (read_signatured_type): Update.
993 (dwarf2_find_containing_comp_unit): Change type of
996 (dwarf2_per_bfd::allocate_per_cu)
997 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
999 (add_signatured_type_cu_to_table): Update.
1000 * dwarf2/index-write.c (write_one_signatured_type)
1001 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1002 (write_debug_names): Update.
1004 2021-04-30 Tom Tromey <tromey@adacore.com>
1006 * nat/windows-nat.h (get_image_name): Don't declare.
1007 * nat/windows-nat.c (get_image_name): Now static.
1009 2021-04-30 Tom Tromey <tromey@adacore.com>
1011 * windows-nat.c (windows_nat::handle_load_dll): Update.
1012 (windows_nat_target::get_windows_debug_event): Call
1014 (windows_add_all_dlls, windows_add_dll): Move to
1016 * nat/windows-nat.h (handle_load_dll): Change parameters.
1017 (dll_loaded_event, windows_add_all_dlls): Declare.
1018 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1020 (dll_loaded_event): New function.
1022 2021-04-30 Tom Tromey <tromey@adacore.com>
1024 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1025 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1027 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1028 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1030 2021-04-30 Tom Tromey <tromey@adacore.com>
1032 * windows-nat.c: Move code to nat/windows-nat.[ch].
1033 (_initialize_windows_nat): Call initialize_loadable.
1034 * nat/windows-nat.h (AdjustTokenPrivileges)
1035 (DebugActiveProcessStop, DebugBreakProcess)
1036 (DebugSetProcessKillOnExit, EnumProcessModules)
1037 (EnumProcessModulesEx, GetModuleInformation)
1038 (GetModuleFileNameExA, GetModuleFileNameExW)
1039 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1040 (GetCurrentConsoleFont, Wow64SuspendThread)
1041 (Wow64GetThreadContext, Wow64SetThreadContext)
1042 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1043 (AdjustTokenPrivileges_ftype)
1044 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1045 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1046 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1047 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1048 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1049 (GetConsoleFontSize_ftype)
1050 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1051 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1052 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1053 (initialize_loadable): Declare.
1054 * nat/windows-nat.c (AdjustTokenPrivileges)
1055 (DebugActiveProcessStop, DebugBreakProcess)
1056 (DebugSetProcessKillOnExit, EnumProcessModules)
1057 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1058 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1059 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1060 (Wow64GetThreadContext, Wow64SetThreadContext)
1061 (Wow64GetThreadSelectorEntry): Define.
1062 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1064 (initialize_loadable): Likewise, and rename.
1066 2021-04-30 Tom Tromey <tromey@adacore.com>
1068 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1069 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1070 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1071 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1072 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1073 (bad): New template functions.
1074 (_initialize_loadable): Update.
1076 2021-04-30 Tom Tromey <tromey@adacore.com>
1078 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1080 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1082 * auto-load.h: Split namespace declaration.
1084 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1086 * infrun.c (save_waitstatus): Move variables to inner scope.
1088 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1090 * NEWS: Fix typo and stray full stop.
1092 2021-04-28 Tom Tromey <tromey@adacore.com>
1094 * ada-exp.y (primary): Use new type for null pointer.
1095 * ada-lang.c (ada_type_match): Remove "may_deref"
1096 parameter. Handle null pointer.
1097 (ada_args_match): Update.
1098 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1099 Handle null pointer.
1101 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1103 * NEWS: Mention new commands.
1104 * python/python.c (python_ignore_environment): New static global.
1105 (show_python_ignore_environment): New function.
1106 (set_python_ignore_environment): New function.
1107 (python_dont_write_bytecode): New static global.
1108 (show_python_dont_write_bytecode): New function.
1109 (set_python_dont_write_bytecode): New function.
1110 (_initialize_python): Register new commands.
1112 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1114 * extension-priv.h (struct extension_language_ops): Rename
1115 'finish_initialization' to 'initialize'.
1116 * extension.c (finish_ext_lang_initialization): Renamed to...
1117 (ext_lang_initialization): ...this, update comment, and updated
1118 the calls to reflect the change in struct extension_language_ops.
1119 * extension.h (finish_ext_lang_initialization): Renamed to...
1120 (ext_lang_initialization): ...this.
1121 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1122 (gdbscm_initialize): ...this, update comment at definition.
1123 (guile_extension_ops): Update.
1124 * main.c (captured_main_1): Update call to
1125 finish_ext_lang_initialization.
1126 * python/python.c (gdbpy_finish_initialization): Rename to...
1127 (gdbpy_initialize): ...this, update comment at definition, and
1128 update call to do_finish_initialization.
1129 (python_extension_ops): Update.
1130 (do_finish_initialization): Rename to...
1131 (do_initialize): ...this, and update comment.
1133 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1135 * main.c (captured_main_1): Add a call to
1136 finish_ext_lang_initialization.
1137 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1139 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1141 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1142 (gdbscm_finish_initialization): Add code moved from
1144 (_initialize_guile): Move code to gdbscm_finish_initialization.
1145 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1146 _initialize_scm_arch.
1147 (_initialize_scm_arch): New function.
1148 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1149 into _initialize_scm_block.
1150 (_initialize_scm_block): New function.
1151 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1152 into _initialize_scm_frame.
1153 (_initialize_scm_frame): New function.
1154 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1155 into _initialize_scm_objfile.
1156 (_initialize_scm_objfile): New function.
1157 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1158 code into _initialize_scm_progspace.
1159 (_initialize_scm_progspace): New function.
1160 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1161 into _initialize_scm_symbol.
1162 (_initialize_scm_symbol): New function.
1163 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1164 into _initialize_scm_symtab.
1165 (_initialize_scm_symtab): New function.
1166 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1167 _initialize_scm_type.
1168 (_initialize_scm_type): New function.
1170 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1172 * python/py-arch.c (_initialize_py_arch): New function.
1173 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1174 * python/py-block.c (_initialize_py_block): New function.
1175 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1176 * python/py-inferior.c (_initialize_py_inferior): New function.
1177 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1178 * python/py-objfile.c (_initialize_py_objfile): New function.
1179 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1180 * python/py-progspace.c (_initialize_py_progspace): New function.
1181 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1182 * python/py-registers.c (_initialize_py_registers): New function.
1183 (gdbpy_initialize_registers): Move code to
1184 _initialize_py_registers.
1185 * python/py-symbol.c (_initialize_py_symbol): New function.
1186 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1187 * python/py-symtab.c (_initialize_py_symtab): New function.
1188 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1189 * python/py-type.c (_initialize_py_type): New function.
1190 (gdbpy_initialize_types): Move code to _initialize_py_type.
1191 * python/py-unwind.c (_initialize_py_unwind): New function.
1192 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1193 * python/python.c (_initialize_python): Move call to
1194 do_start_initialization to gdbpy_finish_initialization.
1195 (gdbpy_finish_initialization): Add call to
1196 do_start_initialization.
1198 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1200 * extension.c (struct scoped_default_signal): New struct.
1201 (scoped_default_sigint): New typedef.
1202 (finish_ext_lang_initialization): Make use of
1203 scoped_default_sigint.
1205 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1207 * main.c (captured_main_1): Don't pass argument to gdb_init.
1208 * top.c (gdb_init): Remove unused argument, and add header
1210 * top.h (gdb_init): Remove argument.
1212 2021-04-27 Luis Machado <luis.machado@linaro.org>
1214 * psymtab.c (psymbol_functions::dump): Output newline.
1216 * symmisc.c (dump_objfile): Likewise.
1218 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1219 Simon Marchi <simon.marchi@polymtl.ca>
1221 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1222 when attaching the 'auto_load_new_objfile' observer, so
1223 other observers can specify it as a dependency.
1224 * gdb/auto-load.h (struct token): Declare
1225 'auto_load_new_objfile_observer_token' as token to be used
1226 for the 'auto_load_new_objfile' observer.
1227 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1228 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1229 observer, so it gets notified after the latter.
1231 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1232 Simon Marchi <simon.marchi@polymtl.ca>
1234 * unittests/observable-selftests.c (dependency_test_counters):
1236 (observer_token0, observer_token1, observer_token2,
1237 observer_token3, observer_token4, observer_token5): New.
1238 (struct dependency_observer_data): New struct.
1239 (observer_dependency_test_callback): New function.
1240 (test_observers): New.
1241 (run_dependency_test): New function.
1242 (test_dependency): New.
1243 (_initialize_observer_selftest): Register dependency test.
1245 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1248 * cli/cli-dump.c (dump_binary_file): Check result of
1251 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1253 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1254 by passing `process_stratum_target*` parameter.
1256 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1259 * typeprint.h (struct type_print_options): Add print_in_hex
1261 (struct print_offset_data): Add print_in_hex flag, add a
1262 constructor accepting a type_print_options* argument.
1263 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1264 default value for print_in_hex.
1265 (print_offset_data::indentation): Allow more horizontal space.
1266 (print_offset_data::print_offset_data): Add ctor.
1267 (print_offset_data::maybe_print_hole, print_offset_data::update):
1268 Handle the print_in_hex flag.
1269 (whatis_exp): Handle 'x' and 'd' flags.
1270 (print_offsets_and_sizes_in_hex): Declare.
1271 (set_print_offsets_and_sizes_in_hex): Create.
1272 (show_print_offsets_and_sizes_in_hex): Create.
1273 (_initialize_typeprint): Update help message for the ptype
1274 command, register the 'set print type hex' and 'show print type
1276 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1277 (c_type_print_base): Construct the print_offset_data
1278 object using the type_print_optons parameter.
1279 * rust-lang.c (rust_language::print_type): Construct the
1280 print_offset_data object using the type_print_optons parameter.
1281 * NEWS: Mention the new flags of the ptype command.
1283 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1285 * typeprint.h (struct type_print_options): Move before
1288 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1292 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1294 * observable.c (observer_debug): Change to bool.
1296 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1298 * dwarf2/read.c: Add 'unordered_set' include.
1299 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1300 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1301 of per_Bfd->filenames_cache cache, and use function local
1302 filenames_cache instead. Reindent.
1303 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1305 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1307 * breakpoint.c (iterate_over_bp_locations): Change callback to
1308 function view, remove data parameter.
1309 * breakpoint.h (iterate_over_bp_locations): Likewise.
1310 * record-full.c (record_full_sync_record_breakpoints): Remove
1313 2021-04-22 Tom Tromey <tom@tromey.com>
1315 * c-typeprint.c (c_type_print_base_struct_union): Use
1316 print_spaces_filtered_with_print_options.
1318 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1321 * python/py-type.c (typy_range): Check that bounds are constant
1322 before accessing them as such.
1323 * guile/scm-type.c (gdbscm_type_range): Likewise.
1325 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1327 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1328 * inferior.c (inferior::add_continuation): New method, adapted
1329 from 'add_inferior_continuation'.
1330 (inferior::do_all_continuations): New method, adapted from
1331 'do_all_inferior_continuations'.
1332 (inferior::~inferior): Clear the list of continuations directly.
1333 * inferior.h (class inferior) <continuations>: Rename into...
1334 <m_continuations>: ...this and make private.
1335 * continuations.c: Remove.
1336 * continuations.h: Remove.
1337 * event-top.c: Don't include "continuations.h".
1339 Update the users below.
1340 * inf-loop.c (inferior_event_handler)
1341 * infcmd.c (attach_command)
1342 (notice_new_inferior): Update.
1344 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1346 * inferior.h (class inferior) <continuations>: Change the type
1347 to be an std::list of std::function's.
1348 Update the references and uses below.
1349 * continuations.c (struct continuation): Delete.
1350 (make_continuation): Delete.
1351 (do_my_continuations_1): Delete.
1352 (do_my_continuations): Delete.
1353 (discard_my_continuations_1): Delete.
1354 (discard_my_continuations): Delete.
1355 (add_inferior_continuation): Update.
1356 (do_all_inferior_continuations): Update.
1357 (discard_all_inferior_continuations): Update.
1358 * continuations.h (add_inferior_continuation): Update to take
1359 an std::function as the parameter.
1360 * infcmd.c (struct attach_command_continuation_args): Delete.
1361 (attach_command_continuation): Delete.
1362 (attach_command_continuation_free_args): Delete.
1363 (attach_command): Update.
1364 (notice_new_inferior): Update.
1366 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1368 * continuations.h: Update the general comment.
1369 * inferior.h (class inferior) <continuations>: Update the comment.
1370 * interps.c: Do not include "continuations.h".
1372 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1374 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1375 parameter. Update the references below.
1376 * continuations.c (do_my_continuations_1)
1377 (do_my_continuations)
1378 (do_all_inferior_continuations): Update.
1379 * inf-loop.c (inferior_event_handler): Update.
1380 * infcmd.c (attach_command_continuation): Update.
1382 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1384 * infcmd.c (attach_post_wait): Update the function comment.
1386 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1388 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1389 Update the references below.
1390 (struct attach_command_continuation_args)
1391 (attach_command_continuation)
1392 (attach_command_continuation_free_args)
1394 (notice_new_inferior): Update to remove the reference to 'args'.
1396 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1397 Tom de Vries <tdevries@suse.de>
1400 * remote.c (remote_target_is_non_stop_p): New function.
1401 * remote.h (remote_target_is_non_stop_p): Declare.
1402 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1403 to check non-stopness using notif_state->remote rather current target.
1405 2021-04-22 Tom Tromey <tom@tromey.com>
1407 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1408 (struct typed_val_int) <val>: Now ULONGEST.
1409 (rust_parser::parse_array_type): Remove negative check.
1410 (rust_lex_int_test): Change 'value' to ULONGEST.
1412 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1414 * arch-utils.c (default_addressable_memory_unit_size): Return a
1415 value based on bfd's bits per byte.
1417 2021-04-21 Tom Tromey <tom@tromey.com>
1419 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1421 (struct dwarf2_per_cu_data): Rearrange.
1422 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1424 (struct comp_unit_head): Rearrange.
1425 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1427 2021-04-21 Tom de Vries <tdevries@suse.de>
1430 * configure.ac: Remove --without-included-regex/--with-included-regex.
1431 * config.in: Regenerate.
1432 * configure: Regenerate.
1433 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1435 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1437 * breakpoint.h (create_breakpoint): Add a new parameter,
1439 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1440 argument when 'parse_extra' is false to check if the condition
1441 is invalid at all of the breakpoint locations.
1442 Update the users below.
1448 (create_tracepoint_from_upload): Update.
1449 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1450 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1451 * python/py-breakpoint.c (bppy_init): Update.
1452 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1454 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1456 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1457 disabled-by-condition locations on MI-like output.
1458 (breakpoint_1): Do not display the disabled-by-condition footnote
1459 if the output is MI-like.
1461 2021-04-21 Frederic Cambus <fred@statdns.com>
1463 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1464 update year range in generated copyright notices.
1466 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1468 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1469 qualifier_seq_noopt.
1471 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1473 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1475 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1477 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1478 (producer_is_icc): Replace use of std::regex with gdb's
1481 2021-04-17 Tom Tromey <tom@tromey.com>
1484 * dwarf2/read.c (class offset_view): New.
1485 (struct symbol_table_slot): Remove.
1486 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1487 <symbol_name_index, symbol_vec_index>: New methods.
1488 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1490 (read_gdb_index_from_buffer): Update.
1491 (struct dw2_symtab_iterator) <vec>: Change type.
1492 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1493 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1494 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1495 <append_array, append_offset>: New methods.
1496 (write_hash_table, add_address_entry, write_gdbindex_1)
1497 (write_debug_names): Update.
1498 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1500 2021-04-17 Tom Tromey <tom@tromey.com>
1502 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1505 2021-04-17 Tom Tromey <tom@tromey.com>
1507 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1508 from map_matching_symbols. Change parameters.
1509 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1510 Rename from map_matching_symbols. Change parameters.
1511 * dwarf2/read.c (struct dwarf2_gdb_index)
1512 <expand_matching_symbols>: Rename from map_matching_symbols.
1514 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1515 Rename from map_matching_symbols. Change parameters.
1516 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1517 dw2_map_matching_symbols. Change parameters.
1518 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1520 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1521 map_matching_symbols. Change parameters.
1522 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1523 from map_matching_symbols. Change parameters.
1524 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1525 map_matching_symbols. Change parameters.
1526 * ada-lang.c (map_matching_symbols): New function.
1527 (add_nonlocal_symbols): Update.
1529 2021-04-17 Tom Tromey <tom@tromey.com>
1531 * quick-symbol.h (struct quick_symbol_functions)
1532 <expand_symtabs_with_fullname>: Remove.
1533 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1535 * psympriv.h (struct psymbol_functions)
1536 <expand_symtabs_with_fullname>: Remove.
1537 * dwarf2/read.c (struct dwarf2_base_index_functions)
1538 <expand_symtabs_with_fullname>: Remove.
1539 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1541 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1543 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1546 2021-04-17 Tom Tromey <tom@tromey.com>
1548 * symfile-debug.c (objfile::expand_symtabs_for_function):
1550 * quick-symbol.h (struct quick_symbol_functions)
1551 <expand_symtabs_for_function>: Remove.
1552 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1554 * psympriv.h (struct psymbol_functions)
1555 <expand_symtabs_for_function>: Remove.
1556 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1558 * dwarf2/read.c (struct dwarf2_gdb_index)
1559 <expand_symtabs_for_function>: Remove.
1560 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1562 (find_slot_in_mapped_hash): Remove.
1563 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1564 (dw2_symtab_iter_init): Remove one overload.
1565 (dwarf2_gdb_index::expand_symtabs_for_function)
1566 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1568 2021-04-17 Tom Tromey <tom@tromey.com>
1570 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1572 * quick-symbol.h (struct quick_symbol_functions)
1573 <map_symtabs_matching_filename>: Remove.
1574 * psymtab.c (partial_map_expand_apply)
1575 (psymbol_functions::map_symtabs_matching_filename): Remove.
1576 * psympriv.h (struct psymbol_functions)
1577 <map_symtabs_matching_filename>: Remove.
1578 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1580 * dwarf2/read.c (struct dwarf2_base_index_functions)
1581 <map_symtabs_matching_filename>: Remove.
1582 (dw2_map_expand_apply)
1583 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1586 2021-04-17 Tom Tromey <tom@tromey.com>
1588 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1589 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1591 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1592 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1593 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1594 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1596 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1597 (dwarf2_gdb_index::lookup_symbol)
1598 (dwarf2_debug_names_index::lookup_symbol): Remove.
1600 2021-04-17 Tom Tromey <tom@tromey.com>
1602 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1603 * symmisc.c (maintenance_expand_symtabs): Update.
1604 * symfile.c (expand_symtabs_matching): Update.
1605 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1607 * quick-symbol.h (struct quick_symbol_functions)
1608 <expand_symtabs_matching>: Add 'domain' parameter.
1609 * psymtab.c (recursively_search_psymtabs)
1610 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1612 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1613 Add 'domain' parameter.
1614 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1616 * linespec.c (iterate_over_all_matching_symtabs): Update.
1617 * dwarf2/read.c (struct dwarf2_gdb_index)
1618 <expand_symtabs_matching>: Add 'domain' parameter.
1619 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1621 (dw2_expand_symtabs_matching)
1622 (dwarf2_gdb_index::expand_symtabs_matching)
1623 (dw2_debug_names_iterator)
1624 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1627 2021-04-17 Tom Tromey <tom@tromey.com>
1629 * symtab.c (global_symbol_searcher::expand_symtabs)
1630 (default_collect_symbol_completion_matches_break_on): Update.
1631 * symmisc.c (maintenance_expand_symtabs): Update.
1632 * symfile.h (expand_symtabs_matching): Add search_flags
1634 * symfile.c (expand_symtabs_matching): Add search_flags
1636 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1637 search_flags parameter.
1638 * quick-symbol.h (struct quick_symbol_functions)
1639 <expand_symtabs_matching>: Add search_flags parameter.
1640 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1641 * psymtab.c (recursively_search_psymtabs)
1642 (psymbol_functions::expand_symtabs_matching): Add search_flags
1644 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1645 Add search_flags parameter.
1646 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1647 search_flags parameter.
1648 * linespec.c (iterate_over_all_matching_symtabs): Update.
1649 * dwarf2/read.c (struct dwarf2_gdb_index)
1650 <expand_symtabs_matching>: Add search_flags parameter.
1651 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1652 search_flags parameter.
1653 (dw2_map_matching_symbols): Update.
1654 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1655 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1657 (dw2_debug_names_iterator): Change block_index to search flags.
1658 <m_block_index>: Likewise.
1659 (dw2_debug_names_iterator::next)
1660 (dwarf2_debug_names_index::lookup_symbol)
1661 (dwarf2_debug_names_index::expand_symtabs_for_function)
1662 (dwarf2_debug_names_index::map_matching_symbols)
1663 (dwarf2_debug_names_index::map_matching_symbols): Update.
1664 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1665 search_flags parameter.
1666 * ada-lang.c (ada_add_global_exceptions)
1667 (collect_symbol_completion_matches): Update.
1669 2021-04-17 Tom Tromey <tom@tromey.com>
1671 * symtab.c (default_collect_symbol_completion_matches_break_on):
1673 * symfile.h (expand_symtabs_matching): Return bool.
1674 * symfile.c (expand_symtabs_matching): Return bool.
1675 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1677 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1678 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1680 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1682 * psympriv.h (struct psymbol_functions)
1683 <expand_symtabs_matching>: Return bool.
1684 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1686 * dwarf2/read.c (struct dwarf2_gdb_index)
1687 <expand_symtabs_matching>: Return bool.
1688 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1690 (dw2_expand_symtabs_matching_symbol): Return bool.
1691 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1692 (dw2_expand_symtabs_matching)
1693 (dwarf2_gdb_index::expand_symtabs_matching)
1694 (dwarf2_debug_names_index::expand_symtabs_matching)
1695 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1697 2021-04-17 Tom Tromey <tom@tromey.com>
1699 * quick-symbol.h (enum block_search_flag_values): New.
1700 (block_search_flags): New enum flags type.
1702 2021-04-16 Tom Tromey <tom@tromey.com>
1704 * rust-parse.c: New file.
1705 * rust-exp.y: Remove.
1706 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1707 (SFILES): Remove rust-exp.y.
1708 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1710 2021-04-16 Luis Machado <luis.machado@linaro.org>
1712 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1714 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1716 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1717 use throughout file.
1719 2021-04-15 Tom Tromey <tromey@adacore.com>
1721 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1724 2021-04-15 Tom Tromey <tromey@adacore.com>
1726 * printcmd.c (print_variable_and_value): Use
1727 common_val_print_checked.
1729 2021-04-15 Tom Tromey <tromey@adacore.com>
1731 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1732 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1734 * p-exp.y (variable): Update.
1735 * m2-exp.y (variable): Update.
1736 * go-exp.y (variable): Update.
1737 * expprint.c (dump_for_expression): New overload.
1738 * expop.h (check_objfile): New overload.
1739 (check_constant): New overload.
1740 (class var_value_operation): Use block_symbol.
1741 <get_symbol>: Rewrite.
1742 * eval.c (var_value_operation::evaluate)
1743 (var_value_operation::evaluate_funcall)
1744 (var_value_operation::evaluate_for_address)
1745 (var_value_operation::evaluate_for_address)
1746 (var_value_operation::evaluate_with_coercion)
1747 (var_value_operation::evaluate_for_sizeof)
1748 (var_value_operation::evaluate_for_cast): Update.
1749 * d-exp.y (PrimaryExpression): Update.
1750 * c-exp.y (variable): Update.
1751 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1752 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1753 (ada_var_value_operation::evaluate)
1754 (ada_var_value_operation::resolve)
1755 (ada_funcall_operation::resolve): Update.
1756 * ada-exp.y (write_var_from_sym, write_object_renaming)
1757 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1758 (maybe_overload): Update.
1759 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1761 2021-04-15 Tom Tromey <tom@tromey.com>
1762 Andrew Burgess <andrew.burgess@embecosm.com>
1765 * main.c (captured_main_1): Call check_quiet_mode.
1766 * top.c (startup_quiet): New global.
1767 (check_quiet_mode): New function.
1768 (show_startup_quiet): New function.
1769 (init_main): Register new command.
1770 * top.h (check_quiet_mode): Declare.
1772 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1775 * NEWS: Mention new early init files and command line options.
1776 * config.in: Regenerate.
1777 * configure: Regenerate.
1778 * configure.ac: Define GDBEARLYINIT.
1779 * main.c (get_earlyinit_files): New function.
1780 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1781 CMDARG_EARLYINIT_COMMAND.
1782 (captured_main_1): Add support for new command line flags, and for
1783 processing startup files.
1784 (print_gdb_help): Include startup files in the output.
1786 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1788 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1789 (relocate_file_path_maybe_in_datadir): ...this.
1790 (class gdb_initfile_finder): New class.
1791 (get_init_files): Now uses gdb_initfile_finder.
1792 (print_gdb_help): Print 'None found' when there are no init files.
1794 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1796 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1797 corresponding child of the abstract DIE when iterating the
1798 children of the concrete DIE.
1800 2021-04-13 Tom de Vries <tdevries@suse.de>
1802 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1805 2021-04-13 Luis Machado <luis.machado@linaro.org>
1807 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1810 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1812 * rs6000-tdep.c: Add support for single-stepping of
1813 prefixed instructions.
1815 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1818 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1819 handle the addpcis/lnia instruction.
1821 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1823 * MAINTAINERS (Write After Approval): Add myself.
1825 2021-4-12 Carl Love <cel@us.ibm.com>
1827 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1828 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1831 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1833 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1834 * nat/windows-nat.h: Likewise.
1836 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1838 * windows-nat.c (windows_nat::handle_load_dll): Call
1839 windows_add_dll if get_image_name failed to glean the name of the
1840 DLL by using the lpImageName pointer.
1841 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1842 (windows_add_dll): Now does what windows_add_all_dlls did before,
1843 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1844 specifies the address where the DLL was loaded into the inferior,
1845 and looks for the single DLL loaded at that address.
1847 2021-04-09 Luis Machado <luis.machado@linaro.org>
1849 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1851 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1853 * darwin-nat.c (darwin_nat_target::resume): Remove status
1856 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1858 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1859 prologue end for Intel compilers.
1860 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1861 * producer.c (producer_is_icc_ge_19): New function.
1862 * producer.h (producer_is_icc_ge_19): New declaration.
1864 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1866 * producer.c: (producer_is_icc): Update for new version scheme.
1867 (producer_parsing_tests): Update names and expected results.
1868 * producer.h: (producer_is_icc): Update comment accordingly.
1870 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1872 * target.h (struct target_ops) <follow_fork>: Return void.
1873 (target_follow_fork): Likewise.
1874 * target.c (default_follow_fork): Likewise.
1875 (target_follow_fork): Likewise.
1876 * infrun.c (follow_fork_inferior): Adjust.
1877 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1878 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1879 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1880 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1881 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1882 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1883 * remote.c (class remote_target) <follow_fork>: Likewise.
1884 (remote_target::follow_fork): Likewise.
1885 * target-delegates.c: Re-generate.
1887 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1889 * ctfread.c (fetch_tid_type): New function, use throughout file.
1890 (read_forward_type): New function.
1891 (read_type_record): Call read_forward_type.
1893 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1895 * f-exp.h (class fortran_structop_operation): New class.
1896 * f-exp.y (exp): Create fortran_structop_operation instead of the
1897 generic structop_operation.
1898 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1899 expression as EVAL_NORMAL if the result type was dynamic so we can
1900 extract the actual array bounds.
1901 (fortran_structop_operation::evaluate): New function.
1903 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1905 * eval.c (evaluate_subexp_standard): Remove
1906 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1909 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1911 * valops.c (value_cast): Call value_deeply_equal before performing
1914 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1916 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1919 2021-04-07 Caroline Tice <cmtice@google.com>
1921 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1922 the search paths used resolve relative location of .dwo file.
1924 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1926 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1928 (dwarf2_section_info::get_file_name): Add an assert.
1929 (dwarf2_section_info::read_string): Display a minimal, sane error
1930 when the dwarf2_section_info is not associated with a bfd section.
1932 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1934 * top.c (staged_gdb_datadir): Update comment.
1935 (set_gdb_datadir): Copy the value of gdb_datadir back into
1937 (init_main): Initialise staged_gdb_datadir.
1939 2021-04-06 Tom de Vries <tdevries@suse.de>
1941 PR breakpoints/25884
1942 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1945 2021-04-06 Tom de Vries <tdevries@suse.de>
1948 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1951 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1953 * avr-tdep.c (avr_frame_unwind_cache): Use
1954 trad_frame_saved_reg::is_addr.
1956 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1958 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1961 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1963 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1964 objfile parameter for objfile_per_bfd_storage, adjust callers.
1965 (struct standard_psymtab) <standard_psymtab>: Likewise.
1966 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1967 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1968 * ctfread.c (struct ctf_psymtab): Likewise.
1969 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1970 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1971 (dwarf2_create_include_psymtab): Likewise.
1972 * objfiles.h (struct objfile_per_bfd_storage)
1973 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1974 <get_bfd>: New method.
1976 * objfiles.c (get_objfile_bfd_data): Adjust.
1978 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1980 * psymtab.c (partial_symtab::partial_symtab): Change
1981 last_objfile_name to be an std::string.
1982 * symfile.c (allocate_symtab): Likewise.
1984 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1986 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1988 (struct objfile) <intern>: Use
1989 objfile::objfile_per_bfd_storage::intern.
1991 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1993 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1994 with type::is_flag_enum.
1996 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1998 * gdbtypes.h (struct type) <is_flag_enum,
1999 set_is_flag_enum>: New methods.
2000 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2001 write call sites to use type::set_is_flag_enum.
2003 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2005 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2006 with type::is_declared_class.
2008 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2010 * gdbtypes.h (struct type) <is_declared_class,
2011 set_is_declared_class>: New methods.
2012 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2013 write call sites to use type::set_is_declared_class.
2015 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2017 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2018 to avoid deprecation warnings.
2020 2021-04-01 Martin Liska <mliska@suse.cz>
2022 * cp-name-parser.y: Use startswith instead of strncmp.
2023 * m2-exp.y: Likewise.
2024 * macroexp.c (substitute_args): Likewise.
2025 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2026 * rust-exp.y: Likewise.
2028 2021-03-31 Tom Tromey <tom@tromey.com>
2030 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2031 with dw2_map_matching_symbols.
2032 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2033 dw2_expand_symtabs_matching.
2035 2021-03-31 Tom Tromey <tromey@adacore.com>
2037 * dwarf2/stringify.h: Fix typo.
2039 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2042 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2043 with objfiles using READNOW.
2045 2021-03-29 Tom Tromey <tromey@adacore.com>
2047 * top.c (check_frame_language_change): Update.
2048 * language.c (language_info): Remove parameter.
2049 * language.h (language_info): Remove parameter.
2051 2021-03-29 Luis Machado <luis.machado@linaro.org>
2053 * compile/compile.c (get_args): Don't add empty argv entries.
2055 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2058 * procfs.c (procfs_target::attach): Define inf.
2060 (procfs_target::create_inferior): Likewise.
2062 2021-03-28 Tom Tromey <tom@tromey.com>
2064 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2065 (elf_symfile_read): Simplify.
2066 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2067 (make_lazy_dwarf_reader): New function.
2068 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2069 (dwarf2_initialize_objfile): Return void. Remove index_kind
2070 parameter. Push on 'qf' list.
2071 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2072 type. Remove 'index_kind' parameter.
2073 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2075 2021-03-27 Tom Tromey <tom@tromey.com>
2077 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2079 2021-03-27 Tom Tromey <tom@tromey.com>
2081 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2083 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2085 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2088 2021-03-26 Tom Tromey <tom@tromey.com>
2090 * symtab.c (struct output_source_filename_data): Add 'output'
2091 method and operator().
2092 (output_source_filename_data::output): Rename from
2093 output_source_filename.
2094 (output_partial_symbol_filename): Remove.
2095 (info_sources_command): Update.
2096 (struct add_partial_filename_data): Add operator().
2097 (add_partial_filename_data::operator()): Rename from
2098 maybe_add_partial_symtab_filename.
2099 (make_source_files_completion_list): Update.
2100 * symfile.c (quick_symbol_functions): Update.
2101 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2102 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2103 'need_fullname'. Remove 'data' parameter.
2104 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2105 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2106 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2107 Change type of 'fun' and 'need_fullname'. Remove 'data'
2109 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2110 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2111 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2113 (mi_cmd_file_list_exec_source_files): Update.
2115 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2117 2021-03-26 Tom Tromey <tom@tromey.com>
2119 * ada-lang.c (struct match_data): Add operator().
2120 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2121 (callback): Remove 'callback'.
2123 2021-03-26 Tom Tromey <tom@tromey.com>
2125 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2126 call make_ignore_params once.
2128 2021-03-26 Tom Tromey <tom@tromey.com>
2130 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2133 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2134 Pedro Alves <pedro@palves.net>
2136 * async-event.c: Include "infrun.h".
2137 (async_event_handler_marked): New.
2138 * async-event.h (async_event_handler_marked): Declare.
2139 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2140 inferior before calling target method. Don't commit-resumed if
2141 target_has_pending_events is true.
2142 * remote.c (remote_target::has_pending_events): New.
2143 * target-delegates.c: Regenerate.
2144 * target.c (target_has_pending_events): New.
2145 * target.h (target_ops::has_pending_events): New target method.
2146 (target_has_pending_events): New.
2148 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2149 Pedro Alves <pedro@palves.net>
2151 * infcmd.c (run_command_1, attach_command, detach_command)
2152 (interrupt_target_1): Use scoped_disable_commit_resumed.
2153 * infrun.c (do_target_resume): Remove
2154 target_commit_resume call.
2155 (commit_resume_all_targets): Remove.
2156 (maybe_set_commit_resumed_all_targets): New.
2157 (maybe_call_commit_resumed_all_targets): New.
2158 (enable_commit_resumed): New.
2159 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2160 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2161 (scoped_disable_commit_resumed::reset)
2162 (scoped_disable_commit_resumed::reset_and_commit)
2163 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2164 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2166 (proceed): Use scoped_disable_commit_resumed and
2167 maybe_call_commit_resumed_all_targets.
2168 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2169 * infrun.h (struct scoped_disable_commit_resumed): New.
2170 (maybe_call_commit_resumed_all_process_targets): New.
2171 (struct scoped_enable_commit_resumed): New.
2172 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2173 * process-stratum-target.h (class process_stratum_target):
2174 <commit_resumed_state>: New.
2175 * record-full.c (record_full_wait_1): Change commit_resumed_state
2176 around calling commit_resumed.
2177 * remote.c (class remote_target) <commit_resume>: Rename to...
2178 <commit_resumed>: ... this.
2179 (struct stop_reply): Move up.
2180 (remote_target::commit_resume): Rename to...
2181 (remote_target::commit_resumed): ... this. Check if there is any
2182 thread pending vCont resume.
2183 (remote_target::remote_stop_ns): Generate stop replies for resumed
2184 but pending vCont threads.
2185 (remote_target::wait_ns): Add gdb_assert.
2186 * target-delegates.c: Regenerate.
2187 * target.c (target_wait, target_resume): Assert that the current
2188 process_stratum target isn't in commit-resumed state.
2189 (defer_target_commit_resume): Remove.
2190 (target_commit_resume): Remove.
2191 (target_commit_resumed): New.
2192 (make_scoped_defer_target_commit_resume): Remove.
2193 (target_stop): Assert that the current process_stratum target
2194 isn't in commit-resumed state.
2195 * target.h (struct target_ops) <commit_resume>: Rename to ...
2196 <commit_resumed>: ... this.
2197 (target_commit_resume): Remove.
2198 (target_commit_resumed): New.
2199 (make_scoped_defer_target_commit_resume): Remove.
2200 * top.c (wait_sync_command_done): Use
2201 scoped_enable_commit_resumed.
2203 2021-03-26 Pedro Alves <pedro@palves.net>
2205 * target.c (target_always_non_stop_p): Also check whether the
2208 2021-03-26 Tom Tromey <tom@tromey.com>
2210 * dwarf2/read.c (dwarf2_read_debug_names)
2211 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2212 (dw2_debug_names_iterator::next, create_type_unit_group):
2215 2021-03-25 Pedro Alves <pedro@palves.net>
2217 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2218 around setting the breakpoint.
2220 2021-03-25 Pedro Alves <pedro@palves.net>
2223 (remote_target::check_pending_events_prevent_wildcard_vcont):
2224 Check whether the event's ptid is not null_ptid before looking up
2225 the corresponding inferior.
2227 2021-03-24 Changbin Du <changbin.du@gmail.com>
2229 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2232 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2234 * target.h (current_top_target): Remove, make callers use the
2235 current inferior instead.
2236 * target.c (current_top_target): Remove.
2238 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2240 * target.h (target_shortname): Change to function declaration.
2241 (target_longname): Likewise.
2242 (target_attach_no_wait): Likewise.
2243 (target_post_attach): Likewise.
2244 (target_prepare_to_store): Likewise.
2245 (target_supports_enable_disable_tracepoint): Likewise.
2246 (target_supports_string_tracing): Likewise.
2247 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2248 (target_supports_dumpcore): Likewise.
2249 (target_dumpcore): Likewise.
2250 (target_can_run_breakpoint_commands): Likewise.
2251 (target_files_info): Likewise.
2252 (target_post_startup_inferior): Likewise.
2253 (target_insert_fork_catchpoint): Likewise.
2254 (target_remove_fork_catchpoint): Likewise.
2255 (target_insert_vfork_catchpoint): Likewise.
2256 (target_remove_vfork_catchpoint): Likewise.
2257 (target_insert_exec_catchpoint): Likewise.
2258 (target_remove_exec_catchpoint): Likewise.
2259 (target_set_syscall_catchpoint): Likewise.
2260 (target_rcmd): Likewise.
2261 (target_can_lock_scheduler): Likewise.
2262 (target_can_async_p): Likewise.
2263 (target_is_async_p): Likewise.
2264 (target_execution_direction): Likewise.
2265 (target_extra_thread_info): Likewise.
2266 (target_pid_to_exec_file): Likewise.
2267 (target_thread_architecture): Likewise.
2268 (target_find_memory_regions): Likewise.
2269 (target_make_corefile_notes): Likewise.
2270 (target_get_bookmark): Likewise.
2271 (target_goto_bookmark): Likewise.
2272 (target_stopped_by_watchpoint): Likewise.
2273 (target_stopped_by_sw_breakpoint): Likewise.
2274 (target_supports_stopped_by_sw_breakpoint): Likewise.
2275 (target_stopped_by_hw_breakpoint): Likewise.
2276 (target_supports_stopped_by_hw_breakpoint): Likewise.
2277 (target_have_steppable_watchpoint): Likewise.
2278 (target_can_use_hardware_watchpoint): Likewise.
2279 (target_region_ok_for_hw_watchpoint): Likewise.
2280 (target_can_do_single_step): Likewise.
2281 (target_insert_watchpoint): Likewise.
2282 (target_remove_watchpoint): Likewise.
2283 (target_insert_hw_breakpoint): Likewise.
2284 (target_remove_hw_breakpoint): Likewise.
2285 (target_can_accel_watchpoint_condition): Likewise.
2286 (target_can_execute_reverse): Likewise.
2287 (target_get_ada_task_ptid): Likewise.
2288 (target_filesystem_is_local): Likewise.
2289 (target_trace_init): Likewise.
2290 (target_download_tracepoint): Likewise.
2291 (target_can_download_tracepoint): Likewise.
2292 (target_download_trace_state_variable): Likewise.
2293 (target_enable_tracepoint): Likewise.
2294 (target_disable_tracepoint): Likewise.
2295 (target_trace_start): Likewise.
2296 (target_trace_set_readonly_regions): Likewise.
2297 (target_get_trace_status): Likewise.
2298 (target_get_tracepoint_status): Likewise.
2299 (target_trace_stop): Likewise.
2300 (target_trace_find): Likewise.
2301 (target_get_trace_state_variable_value): Likewise.
2302 (target_save_trace_data): Likewise.
2303 (target_upload_tracepoints): Likewise.
2304 (target_upload_trace_state_variables): Likewise.
2305 (target_get_raw_trace_data): Likewise.
2306 (target_get_min_fast_tracepoint_insn_len): Likewise.
2307 (target_set_disconnected_tracing): Likewise.
2308 (target_set_circular_trace_buffer): Likewise.
2309 (target_set_trace_buffer_size): Likewise.
2310 (target_set_trace_notes): Likewise.
2311 (target_get_tib_address): Likewise.
2312 (target_set_permissions): Likewise.
2313 (target_static_tracepoint_marker_at): Likewise.
2314 (target_static_tracepoint_markers_by_strid): Likewise.
2315 (target_traceframe_info): Likewise.
2316 (target_use_agent): Likewise.
2317 (target_can_use_agent): Likewise.
2318 (target_augmented_libraries_svr4_read): Likewise.
2319 (target_log_command): Likewise.
2320 * target.c (target_shortname): New.
2321 (target_longname): New.
2322 (target_attach_no_wait): New.
2323 (target_post_attach): New.
2324 (target_prepare_to_store): New.
2325 (target_supports_enable_disable_tracepoint): New.
2326 (target_supports_string_tracing): New.
2327 (target_supports_evaluation_of_breakpoint_conditions): New.
2328 (target_supports_dumpcore): New.
2329 (target_dumpcore): New.
2330 (target_can_run_breakpoint_commands): New.
2331 (target_files_info): New.
2332 (target_post_startup_inferior): New.
2333 (target_insert_fork_catchpoint): New.
2334 (target_remove_fork_catchpoint): New.
2335 (target_insert_vfork_catchpoint): New.
2336 (target_remove_vfork_catchpoint): New.
2337 (target_insert_exec_catchpoint): New.
2338 (target_remove_exec_catchpoint): New.
2339 (target_set_syscall_catchpoint): New.
2341 (target_can_lock_scheduler): New.
2342 (target_can_async_p): New.
2343 (target_is_async_p): New.
2344 (target_execution_direction): New.
2345 (target_extra_thread_info): New.
2346 (target_pid_to_exec_file): New.
2347 (target_thread_architecture): New.
2348 (target_find_memory_regions): New.
2349 (target_make_corefile_notes): New.
2350 (target_get_bookmark): New.
2351 (target_goto_bookmark): New.
2352 (target_stopped_by_watchpoint): New.
2353 (target_stopped_by_sw_breakpoint): New.
2354 (target_supports_stopped_by_sw_breakpoint): New.
2355 (target_stopped_by_hw_breakpoint): New.
2356 (target_supports_stopped_by_hw_breakpoint): New.
2357 (target_have_steppable_watchpoint): New.
2358 (target_can_use_hardware_watchpoint): New.
2359 (target_region_ok_for_hw_watchpoint): New.
2360 (target_can_do_single_step): New.
2361 (target_insert_watchpoint): New.
2362 (target_remove_watchpoint): New.
2363 (target_insert_hw_breakpoint): New.
2364 (target_remove_hw_breakpoint): New.
2365 (target_can_accel_watchpoint_condition): New.
2366 (target_can_execute_reverse): New.
2367 (target_get_ada_task_ptid): New.
2368 (target_filesystem_is_local): New.
2369 (target_trace_init): New.
2370 (target_download_tracepoint): New.
2371 (target_can_download_tracepoint): New.
2372 (target_download_trace_state_variable): New.
2373 (target_enable_tracepoint): New.
2374 (target_disable_tracepoint): New.
2375 (target_trace_start): New.
2376 (target_trace_set_readonly_regions): New.
2377 (target_get_trace_status): New.
2378 (target_get_tracepoint_status): New.
2379 (target_trace_stop): New.
2380 (target_trace_find): New.
2381 (target_get_trace_state_variable_value): New.
2382 (target_save_trace_data): New.
2383 (target_upload_tracepoints): New.
2384 (target_upload_trace_state_variables): New.
2385 (target_get_raw_trace_data): New.
2386 (target_get_min_fast_tracepoint_insn_len): New.
2387 (target_set_disconnected_tracing): New.
2388 (target_set_circular_trace_buffer): New.
2389 (target_set_trace_buffer_size): New.
2390 (target_set_trace_notes): New.
2391 (target_get_tib_address): New.
2392 (target_set_permissions): New.
2393 (target_static_tracepoint_marker_at): New.
2394 (target_static_tracepoint_markers_by_strid): New.
2395 (target_traceframe_info): New.
2396 (target_use_agent): New.
2397 (target_can_use_agent): New.
2398 (target_augmented_libraries_svr4_read): New.
2399 (target_log_command): New.
2400 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2401 * infrun.c (set_schedlock_func): Adjust.
2402 * mi/mi-main.c (exec_reverse_continue): Adjust.
2403 * reverse.c (exec_reverse_once): Adjust.
2404 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2405 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2406 * remote-sim.c (gdbsim_target::detach): Adjust.
2407 (gdbsim_target::files_info): Adjust.
2409 2021-03-24 Tom Tromey <tom@tromey.com>
2411 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2412 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2413 (check_match, dw2_expand_symtabs_matching)
2414 (dwarf2_debug_names_index::map_matching_symbols)
2415 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2417 2021-03-24 Keith Seitz <keiths@redhat.com>
2419 * compile/compile-cplus-types.c
2420 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2423 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2425 * gdbarch.sh (gdbarch_data_registry): Make static.
2426 * gdbarch.c: Re-generate.
2428 2021-03-24 Luis Machado <luis.machado@linaro.org>
2430 * NEWS: Mention memory tagging changes.
2432 2021-03-24 Luis Machado <luis.machado@linaro.org>
2434 * printcmd.c (decode_format): Handle the 'm' modifier.
2435 (do_examine): Display allocation tags when required/supported.
2436 (should_validate_memtags): New function.
2437 (print_command_1): Display memory tag mismatches.
2438 * valprint.c (show_memory_tag_violations): New function.
2439 (value_print_option_defs): Add new option "memory-tag-violations".
2440 (user_print_options) <memory_tag_violations>: Initialize to 1.
2441 * valprint.h (struct format_data) <print_tags>: New field.
2442 (value_print_options) <memory_tag_violations>: New field.
2444 2021-03-24 Luis Machado <luis.machado@linaro.org>
2446 * printcmd.c: Include gdbsupport/rsp-low.h.
2447 (memory_tag_list): New static global.
2448 (process_print_command_args): Factored out of
2450 (print_command_1): Use process_print_command_args.
2451 (show_addr_not_tagged, show_memory_tagging_unsupported)
2452 (memory_tag_command, memory_tag_print_tag_command)
2453 (memory_tag_print_logical_tag_command)
2454 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2455 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2456 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2458 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2460 2021-03-24 Luis Machado <luis.machado@linaro.org>
2462 * aarch64-linux-tdep.c
2463 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2464 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2466 2021-03-24 Luis Machado <luis.machado@linaro.org>
2468 * aarch64-linux-tdep.c
2469 (aarch64_linux_report_signal_info): New function.
2470 (aarch64_linux_init_abi): Register
2471 aarch64_linux_report_signal_info as the report_signal_info hook.
2472 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2473 (SEGV_MTESERR): Define.
2475 2021-03-24 Luis Machado <luis.machado@linaro.org>
2477 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2478 (aarch64_linux_ltag_tests): New function.
2479 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2481 2021-03-24 Luis Machado <luis.machado@linaro.org>
2483 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2484 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2485 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2486 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2488 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2489 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2490 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2491 (aarch64_linux_get_ltag): New functions.
2492 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2493 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2494 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2495 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2497 2021-03-24 Luis Machado <luis.machado@linaro.org>
2499 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2501 (struct smaps_data): New struct.
2502 (decode_vmflags): Handle the 'mt' flag.
2503 (parse_smaps_data): New function, refactored from
2504 linux_find_memory_regions_full.
2505 (linux_address_in_memtag_page): New function.
2506 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2507 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2509 2021-03-24 Luis Machado <luis.machado@linaro.org>
2511 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2512 instead of char arrays.
2514 2021-03-24 Luis Machado <luis.machado@linaro.org>
2516 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2517 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2518 nat/aarch64-mte-linux-ptrace.h.
2519 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2520 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2522 <fetch_memtags>: New method override.
2523 <store_memtags>: New method override.
2524 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2525 (aarch64_linux_nat_target::fetch_memtags): New method.
2526 (aarch64_linux_nat_target::store_memtags): New method.
2527 * arch/aarch64-mte-linux.c: New file.
2528 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2529 (AARCH64_MTE_GRANULE_SIZE): Define.
2530 (aarch64_memtag_type): New enum.
2531 (aarch64_mte_get_tag_granules): New prototype.
2532 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2533 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2534 * nat/aarch64-mte-linux-ptrace.c: New file.
2535 * nat/aarch64-mte-linux-ptrace.h: New file.
2537 2021-03-24 Luis Machado <luis.machado@linaro.org>
2539 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2540 * nat/aarch64-mte-linux-ptrace.h: New file.
2542 2021-03-24 Luis Machado <luis.machado@linaro.org>
2544 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2545 (store_mteregs_to_thread): New function.
2546 (aarch64_linux_nat_target::fetch_registers): Update to call
2547 fetch_mteregs_from_thread.
2548 (aarch64_linux_nat_target::store_registers): Update to call
2549 store_mteregs_to_thread.
2550 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2551 (aarch64_cannot_store_register): Handle MTE registers.
2552 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2553 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2554 <has_mte>: New method.
2555 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2557 2021-03-24 Luis Machado <luis.machado@linaro.org>
2559 * aarch64-linux-nat.c
2560 (aarch64_linux_nat_target::read_description): Take MTE flag into
2562 Slight refactor to hwcap flag checking.
2563 * aarch64-linux-tdep.c
2564 (aarch64_linux_core_read_description): Likewise.
2565 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2567 (aarch64_read_description): Add mte_p parameter and update to use it.
2568 Update the documentation.
2569 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2570 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2571 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2572 (aarch64_create_target_description): Add mte_p parameter and update
2574 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2576 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2577 * features/aarch64-mte.c: New file, generated.
2578 * features/aarch64-mte.xml: New file.
2580 2021-03-24 Luis Machado <luis.machado@linaro.org>
2582 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2583 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2584 * aarch64-linux-tdep.c: Likewise
2585 * arch/aarch64-mte-linux.h: New file.
2587 2021-03-24 Luis Machado <luis.machado@linaro.org>
2589 * remote: Include gdbsupport/selftest.h.
2590 (test_memory_tagging_functions): New function.
2591 (_initialize_remote): Register test_memory_tagging_functions.
2593 2021-03-24 Luis Machado <luis.machado@linaro.org>
2595 * remote.c (PACKET_memory_tagging_feature): New enum.
2596 (remote_memory_tagging_p): New function.
2597 (remote_protocol_features): New "memory-tagging" entry.
2598 (remote_target::remote_query_supported): Handle memory tagging
2600 (remote_target::supports_memory_tagging): Implement.
2601 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2602 (create_store_memtags_request): New functions.
2603 (remote_target::fetch_memtags): Implement.
2604 (remote_target::store_memtags): Implement.
2605 (_initialize_remote): Add new "memory-tagging-feature"
2608 2021-03-24 Luis Machado <luis.machado@linaro.org>
2610 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2611 (default_memtag_matches_p, default_set_memtags)
2612 (default_get_memtag): New functions.
2613 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2614 (default_memtag_matches_p, default_set_memtags)
2615 (default_get_memtag): New prototypes.
2616 * gdbarch.c: Regenerate.
2617 * gdbarch.h: Regenerate.
2618 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2619 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2620 (enum memtag_type): New enum.
2622 2021-03-24 Luis Machado <luis.machado@linaro.org>
2624 * remote.c (remote_target) <supports_memory_tagging>: New method
2626 <fetch_memtags>: New method override.
2627 <store_memtags>: New method override.
2628 (remote_target::supports_memory_tagging): New method.
2629 (remote_target::fetch_memtags): New method.
2630 (remote_target::store_memtags): New method.
2631 * target-delegates.c: Regenerate.
2632 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2634 <fetch_memtags>: New virtual method.
2635 <store_memtags>: New virtual method.
2636 (target_supports_memory_tagging): Define.
2637 (target_fetch_memtags): Define.
2638 (target_store_memtags): Define.
2639 * target-debug.h (target_debug_print_size_t)
2640 (target_debug_print_const_gdb_byte_vector_r)
2641 (target_debug_print_gdb_byte_vector_r): New functions.
2643 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2645 * target.h (target_longname): Remove.
2647 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2649 * target.h (target_is_pushed): Remove, update callers to use
2650 inferior::target_is_pushed instead.
2651 * target.c (target_is_pushed): Remove.
2653 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2655 * target.h (push_target): Remove, update callers to use
2656 inferior::push_target.
2657 * target.c (push_target): Remove.
2658 * inferior.h (class inferior) <push_target>: New overload.
2660 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2662 * target.h (unpush_target): Remove, update all callers
2663 to use `inferior::unpush_target` instead.
2664 (struct target_unpusher) <operator()>: Just declare.
2665 * target.c (unpush_target): Remove.
2666 (target_unpusher::operator()): New.
2668 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2670 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2672 (process_full_comp_unit): Validate the top-level tag before
2673 processing the first DIE.
2674 (read_func_scope): Ensure we have a valid builder.
2676 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2678 * objc-lang.c (objc_demangle): Renamed to
2679 objc_language::demangle_symbol, and moved later in the file.
2680 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2682 (objc_language::demangle_symbol): Defined outside of class
2683 declaration. The definition is the old objc_demangle with NULL
2684 changed to nullptr, and if conditions relating to nullptr pointers
2685 or null character checks made explicit.
2686 * objc-lang.h (objc_demangle): Delete declaration.
2688 2021-03-22 Martin Liska <mliska@suse.cz>
2690 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2691 (_initialize_arm_tdep): Likewise.
2693 2021-03-20 Tom Tromey <tom@tromey.com>
2695 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2696 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2697 * psymtab.h (make_psymbol_functions): Don't declare.
2698 * psymtab.c (make_psymbol_functions): Remove.
2699 (maintenance_print_psymbols): Update.
2700 * psympriv.h (struct psymbol_functions): Add no-argument
2702 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2703 <partial_symtabs>: Remove.
2704 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2705 * elfread.c (read_partial_symbols): Update.
2706 (elf_symfile_read): Remove check for existing partial symbols.
2708 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2710 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2712 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2714 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2715 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2717 2021-03-20 Tom Tromey <tom@tromey.com>
2719 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2720 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2721 * symfile-debug.c (objfile::has_partial_symbols)
2722 (objfile::find_last_source_symtab)
2723 (objfile::forget_cached_source_info)
2724 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2725 (objfile::print_stats, objfile::dump)
2726 (objfile::expand_symtabs_for_function)
2727 (objfile::expand_all_symtabs)
2728 (objfile::expand_symtabs_with_fullname)
2729 (objfile::map_matching_symbols)
2730 (objfile::expand_symtabs_matching)
2731 (objfile::find_pc_sect_compunit_symtab)
2732 (objfile::map_symbol_filenames)
2733 (objfile::find_compunit_symtab_by_address)
2734 (objfile::lookup_global_symbol_language)
2735 (objfile::require_partial_symbols): Update.
2736 * psymtab.c (maintenance_print_psymbols)
2737 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2738 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2739 * objfiles.c (objfile_relocate1): Update.
2740 * elfread.c (elf_symfile_read): Update.
2742 2021-03-20 Tom Tromey <tom@tromey.com>
2744 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2746 2021-03-20 Tom Tromey <tom@tromey.com>
2748 * psymtab.c (psymbol_functions::count_psyms): Rename.
2749 (psymbol_functions::print_stats): Update.
2750 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2753 2021-03-20 Tom Tromey <tom@tromey.com>
2755 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2756 (psymbol_functions::find_pc_sect_psymtab): Rename.
2757 (psymbol_functions::find_pc_sect_compunit_symtab)
2758 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2759 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2761 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2763 2021-03-20 Tom Tromey <tom@tromey.com>
2765 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2766 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2767 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2769 (add_psymbol_to_bcache): Remove.
2770 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2771 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2773 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2774 <add_psymbol>: Likewise.
2775 (standard_psymtab, legacy_psymtab): Likewise.
2776 * mdebugread.c (parse_partial_symbols): Update.
2777 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2778 (handle_psymbol_enumerators): Update.
2779 (new_psymtab): Add partial_symtabs parameter.
2780 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2781 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2783 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2784 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2786 * dbxread.c (read_dbx_symtab): Update.
2787 (start_psymtab): Add partial_symtabs parameter.
2788 (dbx_end_psymtab): Update.
2789 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2790 (ctf_psymtab): Add partial_symtabs parameter.
2791 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2793 (scan_partial_symbols): Add partial_symtabs parameter.
2794 (scan_partial_symbols, elfctf_build_psymtabs)
2795 (ctf_psymtab_add_enums): Update.
2797 2021-03-20 Tom Tromey <tom@tromey.com>
2799 * symfile.c (read_symbols): Use objfile method.
2800 * symfile-debug.c (objfile::require_partial_symbols): New method.
2801 * psymtab.h (require_partial_symbols): Don't declare.
2802 * psymtab.c (require_partial_symbols): Use objfile method. Now
2804 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2805 (psymbol_functions::lookup_symbol)
2806 (psymbol_functions::lookup_global_symbol_language)
2807 (psymbol_functions::find_last_source_symtab)
2808 (psymbol_functions::forget_cached_source_info)
2809 (psymbol_functions::print_stats)
2810 (psymbol_functions::expand_symtabs_for_function)
2811 (psymbol_functions::expand_all_symtabs)
2812 (psymbol_functions::expand_symtabs_with_fullname)
2813 (psymbol_functions::map_symbol_filenames)
2814 (psymbol_functions::map_matching_symbols)
2815 (psymbol_functions::expand_symtabs_matching)
2816 (psymbol_functions::find_compunit_symtab_by_address)
2817 (maintenance_print_psymbols, maintenance_info_psymtabs)
2818 (maintenance_check_psymtabs): Update.
2819 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2822 2021-03-20 Tom Tromey <tom@tromey.com>
2824 * xcoffread.c (xcoff_sym_fns): Update.
2825 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2826 * symfile-debug.c (objfile::has_partial_symbols): Use
2827 can_lazily_read_symbols.
2828 (debug_sym_read_psymbols): Remove.
2829 (debug_sym_fns, install_symfile_debug_logging): Update.
2830 * quick-symbol.h (struct quick_symbol_functions)
2831 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2832 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2833 * mipsread.c (ecoff_sym_fns): Update.
2834 * machoread.c (macho_sym_fns): Update.
2835 * elfread.c (struct lazy_dwarf_reader): New.
2836 (elf_symfile_read): Update.
2837 (read_psyms): Now a method of lazy_dwarf_reader.
2838 (elf_sym_fns): Update.
2839 (elf_sym_fns_lazy_psyms): Remove.
2840 * dbxread.c (aout_sym_fns): Update.
2841 * coffread.c (coff_sym_fns): Update.
2843 2021-03-20 Tom Tromey <tom@tromey.com>
2845 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2846 (reread_symbols): Move reset_psymtabs call later.
2847 * objfiles.c (objfile::objfile): Don't initialize
2850 2021-03-20 Tom Tromey <tom@tromey.com>
2852 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2853 set_partial_symtabs.
2854 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2855 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2857 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2859 (psymbol_functions::find_pc_sect_compunit_symtab)
2860 (psymbol_functions::print_stats, psymbol_functions::dump)
2861 (psymbol_functions::has_symbols): Update.
2862 (make_psymbol_functions, dump_psymtab_addrmap): Add
2863 partial_symtabs parameter.
2864 (maintenance_print_psymbols): Update.
2865 (psymbol_functions::expand_symtabs_matching): Update.
2866 * psympriv.h (struct psymbol_functions): Add constructor.
2867 <m_partial_symtabs>: New member.
2868 <set_partial_symtabs>: New method.
2870 2021-03-20 Tom Tromey <tom@tromey.com>
2872 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2874 (process_psymtab_comp_unit_reader)
2875 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2876 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2877 Reference psymtabs via per_bfd.
2879 2021-03-20 Tom Tromey <tom@tromey.com>
2881 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2883 (add_address_entry): Remove objfile parameter.
2884 (add_address_entry_worker): Update.
2885 (write_address_map): Replace objfile parameter with per_bfd.
2886 (write_gdbindex, write_psymtabs_to_index): Update.
2888 2021-03-20 Tom Tromey <tom@tromey.com>
2890 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2891 print_bcache parameter.
2892 * symfile-debug.c (objfile::print_stats): Add print_bcache
2894 * quick-symbol.h (struct quick_symbol_functions)
2895 <print_stats>: Add print_bcache parameter.
2896 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2898 (print_objfile_statistics): Move psymtab code to psymtab.c.
2899 * psymtab.c (count_psyms): Move from symmisc.c.
2900 (psymbol_functions::print_stats): Print partial symbol and bcache
2901 statistics. Add print_bcache parameter.
2902 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2903 (struct objfile) <print_stats>: Add print_bcache parameter.
2904 * maint.c (maintenance_print_statistics): Update.
2906 2021-03-20 Tom Tromey <tom@tromey.com>
2908 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2910 * dwarf2/read.c (create_addrmap_from_index)
2911 (create_addrmap_from_aranges): Set per_bfd addrmap.
2912 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2913 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2915 (dwarf2_read_debug_names): Don't set partial_symtabs.
2916 (dwarf2_initialize_objfile): Likewise.
2918 2021-03-20 Tom Tromey <tom@tromey.com>
2920 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2923 2021-03-20 Tom Tromey <tom@tromey.com>
2925 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2926 (~psymtab_discarder, keep): Update.
2927 <m_objfile>: Remove.
2928 <m_partial_symtabs>: New member.
2929 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2931 2021-03-20 Tom Tromey <tom@tromey.com>
2933 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2934 (xcoff_end_psymtab): Update.
2935 (scan_xcoff_symtab): Add partial_symtabs parameter.
2936 (xcoff_initial_scan): Update.
2937 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2938 * mdebugread.c (mdebug_build_psymtabs): Update.
2939 (parse_partial_symbols): Add partial_symtabs parameter.
2940 * dbxread.c (dbx_symfile_read): Update.
2941 (read_dbx_symtab): Add partial_symtabs parameter.
2942 (read_dbx_symtab): Update.
2943 (dbx_end_psymtab): Add partial_symtabs parameter.
2945 2021-03-20 Tom Tromey <tom@tromey.com>
2947 * quick-symbol.h (struct quick_symbol_functions)
2948 <relocated>: New method.
2949 * psymtab.h (struct psymbol_functions) <relocated>: New
2951 <fill_psymbol_map>: Declare method.
2952 <m_psymbol_map>: New member.
2953 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2954 (psymbol_functions::find_compunit_symtab_by_address): Update.
2955 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2956 (struct objfile) <psymbol_map>: Remove.
2957 * objfiles.c (objfile_relocate1): Update.
2959 2021-03-20 Tom Tromey <tom@tromey.com>
2961 * psympriv.h (struct psymbol_functions): New.
2962 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2963 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2964 (objfile::lookup_global_symbol_language): Update.
2965 * quick-symbol.h (struct quick_symbol_functions): Convert function
2966 pointers to methods. Add virtual destructor.
2967 (quick_symbol_functions_up): New typedef.
2968 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2969 (dwarf2_debug_names_functions): Don't declare.
2970 (make_psymbol_functions): Declare.
2971 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2972 (psymbol_functions::find_pc_sect_compunit_symtab)
2973 (psymbol_functions::lookup_symbol)
2974 (psymbol_functions::lookup_global_symbol_language)
2975 (psymbol_functions::find_last_source_symtab)
2976 (psymbol_functions::forget_cached_source_info)
2977 (psymbol_functions::print_stats, psymbol_functions::dump)
2978 (psymbol_functions::expand_symtabs_for_function)
2979 (psymbol_functions::expand_all_symtabs)
2980 (psymbol_functions::expand_symtabs_with_fullname)
2981 (psymbol_functions::map_symbol_filenames)
2982 (psymbol_functions::map_matching_symbols)
2983 (psymbol_functions::expand_symtabs_matching)
2984 (psymbol_functions::has_symbols)
2985 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2986 (psym_functions): Remove.
2987 (make_psymbol_functions): New function.
2988 * objfiles.h (struct objfile) <qf>: Change type.
2989 * elfread.c (elf_symfile_read): Update.
2990 * dwarf2/read.c (struct dwarf2_base_index_functions)
2991 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2992 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2993 (dwarf2_base_index_functions::find_last_source_symtab)
2994 (dwarf2_base_index_functions::forget_cached_source_info)
2995 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2996 (dwarf2_gdb_index::lookup_symbol)
2997 (dwarf2_base_index_functions::print_stats)
2998 (dwarf2_gdb_index::dump)
2999 (dwarf2_gdb_index::expand_symtabs_for_function)
3000 (dwarf2_base_index_functions::expand_all_symtabs)
3001 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3003 (dwarf2_gdb_index::map_matching_symbols): New method.
3004 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3005 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3006 (dwarf2_base_index_functions::map_symbol_filenames)
3007 (dwarf2_base_index_functions::has_symbols): Rename.
3008 (dwarf2_gdb_index_functions): Remove.
3009 (dwarf2_debug_names_index::lookup_symbol)
3010 (dwarf2_debug_names_index::dump)
3011 (dwarf2_debug_names_index::expand_symtabs_for_function)
3012 (dwarf2_debug_names_index::map_matching_symbols)
3013 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3014 (dwarf2_debug_names_functions): Remove.
3015 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3018 2021-03-20 Tom Tromey <tom@tromey.com>
3020 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3022 * xcoffread.c (xcoff_sym_fns): Update.
3023 * symfile.h (struct sym_fns) <qf>: Remove.
3024 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3025 * symfile-debug.c (objfile::has_partial_symbols)
3026 (objfile::find_last_source_symtab)
3027 (objfile::forget_cached_source_info)
3028 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3029 (objfile::print_stats, objfile::dump)
3030 (objfile::expand_symtabs_for_function)
3031 (objfile::expand_all_symtabs)
3032 (objfile::expand_symtabs_with_fullname)
3033 (objfile::map_matching_symbols)
3034 (objfile::expand_symtabs_matching)
3035 (objfile::find_pc_sect_compunit_symtab)
3036 (objfile::map_symbol_filenames)
3037 (objfile::find_compunit_symtab_by_address)
3038 (objfile::lookup_global_symbol_language, debug_sym_fns)
3039 (install_symfile_debug_logging): Update.
3040 * objfiles.h (struct objfile) <qf>: New member.
3041 * mipsread.c (ecoff_sym_fns): Update.
3042 * machoread.c (macho_sym_fns): Update.
3043 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3045 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3046 * dbxread.c (aout_sym_fns): Update.
3047 * coffread.c (coff_sym_fns): Update.
3049 2021-03-20 Tom Tromey <tom@tromey.com>
3051 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3052 (expand_symtabs_file_matcher_ftype)
3053 (expand_symtabs_symbol_matcher_ftype)
3054 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3055 Move to quick-symbol.h.
3056 * quick-symbol.h: New file.
3058 2021-03-20 Tom Tromey <tom@tromey.com>
3060 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3061 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3062 (basic_lookup_transparent_type_quick)
3063 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3064 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3066 * symmisc.c (print_objfile_statistics, dump_objfile)
3067 (maintenance_expand_symtabs): Update.
3068 * symfile.c (symbol_file_add_with_addrs)
3069 (expand_symtabs_matching, map_symbol_filenames): Update.
3070 * symfile-debug.c (objfile::has_partial_symbols)
3071 (objfile::find_last_source_symtab)
3072 (objfile::forget_cached_source_info)
3073 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3074 (objfile::print_stats, objfile::dump)
3075 (objfile::expand_symtabs_for_function)
3076 (objfile::expand_all_symtabs)
3077 (objfile::expand_symtabs_with_fullname)
3078 (objfile::map_matching_symbols)
3079 (objfile::expand_symtabs_matching)
3080 (objfile::find_pc_sect_compunit_symtab)
3081 (objfile::map_symbol_filenames)
3082 (objfile::find_compunit_symtab_by_address)
3083 (objfile::lookup_global_symbol_language): New methods.
3084 (debug_sym_quick_functions): Remove.
3085 (debug_sym_fns, install_symfile_debug_logging): Update.
3086 * source.c (forget_cached_source_info_for_objfile)
3087 (select_source_symtab): Update.
3088 * objfiles.h (struct objfile): Add methods corresponding to
3089 quick_symbol_functions.
3090 * objfiles.c (objfile::has_partial_symbols): Move to
3092 * linespec.c (iterate_over_all_matching_symtabs): Update.
3093 * cp-support.c (add_symbol_overload_list_qualified): Update.
3094 * ada-lang.c (add_nonlocal_symbols): Update.
3096 2021-03-20 Tom Tromey <tom@tromey.com>
3098 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3099 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3101 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3102 * psymtab.c (psym_has_symbols): Return bool.
3103 * objfiles.c (objfile::has_partial_symbols): Return bool.
3104 * dwarf2/read.c (dw2_has_symbols): Return bool.
3106 2021-03-20 Tom Tromey <tom@tromey.com>
3108 * symfile.c (read_symbols): Update.
3109 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3110 (objfile_has_partial_symbols): Don't declare.
3111 * objfiles.c (objfile::has_partial_symbols): Rename from
3112 objfile_has_partial_symbols.
3113 (objfile_has_symbols, have_partial_symbols): Update.
3114 * elfread.c (elf_symfile_read): Update.
3115 * dwarf2/read.c (dwarf2_has_info): Update.
3116 * coffread.c (coff_symfile_read): Update.
3118 2021-03-20 Tom Tromey <tom@tromey.com>
3120 * coffread.c: Include dwarf2/public.h.
3121 * dwarf2/frame.c: Include dwarf2/public.h.
3122 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3123 * dwarf2/public.h: New file.
3124 * dwarf2/read.c: Include dwarf2/public.h.
3125 * elfread.c: Include dwarf2/public.h.
3126 * machoread.c: Include dwarf2/public.h.
3127 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3128 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3129 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3130 * xcoffread.c: Include dwarf2/public.h.
3132 2021-03-20 Tom Tromey <tom@tromey.com>
3134 * symfile.h (enum dwarf2_section_enum)
3135 (dwarf2_get_section_info): Move to dwarf2/read.h.
3136 * dwarf2/read.h (enum dwarf2_section_enum)
3137 (dwarf2_get_section_info): Move from symfile.h.
3139 2021-03-19 Pedro Alves <pedro@palves.net>
3141 * thread.c (any_thread_of_inferior): Check if there's a selected
3142 thread before calling inferior_thread().
3144 2021-03-18 Tom Tromey <tromey@adacore.com>
3146 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3148 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3149 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3151 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3153 * python/py-param.c (get_set_value): Update header comment.
3155 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3157 * infrun.c (check_multi_target_resumption): Remove argument to
3158 all_non_exited_inferiors.
3160 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3162 * windows-nat.c (windows_init_thread_list): Add message to
3165 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3167 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3168 well as PyLong_Check for Python 2.
3170 2021-03-15 Tom Tromey <tromey@adacore.com>
3173 * rust-exp.y (maker_map): Use gdb::hash_enum.
3174 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3176 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3178 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3181 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3183 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3184 parameter, adjust caller.
3186 2021-03-15 Tom Tromey <tromey@adacore.com>
3188 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3190 2021-03-15 Tom Tromey <tromey@adacore.com>
3192 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3193 ada_ensure_varsize_limit.
3195 2021-03-15 Tom Tromey <tromey@adacore.com>
3197 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3199 * ada-exp.y (maybe_overload): New function.
3200 (ada_wrap_overload): New function.
3201 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3202 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3203 (or_else_exp, xor_exp, primary): Update.
3205 2021-03-15 Tom Tromey <tromey@adacore.com>
3208 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3209 call for tagged type.
3211 2021-03-15 Tom Tromey <tromey@adacore.com>
3213 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3216 2021-03-15 Tom Tromey <tromey@adacore.com>
3218 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3220 (ada_assign_operation::evaluate): Update.
3221 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3224 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3226 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3228 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3230 * python/python.c (gdbpy_source_objfile_script): Use
3231 make_scoped_restore to restore gdbpy_current_objfile.
3232 (gdbpy_execute_objfile_script): Likewise.
3234 2021-03-14 Tom Tromey <tom@tromey.com>
3236 * dwarf2/read.c (read_attribute_value): Use cu_header
3239 2021-03-14 Tom Tromey <tom@tromey.com>
3241 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3242 (peek_die_abbrev): Use reader.abfd.
3244 2021-03-14 Tom Tromey <tom@tromey.com>
3246 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3249 2021-03-13 Tom Tromey <tom@tromey.com>
3251 * dwarf2/read.c (struct partial_die_info): Update.
3252 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3253 (load_partial_dies, partial_die_info::partial_die_info): Update.
3254 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3256 2021-03-13 Tom Tromey <tom@tromey.com>
3258 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3260 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3263 * cp-support.c: Use scoped_segv_handler_restore.
3264 * event-top.c (thread_local_segv_handler): Made static.
3265 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3267 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3269 * event-top.h (class scoped_segv_handler_restore): New class.
3270 (thread_local_segv_handler): Removed.
3272 2021-03-10 Tom Tromey <tromey@adacore.com>
3274 * parser-defs.h (parser_state): Change completion to bool.
3275 <parse_completion>: Likewise.
3276 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3277 (ada_resolve_variable, ada_resolve_function): Update.
3278 * ada-lang.c (ada_find_operator_symbol): Change
3279 parse_completion to bool.
3280 (ada_resolve_funcall, ada_resolve_variable)
3281 (ada_resolve_function): Likewise.
3283 2021-03-09 Tom Tromey <tromey@adacore.com>
3285 * eval.c (operation::evaluate_funcall): Use function formal
3286 parameter types when evaluating.
3288 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3290 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3291 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3292 and owner to m_owner.
3294 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3296 * f-exp.h (eval_op_f_loc): Declare.
3297 (expr::fortran_loc_operation): New typedef.
3298 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3300 (f77_keywords): Add LOC keyword.
3301 * f-lang.c (eval_op_f_loc): New function.
3302 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3304 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3306 * f-exp.h (eval_op_f_array_shape): Declare.
3307 (fortran_array_shape_operation): New type.
3308 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3310 (f77_keywords): Add "shape" keyword.
3311 * f-lang.c (fortran_array_shape): New function.
3312 (eval_op_f_array_shape): New function.
3313 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3315 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3317 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3319 (expr::fortran_array_size_1arg): New type.
3320 (expr::fortran_array_size_2arg): Likewise.
3321 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3322 UNOP_OR_BINOP_INTRINSIC.
3323 (f77_keywords): Add "size" keyword.
3324 * f-lang.c (fortran_array_size): New function.
3325 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3326 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3328 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3330 * f-exp.h (eval_op_f_rank): Declare.
3331 (expr::fortran_rank_operation): New typedef.
3332 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3334 (f77_keywords): Add "rank" keyword.
3335 * f-lang.c (eval_op_f_rank): New function.
3336 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3338 2021-03-08 Tom Tromey <tom@tromey.com>
3340 * printcmd.c (set_command): Remove null check.
3341 * value.c (init_if_undefined_command): Remove null check.
3343 2021-03-08 Tom Tromey <tom@tromey.com>
3345 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3347 * p-exp.y (variable): Update.
3348 * go-exp.y (variable): Update.
3349 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3350 Remove overload for objfile.
3351 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3353 (check_objfile): Likewise.
3354 (dump_for_expression): Likewise. Remove overload for objfile.
3355 (class var_msym_value_operation): Use bound_minimal_symbol.
3356 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3358 (var_msym_value_operation::evaluate_for_address)
3359 (var_msym_value_operation::evaluate_for_sizeof)
3360 (var_msym_value_operation::evaluate_for_cast): Update.
3361 * d-exp.y (PrimaryExpression): Update.
3362 * c-exp.y (variable): Update.
3363 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3364 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3366 * ada-exp.y (write_var_or_type): Update.
3368 2021-03-08 Tom Tromey <tom@tromey.com>
3370 * parser-defs.h (exp_uses_objfile): Return bool.
3371 * parse.c (exp_uses_objfile): Return bool.
3373 2021-03-08 Tom Tromey <tom@tromey.com>
3375 * value.h (eval_skip_value): Don't declare.
3376 * opencl-lang.c (eval_opencl_assign): Update.
3377 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3378 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3379 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3380 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3381 * expop.h (typeof_operation::evaluate)
3382 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3383 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3384 (cxx_cast_operation::evaluate): Update.
3385 * eval.c (eval_skip_value): Remove.
3386 (eval_op_scope, eval_op_var_entry_value)
3387 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3388 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3389 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3390 (eval_op_binary, eval_op_subscript, eval_op_equal)
3391 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3392 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3393 (eval_op_complement, eval_op_lognot, eval_op_ind)
3394 (eval_op_memval, eval_op_preinc, eval_op_predec)
3395 (eval_op_postinc, eval_op_postdec, eval_op_type)
3396 (eval_binop_assign_modify, eval_op_objc_msgcall)
3397 (eval_multi_subscript, logical_and_operation::evaluate)
3398 (logical_or_operation::evaluate, array_operation::evaluate)
3399 (operation::evaluate_for_cast)
3400 (var_msym_value_operation::evaluate_for_cast)
3401 (var_value_operation::evaluate_for_cast): Update.
3402 * c-lang.c (c_string_operation::evaluate): Update.
3403 * c-exp.h (objc_nsstring_operation::evaluate)
3404 (objc_selector_operation::evaluate): Update.
3405 * ada-lang.c (ada_assign_operation::evaluate)
3406 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3407 (ada_atr_size): Update.
3409 2021-03-08 Tom Tromey <tom@tromey.com>
3411 * eval.c: Merge "namespace" scopes.
3413 2021-03-08 Tom Tromey <tom@tromey.com>
3415 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3417 * parse.c (expr_builder::expr_builder, expr_builder::release):
3420 2021-03-08 Tom Tromey <tom@tromey.com>
3422 * parse.c (expression::expression, expression::~expression):
3424 * expression.h (struct expression): Inline constructor. Remove
3427 2021-03-08 Tom Tromey <tom@tromey.com>
3429 * std-operator.def (BINOP_END): Remove.
3430 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3431 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3432 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3433 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3434 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3437 2021-03-08 Tom Tromey <tom@tromey.com>
3439 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3441 2021-03-08 Tom Tromey <tom@tromey.com>
3443 * std-operator.def (OP_EXTENDED0): Remove.
3445 2021-03-08 Tom Tromey <tom@tromey.com>
3447 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3448 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3451 2021-03-08 Tom Tromey <tom@tromey.com>
3453 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3454 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3456 2021-03-08 Tom Tromey <tom@tromey.com>
3458 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3459 * ada-lang.c (ada_binop_minmax): Update.
3460 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3461 Use BINOP_MIN and BINOP_MAX.
3463 2021-03-08 Tom Tromey <tom@tromey.com>
3465 * value.h (evaluate_subexp_with_coercion): Don't declare.
3466 * parse.c (exp_descriptor_standard): Remove.
3467 (expr_builder::expr_builder, expr_builder::release): Update.
3468 (expression::expression): Remove size_t parameter.
3469 (expression::~expression): Simplify.
3470 (expression::resize): Remove.
3471 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3472 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3473 (write_exp_elt_longcst, write_exp_elt_floatcst)
3474 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3475 (write_exp_string_vector, write_exp_bitstring): Remove.
3476 * p-lang.h (class pascal_language) <opcode_print_table,
3477 op_print_tab>: Remove.
3478 * p-lang.c (pascal_language::op_print_tab): Remove.
3479 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3481 * objc-lang.c (objc_op_print_tab): Remove.
3482 (class objc_language) <opcode_print_table>: Remove.
3483 * m2-lang.h (class m2_language) <opcode_print_table,
3484 op_print_tab>: Remove.
3485 * m2-lang.c (m2_language::op_print_tab): Remove.
3486 * language.h (struct language_defn) <post_parser, expression_ops,
3487 opcode_print_table>: Remove.
3488 * language.c (language_defn::expression_ops)
3489 (auto_or_unknown_language::opcode_print_table): Remove.
3490 * go-lang.h (class go_language) <opcode_print_table,
3491 op_print_tab>: Remove.
3492 * go-lang.c (go_language::op_print_tab): Remove.
3493 * f-lang.h (class f_language) <opcode_print_table>: Remove
3494 <op_print_tab>: Remove.
3495 * f-lang.c (f_language::op_print_tab): Remove.
3496 * expression.h (union exp_element): Remove.
3497 (struct expression): Remove size_t parameter from constructor.
3499 <first_opcode>: Update.
3500 <nelts, elts>: Remove.
3501 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3502 (evaluate_subexp_standard, print_expression, op_string)
3503 (dump_raw_expression): Don't declare.
3504 * expprint.c (print_expression, print_subexp)
3505 (print_subexp_funcall, print_subexp_standard, op_string)
3506 (dump_raw_expression, dump_subexp, dump_subexp_body)
3507 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3508 (dump_prefix_expression): Update.
3509 * eval.c (evaluate_subexp): Remove.
3510 (evaluate_expression, evaluate_type): Update.
3511 (evaluate_subexpression_type): Remove.
3512 (fetch_subexp_value): Remove "pc" parameter. Update.
3513 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3514 (evaluate_subexp_standard, evaluate_subexp_for_address)
3515 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3516 (evaluate_subexp_for_cast): Remove.
3517 (parse_and_eval_type): Update.
3518 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3519 * d-lang.c (d_op_print_tab): Remove.
3520 (class d_language) <opcode_print_table>: Remove.
3521 * c-lang.h (c_op_print_tab): Don't declare.
3522 * c-lang.c (c_op_print_tab): Remove.
3523 (class c_language, class cplus_language, class asm_language, class
3524 minimal_language) <opcode_print_table>: Remove.
3525 * breakpoint.c (update_watchpoint, watchpoint_check)
3526 (watchpoint_exp_is_const, watch_command_1): Update.
3527 * ax-gdb.h (union exp_element): Don't declare.
3528 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3529 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3530 (gen_expr_binop_rest): Remove.
3531 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3532 * ada-lang.c (ada_op_print_tab): Remove.
3533 (class ada_language) <post_parser, opcode_print_table>: Remove.
3535 2021-03-08 Tom Tromey <tom@tromey.com>
3537 * go-lang.c (go_language::expression_ops): Don't declare.
3538 * go-lang.h (class go_language) <expression_ops>: Remove.
3539 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3541 (class opencl_language) <expression_ops>: Remove.
3542 * d-lang.c (class d_language) <expression_ops>: Remove.
3543 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3544 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3545 (class c_language, class cplus_language, class asm_language)
3546 (class minimal_language) <expression_ops>: Remove.
3548 2021-03-08 Tom Tromey <tom@tromey.com>
3550 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3551 (evaluate_subexp_type, assign_aggregate)
3552 (aggregate_assign_positional, aggregate_assign_from_choices)
3553 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3554 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3555 (ada_operator_check, ada_forward_operator_length)
3556 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3558 (post_parser): Update.
3559 (class ada_language) <expresssion_ops>: Remove.
3561 2021-03-08 Tom Tromey <tom@tromey.com>
3563 * m2-lang.h (class m2_language) <expresssion_ops,
3564 exp_descriptor_modula2>: Remove.
3565 * m2-lang.c (evaluate_subexp_modula2)
3566 (m2_language::exp_descriptor_modula2): Remove.
3568 2021-03-08 Tom Tromey <tom@tromey.com>
3570 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3571 <exp_descriptor_tab>: Remove.
3572 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3573 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3574 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3575 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3578 2021-03-08 Tom Tromey <tom@tromey.com>
3580 * rust-lang.h (class rust_language) <expression_ops,
3581 exp_descriptor_tab>: Remove.
3582 * rust-lang.c (rust_evaluate_funcall): Remove.
3583 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3585 (rust_evaluate_subexp): Remove.
3586 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3587 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3588 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3590 2021-03-08 Tom Tromey <tom@tromey.com>
3592 * ada-exp.y: Create operations.
3593 (empty_stoken): Remove.
3594 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3595 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3596 (components): New global.
3597 (push_component, choice_component, pop_component, pop_components):
3599 (associations): New global
3600 (push_association, pop_association, pop_associations): New
3602 (ada_parse): Update.
3603 (write_var_from_sym, write_int): Create operations.
3604 (write_exp_op_with_string): Remove.
3605 (write_object_renaming, write_selectors, write_ambiguous_var)
3606 (write_var_or_type, write_name_assoc): Create operations.
3607 * ada-lang.h (ada_index_type): Declare.
3608 * ada-lang.c (ada_index_type): No longer static.
3610 2021-03-08 Tom Tromey <tom@tromey.com>
3612 * f-exp.y: Create operations.
3613 (f_language::parser): Update.
3615 2021-03-08 Tom Tromey <tom@tromey.com>
3617 * m2-exp.y: Create operations.
3618 (m2_language::parser): Update.
3620 2021-03-08 Tom Tromey <tom@tromey.com>
3622 * p-exp.y: Create operations.
3623 (pascal_language::parser): Update.
3625 2021-03-08 Tom Tromey <tom@tromey.com>
3627 * d-exp.y: Create operations.
3630 2021-03-08 Tom Tromey <tom@tromey.com>
3632 * go-exp.y: Create operations.
3633 (go_language::parser): Update.
3635 2021-03-08 Tom Tromey <tom@tromey.com>
3637 * objc-lang.c (end_msglist): Create operations.
3638 * c-exp.y: Change parser to create operations.
3639 (write_destructor_name): Remove.
3642 2021-03-08 Tom Tromey <tom@tromey.com>
3644 * rust-exp.y: Create operations.
3645 (rust_parser::convert_params_to_expression): Change return type.
3646 (binop_maker_ftype): New typedef.
3647 (maker_map): New global.
3648 (rust_parser::convert_ast_to_expression): Change return type.
3649 (rust_language::parser): Update.
3650 (_initialize_rust_exp): Initialize maker_map.
3652 2021-03-08 Tom Tromey <tom@tromey.com>
3654 * stap-probe.c (binop_maker_ftype): New typedef.
3655 (stap_maker_map): New global.
3656 (stap_make_binop): New function.
3657 (stap_parse_register_operand): Return operation_up.
3658 (stap_parse_single_operand, stap_parse_argument_conditionally)
3659 (stap_parse_argument_1): Likewise.
3660 (stap_parse_argument): Create operations.
3661 (stap_probe::parse_arguments): Update.
3662 (_initialize_stap_probe): Initialize stap_maker_map.
3663 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3665 * i386-tdep.h (i386_stap_parse_special_token): Change return
3667 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3668 (i386_stap_parse_special_token_three_arg_disp)
3669 (i386_stap_parse_special_token): Change return type.
3670 * gdbarch.sh (stap_parse_special_token): Change return type.
3671 * gdbarch.c: Rebuild.
3672 * gdbarch.h: Rebuild.
3673 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3675 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3678 2021-03-08 Tom Tromey <tom@tromey.com>
3680 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3681 * gdbarch.h: Rebuild.
3682 * gdbarch.c: Rebuild.
3683 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3684 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3686 (amd64_dtrace_parse_probe_argument): Update.
3688 2021-03-08 Tom Tromey <tom@tromey.com>
3690 * parser-defs.h (struct parser_state) <push, push_new,
3691 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3692 wrap2>: New methods.
3693 <m_operations>: New member.
3694 * parse.c (parser_state::push_c_string)
3695 (parser_state::push_symbol, parser_state::push_dollar): New
3698 2021-03-08 Tom Tromey <tom@tromey.com>
3700 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3702 (struct parser_state) <mark_struct_expression>: New method.
3703 * parse.c (parser_state::mark_struct_expression): Update assert.
3704 (parser_state::mark_struct_expression): New method.
3705 (parser_state::mark_completion_tag): Update assert.
3706 (parse_expression_for_completion): Handle expout_last_op.
3708 2021-03-08 Tom Tromey <tom@tromey.com>
3710 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3712 * value.h (fetch_subexp_value): Add "op" parameter.
3713 * value.c (init_if_undefined_command): Update.
3714 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3715 * stap-probe.c (stap_probe::compile_to_ax): Update.
3716 * printcmd.c (set_command): Update.
3717 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3719 * parser-defs.h (struct expr_builder) <set_operation>: New
3721 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3722 * expression.h (struct expression) <first_opcode>: Update.
3724 * expprint.c (dump_raw_expression, dump_prefix_expression):
3726 * expop.h (class var_value_operation) <get_symbol>: New method.
3727 (class register_operation) <get_name>: New method.
3728 (class equal_operation): No longer a typedef, now a subclass.
3729 (class unop_memval_operation) <get_type>: New method.
3730 (class assign_operation) <get_lhs>: New method.
3731 (class unop_cast_operation) <get_type>: New method.
3732 * eval.c (evaluate_expression, evaluate_type)
3733 (evaluate_subexpression_type): Update.
3734 (fetch_subexp_value): Add "op" parameter.
3735 (parse_and_eval_type): Update.
3736 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3737 * breakpoint.c (update_watchpoint, watchpoint_check)
3738 (watchpoint_exp_is_const, watch_command_1): Update.
3739 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3742 2021-03-08 Tom Tromey <tom@tromey.com>
3744 * ada-lang.c (ada_value_binop): Do not use op_string.
3746 2021-03-08 Tom Tromey <tom@tromey.com>
3748 * expprint.c (dump_for_expression): New overload.
3749 * expop.h (check_objfile, dump_for_expression): Declare new
3751 * ada-lang.c (check_objfile): New overload.
3752 (assign_component, ada_aggregate_component::uses_objfile)
3753 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3754 (ada_aggregate_component::assign_aggregate)
3755 (ada_positional_component::uses_objfile)
3756 (ada_positional_component::dump, ada_positional_component::assign)
3757 (ada_discrete_range_association::uses_objfile)
3758 (ada_discrete_range_association::dump)
3759 (ada_discrete_range_association::assign)
3760 (ada_name_association::uses_objfile, ada_name_association::dump)
3761 (ada_name_association::assign)
3762 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3763 (ada_choices_component::assign)
3764 (ada_others_component::uses_objfile, ada_others_component::dump)
3765 (ada_others_component::assign, ada_assign_operation::evaluate):
3767 * ada-exp.h (ada_string_operation) <get_name>: New method.
3768 (class ada_assign_operation): New.
3769 (class ada_component): New.
3770 (ada_component_up): New typedef.
3771 (class ada_aggregate_operation, class ada_aggregate_component)
3772 (class ada_positional_component, class ada_others_component)
3773 (class ada_association): New.
3774 (ada_association_up): New typedef.
3775 (class ada_choices_component)
3776 (class ada_discrete_range_association)
3777 (class ada_name_association): New.
3779 2021-03-08 Tom Tromey <tom@tromey.com>
3781 * ada-lang.c (ada_var_value_operation::resolve)
3782 (ada_funcall_operation::resolve)
3783 (ada_ternop_slice_operation::resolve): New methods.
3784 * ada-exp.h (struct ada_resolvable): New.
3785 (class ada_var_value_operation): Derive from ada_resolvable.
3786 <get_block, resolve>: New methods.
3787 (class ada_funcall_operation): Derive from ada_resolvable.
3788 <resolve>: New method.
3789 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3790 <resolve>: New method.
3792 2021-03-08 Tom Tromey <tom@tromey.com>
3794 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3795 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3797 (class ada_funcall_operation): New.
3799 2021-03-08 Tom Tromey <tom@tromey.com>
3801 * ada-lang.c (ada_structop_operation::evaluate): New method.
3802 * ada-exp.h (class ada_structop_operation): New.
3804 2021-03-08 Tom Tromey <tom@tromey.com>
3806 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3807 * ada-exp.h (class ada_unop_ind_operation): New.
3809 2021-03-08 Tom Tromey <tom@tromey.com>
3811 * ada-lang.c (ada_binop_exp): No longer static.
3812 * ada-exp.h (ada_binop_exp_operation): New typedef.
3814 2021-03-08 Tom Tromey <tom@tromey.com>
3816 * ada-lang.c (ada_val_atr): No longer static.
3817 (ada_atr_val_operation::evaluate): New method.
3818 * ada-exp.h (class ada_atr_val_operation): New.
3820 2021-03-08 Tom Tromey <tom@tromey.com>
3822 * ada-lang.c (ada_pos_atr): No longer static.
3823 * ada-exp.h (ada_pos_operation): New typedef.
3825 2021-03-08 Tom Tromey <tom@tromey.com>
3827 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3829 (ada_evaluate_subexp): Use it.
3831 2021-03-08 Tom Tromey <tom@tromey.com>
3833 * ada-lang.c (ada_binop_minmax): No longer static.
3834 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3837 2021-03-08 Tom Tromey <tom@tromey.com>
3839 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3841 * ada-exp.h (class ada_var_msym_value_operation): New.
3843 2021-03-08 Tom Tromey <tom@tromey.com>
3845 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3846 (ada_var_value_operation::evaluate): New methods.
3847 * ada-exp.h (class ada_var_value_operation): New.
3849 2021-03-08 Tom Tromey <tom@tromey.com>
3851 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3852 * ada-exp.h (class ada_unop_atr_operation): New.
3854 2021-03-08 Tom Tromey <tom@tromey.com>
3856 * ada-lang.c (ada_binop_in_bounds): No longer static.
3857 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3861 * ada-lang.c (ada_ternop_slice): No longer static.
3862 * ada-exp.h (class ada_ternop_slice_operation): New.
3864 2021-03-08 Tom Tromey <tom@tromey.com>
3866 * ada-exp.h (ada_bitwise_operation): New template class.
3867 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3868 (ada_bitwise_xor_operation): New typedefs.
3870 2021-03-08 Tom Tromey <tom@tromey.com>
3872 * ada-lang.c (ada_equal_binop): No longer static.
3873 * ada-exp.h (class ada_binop_equal_operation): New.
3875 2021-03-08 Tom Tromey <tom@tromey.com>
3877 * ada-lang.c (ada_mult_binop): No longer static.
3878 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3879 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3881 2021-03-08 Tom Tromey <tom@tromey.com>
3883 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3884 * ada-exp.h (class ada_binop_addsub_operation): New.
3886 2021-03-08 Tom Tromey <tom@tromey.com>
3888 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3889 (ada_resolve_variable): Declare.
3890 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3891 (ada_resolve_variable): New functions.
3892 (resolve_subexp): Update.
3894 2021-03-08 Tom Tromey <tom@tromey.com>
3896 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3898 * c-exp.h (class opencl_ternop_cond_operation): New.
3900 2021-03-08 Tom Tromey <tom@tromey.com>
3902 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3904 * c-exp.h (class opencl_logical_binop_operation): New.
3906 2021-03-08 Tom Tromey <tom@tromey.com>
3908 * opencl-lang.c (opencl_structop_operation::evaluate): New
3910 * c-exp.h (class opencl_structop_operation): New.
3912 2021-03-08 Tom Tromey <tom@tromey.com>
3914 * opencl-lang.c (opencl_logical_not): No longer static. Change
3916 (evaluate_subexp_opencl): Update.
3917 * c-exp.h (opencl_notequal_operation): New typedef.
3919 2021-03-08 Tom Tromey <tom@tromey.com>
3921 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3922 static. Change parameters.
3923 (eval_opencl_assign): No longer static. Add "op" parameter.
3924 (evaluate_subexp_opencl): Update.
3925 * c-exp.h (opencl_binop_operation): New template class.
3926 (opencl_assign_operation, opencl_equal_operation)
3927 (opencl_notequal_operation, opencl_less_operation)
3928 (opencl_gtr_operation, opencl_geq_operation)
3929 (opencl_leq_operation): New typedefs.
3931 2021-03-08 Tom Tromey <tom@tromey.com>
3933 * opencl-lang.c (opencl_value_cast): No longer static.
3934 * c-exp.h (opencl_cast_type_operation): New typedef.
3936 2021-03-08 Tom Tromey <tom@tromey.com>
3938 * f-exp.h (eval_op_f_allocated): Declare.
3939 (fortran_allocated_operation): New typedef.
3940 * f-lang.c (eval_op_f_allocated): No longer static.
3942 2021-03-08 Tom Tromey <tom@tromey.com>
3944 * f-lang.c (eval_op_f_associated): New functions.
3945 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3948 2021-03-08 Tom Tromey <tom@tromey.com>
3950 * f-lang.c (fortran_bound_1arg::evaluate)
3951 (fortran_bound_2arg::evaluate): New methods.
3952 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3955 2021-03-08 Tom Tromey <tom@tromey.com>
3957 * expop.h (class unop_addr_operation) <get_expression>: New
3959 * f-lang.c (fortran_undetermined::value_subarray)
3960 (fortran_undetermined::evaluate): New methods.
3961 (fortran_prepare_argument): New overload.
3962 * f-exp.h (class fortran_range_operation)
3963 (class fortran_undetermined): New classes.
3965 2021-03-08 Tom Tromey <tom@tromey.com>
3967 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3968 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3971 2021-03-08 Tom Tromey <tom@tromey.com>
3973 * expression.h (class operation) <evaluate_funcall>: New methods.
3974 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3975 (class var_value_operation) <evaluate_funcall>: New method.
3976 (class structop_base_operation) <evaluate_funcall>: New method.
3977 (class var_msym_value_operation) <evaluate_funcall>: New method.
3978 (class structop_member_base): New class.
3979 (class structop_member_operation): Derive from
3980 structop_member_base.
3981 (class structop_mptr_operation): Derive from
3982 structop_member_base.
3983 (class funcall_operation): New class.
3984 * eval.c (operation::evaluate_funcall)
3985 (var_value_operation::evaluate_funcall)
3986 (scope_operation::evaluate_funcall)
3987 (structop_member_base::evaluate_funcall)
3988 (structop_base_operation::evaluate_funcall): New methods.
3990 2021-03-08 Tom Tromey <tom@tromey.com>
3992 * expop.h (class array_operation): New.
3993 * eval.c (array_operation::evaluate_struct_tuple)
3994 (array_operation::evaluate): New methods.
3996 2021-03-08 Tom Tromey <tom@tromey.com>
3998 * expop.h (class adl_func_operation): New.
3999 * eval.c (adl_func_operation::evaluate): New method.
4001 2021-03-08 Tom Tromey <tom@tromey.com>
4003 * ada-lang.c (ada_unop_in_range): No longer static.
4004 * ada-exp.h (class ada_unop_range_operation): New.
4006 2021-03-08 Tom Tromey <tom@tromey.com>
4008 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4010 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4011 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4013 2021-03-08 Tom Tromey <tom@tromey.com>
4015 * expop.h (class logical_and_operation)
4016 (class logical_or_operation): New.
4017 * eval.c (logical_and_operation::evaluate)
4018 (logical_or_operation::evaluate): New methods.
4019 * ax-gdb.c (logical_and_operation::do_generate_ax)
4020 (logical_or_operation::do_generate_ax): New methods.
4022 2021-03-08 Tom Tromey <tom@tromey.com>
4024 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4026 * m2-exp.h: New file.
4028 2021-03-08 Tom Tromey <tom@tromey.com>
4030 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4031 * rust-exp.h (class rust_aggregate_operation): New.
4033 2021-03-08 Tom Tromey <tom@tromey.com>
4035 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4037 * rust-exp.h (class rust_struct_anon): New.
4038 (class rust_structop): New.
4040 2021-03-08 Tom Tromey <tom@tromey.com>
4042 * rust-lang.c (rust_range): No longer static.
4043 * rust-exp.h (class rust_range_operation): New.
4045 2021-03-08 Tom Tromey <tom@tromey.com>
4047 * rust-lang.c (rust_subscript): No longer static.
4048 * rust-exp.h (class rust_subscript_operation): New.
4050 2021-03-08 Tom Tromey <tom@tromey.com>
4052 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4054 (rust_evaluate_subexp): Update.
4055 * rust-exp.h (class rust_unop_ind_operation): New.
4057 2021-03-08 Tom Tromey <tom@tromey.com>
4059 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4060 longer static. Add "opcode" parameter.
4061 (rust_evaluate_subexp): Update.
4062 * rust-exp.h: New file.
4064 2021-03-08 Tom Tromey <tom@tromey.com>
4066 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4067 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4068 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4069 (evaluate_subexp_f): Update.
4070 * f-exp.h: New file.
4072 2021-03-08 Tom Tromey <tom@tromey.com>
4074 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4075 * ada-exp.h (class ada_ternop_range_operation): New.
4077 2021-03-08 Tom Tromey <tom@tromey.com>
4079 * ada-lang.c (ada_qual_operation::evaluate): New method.
4080 * ada-exp.h (class ada_qual_operation): New.
4082 2021-03-08 Tom Tromey <tom@tromey.com>
4084 * ada-lang.c (ada_string_operation::evaluate): New method.
4085 * ada-exp.h (class ada_string_operation): New.
4087 2021-03-08 Tom Tromey <tom@tromey.com>
4089 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4090 * ada-exp.h: New file.
4092 2021-03-08 Tom Tromey <tom@tromey.com>
4094 * expop.h (class multi_subscript_operation): New.
4095 * eval.c (multi_subscript_operation::evaluate): New method.
4097 2021-03-08 Tom Tromey <tom@tromey.com>
4099 * eval.c (objc_msgcall_operation::evaluate): New method.
4100 * c-exp.h (class objc_msgcall_operation): New.
4102 2021-03-08 Tom Tromey <tom@tromey.com>
4104 * expop.h (class var_value_operation): New.
4105 * eval.c (var_value_operation::evaluate)
4106 (var_value_operation::evaluate_for_address)
4107 (var_value_operation::evaluate_with_coercion)
4108 (var_value_operation::evaluate_for_sizeof)
4109 (var_value_operation::evaluate_for_cast): New methods.
4110 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4112 2021-03-08 Tom Tromey <tom@tromey.com>
4114 * expop.h (cxx_cast_ftype): New typedef.
4115 (cxx_cast_operation): New template.
4116 (dynamic_cast_operation, reinterpret_cast_operation): New
4119 2021-03-08 Tom Tromey <tom@tromey.com>
4121 * expop.h (class unop_cast_type_operation): New.
4122 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4125 2021-03-08 Tom Tromey <tom@tromey.com>
4127 * expop.h (class unop_cast_operation): New.
4128 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4130 2021-03-08 Tom Tromey <tom@tromey.com>
4132 * expop.h (class assign_modify_operation): New.
4133 * eval.c (eval_binop_assign_modify): No longer static.
4134 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4136 2021-03-08 Tom Tromey <tom@tromey.com>
4138 * expop.h (class assign_operation): New.
4139 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4141 2021-03-08 Tom Tromey <tom@tromey.com>
4143 * expop.h (class type_instance_operation): New.
4144 * eval.c (type_instance_operation::evaluate): New method.
4146 2021-03-08 Tom Tromey <tom@tromey.com>
4148 * expop.h (class op_this_operation): New.
4149 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4151 2021-03-08 Tom Tromey <tom@tromey.com>
4153 * expop.h (class unop_memval_operation)
4154 (class unop_memval_type_operation): New.
4155 * eval.c (eval_op_memval): No longer static.
4156 (unop_memval_operation::evaluate_for_address)
4157 (unop_memval_type_operation::evaluate_for_address)
4158 (unop_memval_operation::evaluate_for_sizeof)
4159 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4160 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4161 (unop_memval_type_operation::do_generate_ax): New methods.
4163 2021-03-08 Tom Tromey <tom@tromey.com>
4165 * expop.h (class unop_alignof_operation): New.
4166 * eval.c (eval_op_alignof): No longer static.
4168 2021-03-08 Tom Tromey <tom@tromey.com>
4170 * expop.h (class unop_sizeof_operation): New.
4171 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4173 2021-03-08 Tom Tromey <tom@tromey.com>
4175 * expop.h (class unop_addr_operation): New.
4176 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4178 2021-03-08 Tom Tromey <tom@tromey.com>
4180 * expop.h (class typeid_operation): New.
4182 2021-03-08 Tom Tromey <tom@tromey.com>
4184 * expop.h (class decltype_operation): New.
4186 2021-03-08 Tom Tromey <tom@tromey.com>
4188 * expop.h (class typeof_operation): New.
4190 2021-03-08 Tom Tromey <tom@tromey.com>
4192 * expop.h (class type_operation): New.
4193 * eval.c (eval_op_type): No longer static.
4195 2021-03-08 Tom Tromey <tom@tromey.com>
4197 * expop.h (class unop_ind_base_operation)
4198 (class unop_ind_operation): New.
4199 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4200 (unop_ind_base_operation::evaluate_for_address)
4201 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4202 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4204 2021-03-08 Tom Tromey <tom@tromey.com>
4206 * expop.h (unop_incr_operation): New template.
4207 (preinc_operation, predec_operation, postinc_operation)
4208 (postdec_operation): New typedefs.
4209 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4210 (eval_op_postdec): No longer static.
4212 2021-03-08 Tom Tromey <tom@tromey.com>
4214 * expop.h (unary_ftype): New typedef.
4215 (unop_operation, usual_ax_binop_operation): New templates.
4216 (unary_plus_operation, unary_neg_operation)
4217 (unary_complement_operation, unary_logical_not_operation): New
4219 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4220 (eval_op_lognot): No longer static.
4221 * ax-gdb.c (gen_expr_unop): New function.
4223 2021-03-08 Tom Tromey <tom@tromey.com>
4225 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4227 2021-03-08 Tom Tromey <tom@tromey.com>
4229 * expop.h (class repeat_operation): New.
4230 * eval.c (eval_op_repeat): No longer static. Remove "op"
4232 (evaluate_subexp_standard): Update.
4233 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4235 2021-03-08 Tom Tromey <tom@tromey.com>
4237 * expop.h (class comparison_operation): New.
4238 (equal_operation, notequal_operation, less_operation)
4239 (gtr_operation, geq_operation, leq_operation): New typedefs.
4240 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4241 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4243 2021-03-08 Tom Tromey <tom@tromey.com>
4245 * expop.h (class subscript_operation): New.
4246 * eval.c (eval_op_subscript): No longer static.
4248 2021-03-08 Tom Tromey <tom@tromey.com>
4250 * expop.h (class binop_operation, class usual_ax_binop_operation):
4252 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4253 (div_operation, rem_operation, lsh_operation, rsh_operation)
4254 (bitwise_and_operation, bitwise_ior_operation)
4255 (bitwise_xor_operation): New typedefs.
4256 * eval.c (eval_op_binary): No longer static.
4258 2021-03-08 Tom Tromey <tom@tromey.com>
4260 * expop.h (class sub_operation): New.
4261 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4262 (evaluate_subexp_standard): Update.
4264 2021-03-08 Tom Tromey <tom@tromey.com>
4266 * expop.h (class add_operation): New.
4267 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4268 (evaluate_subexp_standard): Update.
4270 2021-03-08 Tom Tromey <tom@tromey.com>
4272 * expop.h (class concat_operation): New.
4273 * eval.c (eval_op_concat): No longer static. Remove "op"
4275 (evaluate_subexp_standard): Update.
4277 2021-03-08 Tom Tromey <tom@tromey.com>
4279 * expop.h (class structop_member_operation)
4280 (class structop_mptr_operation): New.
4281 * eval.c (eval_op_member): No longer static.
4283 2021-03-08 Tom Tromey <tom@tromey.com>
4285 * expop.h (class structop_ptr_operation): New.
4286 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4289 2021-03-08 Tom Tromey <tom@tromey.com>
4291 * expop.h (class structop_base_operation)
4292 (class structop_operation): New.
4293 * eval.c (eval_op_structop_struct): No longer static.
4295 2021-03-08 Tom Tromey <tom@tromey.com>
4297 * expop.h (class complex_operation): New.
4299 2021-03-08 Tom Tromey <tom@tromey.com>
4301 * eval.c (eval_op_objc_selector): No longer static.
4302 * c-exp.h (class objc_selector_operation): New.
4304 2021-03-08 Tom Tromey <tom@tromey.com>
4306 * eval.c: Include c-exp.h.
4307 * c-exp.h (class objc_nsstring_operation): New.
4309 2021-03-08 Tom Tromey <tom@tromey.com>
4311 * c-lang.c (c_string_operation::evaluate): New method.
4312 * c-exp.h: New file.
4314 2021-03-08 Tom Tromey <tom@tromey.com>
4316 * expop.h (class ternop_cond_operation): New.
4317 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4319 2021-03-08 Tom Tromey <tom@tromey.com>
4321 * expop.h (class ternop_slice_operation): New.
4322 * eval.c (eval_op_ternop): No longer static.
4324 2021-03-08 Tom Tromey <tom@tromey.com>
4326 * expop.h (class string_operation): New.
4327 * eval.c (eval_op_string): No longer static.
4329 2021-03-08 Tom Tromey <tom@tromey.com>
4331 * expop.h (class internalvar_operation): New.
4332 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4334 2021-03-08 Tom Tromey <tom@tromey.com>
4336 * expop.h (class bool_operation): New.
4338 2021-03-08 Tom Tromey <tom@tromey.com>
4340 * expop.h (class register_operation): New.
4341 * eval.c (eval_op_register): No longer static.
4342 * ax-gdb.c (register_operation::do_generate_ax): New method.
4344 2021-03-08 Tom Tromey <tom@tromey.com>
4346 * expop.h (class last_operation): New.
4348 2021-03-08 Tom Tromey <tom@tromey.com>
4350 * expop.h (class func_static_var_operation): New.
4351 * eval.c (eval_op_func_static_var): No longer static.
4353 2021-03-08 Tom Tromey <tom@tromey.com>
4355 * expop.h (class var_entry_value_operation): New.
4356 * eval.c (eval_op_var_entry_value): No longer static.
4358 2021-03-08 Tom Tromey <tom@tromey.com>
4360 * expression.h (class operation) <set_outermost>: New method.
4361 * expop.h (class var_msym_value_operation): New.
4362 * eval.c (eval_op_var_msym_value): No longer static.
4363 (var_msym_value_operation::evaluate_for_address)
4364 (var_msym_value_operation::evaluate_for_sizeof)
4365 (var_msym_value_operation::evaluate_for_cast): New methods.
4366 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4369 2021-03-08 Tom Tromey <tom@tromey.com>
4371 * expop.h (class long_const_operation): New.
4372 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4374 2021-03-08 Tom Tromey <tom@tromey.com>
4376 * expop.h (class scope_operation): New.
4377 * eval.c (eval_op_scope): No longer static.
4378 (scope_operation::evaluate_for_address): New method.
4379 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4381 2021-03-08 Tom Tromey <tom@tromey.com>
4383 * expprint.c (float_const_operation::dump): New method.
4384 * expop.h (float_data): New typedef.
4385 (class float_const_operation): New.
4387 2021-03-08 Tom Tromey <tom@tromey.com>
4389 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4390 * ax-gdb.c (gen_expr_binop): New function.
4391 (gen_expr_structop): Likewise.
4393 2021-03-08 Tom Tromey <tom@tromey.com>
4395 * expprint.c (expr::dump_for_expression): New functions.
4396 * expop.h (dump_for_expression): New overloads.
4397 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4400 2021-03-08 Tom Tromey <tom@tromey.com>
4402 * expression.h (expr::operation): New class.
4403 (expr::make_operation): New function.
4404 (expr::operation_up): New typedef.
4405 * expop.h: New file.
4406 * eval.c (operation::evaluate_for_cast)
4407 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4409 * ax-gdb.c (operation::generate_ax): New method.
4411 2021-03-08 Tom Tromey <tom@tromey.com>
4413 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4414 (gen_expr_binop_rest): New overload.
4416 2021-03-08 Tom Tromey <tom@tromey.com>
4418 * eval.c (eval_multi_subscript): New function.
4419 (evaluate_subexp_standard): Use it.
4421 2021-03-08 Tom Tromey <tom@tromey.com>
4423 * ada-lang.c (ada_binop_exp): New function.
4424 (ada_evaluate_subexp): Use it.
4426 2021-03-08 Tom Tromey <tom@tromey.com>
4428 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4430 (ada_evaluate_subexp): Use it.
4432 2021-03-08 Tom Tromey <tom@tromey.com>
4434 * ada-lang.c (ada_binop_minmax): New function.
4435 (ada_evaluate_subexp): Use it.
4437 2021-03-08 Tom Tromey <tom@tromey.com>
4439 * ada-lang.c (ada_unop_atr): New function.
4440 (ada_evaluate_subexp): Use it.
4442 2021-03-08 Tom Tromey <tom@tromey.com>
4444 * ada-lang.c (ada_binop_in_bounds): New function.
4445 (ada_evaluate_subexp): Use it.
4447 2021-03-08 Tom Tromey <tom@tromey.com>
4449 * ada-lang.c (ada_ternop_slice): New function.
4450 (ada_evaluate_subexp): Use it.
4452 2021-03-08 Tom Tromey <tom@tromey.com>
4454 * ada-lang.c (ada_equal_binop): New function.
4455 (ada_evaluate_subexp): Use it.
4457 2021-03-08 Tom Tromey <tom@tromey.com>
4459 * ada-lang.c (ada_mult_binop): New function.
4460 (ada_evaluate_subexp): Use it.
4462 2021-03-08 Tom Tromey <tom@tromey.com>
4464 * ada-lang.c (ada_abs): New function.
4465 (ada_evaluate_subexp): Use it.
4467 2021-03-08 Tom Tromey <tom@tromey.com>
4469 * ada-lang.c (ada_atr_size): New function.
4470 (ada_evaluate_subexp): Use it.
4472 2021-03-08 Tom Tromey <tom@tromey.com>
4474 * ada-lang.c (ada_atr_tag): New function.
4475 (ada_evaluate_subexp): Use it.
4477 2021-03-08 Tom Tromey <tom@tromey.com>
4479 * ada-lang.c (ada_unop_in_range): New function.
4480 (ada_evaluate_subexp): Use it.
4482 2021-03-08 Tom Tromey <tom@tromey.com>
4484 * ada-lang.c (ada_unop_neg): New function.
4485 (ada_evaluate_subexp): Use it.
4487 2021-03-08 Tom Tromey <tom@tromey.com>
4489 * ada-lang.c (eval_ternop_in_range): New function.
4490 (ada_evaluate_subexp): Use it.
4492 2021-03-08 Tom Tromey <tom@tromey.com>
4494 * opencl-lang.c (eval_opencl_assign): New function.
4495 (evaluate_subexp_opencl): Use it.
4497 2021-03-08 Tom Tromey <tom@tromey.com>
4499 * eval.c (eval_op_objc_msgcall): New function.
4500 (evaluate_subexp_standard): Use it.
4502 2021-03-08 Tom Tromey <tom@tromey.com>
4504 * eval.c (eval_binop_assign_modify): New function.
4505 (evaluate_subexp_standard): Use it.
4507 2021-03-08 Tom Tromey <tom@tromey.com>
4509 * m2-lang.c (eval_op_m2_subscript): New function.
4510 (evaluate_subexp_modula2): Use it.
4512 2021-03-08 Tom Tromey <tom@tromey.com>
4514 * m2-lang.c (eval_op_m2_high): New function.
4515 (evaluate_subexp_modula2): Use it.
4517 2021-03-08 Tom Tromey <tom@tromey.com>
4519 * eval.c (evaluate_subexp_for_address_base): New function.
4520 (evaluate_subexp_for_address): Use it.
4521 (evaluate_subexp_for_sizeof_base): New function.
4522 (evaluate_subexp_for_sizeof): Use it.
4524 2021-03-08 Tom Tromey <tom@tromey.com>
4526 * rust-lang.c (eval_op_rust_structop): New function.
4527 (rust_evaluate_subexp): Use it.
4529 2021-03-08 Tom Tromey <tom@tromey.com>
4531 * rust-lang.c (eval_op_rust_struct_anon): New function.
4532 (rust_evaluate_subexp): Use it.
4534 2021-03-08 Tom Tromey <tom@tromey.com>
4536 * rust-lang.c (eval_op_rust_array): New function.
4537 (rust_evaluate_subexp): Use it.
4539 2021-03-08 Tom Tromey <tom@tromey.com>
4541 * rust-lang.c (eval_op_rust_complement): New function.
4542 (rust_evaluate_subexp): Use it.
4544 2021-03-08 Tom Tromey <tom@tromey.com>
4546 * rust-lang.c (eval_op_rust_ind): New function.
4547 (rust_evaluate_subexp): Use it.
4549 2021-03-08 Tom Tromey <tom@tromey.com>
4551 * rust-lang.c (rust_subscript): Change parameters.
4552 (rust_evaluate_subexp): Update.
4554 2021-03-08 Tom Tromey <tom@tromey.com>
4556 * rust-lang.c (rust_range): Change parameters.
4557 (rust_evaluate_subexp): Update.
4559 2021-03-08 Tom Tromey <tom@tromey.com>
4561 * f-lang.c (eval_op_f_allocated): New function.
4562 (evaluate_subexp_f): Use it.
4564 2021-03-08 Tom Tromey <tom@tromey.com>
4566 * f-lang.c (fortran_require_array): New function.
4567 (evaluate_subexp_f): Use it.
4569 2021-03-08 Tom Tromey <tom@tromey.com>
4571 * f-lang.c (eval_op_f_kind): New function.
4572 (evaluate_subexp_f): Use it.
4574 2021-03-08 Tom Tromey <tom@tromey.com>
4576 * f-lang.c (eval_op_f_cmplx): New function.
4577 (evaluate_subexp_f): Use it.
4579 2021-03-08 Tom Tromey <tom@tromey.com>
4581 * f-lang.c (eval_op_f_modulo): New function.
4582 (evaluate_subexp_f): Use it.
4584 2021-03-08 Tom Tromey <tom@tromey.com>
4586 * f-lang.c (eval_op_f_floor): New function.
4587 (evaluate_subexp_f): Use it.
4589 2021-03-08 Tom Tromey <tom@tromey.com>
4591 * f-lang.c (eval_op_f_ceil): New function.
4592 (evaluate_subexp_f): Use it.
4594 2021-03-08 Tom Tromey <tom@tromey.com>
4596 * f-lang.c (eval_op_f_mod): New function.
4597 (evaluate_subexp_f): Use it.
4599 2021-03-08 Tom Tromey <tom@tromey.com>
4601 * f-lang.c (eval_op_f_abs): New function.
4602 (evaluate_subexp_f): Use it.
4604 2021-03-08 Tom Tromey <tom@tromey.com>
4606 * eval.c (eval_op_type): New function.
4607 (evaluate_subexp_standard): Use it.
4609 2021-03-08 Tom Tromey <tom@tromey.com>
4611 * eval.c (eval_op_postdec): New function.
4612 (evaluate_subexp_standard): Use it.
4614 2021-03-08 Tom Tromey <tom@tromey.com>
4616 * eval.c (eval_op_postinc): New function.
4617 (evaluate_subexp_standard): Use it.
4619 2021-03-08 Tom Tromey <tom@tromey.com>
4621 * eval.c (eval_op_predec): New file.
4622 (evaluate_subexp_standard): Use it.
4624 2021-03-08 Tom Tromey <tom@tromey.com>
4626 * eval.c (eval_op_preinc): New function.
4627 (evaluate_subexp_standard): Use it.
4629 2021-03-08 Tom Tromey <tom@tromey.com>
4631 * eval.c (eval_op_memval): New function.
4632 (evaluate_subexp_standard): Use it.
4634 2021-03-08 Tom Tromey <tom@tromey.com>
4636 * eval.c (eval_op_alignof): New function.
4637 (evaluate_subexp_standard): Use it.
4639 2021-03-08 Tom Tromey <tom@tromey.com>
4641 * eval.c (eval_op_ind): New function.
4642 (evaluate_subexp_standard): Use it.
4644 2021-03-08 Tom Tromey <tom@tromey.com>
4646 * eval.c (eval_op_lognot): New function.
4647 (evaluate_subexp_standard): Use it.
4649 2021-03-08 Tom Tromey <tom@tromey.com>
4651 * eval.c (eval_op_complement): New function.
4652 (evaluate_subexp_standard): Use it.
4654 2021-03-08 Tom Tromey <tom@tromey.com>
4656 * eval.c (eval_op_neg): New function.
4657 (evaluate_subexp_standard): Use it.
4659 2021-03-08 Tom Tromey <tom@tromey.com>
4661 * eval.c (eval_op_plus): New function.
4662 (evaluate_subexp_standard): Use it.
4664 2021-03-08 Tom Tromey <tom@tromey.com>
4666 * eval.c (eval_op_repeat): New function.
4667 (evaluate_subexp_standard): Use it.
4669 2021-03-08 Tom Tromey <tom@tromey.com>
4671 * eval.c (eval_op_leq): New function.
4672 (evaluate_subexp_standard): Use it.
4674 2021-03-08 Tom Tromey <tom@tromey.com>
4676 * eval.c (eval_op_geq): New function.
4677 (evaluate_subexp_standard): Use it.
4679 2021-03-08 Tom Tromey <tom@tromey.com>
4681 * eval.c (eval_op_gtr): New function.
4682 (evaluate_subexp_standard): Use it.
4684 2021-03-08 Tom Tromey <tom@tromey.com>
4686 * eval.c (eval_op_less): New function.
4687 (evaluate_subexp_standard): Use it.
4689 2021-03-08 Tom Tromey <tom@tromey.com>
4691 * eval.c (eval_op_notequal): New function.
4692 (evaluate_subexp_standard): Use it.
4694 2021-03-08 Tom Tromey <tom@tromey.com>
4696 * eval.c (eval_op_equal): New function.
4697 (evaluate_subexp_standard): Use it.
4699 2021-03-08 Tom Tromey <tom@tromey.com>
4701 * eval.c (eval_op_subscript): New function.
4702 (evaluate_subexp_standard): Use it.
4704 2021-03-08 Tom Tromey <tom@tromey.com>
4706 * eval.c (eval_op_binary): New function.
4707 (evaluate_subexp_standard): Use it.
4709 2021-03-08 Tom Tromey <tom@tromey.com>
4711 * eval.c (eval_op_sub): New function.
4712 (evaluate_subexp_standard): Use it.
4714 2021-03-08 Tom Tromey <tom@tromey.com>
4716 * eval.c (eval_op_add): New function.
4717 (evaluate_subexp_standard): Use it.
4719 2021-03-08 Tom Tromey <tom@tromey.com>
4721 * eval.c (eval_op_member): New function.
4722 (evaluate_subexp_standard): Use it.
4724 2021-03-08 Tom Tromey <tom@tromey.com>
4726 * eval.c (eval_op_structop_ptr): New function.
4727 (evaluate_subexp_standard): Use it.
4729 2021-03-08 Tom Tromey <tom@tromey.com>
4731 * eval.c (eval_op_structop_struct): New function.
4732 (evaluate_subexp_standard): Use it.
4734 2021-03-08 Tom Tromey <tom@tromey.com>
4736 * eval.c (eval_op_ternop): New function.
4737 (evaluate_subexp_standard): Use it.
4739 2021-03-08 Tom Tromey <tom@tromey.com>
4741 * eval.c (eval_op_concat): New function.
4742 (evaluate_subexp_standard): Use it.
4744 2021-03-08 Tom Tromey <tom@tromey.com>
4746 * eval.c (eval_op_objc_selector): New function.
4747 (evaluate_subexp_standard): Use it.
4749 2021-03-08 Tom Tromey <tom@tromey.com>
4751 * eval.c (eval_op_string): New function.
4752 (evaluate_subexp_standard): Use it.
4754 2021-03-08 Tom Tromey <tom@tromey.com>
4756 * eval.c (eval_op_register): New function.
4757 (evaluate_subexp_standard): Use it.
4759 2021-03-08 Tom Tromey <tom@tromey.com>
4761 * eval.c (eval_op_func_static_var): New function.
4762 (evaluate_subexp_standard): Use it.
4764 2021-03-08 Tom Tromey <tom@tromey.com>
4766 * eval.c (eval_op_var_msym_value): New function.
4767 (evaluate_subexp_standard): Use it.
4769 2021-03-08 Tom Tromey <tom@tromey.com>
4771 * eval.c (eval_op_var_entry_value): New function.
4772 (evaluate_subexp_standard): Use it.
4774 2021-03-08 Tom Tromey <tom@tromey.com>
4776 * eval.c (eval_op_scope): New function.
4777 (evaluate_subexp_standard): Use it.
4779 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4782 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4784 2021-03-06 Tom Tromey <tom@tromey.com>
4786 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4787 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4788 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4789 (locate_dwz_sections, dwz_search_other_debugdirs)
4790 (dwarf2_get_dwz_file): Move to dwz.c.
4791 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4793 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4794 (dwarf2_get_dwz_file): Move from read.c.
4796 2021-03-06 Tom Tromey <tom@tromey.com>
4798 * debuginfod-support.h: Include scoped_fd.h.
4800 2021-03-06 Tom Tromey <tom@tromey.com>
4802 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4803 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4804 (get_abbrev_section_for_cu, read_attribute_value)
4805 (get_debug_line_section): Update.
4806 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4808 2021-03-06 Tom Tromey <tom@tromey.com>
4810 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4812 * dwarf2/read.c (section_is_p): Remove.
4813 (dwarf2_per_bfd::locate_sections)
4814 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4815 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4816 (dwarf2_locate_common_dwp_sections)
4817 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4820 2021-03-06 Tom Tromey <tom@tromey.com>
4822 * xcoffread.c: Include sect-names.h.
4823 * symfile.h (struct dwarf2_section_names, struct
4824 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4825 * dwarf2/sect-names.h: New file, from symfile.h.
4826 * dwarf2/read.c: Include sect-names.h.
4828 2021-03-06 Tom Tromey <tom@tromey.com>
4830 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4831 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4832 (abbrev_table::read): Update.
4833 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4834 (struct abbrev_info): Reformat.
4835 <attrs>: Now an array.
4836 (struct abbrev_table) <alloc_abbrev>: Remove.
4838 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4840 * ctfread.c (ctf_psymtab_add_enums): New function.
4841 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4843 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4845 * ctfread.c (read_func_kind_type): Set up function arguments.
4847 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4848 Andrew Burgess <andrew.burgess@embecosm.com>
4850 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4852 (riscv_csrset): New static global.
4853 (riscv_update_csrmap): New function.
4854 (riscv_iterate_over_regset_sections): Process CSRs.
4856 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4858 * riscv-tdep.c (riscv_feature_name_csr): Define.
4859 (riscv_feature_name_cpu): Define.
4860 (riscv_feature_name_fpu): Define.
4861 (riscv_feature_name_virtual): Define.
4862 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4863 (riscv_freg_feature): Use riscv_feature_name_fpu.
4864 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4865 (riscv_csr_feature): Use riscv_feature_name_csr.
4866 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4868 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4869 Craig Blackmore <craig.blackmore@embecosm.com>
4871 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4872 (ALLDEPFILES): Add riscv-none-tdep.c.
4873 * configure: Regenerate.
4874 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4876 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4877 * elf-none-tdep.c: New file.
4878 * elf-none-tdep.h: New file.
4879 * riscv-none-tdep.c: New file.
4881 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4882 Andrew Burgess <andrew.burgess@embecosm.com>
4884 * corelow.c: Add 'xml-tdesc.h' include.
4885 (core_target::read_description): Load the target description from
4886 the core file when possible.
4887 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4889 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4890 (gcore_elf_make_tdesc_note): New function.
4891 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4892 * linux-tdep.c (linux_make_corefile_notes): Add target description
4895 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4897 * Makefile.in (SFILES): Add gcore-elf.c.
4898 (HFILES_NO_SRCDIR): Add gcore-elf.h
4899 * configure: Regenerate.
4900 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4902 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4903 (struct fbsd_collect_regset_section_cb_data): Delete.
4904 (fbsd_collect_regset_section_cb): Delete.
4905 (fbsd_collect_thread_registers): Delete.
4906 (struct fbsd_corefile_thread_data): Delete.
4907 (fbsd_corefile_thread): Delete.
4908 (fbsd_make_corefile_notes): Call
4909 gcore_elf_build_thread_register_notes instead of the now deleted
4911 * gcore-elf.c: New file, the content was moved here from
4912 linux-tdep.c, functions were renamed and given minor cleanup.
4913 * gcore-elf.h: New file.
4914 * gcore.c (gcore_find_signalled_thread): Moved here from
4915 linux-tdep.c and given a new name. Minor cleanups.
4916 * gcore.h (gcore_find_signalled_thread): Declare.
4917 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4918 (struct linux_collect_regset_section_cb_data): Delete.
4919 (linux_collect_regset_section_cb): Delete.
4920 (linux_collect_thread_registers): Delete.
4921 (linux_corefile_thread): Call
4922 gcore_elf_build_thread_register_notes.
4923 (find_signalled_thread): Delete.
4924 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4926 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4929 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4930 process_stratum_target parameter,
4931 sparc_store_inferior_registers): update callers.
4932 * sparc-nat.c (sparc_fetch_inferior_registers,
4933 sparc_store_inferior_registers): Add process_stratum_target
4934 parameter. Switch current thread before calling
4935 sparc_supply_gregset / sparc_collect_rwindow.
4936 (sparc_store_inferior_registers): Likewise.
4937 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4938 (sparc32obsd_collect_uthread): Likewise.
4939 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4941 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4942 sparc64obsd_supply_uthread): Add assertion.
4944 2021-03-04 Tom Tromey <tromey@adacore.com>
4946 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4947 (aux_add_nonlocal_symbols): Update.
4948 (ada_add_block_symbols): Change "found_sym" to bool.
4950 2021-03-03 Tom Tromey <tromey@adacore.com>
4952 * ada-lang.c (ada_resolve_function): Update comment.
4953 (is_nonfunction, add_symbols_from_enclosing_procs)
4954 (remove_extra_symbols): Likewise.
4955 (struct match_data): Add constructor, initializers.
4956 (add_nonlocal_symbols): Remove memset.
4957 (aux_add_nonlocal_symbols): Update comment.
4958 (ada_add_block_renamings, add_nonlocal_symbols)
4959 (ada_add_all_symbols): Likewise.
4960 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4962 2021-03-02 Tom Tromey <tromey@adacore.com>
4964 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4965 (cast_to_gnat_encoded_fixed_point_type): Remove.
4966 (ada_value_cast, ada_evaluate_subexp): Update.
4967 (gnat_encoded_fixed_point_type_info)
4968 (ada_is_gnat_encoded_fixed_point_type)
4969 (gnat_encoded_fixed_point_delta)
4970 (gnat_encoded_fixed_point_scaling_factor): Remove.
4971 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4972 (gnat_encoded_fixed_point_delta)
4973 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4974 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4975 (ada_print_type): Update.
4976 * ada-valprint.c (ada_value_print_num): Update.
4977 * dwarf2/read.c (ada_get_gnat_encoded_number)
4978 (ada_get_gnat_encoded_ratio): New functions.
4979 (finish_fixed_point_type): Use them. Add parameters.
4980 (GNAT_FIXED_POINT_SUFFIX): New define.
4981 (gnat_encoded_fixed_point_type_info): New function.
4982 (read_base_type): Handle gnat encodings.
4984 2021-03-02 Tom Tromey <tromey@adacore.com>
4986 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4987 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4989 (GROW_VECT): Remove.
4990 (grow_vect): Remove.
4992 2021-03-02 Tom Tromey <tromey@adacore.com>
4994 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4995 * ada-lang.c (resolve_subexp): Update.
4996 (ada_resolve_function): Accept a vector.
4997 (is_nonfunction, add_defn_to_vec)
4998 (add_symbols_from_enclosing_procs): Likewise.
4999 (num_defns_collected, defns_collected): Remove.
5000 (remove_extra_symbols): Return a vector.
5001 (remove_irrelevant_renamings): Return void.
5002 (ada_add_local_symbols): Accept a vector.
5003 (struct match_data) <obstackp>: Remove.
5004 <resultp>: New member.
5005 (aux_add_nonlocal_symbols): Update.
5006 (ada_add_block_renamings, add_nonlocal_symbols)
5007 (ada_add_all_symbols): Accept a vector.
5008 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5010 (ada_lookup_symbol): Update.
5011 (ada_add_block_symbols): Accept a vector.
5012 (get_var_value, iterate_over_symbols): Update.
5013 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5016 2021-03-02 Tom Tromey <tromey@adacore.com>
5018 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5020 2021-03-02 Tom Tromey <tromey@adacore.com>
5022 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5025 (ada_pspace_data): Remove destructor.
5026 <sym_cache>: Now a unique_ptr.
5027 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5028 (ada_get_symbol_cache): Use 'new'.
5029 (ada_clear_symbol_cache): Rewrite.
5031 2021-03-02 Tom Tromey <tromey@adacore.com>
5033 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5036 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5039 * source.c (add_path): Skip empty dirnames.
5041 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5043 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5044 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5046 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5049 * target.c (target_mourn_inferior): Only compare pids in
5050 target_mourn_inferior.
5052 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5055 * remote.c (remote_target::start_remote): Ensure the single
5056 thread, automatically added for remote targets without the
5057 concept of threading, is initially in set to the "resumed"
5059 * remote.c (remote_target::add_current_inferior_and_thread):
5060 Add return value - return the main thread.
5062 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5064 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5065 (mi_tsv_created): Likewise.
5066 (mi_tsv_deleted): Likewise.
5068 2021-02-25 Tom de Vries <tdevries@suse.de>
5071 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5072 section_kind for &dwo_file->sections.info.
5074 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5077 * f-lang.c (fortran_argument_convert): Delete declaration.
5078 (fortran_prepare_argument): New function.
5079 (evaluate_subexp_f): Move logic to new function
5080 fortran_prepare_argument.
5082 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5084 * f-exp.y (f77_keywords): Add 'associated'.
5085 * f-lang.c (fortran_associated): New function.
5086 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5087 (operator_length_f): Likewise.
5088 (print_unop_or_binop_subexp_f): New function.
5089 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5090 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5091 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5092 (operator_check_f): Likewise.
5093 * std-operator.def: Add FORTRAN_ASSOCIATED.
5095 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5097 * f-exp.y (fortran_operators): Add ".xor.".
5099 2021-02-24 Tom de Vries <tdevries@suse.de>
5102 * dwarf2/attribute.c (attribute::form_is_signed): New function
5104 * dwarf2/attribute.h (attribute::as_signed): ... here.
5105 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5106 (attribute::form_is_signed): Declare.
5107 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5108 for DW_AT_decl_file.
5110 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5112 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5113 order for <sys/ptrace.h> and <asm/ptrace.h>.
5115 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5117 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5120 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5122 * exec.c (set_section_command): Move variable declarations into
5123 the function body, and use std::string instead of a fixed size
5126 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5128 * exec.c (exec_target::get_section_table): Delete member function.
5129 (section_table_read_available_memory): Use current_top_target, not
5130 just the exec_ops target.
5131 * target-delegates.c: Regenerate.
5132 * target.c (default_get_section_table): New function.
5133 * target.h (target_ops::get_section_table): Change default
5134 behaviour to call default_get_section_table.
5135 (default_get_section_table): Declare.
5137 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5139 * exec.c (exec_target::close): Call new clear_target_sections
5141 (program_space::add_target_sections): Update name of member
5143 (program_space::add_target_sections): Update name of member
5145 (program_space::remove_target_sections): Likewise.
5146 (exec_one_fork): Use new target_sections member function.
5147 (exec_target::get_section_table): Likewise.
5148 (exec_target::files_info): Likewise.
5149 (set_section_command): Likewise.
5150 (exec_set_section_address): Likewise.
5151 (exec_target::has_memory): Use new target_sections member
5153 * progspace.h (program_space::clear_target_sections): New member
5155 (program_space::target_sections): Rename member variable to
5156 m_target_sections, replace with a new member function.
5157 (program_space::m_target_sections): New member variable.
5158 * solib-dsbt.c (scan_dyntag): Use new member function.
5159 * solib-svr4.c (scan_dyntag): Likewise.
5161 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5163 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5165 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5166 (section_table_read_available_memory): Make local const.
5167 (exec_target::xfer_partial): Make local const.
5168 (print_section_info): Make parameter const.
5169 * gdb/exec.h (print_section_info): Likewise.
5170 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5172 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5174 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5176 * gdb/s390-tdep.c (s390_load): Likewise.
5177 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5178 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5179 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5181 (target_debug_print_const_target_section_table_p): ...this.
5182 * gdb/target-delegates.c: Regenerate.
5183 * gdb/target.c (target_get_section_table): Make return type const.
5184 (target_section_by_addr): Likewise. Also make some locals const.
5185 (memory_xfer_partial_1): Make some locals const.
5186 * gdb/target.h (struct target_ops) <get_section_table>: Make
5188 (target_section_by_addr): Likewise.
5189 (target_get_section_table): Likewise.
5191 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5193 * NEWS: Mention new 'maint info target-sections' command.
5194 * maint.c (maintenance_info_target_sections): New function.
5195 (_initialize_maint_cmds): Register new command.
5197 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5199 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5200 (riscv_features_from_bfd): ...this. Change parameter type to
5201 'bfd*', and update as required.
5202 (riscv_find_default_target_description): Update call to
5203 riscv_features_from_bfd. Select a default xlen based on
5205 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5207 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5209 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5210 dynamic types in UNOP_IND.
5212 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5215 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5217 (~dwarf2_queue_guard): Clear queue.
5218 (queue_comp_unit): Assert that queue is
5220 (process_queue): Adjust.
5221 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5223 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5226 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5227 to decide whether or not to enqueue it for expansion.
5228 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5229 after calling maybe_queue_comp_unit.
5231 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5233 * linux-nat.c (linux_nat_filter_event): Return void.
5235 2021-02-22 Tom Tromey <tromey@adacore.com>
5237 * solib-svr4.c (enable_break): Update.
5238 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5240 (target_bfd_reopen): Change parameter type.
5241 * bfd-target.h (target_bfd_reopen): Change parameter type.
5243 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5245 * thread.c (add_thread_silent): Add assert.
5246 (find_thread_ptid): Add assert.
5248 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5251 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5252 (target_unpush_up): Likewise.
5253 * procfs.c (procfs_target::attach): Push target early. Use
5254 target_unpush_up to unpush target in case of error.
5255 * target.h (struct target_unpusher): Move here.
5256 (target_unpush_up): Likewise.
5258 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5260 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5261 (which in turn includes <gnulib/config.h>) before include
5264 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5267 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5268 (decode_j_type_insn): Likewise.
5269 (decode_cj_type_insn): Likewise.
5270 (decode_b_type_insn): Likewise.
5273 2021-02-18 Tom Tromey <tom@tromey.com>
5275 * expression.h (struct expression) <evaluate>: Declare method.
5276 * eval.c (evaluate_subexp): Simplify.
5277 (expression::evaluate): New method.
5278 (evaluate_expression, evaluate_type): Use expression::evaluate.
5280 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5282 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5284 (ada_lookup_name_info): Likewise.
5286 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5288 * aclocal.m4: Regenerate.
5290 2021-02-12 Tom de Vries <tdevries@suse.de>
5293 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5294 (lin_thread_signals): New static var.
5295 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5297 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5298 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5300 * linux-thread-db.c (check_thread_signals): Use
5301 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5303 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5305 * f-exp.y (f77_keywords): Add allocated.
5306 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5307 (operator_length_f): Likewise.
5308 (print_subexp_f): Likewise.
5309 (dump_subexp_body_f): Likewise.
5310 (operator_check_f): Likewise.
5311 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5313 2021-02-11 Tom de Vries <tdevries@suse.de>
5316 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5317 Return true for DW_FORM_strx.
5319 2021-02-11 Tom Tromey <tromey@adacore.com>
5322 * parse.c (write_exp_symbol_reference): Write sym.block.
5324 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5326 * NEWS: Mention changes to 'maint info sections'.
5327 * maint.c (match_substring): Return a bool, fix whitespace issue.
5328 (struct single_bfd_flag_info): New struct.
5329 (bfd_flag_info): New static global.
5330 (match_bfd_flags): Return a bool, use bfd_flag_info.
5331 (print_bfd_flags): Use bfd_flag_info.
5332 (maint_print_section_info): Delete trailing whitespace.
5333 (struct maint_info_sections_opts): New struct.
5334 (maint_info_sections_option_defs): New static global.
5335 (maint_info_sections_completer): New function.
5336 (maintenance_info_sections): Use option parsing mechanism.
5337 (_initialize_maint_cmds): Update command help text for 'maint info
5338 sections' and register a command completer.
5340 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5342 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5343 functionality merged into...
5344 (maint_print_all_sections): ...this new function.
5345 (maintenance_info_sections): Make use of maint_print_all_sections,
5346 allow all objects to be printed even where there's no executable.
5348 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5350 * breakpoint.c (resolve_sal_pc): Make use of
5351 bound_minimal_symbol::obj_section.
5352 * maint.c (maintenance_translate_address): Likewise.
5353 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5354 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5356 * printcmd.c (info_address_command): Make use of
5357 bound_minimal_symbol::obj_section.
5359 2021-02-11 Alan Modra <amodra@gmail.com>
5361 * arm-symbian-tdep.c: Delete.
5362 * NEWS: Mention arm-symbian removal.
5363 * Makefile.in: Remove arm-symbian-tdep entries.
5364 * configure.tgt: Remove arm*-*-symbianelf*.
5365 * doc/gdb.texinfo: Remove mention of SymbianOS.
5366 * osabi.c (gdb_osabi_names): Remove "Symbian".
5367 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5368 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5369 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5371 * testsuite/gdb.base/dup-sect.exp: Likewise.
5372 * testsuite/gdb.base/long_long.exp: Likewise.
5373 * testsuite/gdb.base/solib-weak.exp: Likewise.
5374 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5375 * testsuite/gdb.python/py-section-script.exp: Likewise.
5376 * testsuite/lib/dwarf.exp: Likewise.
5377 * testsuite/lib/gdb.exp: Likewise.
5379 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5381 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5382 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5383 (one_or_two_args): New pattern.
5384 (f77_keywords): Add lbound and ubound.
5385 * f-lang.c (fortran_bounds_all_dims): New function.
5386 (fortran_bounds_for_dimension): New function.
5387 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5388 (operator_length_f): Likewise.
5389 (print_subexp_f): Likewise.
5390 (dump_subexp_body_f): Likewise.
5391 (operator_check_f): Likewise.
5392 * std-operator.def (FORTRAN_LBOUND): Define.
5393 (FORTRAN_UBOUND): Define.
5395 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5397 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5398 and set_section_index member functions where appropriate.
5399 * coffread.c (coff_symtab_read): Likewise.
5400 (process_coff_symbol): Likewise.
5401 * ctfread.c (set_symbol_address): Likewise.
5402 * dwarf2/read.c (add_partial_symbol): Likewise.
5403 (var_decode_location): Likewise.
5404 * language.c: Likewise.
5405 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5406 (compact_minimal_symbols): Likewise.
5407 (minimal_symbol_upper_bound): Likewise.
5408 * objfiles.c (relocate_one_symbol): Likewise.
5409 * psympriv.h (partial_symbol::obj_section): Likewise.
5410 (partial_symbol::address): Likewise.
5411 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5412 * stabsread.c (scan_file_globals): Likewise.
5413 * symmisc.c (dump_msymbols): Likewise.
5414 * symtab.c (general_symbol_info::obj_section): Likewise.
5415 (fixup_section): Likewise.
5416 (get_msymbol_address): Likewise.
5417 * symtab.h (general_symbol_info::section): Rename to...
5418 (general_symbol_info::m_section): ...this.
5419 (general_symbol_info::set_section_index): New member function.
5420 (general_symbol_info::section_index): Likewise.
5421 (SYMBOL_SECTION): Delete.
5422 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5423 set_section_index member functions where appropriate.
5424 (MSYMBOL_SECTION): Delete.
5425 (symbol::symbol): Update to initialize 'm_section'.
5426 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5427 (process_xcoff_symbol): Likewise.
5429 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5431 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5432 MSYMBOL_OBJ_SECTION.
5433 * findvar.c (language_defn::read_var_value): Likewise.
5434 * infcmd.c (jump_command): Likewise.
5435 * linespec.c (minsym_found): Likewise.
5436 * maint.c (maintenance_translate_address): Likewise.
5437 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5438 (minimal_symbol_upper_bound): Likewise.
5439 * parse.c (find_minsym_type_and_address): Likewise.
5440 (operator_check_standard): Likewise.
5441 * printcmd.c (info_address_command): Likewise.
5442 * symmisc.c (dump_msymbols): Likewise.
5443 (print_symbol): Likewise.
5444 * symtab.c (general_symbol_info::obj_section): Define new
5446 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5447 (find_pc_sect_compunit_symtab): Likewise.
5448 (find_function_start_sal): Likewise.
5449 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5450 MSYMBOL_OBJ_SECTION.
5451 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5453 (SYMBOL_OBJ_SECTION): Delete.
5454 (MSYMBOL_OBJ_SECTION): Delete.
5456 2021-02-09 Tom Tromey <tom@tromey.com>
5458 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5460 2021-02-09 Tom de Vries <tdevries@suse.de>
5463 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5464 construct an array type. Add assert to ensure that element_type is
5467 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5469 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5470 (gcore_collect_regset_section_cb): Delete.
5471 (gcore_collect_thread_registers): Delete.
5472 (gcore_build_thread_register_notes): Delete.
5473 (gcore_find_signalled_thread): Delete.
5474 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5475 'gdbarch' and 'thread_info' declarations.
5476 (gcore_build_thread_register_notes): Delete declaration.
5477 (gcore_find_signalled_thread): Likewise.
5478 * fbsd-tdep.c: Remove 'gcore.h' include.
5479 (struct fbsd_collect_regset_section_cb_data): New struct.
5480 (fbsd_collect_regset_section_cb): New function.
5481 (fbsd_collect_thread_registers): New function.
5482 (struct fbsd_corefile_thread_data): New struct.
5483 (fbsd_corefile_thread): New function.
5484 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5485 * linux-tdep.c: Remove 'gcore.h' include.
5486 (struct linux_collect_regset_section_cb_data): New struct.
5487 (linux_collect_regset_section_cb): New function.
5488 (linux_collect_thread_registers): New function.
5489 (linux_corefile_thread): Call Linux specific code.
5490 (find_signalled_thread): New function.
5491 (linux_make_corefile_notes): Call find_signalled_thread.
5493 2021-02-09 Tom Tromey <tromey@adacore.com>
5495 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5497 * value.c (value_contents_copy_raw): Now static.
5498 * value.h (value_contents_copy_raw): Don't declare.
5500 2021-02-09 Tom Tromey <tromey@adacore.com>
5502 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5505 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5508 * arc-linux-tdep.c (handle_atomic_sequence): New.
5509 (arc_linux_software_single_step): Call handle_atomic_sequence().
5511 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5513 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5515 (REQUIRE_WINDOW): Call is_valid member function.
5516 (REQUIRE_WINDOW_FOR_SETTER): New define.
5517 (gdbpy_tui_is_valid): Call is_valid member function.
5518 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5519 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5521 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5522 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5525 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5527 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5528 for the title is not nullptr.
5530 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5532 * tui-layout.c (saved_tui_windows): Delete.
5533 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5534 call new get_windows member function instead.
5535 (tui_get_window_by_name): Check in tui_windows.
5536 (tui_layout_window::apply): Don't add to tui_windows.
5537 * tui-layout.h (tui_layout_base::get_windows): New member function.
5538 (tui_layout_window::get_windows): Likewise.
5539 (tui_layout_split::get_windows): Likewise.
5541 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5543 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5544 of the window objects.
5546 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5548 * python/python.c (gdbpy_print_stack): Reformat an error message.
5550 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5552 * tui/tui-interp.c (tui_command_line_handler): New function.
5553 (tui_interp::resume): Register tui_command_line_handler as the
5555 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5557 (tui_getc_1): Delete handling of '\n' and '\r'.
5558 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5560 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5562 * tui/tui-regs.c (tui_data_window::display_registers_from):
5563 Mark invisible register sub windows.
5564 (tui_data_window::check_register_values): Ignore invisible
5565 register sub windows.
5567 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5569 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5570 n_spaces with a negative value.
5572 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5574 * tui/tui-regs.c (tui_data_window::display_registers_from):
5575 Add refresh_window call.
5577 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5579 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5581 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5583 * symmisc.c (std_in, std_out, std_err): Remove.
5584 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5586 2021-02-05 Tom de Vries <tdevries@suse.de>
5588 PR breakpoints/27330
5589 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5590 glibc object file has debug info.
5592 2021-02-05 Tom de Vries <tdevries@suse.de>
5595 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5597 2021-02-05 Tom de Vries <tdevries@suse.de>
5599 PR breakpoints/27313
5600 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5603 2021-02-05 Tom Tromey <tom@tromey.com>
5605 * compile/compile-c-support.c (get_compile_context)
5606 (c_get_compile_context, cplus_get_compile_context): Change return
5608 * language.c (language_defn::get_compile_instance): New method.
5609 * language.h (language_defn::get_compile_instance): Change return
5610 type. No longer inline.
5611 * c-lang.c (c_language::get_compile_instance): Change return type.
5612 (cplus_language::get_compile_instance): Change return type.
5613 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5615 * compile/compile.c (compile_to_object): Update.
5617 2021-02-05 Tom Tromey <tom@tromey.com>
5619 * parser-defs.h (write_exp_symbol_reference): Declare.
5620 * parse.c (write_exp_symbol_reference): New function.
5621 * p-exp.y (variable): Use write_exp_symbol_reference.
5622 * m2-exp.y (variable): Use write_exp_symbol_reference.
5623 * f-exp.y (variable): Use write_exp_symbol_reference.
5624 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5625 * c-exp.y (variable): Use write_exp_symbol_reference.
5627 2021-02-05 Tom de Vries <tdevries@suse.de>
5630 * valarith.c (complex_binop): Throw an error if complex type can't
5633 2021-02-05 Tom de Vries <tdevries@suse.de>
5636 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5639 2021-02-05 Tom de Vries <tdevries@suse.de>
5641 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5643 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5645 * configure.tgt (riscv*-*-*): Set gdb_sim.
5647 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5649 * target.c (target_is_non_stop_p): Return bool.
5650 * target.h (target_is_non_stop_p): Return bool.
5652 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5654 * record-full.c (record_full_async_inferior_event_handler):
5655 Don't clear async event handler.
5656 (record_full_base_target::wait): Clear async event handler at
5659 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5661 * record-btrace.c (record_btrace_handle_async_inferior_event):
5662 Don't clear async event handler.
5663 (record_btrace_target::wait): Clear async event handler at
5666 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5668 * remote.c (remote_target::wait): Clear async event handler at
5669 beginning, mark if needed at the end.
5670 (remote_async_inferior_event_handler): Don't set or clear async
5673 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5675 * async-event.h (async_event_handler_func): Add documentation.
5676 * async-event.c (check_async_event_handlers): Don't clear
5677 async_event_handler ready flag.
5678 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5680 * record-btrace.c (record_btrace_handle_async_inferior_event):
5682 * record-full.c (record_full_async_inferior_event_handler):
5684 * remote-notif.c (remote_async_get_pending_events_handler):
5686 * remote.c (remote_async_inferior_event_handler): Likewise.
5688 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5690 * infrun.c (handle_inferior_event): Move stop_soon variable to
5693 2021-02-03 Pedro Alves <pedro@palves.net>
5695 * infcmd.c (detach_command): Hold strong reference to target, and
5696 if all-stop on entry, restart threads on exit.
5697 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5698 (restart_stepped_thread): ... this new function. Also handle
5700 (restart_after_all_stop_detach): New function.
5701 * infrun.h (restart_after_all_stop_detach): Declare.
5703 2021-02-03 Pedro Alves <pedro@palves.net>
5705 * infrun.c (struct step_over_info): Initialize fields.
5706 (prepare_for_detach): Handle ongoing in-line step over.
5708 2021-02-03 Pedro Alves <pedro@palves.net>
5710 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5712 * remote.c (remote_target::remote_detach_1): ... and here ...
5713 * target.c (target_detach): ... instead of here.
5714 * target.h (target_ops::detach): Add comment.
5716 2021-02-03 Pedro Alves <pedro@palves.net>
5718 * infrun.c (struct wait_one_event): Move higher up.
5719 (prepare_for_detach): Abort in-progress displaced steps instead of
5720 letting them complete.
5721 (handle_one): If the inferior is detaching, don't add the thread
5722 back to the global step-over chain.
5723 (restart_threads): Don't restart threads if detaching.
5724 (handle_signal_stop): Remove inferior::detaching reference.
5726 2021-02-03 Pedro Alves <pedro@palves.net>
5728 * infrun.c (prepare_for_detach): Don't release scoped_restore
5731 2021-02-03 Pedro Alves <pedro@palves.net>
5733 * infrun.c (handle_one): New function, factored out from ...
5734 (stop_all_threads): ... here.
5736 2021-02-03 Pedro Alves <pedro@palves.net>
5738 * remote.c (remote_notif_stop_ack): Don't error out on
5739 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5740 (remote_target::discard_pending_stop_replies): Don't delete
5741 in-flight notification; instead, clear its contents.
5743 2021-02-03 Pedro Alves <pedro@palves.net>
5745 * remote.c (extended_remote_target::attach): Set target async in
5746 the target-non-stop path too.
5748 2021-02-03 Pedro Alves <pedro@palves.net>
5751 * infrun.c (handle_signal_stop): Move main context_switch call
5752 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5754 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5756 * NEWS (Changed commands): Add entry for the behavior change of
5757 the inferior command.
5758 * inferior.c (inferior_command): When no argument is given to the
5759 inferior command, display info about the currently selected
5762 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5764 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5766 (read_attribute_reprocess): Adjust.
5768 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5770 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5771 <gnu_ranges_base>: ... this...
5772 <rnglists_base>: ... and this.
5773 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5774 <gnu_ranges_base>: ... this...
5775 <rnglists_base>: ... and this.
5776 (read_cutu_die_from_dwo): Adjust
5777 (dwarf2_get_pc_bounds): Adjust
5778 (dwarf2_record_block_ranges): Adjust.
5779 (read_full_die_1): Adjust
5780 (partial_die_info::read): Adjust.
5781 (read_rnglist_index): Adjust.
5783 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5786 * dwarf2/read.c (read_loclists_rnglists_header): Add
5787 header_offset parameter and use it.
5788 (read_loclist_index): Read header of the current contribution,
5789 not the one at the beginning of the section.
5790 (read_rnglist_index): Likewise.
5792 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5795 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5796 requires_reprocessing flag.
5797 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5799 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5800 and DW_FORM_loclistx.
5801 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5802 instead of set_address for DW_FORM_loclistx and
5805 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5807 * dwarf2/read.c (read_loclist_index): Remove bound check for
5809 (read_rnglist_index): Likewise.
5811 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5813 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5816 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5818 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5820 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5822 * dwarf2/read.c (read_loclist_index): Change complaints into
5825 2021-02-02 Tom de Vries <tdevries@suse.de>
5828 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5831 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5833 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5834 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5835 here from linux-tdep.c and given a new name. Minor cleanups.
5836 (gcore_collect_regset_section_cb): Likewise.
5837 (gcore_collect_thread_registers): Likewise.
5838 (gcore_build_thread_register_notes): Likewise.
5839 (gcore_find_signalled_thread): Likewise.
5840 * gcore.h (gcore_build_thread_register_notes): Declare.
5841 (gcore_find_signalled_thread): Declare.
5842 * fbsd-tdep.c: Add 'gcore.h' include.
5843 (struct fbsd_collect_regset_section_cb_data): Delete.
5844 (fbsd_collect_regset_section_cb): Delete.
5845 (fbsd_collect_thread_registers): Delete.
5846 (struct fbsd_corefile_thread_data): Delete.
5847 (fbsd_corefile_thread): Delete.
5848 (fbsd_make_corefile_notes): Call
5849 gcore_build_thread_register_notes instead of the now deleted
5851 * linux-tdep.c: Add 'gcore.h' include.
5852 (struct linux_collect_regset_section_cb_data): Delete.
5853 (linux_collect_regset_section_cb): Delete.
5854 (linux_collect_thread_registers): Delete.
5855 (linux_corefile_thread): Call
5856 gcore_build_thread_register_notes.
5857 (find_signalled_thread): Delete.
5858 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5860 2021-01-29 Tom de Vries <tdevries@suse.de>
5862 PR breakpoints/26063
5863 * infrun.c (process_event_stop_test): Reset
5864 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5867 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5869 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5870 assert. Extend the header comment.
5872 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5874 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5875 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5876 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5877 (tui_locator_win_info_ptr): Delete declaration.
5878 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5879 (tui_disasm_window::set_contents): Fetch state from tui_location
5881 (tui_get_begin_asm_address): Likewise.
5882 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5884 (get_locator_window): Delete.
5885 (initialize_known_windows): Treat locator window just like all the
5887 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5888 (tui_source_window::set_contents): Fetch state from tui_location
5890 (tui_source_window::showing_source_p): Likewise.
5891 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5893 (tui_locator_win_info_ptr): Delete.
5894 (tui_locator_window::make_status_line): Fetch state from
5895 tui_location global.
5896 (tui_locator_window::rerender): Remove check of 'handle',
5897 reindent function body.
5898 (tui_locator_window::set_locator_fullname): Delete.
5899 (tui_locator_window::set_locator_info): Delete.
5900 (tui_update_locator_fullname): Delete.
5901 (tui_show_frame_info): Likewise.
5902 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5903 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5904 tui/tui-location.h and renamed to
5905 tui_location_tracker::set_location.
5906 (tui_locator_window::set_locator_fullname): Moved to
5907 tui/tui-location.h and renamed to
5908 tui_location_tracker::set_fullname.
5909 (tui_locator_window::full_name): Delete.
5910 (tui_locator_window::proc_name): Delete.
5911 (tui_locator_window::line_no): Delete.
5912 (tui_locator_window::addr): Delete.
5913 (tui_locator_window::gdbarch): Delete.
5914 (tui_update_locator_fullname): Delete declaration.
5915 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5917 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5918 (tui_display_main): Call function on tui_location directly.
5919 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5920 * tui/tui-location.c: New file.
5921 * tui/tui-location.h: New file.
5923 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5925 * gdbtypes.h (get_type_arch): Rename to...
5926 (struct type) <arch>: ... this, update all users.
5928 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5930 * gdbtypes.h (struct type) <arch>: Rename to...
5931 <arch_owner>: ... this, update all users.
5932 <objfile>: Rename to...
5933 <objfile_owner>: ... this, update all users.
5935 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5937 * gdbcmd.h (execute_command_to_string): Update comment.
5938 * top.c (execute_command_to_string): Update header comment.
5940 2021-01-28 Tom de Vries <tdevries@suse.de>
5942 PR breakpoints/27205
5943 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5944 (create_longjmp_master_breakpoint_names): New function, factored out
5946 (create_longjmp_master_breakpoint): ... here. Only try to install
5947 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5948 breakpoint in libc.so failed.
5950 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5953 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5954 unique_ptr is released when the wrapped pointer is kept for later
5957 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5959 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5960 BLR and BR instructions.
5961 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5962 (enum aarch64_masks): New.
5964 2021-01-26 Tom Tromey <tromey@adacore.com>
5966 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5967 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5968 (windows_init_thread_list, windows_nat::handle_load_dll)
5969 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5970 (windows_nat_target::resume)
5971 (windows_nat_target::get_windows_debug_event)
5972 (windows_nat_target::interrupt, windows_xfer_memory)
5973 (windows_nat_target::close): Update.
5974 * nat/windows-nat.c (DEBUG_EVENTS): Use
5975 debug_prefixed_printf_cond.
5976 (matching_pending_stop, fetch_pending_stop)
5977 (continue_last_debug_event): Update.
5979 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5981 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5982 elfcore_write_file_note.
5984 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5986 * arc-tdep.c (arc_add_reggroups): New function.
5987 (arc_gdbarch_init): Call arc_add_reggroups.
5989 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5991 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5993 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5994 Simon Marchi <simon.marchi@polymtl.ca>
5995 Tom de Vries <tdevries@suse.de>
5997 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6000 2021-01-25 Tom Tromey <tromey@adacore.com>
6002 * dwarf2/read.c (get_mpz): New function.
6003 (get_dwarf2_rational_constant): Use it.
6005 2021-01-25 Tom Tromey <tromey@adacore.com>
6007 * ada-lang.c (resolve_subexp): Handle array context.
6009 2021-01-23 Tom Tromey <tom@tromey.com>
6012 * compile/compile-loc2c.c (note_register): New function.
6013 (pushf_register_address, pushf_register): Use it.
6015 2021-01-23 Tom Tromey <tom@tromey.com>
6017 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6018 Change type of "registers_used".
6019 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6020 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6021 (locexpr_generate_c_location, loclist_generate_c_location): Change
6022 type of "registers_used".
6023 * compile/compile.h (compile_dwarf_expr_to_c)
6024 (compile_dwarf_bounds_to_c): Update.
6025 * compile/compile-loc2c.c (pushf_register_address)
6026 (pushf_register, do_compile_dwarf_expr_to_c)
6027 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6028 of "registers_used".
6029 * compile/compile-c.h (generate_c_for_variable_locations):
6031 * compile/compile-c-symbols.c (generate_vla_size)
6032 (generate_c_for_for_one_variable): Change type of
6034 (generate_c_for_variable_locations): Return std::vector.
6035 * compile/compile-c-support.c (generate_register_struct): Change
6036 type of "registers_used".
6039 2021-01-23 Tom Tromey <tom@tromey.com>
6041 * compile/compile-internal.h (class compile_instance)
6042 <set_arguments>: Change return type.
6043 * compile/compile.c (compile_to_object): Remove call to reset.
6044 (compile_instance::set_arguments): Change return type.
6046 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6048 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6049 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6051 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6053 * Makefile.in (SELFTESTS_SRCS): Add
6054 unittests/gdb_tilde_expand-selftests.c.
6055 * unittests/gdb_tilde_expand-selftests.c: New file.
6057 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6060 * NEWS: Mention new command.
6061 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6062 (version_style): Define.
6063 (cli_style_option::cli_style_option): Add intensity parameter, and
6065 (_initialize_cli_style): Register version style set/show commands.
6066 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6067 (version_style): Declare.
6068 * top.c (print_gdb_version): Use version_stype, and styled_string
6069 to print the GDB version string.
6071 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6073 * utils.c (emit_style_escape): Only emit an escape sequence if the
6074 requested style is different than the current applied style.
6075 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6076 current applied_style.
6077 (fputs_styled): Remove is_default check.
6078 (fputs_styled_unfiltered): Likewise.
6079 (vfprintf_styled_no_gdbfmt): Likewise.
6081 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6083 * remote.h (remote_debug_printf): New.
6084 (remote_debug_printf_nofunc): New.
6085 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6086 * remote.c: Use above macros throughout file.
6088 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6090 * remote.h (remote_debug): Change to bool.
6091 * remote.c (remote_debug): Change to bool.
6092 (_initialize_remote): Adjust.
6094 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6096 * target.h (remote_debug): Move to...
6097 * remote.h (remote_debug): ... here.
6098 * top.c (remote_debug): Move to...
6099 * remote.c (remote_debug): ... here.
6100 * remote-sim.c: Include remote.h.
6102 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6104 * cli/cli-cmds.c (show_remote_debug): Remove.
6105 (show_remote_timeout): Remove.
6106 (_initialize_cli_cmds): Don't register commands.
6107 * remote.c (show_remote_debug): Move here.
6108 (show_remote_timeout): Move here.
6109 (_initialize_remote): Register commands.
6111 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6113 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6114 type::objfile method instead.
6116 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6118 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6119 use the type::is_objfile_owned method.
6121 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6123 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6124 (TYPE_OWNER): Remove.
6125 (TYPE_OBJFILE): Adjust.
6126 (struct main_type) <flag_objfile_owned>: Rename to...
6127 <m_flag_objfile_owned>: ... this.
6128 <owner>: Rename to...
6129 <m_owner>: ... this.
6130 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6132 (TYPE_ALLOC): Adjust.
6133 * gdbtypes.c (alloc_type): Adjust.
6134 (alloc_type_arch): Adjust.
6135 (alloc_type_copy): Adjust.
6136 (get_type_arch): Adjust.
6137 (smash_type): Adjust.
6138 (lookup_array_range_type): Adjust.
6139 (recursive_dump_type): Adjust.
6140 (copy_type_recursive): Adjust.
6141 * compile/compile-c-types.c (convert_func): Adjust.
6142 (convert_type_basic): Adjust.
6143 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6146 (language_arch_info::type_and_symbol::alloc_type_symbol):
6149 2021-01-21 Luis Machado <luis.machado@linaro.org>
6151 * coffread.c (enter_linenos): Passing string to complaint.
6152 * valops.c (value_assign): Make array view.
6154 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6156 * auto-load.h (debug_auto_load): Move here.
6157 (auto_load_debug_printf): New.
6158 * auto-load.c: Use auto_load_debug_printf.
6159 (debug_auto_load): Move to header.
6160 * linux-thread-db.c (try_thread_db_load): Use
6161 auto_load_debug_printf.
6162 * main.c (captured_main_1): Likewise.
6164 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6166 * f-valprint.c (f77_array_offset_tbl): Remove.
6168 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6170 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6172 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6174 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6177 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
6180 * python/py-breakpoint.c (bppy_get_location): Handle
6181 bp_hardware_breakpoint.
6182 (bppy_init): Likewise.
6183 (gdbpy_breakpoint_created): Likewise.
6185 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6187 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6189 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6191 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6192 (_initialize_gdb_bfd): Adjust.
6194 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6197 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6199 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6201 * dwarf2/read.c (follow_die_offset): Add logging.
6202 (dwarf2_per_objfile::age_comp_units): Add logging.
6204 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6206 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6207 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6208 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6209 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6210 * arm-tdep.c (struct frame_unwind): Make static.
6211 * auto-load.c (auto_load_safe_path_vec): Make static.
6212 * csky-tdep.c (csky_stub_unwind): Make static.
6213 * gdbarch.c (gdbarch_data_registry): Make static.
6214 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6215 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6216 * i386-tdep.c (i386_frame_setup_skip_insns,
6217 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6219 * infrun.c (observer_mode): Make static.
6220 * linux-nat.c (sigchld_action): Make static.
6221 * linux-thread-db.c (thread_db_list): Make static.
6222 * maint-test-options.c (maintenance_test_options_list):
6223 * mep-tdep.c (mep_csr_registers): Make static.
6224 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6225 (stats): Make static.
6226 * nat/linux-osdata.c (struct osdata_type): Make static.
6227 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6228 * progspace.c (last_program_space_num): Make static.
6229 * python/py-param.c (struct parm_constant): Remove struct type
6231 (parm_constants): Make static.
6232 * python/py-record-btrace.c (btpy_list_methods): Make static.
6233 * python/py-record.c (recpy_gap_type): Make static.
6234 * record.c (record_goto_cmdlist): Make static.
6235 * regcache.c (regcache_descr_handle): Make static.
6236 * registry.h (DEFINE_REGISTRY): Make definition static.
6237 * symmisc.c (std_in, std_out, std_err): Make static.
6238 * top.c (previous_saved_command_line): Make static.
6239 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6241 * unittests/command-def-selftests.c (nr_duplicates,
6242 nr_invalid_prefixcmd, lists): Make static.
6243 * unittests/observable-selftests.c (test_notification): Make
6245 * unittests/optional/assignment/1.cc (counter): Make static.
6246 * unittests/optional/assignment/2.cc (counter): Make static.
6247 * unittests/optional/assignment/3.cc (counter): Make static.
6248 * unittests/optional/assignment/4.cc (counter): Make static.
6249 * unittests/optional/assignment/5.cc (counter): Make static.
6250 * unittests/optional/assignment/6.cc (counter): Make static.
6252 2021-01-20 Joel Sherrill <joel@rtems.org>
6255 * remote.c (struct remote_thread_info) <resume_state>: Rename
6257 <get_resume_state>: ... this.
6258 (remote_target::resume): Adjust.
6259 (remote_target::commit_resume): Adjust.
6260 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6262 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6263 Tom Tromey <tom@tromey.com>
6265 * stap-probe.c (stap_parse_single_operand): Handle '!'
6267 (stap_parse_argument_conditionally): Likewise.
6268 Skip spaces after processing open-parenthesis sub-expression.
6269 (stap_parse_argument_1): Skip spaces after call to
6270 stap_parse_argument_conditionally.
6271 Handle case when right-side expression is a parenthesized
6273 Skip spaces after call to stap_parse_argument_1.
6275 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6277 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6279 2021-01-19 Luis Machado <luis.machado@linaro.org>
6281 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6282 memory and save data.
6283 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6284 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6285 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6286 (trad_frame_value_bytes_p): Remove.
6287 (trad_frame_reset_saved_regs): Adjust documentation.
6288 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6289 constructor and reset the state of the registers.
6290 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6291 (trad_frame_value_bytes_p, trad_frame_set_value)
6292 (trad_frame_set_realreg, trad_frame_set_addr)
6293 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6294 (trad_frame_set_reg_realreg): Update to call member function.
6295 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6296 (trad_frame_get_prev_register): Likewise.
6298 * aarch64-tdep.c (aarch64_analyze_prologue)
6299 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6300 (aarch64_prologue_prev_register): Update to use member functions.
6301 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6302 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6303 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6304 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6305 (arm_make_epilogue_frame_cache): Likewise.
6306 * avr-tdep.c (avr_frame_unwind_cache)
6307 (avr_frame_prev_register): Likewise.
6308 * cris-tdep.c (cris_scan_prologue): Likewise.
6309 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6310 * frv-tdep.c (frv_analyze_prologue): Likewise.
6311 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6312 * lm32-tdep.c (lm32_frame_cache): Likewise.
6313 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6314 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6315 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6316 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6317 (reset_saved_regs): Adjust to set realreg.
6318 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6319 call member functions.
6320 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6321 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6322 (s390_backchain_frame_unwind_cache): Likewise.
6323 * score-tdep.c (score7_analyze_prologue)
6324 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6325 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6326 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6327 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6328 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6329 * tilegx-tdep.c (tilegx_analyze_prologue)
6330 (tilegx_frame_cache): Likewise.
6331 * v850-tdep.c (v850_frame_cache): Likewise.
6332 * vax-tdep.c (vax_frame_cache): Likewise.
6334 2021-01-19 Luis Machado <luis.machado@linaro.org>
6336 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6338 (put_frame_register_bytes): Likewise.
6339 Adjust documentation.
6340 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6341 (safe_frame_unwind_memory): Likewise.
6342 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6343 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6345 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6346 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6347 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6348 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6349 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6350 * dwarf2/loc.c (rw_pieced_value): Likewise.
6351 * hppa-tdep.c (hppa_frame_cache): Likewise.
6352 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6353 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6354 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6355 (i386_linux_rt_sigtramp_start): Likewise.
6356 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6357 * i386-tdep.c (i386_register_to_value): Likewise.
6358 * i387-tdep.c (i387_register_to_value): Likewise.
6359 * ia64-tdep.c (ia64_register_to_value): Likewise.
6360 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6361 (m32r_linux_rt_sigtramp_start): Likewise.
6362 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6363 * m68k-tdep.c (m68k_register_to_value): Likewise.
6364 * mips-tdep.c (mips_register_to_value)
6365 (mips_value_to_register): Likewise.
6366 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6367 (ppcfbsd_sigtramp_frame_cache): Likewise.
6368 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6369 (ppcobsd_sigtramp_frame_cache): Likewise.
6370 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6371 (rs6000_register_to_value): Likewise.
6372 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6373 * tramp-frame.c (tramp_frame_start): Likewise.
6374 * valops.c (value_assign): Likewise.
6376 2021-01-19 Luis Machado <luis.machado@linaro.org>
6378 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6380 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6381 instead of buffer and size.
6382 (trad_frame_set_reg_value_bytes): Likewise.
6383 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6384 (trad_frame_set_value_bytes): Likewise.
6386 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6388 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6390 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6392 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6393 (riscv_fbsd_gregset): Use riscv_supply_regset.
6394 (riscv_fbsd_fpregset): Likewise.
6395 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6396 (riscv_linux_fregset): Likewise.
6397 * riscv-tdep.c (riscv_supply_regset): Define new function.
6398 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6400 2021-01-18 Tom de Vries <tdevries@suse.de>
6403 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6405 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6408 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6410 * remote.c (class remote_target) <remote_hostio_send_command,
6411 remote_hostio_parse_result>: Constify parameter.
6412 (remote_hostio_parse_result): Likewise.
6413 (remote_target::remote_hostio_send_command): Adjust.
6414 (remote_target::remote_hostio_pread_vFile): Adjust.
6415 (remote_target::fileio_readlink): Adjust.
6416 (remote_target::fileio_fstat): Adjust.
6418 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6420 * remote.c (remote_target::start_remote): Move wait_status to
6423 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6425 * remote.c (class remote_target):
6426 <add_current_inferior_and_thread>: Constify parameter.
6427 (stop_reply_extract_thread): Likewise.
6428 (remote_target::get_current_thread): Likewise.
6429 (remote_target::add_current_inferior_and_thread): Likewise.
6431 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6433 * remote.c (class remote_target)
6434 <remote_unpack_thread_info_response,
6435 parse_threadlist_response>: Constify parameter and/or return
6436 value and or local variable.
6437 (stub_unpack_int): Likewise.
6438 (unpack_nibble): Likewise.
6439 (unpack_byte): Likewise.
6440 (unpack_int): Likewise.
6441 (unpack_string): Likewise.
6442 (unpack_threadid): Likewise.
6443 (remote_target::remote_unpack_thread_info_response): Likewise.
6444 (remote_target::parse_threadlist_response): Likewise.
6446 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6448 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6450 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
6452 * MAINTAINERS (Write After Approval): Add myself.
6454 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6456 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6457 because is_trivially_default_constructible was first implemented with
6460 2021-01-14 Tom de Vries <tdevries@suse.de>
6462 PR breakpoints/27151
6463 * objfiles.h (in_plt_section): Handle .plt.sec.
6465 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6469 (remote_target::select_thread_for_ambiguous_stop_reply): New
6471 (remote_target::process_stop_reply): Call
6472 select_thread_for_ambiguous_stop_reply.
6474 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6476 * record-btrace.c (class record_btrace_target): Remove.
6477 (record_btrace_target::commit_resume): Remove.
6478 * record-full.c (class record_full_target): Remove.
6479 (record_full_target::commit_resume): Remove.
6481 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6483 * remote.c (enum class resume_state): New.
6484 (struct resumed_pending_vcont_info): New.
6485 (struct remote_thread_info) <resume_state, set_not_resumed,
6486 set_resumed_pending_vcont, resumed_pending_vcont_info,
6487 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6489 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6490 (remote_target::remote_add_thread): Adjust.
6491 (remote_target::process_initial_stop_replies): Adjust.
6492 (remote_target::resume): Adjust.
6493 (remote_target::commit_resume): Rely on state in
6494 remote_thread_info and not on tp->executing.
6495 (remote_target::process_stop_reply): Adjust.
6497 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6499 * arc-tdep.h (arc_debug_printf): New.
6500 * arc-tdep.c: Use arc_debug_printf.
6501 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6502 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6503 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6505 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6507 * arc-tdep.h (arc_debug): Change type to bool.
6508 * arc-tdep.c (arc_debug): Change type to bool.
6509 (arc_analyze_prologue): Adjust.
6510 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6511 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6513 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6515 * auto-load.c (auto_load_objfile_script_1): Use bool.
6516 (execute_script_contents): Use bool.
6518 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6520 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6522 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6524 * extension-priv.h (struct extension_language_script_ops)
6525 <auto_load_enabled>: Return bool.
6526 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6528 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6530 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6532 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6533 move comment to header.
6534 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6536 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6537 move comment to header.
6539 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6541 * auto-load.h (file_is_auto_load_safe): Change return type to
6542 bool, move comment here.
6543 * auto-load.c (file_is_auto_load_safe): Change return type and
6544 advice_printed to bool. Move comment to header.
6546 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6548 * jit.c (jit_debug_printf): New, use throughout file.
6550 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6552 * infrun.c (normal_stop): Fix indentation.
6554 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6556 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6558 * symfile.h: ... here.
6559 * symfile.c: Update doc.
6561 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6563 * target.h (baud_rate, serial_parity): Move declarations...
6564 * serial.h: ... here.
6565 * main.c: Include serial.h.
6566 * serial.c (baud_rate, serial_parity): Update doc.
6568 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6570 * top.c (pre_init_ui_hook): Remove.
6572 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6574 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6575 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6576 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6577 * features/aarch64-fpu.xml: Add bfloat16 type.
6579 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6581 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6583 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6585 * f-exp.y (dot_ops): Rename to...
6586 (fortran_operators): ...this. Add a header comment. Add symbol
6588 (yylex): Update to use fortran_operators not dot_ops. Remove
6589 special handling for '**', this is now included in
6592 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6594 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6595 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6596 * aarch64-tdep.c: Use aarch64_debug_printf.
6598 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6600 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6603 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6605 * jit.c (jit_debug): Change type to bool.
6606 (_initialize_jit): Adjust.
6608 2021-01-09 Tom Tromey <tom@tromey.com>
6611 * compile/compile.c (compile_to_object): Avoid crash when
6612 osabi_triplet_regexp returns NULL.
6614 2021-01-09 Tom Tromey <tom@tromey.com>
6616 * tracepoint.h (class collection_list) <append_exp>: Take a
6618 * tracepoint.c (collection_list::append_exp): Take a std::string.
6619 (encode_actions_1): Update.
6621 2021-01-08 Tom Tromey <tromey@adacore.com>
6623 * parse.c (parse_expression): Add void_context_p parameter. Use
6624 parse_exp_in_context.
6625 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6627 (print_command, call_command): Update.
6628 * expression.h (parse_expression): Add void_context_p parameter.
6630 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6632 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6633 for internalvar components that have a dynamic location.
6635 2021-01-08 Tom de Vries <tdevries@suse.de>
6638 * breakpoint.c (create_exception_master_breakpoint_probe)
6639 (create_exception_master_breakpoint_hook): Factor out
6641 (create_exception_master_breakpoint): ... here. Only try to install
6642 the master exception breakpoint in objfile.debug using the
6643 _Unwind_DebugHook method, if the install using probes in objfile
6646 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6648 * f-lang.c (fortran_value_subarray): Call value_from_component.
6650 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6652 * remote-sim.c: Include memory-map.h.
6653 (gdbsim_target): Define memory_map override.
6654 (gdbsim_target::memory_map): Define.
6656 2021-01-07 Tom Tromey <tromey@adacore.com>
6658 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6660 2021-01-07 Tom Tromey <tromey@adacore.com>
6662 * ada-lang.c (add_component_interval): Start loop using vector's
6665 2021-01-06 Tom Tromey <tromey@adacore.com>
6667 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6669 * valarith.c (fixed_point_binop): Handle multiplication
6670 and division specially.
6671 * valops.c (value_to_gdb_mpq): New function.
6672 (value_cast_to_fixed_point): Use it.
6674 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6676 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6677 Call wnoutrefresh instead of tui_win_info::refresh_window.
6679 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6681 * tui/tui-source.c (tui_source_window::show_line_number):
6682 Redraw second space after line number.
6684 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6687 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6688 Fix source pad size in prefresh.
6689 (tui_source_window_base::show_source_content): Grow source pad
6692 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6694 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6695 (bfin_frame_align): Use align_down.
6697 2021-01-04 Tom de Vries <tdevries@suse.de>
6699 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6700 terminators that do not terminate anything.
6702 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6704 * debug.c (debug_print_depth): New.
6705 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6706 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6707 * infrun.c (start_step_over): Use
6708 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6709 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6710 INFRUN_SCOPED_DEBUG_START_END.
6711 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6713 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6715 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6717 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6719 * utils.c (vfprintf_unfiltered): Print timestamp only when
6720 previous debug output ended with a newline.
6722 2021-01-04 Luis Machado <luis.machado@linaro.org>
6724 Update all users of trad_frame_saved_reg to use the new member
6727 Remote all struct keywords from declarations of trad_frame_saved_reg
6728 types, except on forward declarations.
6730 * aarch64-tdep.c: Update.
6731 * alpha-mdebug-tdep.c: Update.
6732 * alpha-tdep.c: Update.
6733 * arc-tdep.c: Update.
6734 * arm-tdep.c: Update.
6735 * avr-tdep.c: Update.
6736 * cris-tdep.c: Update.
6737 * csky-tdep.c: Update.
6738 * frv-tdep.c: Update.
6739 * hppa-linux-tdep.c: Update.
6740 * hppa-tdep.c: Update.
6741 * hppa-tdep.h: Update.
6742 * lm32-tdep.c: Update.
6743 * m32r-linux-tdep.c: Update.
6744 * m32r-tdep.c: Update.
6745 * m68hc11-tdep.c: Update.
6746 * mips-tdep.c: Update.
6747 * moxie-tdep.c: Update.
6748 * riscv-tdep.c: Update.
6749 * rs6000-tdep.c: Update.
6750 * s390-linux-tdep.c: Update.
6751 * s390-tdep.c: Update.
6752 * score-tdep.c: Update.
6753 * sparc-netbsd-tdep.c: Update.
6754 * sparc-sol2-tdep.c: Update.
6755 * sparc64-fbsd-tdep.c: Update.
6756 * sparc64-netbsd-tdep.c: Update.
6757 * sparc64-obsd-tdep.c: Update.
6758 * sparc64-sol2-tdep.c: Update.
6759 * tilegx-tdep.c: Update.
6760 * v850-tdep.c: Update.
6761 * vax-tdep.c: Update.
6763 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6764 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6766 * trad-frame.c: Update.
6767 Remove TF_REG_* enum.
6768 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6769 a trivially-constructible struct.
6770 (trad_frame_reset_saved_regs): Adjust to use member function.
6771 (trad_frame_value_p): Likewise.
6772 (trad_frame_addr_p): Likewise.
6773 (trad_frame_realreg_p): Likewise.
6774 (trad_frame_value_bytes_p): Likewise.
6775 (trad_frame_set_value): Likewise.
6776 (trad_frame_set_realreg): Likewise.
6777 (trad_frame_set_addr): Likewise.
6778 (trad_frame_set_unknown): Likewise.
6779 (trad_frame_set_value_bytes): Likewise.
6780 (trad_frame_get_prev_register): Likewise.
6781 * trad-frame.h: Update.
6782 (trad_frame_saved_reg_kind): New enum.
6783 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6784 <m_kind, m_reg>: New member fields.
6785 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6786 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6787 <is_addr, is_unknown, is_value_bytes>: New member functions.
6789 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6791 * target-float.c: Fix typos.
6793 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6795 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6797 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6799 * gdbarch.sh: Update copyright year range.
6801 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6803 Update copyright year range in copyright header of all GDB files.
6805 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6807 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6808 to the list of directories to update.
6810 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6812 * top.c (print_gdb_version): Update copyright year.
6814 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6816 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6818 For older changes see ChangeLog-2020.
6824 version-control: never