1 2021-06-07 Pedro Alves <pedro@palves.net>
3 * completer.c (RL_QF_SINGLE_QUOTE, RL_QF_DOUBLE_QUOTE)
4 (RL_QF_BACKSLASH, RL_QF_OTHER_QUOTE): Delete.
5 (gdb_rl_find_completion_word): Remove write-only 'found_quote'
8 2021-06-07 Pedro Alves <pedro@palves.net>
10 * nat/amd64-linux-siginfo.c (union nat_sigval): Rename to ...
11 (nat_sigval_t): ... this and remove typedef of same name.
12 (struct nat_siginfo): Rename to ...
13 (nat_siginfo_t): ... this and remove typedef of same name.
14 (struct compat_sigval): Rename to ...
15 (compat_sigval_t): ... this and remove typedef of same name.
16 (struct compat_siginfo): Rename to ...
17 (compat_siginfo_t): ... this and remove typedef of same name.
18 (struct compat_x32_siginfo): Rename to ...
19 (compat_x32_siginfo_t): ... this and remove typedef of same name.
20 (amd64_linux_siginfo_fixup_common): Adjust.
22 2021-06-07 Pedro Alves <pedro@palves.net>
24 * nat/amd64-linux-siginfo.c (compat_x32_siginfo_t): Move
25 __attribute__ __aligned__ from the typedef to the struct.
27 2021-06-07 Andrew Burgess <andrew.burgess@embecosm.com>
30 * amd64-tdep.c (amd64_has_unaligned_fields): Move call to
31 type_align, and spot case where the alignment is unknown.
33 2021-06-07 Carl Love <cel@us.ibm.com>
35 * ppc-tdep.h (ppc_insn_prefix_dform): Declare.
36 * ppc64-tdep.c(insn_md, insn_x, insn_xo): New macros.
37 (ppc64_plt_pcrel_entry_point, ppc64_pcrel_linkage1_target,
38 ppc64_pcrel_linkage2_target): New functions.
39 (ppc64_standard_linkage9, ppc64_standard_linkage10,
40 ppc64_standard_linkage11, ppc64_standard_linkage12): New ppc
42 (ppc64_standard_linkage9, ppc64_standard_linkage10,
43 ppc64_standard_linkage11, ppc64_standard_linkage12): New variables
44 in define MAX expression.
45 (ppc64_skip_trampoline_code_1): Handle ppc64_standard_linkage9,
46 ppc64_standard_linkage10, ppc64_standard_linkage11,
47 ppc64_standard_linkage12.
48 * (ppc_insn_prefix_dform): New function.
50 2021-06-07 Simon Marchi <simon.marchi@polymtl.ca>
53 * sparc-nat.c (sparc_fetch_inferior_registers): Set
54 inferior_ptid instead of using switch_to_thread.
55 (sparc_store_inferior_registers): Likewise.
57 2021-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
59 * compile/compile.c (scoped_ignore_sigpipe): New helper class.
60 (compile_to_object): Ignore SIGPIPE before calling the plugin.
62 2021-06-05 Tom Tromey <tom@tromey.com>
64 * data-directory/Makefile.in (Makefile): Use correct directory
67 2021-06-05 Tom Tromey <tom@tromey.com>
69 * data-directory/Makefile.in (Makefile): Rewrite.
71 2021-06-05 Tom Tromey <tromey@adacore.com>
74 * configure.ac: Add ACX_NONCANONICAL_TARGET.
76 2021-06-05 Shahab Vahedi <shahab@synopsys.com>
78 * NEWS: Document 'set disassembler-options' support for the ARC
80 * arc-tdep.c (arc_gdbarch_init): Set
81 'gdbarch_valid_disassembler_options'.
83 2021-06-04 Tom Tromey <tromey@adacore.com>
85 * dwarf2/read.h (dwarf2_fetch_die_type_sect_off): Add 'var_name'
87 * dwarf2/loc.c (dwarf2_evaluate_property) <case
88 PROP_VARIABLE_NAME>: New case.
89 (compute_var_value): New function.
90 (sect_variable_value): Use compute_var_value.
91 * dwarf2/read.c (attr_to_dynamic_prop): Handle DW_TAG_variable.
92 (var_decl_name): New function.
93 (dwarf2_fetch_die_type_sect_off): Add 'var_name' parameter.
94 * gdbtypes.h (enum dynamic_prop_kind) <PROP_VARIABLE_NAME>: New
96 (union dynamic_prop_data) <variable_name>: New member.
97 (struct dynamic_prop) <variable_name, set_variable_name>: New
100 2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com>
102 * remote.c (remote_target)
103 <select_thread_for_ambiguous_stop_reply>: Add additional debug
106 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
108 * python/py-tui.c (class tui_py_window): Add click function.
109 (tui_py_window::click): Likewise.
111 2021-06-04 Hannes Domani <ssbssa@yahoo.de>
113 * ser-mingw.c (console_select_thread): Handle MOUSE_EVENT.
114 * tui/tui-data.h (struct tui_win_info): Add click function.
115 * tui/tui-io.c (tui_prep_terminal): Enable mouse events.
116 (tui_deprep_terminal): Disable mouse events.
117 (tui_dispatch_ctrl_char): Handle KEY_MOUSE.
118 * tui/tui.c (tui_disable): Disable mouse events.
120 2021-06-03 Magne Hov <mhov@undo.io>
123 * eval.c (expression::evaluate): Check inferior_ptid.
125 2021-06-03 Pedro Alves <pedro@palves.net>
127 * MAINTAINERS (The Official FSF-appointed GDB Maintainers): Remove
129 (Global Maintainers): Update my address.
130 (Write After Approval): Remove stale entry.
132 2021-06-03 John Baldwin <jhb@FreeBSD.org>
134 * fbsd-tdep.c (FBSD_SI_USER, FBSD_SI_QUEUE, FBSD_SI_TIMER)
135 (FBSD_SI_ASYNCIO, FBSD_SI_MESGQ, FBSD_SI_KERNEL, FBSD_SI_LWP)
136 (FBSD_ILL_ILLOPC, FBSD_ILL_ILLOPN, FBSD_ILL_ILLADR)
137 (FBSD_ILL_ILLTRP, FBSD_ILL_PRVOPC, FBSD_ILL_PRVREG)
138 (FBSD_ILL_COPROC, FBSD_ILL_BADSTK, FBSD_BUS_ADRALN)
139 (FBSD_BUS_ADRERR, FBSD_BUS_OBJERR, FBSD_BUS_OOMERR)
140 (FBSD_SEGV_MAPERR, FBSD_SEGV_ACCERR, FBSD_SEGV_PKUERR)
141 (FBSD_FPE_INTOVF, FBSD_FPE_INTDIV, FBSD_FPE_FLTDIV)
142 (FBSD_FPE_FLTOVF, FBSD_FPE_FLTUND, FBSD_FPE_FLTRES)
143 (FBSD_FPE_FLTINV, FBSD_FPE_FLTSUB, FBSD_TRAP_BRKPT)
144 (FBSD_TRAP_TRACE, FBSD_TRAP_DTRACE, FBSD_TRAP_CAP)
145 (FBSD_CLD_EXITED, FBSD_CLD_KILLED, FBSD_CLD_DUMPED)
146 (FBSD_CLD_TRAPPED, FBSD_CLD_STOPPED, FBSD_CLD_CONTINUED)
147 (FBSD_POLL_IN, FBSD_POLL_OUT, FBSD_POLL_MSG, FBSD_POLL_ERR)
148 (FBSD_POLL_PRI, FBSD_POLL_HUP, fbsd_signal_cause)
149 (fbsd_report_signal_info): New.
150 (fbsd_init_abi): Use fbsd_report_signal_info as gdbarch
151 report_signal_info method.
153 2021-06-03 Magne Hov <mhov@undo.io>
155 * MAINTAINERS (Write After Approval): Add Magne Hov.
157 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
159 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
160 gdb.SYMBOL_LABEL_DOMAIN constant.
162 2021-06-01 John Baldwin <jhb@FreeBSD.org>
164 * infrun.c (handle_inferior_event): Only call
165 gdbarch_displaced_step_restore_all_in_ptid if
166 gdbarch_supports_displaced_stepping is true.
168 2021-06-01 Tom Tromey <tromey@adacore.com>
170 * Makefile.in (all-data-directory): Remove.
171 (data-directory/Makefile): Remove.
173 2021-06-01 Tom Tromey <tromey@adacore.com>
175 * configure: Rebuild.
176 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
178 2021-06-01 Tom Tromey <tromey@adacore.com>
180 * silent-rules.mk (ECHO_CC): New variable.
182 2021-06-01 Tom Tromey <tromey@adacore.com>
184 * Makefile.in (SUBDIRS): Add testsuite.
185 (all): Don't exclude testsuite.
187 2021-06-01 Tom Tromey <tromey@adacore.com>
189 * configure.ac: Copy some code from testsuite/configure.ac.
190 (enable_libctf): Subst this, not ENABLE_LIBCTF.
191 * configure: Rebuild.
193 2021-06-01 Tom de Vries <tdevries@suse.de>
196 * minsyms.c (msymbol_is_cold_clone): New function.
197 (msymbol_is_function): Use msymbol_is_cold_clone.
199 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
200 Andrew Burgess <andrew.burgess@embecosm.com>
203 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
204 (ALLDEPFILES): Add arm-none-tdep.c
205 * arm-none-tdep.c: New file.
206 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
208 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
209 Richard Bunt <richard.bunt@arm.com>
211 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
212 check for why the backtrace stopped.
214 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
216 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
218 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
219 signature parameter, update all callers.
220 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
223 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
225 * dwarf2/read.h (signatured_type_up): New, use where possible.
227 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
229 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
231 2021-05-30 Tom Tromey <tom@tromey.com>
233 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
235 (create_signatured_type_table_from_index)
236 (create_signatured_type_table_from_debug_names, add_type_unit)
237 (read_comp_units_from_section): Update.
239 2021-05-30 Tom Tromey <tom@tromey.com>
241 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
242 m_num_psymtabs>: Remove.
243 (resize_symtabs): Update.
244 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
245 (dwarf2_per_bfd::allocate_signatured_type): Update.
247 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
249 * Fix tab after space indentation issues throughout.
251 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
253 * Fix some indentation mistakes throughout.
255 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
257 * breakpoint.h (iterate_over_bp_locations): Remove. Update
258 users to use all_bp_locations.
259 (all_bp_locations): New.
260 * breakpoint.c (all_bp_locations): Make non-static.
261 (iterate_over_bp_locations): Remove.
263 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
265 * breakpoint.h (iterate_over_breakpoints): Remove. Update
266 callers to use all_breakpoints or all_breakpoints_safe.
267 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
268 all_breakpoints_safe): Move here.
269 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
271 (iterate_over_breakpoints): Remove.
272 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
274 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
276 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
278 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
280 * breakpoint.c (get_first_locp_gte_addr): Remove.
281 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
282 all_bp_locations_at_addr.
283 (struct bp_locations_at_addr_range): New.
284 (all_bp_locations_at_addr): New.
285 (bp_locations_compare_addrs): New.
287 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
289 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
291 (all_bp_locations): New.
293 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
295 * breakpoint.c (bp_locations): Change to std::vector, update all
297 (bp_locations_count): Remove.
298 (update_global_location_list): Change to work with indices
299 rather than bp_location**.
301 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
303 * breakpoint.h (bp_locations_range): New.
304 (struct breakpoint) <locations>: New. Use where possible.
306 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
308 * breakpoint.h (all_tracepoints): Remove.
309 (breakpoint_iterator): Move here.
310 (struct tracepoint_filter): New.
311 (tracepoint_iterator): New.
312 (tracepoint_range): New.
313 (all_tracepoints): New.
314 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
316 (breakpoint_iterator): Move to header.
317 (all_tracepoints): New.
318 * tracepoint.c (start_tracing): Adjust.
320 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
322 * breakpoint.c (breakpoint_safe_range): New.
323 (all_breakpoints_safe): New. Use instead of
324 ALL_BREAKPOINTS_SAFE where possible.
326 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
328 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
330 (breakpoint_iterator): New.
331 (breakpoint_range): New.
332 (all_breakpoints): New.
334 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
336 * python/py-tui.c (tui_py_window::output): Add full_window
338 (gdbpy_tui_write): Parse "full_window" argument.
340 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
342 * make-init-c: Add option to reverse function calls.
344 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
346 * Makefile.in (INIT_FILES_FILTER_OUT): New.
347 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
348 (stamp-init): Use make-init-c.
349 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
350 * silent-rules.mk (ECHO_INIT_C): Change.
351 * make-init-c: New file.
353 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
355 * command.h (add_alias_cmd): Accept target as
356 cmd_list_element. Update callers.
358 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
360 * command.h (add_info_alias): Accept target as
361 cmd_list_element. Update callers.
363 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
365 * command.h (add_com_alias): Accept target as
366 cmd_list_element. Update callers.
368 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
370 * python/py-param.c (add_setshow_generic): Use return values of
371 add_setshow functions.
373 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
375 * mi/mi-main.c (_initialize_mi_main):
376 * python/py-auto-load.c (gdbpy_initialize_auto_load):
377 * remote.c (_initialize_remote):
379 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
381 * command.h (set_show_commands): New.
382 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
383 add_setshow_boolean_cmd, add_setshow_filename_cmd,
384 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
385 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
386 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
387 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
388 Return set_show_commands. Adjust callers.
389 * cli/cli-decode.c (add_setshow_cmd_full): Return
390 set_show_commands, remove result parameters, adjust callers.
392 2021-05-27 Tom de Vries <tdevries@suse.de>
395 * dwarf2/read.c (process_psymtab_comp_unit):
397 2021-05-27 Tom de Vries <tdevries@suse.de>
399 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
402 2021-05-27 Tom de Vries <tdevries@suse.de>
405 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
406 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
407 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
408 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
410 (dwarf2_per_cu_data): Remove load_all_dies field.
412 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
414 * regcache.c (reg_buffer::reg_buffer): Default-initialize
417 2021-05-26 Tom Tromey <tom@tromey.com>
419 * dwarf2/read.c (allocate_type_unit_groups_table)
420 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
422 (free_line_header_voidp): Remove.
424 (completion_tracker::completion_hash_entry::deleter): Remove.
425 (completion_tracker::discard_completions): Use htab_delete_entry.
426 * utils.h (htab_delete_entry): New template function.
428 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
430 * python/py-tui.c (tui_py_window::refresh_window):
433 2021-05-23 Tom de Vries <tdevries@suse.de>
436 * target.h (struct target_ops): Mention target_thread_architecture in
437 read_description comment.
438 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
439 pid to determine if process is 64-bit or 32-bit.
440 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
442 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
443 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
444 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
445 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
446 Likewise, use pid to determine if kernel supports reading VFP
449 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
451 * main.c (enum cmdarg_kind): Fix option type comments for
452 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
454 2021-05-21 Tom de Vries <tdevries@suse.de>
457 * contrib/cc-with-tweaks.sh: Handle -l.
459 2021-05-21 Tom de Vries <tdevries@suse.de>
462 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
463 objects. Call get_jiter_objfile_data with the_objfile.
465 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
467 * linespec.c (linespec_p): Remove. Replace all uses with
470 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
471 Pedro Alves <pedro@palves.net>
473 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
474 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
475 command_line_up instead of struct command_line.
476 (build_command_line): Likewise.
477 (get_command_line): Update the cmd function call parameter.
478 (process_next_line): Use unique_ptr command_line_up instead
479 of struct command_line.
480 (recurse_read_control_structure): Change the the type of
481 next to command_line_up.
482 (read_command_lines_1): Change type of `next' to be
483 command_line_up and update all references of `next'
486 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
488 * MAINTAINERS (Write After Approval): Add myself.
490 2021-05-19 John Baldwin <jhb@FreeBSD.org>
492 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
494 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
496 * inflow.c (new_tty): Do not leak tty.
498 2021-05-17 Tom Tromey <tom@tromey.com>
500 * dwarf2/read.h: Update include.
501 * dwarf2/read.c: Update include.
502 * dwarf2/line-header.c: Update include.
503 * dwarf2/cu.h: Update include.
504 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
505 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
506 * Makefile.in (COMMON_SFILES): Update.
508 2021-05-17 Tom Tromey <tom@tromey.com>
510 * dwarf2/read.c (maybe_queue_comp_unit)
511 (dwarf2_per_objfile::age_comp_units): Update.
512 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
514 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
515 add_dependence>: New methods.
516 <m_dependencies>: Add "m_" prefix. Now private.
517 <m_mark>: Add "m_" prefix.
518 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
519 (dwarf2_mark_helper): New function.
520 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
522 2021-05-17 Tom Tromey <tom@tromey.com>
524 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
525 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
526 (dwarf2_cu::dwarf2_cu): Move to cu.c.
527 * dwarf2/cu.c: New file.
528 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
530 2021-05-17 Tom Tromey <tom@tromey.com>
532 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
533 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
535 * dwarf2/cu.h: New file.
537 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
539 * .dir-locals.el: Set sentence-end-double-space for all modes, and
540 set brace-list-open to 0 for C and C++ modes.
542 2021-05-17 Tom Tromey <tromey@adacore.com>
544 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
547 2021-05-17 Tom Tromey <tromey@adacore.com>
549 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
550 (group_from_gid): Subtract one from strncpy length.
552 2021-05-17 Tom Tromey <tromey@adacore.com>
554 * source.c (add_path): Check 'p' before using 'p[-1]'.
556 2021-05-17 Tom Tromey <tromey@adacore.com>
558 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
559 (dwarf2_per_cu_data_up): New typedef.
560 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
561 <all_comp_units>: Use dwarf2_per_cu_data_up.
562 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
563 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
564 (create_cu_from_index_list): Likewise.
565 (create_signatured_type_table_from_index)
566 (create_cus_from_debug_names_list, add_type_unit)
567 (read_comp_units_from_section): Update.
568 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
571 2021-05-17 Tom Tromey <tom@tromey.com>
573 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
574 (sort_tu_by_abbrev_offset): Remove.
575 (build_type_psymtabs): Update.
577 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
579 * py-project.toml: New.
580 * gdb-gdb.py.in: Re-format.
582 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
584 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
586 * command.h (cmd_func_p): Remove.
587 * cli/cli-decode.c (cmd_func_p): Remove.
589 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
591 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
593 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
595 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
597 <alias_target>: ... this.
598 (add_alias_cmd): Rename old to target.
599 (add_info_alias): Rename old_name to target_name.
600 (add_com_alias): Likewise.
602 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
604 * Rename "prefixlist" parameters to "subcommands" throughout.
605 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
606 <subcommands>: ... this.
607 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
608 (lookup_cmd_with_subcommands): ... this.
610 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
612 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
614 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
616 * cli/cli-decode.h (prefixname): Make const, move implementation
618 * cli/cli-decode.c (cmd_list_element::prefixname): New.
620 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
622 * ctfread.c (new_symbol): Set function address.
623 (read_func_kind_type): Remove incorrect type name setting.
624 Don't copy name returned from ctf_type_ame_raw throughout file.
626 2021-05-14 Tom Tromey <tom@tromey.com>
628 * rust-lang.c (rust_language::val_print_struct)
629 (rust_language::print_enum): Use common_val_print, not
632 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
634 * python/py-inferior.c (infpy_get_connection_num): New function.
635 (inferior_object_getset): Add a new element for 'connection_num'.
636 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
638 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
640 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
641 argument type, update and re-wrap, header comment.
642 (remote_target::commit_resumed): Convert any_process_wildcard and
643 may_global_wildcard_vcont from int to bool.
645 2021-05-14 Kent Cheung <kent.cheung@arm.com>
647 * cp-valprint.c (cp_print_value): Replaced duplicate code.
648 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
649 just before printing child values.
650 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
651 printing string representation.
652 * python/py-prettyprint.c (print_children): Check max_depth just
653 before printing child values.
654 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
655 printing string representation.
657 2021-05-14 Mike Frysinger <vapier@gentoo.org>
659 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
660 sim/callback.h & sim/sim.h.
662 2021-05-13 Mike Frysinger <vapier@gentoo.org>
664 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
667 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
669 * inf-child.h (inf_child_target) <follow_exec>: New.
670 * inf-child.c (inf_child_target::follow_exec): New.
672 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
674 * target.h (struct target_ops) <follow_exec>: Add ptid_t
676 (target_follow_exec): Likewise.
677 * target.c (target_follow_exec): Add ptid_t parameter.
678 * infrun.c (follow_exec): Adjust call to target_follow_exec,
679 don't push target nor create thread.
680 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
681 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
682 (thread_db_target::follow_exec): New.
683 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
684 (remote_target::follow_exec): Call
685 process_stratum_target::follow_exec.
686 * target-delegates.c: Re-generate.
688 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
690 * infrun.c (follow_exec): Call target_follow_fork when
691 follow-exec-mode is same.
692 * target.h (target_follow_fork): Improve doc.
694 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
696 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
698 * cli/cli-setshow.c (do_show_command): Adjust.
700 2021-05-13 Luis Machado <luis.machado@linaro.org>
702 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
703 include the last address in the range.
705 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
707 * python/python-internal.h (gdbpy_parse_command_name): Return
708 gdb::unique_xmalloc_ptr.
709 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
710 (cmdpy_init): Adjust.
711 * python/py-param.c (parmpy_init): Adjust.
712 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
715 2021-05-12 George Barrett <bob@bob131.so>
717 * NEWS (Guile API): Note the addition of the new procedure.
718 * guile/scm-value.c (gdbscm_value_const_value): Add
719 implementation of value-const-value procedure.
720 (value_functions): Add value-const-value procedure.
722 2021-05-12 George Barrett <bob@bob131.so>
724 * NEWS (Guile API): Note the addition of new procedures.
725 * guile/scm-value.c (gdbscm_reference_value): Add helper function
726 for reference value creation.
727 (gdbscm_value_reference_value): Add implementation of
728 value-reference-value procedure.
729 (gdbscm_value_rvalue_reference_value): Add implementation of
730 value-rvalue-reference-value procedure.
731 (value_functions): Add value-reference-value procedure. Add
732 value-rvalue-reference-value procedure.
734 2021-05-12 George Barrett <bob@bob131.so>
736 * guile/scm-type.c (type_integer_constants): Add binding for
737 TYPE_CODE_RVALUE_REF.
738 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
739 dereferencing of rvalue references.
740 * NEWS (Guile API): Note improvements in rvalue reference support.
742 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
744 * btrace.c (handle_pt_insn_events): Ignore status update enable
747 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
749 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
752 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
754 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
756 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
759 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
762 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
764 * nat/linux-waitpid.c (status_to_str): Show signal name.
766 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
768 * python/py-breakpoint.c (pybp_debug): New static global.
769 (show_pybp_debug): New function.
770 (pybp_debug_printf): Define.
771 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
772 (gdbpy_breakpoint_created): Add some debugging.
773 (gdbpy_breakpoint_deleted): Likewise.
774 (gdbpy_breakpoint_modified): Likewise.
775 (_initialize_py_breakpoint): New function.
777 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
779 * python/py-unwind.c (pyuw_debug): Convert to bool.
780 (show_pyuw_debug): New function.
781 (pyuw_debug_printf): Define.
782 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
783 (pyuw_this_id): Convert to new debug print macros.
784 (pyuw_prev_register): Likewise.
785 (pyuw_sniffer): Likewise.
786 (pyuw_dealloc_cache): Likewise.
787 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
788 show function when registering.
790 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
792 * dummy-frame.c (fprint_dummy_frames): Convert use of
793 fprint_frame_id to use frame_id::to_string.
794 * frame.c (fprint_field): Delete.
795 (fprint_frame_id): Moved to...
796 (frame_id::to_string): ...this, rewritten to return a string.
797 (fprint_frame): Convert use of fprint_frame_id to use
799 (compute_frame_id): Likewise.
800 (frame_id_p): Likewise.
801 (frame_id_eq): Likewise.
802 (frame_id_inner): Likewise.
803 * frame.h (struct frame_id) <to_string>: New member function.
804 (fprint_frame_id): Delete declaration.
805 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
806 fprint_frame_id to use frame_id::to_string.
807 * python/py-frame.c (frame_object_to_frame_info): Likewise.
808 * python/py-unwind.c (unwind_infopy_str): Likewise.
809 (pyuw_this_id): Likewise.
811 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
813 * nat/linux-waitpid.c (status_to_str): Return std::string.
814 * nat/linux-waitpid.h (status_to_str): Likewise.
815 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
816 (linux_nat_target::attach): Adjust.
817 (linux_handle_extended_wait): Adjust.
819 (stop_wait_callback): Adjust.
820 (linux_nat_filter_event): Adjust.
821 (linux_nat_wait_1): Adjust.
822 * nat/linux-waitpid.c (status_to_str): Adjust.
823 * nat/linux-waitpid.h (status_to_str): Adjust.
825 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
827 * infrun.h (infrun_debug_printf): Add missing space.
829 2021-05-08 Pedro Alves <pedro@palves.net>
831 * linux-nat.c (linux_nat_target::supports_disable_randomization):
832 Remove references to HAVE_PERSONALITY.
833 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
834 (maybe_disable_address_space_randomization)
835 (~maybe_disable_address_space_randomizatio): Remove references to
837 * config.in, configure: Regenerate.
839 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
841 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
843 (source_script_with_search): Perform tilde expansion.
845 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
847 * target-descriptions.c (struct target_desc_info) <filename>:
849 (copy_inferior_target_desc_info): Adjust.
850 (target_desc_info_free): Adjust.
851 (target_find_description): Adjust.
852 (set_tdesc_filename_cmd): Adjust.
853 (show_tdesc_filename_cmd): Adjust.
854 (unset_tdesc_filename_cmd): Adjust.
855 (maint_print_c_tdesc_cmd): Adjust.
857 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
859 * target-descriptions.c (struct target_desc_info): Initialize
861 (get_tdesc_info): Use new.
862 (target_desc_info_free): Use delete.
864 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
866 * target-descriptions.c (struct target_desc_info) <fetched>:
868 (target_find_description): Adjust.
869 (target_clear_description): Adjust.
871 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
873 * target-descriptions.c (struct target_desc_info) <tdesc>:
875 (target_desc_fetched): Remove.
876 (current_target_desc): Remove.
877 (target_description_filename): Remove.
878 (target_find_description): Adjust.
879 (target_clear_description): Adjust.
880 (target_current_description): Adjust.
881 (set_tdesc_filename_cmd): Adjust.
882 (show_tdesc_filename_cmd): Adjust.
883 (unset_tdesc_filename_cmd): Adjust.
884 (maint_print_c_tdesc_cmd): Adjust.
885 (maint_print_xml_tdesc_cmd): Adjust.
887 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
889 * infcmd.c (notice_new_inferior): Change parameter type.
890 * inferior.h (notice_new_inferior): Change parameter type.
891 * remote.c (remote_notice_new_inferior): Change parameter type to
892 bool. Also update type of local variable to bool.
893 (remote_target::update_thread_list): Change type of local variable
895 (remote_target::process_stop_reply): Pass bool instead of int to
896 remote_notice_new_inferior.
898 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
900 * target.c (target_stack::unpush): Call target_ops::find_beneath
901 to get the target beneath `t`.
903 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
905 * target.c (target_close): Check in all inferiors that the
906 target is not pushed.
908 2021-05-07 Aaron Merey <amerey@redhat.com>
910 * debuginfod-support.c (debuginfod_init): Remove.
911 (get_debuginfod_client): New function.
913 2021-05-07 Tom Tromey <tom@tromey.com>
915 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
916 * utils.c (streq_hash): Remove.
917 * utils.h (streq_hash): Don't declare.
918 * completer.c (completion_tracker::discard_completions): Update
920 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
922 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
924 * Re-format all Python files using black.
926 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
928 * guile/guile-internal.h (gdbscm_safe_source_script): Change
929 function return type.
930 * guile/guile.c (gdbscm_source_script): Update to handle change in
931 gdbscm_safe_source_script.
932 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
933 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
936 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
938 * inferior.h (class inferior) <args>: Change type to
940 * inferior.c (inferior::~inferior): Don't free args.
941 * infcmd.c (get_inferior_args): Adjust.
942 (set_inferior_args): Adjust.
944 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
946 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
947 breakpoint locations when the breakpoint actually has a location.
949 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
951 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
952 * mi/mi-cmds.c: Change the binding of "-break-condition" to
953 mi_cmd_break_condition.
954 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
955 * breakpoint.h (set_breakpoint_condition): Declare a new
957 * breakpoint.c (set_breakpoint_condition): New overloaded function
958 extracted out from ...
959 (condition_command): ... this.
960 * NEWS: Mention the change.
962 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
964 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
965 '--force-condition' flag to force the condition in the
966 '-break-insert' and '-dprintf-insert' commands.
967 * NEWS: Mention the change.
969 2021-05-04 Tom de Vries <tdevries@suse.de>
972 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
975 2021-04-30 Tom Tromey <tom@tromey.com>
977 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
978 (add_signatured_type_cu_to_table): Remove.
979 (create_debug_type_hash_table): Assume dwo_file is non-null.
980 (create_debug_types_hash_table): Update comment.
981 (create_all_type_units): Remove.
982 (sort_tu_by_abbrev_offset): Update comment.
983 (build_type_psymtabs): Rename from build_type_psymtabs_1.
984 (build_type_psymtabs): Remove.
985 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
987 (read_comp_units_from_section): Add types_htab, section_kind
989 (create_all_comp_units): Read type units.
991 2021-04-30 Tom Tromey <tom@tromey.com>
993 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
994 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
995 <get_cu>: Now inline.
996 <all_type_units>: Remove.
997 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
998 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
999 (dwarf2_per_bfd::get_tu): Remove.
1000 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
1001 (create_signatured_type_table_from_index)
1002 (create_signatured_type_table_from_debug_names)
1003 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
1004 (dwarf2_base_index_functions::expand_all_symtabs)
1005 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
1006 (dwarf2_base_index_functions::map_symbol_filenames)
1007 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
1008 (add_signatured_type_cu_to_table, create_all_type_units)
1009 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
1010 (create_all_comp_units): Update.
1011 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
1012 (write_debug_names): Update.
1014 2021-04-30 Tom Tromey <tom@tromey.com>
1016 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
1017 allocate_signatured_type>: Change return type.
1018 <all_comp_units, all_type_units>: Hold unique pointers.
1019 (struct dwarf2_per_cu_data): Add constructor and initializers.
1020 (struct signatured_type): Derive from dwarf2_per_cu_data.
1021 * dwarf2/read.c (type_unit_group): Derive from
1023 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
1024 (dwarf2_per_bfd::get_tu)
1025 (dwarf2_per_bfd::allocate_signatured_type)
1026 (dwarf2_per_bfd::allocate_signatured_type)
1027 (create_cu_from_index_list, create_cus_from_index_list)
1028 (create_signatured_type_table_from_index)
1029 (create_signatured_type_table_from_debug_names)
1030 (create_addrmap_from_aranges)
1031 (dwarf2_base_index_functions::find_last_source_symtab)
1032 (dw_expand_symtabs_matching_file_matcher)
1033 (dwarf2_gdb_index::expand_symtabs_matching)
1034 (dwarf2_base_index_functions::map_symbol_filenames)
1035 (create_cus_from_debug_names_list)
1036 (dw2_debug_names_iterator::next)
1037 (dwarf2_debug_names_index::expand_symtabs_matching)
1038 (create_debug_type_hash_table, add_type_unit)
1039 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
1041 (allocate_type_unit_groups_table): Use delete.
1042 (create_type_unit_group): Change return type. Use new.
1043 (get_type_unit_group, build_type_psymtabs_1)
1044 (build_type_psymtab_dependencies)
1045 (process_skeletonless_type_unit, set_partial_user)
1046 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
1047 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
1048 (read_signatured_type): Update.
1049 (dwarf2_find_containing_comp_unit): Change type of
1052 (dwarf2_per_bfd::allocate_per_cu)
1053 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
1055 (add_signatured_type_cu_to_table): Update.
1056 * dwarf2/index-write.c (write_one_signatured_type)
1057 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
1058 (write_debug_names): Update.
1060 2021-04-30 Tom Tromey <tromey@adacore.com>
1062 * nat/windows-nat.h (get_image_name): Don't declare.
1063 * nat/windows-nat.c (get_image_name): Now static.
1065 2021-04-30 Tom Tromey <tromey@adacore.com>
1067 * windows-nat.c (windows_nat::handle_load_dll): Update.
1068 (windows_nat_target::get_windows_debug_event): Call
1070 (windows_add_all_dlls, windows_add_dll): Move to
1072 * nat/windows-nat.h (handle_load_dll): Change parameters.
1073 (dll_loaded_event, windows_add_all_dlls): Declare.
1074 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
1076 (dll_loaded_event): New function.
1078 2021-04-30 Tom Tromey <tromey@adacore.com>
1080 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
1081 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
1083 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
1084 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
1086 2021-04-30 Tom Tromey <tromey@adacore.com>
1088 * windows-nat.c: Move code to nat/windows-nat.[ch].
1089 (_initialize_windows_nat): Call initialize_loadable.
1090 * nat/windows-nat.h (AdjustTokenPrivileges)
1091 (DebugActiveProcessStop, DebugBreakProcess)
1092 (DebugSetProcessKillOnExit, EnumProcessModules)
1093 (EnumProcessModulesEx, GetModuleInformation)
1094 (GetModuleFileNameExA, GetModuleFileNameExW)
1095 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
1096 (GetCurrentConsoleFont, Wow64SuspendThread)
1097 (Wow64GetThreadContext, Wow64SetThreadContext)
1098 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
1099 (AdjustTokenPrivileges_ftype)
1100 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
1101 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
1102 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
1103 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
1104 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
1105 (GetConsoleFontSize_ftype)
1106 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
1107 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
1108 (Wow64GetThreadSelectorEntry_ftype): Likewise.
1109 (initialize_loadable): Declare.
1110 * nat/windows-nat.c (AdjustTokenPrivileges)
1111 (DebugActiveProcessStop, DebugBreakProcess)
1112 (DebugSetProcessKillOnExit, EnumProcessModules)
1113 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
1114 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
1115 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
1116 (Wow64GetThreadContext, Wow64SetThreadContext)
1117 (Wow64GetThreadSelectorEntry): Define.
1118 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
1120 (initialize_loadable): Likewise, and rename.
1122 2021-04-30 Tom Tromey <tromey@adacore.com>
1124 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
1125 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
1126 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
1127 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
1128 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
1129 (bad): New template functions.
1130 (_initialize_loadable): Update.
1132 2021-04-30 Tom Tromey <tromey@adacore.com>
1134 * ada-lang.c (ada_index_type): Use ada_check_typedef.
1136 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
1138 * auto-load.h: Split namespace declaration.
1140 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
1142 * infrun.c (save_waitstatus): Move variables to inner scope.
1144 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
1146 * NEWS: Fix typo and stray full stop.
1148 2021-04-28 Tom Tromey <tromey@adacore.com>
1150 * ada-exp.y (primary): Use new type for null pointer.
1151 * ada-lang.c (ada_type_match): Remove "may_deref"
1152 parameter. Handle null pointer.
1153 (ada_args_match): Update.
1154 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1155 Handle null pointer.
1157 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1159 * NEWS: Mention new commands.
1160 * python/python.c (python_ignore_environment): New static global.
1161 (show_python_ignore_environment): New function.
1162 (set_python_ignore_environment): New function.
1163 (python_dont_write_bytecode): New static global.
1164 (show_python_dont_write_bytecode): New function.
1165 (set_python_dont_write_bytecode): New function.
1166 (_initialize_python): Register new commands.
1168 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1170 * extension-priv.h (struct extension_language_ops): Rename
1171 'finish_initialization' to 'initialize'.
1172 * extension.c (finish_ext_lang_initialization): Renamed to...
1173 (ext_lang_initialization): ...this, update comment, and updated
1174 the calls to reflect the change in struct extension_language_ops.
1175 * extension.h (finish_ext_lang_initialization): Renamed to...
1176 (ext_lang_initialization): ...this.
1177 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1178 (gdbscm_initialize): ...this, update comment at definition.
1179 (guile_extension_ops): Update.
1180 * main.c (captured_main_1): Update call to
1181 finish_ext_lang_initialization.
1182 * python/python.c (gdbpy_finish_initialization): Rename to...
1183 (gdbpy_initialize): ...this, update comment at definition, and
1184 update call to do_finish_initialization.
1185 (python_extension_ops): Update.
1186 (do_finish_initialization): Rename to...
1187 (do_initialize): ...this, and update comment.
1189 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1191 * main.c (captured_main_1): Add a call to
1192 finish_ext_lang_initialization.
1193 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1195 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1197 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1198 (gdbscm_finish_initialization): Add code moved from
1200 (_initialize_guile): Move code to gdbscm_finish_initialization.
1201 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1202 _initialize_scm_arch.
1203 (_initialize_scm_arch): New function.
1204 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1205 into _initialize_scm_block.
1206 (_initialize_scm_block): New function.
1207 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1208 into _initialize_scm_frame.
1209 (_initialize_scm_frame): New function.
1210 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1211 into _initialize_scm_objfile.
1212 (_initialize_scm_objfile): New function.
1213 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1214 code into _initialize_scm_progspace.
1215 (_initialize_scm_progspace): New function.
1216 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1217 into _initialize_scm_symbol.
1218 (_initialize_scm_symbol): New function.
1219 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1220 into _initialize_scm_symtab.
1221 (_initialize_scm_symtab): New function.
1222 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1223 _initialize_scm_type.
1224 (_initialize_scm_type): New function.
1226 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1228 * python/py-arch.c (_initialize_py_arch): New function.
1229 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1230 * python/py-block.c (_initialize_py_block): New function.
1231 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1232 * python/py-inferior.c (_initialize_py_inferior): New function.
1233 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1234 * python/py-objfile.c (_initialize_py_objfile): New function.
1235 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1236 * python/py-progspace.c (_initialize_py_progspace): New function.
1237 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1238 * python/py-registers.c (_initialize_py_registers): New function.
1239 (gdbpy_initialize_registers): Move code to
1240 _initialize_py_registers.
1241 * python/py-symbol.c (_initialize_py_symbol): New function.
1242 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1243 * python/py-symtab.c (_initialize_py_symtab): New function.
1244 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1245 * python/py-type.c (_initialize_py_type): New function.
1246 (gdbpy_initialize_types): Move code to _initialize_py_type.
1247 * python/py-unwind.c (_initialize_py_unwind): New function.
1248 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1249 * python/python.c (_initialize_python): Move call to
1250 do_start_initialization to gdbpy_finish_initialization.
1251 (gdbpy_finish_initialization): Add call to
1252 do_start_initialization.
1254 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1256 * extension.c (struct scoped_default_signal): New struct.
1257 (scoped_default_sigint): New typedef.
1258 (finish_ext_lang_initialization): Make use of
1259 scoped_default_sigint.
1261 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1263 * main.c (captured_main_1): Don't pass argument to gdb_init.
1264 * top.c (gdb_init): Remove unused argument, and add header
1266 * top.h (gdb_init): Remove argument.
1268 2021-04-27 Luis Machado <luis.machado@linaro.org>
1270 * psymtab.c (psymbol_functions::dump): Output newline.
1272 * symmisc.c (dump_objfile): Likewise.
1274 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1275 Simon Marchi <simon.marchi@polymtl.ca>
1277 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1278 when attaching the 'auto_load_new_objfile' observer, so
1279 other observers can specify it as a dependency.
1280 * gdb/auto-load.h (struct token): Declare
1281 'auto_load_new_objfile_observer_token' as token to be used
1282 for the 'auto_load_new_objfile' observer.
1283 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1284 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1285 observer, so it gets notified after the latter.
1287 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1288 Simon Marchi <simon.marchi@polymtl.ca>
1290 * unittests/observable-selftests.c (dependency_test_counters):
1292 (observer_token0, observer_token1, observer_token2,
1293 observer_token3, observer_token4, observer_token5): New.
1294 (struct dependency_observer_data): New struct.
1295 (observer_dependency_test_callback): New function.
1296 (test_observers): New.
1297 (run_dependency_test): New function.
1298 (test_dependency): New.
1299 (_initialize_observer_selftest): Register dependency test.
1301 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1304 * cli/cli-dump.c (dump_binary_file): Check result of
1307 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1309 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1310 by passing `process_stratum_target*` parameter.
1312 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1315 * typeprint.h (struct type_print_options): Add print_in_hex
1317 (struct print_offset_data): Add print_in_hex flag, add a
1318 constructor accepting a type_print_options* argument.
1319 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1320 default value for print_in_hex.
1321 (print_offset_data::indentation): Allow more horizontal space.
1322 (print_offset_data::print_offset_data): Add ctor.
1323 (print_offset_data::maybe_print_hole, print_offset_data::update):
1324 Handle the print_in_hex flag.
1325 (whatis_exp): Handle 'x' and 'd' flags.
1326 (print_offsets_and_sizes_in_hex): Declare.
1327 (set_print_offsets_and_sizes_in_hex): Create.
1328 (show_print_offsets_and_sizes_in_hex): Create.
1329 (_initialize_typeprint): Update help message for the ptype
1330 command, register the 'set print type hex' and 'show print type
1332 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1333 (c_type_print_base): Construct the print_offset_data
1334 object using the type_print_optons parameter.
1335 * rust-lang.c (rust_language::print_type): Construct the
1336 print_offset_data object using the type_print_optons parameter.
1337 * NEWS: Mention the new flags of the ptype command.
1339 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1341 * typeprint.h (struct type_print_options): Move before
1344 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1348 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1350 * observable.c (observer_debug): Change to bool.
1352 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1354 * dwarf2/read.c: Add 'unordered_set' include.
1355 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1356 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1357 of per_Bfd->filenames_cache cache, and use function local
1358 filenames_cache instead. Reindent.
1359 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1361 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1363 * breakpoint.c (iterate_over_bp_locations): Change callback to
1364 function view, remove data parameter.
1365 * breakpoint.h (iterate_over_bp_locations): Likewise.
1366 * record-full.c (record_full_sync_record_breakpoints): Remove
1369 2021-04-22 Tom Tromey <tom@tromey.com>
1371 * c-typeprint.c (c_type_print_base_struct_union): Use
1372 print_spaces_filtered_with_print_options.
1374 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1377 * python/py-type.c (typy_range): Check that bounds are constant
1378 before accessing them as such.
1379 * guile/scm-type.c (gdbscm_type_range): Likewise.
1381 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1383 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1384 * inferior.c (inferior::add_continuation): New method, adapted
1385 from 'add_inferior_continuation'.
1386 (inferior::do_all_continuations): New method, adapted from
1387 'do_all_inferior_continuations'.
1388 (inferior::~inferior): Clear the list of continuations directly.
1389 * inferior.h (class inferior) <continuations>: Rename into...
1390 <m_continuations>: ...this and make private.
1391 * continuations.c: Remove.
1392 * continuations.h: Remove.
1393 * event-top.c: Don't include "continuations.h".
1395 Update the users below.
1396 * inf-loop.c (inferior_event_handler)
1397 * infcmd.c (attach_command)
1398 (notice_new_inferior): Update.
1400 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1402 * inferior.h (class inferior) <continuations>: Change the type
1403 to be an std::list of std::function's.
1404 Update the references and uses below.
1405 * continuations.c (struct continuation): Delete.
1406 (make_continuation): Delete.
1407 (do_my_continuations_1): Delete.
1408 (do_my_continuations): Delete.
1409 (discard_my_continuations_1): Delete.
1410 (discard_my_continuations): Delete.
1411 (add_inferior_continuation): Update.
1412 (do_all_inferior_continuations): Update.
1413 (discard_all_inferior_continuations): Update.
1414 * continuations.h (add_inferior_continuation): Update to take
1415 an std::function as the parameter.
1416 * infcmd.c (struct attach_command_continuation_args): Delete.
1417 (attach_command_continuation): Delete.
1418 (attach_command_continuation_free_args): Delete.
1419 (attach_command): Update.
1420 (notice_new_inferior): Update.
1422 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1424 * continuations.h: Update the general comment.
1425 * inferior.h (class inferior) <continuations>: Update the comment.
1426 * interps.c: Do not include "continuations.h".
1428 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1430 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1431 parameter. Update the references below.
1432 * continuations.c (do_my_continuations_1)
1433 (do_my_continuations)
1434 (do_all_inferior_continuations): Update.
1435 * inf-loop.c (inferior_event_handler): Update.
1436 * infcmd.c (attach_command_continuation): Update.
1438 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1440 * infcmd.c (attach_post_wait): Update the function comment.
1442 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1444 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1445 Update the references below.
1446 (struct attach_command_continuation_args)
1447 (attach_command_continuation)
1448 (attach_command_continuation_free_args)
1450 (notice_new_inferior): Update to remove the reference to 'args'.
1452 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1453 Tom de Vries <tdevries@suse.de>
1456 * remote.c (remote_target_is_non_stop_p): New function.
1457 * remote.h (remote_target_is_non_stop_p): Declare.
1458 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1459 to check non-stopness using notif_state->remote rather current target.
1461 2021-04-22 Tom Tromey <tom@tromey.com>
1463 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1464 (struct typed_val_int) <val>: Now ULONGEST.
1465 (rust_parser::parse_array_type): Remove negative check.
1466 (rust_lex_int_test): Change 'value' to ULONGEST.
1468 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1470 * arch-utils.c (default_addressable_memory_unit_size): Return a
1471 value based on bfd's bits per byte.
1473 2021-04-21 Tom Tromey <tom@tromey.com>
1475 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1477 (struct dwarf2_per_cu_data): Rearrange.
1478 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1480 (struct comp_unit_head): Rearrange.
1481 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1483 2021-04-21 Tom de Vries <tdevries@suse.de>
1486 * configure.ac: Remove --without-included-regex/--with-included-regex.
1487 * config.in: Regenerate.
1488 * configure: Regenerate.
1489 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1491 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1493 * breakpoint.h (create_breakpoint): Add a new parameter,
1495 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1496 argument when 'parse_extra' is false to check if the condition
1497 is invalid at all of the breakpoint locations.
1498 Update the users below.
1504 (create_tracepoint_from_upload): Update.
1505 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1506 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1507 * python/py-breakpoint.c (bppy_init): Update.
1508 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1510 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1512 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1513 disabled-by-condition locations on MI-like output.
1514 (breakpoint_1): Do not display the disabled-by-condition footnote
1515 if the output is MI-like.
1517 2021-04-21 Frederic Cambus <fred@statdns.com>
1519 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1520 update year range in generated copyright notices.
1522 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1524 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1525 qualifier_seq_noopt.
1527 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1529 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1531 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1533 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1534 (producer_is_icc): Replace use of std::regex with gdb's
1537 2021-04-17 Tom Tromey <tom@tromey.com>
1540 * dwarf2/read.c (class offset_view): New.
1541 (struct symbol_table_slot): Remove.
1542 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1543 <symbol_name_index, symbol_vec_index>: New methods.
1544 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1546 (read_gdb_index_from_buffer): Update.
1547 (struct dw2_symtab_iterator) <vec>: Change type.
1548 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1549 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1550 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1551 <append_array, append_offset>: New methods.
1552 (write_hash_table, add_address_entry, write_gdbindex_1)
1553 (write_debug_names): Update.
1554 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1556 2021-04-17 Tom Tromey <tom@tromey.com>
1558 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1561 2021-04-17 Tom Tromey <tom@tromey.com>
1563 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1564 from map_matching_symbols. Change parameters.
1565 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1566 Rename from map_matching_symbols. Change parameters.
1567 * dwarf2/read.c (struct dwarf2_gdb_index)
1568 <expand_matching_symbols>: Rename from map_matching_symbols.
1570 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1571 Rename from map_matching_symbols. Change parameters.
1572 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1573 dw2_map_matching_symbols. Change parameters.
1574 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1576 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1577 map_matching_symbols. Change parameters.
1578 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1579 from map_matching_symbols. Change parameters.
1580 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1581 map_matching_symbols. Change parameters.
1582 * ada-lang.c (map_matching_symbols): New function.
1583 (add_nonlocal_symbols): Update.
1585 2021-04-17 Tom Tromey <tom@tromey.com>
1587 * quick-symbol.h (struct quick_symbol_functions)
1588 <expand_symtabs_with_fullname>: Remove.
1589 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1591 * psympriv.h (struct psymbol_functions)
1592 <expand_symtabs_with_fullname>: Remove.
1593 * dwarf2/read.c (struct dwarf2_base_index_functions)
1594 <expand_symtabs_with_fullname>: Remove.
1595 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1597 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1599 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1602 2021-04-17 Tom Tromey <tom@tromey.com>
1604 * symfile-debug.c (objfile::expand_symtabs_for_function):
1606 * quick-symbol.h (struct quick_symbol_functions)
1607 <expand_symtabs_for_function>: Remove.
1608 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1610 * psympriv.h (struct psymbol_functions)
1611 <expand_symtabs_for_function>: Remove.
1612 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1614 * dwarf2/read.c (struct dwarf2_gdb_index)
1615 <expand_symtabs_for_function>: Remove.
1616 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1618 (find_slot_in_mapped_hash): Remove.
1619 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1620 (dw2_symtab_iter_init): Remove one overload.
1621 (dwarf2_gdb_index::expand_symtabs_for_function)
1622 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1624 2021-04-17 Tom Tromey <tom@tromey.com>
1626 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1628 * quick-symbol.h (struct quick_symbol_functions)
1629 <map_symtabs_matching_filename>: Remove.
1630 * psymtab.c (partial_map_expand_apply)
1631 (psymbol_functions::map_symtabs_matching_filename): Remove.
1632 * psympriv.h (struct psymbol_functions)
1633 <map_symtabs_matching_filename>: Remove.
1634 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1636 * dwarf2/read.c (struct dwarf2_base_index_functions)
1637 <map_symtabs_matching_filename>: Remove.
1638 (dw2_map_expand_apply)
1639 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1642 2021-04-17 Tom Tromey <tom@tromey.com>
1644 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1645 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1647 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1648 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1649 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1650 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1652 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1653 (dwarf2_gdb_index::lookup_symbol)
1654 (dwarf2_debug_names_index::lookup_symbol): Remove.
1656 2021-04-17 Tom Tromey <tom@tromey.com>
1658 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1659 * symmisc.c (maintenance_expand_symtabs): Update.
1660 * symfile.c (expand_symtabs_matching): Update.
1661 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1663 * quick-symbol.h (struct quick_symbol_functions)
1664 <expand_symtabs_matching>: Add 'domain' parameter.
1665 * psymtab.c (recursively_search_psymtabs)
1666 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1668 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1669 Add 'domain' parameter.
1670 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1672 * linespec.c (iterate_over_all_matching_symtabs): Update.
1673 * dwarf2/read.c (struct dwarf2_gdb_index)
1674 <expand_symtabs_matching>: Add 'domain' parameter.
1675 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1677 (dw2_expand_symtabs_matching)
1678 (dwarf2_gdb_index::expand_symtabs_matching)
1679 (dw2_debug_names_iterator)
1680 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1683 2021-04-17 Tom Tromey <tom@tromey.com>
1685 * symtab.c (global_symbol_searcher::expand_symtabs)
1686 (default_collect_symbol_completion_matches_break_on): Update.
1687 * symmisc.c (maintenance_expand_symtabs): Update.
1688 * symfile.h (expand_symtabs_matching): Add search_flags
1690 * symfile.c (expand_symtabs_matching): Add search_flags
1692 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1693 search_flags parameter.
1694 * quick-symbol.h (struct quick_symbol_functions)
1695 <expand_symtabs_matching>: Add search_flags parameter.
1696 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1697 * psymtab.c (recursively_search_psymtabs)
1698 (psymbol_functions::expand_symtabs_matching): Add search_flags
1700 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1701 Add search_flags parameter.
1702 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1703 search_flags parameter.
1704 * linespec.c (iterate_over_all_matching_symtabs): Update.
1705 * dwarf2/read.c (struct dwarf2_gdb_index)
1706 <expand_symtabs_matching>: Add search_flags parameter.
1707 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1708 search_flags parameter.
1709 (dw2_map_matching_symbols): Update.
1710 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1711 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1713 (dw2_debug_names_iterator): Change block_index to search flags.
1714 <m_block_index>: Likewise.
1715 (dw2_debug_names_iterator::next)
1716 (dwarf2_debug_names_index::lookup_symbol)
1717 (dwarf2_debug_names_index::expand_symtabs_for_function)
1718 (dwarf2_debug_names_index::map_matching_symbols)
1719 (dwarf2_debug_names_index::map_matching_symbols): Update.
1720 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1721 search_flags parameter.
1722 * ada-lang.c (ada_add_global_exceptions)
1723 (collect_symbol_completion_matches): Update.
1725 2021-04-17 Tom Tromey <tom@tromey.com>
1727 * symtab.c (default_collect_symbol_completion_matches_break_on):
1729 * symfile.h (expand_symtabs_matching): Return bool.
1730 * symfile.c (expand_symtabs_matching): Return bool.
1731 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1733 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1734 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1736 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1738 * psympriv.h (struct psymbol_functions)
1739 <expand_symtabs_matching>: Return bool.
1740 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1742 * dwarf2/read.c (struct dwarf2_gdb_index)
1743 <expand_symtabs_matching>: Return bool.
1744 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1746 (dw2_expand_symtabs_matching_symbol): Return bool.
1747 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1748 (dw2_expand_symtabs_matching)
1749 (dwarf2_gdb_index::expand_symtabs_matching)
1750 (dwarf2_debug_names_index::expand_symtabs_matching)
1751 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1753 2021-04-17 Tom Tromey <tom@tromey.com>
1755 * quick-symbol.h (enum block_search_flag_values): New.
1756 (block_search_flags): New enum flags type.
1758 2021-04-16 Tom Tromey <tom@tromey.com>
1760 * rust-parse.c: New file.
1761 * rust-exp.y: Remove.
1762 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1763 (SFILES): Remove rust-exp.y.
1764 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1766 2021-04-16 Luis Machado <luis.machado@linaro.org>
1768 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1770 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1772 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1773 use throughout file.
1775 2021-04-15 Tom Tromey <tromey@adacore.com>
1777 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1780 2021-04-15 Tom Tromey <tromey@adacore.com>
1782 * printcmd.c (print_variable_and_value): Use
1783 common_val_print_checked.
1785 2021-04-15 Tom Tromey <tromey@adacore.com>
1787 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1788 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1790 * p-exp.y (variable): Update.
1791 * m2-exp.y (variable): Update.
1792 * go-exp.y (variable): Update.
1793 * expprint.c (dump_for_expression): New overload.
1794 * expop.h (check_objfile): New overload.
1795 (check_constant): New overload.
1796 (class var_value_operation): Use block_symbol.
1797 <get_symbol>: Rewrite.
1798 * eval.c (var_value_operation::evaluate)
1799 (var_value_operation::evaluate_funcall)
1800 (var_value_operation::evaluate_for_address)
1801 (var_value_operation::evaluate_for_address)
1802 (var_value_operation::evaluate_with_coercion)
1803 (var_value_operation::evaluate_for_sizeof)
1804 (var_value_operation::evaluate_for_cast): Update.
1805 * d-exp.y (PrimaryExpression): Update.
1806 * c-exp.y (variable): Update.
1807 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1808 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1809 (ada_var_value_operation::evaluate)
1810 (ada_var_value_operation::resolve)
1811 (ada_funcall_operation::resolve): Update.
1812 * ada-exp.y (write_var_from_sym, write_object_renaming)
1813 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1814 (maybe_overload): Update.
1815 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1817 2021-04-15 Tom Tromey <tom@tromey.com>
1818 Andrew Burgess <andrew.burgess@embecosm.com>
1821 * main.c (captured_main_1): Call check_quiet_mode.
1822 * top.c (startup_quiet): New global.
1823 (check_quiet_mode): New function.
1824 (show_startup_quiet): New function.
1825 (init_main): Register new command.
1826 * top.h (check_quiet_mode): Declare.
1828 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1831 * NEWS: Mention new early init files and command line options.
1832 * config.in: Regenerate.
1833 * configure: Regenerate.
1834 * configure.ac: Define GDBEARLYINIT.
1835 * main.c (get_earlyinit_files): New function.
1836 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1837 CMDARG_EARLYINIT_COMMAND.
1838 (captured_main_1): Add support for new command line flags, and for
1839 processing startup files.
1840 (print_gdb_help): Include startup files in the output.
1842 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1844 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1845 (relocate_file_path_maybe_in_datadir): ...this.
1846 (class gdb_initfile_finder): New class.
1847 (get_init_files): Now uses gdb_initfile_finder.
1848 (print_gdb_help): Print 'None found' when there are no init files.
1850 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1852 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1853 corresponding child of the abstract DIE when iterating the
1854 children of the concrete DIE.
1856 2021-04-13 Tom de Vries <tdevries@suse.de>
1858 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1861 2021-04-13 Luis Machado <luis.machado@linaro.org>
1863 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1866 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1868 * rs6000-tdep.c: Add support for single-stepping of
1869 prefixed instructions.
1871 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1874 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1875 handle the addpcis/lnia instruction.
1877 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1879 * MAINTAINERS (Write After Approval): Add myself.
1881 2021-4-12 Carl Love <cel@us.ibm.com>
1883 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1884 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1887 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1889 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1890 * nat/windows-nat.h: Likewise.
1892 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1894 * windows-nat.c (windows_nat::handle_load_dll): Call
1895 windows_add_dll if get_image_name failed to glean the name of the
1896 DLL by using the lpImageName pointer.
1897 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1898 (windows_add_dll): Now does what windows_add_all_dlls did before,
1899 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1900 specifies the address where the DLL was loaded into the inferior,
1901 and looks for the single DLL loaded at that address.
1903 2021-04-09 Luis Machado <luis.machado@linaro.org>
1905 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1907 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1909 * darwin-nat.c (darwin_nat_target::resume): Remove status
1912 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1914 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1915 prologue end for Intel compilers.
1916 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1917 * producer.c (producer_is_icc_ge_19): New function.
1918 * producer.h (producer_is_icc_ge_19): New declaration.
1920 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1922 * producer.c: (producer_is_icc): Update for new version scheme.
1923 (producer_parsing_tests): Update names and expected results.
1924 * producer.h: (producer_is_icc): Update comment accordingly.
1926 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1928 * target.h (struct target_ops) <follow_fork>: Return void.
1929 (target_follow_fork): Likewise.
1930 * target.c (default_follow_fork): Likewise.
1931 (target_follow_fork): Likewise.
1932 * infrun.c (follow_fork_inferior): Adjust.
1933 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1934 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1935 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1936 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1937 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1938 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1939 * remote.c (class remote_target) <follow_fork>: Likewise.
1940 (remote_target::follow_fork): Likewise.
1941 * target-delegates.c: Re-generate.
1943 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1945 * ctfread.c (fetch_tid_type): New function, use throughout file.
1946 (read_forward_type): New function.
1947 (read_type_record): Call read_forward_type.
1949 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1951 * f-exp.h (class fortran_structop_operation): New class.
1952 * f-exp.y (exp): Create fortran_structop_operation instead of the
1953 generic structop_operation.
1954 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1955 expression as EVAL_NORMAL if the result type was dynamic so we can
1956 extract the actual array bounds.
1957 (fortran_structop_operation::evaluate): New function.
1959 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1961 * eval.c (evaluate_subexp_standard): Remove
1962 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1965 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1967 * valops.c (value_cast): Call value_deeply_equal before performing
1970 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1972 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1975 2021-04-07 Caroline Tice <cmtice@google.com>
1977 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1978 the search paths used resolve relative location of .dwo file.
1980 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1982 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1984 (dwarf2_section_info::get_file_name): Add an assert.
1985 (dwarf2_section_info::read_string): Display a minimal, sane error
1986 when the dwarf2_section_info is not associated with a bfd section.
1988 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1990 * top.c (staged_gdb_datadir): Update comment.
1991 (set_gdb_datadir): Copy the value of gdb_datadir back into
1993 (init_main): Initialise staged_gdb_datadir.
1995 2021-04-06 Tom de Vries <tdevries@suse.de>
1997 PR breakpoints/25884
1998 * infcmd.c (prepare_one_step): Using inline frame info to narrow
2001 2021-04-06 Tom de Vries <tdevries@suse.de>
2004 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
2007 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
2009 * avr-tdep.c (avr_frame_unwind_cache): Use
2010 trad_frame_saved_reg::is_addr.
2012 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2014 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
2017 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2019 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
2020 objfile parameter for objfile_per_bfd_storage, adjust callers.
2021 (struct standard_psymtab) <standard_psymtab>: Likewise.
2022 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
2023 * psymtab.c (partial_symtab::partial_symtab): Likewise.
2024 * ctfread.c (struct ctf_psymtab): Likewise.
2025 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
2026 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
2027 (dwarf2_create_include_psymtab): Likewise.
2028 * objfiles.h (struct objfile_per_bfd_storage)
2029 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
2030 <get_bfd>: New method.
2032 * objfiles.c (get_objfile_bfd_data): Adjust.
2034 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2036 * psymtab.c (partial_symtab::partial_symtab): Change
2037 last_objfile_name to be an std::string.
2038 * symfile.c (allocate_symtab): Likewise.
2040 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
2042 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
2044 (struct objfile) <intern>: Use
2045 objfile::objfile_per_bfd_storage::intern.
2047 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2049 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
2050 with type::is_flag_enum.
2052 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2054 * gdbtypes.h (struct type) <is_flag_enum,
2055 set_is_flag_enum>: New methods.
2056 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
2057 write call sites to use type::set_is_flag_enum.
2059 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2061 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
2062 with type::is_declared_class.
2064 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
2066 * gdbtypes.h (struct type) <is_declared_class,
2067 set_is_declared_class>: New methods.
2068 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
2069 write call sites to use type::set_is_declared_class.
2071 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
2073 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
2074 to avoid deprecation warnings.
2076 2021-04-01 Martin Liska <mliska@suse.cz>
2078 * cp-name-parser.y: Use startswith instead of strncmp.
2079 * m2-exp.y: Likewise.
2080 * macroexp.c (substitute_args): Likewise.
2081 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
2082 * rust-exp.y: Likewise.
2084 2021-03-31 Tom Tromey <tom@tromey.com>
2086 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
2087 with dw2_map_matching_symbols.
2088 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
2089 dw2_expand_symtabs_matching.
2091 2021-03-31 Tom Tromey <tromey@adacore.com>
2093 * dwarf2/stringify.h: Fix typo.
2095 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2098 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
2099 with objfiles using READNOW.
2101 2021-03-29 Tom Tromey <tromey@adacore.com>
2103 * top.c (check_frame_language_change): Update.
2104 * language.c (language_info): Remove parameter.
2105 * language.h (language_info): Remove parameter.
2107 2021-03-29 Luis Machado <luis.machado@linaro.org>
2109 * compile/compile.c (get_args): Don't add empty argv entries.
2111 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2114 * procfs.c (procfs_target::attach): Define inf.
2116 (procfs_target::create_inferior): Likewise.
2118 2021-03-28 Tom Tromey <tom@tromey.com>
2120 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
2121 (elf_symfile_read): Simplify.
2122 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
2123 (make_lazy_dwarf_reader): New function.
2124 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
2125 (dwarf2_initialize_objfile): Return void. Remove index_kind
2126 parameter. Push on 'qf' list.
2127 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
2128 type. Remove 'index_kind' parameter.
2129 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
2131 2021-03-27 Tom Tromey <tom@tromey.com>
2133 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
2135 2021-03-27 Tom Tromey <tom@tromey.com>
2137 * elfread.c (elf_symfile_read): Don't clear 'qf'.
2139 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2141 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
2144 2021-03-26 Tom Tromey <tom@tromey.com>
2146 * symtab.c (struct output_source_filename_data): Add 'output'
2147 method and operator().
2148 (output_source_filename_data::output): Rename from
2149 output_source_filename.
2150 (output_partial_symbol_filename): Remove.
2151 (info_sources_command): Update.
2152 (struct add_partial_filename_data): Add operator().
2153 (add_partial_filename_data::operator()): Rename from
2154 maybe_add_partial_symtab_filename.
2155 (make_source_files_completion_list): Update.
2156 * symfile.c (quick_symbol_functions): Update.
2157 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2158 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2159 'need_fullname'. Remove 'data' parameter.
2160 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2161 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2162 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2163 Change type of 'fun' and 'need_fullname'. Remove 'data'
2165 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2166 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2167 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2169 (mi_cmd_file_list_exec_source_files): Update.
2171 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2173 2021-03-26 Tom Tromey <tom@tromey.com>
2175 * ada-lang.c (struct match_data): Add operator().
2176 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2177 (callback): Remove 'callback'.
2179 2021-03-26 Tom Tromey <tom@tromey.com>
2181 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2182 call make_ignore_params once.
2184 2021-03-26 Tom Tromey <tom@tromey.com>
2186 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2189 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2190 Pedro Alves <pedro@palves.net>
2192 * async-event.c: Include "infrun.h".
2193 (async_event_handler_marked): New.
2194 * async-event.h (async_event_handler_marked): Declare.
2195 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2196 inferior before calling target method. Don't commit-resumed if
2197 target_has_pending_events is true.
2198 * remote.c (remote_target::has_pending_events): New.
2199 * target-delegates.c: Regenerate.
2200 * target.c (target_has_pending_events): New.
2201 * target.h (target_ops::has_pending_events): New target method.
2202 (target_has_pending_events): New.
2204 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2205 Pedro Alves <pedro@palves.net>
2207 * infcmd.c (run_command_1, attach_command, detach_command)
2208 (interrupt_target_1): Use scoped_disable_commit_resumed.
2209 * infrun.c (do_target_resume): Remove
2210 target_commit_resume call.
2211 (commit_resume_all_targets): Remove.
2212 (maybe_set_commit_resumed_all_targets): New.
2213 (maybe_call_commit_resumed_all_targets): New.
2214 (enable_commit_resumed): New.
2215 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2216 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2217 (scoped_disable_commit_resumed::reset)
2218 (scoped_disable_commit_resumed::reset_and_commit)
2219 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2220 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2222 (proceed): Use scoped_disable_commit_resumed and
2223 maybe_call_commit_resumed_all_targets.
2224 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2225 * infrun.h (struct scoped_disable_commit_resumed): New.
2226 (maybe_call_commit_resumed_all_process_targets): New.
2227 (struct scoped_enable_commit_resumed): New.
2228 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2229 * process-stratum-target.h (class process_stratum_target):
2230 <commit_resumed_state>: New.
2231 * record-full.c (record_full_wait_1): Change commit_resumed_state
2232 around calling commit_resumed.
2233 * remote.c (class remote_target) <commit_resume>: Rename to...
2234 <commit_resumed>: ... this.
2235 (struct stop_reply): Move up.
2236 (remote_target::commit_resume): Rename to...
2237 (remote_target::commit_resumed): ... this. Check if there is any
2238 thread pending vCont resume.
2239 (remote_target::remote_stop_ns): Generate stop replies for resumed
2240 but pending vCont threads.
2241 (remote_target::wait_ns): Add gdb_assert.
2242 * target-delegates.c: Regenerate.
2243 * target.c (target_wait, target_resume): Assert that the current
2244 process_stratum target isn't in commit-resumed state.
2245 (defer_target_commit_resume): Remove.
2246 (target_commit_resume): Remove.
2247 (target_commit_resumed): New.
2248 (make_scoped_defer_target_commit_resume): Remove.
2249 (target_stop): Assert that the current process_stratum target
2250 isn't in commit-resumed state.
2251 * target.h (struct target_ops) <commit_resume>: Rename to ...
2252 <commit_resumed>: ... this.
2253 (target_commit_resume): Remove.
2254 (target_commit_resumed): New.
2255 (make_scoped_defer_target_commit_resume): Remove.
2256 * top.c (wait_sync_command_done): Use
2257 scoped_enable_commit_resumed.
2259 2021-03-26 Pedro Alves <pedro@palves.net>
2261 * target.c (target_always_non_stop_p): Also check whether the
2264 2021-03-26 Tom Tromey <tom@tromey.com>
2266 * dwarf2/read.c (dwarf2_read_debug_names)
2267 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2268 (dw2_debug_names_iterator::next, create_type_unit_group):
2271 2021-03-25 Pedro Alves <pedro@palves.net>
2273 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2274 around setting the breakpoint.
2276 2021-03-25 Pedro Alves <pedro@palves.net>
2279 (remote_target::check_pending_events_prevent_wildcard_vcont):
2280 Check whether the event's ptid is not null_ptid before looking up
2281 the corresponding inferior.
2283 2021-03-24 Changbin Du <changbin.du@gmail.com>
2285 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2288 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2290 * target.h (current_top_target): Remove, make callers use the
2291 current inferior instead.
2292 * target.c (current_top_target): Remove.
2294 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2296 * target.h (target_shortname): Change to function declaration.
2297 (target_longname): Likewise.
2298 (target_attach_no_wait): Likewise.
2299 (target_post_attach): Likewise.
2300 (target_prepare_to_store): Likewise.
2301 (target_supports_enable_disable_tracepoint): Likewise.
2302 (target_supports_string_tracing): Likewise.
2303 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2304 (target_supports_dumpcore): Likewise.
2305 (target_dumpcore): Likewise.
2306 (target_can_run_breakpoint_commands): Likewise.
2307 (target_files_info): Likewise.
2308 (target_post_startup_inferior): Likewise.
2309 (target_insert_fork_catchpoint): Likewise.
2310 (target_remove_fork_catchpoint): Likewise.
2311 (target_insert_vfork_catchpoint): Likewise.
2312 (target_remove_vfork_catchpoint): Likewise.
2313 (target_insert_exec_catchpoint): Likewise.
2314 (target_remove_exec_catchpoint): Likewise.
2315 (target_set_syscall_catchpoint): Likewise.
2316 (target_rcmd): Likewise.
2317 (target_can_lock_scheduler): Likewise.
2318 (target_can_async_p): Likewise.
2319 (target_is_async_p): Likewise.
2320 (target_execution_direction): Likewise.
2321 (target_extra_thread_info): Likewise.
2322 (target_pid_to_exec_file): Likewise.
2323 (target_thread_architecture): Likewise.
2324 (target_find_memory_regions): Likewise.
2325 (target_make_corefile_notes): Likewise.
2326 (target_get_bookmark): Likewise.
2327 (target_goto_bookmark): Likewise.
2328 (target_stopped_by_watchpoint): Likewise.
2329 (target_stopped_by_sw_breakpoint): Likewise.
2330 (target_supports_stopped_by_sw_breakpoint): Likewise.
2331 (target_stopped_by_hw_breakpoint): Likewise.
2332 (target_supports_stopped_by_hw_breakpoint): Likewise.
2333 (target_have_steppable_watchpoint): Likewise.
2334 (target_can_use_hardware_watchpoint): Likewise.
2335 (target_region_ok_for_hw_watchpoint): Likewise.
2336 (target_can_do_single_step): Likewise.
2337 (target_insert_watchpoint): Likewise.
2338 (target_remove_watchpoint): Likewise.
2339 (target_insert_hw_breakpoint): Likewise.
2340 (target_remove_hw_breakpoint): Likewise.
2341 (target_can_accel_watchpoint_condition): Likewise.
2342 (target_can_execute_reverse): Likewise.
2343 (target_get_ada_task_ptid): Likewise.
2344 (target_filesystem_is_local): Likewise.
2345 (target_trace_init): Likewise.
2346 (target_download_tracepoint): Likewise.
2347 (target_can_download_tracepoint): Likewise.
2348 (target_download_trace_state_variable): Likewise.
2349 (target_enable_tracepoint): Likewise.
2350 (target_disable_tracepoint): Likewise.
2351 (target_trace_start): Likewise.
2352 (target_trace_set_readonly_regions): Likewise.
2353 (target_get_trace_status): Likewise.
2354 (target_get_tracepoint_status): Likewise.
2355 (target_trace_stop): Likewise.
2356 (target_trace_find): Likewise.
2357 (target_get_trace_state_variable_value): Likewise.
2358 (target_save_trace_data): Likewise.
2359 (target_upload_tracepoints): Likewise.
2360 (target_upload_trace_state_variables): Likewise.
2361 (target_get_raw_trace_data): Likewise.
2362 (target_get_min_fast_tracepoint_insn_len): Likewise.
2363 (target_set_disconnected_tracing): Likewise.
2364 (target_set_circular_trace_buffer): Likewise.
2365 (target_set_trace_buffer_size): Likewise.
2366 (target_set_trace_notes): Likewise.
2367 (target_get_tib_address): Likewise.
2368 (target_set_permissions): Likewise.
2369 (target_static_tracepoint_marker_at): Likewise.
2370 (target_static_tracepoint_markers_by_strid): Likewise.
2371 (target_traceframe_info): Likewise.
2372 (target_use_agent): Likewise.
2373 (target_can_use_agent): Likewise.
2374 (target_augmented_libraries_svr4_read): Likewise.
2375 (target_log_command): Likewise.
2376 * target.c (target_shortname): New.
2377 (target_longname): New.
2378 (target_attach_no_wait): New.
2379 (target_post_attach): New.
2380 (target_prepare_to_store): New.
2381 (target_supports_enable_disable_tracepoint): New.
2382 (target_supports_string_tracing): New.
2383 (target_supports_evaluation_of_breakpoint_conditions): New.
2384 (target_supports_dumpcore): New.
2385 (target_dumpcore): New.
2386 (target_can_run_breakpoint_commands): New.
2387 (target_files_info): New.
2388 (target_post_startup_inferior): New.
2389 (target_insert_fork_catchpoint): New.
2390 (target_remove_fork_catchpoint): New.
2391 (target_insert_vfork_catchpoint): New.
2392 (target_remove_vfork_catchpoint): New.
2393 (target_insert_exec_catchpoint): New.
2394 (target_remove_exec_catchpoint): New.
2395 (target_set_syscall_catchpoint): New.
2397 (target_can_lock_scheduler): New.
2398 (target_can_async_p): New.
2399 (target_is_async_p): New.
2400 (target_execution_direction): New.
2401 (target_extra_thread_info): New.
2402 (target_pid_to_exec_file): New.
2403 (target_thread_architecture): New.
2404 (target_find_memory_regions): New.
2405 (target_make_corefile_notes): New.
2406 (target_get_bookmark): New.
2407 (target_goto_bookmark): New.
2408 (target_stopped_by_watchpoint): New.
2409 (target_stopped_by_sw_breakpoint): New.
2410 (target_supports_stopped_by_sw_breakpoint): New.
2411 (target_stopped_by_hw_breakpoint): New.
2412 (target_supports_stopped_by_hw_breakpoint): New.
2413 (target_have_steppable_watchpoint): New.
2414 (target_can_use_hardware_watchpoint): New.
2415 (target_region_ok_for_hw_watchpoint): New.
2416 (target_can_do_single_step): New.
2417 (target_insert_watchpoint): New.
2418 (target_remove_watchpoint): New.
2419 (target_insert_hw_breakpoint): New.
2420 (target_remove_hw_breakpoint): New.
2421 (target_can_accel_watchpoint_condition): New.
2422 (target_can_execute_reverse): New.
2423 (target_get_ada_task_ptid): New.
2424 (target_filesystem_is_local): New.
2425 (target_trace_init): New.
2426 (target_download_tracepoint): New.
2427 (target_can_download_tracepoint): New.
2428 (target_download_trace_state_variable): New.
2429 (target_enable_tracepoint): New.
2430 (target_disable_tracepoint): New.
2431 (target_trace_start): New.
2432 (target_trace_set_readonly_regions): New.
2433 (target_get_trace_status): New.
2434 (target_get_tracepoint_status): New.
2435 (target_trace_stop): New.
2436 (target_trace_find): New.
2437 (target_get_trace_state_variable_value): New.
2438 (target_save_trace_data): New.
2439 (target_upload_tracepoints): New.
2440 (target_upload_trace_state_variables): New.
2441 (target_get_raw_trace_data): New.
2442 (target_get_min_fast_tracepoint_insn_len): New.
2443 (target_set_disconnected_tracing): New.
2444 (target_set_circular_trace_buffer): New.
2445 (target_set_trace_buffer_size): New.
2446 (target_set_trace_notes): New.
2447 (target_get_tib_address): New.
2448 (target_set_permissions): New.
2449 (target_static_tracepoint_marker_at): New.
2450 (target_static_tracepoint_markers_by_strid): New.
2451 (target_traceframe_info): New.
2452 (target_use_agent): New.
2453 (target_can_use_agent): New.
2454 (target_augmented_libraries_svr4_read): New.
2455 (target_log_command): New.
2456 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2457 * infrun.c (set_schedlock_func): Adjust.
2458 * mi/mi-main.c (exec_reverse_continue): Adjust.
2459 * reverse.c (exec_reverse_once): Adjust.
2460 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2461 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2462 * remote-sim.c (gdbsim_target::detach): Adjust.
2463 (gdbsim_target::files_info): Adjust.
2465 2021-03-24 Tom Tromey <tom@tromey.com>
2467 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2468 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2469 (check_match, dw2_expand_symtabs_matching)
2470 (dwarf2_debug_names_index::map_matching_symbols)
2471 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2473 2021-03-24 Keith Seitz <keiths@redhat.com>
2475 * compile/compile-cplus-types.c
2476 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2479 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2481 * gdbarch.sh (gdbarch_data_registry): Make static.
2482 * gdbarch.c: Re-generate.
2484 2021-03-24 Luis Machado <luis.machado@linaro.org>
2486 * NEWS: Mention memory tagging changes.
2488 2021-03-24 Luis Machado <luis.machado@linaro.org>
2490 * printcmd.c (decode_format): Handle the 'm' modifier.
2491 (do_examine): Display allocation tags when required/supported.
2492 (should_validate_memtags): New function.
2493 (print_command_1): Display memory tag mismatches.
2494 * valprint.c (show_memory_tag_violations): New function.
2495 (value_print_option_defs): Add new option "memory-tag-violations".
2496 (user_print_options) <memory_tag_violations>: Initialize to 1.
2497 * valprint.h (struct format_data) <print_tags>: New field.
2498 (value_print_options) <memory_tag_violations>: New field.
2500 2021-03-24 Luis Machado <luis.machado@linaro.org>
2502 * printcmd.c: Include gdbsupport/rsp-low.h.
2503 (memory_tag_list): New static global.
2504 (process_print_command_args): Factored out of
2506 (print_command_1): Use process_print_command_args.
2507 (show_addr_not_tagged, show_memory_tagging_unsupported)
2508 (memory_tag_command, memory_tag_print_tag_command)
2509 (memory_tag_print_logical_tag_command)
2510 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2511 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2512 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2514 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2516 2021-03-24 Luis Machado <luis.machado@linaro.org>
2518 * aarch64-linux-tdep.c
2519 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2520 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2522 2021-03-24 Luis Machado <luis.machado@linaro.org>
2524 * aarch64-linux-tdep.c
2525 (aarch64_linux_report_signal_info): New function.
2526 (aarch64_linux_init_abi): Register
2527 aarch64_linux_report_signal_info as the report_signal_info hook.
2528 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2529 (SEGV_MTESERR): Define.
2531 2021-03-24 Luis Machado <luis.machado@linaro.org>
2533 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2534 (aarch64_linux_ltag_tests): New function.
2535 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2537 2021-03-24 Luis Machado <luis.machado@linaro.org>
2539 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2540 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2541 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2542 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2544 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2545 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2546 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2547 (aarch64_linux_get_ltag): New functions.
2548 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2549 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2550 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2551 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2553 2021-03-24 Luis Machado <luis.machado@linaro.org>
2555 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2557 (struct smaps_data): New struct.
2558 (decode_vmflags): Handle the 'mt' flag.
2559 (parse_smaps_data): New function, refactored from
2560 linux_find_memory_regions_full.
2561 (linux_address_in_memtag_page): New function.
2562 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2563 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2565 2021-03-24 Luis Machado <luis.machado@linaro.org>
2567 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2568 instead of char arrays.
2570 2021-03-24 Luis Machado <luis.machado@linaro.org>
2572 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2573 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2574 nat/aarch64-mte-linux-ptrace.h.
2575 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2576 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2578 <fetch_memtags>: New method override.
2579 <store_memtags>: New method override.
2580 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2581 (aarch64_linux_nat_target::fetch_memtags): New method.
2582 (aarch64_linux_nat_target::store_memtags): New method.
2583 * arch/aarch64-mte-linux.c: New file.
2584 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2585 (AARCH64_MTE_GRANULE_SIZE): Define.
2586 (aarch64_memtag_type): New enum.
2587 (aarch64_mte_get_tag_granules): New prototype.
2588 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2589 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2590 * nat/aarch64-mte-linux-ptrace.c: New file.
2591 * nat/aarch64-mte-linux-ptrace.h: New file.
2593 2021-03-24 Luis Machado <luis.machado@linaro.org>
2595 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2596 * nat/aarch64-mte-linux-ptrace.h: New file.
2598 2021-03-24 Luis Machado <luis.machado@linaro.org>
2600 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2601 (store_mteregs_to_thread): New function.
2602 (aarch64_linux_nat_target::fetch_registers): Update to call
2603 fetch_mteregs_from_thread.
2604 (aarch64_linux_nat_target::store_registers): Update to call
2605 store_mteregs_to_thread.
2606 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2607 (aarch64_cannot_store_register): Handle MTE registers.
2608 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2609 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2610 <has_mte>: New method.
2611 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2613 2021-03-24 Luis Machado <luis.machado@linaro.org>
2615 * aarch64-linux-nat.c
2616 (aarch64_linux_nat_target::read_description): Take MTE flag into
2618 Slight refactor to hwcap flag checking.
2619 * aarch64-linux-tdep.c
2620 (aarch64_linux_core_read_description): Likewise.
2621 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2623 (aarch64_read_description): Add mte_p parameter and update to use it.
2624 Update the documentation.
2625 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2626 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2627 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2628 (aarch64_create_target_description): Add mte_p parameter and update
2630 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2632 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2633 * features/aarch64-mte.c: New file, generated.
2634 * features/aarch64-mte.xml: New file.
2636 2021-03-24 Luis Machado <luis.machado@linaro.org>
2638 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2639 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2640 * aarch64-linux-tdep.c: Likewise
2641 * arch/aarch64-mte-linux.h: New file.
2643 2021-03-24 Luis Machado <luis.machado@linaro.org>
2645 * remote: Include gdbsupport/selftest.h.
2646 (test_memory_tagging_functions): New function.
2647 (_initialize_remote): Register test_memory_tagging_functions.
2649 2021-03-24 Luis Machado <luis.machado@linaro.org>
2651 * remote.c (PACKET_memory_tagging_feature): New enum.
2652 (remote_memory_tagging_p): New function.
2653 (remote_protocol_features): New "memory-tagging" entry.
2654 (remote_target::remote_query_supported): Handle memory tagging
2656 (remote_target::supports_memory_tagging): Implement.
2657 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2658 (create_store_memtags_request): New functions.
2659 (remote_target::fetch_memtags): Implement.
2660 (remote_target::store_memtags): Implement.
2661 (_initialize_remote): Add new "memory-tagging-feature"
2664 2021-03-24 Luis Machado <luis.machado@linaro.org>
2666 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2667 (default_memtag_matches_p, default_set_memtags)
2668 (default_get_memtag): New functions.
2669 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2670 (default_memtag_matches_p, default_set_memtags)
2671 (default_get_memtag): New prototypes.
2672 * gdbarch.c: Regenerate.
2673 * gdbarch.h: Regenerate.
2674 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2675 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2676 (enum memtag_type): New enum.
2678 2021-03-24 Luis Machado <luis.machado@linaro.org>
2680 * remote.c (remote_target) <supports_memory_tagging>: New method
2682 <fetch_memtags>: New method override.
2683 <store_memtags>: New method override.
2684 (remote_target::supports_memory_tagging): New method.
2685 (remote_target::fetch_memtags): New method.
2686 (remote_target::store_memtags): New method.
2687 * target-delegates.c: Regenerate.
2688 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2690 <fetch_memtags>: New virtual method.
2691 <store_memtags>: New virtual method.
2692 (target_supports_memory_tagging): Define.
2693 (target_fetch_memtags): Define.
2694 (target_store_memtags): Define.
2695 * target-debug.h (target_debug_print_size_t)
2696 (target_debug_print_const_gdb_byte_vector_r)
2697 (target_debug_print_gdb_byte_vector_r): New functions.
2699 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2701 * target.h (target_longname): Remove.
2703 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2705 * target.h (target_is_pushed): Remove, update callers to use
2706 inferior::target_is_pushed instead.
2707 * target.c (target_is_pushed): Remove.
2709 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2711 * target.h (push_target): Remove, update callers to use
2712 inferior::push_target.
2713 * target.c (push_target): Remove.
2714 * inferior.h (class inferior) <push_target>: New overload.
2716 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2718 * target.h (unpush_target): Remove, update all callers
2719 to use `inferior::unpush_target` instead.
2720 (struct target_unpusher) <operator()>: Just declare.
2721 * target.c (unpush_target): Remove.
2722 (target_unpusher::operator()): New.
2724 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2726 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2728 (process_full_comp_unit): Validate the top-level tag before
2729 processing the first DIE.
2730 (read_func_scope): Ensure we have a valid builder.
2732 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2734 * objc-lang.c (objc_demangle): Renamed to
2735 objc_language::demangle_symbol, and moved later in the file.
2736 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2738 (objc_language::demangle_symbol): Defined outside of class
2739 declaration. The definition is the old objc_demangle with NULL
2740 changed to nullptr, and if conditions relating to nullptr pointers
2741 or null character checks made explicit.
2742 * objc-lang.h (objc_demangle): Delete declaration.
2744 2021-03-22 Martin Liska <mliska@suse.cz>
2746 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2747 (_initialize_arm_tdep): Likewise.
2749 2021-03-20 Tom Tromey <tom@tromey.com>
2751 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2752 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2753 * psymtab.h (make_psymbol_functions): Don't declare.
2754 * psymtab.c (make_psymbol_functions): Remove.
2755 (maintenance_print_psymbols): Update.
2756 * psympriv.h (struct psymbol_functions): Add no-argument
2758 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2759 <partial_symtabs>: Remove.
2760 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2761 * elfread.c (read_partial_symbols): Update.
2762 (elf_symfile_read): Remove check for existing partial symbols.
2764 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2766 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2768 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2770 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2771 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2773 2021-03-20 Tom Tromey <tom@tromey.com>
2775 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2776 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2777 * symfile-debug.c (objfile::has_partial_symbols)
2778 (objfile::find_last_source_symtab)
2779 (objfile::forget_cached_source_info)
2780 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2781 (objfile::print_stats, objfile::dump)
2782 (objfile::expand_symtabs_for_function)
2783 (objfile::expand_all_symtabs)
2784 (objfile::expand_symtabs_with_fullname)
2785 (objfile::map_matching_symbols)
2786 (objfile::expand_symtabs_matching)
2787 (objfile::find_pc_sect_compunit_symtab)
2788 (objfile::map_symbol_filenames)
2789 (objfile::find_compunit_symtab_by_address)
2790 (objfile::lookup_global_symbol_language)
2791 (objfile::require_partial_symbols): Update.
2792 * psymtab.c (maintenance_print_psymbols)
2793 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2794 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2795 * objfiles.c (objfile_relocate1): Update.
2796 * elfread.c (elf_symfile_read): Update.
2798 2021-03-20 Tom Tromey <tom@tromey.com>
2800 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2802 2021-03-20 Tom Tromey <tom@tromey.com>
2804 * psymtab.c (psymbol_functions::count_psyms): Rename.
2805 (psymbol_functions::print_stats): Update.
2806 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2809 2021-03-20 Tom Tromey <tom@tromey.com>
2811 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2812 (psymbol_functions::find_pc_sect_psymtab): Rename.
2813 (psymbol_functions::find_pc_sect_compunit_symtab)
2814 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2815 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2817 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2819 2021-03-20 Tom Tromey <tom@tromey.com>
2821 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2822 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2823 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2825 (add_psymbol_to_bcache): Remove.
2826 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2827 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2829 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2830 <add_psymbol>: Likewise.
2831 (standard_psymtab, legacy_psymtab): Likewise.
2832 * mdebugread.c (parse_partial_symbols): Update.
2833 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2834 (handle_psymbol_enumerators): Update.
2835 (new_psymtab): Add partial_symtabs parameter.
2836 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2837 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2839 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2840 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2842 * dbxread.c (read_dbx_symtab): Update.
2843 (start_psymtab): Add partial_symtabs parameter.
2844 (dbx_end_psymtab): Update.
2845 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2846 (ctf_psymtab): Add partial_symtabs parameter.
2847 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2849 (scan_partial_symbols): Add partial_symtabs parameter.
2850 (scan_partial_symbols, elfctf_build_psymtabs)
2851 (ctf_psymtab_add_enums): Update.
2853 2021-03-20 Tom Tromey <tom@tromey.com>
2855 * symfile.c (read_symbols): Use objfile method.
2856 * symfile-debug.c (objfile::require_partial_symbols): New method.
2857 * psymtab.h (require_partial_symbols): Don't declare.
2858 * psymtab.c (require_partial_symbols): Use objfile method. Now
2860 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2861 (psymbol_functions::lookup_symbol)
2862 (psymbol_functions::lookup_global_symbol_language)
2863 (psymbol_functions::find_last_source_symtab)
2864 (psymbol_functions::forget_cached_source_info)
2865 (psymbol_functions::print_stats)
2866 (psymbol_functions::expand_symtabs_for_function)
2867 (psymbol_functions::expand_all_symtabs)
2868 (psymbol_functions::expand_symtabs_with_fullname)
2869 (psymbol_functions::map_symbol_filenames)
2870 (psymbol_functions::map_matching_symbols)
2871 (psymbol_functions::expand_symtabs_matching)
2872 (psymbol_functions::find_compunit_symtab_by_address)
2873 (maintenance_print_psymbols, maintenance_info_psymtabs)
2874 (maintenance_check_psymtabs): Update.
2875 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2878 2021-03-20 Tom Tromey <tom@tromey.com>
2880 * xcoffread.c (xcoff_sym_fns): Update.
2881 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2882 * symfile-debug.c (objfile::has_partial_symbols): Use
2883 can_lazily_read_symbols.
2884 (debug_sym_read_psymbols): Remove.
2885 (debug_sym_fns, install_symfile_debug_logging): Update.
2886 * quick-symbol.h (struct quick_symbol_functions)
2887 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2888 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2889 * mipsread.c (ecoff_sym_fns): Update.
2890 * machoread.c (macho_sym_fns): Update.
2891 * elfread.c (struct lazy_dwarf_reader): New.
2892 (elf_symfile_read): Update.
2893 (read_psyms): Now a method of lazy_dwarf_reader.
2894 (elf_sym_fns): Update.
2895 (elf_sym_fns_lazy_psyms): Remove.
2896 * dbxread.c (aout_sym_fns): Update.
2897 * coffread.c (coff_sym_fns): Update.
2899 2021-03-20 Tom Tromey <tom@tromey.com>
2901 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2902 (reread_symbols): Move reset_psymtabs call later.
2903 * objfiles.c (objfile::objfile): Don't initialize
2906 2021-03-20 Tom Tromey <tom@tromey.com>
2908 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2909 set_partial_symtabs.
2910 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2911 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2913 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2915 (psymbol_functions::find_pc_sect_compunit_symtab)
2916 (psymbol_functions::print_stats, psymbol_functions::dump)
2917 (psymbol_functions::has_symbols): Update.
2918 (make_psymbol_functions, dump_psymtab_addrmap): Add
2919 partial_symtabs parameter.
2920 (maintenance_print_psymbols): Update.
2921 (psymbol_functions::expand_symtabs_matching): Update.
2922 * psympriv.h (struct psymbol_functions): Add constructor.
2923 <m_partial_symtabs>: New member.
2924 <set_partial_symtabs>: New method.
2926 2021-03-20 Tom Tromey <tom@tromey.com>
2928 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2930 (process_psymtab_comp_unit_reader)
2931 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2932 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2933 Reference psymtabs via per_bfd.
2935 2021-03-20 Tom Tromey <tom@tromey.com>
2937 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2939 (add_address_entry): Remove objfile parameter.
2940 (add_address_entry_worker): Update.
2941 (write_address_map): Replace objfile parameter with per_bfd.
2942 (write_gdbindex, write_psymtabs_to_index): Update.
2944 2021-03-20 Tom Tromey <tom@tromey.com>
2946 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2947 print_bcache parameter.
2948 * symfile-debug.c (objfile::print_stats): Add print_bcache
2950 * quick-symbol.h (struct quick_symbol_functions)
2951 <print_stats>: Add print_bcache parameter.
2952 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2954 (print_objfile_statistics): Move psymtab code to psymtab.c.
2955 * psymtab.c (count_psyms): Move from symmisc.c.
2956 (psymbol_functions::print_stats): Print partial symbol and bcache
2957 statistics. Add print_bcache parameter.
2958 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2959 (struct objfile) <print_stats>: Add print_bcache parameter.
2960 * maint.c (maintenance_print_statistics): Update.
2962 2021-03-20 Tom Tromey <tom@tromey.com>
2964 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2966 * dwarf2/read.c (create_addrmap_from_index)
2967 (create_addrmap_from_aranges): Set per_bfd addrmap.
2968 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2969 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2971 (dwarf2_read_debug_names): Don't set partial_symtabs.
2972 (dwarf2_initialize_objfile): Likewise.
2974 2021-03-20 Tom Tromey <tom@tromey.com>
2976 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2979 2021-03-20 Tom Tromey <tom@tromey.com>
2981 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2982 (~psymtab_discarder, keep): Update.
2983 <m_objfile>: Remove.
2984 <m_partial_symtabs>: New member.
2985 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2987 2021-03-20 Tom Tromey <tom@tromey.com>
2989 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2990 (xcoff_end_psymtab): Update.
2991 (scan_xcoff_symtab): Add partial_symtabs parameter.
2992 (xcoff_initial_scan): Update.
2993 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2994 * mdebugread.c (mdebug_build_psymtabs): Update.
2995 (parse_partial_symbols): Add partial_symtabs parameter.
2996 * dbxread.c (dbx_symfile_read): Update.
2997 (read_dbx_symtab): Add partial_symtabs parameter.
2998 (read_dbx_symtab): Update.
2999 (dbx_end_psymtab): Add partial_symtabs parameter.
3001 2021-03-20 Tom Tromey <tom@tromey.com>
3003 * quick-symbol.h (struct quick_symbol_functions)
3004 <relocated>: New method.
3005 * psymtab.h (struct psymbol_functions) <relocated>: New
3007 <fill_psymbol_map>: Declare method.
3008 <m_psymbol_map>: New member.
3009 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
3010 (psymbol_functions::find_compunit_symtab_by_address): Update.
3011 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
3012 (struct objfile) <psymbol_map>: Remove.
3013 * objfiles.c (objfile_relocate1): Update.
3015 2021-03-20 Tom Tromey <tom@tromey.com>
3017 * psympriv.h (struct psymbol_functions): New.
3018 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3019 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
3020 (objfile::lookup_global_symbol_language): Update.
3021 * quick-symbol.h (struct quick_symbol_functions): Convert function
3022 pointers to methods. Add virtual destructor.
3023 (quick_symbol_functions_up): New typedef.
3024 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
3025 (dwarf2_debug_names_functions): Don't declare.
3026 (make_psymbol_functions): Declare.
3027 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
3028 (psymbol_functions::find_pc_sect_compunit_symtab)
3029 (psymbol_functions::lookup_symbol)
3030 (psymbol_functions::lookup_global_symbol_language)
3031 (psymbol_functions::find_last_source_symtab)
3032 (psymbol_functions::forget_cached_source_info)
3033 (psymbol_functions::print_stats, psymbol_functions::dump)
3034 (psymbol_functions::expand_symtabs_for_function)
3035 (psymbol_functions::expand_all_symtabs)
3036 (psymbol_functions::expand_symtabs_with_fullname)
3037 (psymbol_functions::map_symbol_filenames)
3038 (psymbol_functions::map_matching_symbols)
3039 (psymbol_functions::expand_symtabs_matching)
3040 (psymbol_functions::has_symbols)
3041 (psymbol_functions::find_compunit_symtab_by_address): Rename.
3042 (psym_functions): Remove.
3043 (make_psymbol_functions): New function.
3044 * objfiles.h (struct objfile) <qf>: Change type.
3045 * elfread.c (elf_symfile_read): Update.
3046 * dwarf2/read.c (struct dwarf2_base_index_functions)
3047 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
3048 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
3049 (dwarf2_base_index_functions::find_last_source_symtab)
3050 (dwarf2_base_index_functions::forget_cached_source_info)
3051 (dwarf2_base_index_functions::map_symtabs_matching_filename)
3052 (dwarf2_gdb_index::lookup_symbol)
3053 (dwarf2_base_index_functions::print_stats)
3054 (dwarf2_gdb_index::dump)
3055 (dwarf2_gdb_index::expand_symtabs_for_function)
3056 (dwarf2_base_index_functions::expand_all_symtabs)
3057 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
3059 (dwarf2_gdb_index::map_matching_symbols): New method.
3060 (dwarf2_gdb_index::expand_symtabs_matching): New method.
3061 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
3062 (dwarf2_base_index_functions::map_symbol_filenames)
3063 (dwarf2_base_index_functions::has_symbols): Rename.
3064 (dwarf2_gdb_index_functions): Remove.
3065 (dwarf2_debug_names_index::lookup_symbol)
3066 (dwarf2_debug_names_index::dump)
3067 (dwarf2_debug_names_index::expand_symtabs_for_function)
3068 (dwarf2_debug_names_index::map_matching_symbols)
3069 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
3070 (dwarf2_debug_names_functions): Remove.
3071 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
3074 2021-03-20 Tom Tromey <tom@tromey.com>
3076 * psymtab.c (require_partial_symbols): Check that 'sf' is not
3078 * xcoffread.c (xcoff_sym_fns): Update.
3079 * symfile.h (struct sym_fns) <qf>: Remove.
3080 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
3081 * symfile-debug.c (objfile::has_partial_symbols)
3082 (objfile::find_last_source_symtab)
3083 (objfile::forget_cached_source_info)
3084 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3085 (objfile::print_stats, objfile::dump)
3086 (objfile::expand_symtabs_for_function)
3087 (objfile::expand_all_symtabs)
3088 (objfile::expand_symtabs_with_fullname)
3089 (objfile::map_matching_symbols)
3090 (objfile::expand_symtabs_matching)
3091 (objfile::find_pc_sect_compunit_symtab)
3092 (objfile::map_symbol_filenames)
3093 (objfile::find_compunit_symtab_by_address)
3094 (objfile::lookup_global_symbol_language, debug_sym_fns)
3095 (install_symfile_debug_logging): Update.
3096 * objfiles.h (struct objfile) <qf>: New member.
3097 * mipsread.c (ecoff_sym_fns): Update.
3098 * machoread.c (macho_sym_fns): Update.
3099 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
3101 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
3102 * dbxread.c (aout_sym_fns): Update.
3103 * coffread.c (coff_sym_fns): Update.
3105 2021-03-20 Tom Tromey <tom@tromey.com>
3107 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
3108 (expand_symtabs_file_matcher_ftype)
3109 (expand_symtabs_symbol_matcher_ftype)
3110 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
3111 Move to quick-symbol.h.
3112 * quick-symbol.h: New file.
3114 2021-03-20 Tom Tromey <tom@tromey.com>
3116 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
3117 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
3118 (basic_lookup_transparent_type_quick)
3119 (find_pc_sect_compunit_symtab, find_symbol_at_address)
3120 (find_line_symtab, global_symbol_searcher::expand_symtabs):
3122 * symmisc.c (print_objfile_statistics, dump_objfile)
3123 (maintenance_expand_symtabs): Update.
3124 * symfile.c (symbol_file_add_with_addrs)
3125 (expand_symtabs_matching, map_symbol_filenames): Update.
3126 * symfile-debug.c (objfile::has_partial_symbols)
3127 (objfile::find_last_source_symtab)
3128 (objfile::forget_cached_source_info)
3129 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
3130 (objfile::print_stats, objfile::dump)
3131 (objfile::expand_symtabs_for_function)
3132 (objfile::expand_all_symtabs)
3133 (objfile::expand_symtabs_with_fullname)
3134 (objfile::map_matching_symbols)
3135 (objfile::expand_symtabs_matching)
3136 (objfile::find_pc_sect_compunit_symtab)
3137 (objfile::map_symbol_filenames)
3138 (objfile::find_compunit_symtab_by_address)
3139 (objfile::lookup_global_symbol_language): New methods.
3140 (debug_sym_quick_functions): Remove.
3141 (debug_sym_fns, install_symfile_debug_logging): Update.
3142 * source.c (forget_cached_source_info_for_objfile)
3143 (select_source_symtab): Update.
3144 * objfiles.h (struct objfile): Add methods corresponding to
3145 quick_symbol_functions.
3146 * objfiles.c (objfile::has_partial_symbols): Move to
3148 * linespec.c (iterate_over_all_matching_symtabs): Update.
3149 * cp-support.c (add_symbol_overload_list_qualified): Update.
3150 * ada-lang.c (add_nonlocal_symbols): Update.
3152 2021-03-20 Tom Tromey <tom@tromey.com>
3154 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3155 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3157 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3158 * psymtab.c (psym_has_symbols): Return bool.
3159 * objfiles.c (objfile::has_partial_symbols): Return bool.
3160 * dwarf2/read.c (dw2_has_symbols): Return bool.
3162 2021-03-20 Tom Tromey <tom@tromey.com>
3164 * symfile.c (read_symbols): Update.
3165 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3166 (objfile_has_partial_symbols): Don't declare.
3167 * objfiles.c (objfile::has_partial_symbols): Rename from
3168 objfile_has_partial_symbols.
3169 (objfile_has_symbols, have_partial_symbols): Update.
3170 * elfread.c (elf_symfile_read): Update.
3171 * dwarf2/read.c (dwarf2_has_info): Update.
3172 * coffread.c (coff_symfile_read): Update.
3174 2021-03-20 Tom Tromey <tom@tromey.com>
3176 * coffread.c: Include dwarf2/public.h.
3177 * dwarf2/frame.c: Include dwarf2/public.h.
3178 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3179 * dwarf2/public.h: New file.
3180 * dwarf2/read.c: Include dwarf2/public.h.
3181 * elfread.c: Include dwarf2/public.h.
3182 * machoread.c: Include dwarf2/public.h.
3183 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3184 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3185 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3186 * xcoffread.c: Include dwarf2/public.h.
3188 2021-03-20 Tom Tromey <tom@tromey.com>
3190 * symfile.h (enum dwarf2_section_enum)
3191 (dwarf2_get_section_info): Move to dwarf2/read.h.
3192 * dwarf2/read.h (enum dwarf2_section_enum)
3193 (dwarf2_get_section_info): Move from symfile.h.
3195 2021-03-19 Pedro Alves <pedro@palves.net>
3197 * thread.c (any_thread_of_inferior): Check if there's a selected
3198 thread before calling inferior_thread().
3200 2021-03-18 Tom Tromey <tromey@adacore.com>
3202 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3204 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3205 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3207 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3209 * python/py-param.c (get_set_value): Update header comment.
3211 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3213 * infrun.c (check_multi_target_resumption): Remove argument to
3214 all_non_exited_inferiors.
3216 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3218 * windows-nat.c (windows_init_thread_list): Add message to
3221 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3223 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3224 well as PyLong_Check for Python 2.
3226 2021-03-15 Tom Tromey <tromey@adacore.com>
3229 * rust-exp.y (maker_map): Use gdb::hash_enum.
3230 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3232 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3234 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3237 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3239 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3240 parameter, adjust caller.
3242 2021-03-15 Tom Tromey <tromey@adacore.com>
3244 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3246 2021-03-15 Tom Tromey <tromey@adacore.com>
3248 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3249 ada_ensure_varsize_limit.
3251 2021-03-15 Tom Tromey <tromey@adacore.com>
3253 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3255 * ada-exp.y (maybe_overload): New function.
3256 (ada_wrap_overload): New function.
3257 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3258 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3259 (or_else_exp, xor_exp, primary): Update.
3261 2021-03-15 Tom Tromey <tromey@adacore.com>
3264 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3265 call for tagged type.
3267 2021-03-15 Tom Tromey <tromey@adacore.com>
3269 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3272 2021-03-15 Tom Tromey <tromey@adacore.com>
3274 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3276 (ada_assign_operation::evaluate): Update.
3277 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3280 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3282 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3284 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3286 * python/python.c (gdbpy_source_objfile_script): Use
3287 make_scoped_restore to restore gdbpy_current_objfile.
3288 (gdbpy_execute_objfile_script): Likewise.
3290 2021-03-14 Tom Tromey <tom@tromey.com>
3292 * dwarf2/read.c (read_attribute_value): Use cu_header
3295 2021-03-14 Tom Tromey <tom@tromey.com>
3297 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3298 (peek_die_abbrev): Use reader.abfd.
3300 2021-03-14 Tom Tromey <tom@tromey.com>
3302 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3305 2021-03-13 Tom Tromey <tom@tromey.com>
3307 * dwarf2/read.c (struct partial_die_info): Update.
3308 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3309 (load_partial_dies, partial_die_info::partial_die_info): Update.
3310 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3312 2021-03-13 Tom Tromey <tom@tromey.com>
3314 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3316 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3319 * cp-support.c: Use scoped_segv_handler_restore.
3320 * event-top.c (thread_local_segv_handler): Made static.
3321 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3323 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3325 * event-top.h (class scoped_segv_handler_restore): New class.
3326 (thread_local_segv_handler): Removed.
3328 2021-03-10 Tom Tromey <tromey@adacore.com>
3330 * parser-defs.h (parser_state): Change completion to bool.
3331 <parse_completion>: Likewise.
3332 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3333 (ada_resolve_variable, ada_resolve_function): Update.
3334 * ada-lang.c (ada_find_operator_symbol): Change
3335 parse_completion to bool.
3336 (ada_resolve_funcall, ada_resolve_variable)
3337 (ada_resolve_function): Likewise.
3339 2021-03-09 Tom Tromey <tromey@adacore.com>
3341 * eval.c (operation::evaluate_funcall): Use function formal
3342 parameter types when evaluating.
3344 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3346 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3347 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3348 and owner to m_owner.
3350 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3352 * f-exp.h (eval_op_f_loc): Declare.
3353 (expr::fortran_loc_operation): New typedef.
3354 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3356 (f77_keywords): Add LOC keyword.
3357 * f-lang.c (eval_op_f_loc): New function.
3358 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3360 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3362 * f-exp.h (eval_op_f_array_shape): Declare.
3363 (fortran_array_shape_operation): New type.
3364 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3366 (f77_keywords): Add "shape" keyword.
3367 * f-lang.c (fortran_array_shape): New function.
3368 (eval_op_f_array_shape): New function.
3369 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3371 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3373 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3375 (expr::fortran_array_size_1arg): New type.
3376 (expr::fortran_array_size_2arg): Likewise.
3377 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3378 UNOP_OR_BINOP_INTRINSIC.
3379 (f77_keywords): Add "size" keyword.
3380 * f-lang.c (fortran_array_size): New function.
3381 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3382 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3384 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3386 * f-exp.h (eval_op_f_rank): Declare.
3387 (expr::fortran_rank_operation): New typedef.
3388 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3390 (f77_keywords): Add "rank" keyword.
3391 * f-lang.c (eval_op_f_rank): New function.
3392 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3394 2021-03-08 Tom Tromey <tom@tromey.com>
3396 * printcmd.c (set_command): Remove null check.
3397 * value.c (init_if_undefined_command): Remove null check.
3399 2021-03-08 Tom Tromey <tom@tromey.com>
3401 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3403 * p-exp.y (variable): Update.
3404 * go-exp.y (variable): Update.
3405 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3406 Remove overload for objfile.
3407 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3409 (check_objfile): Likewise.
3410 (dump_for_expression): Likewise. Remove overload for objfile.
3411 (class var_msym_value_operation): Use bound_minimal_symbol.
3412 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3414 (var_msym_value_operation::evaluate_for_address)
3415 (var_msym_value_operation::evaluate_for_sizeof)
3416 (var_msym_value_operation::evaluate_for_cast): Update.
3417 * d-exp.y (PrimaryExpression): Update.
3418 * c-exp.y (variable): Update.
3419 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3420 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3422 * ada-exp.y (write_var_or_type): Update.
3424 2021-03-08 Tom Tromey <tom@tromey.com>
3426 * parser-defs.h (exp_uses_objfile): Return bool.
3427 * parse.c (exp_uses_objfile): Return bool.
3429 2021-03-08 Tom Tromey <tom@tromey.com>
3431 * value.h (eval_skip_value): Don't declare.
3432 * opencl-lang.c (eval_opencl_assign): Update.
3433 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3434 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3435 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3436 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3437 * expop.h (typeof_operation::evaluate)
3438 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3439 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3440 (cxx_cast_operation::evaluate): Update.
3441 * eval.c (eval_skip_value): Remove.
3442 (eval_op_scope, eval_op_var_entry_value)
3443 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3444 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3445 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3446 (eval_op_binary, eval_op_subscript, eval_op_equal)
3447 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3448 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3449 (eval_op_complement, eval_op_lognot, eval_op_ind)
3450 (eval_op_memval, eval_op_preinc, eval_op_predec)
3451 (eval_op_postinc, eval_op_postdec, eval_op_type)
3452 (eval_binop_assign_modify, eval_op_objc_msgcall)
3453 (eval_multi_subscript, logical_and_operation::evaluate)
3454 (logical_or_operation::evaluate, array_operation::evaluate)
3455 (operation::evaluate_for_cast)
3456 (var_msym_value_operation::evaluate_for_cast)
3457 (var_value_operation::evaluate_for_cast): Update.
3458 * c-lang.c (c_string_operation::evaluate): Update.
3459 * c-exp.h (objc_nsstring_operation::evaluate)
3460 (objc_selector_operation::evaluate): Update.
3461 * ada-lang.c (ada_assign_operation::evaluate)
3462 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3463 (ada_atr_size): Update.
3465 2021-03-08 Tom Tromey <tom@tromey.com>
3467 * eval.c: Merge "namespace" scopes.
3469 2021-03-08 Tom Tromey <tom@tromey.com>
3471 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3473 * parse.c (expr_builder::expr_builder, expr_builder::release):
3476 2021-03-08 Tom Tromey <tom@tromey.com>
3478 * parse.c (expression::expression, expression::~expression):
3480 * expression.h (struct expression): Inline constructor. Remove
3483 2021-03-08 Tom Tromey <tom@tromey.com>
3485 * std-operator.def (BINOP_END): Remove.
3486 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3487 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3488 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3489 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3490 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3493 2021-03-08 Tom Tromey <tom@tromey.com>
3495 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3497 2021-03-08 Tom Tromey <tom@tromey.com>
3499 * std-operator.def (OP_EXTENDED0): Remove.
3501 2021-03-08 Tom Tromey <tom@tromey.com>
3503 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3504 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3507 2021-03-08 Tom Tromey <tom@tromey.com>
3509 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3510 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3512 2021-03-08 Tom Tromey <tom@tromey.com>
3514 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3515 * ada-lang.c (ada_binop_minmax): Update.
3516 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3517 Use BINOP_MIN and BINOP_MAX.
3519 2021-03-08 Tom Tromey <tom@tromey.com>
3521 * value.h (evaluate_subexp_with_coercion): Don't declare.
3522 * parse.c (exp_descriptor_standard): Remove.
3523 (expr_builder::expr_builder, expr_builder::release): Update.
3524 (expression::expression): Remove size_t parameter.
3525 (expression::~expression): Simplify.
3526 (expression::resize): Remove.
3527 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3528 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3529 (write_exp_elt_longcst, write_exp_elt_floatcst)
3530 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3531 (write_exp_string_vector, write_exp_bitstring): Remove.
3532 * p-lang.h (class pascal_language) <opcode_print_table,
3533 op_print_tab>: Remove.
3534 * p-lang.c (pascal_language::op_print_tab): Remove.
3535 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3537 * objc-lang.c (objc_op_print_tab): Remove.
3538 (class objc_language) <opcode_print_table>: Remove.
3539 * m2-lang.h (class m2_language) <opcode_print_table,
3540 op_print_tab>: Remove.
3541 * m2-lang.c (m2_language::op_print_tab): Remove.
3542 * language.h (struct language_defn) <post_parser, expression_ops,
3543 opcode_print_table>: Remove.
3544 * language.c (language_defn::expression_ops)
3545 (auto_or_unknown_language::opcode_print_table): Remove.
3546 * go-lang.h (class go_language) <opcode_print_table,
3547 op_print_tab>: Remove.
3548 * go-lang.c (go_language::op_print_tab): Remove.
3549 * f-lang.h (class f_language) <opcode_print_table>: Remove
3550 <op_print_tab>: Remove.
3551 * f-lang.c (f_language::op_print_tab): Remove.
3552 * expression.h (union exp_element): Remove.
3553 (struct expression): Remove size_t parameter from constructor.
3555 <first_opcode>: Update.
3556 <nelts, elts>: Remove.
3557 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3558 (evaluate_subexp_standard, print_expression, op_string)
3559 (dump_raw_expression): Don't declare.
3560 * expprint.c (print_expression, print_subexp)
3561 (print_subexp_funcall, print_subexp_standard, op_string)
3562 (dump_raw_expression, dump_subexp, dump_subexp_body)
3563 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3564 (dump_prefix_expression): Update.
3565 * eval.c (evaluate_subexp): Remove.
3566 (evaluate_expression, evaluate_type): Update.
3567 (evaluate_subexpression_type): Remove.
3568 (fetch_subexp_value): Remove "pc" parameter. Update.
3569 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3570 (evaluate_subexp_standard, evaluate_subexp_for_address)
3571 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3572 (evaluate_subexp_for_cast): Remove.
3573 (parse_and_eval_type): Update.
3574 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3575 * d-lang.c (d_op_print_tab): Remove.
3576 (class d_language) <opcode_print_table>: Remove.
3577 * c-lang.h (c_op_print_tab): Don't declare.
3578 * c-lang.c (c_op_print_tab): Remove.
3579 (class c_language, class cplus_language, class asm_language, class
3580 minimal_language) <opcode_print_table>: Remove.
3581 * breakpoint.c (update_watchpoint, watchpoint_check)
3582 (watchpoint_exp_is_const, watch_command_1): Update.
3583 * ax-gdb.h (union exp_element): Don't declare.
3584 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3585 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3586 (gen_expr_binop_rest): Remove.
3587 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3588 * ada-lang.c (ada_op_print_tab): Remove.
3589 (class ada_language) <post_parser, opcode_print_table>: Remove.
3591 2021-03-08 Tom Tromey <tom@tromey.com>
3593 * go-lang.c (go_language::expression_ops): Don't declare.
3594 * go-lang.h (class go_language) <expression_ops>: Remove.
3595 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3597 (class opencl_language) <expression_ops>: Remove.
3598 * d-lang.c (class d_language) <expression_ops>: Remove.
3599 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3600 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3601 (class c_language, class cplus_language, class asm_language)
3602 (class minimal_language) <expression_ops>: Remove.
3604 2021-03-08 Tom Tromey <tom@tromey.com>
3606 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3607 (evaluate_subexp_type, assign_aggregate)
3608 (aggregate_assign_positional, aggregate_assign_from_choices)
3609 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3610 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3611 (ada_operator_check, ada_forward_operator_length)
3612 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3614 (post_parser): Update.
3615 (class ada_language) <expresssion_ops>: Remove.
3617 2021-03-08 Tom Tromey <tom@tromey.com>
3619 * m2-lang.h (class m2_language) <expresssion_ops,
3620 exp_descriptor_modula2>: Remove.
3621 * m2-lang.c (evaluate_subexp_modula2)
3622 (m2_language::exp_descriptor_modula2): Remove.
3624 2021-03-08 Tom Tromey <tom@tromey.com>
3626 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3627 <exp_descriptor_tab>: Remove.
3628 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3629 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3630 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3631 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3634 2021-03-08 Tom Tromey <tom@tromey.com>
3636 * rust-lang.h (class rust_language) <expression_ops,
3637 exp_descriptor_tab>: Remove.
3638 * rust-lang.c (rust_evaluate_funcall): Remove.
3639 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3641 (rust_evaluate_subexp): Remove.
3642 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3643 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3644 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3646 2021-03-08 Tom Tromey <tom@tromey.com>
3648 * ada-exp.y: Create operations.
3649 (empty_stoken): Remove.
3650 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3651 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3652 (components): New global.
3653 (push_component, choice_component, pop_component, pop_components):
3655 (associations): New global
3656 (push_association, pop_association, pop_associations): New
3658 (ada_parse): Update.
3659 (write_var_from_sym, write_int): Create operations.
3660 (write_exp_op_with_string): Remove.
3661 (write_object_renaming, write_selectors, write_ambiguous_var)
3662 (write_var_or_type, write_name_assoc): Create operations.
3663 * ada-lang.h (ada_index_type): Declare.
3664 * ada-lang.c (ada_index_type): No longer static.
3666 2021-03-08 Tom Tromey <tom@tromey.com>
3668 * f-exp.y: Create operations.
3669 (f_language::parser): Update.
3671 2021-03-08 Tom Tromey <tom@tromey.com>
3673 * m2-exp.y: Create operations.
3674 (m2_language::parser): Update.
3676 2021-03-08 Tom Tromey <tom@tromey.com>
3678 * p-exp.y: Create operations.
3679 (pascal_language::parser): Update.
3681 2021-03-08 Tom Tromey <tom@tromey.com>
3683 * d-exp.y: Create operations.
3686 2021-03-08 Tom Tromey <tom@tromey.com>
3688 * go-exp.y: Create operations.
3689 (go_language::parser): Update.
3691 2021-03-08 Tom Tromey <tom@tromey.com>
3693 * objc-lang.c (end_msglist): Create operations.
3694 * c-exp.y: Change parser to create operations.
3695 (write_destructor_name): Remove.
3698 2021-03-08 Tom Tromey <tom@tromey.com>
3700 * rust-exp.y: Create operations.
3701 (rust_parser::convert_params_to_expression): Change return type.
3702 (binop_maker_ftype): New typedef.
3703 (maker_map): New global.
3704 (rust_parser::convert_ast_to_expression): Change return type.
3705 (rust_language::parser): Update.
3706 (_initialize_rust_exp): Initialize maker_map.
3708 2021-03-08 Tom Tromey <tom@tromey.com>
3710 * stap-probe.c (binop_maker_ftype): New typedef.
3711 (stap_maker_map): New global.
3712 (stap_make_binop): New function.
3713 (stap_parse_register_operand): Return operation_up.
3714 (stap_parse_single_operand, stap_parse_argument_conditionally)
3715 (stap_parse_argument_1): Likewise.
3716 (stap_parse_argument): Create operations.
3717 (stap_probe::parse_arguments): Update.
3718 (_initialize_stap_probe): Initialize stap_maker_map.
3719 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3721 * i386-tdep.h (i386_stap_parse_special_token): Change return
3723 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3724 (i386_stap_parse_special_token_three_arg_disp)
3725 (i386_stap_parse_special_token): Change return type.
3726 * gdbarch.sh (stap_parse_special_token): Change return type.
3727 * gdbarch.c: Rebuild.
3728 * gdbarch.h: Rebuild.
3729 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3731 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3734 2021-03-08 Tom Tromey <tom@tromey.com>
3736 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3737 * gdbarch.h: Rebuild.
3738 * gdbarch.c: Rebuild.
3739 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3740 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3742 (amd64_dtrace_parse_probe_argument): Update.
3744 2021-03-08 Tom Tromey <tom@tromey.com>
3746 * parser-defs.h (struct parser_state) <push, push_new,
3747 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3748 wrap2>: New methods.
3749 <m_operations>: New member.
3750 * parse.c (parser_state::push_c_string)
3751 (parser_state::push_symbol, parser_state::push_dollar): New
3754 2021-03-08 Tom Tromey <tom@tromey.com>
3756 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3758 (struct parser_state) <mark_struct_expression>: New method.
3759 * parse.c (parser_state::mark_struct_expression): Update assert.
3760 (parser_state::mark_struct_expression): New method.
3761 (parser_state::mark_completion_tag): Update assert.
3762 (parse_expression_for_completion): Handle expout_last_op.
3764 2021-03-08 Tom Tromey <tom@tromey.com>
3766 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3768 * value.h (fetch_subexp_value): Add "op" parameter.
3769 * value.c (init_if_undefined_command): Update.
3770 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3771 * stap-probe.c (stap_probe::compile_to_ax): Update.
3772 * printcmd.c (set_command): Update.
3773 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3775 * parser-defs.h (struct expr_builder) <set_operation>: New
3777 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3778 * expression.h (struct expression) <first_opcode>: Update.
3780 * expprint.c (dump_raw_expression, dump_prefix_expression):
3782 * expop.h (class var_value_operation) <get_symbol>: New method.
3783 (class register_operation) <get_name>: New method.
3784 (class equal_operation): No longer a typedef, now a subclass.
3785 (class unop_memval_operation) <get_type>: New method.
3786 (class assign_operation) <get_lhs>: New method.
3787 (class unop_cast_operation) <get_type>: New method.
3788 * eval.c (evaluate_expression, evaluate_type)
3789 (evaluate_subexpression_type): Update.
3790 (fetch_subexp_value): Add "op" parameter.
3791 (parse_and_eval_type): Update.
3792 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3793 * breakpoint.c (update_watchpoint, watchpoint_check)
3794 (watchpoint_exp_is_const, watch_command_1): Update.
3795 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3798 2021-03-08 Tom Tromey <tom@tromey.com>
3800 * ada-lang.c (ada_value_binop): Do not use op_string.
3802 2021-03-08 Tom Tromey <tom@tromey.com>
3804 * expprint.c (dump_for_expression): New overload.
3805 * expop.h (check_objfile, dump_for_expression): Declare new
3807 * ada-lang.c (check_objfile): New overload.
3808 (assign_component, ada_aggregate_component::uses_objfile)
3809 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3810 (ada_aggregate_component::assign_aggregate)
3811 (ada_positional_component::uses_objfile)
3812 (ada_positional_component::dump, ada_positional_component::assign)
3813 (ada_discrete_range_association::uses_objfile)
3814 (ada_discrete_range_association::dump)
3815 (ada_discrete_range_association::assign)
3816 (ada_name_association::uses_objfile, ada_name_association::dump)
3817 (ada_name_association::assign)
3818 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3819 (ada_choices_component::assign)
3820 (ada_others_component::uses_objfile, ada_others_component::dump)
3821 (ada_others_component::assign, ada_assign_operation::evaluate):
3823 * ada-exp.h (ada_string_operation) <get_name>: New method.
3824 (class ada_assign_operation): New.
3825 (class ada_component): New.
3826 (ada_component_up): New typedef.
3827 (class ada_aggregate_operation, class ada_aggregate_component)
3828 (class ada_positional_component, class ada_others_component)
3829 (class ada_association): New.
3830 (ada_association_up): New typedef.
3831 (class ada_choices_component)
3832 (class ada_discrete_range_association)
3833 (class ada_name_association): New.
3835 2021-03-08 Tom Tromey <tom@tromey.com>
3837 * ada-lang.c (ada_var_value_operation::resolve)
3838 (ada_funcall_operation::resolve)
3839 (ada_ternop_slice_operation::resolve): New methods.
3840 * ada-exp.h (struct ada_resolvable): New.
3841 (class ada_var_value_operation): Derive from ada_resolvable.
3842 <get_block, resolve>: New methods.
3843 (class ada_funcall_operation): Derive from ada_resolvable.
3844 <resolve>: New method.
3845 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3846 <resolve>: New method.
3848 2021-03-08 Tom Tromey <tom@tromey.com>
3850 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3851 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3853 (class ada_funcall_operation): New.
3855 2021-03-08 Tom Tromey <tom@tromey.com>
3857 * ada-lang.c (ada_structop_operation::evaluate): New method.
3858 * ada-exp.h (class ada_structop_operation): New.
3860 2021-03-08 Tom Tromey <tom@tromey.com>
3862 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3863 * ada-exp.h (class ada_unop_ind_operation): New.
3865 2021-03-08 Tom Tromey <tom@tromey.com>
3867 * ada-lang.c (ada_binop_exp): No longer static.
3868 * ada-exp.h (ada_binop_exp_operation): New typedef.
3870 2021-03-08 Tom Tromey <tom@tromey.com>
3872 * ada-lang.c (ada_val_atr): No longer static.
3873 (ada_atr_val_operation::evaluate): New method.
3874 * ada-exp.h (class ada_atr_val_operation): New.
3876 2021-03-08 Tom Tromey <tom@tromey.com>
3878 * ada-lang.c (ada_pos_atr): No longer static.
3879 * ada-exp.h (ada_pos_operation): New typedef.
3881 2021-03-08 Tom Tromey <tom@tromey.com>
3883 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3885 (ada_evaluate_subexp): Use it.
3887 2021-03-08 Tom Tromey <tom@tromey.com>
3889 * ada-lang.c (ada_binop_minmax): No longer static.
3890 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3893 2021-03-08 Tom Tromey <tom@tromey.com>
3895 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3897 * ada-exp.h (class ada_var_msym_value_operation): New.
3899 2021-03-08 Tom Tromey <tom@tromey.com>
3901 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3902 (ada_var_value_operation::evaluate): New methods.
3903 * ada-exp.h (class ada_var_value_operation): New.
3905 2021-03-08 Tom Tromey <tom@tromey.com>
3907 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3908 * ada-exp.h (class ada_unop_atr_operation): New.
3910 2021-03-08 Tom Tromey <tom@tromey.com>
3912 * ada-lang.c (ada_binop_in_bounds): No longer static.
3913 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3915 2021-03-08 Tom Tromey <tom@tromey.com>
3917 * ada-lang.c (ada_ternop_slice): No longer static.
3918 * ada-exp.h (class ada_ternop_slice_operation): New.
3920 2021-03-08 Tom Tromey <tom@tromey.com>
3922 * ada-exp.h (ada_bitwise_operation): New template class.
3923 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3924 (ada_bitwise_xor_operation): New typedefs.
3926 2021-03-08 Tom Tromey <tom@tromey.com>
3928 * ada-lang.c (ada_equal_binop): No longer static.
3929 * ada-exp.h (class ada_binop_equal_operation): New.
3931 2021-03-08 Tom Tromey <tom@tromey.com>
3933 * ada-lang.c (ada_mult_binop): No longer static.
3934 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3935 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3937 2021-03-08 Tom Tromey <tom@tromey.com>
3939 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3940 * ada-exp.h (class ada_binop_addsub_operation): New.
3942 2021-03-08 Tom Tromey <tom@tromey.com>
3944 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3945 (ada_resolve_variable): Declare.
3946 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3947 (ada_resolve_variable): New functions.
3948 (resolve_subexp): Update.
3950 2021-03-08 Tom Tromey <tom@tromey.com>
3952 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3954 * c-exp.h (class opencl_ternop_cond_operation): New.
3956 2021-03-08 Tom Tromey <tom@tromey.com>
3958 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3960 * c-exp.h (class opencl_logical_binop_operation): New.
3962 2021-03-08 Tom Tromey <tom@tromey.com>
3964 * opencl-lang.c (opencl_structop_operation::evaluate): New
3966 * c-exp.h (class opencl_structop_operation): New.
3968 2021-03-08 Tom Tromey <tom@tromey.com>
3970 * opencl-lang.c (opencl_logical_not): No longer static. Change
3972 (evaluate_subexp_opencl): Update.
3973 * c-exp.h (opencl_notequal_operation): New typedef.
3975 2021-03-08 Tom Tromey <tom@tromey.com>
3977 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3978 static. Change parameters.
3979 (eval_opencl_assign): No longer static. Add "op" parameter.
3980 (evaluate_subexp_opencl): Update.
3981 * c-exp.h (opencl_binop_operation): New template class.
3982 (opencl_assign_operation, opencl_equal_operation)
3983 (opencl_notequal_operation, opencl_less_operation)
3984 (opencl_gtr_operation, opencl_geq_operation)
3985 (opencl_leq_operation): New typedefs.
3987 2021-03-08 Tom Tromey <tom@tromey.com>
3989 * opencl-lang.c (opencl_value_cast): No longer static.
3990 * c-exp.h (opencl_cast_type_operation): New typedef.
3992 2021-03-08 Tom Tromey <tom@tromey.com>
3994 * f-exp.h (eval_op_f_allocated): Declare.
3995 (fortran_allocated_operation): New typedef.
3996 * f-lang.c (eval_op_f_allocated): No longer static.
3998 2021-03-08 Tom Tromey <tom@tromey.com>
4000 * f-lang.c (eval_op_f_associated): New functions.
4001 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
4004 2021-03-08 Tom Tromey <tom@tromey.com>
4006 * f-lang.c (fortran_bound_1arg::evaluate)
4007 (fortran_bound_2arg::evaluate): New methods.
4008 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
4011 2021-03-08 Tom Tromey <tom@tromey.com>
4013 * expop.h (class unop_addr_operation) <get_expression>: New
4015 * f-lang.c (fortran_undetermined::value_subarray)
4016 (fortran_undetermined::evaluate): New methods.
4017 (fortran_prepare_argument): New overload.
4018 * f-exp.h (class fortran_range_operation)
4019 (class fortran_undetermined): New classes.
4021 2021-03-08 Tom Tromey <tom@tromey.com>
4023 * rust-lang.c (rust_structop::evaluate_funcall): New method.
4024 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
4027 2021-03-08 Tom Tromey <tom@tromey.com>
4029 * expression.h (class operation) <evaluate_funcall>: New methods.
4030 * expop.h (class scope_operation) <evaluate_funcall>: New method.
4031 (class var_value_operation) <evaluate_funcall>: New method.
4032 (class structop_base_operation) <evaluate_funcall>: New method.
4033 (class var_msym_value_operation) <evaluate_funcall>: New method.
4034 (class structop_member_base): New class.
4035 (class structop_member_operation): Derive from
4036 structop_member_base.
4037 (class structop_mptr_operation): Derive from
4038 structop_member_base.
4039 (class funcall_operation): New class.
4040 * eval.c (operation::evaluate_funcall)
4041 (var_value_operation::evaluate_funcall)
4042 (scope_operation::evaluate_funcall)
4043 (structop_member_base::evaluate_funcall)
4044 (structop_base_operation::evaluate_funcall): New methods.
4046 2021-03-08 Tom Tromey <tom@tromey.com>
4048 * expop.h (class array_operation): New.
4049 * eval.c (array_operation::evaluate_struct_tuple)
4050 (array_operation::evaluate): New methods.
4052 2021-03-08 Tom Tromey <tom@tromey.com>
4054 * expop.h (class adl_func_operation): New.
4055 * eval.c (adl_func_operation::evaluate): New method.
4057 2021-03-08 Tom Tromey <tom@tromey.com>
4059 * ada-lang.c (ada_unop_in_range): No longer static.
4060 * ada-exp.h (class ada_unop_range_operation): New.
4062 2021-03-08 Tom Tromey <tom@tromey.com>
4064 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
4066 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
4067 (ada_atr_size_operation, ada_abs_operation): New typedefs.
4069 2021-03-08 Tom Tromey <tom@tromey.com>
4071 * expop.h (class logical_and_operation)
4072 (class logical_or_operation): New.
4073 * eval.c (logical_and_operation::evaluate)
4074 (logical_or_operation::evaluate): New methods.
4075 * ax-gdb.c (logical_and_operation::do_generate_ax)
4076 (logical_or_operation::do_generate_ax): New methods.
4078 2021-03-08 Tom Tromey <tom@tromey.com>
4080 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
4082 * m2-exp.h: New file.
4084 2021-03-08 Tom Tromey <tom@tromey.com>
4086 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
4087 * rust-exp.h (class rust_aggregate_operation): New.
4089 2021-03-08 Tom Tromey <tom@tromey.com>
4091 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
4093 * rust-exp.h (class rust_struct_anon): New.
4094 (class rust_structop): New.
4096 2021-03-08 Tom Tromey <tom@tromey.com>
4098 * rust-lang.c (rust_range): No longer static.
4099 * rust-exp.h (class rust_range_operation): New.
4101 2021-03-08 Tom Tromey <tom@tromey.com>
4103 * rust-lang.c (rust_subscript): No longer static.
4104 * rust-exp.h (class rust_subscript_operation): New.
4106 2021-03-08 Tom Tromey <tom@tromey.com>
4108 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
4110 (rust_evaluate_subexp): Update.
4111 * rust-exp.h (class rust_unop_ind_operation): New.
4113 2021-03-08 Tom Tromey <tom@tromey.com>
4115 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
4116 longer static. Add "opcode" parameter.
4117 (rust_evaluate_subexp): Update.
4118 * rust-exp.h: New file.
4120 2021-03-08 Tom Tromey <tom@tromey.com>
4122 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
4123 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
4124 (eval_op_f_kind): No longer static. Add "opcode" parameter.
4125 (evaluate_subexp_f): Update.
4126 * f-exp.h: New file.
4128 2021-03-08 Tom Tromey <tom@tromey.com>
4130 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
4131 * ada-exp.h (class ada_ternop_range_operation): New.
4133 2021-03-08 Tom Tromey <tom@tromey.com>
4135 * ada-lang.c (ada_qual_operation::evaluate): New method.
4136 * ada-exp.h (class ada_qual_operation): New.
4138 2021-03-08 Tom Tromey <tom@tromey.com>
4140 * ada-lang.c (ada_string_operation::evaluate): New method.
4141 * ada-exp.h (class ada_string_operation): New.
4143 2021-03-08 Tom Tromey <tom@tromey.com>
4145 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
4146 * ada-exp.h: New file.
4148 2021-03-08 Tom Tromey <tom@tromey.com>
4150 * expop.h (class multi_subscript_operation): New.
4151 * eval.c (multi_subscript_operation::evaluate): New method.
4153 2021-03-08 Tom Tromey <tom@tromey.com>
4155 * eval.c (objc_msgcall_operation::evaluate): New method.
4156 * c-exp.h (class objc_msgcall_operation): New.
4158 2021-03-08 Tom Tromey <tom@tromey.com>
4160 * expop.h (class var_value_operation): New.
4161 * eval.c (var_value_operation::evaluate)
4162 (var_value_operation::evaluate_for_address)
4163 (var_value_operation::evaluate_with_coercion)
4164 (var_value_operation::evaluate_for_sizeof)
4165 (var_value_operation::evaluate_for_cast): New methods.
4166 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4168 2021-03-08 Tom Tromey <tom@tromey.com>
4170 * expop.h (cxx_cast_ftype): New typedef.
4171 (cxx_cast_operation): New template.
4172 (dynamic_cast_operation, reinterpret_cast_operation): New
4175 2021-03-08 Tom Tromey <tom@tromey.com>
4177 * expop.h (class unop_cast_type_operation): New.
4178 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4181 2021-03-08 Tom Tromey <tom@tromey.com>
4183 * expop.h (class unop_cast_operation): New.
4184 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4186 2021-03-08 Tom Tromey <tom@tromey.com>
4188 * expop.h (class assign_modify_operation): New.
4189 * eval.c (eval_binop_assign_modify): No longer static.
4190 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4192 2021-03-08 Tom Tromey <tom@tromey.com>
4194 * expop.h (class assign_operation): New.
4195 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4197 2021-03-08 Tom Tromey <tom@tromey.com>
4199 * expop.h (class type_instance_operation): New.
4200 * eval.c (type_instance_operation::evaluate): New method.
4202 2021-03-08 Tom Tromey <tom@tromey.com>
4204 * expop.h (class op_this_operation): New.
4205 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4207 2021-03-08 Tom Tromey <tom@tromey.com>
4209 * expop.h (class unop_memval_operation)
4210 (class unop_memval_type_operation): New.
4211 * eval.c (eval_op_memval): No longer static.
4212 (unop_memval_operation::evaluate_for_address)
4213 (unop_memval_type_operation::evaluate_for_address)
4214 (unop_memval_operation::evaluate_for_sizeof)
4215 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4216 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4217 (unop_memval_type_operation::do_generate_ax): New methods.
4219 2021-03-08 Tom Tromey <tom@tromey.com>
4221 * expop.h (class unop_alignof_operation): New.
4222 * eval.c (eval_op_alignof): No longer static.
4224 2021-03-08 Tom Tromey <tom@tromey.com>
4226 * expop.h (class unop_sizeof_operation): New.
4227 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4229 2021-03-08 Tom Tromey <tom@tromey.com>
4231 * expop.h (class unop_addr_operation): New.
4232 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4234 2021-03-08 Tom Tromey <tom@tromey.com>
4236 * expop.h (class typeid_operation): New.
4238 2021-03-08 Tom Tromey <tom@tromey.com>
4240 * expop.h (class decltype_operation): New.
4242 2021-03-08 Tom Tromey <tom@tromey.com>
4244 * expop.h (class typeof_operation): New.
4246 2021-03-08 Tom Tromey <tom@tromey.com>
4248 * expop.h (class type_operation): New.
4249 * eval.c (eval_op_type): No longer static.
4251 2021-03-08 Tom Tromey <tom@tromey.com>
4253 * expop.h (class unop_ind_base_operation)
4254 (class unop_ind_operation): New.
4255 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4256 (unop_ind_base_operation::evaluate_for_address)
4257 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4258 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4260 2021-03-08 Tom Tromey <tom@tromey.com>
4262 * expop.h (unop_incr_operation): New template.
4263 (preinc_operation, predec_operation, postinc_operation)
4264 (postdec_operation): New typedefs.
4265 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4266 (eval_op_postdec): No longer static.
4268 2021-03-08 Tom Tromey <tom@tromey.com>
4270 * expop.h (unary_ftype): New typedef.
4271 (unop_operation, usual_ax_binop_operation): New templates.
4272 (unary_plus_operation, unary_neg_operation)
4273 (unary_complement_operation, unary_logical_not_operation): New
4275 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4276 (eval_op_lognot): No longer static.
4277 * ax-gdb.c (gen_expr_unop): New function.
4279 2021-03-08 Tom Tromey <tom@tromey.com>
4281 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4283 2021-03-08 Tom Tromey <tom@tromey.com>
4285 * expop.h (class repeat_operation): New.
4286 * eval.c (eval_op_repeat): No longer static. Remove "op"
4288 (evaluate_subexp_standard): Update.
4289 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4291 2021-03-08 Tom Tromey <tom@tromey.com>
4293 * expop.h (class comparison_operation): New.
4294 (equal_operation, notequal_operation, less_operation)
4295 (gtr_operation, geq_operation, leq_operation): New typedefs.
4296 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4297 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4299 2021-03-08 Tom Tromey <tom@tromey.com>
4301 * expop.h (class subscript_operation): New.
4302 * eval.c (eval_op_subscript): No longer static.
4304 2021-03-08 Tom Tromey <tom@tromey.com>
4306 * expop.h (class binop_operation, class usual_ax_binop_operation):
4308 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4309 (div_operation, rem_operation, lsh_operation, rsh_operation)
4310 (bitwise_and_operation, bitwise_ior_operation)
4311 (bitwise_xor_operation): New typedefs.
4312 * eval.c (eval_op_binary): No longer static.
4314 2021-03-08 Tom Tromey <tom@tromey.com>
4316 * expop.h (class sub_operation): New.
4317 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4318 (evaluate_subexp_standard): Update.
4320 2021-03-08 Tom Tromey <tom@tromey.com>
4322 * expop.h (class add_operation): New.
4323 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4324 (evaluate_subexp_standard): Update.
4326 2021-03-08 Tom Tromey <tom@tromey.com>
4328 * expop.h (class concat_operation): New.
4329 * eval.c (eval_op_concat): No longer static. Remove "op"
4331 (evaluate_subexp_standard): Update.
4333 2021-03-08 Tom Tromey <tom@tromey.com>
4335 * expop.h (class structop_member_operation)
4336 (class structop_mptr_operation): New.
4337 * eval.c (eval_op_member): No longer static.
4339 2021-03-08 Tom Tromey <tom@tromey.com>
4341 * expop.h (class structop_ptr_operation): New.
4342 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4345 2021-03-08 Tom Tromey <tom@tromey.com>
4347 * expop.h (class structop_base_operation)
4348 (class structop_operation): New.
4349 * eval.c (eval_op_structop_struct): No longer static.
4351 2021-03-08 Tom Tromey <tom@tromey.com>
4353 * expop.h (class complex_operation): New.
4355 2021-03-08 Tom Tromey <tom@tromey.com>
4357 * eval.c (eval_op_objc_selector): No longer static.
4358 * c-exp.h (class objc_selector_operation): New.
4360 2021-03-08 Tom Tromey <tom@tromey.com>
4362 * eval.c: Include c-exp.h.
4363 * c-exp.h (class objc_nsstring_operation): New.
4365 2021-03-08 Tom Tromey <tom@tromey.com>
4367 * c-lang.c (c_string_operation::evaluate): New method.
4368 * c-exp.h: New file.
4370 2021-03-08 Tom Tromey <tom@tromey.com>
4372 * expop.h (class ternop_cond_operation): New.
4373 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4375 2021-03-08 Tom Tromey <tom@tromey.com>
4377 * expop.h (class ternop_slice_operation): New.
4378 * eval.c (eval_op_ternop): No longer static.
4380 2021-03-08 Tom Tromey <tom@tromey.com>
4382 * expop.h (class string_operation): New.
4383 * eval.c (eval_op_string): No longer static.
4385 2021-03-08 Tom Tromey <tom@tromey.com>
4387 * expop.h (class internalvar_operation): New.
4388 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4390 2021-03-08 Tom Tromey <tom@tromey.com>
4392 * expop.h (class bool_operation): New.
4394 2021-03-08 Tom Tromey <tom@tromey.com>
4396 * expop.h (class register_operation): New.
4397 * eval.c (eval_op_register): No longer static.
4398 * ax-gdb.c (register_operation::do_generate_ax): New method.
4400 2021-03-08 Tom Tromey <tom@tromey.com>
4402 * expop.h (class last_operation): New.
4404 2021-03-08 Tom Tromey <tom@tromey.com>
4406 * expop.h (class func_static_var_operation): New.
4407 * eval.c (eval_op_func_static_var): No longer static.
4409 2021-03-08 Tom Tromey <tom@tromey.com>
4411 * expop.h (class var_entry_value_operation): New.
4412 * eval.c (eval_op_var_entry_value): No longer static.
4414 2021-03-08 Tom Tromey <tom@tromey.com>
4416 * expression.h (class operation) <set_outermost>: New method.
4417 * expop.h (class var_msym_value_operation): New.
4418 * eval.c (eval_op_var_msym_value): No longer static.
4419 (var_msym_value_operation::evaluate_for_address)
4420 (var_msym_value_operation::evaluate_for_sizeof)
4421 (var_msym_value_operation::evaluate_for_cast): New methods.
4422 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4425 2021-03-08 Tom Tromey <tom@tromey.com>
4427 * expop.h (class long_const_operation): New.
4428 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4430 2021-03-08 Tom Tromey <tom@tromey.com>
4432 * expop.h (class scope_operation): New.
4433 * eval.c (eval_op_scope): No longer static.
4434 (scope_operation::evaluate_for_address): New method.
4435 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4437 2021-03-08 Tom Tromey <tom@tromey.com>
4439 * expprint.c (float_const_operation::dump): New method.
4440 * expop.h (float_data): New typedef.
4441 (class float_const_operation): New.
4443 2021-03-08 Tom Tromey <tom@tromey.com>
4445 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4446 * ax-gdb.c (gen_expr_binop): New function.
4447 (gen_expr_structop): Likewise.
4449 2021-03-08 Tom Tromey <tom@tromey.com>
4451 * expprint.c (expr::dump_for_expression): New functions.
4452 * expop.h (dump_for_expression): New overloads.
4453 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4456 2021-03-08 Tom Tromey <tom@tromey.com>
4458 * expression.h (expr::operation): New class.
4459 (expr::make_operation): New function.
4460 (expr::operation_up): New typedef.
4461 * expop.h: New file.
4462 * eval.c (operation::evaluate_for_cast)
4463 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4465 * ax-gdb.c (operation::generate_ax): New method.
4467 2021-03-08 Tom Tromey <tom@tromey.com>
4469 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4470 (gen_expr_binop_rest): New overload.
4472 2021-03-08 Tom Tromey <tom@tromey.com>
4474 * eval.c (eval_multi_subscript): New function.
4475 (evaluate_subexp_standard): Use it.
4477 2021-03-08 Tom Tromey <tom@tromey.com>
4479 * ada-lang.c (ada_binop_exp): New function.
4480 (ada_evaluate_subexp): Use it.
4482 2021-03-08 Tom Tromey <tom@tromey.com>
4484 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4486 (ada_evaluate_subexp): Use it.
4488 2021-03-08 Tom Tromey <tom@tromey.com>
4490 * ada-lang.c (ada_binop_minmax): New function.
4491 (ada_evaluate_subexp): Use it.
4493 2021-03-08 Tom Tromey <tom@tromey.com>
4495 * ada-lang.c (ada_unop_atr): New function.
4496 (ada_evaluate_subexp): Use it.
4498 2021-03-08 Tom Tromey <tom@tromey.com>
4500 * ada-lang.c (ada_binop_in_bounds): New function.
4501 (ada_evaluate_subexp): Use it.
4503 2021-03-08 Tom Tromey <tom@tromey.com>
4505 * ada-lang.c (ada_ternop_slice): New function.
4506 (ada_evaluate_subexp): Use it.
4508 2021-03-08 Tom Tromey <tom@tromey.com>
4510 * ada-lang.c (ada_equal_binop): New function.
4511 (ada_evaluate_subexp): Use it.
4513 2021-03-08 Tom Tromey <tom@tromey.com>
4515 * ada-lang.c (ada_mult_binop): New function.
4516 (ada_evaluate_subexp): Use it.
4518 2021-03-08 Tom Tromey <tom@tromey.com>
4520 * ada-lang.c (ada_abs): New function.
4521 (ada_evaluate_subexp): Use it.
4523 2021-03-08 Tom Tromey <tom@tromey.com>
4525 * ada-lang.c (ada_atr_size): New function.
4526 (ada_evaluate_subexp): Use it.
4528 2021-03-08 Tom Tromey <tom@tromey.com>
4530 * ada-lang.c (ada_atr_tag): New function.
4531 (ada_evaluate_subexp): Use it.
4533 2021-03-08 Tom Tromey <tom@tromey.com>
4535 * ada-lang.c (ada_unop_in_range): New function.
4536 (ada_evaluate_subexp): Use it.
4538 2021-03-08 Tom Tromey <tom@tromey.com>
4540 * ada-lang.c (ada_unop_neg): New function.
4541 (ada_evaluate_subexp): Use it.
4543 2021-03-08 Tom Tromey <tom@tromey.com>
4545 * ada-lang.c (eval_ternop_in_range): New function.
4546 (ada_evaluate_subexp): Use it.
4548 2021-03-08 Tom Tromey <tom@tromey.com>
4550 * opencl-lang.c (eval_opencl_assign): New function.
4551 (evaluate_subexp_opencl): Use it.
4553 2021-03-08 Tom Tromey <tom@tromey.com>
4555 * eval.c (eval_op_objc_msgcall): New function.
4556 (evaluate_subexp_standard): Use it.
4558 2021-03-08 Tom Tromey <tom@tromey.com>
4560 * eval.c (eval_binop_assign_modify): New function.
4561 (evaluate_subexp_standard): Use it.
4563 2021-03-08 Tom Tromey <tom@tromey.com>
4565 * m2-lang.c (eval_op_m2_subscript): New function.
4566 (evaluate_subexp_modula2): Use it.
4568 2021-03-08 Tom Tromey <tom@tromey.com>
4570 * m2-lang.c (eval_op_m2_high): New function.
4571 (evaluate_subexp_modula2): Use it.
4573 2021-03-08 Tom Tromey <tom@tromey.com>
4575 * eval.c (evaluate_subexp_for_address_base): New function.
4576 (evaluate_subexp_for_address): Use it.
4577 (evaluate_subexp_for_sizeof_base): New function.
4578 (evaluate_subexp_for_sizeof): Use it.
4580 2021-03-08 Tom Tromey <tom@tromey.com>
4582 * rust-lang.c (eval_op_rust_structop): New function.
4583 (rust_evaluate_subexp): Use it.
4585 2021-03-08 Tom Tromey <tom@tromey.com>
4587 * rust-lang.c (eval_op_rust_struct_anon): New function.
4588 (rust_evaluate_subexp): Use it.
4590 2021-03-08 Tom Tromey <tom@tromey.com>
4592 * rust-lang.c (eval_op_rust_array): New function.
4593 (rust_evaluate_subexp): Use it.
4595 2021-03-08 Tom Tromey <tom@tromey.com>
4597 * rust-lang.c (eval_op_rust_complement): New function.
4598 (rust_evaluate_subexp): Use it.
4600 2021-03-08 Tom Tromey <tom@tromey.com>
4602 * rust-lang.c (eval_op_rust_ind): New function.
4603 (rust_evaluate_subexp): Use it.
4605 2021-03-08 Tom Tromey <tom@tromey.com>
4607 * rust-lang.c (rust_subscript): Change parameters.
4608 (rust_evaluate_subexp): Update.
4610 2021-03-08 Tom Tromey <tom@tromey.com>
4612 * rust-lang.c (rust_range): Change parameters.
4613 (rust_evaluate_subexp): Update.
4615 2021-03-08 Tom Tromey <tom@tromey.com>
4617 * f-lang.c (eval_op_f_allocated): New function.
4618 (evaluate_subexp_f): Use it.
4620 2021-03-08 Tom Tromey <tom@tromey.com>
4622 * f-lang.c (fortran_require_array): New function.
4623 (evaluate_subexp_f): Use it.
4625 2021-03-08 Tom Tromey <tom@tromey.com>
4627 * f-lang.c (eval_op_f_kind): New function.
4628 (evaluate_subexp_f): Use it.
4630 2021-03-08 Tom Tromey <tom@tromey.com>
4632 * f-lang.c (eval_op_f_cmplx): New function.
4633 (evaluate_subexp_f): Use it.
4635 2021-03-08 Tom Tromey <tom@tromey.com>
4637 * f-lang.c (eval_op_f_modulo): New function.
4638 (evaluate_subexp_f): Use it.
4640 2021-03-08 Tom Tromey <tom@tromey.com>
4642 * f-lang.c (eval_op_f_floor): New function.
4643 (evaluate_subexp_f): Use it.
4645 2021-03-08 Tom Tromey <tom@tromey.com>
4647 * f-lang.c (eval_op_f_ceil): New function.
4648 (evaluate_subexp_f): Use it.
4650 2021-03-08 Tom Tromey <tom@tromey.com>
4652 * f-lang.c (eval_op_f_mod): New function.
4653 (evaluate_subexp_f): Use it.
4655 2021-03-08 Tom Tromey <tom@tromey.com>
4657 * f-lang.c (eval_op_f_abs): New function.
4658 (evaluate_subexp_f): Use it.
4660 2021-03-08 Tom Tromey <tom@tromey.com>
4662 * eval.c (eval_op_type): New function.
4663 (evaluate_subexp_standard): Use it.
4665 2021-03-08 Tom Tromey <tom@tromey.com>
4667 * eval.c (eval_op_postdec): New function.
4668 (evaluate_subexp_standard): Use it.
4670 2021-03-08 Tom Tromey <tom@tromey.com>
4672 * eval.c (eval_op_postinc): New function.
4673 (evaluate_subexp_standard): Use it.
4675 2021-03-08 Tom Tromey <tom@tromey.com>
4677 * eval.c (eval_op_predec): New file.
4678 (evaluate_subexp_standard): Use it.
4680 2021-03-08 Tom Tromey <tom@tromey.com>
4682 * eval.c (eval_op_preinc): New function.
4683 (evaluate_subexp_standard): Use it.
4685 2021-03-08 Tom Tromey <tom@tromey.com>
4687 * eval.c (eval_op_memval): New function.
4688 (evaluate_subexp_standard): Use it.
4690 2021-03-08 Tom Tromey <tom@tromey.com>
4692 * eval.c (eval_op_alignof): New function.
4693 (evaluate_subexp_standard): Use it.
4695 2021-03-08 Tom Tromey <tom@tromey.com>
4697 * eval.c (eval_op_ind): New function.
4698 (evaluate_subexp_standard): Use it.
4700 2021-03-08 Tom Tromey <tom@tromey.com>
4702 * eval.c (eval_op_lognot): New function.
4703 (evaluate_subexp_standard): Use it.
4705 2021-03-08 Tom Tromey <tom@tromey.com>
4707 * eval.c (eval_op_complement): New function.
4708 (evaluate_subexp_standard): Use it.
4710 2021-03-08 Tom Tromey <tom@tromey.com>
4712 * eval.c (eval_op_neg): New function.
4713 (evaluate_subexp_standard): Use it.
4715 2021-03-08 Tom Tromey <tom@tromey.com>
4717 * eval.c (eval_op_plus): New function.
4718 (evaluate_subexp_standard): Use it.
4720 2021-03-08 Tom Tromey <tom@tromey.com>
4722 * eval.c (eval_op_repeat): New function.
4723 (evaluate_subexp_standard): Use it.
4725 2021-03-08 Tom Tromey <tom@tromey.com>
4727 * eval.c (eval_op_leq): New function.
4728 (evaluate_subexp_standard): Use it.
4730 2021-03-08 Tom Tromey <tom@tromey.com>
4732 * eval.c (eval_op_geq): New function.
4733 (evaluate_subexp_standard): Use it.
4735 2021-03-08 Tom Tromey <tom@tromey.com>
4737 * eval.c (eval_op_gtr): New function.
4738 (evaluate_subexp_standard): Use it.
4740 2021-03-08 Tom Tromey <tom@tromey.com>
4742 * eval.c (eval_op_less): New function.
4743 (evaluate_subexp_standard): Use it.
4745 2021-03-08 Tom Tromey <tom@tromey.com>
4747 * eval.c (eval_op_notequal): New function.
4748 (evaluate_subexp_standard): Use it.
4750 2021-03-08 Tom Tromey <tom@tromey.com>
4752 * eval.c (eval_op_equal): New function.
4753 (evaluate_subexp_standard): Use it.
4755 2021-03-08 Tom Tromey <tom@tromey.com>
4757 * eval.c (eval_op_subscript): New function.
4758 (evaluate_subexp_standard): Use it.
4760 2021-03-08 Tom Tromey <tom@tromey.com>
4762 * eval.c (eval_op_binary): New function.
4763 (evaluate_subexp_standard): Use it.
4765 2021-03-08 Tom Tromey <tom@tromey.com>
4767 * eval.c (eval_op_sub): New function.
4768 (evaluate_subexp_standard): Use it.
4770 2021-03-08 Tom Tromey <tom@tromey.com>
4772 * eval.c (eval_op_add): New function.
4773 (evaluate_subexp_standard): Use it.
4775 2021-03-08 Tom Tromey <tom@tromey.com>
4777 * eval.c (eval_op_member): New function.
4778 (evaluate_subexp_standard): Use it.
4780 2021-03-08 Tom Tromey <tom@tromey.com>
4782 * eval.c (eval_op_structop_ptr): New function.
4783 (evaluate_subexp_standard): Use it.
4785 2021-03-08 Tom Tromey <tom@tromey.com>
4787 * eval.c (eval_op_structop_struct): New function.
4788 (evaluate_subexp_standard): Use it.
4790 2021-03-08 Tom Tromey <tom@tromey.com>
4792 * eval.c (eval_op_ternop): New function.
4793 (evaluate_subexp_standard): Use it.
4795 2021-03-08 Tom Tromey <tom@tromey.com>
4797 * eval.c (eval_op_concat): New function.
4798 (evaluate_subexp_standard): Use it.
4800 2021-03-08 Tom Tromey <tom@tromey.com>
4802 * eval.c (eval_op_objc_selector): New function.
4803 (evaluate_subexp_standard): Use it.
4805 2021-03-08 Tom Tromey <tom@tromey.com>
4807 * eval.c (eval_op_string): New function.
4808 (evaluate_subexp_standard): Use it.
4810 2021-03-08 Tom Tromey <tom@tromey.com>
4812 * eval.c (eval_op_register): New function.
4813 (evaluate_subexp_standard): Use it.
4815 2021-03-08 Tom Tromey <tom@tromey.com>
4817 * eval.c (eval_op_func_static_var): New function.
4818 (evaluate_subexp_standard): Use it.
4820 2021-03-08 Tom Tromey <tom@tromey.com>
4822 * eval.c (eval_op_var_msym_value): New function.
4823 (evaluate_subexp_standard): Use it.
4825 2021-03-08 Tom Tromey <tom@tromey.com>
4827 * eval.c (eval_op_var_entry_value): New function.
4828 (evaluate_subexp_standard): Use it.
4830 2021-03-08 Tom Tromey <tom@tromey.com>
4832 * eval.c (eval_op_scope): New function.
4833 (evaluate_subexp_standard): Use it.
4835 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4838 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4840 2021-03-06 Tom Tromey <tom@tromey.com>
4842 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4843 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4844 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4845 (locate_dwz_sections, dwz_search_other_debugdirs)
4846 (dwarf2_get_dwz_file): Move to dwz.c.
4847 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4849 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4850 (dwarf2_get_dwz_file): Move from read.c.
4852 2021-03-06 Tom Tromey <tom@tromey.com>
4854 * debuginfod-support.h: Include scoped_fd.h.
4856 2021-03-06 Tom Tromey <tom@tromey.com>
4858 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4859 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4860 (get_abbrev_section_for_cu, read_attribute_value)
4861 (get_debug_line_section): Update.
4862 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4864 2021-03-06 Tom Tromey <tom@tromey.com>
4866 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4868 * dwarf2/read.c (section_is_p): Remove.
4869 (dwarf2_per_bfd::locate_sections)
4870 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4871 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4872 (dwarf2_locate_common_dwp_sections)
4873 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4876 2021-03-06 Tom Tromey <tom@tromey.com>
4878 * xcoffread.c: Include sect-names.h.
4879 * symfile.h (struct dwarf2_section_names, struct
4880 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4881 * dwarf2/sect-names.h: New file, from symfile.h.
4882 * dwarf2/read.c: Include sect-names.h.
4884 2021-03-06 Tom Tromey <tom@tromey.com>
4886 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4887 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4888 (abbrev_table::read): Update.
4889 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4890 (struct abbrev_info): Reformat.
4891 <attrs>: Now an array.
4892 (struct abbrev_table) <alloc_abbrev>: Remove.
4894 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4896 * ctfread.c (ctf_psymtab_add_enums): New function.
4897 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4899 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4901 * ctfread.c (read_func_kind_type): Set up function arguments.
4903 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4904 Andrew Burgess <andrew.burgess@embecosm.com>
4906 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4908 (riscv_csrset): New static global.
4909 (riscv_update_csrmap): New function.
4910 (riscv_iterate_over_regset_sections): Process CSRs.
4912 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4914 * riscv-tdep.c (riscv_feature_name_csr): Define.
4915 (riscv_feature_name_cpu): Define.
4916 (riscv_feature_name_fpu): Define.
4917 (riscv_feature_name_virtual): Define.
4918 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4919 (riscv_freg_feature): Use riscv_feature_name_fpu.
4920 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4921 (riscv_csr_feature): Use riscv_feature_name_csr.
4922 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4924 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4925 Craig Blackmore <craig.blackmore@embecosm.com>
4927 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4928 (ALLDEPFILES): Add riscv-none-tdep.c.
4929 * configure: Regenerate.
4930 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4932 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4933 * elf-none-tdep.c: New file.
4934 * elf-none-tdep.h: New file.
4935 * riscv-none-tdep.c: New file.
4937 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4938 Andrew Burgess <andrew.burgess@embecosm.com>
4940 * corelow.c: Add 'xml-tdesc.h' include.
4941 (core_target::read_description): Load the target description from
4942 the core file when possible.
4943 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4945 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4946 (gcore_elf_make_tdesc_note): New function.
4947 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4948 * linux-tdep.c (linux_make_corefile_notes): Add target description
4951 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4953 * Makefile.in (SFILES): Add gcore-elf.c.
4954 (HFILES_NO_SRCDIR): Add gcore-elf.h
4955 * configure: Regenerate.
4956 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4958 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4959 (struct fbsd_collect_regset_section_cb_data): Delete.
4960 (fbsd_collect_regset_section_cb): Delete.
4961 (fbsd_collect_thread_registers): Delete.
4962 (struct fbsd_corefile_thread_data): Delete.
4963 (fbsd_corefile_thread): Delete.
4964 (fbsd_make_corefile_notes): Call
4965 gcore_elf_build_thread_register_notes instead of the now deleted
4967 * gcore-elf.c: New file, the content was moved here from
4968 linux-tdep.c, functions were renamed and given minor cleanup.
4969 * gcore-elf.h: New file.
4970 * gcore.c (gcore_find_signalled_thread): Moved here from
4971 linux-tdep.c and given a new name. Minor cleanups.
4972 * gcore.h (gcore_find_signalled_thread): Declare.
4973 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4974 (struct linux_collect_regset_section_cb_data): Delete.
4975 (linux_collect_regset_section_cb): Delete.
4976 (linux_collect_thread_registers): Delete.
4977 (linux_corefile_thread): Call
4978 gcore_elf_build_thread_register_notes.
4979 (find_signalled_thread): Delete.
4980 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4982 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4985 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4986 process_stratum_target parameter,
4987 sparc_store_inferior_registers): update callers.
4988 * sparc-nat.c (sparc_fetch_inferior_registers,
4989 sparc_store_inferior_registers): Add process_stratum_target
4990 parameter. Switch current thread before calling
4991 sparc_supply_gregset / sparc_collect_rwindow.
4992 (sparc_store_inferior_registers): Likewise.
4993 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4994 (sparc32obsd_collect_uthread): Likewise.
4995 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4997 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4998 sparc64obsd_supply_uthread): Add assertion.
5000 2021-03-04 Tom Tromey <tromey@adacore.com>
5002 * ada-lang.c (struct match_data) <found_sym>: Now bool.
5003 (aux_add_nonlocal_symbols): Update.
5004 (ada_add_block_symbols): Change "found_sym" to bool.
5006 2021-03-03 Tom Tromey <tromey@adacore.com>
5008 * ada-lang.c (ada_resolve_function): Update comment.
5009 (is_nonfunction, add_symbols_from_enclosing_procs)
5010 (remove_extra_symbols): Likewise.
5011 (struct match_data): Add constructor, initializers.
5012 (add_nonlocal_symbols): Remove memset.
5013 (aux_add_nonlocal_symbols): Update comment.
5014 (ada_add_block_renamings, add_nonlocal_symbols)
5015 (ada_add_all_symbols): Likewise.
5016 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
5018 2021-03-02 Tom Tromey <tromey@adacore.com>
5020 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
5021 (cast_to_gnat_encoded_fixed_point_type): Remove.
5022 (ada_value_cast, ada_evaluate_subexp): Update.
5023 (gnat_encoded_fixed_point_type_info)
5024 (ada_is_gnat_encoded_fixed_point_type)
5025 (gnat_encoded_fixed_point_delta)
5026 (gnat_encoded_fixed_point_scaling_factor): Remove.
5027 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
5028 (gnat_encoded_fixed_point_delta)
5029 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
5030 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
5031 (ada_print_type): Update.
5032 * ada-valprint.c (ada_value_print_num): Update.
5033 * dwarf2/read.c (ada_get_gnat_encoded_number)
5034 (ada_get_gnat_encoded_ratio): New functions.
5035 (finish_fixed_point_type): Use them. Add parameters.
5036 (GNAT_FIXED_POINT_SUFFIX): New define.
5037 (gnat_encoded_fixed_point_type_info): New function.
5038 (read_base_type): Handle gnat encodings.
5040 2021-03-02 Tom Tromey <tromey@adacore.com>
5042 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
5043 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
5045 (GROW_VECT): Remove.
5046 (grow_vect): Remove.
5048 2021-03-02 Tom Tromey <tromey@adacore.com>
5050 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
5051 * ada-lang.c (resolve_subexp): Update.
5052 (ada_resolve_function): Accept a vector.
5053 (is_nonfunction, add_defn_to_vec)
5054 (add_symbols_from_enclosing_procs): Likewise.
5055 (num_defns_collected, defns_collected): Remove.
5056 (remove_extra_symbols): Return a vector.
5057 (remove_irrelevant_renamings): Return void.
5058 (ada_add_local_symbols): Accept a vector.
5059 (struct match_data) <obstackp>: Remove.
5060 <resultp>: New member.
5061 (aux_add_nonlocal_symbols): Update.
5062 (ada_add_block_renamings, add_nonlocal_symbols)
5063 (ada_add_all_symbols): Accept a vector.
5064 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
5066 (ada_lookup_symbol): Update.
5067 (ada_add_block_symbols): Accept a vector.
5068 (get_var_value, iterate_over_symbols): Update.
5069 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
5072 2021-03-02 Tom Tromey <tromey@adacore.com>
5074 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
5076 2021-03-02 Tom Tromey <tromey@adacore.com>
5078 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
5081 (ada_pspace_data): Remove destructor.
5082 <sym_cache>: Now a unique_ptr.
5083 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
5084 (ada_get_symbol_cache): Use 'new'.
5085 (ada_clear_symbol_cache): Rewrite.
5087 2021-03-02 Tom Tromey <tromey@adacore.com>
5089 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
5092 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
5095 * source.c (add_path): Skip empty dirnames.
5097 2021-02-25 Kevin Buettner <kevinb@redhat.com>
5099 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
5100 include order for <sys/ptrace.h> and <asm/ptrace.h>.
5102 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
5105 * target.c (target_mourn_inferior): Only compare pids in
5106 target_mourn_inferior.
5108 2021-02-25 Jan Matyas <jmatyas@codasip.com>
5111 * remote.c (remote_target::start_remote): Ensure the single
5112 thread, automatically added for remote targets without the
5113 concept of threading, is initially in set to the "resumed"
5115 * remote.c (remote_target::add_current_inferior_and_thread):
5116 Add return value - return the main thread.
5118 2021-02-25 Jan Vrany <jan.vrany@labware.com>
5120 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
5121 (mi_tsv_created): Likewise.
5122 (mi_tsv_deleted): Likewise.
5124 2021-02-25 Tom de Vries <tdevries@suse.de>
5127 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
5128 section_kind for &dwo_file->sections.info.
5130 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5133 * f-lang.c (fortran_argument_convert): Delete declaration.
5134 (fortran_prepare_argument): New function.
5135 (evaluate_subexp_f): Move logic to new function
5136 fortran_prepare_argument.
5138 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5140 * f-exp.y (f77_keywords): Add 'associated'.
5141 * f-lang.c (fortran_associated): New function.
5142 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
5143 (operator_length_f): Likewise.
5144 (print_unop_or_binop_subexp_f): New function.
5145 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
5146 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
5147 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
5148 (operator_check_f): Likewise.
5149 * std-operator.def: Add FORTRAN_ASSOCIATED.
5151 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5153 * f-exp.y (fortran_operators): Add ".xor.".
5155 2021-02-24 Tom de Vries <tdevries@suse.de>
5158 * dwarf2/attribute.c (attribute::form_is_signed): New function
5160 * dwarf2/attribute.h (attribute::as_signed): ... here.
5161 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5162 (attribute::form_is_signed): Declare.
5163 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5164 for DW_AT_decl_file.
5166 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5168 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5169 order for <sys/ptrace.h> and <asm/ptrace.h>.
5171 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5173 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5176 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5178 * exec.c (set_section_command): Move variable declarations into
5179 the function body, and use std::string instead of a fixed size
5182 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5184 * exec.c (exec_target::get_section_table): Delete member function.
5185 (section_table_read_available_memory): Use current_top_target, not
5186 just the exec_ops target.
5187 * target-delegates.c: Regenerate.
5188 * target.c (default_get_section_table): New function.
5189 * target.h (target_ops::get_section_table): Change default
5190 behaviour to call default_get_section_table.
5191 (default_get_section_table): Declare.
5193 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5195 * exec.c (exec_target::close): Call new clear_target_sections
5197 (program_space::add_target_sections): Update name of member
5199 (program_space::add_target_sections): Update name of member
5201 (program_space::remove_target_sections): Likewise.
5202 (exec_one_fork): Use new target_sections member function.
5203 (exec_target::get_section_table): Likewise.
5204 (exec_target::files_info): Likewise.
5205 (set_section_command): Likewise.
5206 (exec_set_section_address): Likewise.
5207 (exec_target::has_memory): Use new target_sections member
5209 * progspace.h (program_space::clear_target_sections): New member
5211 (program_space::target_sections): Rename member variable to
5212 m_target_sections, replace with a new member function.
5213 (program_space::m_target_sections): New member variable.
5214 * solib-dsbt.c (scan_dyntag): Use new member function.
5215 * solib-svr4.c (scan_dyntag): Likewise.
5217 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5219 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5221 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5222 (section_table_read_available_memory): Make local const.
5223 (exec_target::xfer_partial): Make local const.
5224 (print_section_info): Make parameter const.
5225 * gdb/exec.h (print_section_info): Likewise.
5226 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5228 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5230 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5232 * gdb/s390-tdep.c (s390_load): Likewise.
5233 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5234 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5235 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5237 (target_debug_print_const_target_section_table_p): ...this.
5238 * gdb/target-delegates.c: Regenerate.
5239 * gdb/target.c (target_get_section_table): Make return type const.
5240 (target_section_by_addr): Likewise. Also make some locals const.
5241 (memory_xfer_partial_1): Make some locals const.
5242 * gdb/target.h (struct target_ops) <get_section_table>: Make
5244 (target_section_by_addr): Likewise.
5245 (target_get_section_table): Likewise.
5247 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5249 * NEWS: Mention new 'maint info target-sections' command.
5250 * maint.c (maintenance_info_target_sections): New function.
5251 (_initialize_maint_cmds): Register new command.
5253 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5255 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5256 (riscv_features_from_bfd): ...this. Change parameter type to
5257 'bfd*', and update as required.
5258 (riscv_find_default_target_description): Update call to
5259 riscv_features_from_bfd. Select a default xlen based on
5261 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5263 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5265 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5266 dynamic types in UNOP_IND.
5268 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5271 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5273 (~dwarf2_queue_guard): Clear queue.
5274 (queue_comp_unit): Assert that queue is
5276 (process_queue): Adjust.
5277 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5279 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5282 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5283 to decide whether or not to enqueue it for expansion.
5284 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5285 after calling maybe_queue_comp_unit.
5287 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5289 * linux-nat.c (linux_nat_filter_event): Return void.
5291 2021-02-22 Tom Tromey <tromey@adacore.com>
5293 * solib-svr4.c (enable_break): Update.
5294 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5296 (target_bfd_reopen): Change parameter type.
5297 * bfd-target.h (target_bfd_reopen): Change parameter type.
5299 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5301 * thread.c (add_thread_silent): Add assert.
5302 (find_thread_ptid): Add assert.
5304 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5307 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5308 (target_unpush_up): Likewise.
5309 * procfs.c (procfs_target::attach): Push target early. Use
5310 target_unpush_up to unpush target in case of error.
5311 * target.h (struct target_unpusher): Move here.
5312 (target_unpush_up): Likewise.
5314 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5316 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5317 (which in turn includes <gnulib/config.h>) before include
5320 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5323 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5324 (decode_j_type_insn): Likewise.
5325 (decode_cj_type_insn): Likewise.
5326 (decode_b_type_insn): Likewise.
5329 2021-02-18 Tom Tromey <tom@tromey.com>
5331 * expression.h (struct expression) <evaluate>: Declare method.
5332 * eval.c (evaluate_subexp): Simplify.
5333 (expression::evaluate): New method.
5334 (evaluate_expression, evaluate_type): Use expression::evaluate.
5336 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5338 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5340 (ada_lookup_name_info): Likewise.
5342 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5344 * aclocal.m4: Regenerate.
5346 2021-02-12 Tom de Vries <tdevries@suse.de>
5349 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5350 (lin_thread_signals): New static var.
5351 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5353 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5354 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5356 * linux-thread-db.c (check_thread_signals): Use
5357 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5359 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5361 * f-exp.y (f77_keywords): Add allocated.
5362 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5363 (operator_length_f): Likewise.
5364 (print_subexp_f): Likewise.
5365 (dump_subexp_body_f): Likewise.
5366 (operator_check_f): Likewise.
5367 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5369 2021-02-11 Tom de Vries <tdevries@suse.de>
5372 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5373 Return true for DW_FORM_strx.
5375 2021-02-11 Tom Tromey <tromey@adacore.com>
5378 * parse.c (write_exp_symbol_reference): Write sym.block.
5380 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5382 * NEWS: Mention changes to 'maint info sections'.
5383 * maint.c (match_substring): Return a bool, fix whitespace issue.
5384 (struct single_bfd_flag_info): New struct.
5385 (bfd_flag_info): New static global.
5386 (match_bfd_flags): Return a bool, use bfd_flag_info.
5387 (print_bfd_flags): Use bfd_flag_info.
5388 (maint_print_section_info): Delete trailing whitespace.
5389 (struct maint_info_sections_opts): New struct.
5390 (maint_info_sections_option_defs): New static global.
5391 (maint_info_sections_completer): New function.
5392 (maintenance_info_sections): Use option parsing mechanism.
5393 (_initialize_maint_cmds): Update command help text for 'maint info
5394 sections' and register a command completer.
5396 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5398 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5399 functionality merged into...
5400 (maint_print_all_sections): ...this new function.
5401 (maintenance_info_sections): Make use of maint_print_all_sections,
5402 allow all objects to be printed even where there's no executable.
5404 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5406 * breakpoint.c (resolve_sal_pc): Make use of
5407 bound_minimal_symbol::obj_section.
5408 * maint.c (maintenance_translate_address): Likewise.
5409 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5410 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5412 * printcmd.c (info_address_command): Make use of
5413 bound_minimal_symbol::obj_section.
5415 2021-02-11 Alan Modra <amodra@gmail.com>
5417 * arm-symbian-tdep.c: Delete.
5418 * NEWS: Mention arm-symbian removal.
5419 * Makefile.in: Remove arm-symbian-tdep entries.
5420 * configure.tgt: Remove arm*-*-symbianelf*.
5421 * doc/gdb.texinfo: Remove mention of SymbianOS.
5422 * osabi.c (gdb_osabi_names): Remove "Symbian".
5423 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5424 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5425 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5427 * testsuite/gdb.base/dup-sect.exp: Likewise.
5428 * testsuite/gdb.base/long_long.exp: Likewise.
5429 * testsuite/gdb.base/solib-weak.exp: Likewise.
5430 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5431 * testsuite/gdb.python/py-section-script.exp: Likewise.
5432 * testsuite/lib/dwarf.exp: Likewise.
5433 * testsuite/lib/gdb.exp: Likewise.
5435 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5437 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5438 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5439 (one_or_two_args): New pattern.
5440 (f77_keywords): Add lbound and ubound.
5441 * f-lang.c (fortran_bounds_all_dims): New function.
5442 (fortran_bounds_for_dimension): New function.
5443 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5444 (operator_length_f): Likewise.
5445 (print_subexp_f): Likewise.
5446 (dump_subexp_body_f): Likewise.
5447 (operator_check_f): Likewise.
5448 * std-operator.def (FORTRAN_LBOUND): Define.
5449 (FORTRAN_UBOUND): Define.
5451 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5453 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5454 and set_section_index member functions where appropriate.
5455 * coffread.c (coff_symtab_read): Likewise.
5456 (process_coff_symbol): Likewise.
5457 * ctfread.c (set_symbol_address): Likewise.
5458 * dwarf2/read.c (add_partial_symbol): Likewise.
5459 (var_decode_location): Likewise.
5460 * language.c: Likewise.
5461 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5462 (compact_minimal_symbols): Likewise.
5463 (minimal_symbol_upper_bound): Likewise.
5464 * objfiles.c (relocate_one_symbol): Likewise.
5465 * psympriv.h (partial_symbol::obj_section): Likewise.
5466 (partial_symbol::address): Likewise.
5467 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5468 * stabsread.c (scan_file_globals): Likewise.
5469 * symmisc.c (dump_msymbols): Likewise.
5470 * symtab.c (general_symbol_info::obj_section): Likewise.
5471 (fixup_section): Likewise.
5472 (get_msymbol_address): Likewise.
5473 * symtab.h (general_symbol_info::section): Rename to...
5474 (general_symbol_info::m_section): ...this.
5475 (general_symbol_info::set_section_index): New member function.
5476 (general_symbol_info::section_index): Likewise.
5477 (SYMBOL_SECTION): Delete.
5478 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5479 set_section_index member functions where appropriate.
5480 (MSYMBOL_SECTION): Delete.
5481 (symbol::symbol): Update to initialize 'm_section'.
5482 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5483 (process_xcoff_symbol): Likewise.
5485 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5487 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5488 MSYMBOL_OBJ_SECTION.
5489 * findvar.c (language_defn::read_var_value): Likewise.
5490 * infcmd.c (jump_command): Likewise.
5491 * linespec.c (minsym_found): Likewise.
5492 * maint.c (maintenance_translate_address): Likewise.
5493 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5494 (minimal_symbol_upper_bound): Likewise.
5495 * parse.c (find_minsym_type_and_address): Likewise.
5496 (operator_check_standard): Likewise.
5497 * printcmd.c (info_address_command): Likewise.
5498 * symmisc.c (dump_msymbols): Likewise.
5499 (print_symbol): Likewise.
5500 * symtab.c (general_symbol_info::obj_section): Define new
5502 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5503 (find_pc_sect_compunit_symtab): Likewise.
5504 (find_function_start_sal): Likewise.
5505 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5506 MSYMBOL_OBJ_SECTION.
5507 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5509 (SYMBOL_OBJ_SECTION): Delete.
5510 (MSYMBOL_OBJ_SECTION): Delete.
5512 2021-02-09 Tom Tromey <tom@tromey.com>
5514 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5516 2021-02-09 Tom de Vries <tdevries@suse.de>
5519 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5520 construct an array type. Add assert to ensure that element_type is
5523 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5525 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5526 (gcore_collect_regset_section_cb): Delete.
5527 (gcore_collect_thread_registers): Delete.
5528 (gcore_build_thread_register_notes): Delete.
5529 (gcore_find_signalled_thread): Delete.
5530 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5531 'gdbarch' and 'thread_info' declarations.
5532 (gcore_build_thread_register_notes): Delete declaration.
5533 (gcore_find_signalled_thread): Likewise.
5534 * fbsd-tdep.c: Remove 'gcore.h' include.
5535 (struct fbsd_collect_regset_section_cb_data): New struct.
5536 (fbsd_collect_regset_section_cb): New function.
5537 (fbsd_collect_thread_registers): New function.
5538 (struct fbsd_corefile_thread_data): New struct.
5539 (fbsd_corefile_thread): New function.
5540 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5541 * linux-tdep.c: Remove 'gcore.h' include.
5542 (struct linux_collect_regset_section_cb_data): New struct.
5543 (linux_collect_regset_section_cb): New function.
5544 (linux_collect_thread_registers): New function.
5545 (linux_corefile_thread): Call Linux specific code.
5546 (find_signalled_thread): New function.
5547 (linux_make_corefile_notes): Call find_signalled_thread.
5549 2021-02-09 Tom Tromey <tromey@adacore.com>
5551 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5553 * value.c (value_contents_copy_raw): Now static.
5554 * value.h (value_contents_copy_raw): Don't declare.
5556 2021-02-09 Tom Tromey <tromey@adacore.com>
5558 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5561 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5564 * arc-linux-tdep.c (handle_atomic_sequence): New.
5565 (arc_linux_software_single_step): Call handle_atomic_sequence().
5567 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5569 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5571 (REQUIRE_WINDOW): Call is_valid member function.
5572 (REQUIRE_WINDOW_FOR_SETTER): New define.
5573 (gdbpy_tui_is_valid): Call is_valid member function.
5574 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5575 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5577 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5578 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5581 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5583 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5584 for the title is not nullptr.
5586 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5588 * tui-layout.c (saved_tui_windows): Delete.
5589 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5590 call new get_windows member function instead.
5591 (tui_get_window_by_name): Check in tui_windows.
5592 (tui_layout_window::apply): Don't add to tui_windows.
5593 * tui-layout.h (tui_layout_base::get_windows): New member function.
5594 (tui_layout_window::get_windows): Likewise.
5595 (tui_layout_split::get_windows): Likewise.
5597 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5599 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5600 of the window objects.
5602 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5604 * python/python.c (gdbpy_print_stack): Reformat an error message.
5606 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5608 * tui/tui-interp.c (tui_command_line_handler): New function.
5609 (tui_interp::resume): Register tui_command_line_handler as the
5611 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5613 (tui_getc_1): Delete handling of '\n' and '\r'.
5614 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5616 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5618 * tui/tui-regs.c (tui_data_window::display_registers_from):
5619 Mark invisible register sub windows.
5620 (tui_data_window::check_register_values): Ignore invisible
5621 register sub windows.
5623 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5625 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5626 n_spaces with a negative value.
5628 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5630 * tui/tui-regs.c (tui_data_window::display_registers_from):
5631 Add refresh_window call.
5633 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5635 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5637 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5639 * symmisc.c (std_in, std_out, std_err): Remove.
5640 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5642 2021-02-05 Tom de Vries <tdevries@suse.de>
5644 PR breakpoints/27330
5645 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5646 glibc object file has debug info.
5648 2021-02-05 Tom de Vries <tdevries@suse.de>
5651 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5653 2021-02-05 Tom de Vries <tdevries@suse.de>
5655 PR breakpoints/27313
5656 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5659 2021-02-05 Tom Tromey <tom@tromey.com>
5661 * compile/compile-c-support.c (get_compile_context)
5662 (c_get_compile_context, cplus_get_compile_context): Change return
5664 * language.c (language_defn::get_compile_instance): New method.
5665 * language.h (language_defn::get_compile_instance): Change return
5666 type. No longer inline.
5667 * c-lang.c (c_language::get_compile_instance): Change return type.
5668 (cplus_language::get_compile_instance): Change return type.
5669 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5671 * compile/compile.c (compile_to_object): Update.
5673 2021-02-05 Tom Tromey <tom@tromey.com>
5675 * parser-defs.h (write_exp_symbol_reference): Declare.
5676 * parse.c (write_exp_symbol_reference): New function.
5677 * p-exp.y (variable): Use write_exp_symbol_reference.
5678 * m2-exp.y (variable): Use write_exp_symbol_reference.
5679 * f-exp.y (variable): Use write_exp_symbol_reference.
5680 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5681 * c-exp.y (variable): Use write_exp_symbol_reference.
5683 2021-02-05 Tom de Vries <tdevries@suse.de>
5686 * valarith.c (complex_binop): Throw an error if complex type can't
5689 2021-02-05 Tom de Vries <tdevries@suse.de>
5692 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5695 2021-02-05 Tom de Vries <tdevries@suse.de>
5697 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5699 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5701 * configure.tgt (riscv*-*-*): Set gdb_sim.
5703 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5705 * target.c (target_is_non_stop_p): Return bool.
5706 * target.h (target_is_non_stop_p): Return bool.
5708 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5710 * record-full.c (record_full_async_inferior_event_handler):
5711 Don't clear async event handler.
5712 (record_full_base_target::wait): Clear async event handler at
5715 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5717 * record-btrace.c (record_btrace_handle_async_inferior_event):
5718 Don't clear async event handler.
5719 (record_btrace_target::wait): Clear async event handler at
5722 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5724 * remote.c (remote_target::wait): Clear async event handler at
5725 beginning, mark if needed at the end.
5726 (remote_async_inferior_event_handler): Don't set or clear async
5729 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5731 * async-event.h (async_event_handler_func): Add documentation.
5732 * async-event.c (check_async_event_handlers): Don't clear
5733 async_event_handler ready flag.
5734 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5736 * record-btrace.c (record_btrace_handle_async_inferior_event):
5738 * record-full.c (record_full_async_inferior_event_handler):
5740 * remote-notif.c (remote_async_get_pending_events_handler):
5742 * remote.c (remote_async_inferior_event_handler): Likewise.
5744 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5746 * infrun.c (handle_inferior_event): Move stop_soon variable to
5749 2021-02-03 Pedro Alves <pedro@palves.net>
5751 * infcmd.c (detach_command): Hold strong reference to target, and
5752 if all-stop on entry, restart threads on exit.
5753 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5754 (restart_stepped_thread): ... this new function. Also handle
5756 (restart_after_all_stop_detach): New function.
5757 * infrun.h (restart_after_all_stop_detach): Declare.
5759 2021-02-03 Pedro Alves <pedro@palves.net>
5761 * infrun.c (struct step_over_info): Initialize fields.
5762 (prepare_for_detach): Handle ongoing in-line step over.
5764 2021-02-03 Pedro Alves <pedro@palves.net>
5766 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5768 * remote.c (remote_target::remote_detach_1): ... and here ...
5769 * target.c (target_detach): ... instead of here.
5770 * target.h (target_ops::detach): Add comment.
5772 2021-02-03 Pedro Alves <pedro@palves.net>
5774 * infrun.c (struct wait_one_event): Move higher up.
5775 (prepare_for_detach): Abort in-progress displaced steps instead of
5776 letting them complete.
5777 (handle_one): If the inferior is detaching, don't add the thread
5778 back to the global step-over chain.
5779 (restart_threads): Don't restart threads if detaching.
5780 (handle_signal_stop): Remove inferior::detaching reference.
5782 2021-02-03 Pedro Alves <pedro@palves.net>
5784 * infrun.c (prepare_for_detach): Don't release scoped_restore
5787 2021-02-03 Pedro Alves <pedro@palves.net>
5789 * infrun.c (handle_one): New function, factored out from ...
5790 (stop_all_threads): ... here.
5792 2021-02-03 Pedro Alves <pedro@palves.net>
5794 * remote.c (remote_notif_stop_ack): Don't error out on
5795 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5796 (remote_target::discard_pending_stop_replies): Don't delete
5797 in-flight notification; instead, clear its contents.
5799 2021-02-03 Pedro Alves <pedro@palves.net>
5801 * remote.c (extended_remote_target::attach): Set target async in
5802 the target-non-stop path too.
5804 2021-02-03 Pedro Alves <pedro@palves.net>
5807 * infrun.c (handle_signal_stop): Move main context_switch call
5808 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5810 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5812 * NEWS (Changed commands): Add entry for the behavior change of
5813 the inferior command.
5814 * inferior.c (inferior_command): When no argument is given to the
5815 inferior command, display info about the currently selected
5818 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5820 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5822 (read_attribute_reprocess): Adjust.
5824 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5826 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5827 <gnu_ranges_base>: ... this...
5828 <rnglists_base>: ... and this.
5829 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5830 <gnu_ranges_base>: ... this...
5831 <rnglists_base>: ... and this.
5832 (read_cutu_die_from_dwo): Adjust
5833 (dwarf2_get_pc_bounds): Adjust
5834 (dwarf2_record_block_ranges): Adjust.
5835 (read_full_die_1): Adjust
5836 (partial_die_info::read): Adjust.
5837 (read_rnglist_index): Adjust.
5839 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5842 * dwarf2/read.c (read_loclists_rnglists_header): Add
5843 header_offset parameter and use it.
5844 (read_loclist_index): Read header of the current contribution,
5845 not the one at the beginning of the section.
5846 (read_rnglist_index): Likewise.
5848 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5851 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5852 requires_reprocessing flag.
5853 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5855 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5856 and DW_FORM_loclistx.
5857 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5858 instead of set_address for DW_FORM_loclistx and
5861 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5863 * dwarf2/read.c (read_loclist_index): Remove bound check for
5865 (read_rnglist_index): Likewise.
5867 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5869 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5872 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5874 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5876 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5878 * dwarf2/read.c (read_loclist_index): Change complaints into
5881 2021-02-02 Tom de Vries <tdevries@suse.de>
5884 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5887 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5889 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5890 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5891 here from linux-tdep.c and given a new name. Minor cleanups.
5892 (gcore_collect_regset_section_cb): Likewise.
5893 (gcore_collect_thread_registers): Likewise.
5894 (gcore_build_thread_register_notes): Likewise.
5895 (gcore_find_signalled_thread): Likewise.
5896 * gcore.h (gcore_build_thread_register_notes): Declare.
5897 (gcore_find_signalled_thread): Declare.
5898 * fbsd-tdep.c: Add 'gcore.h' include.
5899 (struct fbsd_collect_regset_section_cb_data): Delete.
5900 (fbsd_collect_regset_section_cb): Delete.
5901 (fbsd_collect_thread_registers): Delete.
5902 (struct fbsd_corefile_thread_data): Delete.
5903 (fbsd_corefile_thread): Delete.
5904 (fbsd_make_corefile_notes): Call
5905 gcore_build_thread_register_notes instead of the now deleted
5907 * linux-tdep.c: Add 'gcore.h' include.
5908 (struct linux_collect_regset_section_cb_data): Delete.
5909 (linux_collect_regset_section_cb): Delete.
5910 (linux_collect_thread_registers): Delete.
5911 (linux_corefile_thread): Call
5912 gcore_build_thread_register_notes.
5913 (find_signalled_thread): Delete.
5914 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5916 2021-01-29 Tom de Vries <tdevries@suse.de>
5918 PR breakpoints/26063
5919 * infrun.c (process_event_stop_test): Reset
5920 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5923 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5925 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5926 assert. Extend the header comment.
5928 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5930 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5931 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5932 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5933 (tui_locator_win_info_ptr): Delete declaration.
5934 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5935 (tui_disasm_window::set_contents): Fetch state from tui_location
5937 (tui_get_begin_asm_address): Likewise.
5938 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5940 (get_locator_window): Delete.
5941 (initialize_known_windows): Treat locator window just like all the
5943 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5944 (tui_source_window::set_contents): Fetch state from tui_location
5946 (tui_source_window::showing_source_p): Likewise.
5947 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5949 (tui_locator_win_info_ptr): Delete.
5950 (tui_locator_window::make_status_line): Fetch state from
5951 tui_location global.
5952 (tui_locator_window::rerender): Remove check of 'handle',
5953 reindent function body.
5954 (tui_locator_window::set_locator_fullname): Delete.
5955 (tui_locator_window::set_locator_info): Delete.
5956 (tui_update_locator_fullname): Delete.
5957 (tui_show_frame_info): Likewise.
5958 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5959 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5960 tui/tui-location.h and renamed to
5961 tui_location_tracker::set_location.
5962 (tui_locator_window::set_locator_fullname): Moved to
5963 tui/tui-location.h and renamed to
5964 tui_location_tracker::set_fullname.
5965 (tui_locator_window::full_name): Delete.
5966 (tui_locator_window::proc_name): Delete.
5967 (tui_locator_window::line_no): Delete.
5968 (tui_locator_window::addr): Delete.
5969 (tui_locator_window::gdbarch): Delete.
5970 (tui_update_locator_fullname): Delete declaration.
5971 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5973 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5974 (tui_display_main): Call function on tui_location directly.
5975 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5976 * tui/tui-location.c: New file.
5977 * tui/tui-location.h: New file.
5979 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5981 * gdbtypes.h (get_type_arch): Rename to...
5982 (struct type) <arch>: ... this, update all users.
5984 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5986 * gdbtypes.h (struct type) <arch>: Rename to...
5987 <arch_owner>: ... this, update all users.
5988 <objfile>: Rename to...
5989 <objfile_owner>: ... this, update all users.
5991 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5993 * gdbcmd.h (execute_command_to_string): Update comment.
5994 * top.c (execute_command_to_string): Update header comment.
5996 2021-01-28 Tom de Vries <tdevries@suse.de>
5998 PR breakpoints/27205
5999 * breakpoint.c (create_longjmp_master_breakpoint_probe)
6000 (create_longjmp_master_breakpoint_names): New function, factored out
6002 (create_longjmp_master_breakpoint): ... here. Only try to install
6003 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
6004 breakpoint in libc.so failed.
6006 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
6009 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
6010 unique_ptr is released when the wrapped pointer is kept for later
6013 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
6015 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
6016 BLR and BR instructions.
6017 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
6018 (enum aarch64_masks): New.
6020 2021-01-26 Tom Tromey <tromey@adacore.com>
6022 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
6023 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
6024 (windows_init_thread_list, windows_nat::handle_load_dll)
6025 (windows_nat::handle_unload_dll, windows_nat_target::resume)
6026 (windows_nat_target::resume)
6027 (windows_nat_target::get_windows_debug_event)
6028 (windows_nat_target::interrupt, windows_xfer_memory)
6029 (windows_nat_target::close): Update.
6030 * nat/windows-nat.c (DEBUG_EVENTS): Use
6031 debug_prefixed_printf_cond.
6032 (matching_pending_stop, fetch_pending_stop)
6033 (continue_last_debug_event): Update.
6035 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
6037 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
6038 elfcore_write_file_note.
6040 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
6042 * arc-tdep.c (arc_add_reggroups): New function.
6043 (arc_gdbarch_init): Call arc_add_reggroups.
6045 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
6047 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
6049 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
6050 Simon Marchi <simon.marchi@polymtl.ca>
6051 Tom de Vries <tdevries@suse.de>
6053 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
6056 2021-01-25 Tom Tromey <tromey@adacore.com>
6058 * dwarf2/read.c (get_mpz): New function.
6059 (get_dwarf2_rational_constant): Use it.
6061 2021-01-25 Tom Tromey <tromey@adacore.com>
6063 * ada-lang.c (resolve_subexp): Handle array context.
6065 2021-01-23 Tom Tromey <tom@tromey.com>
6068 * compile/compile-loc2c.c (note_register): New function.
6069 (pushf_register_address, pushf_register): Use it.
6071 2021-01-23 Tom Tromey <tom@tromey.com>
6073 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
6074 Change type of "registers_used".
6075 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
6076 * dwarf2/loc.c (dwarf2_compile_property_to_c)
6077 (locexpr_generate_c_location, loclist_generate_c_location): Change
6078 type of "registers_used".
6079 * compile/compile.h (compile_dwarf_expr_to_c)
6080 (compile_dwarf_bounds_to_c): Update.
6081 * compile/compile-loc2c.c (pushf_register_address)
6082 (pushf_register, do_compile_dwarf_expr_to_c)
6083 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
6084 of "registers_used".
6085 * compile/compile-c.h (generate_c_for_variable_locations):
6087 * compile/compile-c-symbols.c (generate_vla_size)
6088 (generate_c_for_for_one_variable): Change type of
6090 (generate_c_for_variable_locations): Return std::vector.
6091 * compile/compile-c-support.c (generate_register_struct): Change
6092 type of "registers_used".
6095 2021-01-23 Tom Tromey <tom@tromey.com>
6097 * compile/compile-internal.h (class compile_instance)
6098 <set_arguments>: Change return type.
6099 * compile/compile.c (compile_to_object): Remove call to reset.
6100 (compile_instance::set_arguments): Change return type.
6102 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
6104 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
6105 * gdbtypes.h (struct type) <set_owner>: Add asserts.
6107 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
6109 * Makefile.in (SELFTESTS_SRCS): Add
6110 unittests/gdb_tilde_expand-selftests.c.
6111 * unittests/gdb_tilde_expand-selftests.c: New file.
6113 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6116 * NEWS: Mention new command.
6117 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
6118 (version_style): Define.
6119 (cli_style_option::cli_style_option): Add intensity parameter, and
6121 (_initialize_cli_style): Register version style set/show commands.
6122 * cli/cli-style.h (cli_style_option): Add intensity parameter.
6123 (version_style): Declare.
6124 * top.c (print_gdb_version): Use version_stype, and styled_string
6125 to print the GDB version string.
6127 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
6129 * utils.c (emit_style_escape): Only emit an escape sequence if the
6130 requested style is different than the current applied style.
6131 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
6132 current applied_style.
6133 (fputs_styled): Remove is_default check.
6134 (fputs_styled_unfiltered): Likewise.
6135 (vfprintf_styled_no_gdbfmt): Likewise.
6137 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6139 * remote.h (remote_debug_printf): New.
6140 (remote_debug_printf_nofunc): New.
6141 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
6142 * remote.c: Use above macros throughout file.
6144 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6146 * remote.h (remote_debug): Change to bool.
6147 * remote.c (remote_debug): Change to bool.
6148 (_initialize_remote): Adjust.
6150 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6152 * target.h (remote_debug): Move to...
6153 * remote.h (remote_debug): ... here.
6154 * top.c (remote_debug): Move to...
6155 * remote.c (remote_debug): ... here.
6156 * remote-sim.c: Include remote.h.
6158 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6160 * cli/cli-cmds.c (show_remote_debug): Remove.
6161 (show_remote_timeout): Remove.
6162 (_initialize_cli_cmds): Don't register commands.
6163 * remote.c (show_remote_debug): Move here.
6164 (show_remote_timeout): Move here.
6165 (_initialize_remote): Register commands.
6167 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6169 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6170 type::objfile method instead.
6172 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6174 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6175 use the type::is_objfile_owned method.
6177 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6179 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6180 (TYPE_OWNER): Remove.
6181 (TYPE_OBJFILE): Adjust.
6182 (struct main_type) <flag_objfile_owned>: Rename to...
6183 <m_flag_objfile_owned>: ... this.
6184 <owner>: Rename to...
6185 <m_owner>: ... this.
6186 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6188 (TYPE_ALLOC): Adjust.
6189 * gdbtypes.c (alloc_type): Adjust.
6190 (alloc_type_arch): Adjust.
6191 (alloc_type_copy): Adjust.
6192 (get_type_arch): Adjust.
6193 (smash_type): Adjust.
6194 (lookup_array_range_type): Adjust.
6195 (recursive_dump_type): Adjust.
6196 (copy_type_recursive): Adjust.
6197 * compile/compile-c-types.c (convert_func): Adjust.
6198 (convert_type_basic): Adjust.
6199 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6202 (language_arch_info::type_and_symbol::alloc_type_symbol):
6205 2021-01-21 Luis Machado <luis.machado@linaro.org>
6207 * coffread.c (enter_linenos): Passing string to complaint.
6208 * valops.c (value_assign): Make array view.
6210 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6212 * auto-load.h (debug_auto_load): Move here.
6213 (auto_load_debug_printf): New.
6214 * auto-load.c: Use auto_load_debug_printf.
6215 (debug_auto_load): Move to header.
6216 * linux-thread-db.c (try_thread_db_load): Use
6217 auto_load_debug_printf.
6218 * main.c (captured_main_1): Likewise.
6220 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6222 * f-valprint.c (f77_array_offset_tbl): Remove.
6224 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6226 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6228 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6230 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6233 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
6236 * python/py-breakpoint.c (bppy_get_location): Handle
6237 bp_hardware_breakpoint.
6238 (bppy_init): Likewise.
6239 (gdbpy_breakpoint_created): Likewise.
6241 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6243 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6245 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6247 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6248 (_initialize_gdb_bfd): Adjust.
6250 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6253 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6255 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6257 * dwarf2/read.c (follow_die_offset): Add logging.
6258 (dwarf2_per_objfile::age_comp_units): Add logging.
6260 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6262 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6263 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6264 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6265 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6266 * arm-tdep.c (struct frame_unwind): Make static.
6267 * auto-load.c (auto_load_safe_path_vec): Make static.
6268 * csky-tdep.c (csky_stub_unwind): Make static.
6269 * gdbarch.c (gdbarch_data_registry): Make static.
6270 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6271 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6272 * i386-tdep.c (i386_frame_setup_skip_insns,
6273 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6275 * infrun.c (observer_mode): Make static.
6276 * linux-nat.c (sigchld_action): Make static.
6277 * linux-thread-db.c (thread_db_list): Make static.
6278 * maint-test-options.c (maintenance_test_options_list):
6279 * mep-tdep.c (mep_csr_registers): Make static.
6280 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6281 (stats): Make static.
6282 * nat/linux-osdata.c (struct osdata_type): Make static.
6283 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6284 * progspace.c (last_program_space_num): Make static.
6285 * python/py-param.c (struct parm_constant): Remove struct type
6287 (parm_constants): Make static.
6288 * python/py-record-btrace.c (btpy_list_methods): Make static.
6289 * python/py-record.c (recpy_gap_type): Make static.
6290 * record.c (record_goto_cmdlist): Make static.
6291 * regcache.c (regcache_descr_handle): Make static.
6292 * registry.h (DEFINE_REGISTRY): Make definition static.
6293 * symmisc.c (std_in, std_out, std_err): Make static.
6294 * top.c (previous_saved_command_line): Make static.
6295 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6297 * unittests/command-def-selftests.c (nr_duplicates,
6298 nr_invalid_prefixcmd, lists): Make static.
6299 * unittests/observable-selftests.c (test_notification): Make
6301 * unittests/optional/assignment/1.cc (counter): Make static.
6302 * unittests/optional/assignment/2.cc (counter): Make static.
6303 * unittests/optional/assignment/3.cc (counter): Make static.
6304 * unittests/optional/assignment/4.cc (counter): Make static.
6305 * unittests/optional/assignment/5.cc (counter): Make static.
6306 * unittests/optional/assignment/6.cc (counter): Make static.
6308 2021-01-20 Joel Sherrill <joel@rtems.org>
6311 * remote.c (struct remote_thread_info) <resume_state>: Rename
6313 <get_resume_state>: ... this.
6314 (remote_target::resume): Adjust.
6315 (remote_target::commit_resume): Adjust.
6316 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6318 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6319 Tom Tromey <tom@tromey.com>
6321 * stap-probe.c (stap_parse_single_operand): Handle '!'
6323 (stap_parse_argument_conditionally): Likewise.
6324 Skip spaces after processing open-parenthesis sub-expression.
6325 (stap_parse_argument_1): Skip spaces after call to
6326 stap_parse_argument_conditionally.
6327 Handle case when right-side expression is a parenthesized
6329 Skip spaces after call to stap_parse_argument_1.
6331 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6333 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6335 2021-01-19 Luis Machado <luis.machado@linaro.org>
6337 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6338 memory and save data.
6339 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6340 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6341 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6342 (trad_frame_value_bytes_p): Remove.
6343 (trad_frame_reset_saved_regs): Adjust documentation.
6344 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6345 constructor and reset the state of the registers.
6346 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6347 (trad_frame_value_bytes_p, trad_frame_set_value)
6348 (trad_frame_set_realreg, trad_frame_set_addr)
6349 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6350 (trad_frame_set_reg_realreg): Update to call member function.
6351 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6352 (trad_frame_get_prev_register): Likewise.
6354 * aarch64-tdep.c (aarch64_analyze_prologue)
6355 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6356 (aarch64_prologue_prev_register): Update to use member functions.
6357 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6358 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6359 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6360 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6361 (arm_make_epilogue_frame_cache): Likewise.
6362 * avr-tdep.c (avr_frame_unwind_cache)
6363 (avr_frame_prev_register): Likewise.
6364 * cris-tdep.c (cris_scan_prologue): Likewise.
6365 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6366 * frv-tdep.c (frv_analyze_prologue): Likewise.
6367 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6368 * lm32-tdep.c (lm32_frame_cache): Likewise.
6369 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6370 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6371 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6372 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6373 (reset_saved_regs): Adjust to set realreg.
6374 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6375 call member functions.
6376 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6377 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6378 (s390_backchain_frame_unwind_cache): Likewise.
6379 * score-tdep.c (score7_analyze_prologue)
6380 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6381 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6382 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6383 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6384 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6385 * tilegx-tdep.c (tilegx_analyze_prologue)
6386 (tilegx_frame_cache): Likewise.
6387 * v850-tdep.c (v850_frame_cache): Likewise.
6388 * vax-tdep.c (vax_frame_cache): Likewise.
6390 2021-01-19 Luis Machado <luis.machado@linaro.org>
6392 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6394 (put_frame_register_bytes): Likewise.
6395 Adjust documentation.
6396 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6397 (safe_frame_unwind_memory): Likewise.
6398 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6399 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6401 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6402 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6403 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6404 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6405 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6406 * dwarf2/loc.c (rw_pieced_value): Likewise.
6407 * hppa-tdep.c (hppa_frame_cache): Likewise.
6408 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6409 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6410 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6411 (i386_linux_rt_sigtramp_start): Likewise.
6412 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6413 * i386-tdep.c (i386_register_to_value): Likewise.
6414 * i387-tdep.c (i387_register_to_value): Likewise.
6415 * ia64-tdep.c (ia64_register_to_value): Likewise.
6416 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6417 (m32r_linux_rt_sigtramp_start): Likewise.
6418 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6419 * m68k-tdep.c (m68k_register_to_value): Likewise.
6420 * mips-tdep.c (mips_register_to_value)
6421 (mips_value_to_register): Likewise.
6422 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6423 (ppcfbsd_sigtramp_frame_cache): Likewise.
6424 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6425 (ppcobsd_sigtramp_frame_cache): Likewise.
6426 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6427 (rs6000_register_to_value): Likewise.
6428 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6429 * tramp-frame.c (tramp_frame_start): Likewise.
6430 * valops.c (value_assign): Likewise.
6432 2021-01-19 Luis Machado <luis.machado@linaro.org>
6434 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6436 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6437 instead of buffer and size.
6438 (trad_frame_set_reg_value_bytes): Likewise.
6439 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6440 (trad_frame_set_value_bytes): Likewise.
6442 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6444 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6446 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6448 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6449 (riscv_fbsd_gregset): Use riscv_supply_regset.
6450 (riscv_fbsd_fpregset): Likewise.
6451 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6452 (riscv_linux_fregset): Likewise.
6453 * riscv-tdep.c (riscv_supply_regset): Define new function.
6454 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6456 2021-01-18 Tom de Vries <tdevries@suse.de>
6459 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6461 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6464 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6466 * remote.c (class remote_target) <remote_hostio_send_command,
6467 remote_hostio_parse_result>: Constify parameter.
6468 (remote_hostio_parse_result): Likewise.
6469 (remote_target::remote_hostio_send_command): Adjust.
6470 (remote_target::remote_hostio_pread_vFile): Adjust.
6471 (remote_target::fileio_readlink): Adjust.
6472 (remote_target::fileio_fstat): Adjust.
6474 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6476 * remote.c (remote_target::start_remote): Move wait_status to
6479 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6481 * remote.c (class remote_target):
6482 <add_current_inferior_and_thread>: Constify parameter.
6483 (stop_reply_extract_thread): Likewise.
6484 (remote_target::get_current_thread): Likewise.
6485 (remote_target::add_current_inferior_and_thread): Likewise.
6487 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6489 * remote.c (class remote_target)
6490 <remote_unpack_thread_info_response,
6491 parse_threadlist_response>: Constify parameter and/or return
6492 value and or local variable.
6493 (stub_unpack_int): Likewise.
6494 (unpack_nibble): Likewise.
6495 (unpack_byte): Likewise.
6496 (unpack_int): Likewise.
6497 (unpack_string): Likewise.
6498 (unpack_threadid): Likewise.
6499 (remote_target::remote_unpack_thread_info_response): Likewise.
6500 (remote_target::parse_threadlist_response): Likewise.
6502 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6504 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6506 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
6508 * MAINTAINERS (Write After Approval): Add myself.
6510 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6512 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6513 because is_trivially_default_constructible was first implemented with
6516 2021-01-14 Tom de Vries <tdevries@suse.de>
6518 PR breakpoints/27151
6519 * objfiles.h (in_plt_section): Handle .plt.sec.
6521 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6525 (remote_target::select_thread_for_ambiguous_stop_reply): New
6527 (remote_target::process_stop_reply): Call
6528 select_thread_for_ambiguous_stop_reply.
6530 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6532 * record-btrace.c (class record_btrace_target): Remove.
6533 (record_btrace_target::commit_resume): Remove.
6534 * record-full.c (class record_full_target): Remove.
6535 (record_full_target::commit_resume): Remove.
6537 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6539 * remote.c (enum class resume_state): New.
6540 (struct resumed_pending_vcont_info): New.
6541 (struct remote_thread_info) <resume_state, set_not_resumed,
6542 set_resumed_pending_vcont, resumed_pending_vcont_info,
6543 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6545 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6546 (remote_target::remote_add_thread): Adjust.
6547 (remote_target::process_initial_stop_replies): Adjust.
6548 (remote_target::resume): Adjust.
6549 (remote_target::commit_resume): Rely on state in
6550 remote_thread_info and not on tp->executing.
6551 (remote_target::process_stop_reply): Adjust.
6553 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6555 * arc-tdep.h (arc_debug_printf): New.
6556 * arc-tdep.c: Use arc_debug_printf.
6557 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6558 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6559 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6561 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6563 * arc-tdep.h (arc_debug): Change type to bool.
6564 * arc-tdep.c (arc_debug): Change type to bool.
6565 (arc_analyze_prologue): Adjust.
6566 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6567 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6569 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6571 * auto-load.c (auto_load_objfile_script_1): Use bool.
6572 (execute_script_contents): Use bool.
6574 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6576 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6578 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6580 * extension-priv.h (struct extension_language_script_ops)
6581 <auto_load_enabled>: Return bool.
6582 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6584 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6586 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6588 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6589 move comment to header.
6590 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6592 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6593 move comment to header.
6595 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6597 * auto-load.h (file_is_auto_load_safe): Change return type to
6598 bool, move comment here.
6599 * auto-load.c (file_is_auto_load_safe): Change return type and
6600 advice_printed to bool. Move comment to header.
6602 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6604 * jit.c (jit_debug_printf): New, use throughout file.
6606 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6608 * infrun.c (normal_stop): Fix indentation.
6610 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6612 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6614 * symfile.h: ... here.
6615 * symfile.c: Update doc.
6617 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6619 * target.h (baud_rate, serial_parity): Move declarations...
6620 * serial.h: ... here.
6621 * main.c: Include serial.h.
6622 * serial.c (baud_rate, serial_parity): Update doc.
6624 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6626 * top.c (pre_init_ui_hook): Remove.
6628 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6630 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6631 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6632 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6633 * features/aarch64-fpu.xml: Add bfloat16 type.
6635 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6637 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6639 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6641 * f-exp.y (dot_ops): Rename to...
6642 (fortran_operators): ...this. Add a header comment. Add symbol
6644 (yylex): Update to use fortran_operators not dot_ops. Remove
6645 special handling for '**', this is now included in
6648 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6650 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6651 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6652 * aarch64-tdep.c: Use aarch64_debug_printf.
6654 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6656 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6659 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6661 * jit.c (jit_debug): Change type to bool.
6662 (_initialize_jit): Adjust.
6664 2021-01-09 Tom Tromey <tom@tromey.com>
6667 * compile/compile.c (compile_to_object): Avoid crash when
6668 osabi_triplet_regexp returns NULL.
6670 2021-01-09 Tom Tromey <tom@tromey.com>
6672 * tracepoint.h (class collection_list) <append_exp>: Take a
6674 * tracepoint.c (collection_list::append_exp): Take a std::string.
6675 (encode_actions_1): Update.
6677 2021-01-08 Tom Tromey <tromey@adacore.com>
6679 * parse.c (parse_expression): Add void_context_p parameter. Use
6680 parse_exp_in_context.
6681 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6683 (print_command, call_command): Update.
6684 * expression.h (parse_expression): Add void_context_p parameter.
6686 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6688 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6689 for internalvar components that have a dynamic location.
6691 2021-01-08 Tom de Vries <tdevries@suse.de>
6694 * breakpoint.c (create_exception_master_breakpoint_probe)
6695 (create_exception_master_breakpoint_hook): Factor out
6697 (create_exception_master_breakpoint): ... here. Only try to install
6698 the master exception breakpoint in objfile.debug using the
6699 _Unwind_DebugHook method, if the install using probes in objfile
6702 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6704 * f-lang.c (fortran_value_subarray): Call value_from_component.
6706 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6708 * remote-sim.c: Include memory-map.h.
6709 (gdbsim_target): Define memory_map override.
6710 (gdbsim_target::memory_map): Define.
6712 2021-01-07 Tom Tromey <tromey@adacore.com>
6714 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6716 2021-01-07 Tom Tromey <tromey@adacore.com>
6718 * ada-lang.c (add_component_interval): Start loop using vector's
6721 2021-01-06 Tom Tromey <tromey@adacore.com>
6723 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6725 * valarith.c (fixed_point_binop): Handle multiplication
6726 and division specially.
6727 * valops.c (value_to_gdb_mpq): New function.
6728 (value_cast_to_fixed_point): Use it.
6730 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6732 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6733 Call wnoutrefresh instead of tui_win_info::refresh_window.
6735 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6737 * tui/tui-source.c (tui_source_window::show_line_number):
6738 Redraw second space after line number.
6740 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6743 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6744 Fix source pad size in prefresh.
6745 (tui_source_window_base::show_source_content): Grow source pad
6748 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6750 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6751 (bfin_frame_align): Use align_down.
6753 2021-01-04 Tom de Vries <tdevries@suse.de>
6755 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6756 terminators that do not terminate anything.
6758 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6760 * debug.c (debug_print_depth): New.
6761 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6762 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6763 * infrun.c (start_step_over): Use
6764 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6765 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6766 INFRUN_SCOPED_DEBUG_START_END.
6767 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6769 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6771 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6773 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6775 * utils.c (vfprintf_unfiltered): Print timestamp only when
6776 previous debug output ended with a newline.
6778 2021-01-04 Luis Machado <luis.machado@linaro.org>
6780 Update all users of trad_frame_saved_reg to use the new member
6783 Remote all struct keywords from declarations of trad_frame_saved_reg
6784 types, except on forward declarations.
6786 * aarch64-tdep.c: Update.
6787 * alpha-mdebug-tdep.c: Update.
6788 * alpha-tdep.c: Update.
6789 * arc-tdep.c: Update.
6790 * arm-tdep.c: Update.
6791 * avr-tdep.c: Update.
6792 * cris-tdep.c: Update.
6793 * csky-tdep.c: Update.
6794 * frv-tdep.c: Update.
6795 * hppa-linux-tdep.c: Update.
6796 * hppa-tdep.c: Update.
6797 * hppa-tdep.h: Update.
6798 * lm32-tdep.c: Update.
6799 * m32r-linux-tdep.c: Update.
6800 * m32r-tdep.c: Update.
6801 * m68hc11-tdep.c: Update.
6802 * mips-tdep.c: Update.
6803 * moxie-tdep.c: Update.
6804 * riscv-tdep.c: Update.
6805 * rs6000-tdep.c: Update.
6806 * s390-linux-tdep.c: Update.
6807 * s390-tdep.c: Update.
6808 * score-tdep.c: Update.
6809 * sparc-netbsd-tdep.c: Update.
6810 * sparc-sol2-tdep.c: Update.
6811 * sparc64-fbsd-tdep.c: Update.
6812 * sparc64-netbsd-tdep.c: Update.
6813 * sparc64-obsd-tdep.c: Update.
6814 * sparc64-sol2-tdep.c: Update.
6815 * tilegx-tdep.c: Update.
6816 * v850-tdep.c: Update.
6817 * vax-tdep.c: Update.
6819 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6820 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6822 * trad-frame.c: Update.
6823 Remove TF_REG_* enum.
6824 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6825 a trivially-constructible struct.
6826 (trad_frame_reset_saved_regs): Adjust to use member function.
6827 (trad_frame_value_p): Likewise.
6828 (trad_frame_addr_p): Likewise.
6829 (trad_frame_realreg_p): Likewise.
6830 (trad_frame_value_bytes_p): Likewise.
6831 (trad_frame_set_value): Likewise.
6832 (trad_frame_set_realreg): Likewise.
6833 (trad_frame_set_addr): Likewise.
6834 (trad_frame_set_unknown): Likewise.
6835 (trad_frame_set_value_bytes): Likewise.
6836 (trad_frame_get_prev_register): Likewise.
6837 * trad-frame.h: Update.
6838 (trad_frame_saved_reg_kind): New enum.
6839 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6840 <m_kind, m_reg>: New member fields.
6841 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6842 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6843 <is_addr, is_unknown, is_value_bytes>: New member functions.
6845 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6847 * target-float.c: Fix typos.
6849 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6851 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6853 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6855 * gdbarch.sh: Update copyright year range.
6857 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6859 Update copyright year range in copyright header of all GDB files.
6861 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6863 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6864 to the list of directories to update.
6866 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6868 * top.c (print_gdb_version): Update copyright year.
6870 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6872 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6874 For older changes see ChangeLog-2020.
6880 version-control: never