1 2021-06-03 Magne Hov <mhov@undo.io>
3 * MAINTAINERS (Write After Approval): Add Magne Hov.
5 2021-06-03 Hannes Domani <ssbssa@yahoo.de>
7 * python/py-symbol.c (gdbpy_initialize_symbols): Restore
8 gdb.SYMBOL_LABEL_DOMAIN constant.
10 2021-06-01 John Baldwin <jhb@FreeBSD.org>
12 * infrun.c (handle_inferior_event): Only call
13 gdbarch_displaced_step_restore_all_in_ptid if
14 gdbarch_supports_displaced_stepping is true.
16 2021-06-01 Tom Tromey <tromey@adacore.com>
18 * Makefile.in (all-data-directory): Remove.
19 (data-directory/Makefile): Remove.
21 2021-06-01 Tom Tromey <tromey@adacore.com>
24 * configure.ac: Use AS_HELP_STRING for enable-shared. Fix typo.
26 2021-06-01 Tom Tromey <tromey@adacore.com>
28 * silent-rules.mk (ECHO_CC): New variable.
30 2021-06-01 Tom Tromey <tromey@adacore.com>
32 * Makefile.in (SUBDIRS): Add testsuite.
33 (all): Don't exclude testsuite.
35 2021-06-01 Tom Tromey <tromey@adacore.com>
37 * configure.ac: Copy some code from testsuite/configure.ac.
38 (enable_libctf): Subst this, not ENABLE_LIBCTF.
41 2021-06-01 Tom de Vries <tdevries@suse.de>
44 * minsyms.c (msymbol_is_cold_clone): New function.
45 (msymbol_is_function): Use msymbol_is_cold_clone.
47 2021-06-01 Fredrik Hederstierna <fredrik@hederstierna.com>
48 Andrew Burgess <andrew.burgess@embecosm.com>
51 * Makefile.in (ALL_TARGET_OBS): Add arm-none-tdep.o.
52 (ALLDEPFILES): Add arm-none-tdep.c
53 * arm-none-tdep.c: New file.
54 * configure.tgt (arm*-*-*): Add arm-none-tdep.o to cpu_obs.
56 2021-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
57 Richard Bunt <richard.bunt@arm.com>
59 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy): Add
60 check for why the backtrace stopped.
62 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
64 * dwarf2/read.h (struct structured_type) <signatured_type>: New.
66 (struct dwarf2_per_bfd) <allocate_signatured_type>: Add
67 signature parameter, update all callers.
68 * dwar2/read.c (dwarf2_per_bfd::allocate_signatured_type): Add
71 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
73 * dwarf2/read.h (signatured_type_up): New, use where possible.
75 2021-05-31 Simon Marchi <simon.marchi@polymtl.ca>
77 * dwarf2/read.h (signatured_type, dwarf2_per_cu_data): Move up.
79 2021-05-30 Tom Tromey <tom@tromey.com>
81 * dwarf2/read.c (dwarf2_per_bfd::allocate_signatured_type): Set
83 (create_signatured_type_table_from_index)
84 (create_signatured_type_table_from_debug_names, add_type_unit)
85 (read_comp_units_from_section): Update.
87 2021-05-30 Tom Tromey <tom@tromey.com>
89 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs,
90 m_num_psymtabs>: Remove.
91 (resize_symtabs): Update.
92 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu)
93 (dwarf2_per_bfd::allocate_signatured_type): Update.
95 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
97 * Fix tab after space indentation issues throughout.
99 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
101 * Fix some indentation mistakes throughout.
103 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
105 * breakpoint.h (iterate_over_bp_locations): Remove. Update
106 users to use all_bp_locations.
107 (all_bp_locations): New.
108 * breakpoint.c (all_bp_locations): Make non-static.
109 (iterate_over_bp_locations): Remove.
111 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
113 * breakpoint.h (iterate_over_breakpoints): Remove. Update
114 callers to use all_breakpoints or all_breakpoints_safe.
115 (breakpoint_range, all_breakpoints, breakpoint_safe_range,
116 all_breakpoints_safe): Move here.
117 * breakpoint.c (all_breakpoints, all_breakpoints_safe): Make
119 (iterate_over_breakpoints): Remove.
120 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
122 * python/py-breakpoint.c (build_bp_list): Add comment, reverse
124 * guile/scm-breakpoint.c (bpscm_build_bp_list): Return void.
126 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
128 * breakpoint.c (get_first_locp_gte_addr): Remove.
129 (ALL_BP_LOCATIONS_AT_ADDR): Remove. Replace all uses with
130 all_bp_locations_at_addr.
131 (struct bp_locations_at_addr_range): New.
132 (all_bp_locations_at_addr): New.
133 (bp_locations_compare_addrs): New.
135 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
137 * breakpoint.c (ALL_BP_LOCATIONS): Remove, update users to use
139 (all_bp_locations): New.
141 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
143 * breakpoint.c (bp_locations): Change to std::vector, update all
145 (bp_locations_count): Remove.
146 (update_global_location_list): Change to work with indices
147 rather than bp_location**.
149 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
151 * breakpoint.h (bp_locations_range): New.
152 (struct breakpoint) <locations>: New. Use where possible.
154 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
156 * breakpoint.h (all_tracepoints): Remove.
157 (breakpoint_iterator): Move here.
158 (struct tracepoint_filter): New.
159 (tracepoint_iterator): New.
160 (tracepoint_range): New.
161 (all_tracepoints): New.
162 * breakpoint.c (ALL_TRACEPOINTS): Remove, replace all users with
164 (breakpoint_iterator): Move to header.
165 (all_tracepoints): New.
166 * tracepoint.c (start_tracing): Adjust.
168 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
170 * breakpoint.c (breakpoint_safe_range): New.
171 (all_breakpoints_safe): New. Use instead of
172 ALL_BREAKPOINTS_SAFE where possible.
174 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
176 * breakpoint.c (ALL_BREAKPOINTS): Remove, replace all uses with
178 (breakpoint_iterator): New.
179 (breakpoint_range): New.
180 (all_breakpoints): New.
182 2021-05-27 Hannes Domani <ssbssa@yahoo.de>
184 * python/py-tui.c (tui_py_window::output): Add full_window
186 (gdbpy_tui_write): Parse "full_window" argument.
188 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
190 * make-init-c: Add option to reverse function calls.
192 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
194 * Makefile.in (INIT_FILES_FILTER_OUT): New.
195 (INIT_FILES): Use INIT_FILES_FILTER_OUT.
196 (stamp-init): Use make-init-c.
197 * bpf-tdep.c (_initialize_bpf_tdep): Remove "void".
198 * silent-rules.mk (ECHO_INIT_C): Change.
199 * make-init-c: New file.
201 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
203 * command.h (add_alias_cmd): Accept target as
204 cmd_list_element. Update callers.
206 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
208 * command.h (add_info_alias): Accept target as
209 cmd_list_element. Update callers.
211 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
213 * command.h (add_com_alias): Accept target as
214 cmd_list_element. Update callers.
216 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
218 * python/py-param.c (add_setshow_generic): Use return values of
219 add_setshow functions.
221 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
223 * mi/mi-main.c (_initialize_mi_main):
224 * python/py-auto-load.c (gdbpy_initialize_auto_load):
225 * remote.c (_initialize_remote):
227 2021-05-27 Simon Marchi <simon.marchi@polymtl.ca>
229 * command.h (set_show_commands): New.
230 (add_setshow_enum_cmd, add_setshow_auto_boolean_cmd,
231 add_setshow_boolean_cmd, add_setshow_filename_cmd,
232 add_setshow_string_cmd, add_setshow_string_noescape_cmd,
233 add_setshow_optional_filename_cmd, add_setshow_integer_cmd,
234 add_setshow_uinteger_cmd, add_setshow_zinteger_cmd,
235 add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
236 Return set_show_commands. Adjust callers.
237 * cli/cli-decode.c (add_setshow_cmd_full): Return
238 set_show_commands, remove result parameters, adjust callers.
240 2021-05-27 Tom de Vries <tdevries@suse.de>
243 * dwarf2/read.c (process_psymtab_comp_unit):
245 2021-05-27 Tom de Vries <tdevries@suse.de>
247 * dwarf2/read.c (find_partial_die): Fix "Cannot not" typo in dwarf
250 2021-05-27 Tom de Vries <tdevries@suse.de>
253 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Add load_all_dies init.
254 * dwarf2/cu.h (dwarf2_cu): Add load_all_dies field.
255 * dwarf2/read.c (load_partial_dies, find_partial_die): Update.
256 * dwarf2/read.h (dwarf2_per_cu_data::dwarf2_per_cu_data): Remove
258 (dwarf2_per_cu_data): Remove load_all_dies field.
260 2021-05-26 Simon Marchi <simon.marchi@efficios.com>
262 * regcache.c (reg_buffer::reg_buffer): Default-initialize
265 2021-05-26 Tom Tromey <tom@tromey.com>
267 * dwarf2/read.c (allocate_type_unit_groups_table)
268 (handle_DW_AT_stmt_list, allocate_dwo_file_hash_table): Use
270 (free_line_header_voidp): Remove.
272 (completion_tracker::completion_hash_entry::deleter): Remove.
273 (completion_tracker::discard_completions): Use htab_delete_entry.
274 * utils.h (htab_delete_entry): New template function.
276 2021-05-24 Hannes Domani <ssbssa@yahoo.de>
278 * python/py-tui.c (tui_py_window::refresh_window):
281 2021-05-23 Tom de Vries <tdevries@suse.de>
284 * target.h (struct target_ops): Mention target_thread_architecture in
285 read_description comment.
286 * x86-linux-nat.c (x86_linux_nat_target::read_description): Use
287 pid to determine if process is 64-bit or 32-bit.
288 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
290 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Same.
291 * riscv-linux-nat.c (riscv_linux_nat_target::read_description): Same.
292 * s390-linux-nat.c (s390_linux_nat_target::read_description): Same.
293 * arm-linux-nat.c (arm_linux_nat_target::read_description): Same.
294 Likewise, use pid to determine if kernel supports reading VFP
297 2021-05-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
299 * main.c (enum cmdarg_kind): Fix option type comments for
300 CMDARG_EARLYINIT_FILE and CMDARG_EARLYINIT_COMMAND.
302 2021-05-21 Tom de Vries <tdevries@suse.de>
305 * contrib/cc-with-tweaks.sh: Handle -l.
307 2021-05-21 Tom de Vries <tdevries@suse.de>
310 * jit.c (jit_breakpoint_re_set_internal): Skip separate debug
311 objects. Call get_jiter_objfile_data with the_objfile.
313 2021-05-20 Simon Marchi <simon.marchi@polymtl.ca>
315 * linespec.c (linespec_p): Remove. Replace all uses with
318 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
319 Pedro Alves <pedro@palves.net>
321 * cli/cli-script.h (command_line_up): New unique_ptr typedef.
322 * cli/cli-script.c (multi_line_command_p): Use unique_ptr
323 command_line_up instead of struct command_line.
324 (build_command_line): Likewise.
325 (get_command_line): Update the cmd function call parameter.
326 (process_next_line): Use unique_ptr command_line_up instead
327 of struct command_line.
328 (recurse_read_control_structure): Change the the type of
329 next to command_line_up.
330 (read_command_lines_1): Change type of `next' to be
331 command_line_up and update all references of `next'
334 2021-05-20 Alexandra Hájková <ahajkova@redhat.com>
336 * MAINTAINERS (Write After Approval): Add myself.
338 2021-05-19 John Baldwin <jhb@FreeBSD.org>
340 * dwarf2/read.c (tu_abbrev_offset::operator<): Mark const.
342 2021-05-18 Alexandra Hájková <ahajkova@redhat.com>
344 * inflow.c (new_tty): Do not leak tty.
346 2021-05-17 Tom Tromey <tom@tromey.com>
348 * dwarf2/read.h: Update include.
349 * dwarf2/read.c: Update include.
350 * dwarf2/line-header.c: Update include.
351 * dwarf2/cu.h: Update include.
352 * dwarf2/comp-unit-head.h: Rename from comp-unit.h.
353 * dwarf2/comp-unit-head.c: Rename from comp-unit.c.
354 * Makefile.in (COMMON_SFILES): Update.
356 2021-05-17 Tom Tromey <tom@tromey.com>
358 * dwarf2/read.c (maybe_queue_comp_unit)
359 (dwarf2_per_objfile::age_comp_units): Update.
360 (dwarf2_add_dependence, dwarf2_mark_helper, dwarf2_mark): Move to
362 * dwarf2/cu.h (struct dwarf2_cu) <mark, clear_mark, is_marked,
363 add_dependence>: New methods.
364 <m_dependencies>: Add "m_" prefix. Now private.
365 <m_mark>: Add "m_" prefix.
366 * dwarf2/cu.c (dwarf2_cu::dwarf2_cu): Update.
367 (dwarf2_mark_helper): New function.
368 (dwarf2_cu::mark, dwarf2_cu::add_dependence): New methods.
370 2021-05-17 Tom Tromey <tom@tromey.com>
372 * dwarf2/read.c (dwarf2_cu::addr_sized_int_type)
373 (dwarf2_cu::start_symtab, dwarf2_cu::addr_type)
374 (dwarf2_cu::dwarf2_cu): Move to cu.c.
375 * dwarf2/cu.c: New file.
376 * Makefile.in (COMMON_SFILES): Add dwarf2/cu.c.
378 2021-05-17 Tom Tromey <tom@tromey.com>
380 * Makefile.in (HFILES_NO_SRCDIR): Add dwarf2/cu.h.
381 * dwarf2/read.c (struct delayed_method_info, struct dwarf2_cu):
383 * dwarf2/cu.h: New file.
385 2021-05-17 Andrew Burgess <andrew.burgess@embecosm.com>
387 * .dir-locals.el: Set sentence-end-double-space for all modes, and
388 set brace-list-open to 0 for C and C++ modes.
390 2021-05-17 Tom Tromey <tromey@adacore.com>
392 * dwarf2/loc.c (dwarf2_evaluate_loc_desc::get_frame_base): Throw
395 2021-05-17 Tom Tromey <tromey@adacore.com>
397 * nat/linux-osdata.c (user_from_uid, time_from_time_t)
398 (group_from_gid): Subtract one from strncpy length.
400 2021-05-17 Tom Tromey <tromey@adacore.com>
402 * source.c (add_path): Check 'p' before using 'p[-1]'.
404 2021-05-17 Tom Tromey <tromey@adacore.com>
406 * dwarf2/read.h (struct dwarf2_per_cu_data_deleter: New.
407 (dwarf2_per_cu_data_up): New typedef.
408 (struct dwarf2_per_bfd) <allocate_per_cu>: Change return type.
409 <all_comp_units>: Use dwarf2_per_cu_data_up.
410 * dwarf2/read.c (dwarf2_per_cu_data::operator()): New function.
411 (dwarf2_per_bfd::allocate_per_cu): Return dwarf2_per_cu_data_up.
412 (create_cu_from_index_list): Likewise.
413 (create_signatured_type_table_from_index)
414 (create_cus_from_debug_names_list, add_type_unit)
415 (read_comp_units_from_section): Update.
416 (dwarf2_find_containing_comp_unit): Change type of all_comp_units.
419 2021-05-17 Tom Tromey <tom@tromey.com>
421 * dwarf2/read.c (tu_abbrev_offset::operator<): New method.
422 (sort_tu_by_abbrev_offset): Remove.
423 (build_type_psymtabs): Update.
425 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
427 * py-project.toml: New.
428 * gdb-gdb.py.in: Re-format.
430 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
432 * cli/cli-decode.h (cmd_list_element) <is_command_class_help>:
434 * command.h (cmd_func_p): Remove.
435 * cli/cli-decode.c (cmd_func_p): Remove.
437 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
439 * cli/cli-decode.h (cmd_list_element) <is_alias>: New, use it.
441 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
443 * cli/cli-decode.h (cmd_list_element) <cmd_pointer>: Rename
445 <alias_target>: ... this.
446 (add_alias_cmd): Rename old to target.
447 (add_info_alias): Rename old_name to target_name.
448 (add_com_alias): Likewise.
450 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
452 * Rename "prefixlist" parameters to "subcommands" throughout.
453 * cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
454 <subcommands>: ... this.
455 * cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
456 (lookup_cmd_with_subcommands): ... this.
458 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
460 * cli/cli-decode.c (add_alias_cmd): Don't handle old == 0.
462 2021-05-17 Simon Marchi <simon.marchi@polymtl.ca>
464 * cli/cli-decode.h (prefixname): Make const, move implementation
466 * cli/cli-decode.c (cmd_list_element::prefixname): New.
468 2021-05-16 Weimin Pan <weimin.pan@oracle.com>
470 * ctfread.c (new_symbol): Set function address.
471 (read_func_kind_type): Remove incorrect type name setting.
472 Don't copy name returned from ctf_type_ame_raw throughout file.
474 2021-05-14 Tom Tromey <tom@tromey.com>
476 * rust-lang.c (rust_language::val_print_struct)
477 (rust_language::print_enum): Use common_val_print, not
480 2021-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
482 * python/py-inferior.c (infpy_get_connection_num): New function.
483 (inferior_object_getset): Add a new element for 'connection_num'.
484 * NEWS: Mention the 'connection_num' attribute of Inferior objects.
486 2021-05-14 Andrew Burgess <andrew.burgess@embecosm.com>
488 * remote.c (check_pending_events_prevent_wildcard_vcont): Change
489 argument type, update and re-wrap, header comment.
490 (remote_target::commit_resumed): Convert any_process_wildcard and
491 may_global_wildcard_vcont from int to bool.
493 2021-05-14 Kent Cheung <kent.cheung@arm.com>
495 * cp-valprint.c (cp_print_value): Replaced duplicate code.
496 * guile/scm-pretty-print.c (ppscm_print_children): Check max_depth
497 just before printing child values.
498 (gdbscm_apply_val_pretty_printer): Don't check max_depth before
499 printing string representation.
500 * python/py-prettyprint.c (print_children): Check max_depth just
501 before printing child values.
502 (gdbpy_apply_val_pretty_printer): Don't check max_depth before
503 printing string representation.
505 2021-05-14 Mike Frysinger <vapier@gentoo.org>
507 * remote-sim.c: Change gdb/callback.h & gdb/remote-sim.h includes to
508 sim/callback.h & sim/sim.h.
510 2021-05-13 Mike Frysinger <vapier@gentoo.org>
512 * lm32-tdep.c: Delete gdb/callback.h, gdb/remote-sim.h, and
515 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
517 * inf-child.h (inf_child_target) <follow_exec>: New.
518 * inf-child.c (inf_child_target::follow_exec): New.
520 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
522 * target.h (struct target_ops) <follow_exec>: Add ptid_t
524 (target_follow_exec): Likewise.
525 * target.c (target_follow_exec): Add ptid_t parameter.
526 * infrun.c (follow_exec): Adjust call to target_follow_exec,
527 don't push target nor create thread.
528 * linux-thread-db.c (class thread_db_target) <follow_exec>: New.
529 (thread_db_target::wait): Just return on TARGET_WAITKIND_EXECD.
530 (thread_db_target::follow_exec): New.
531 * remote.c (class remote_target) <follow_exec>: Add ptid_t parameter.
532 (remote_target::follow_exec): Call
533 process_stratum_target::follow_exec.
534 * target-delegates.c: Re-generate.
536 2021-05-13 Simon Marchi <simon.marchi@efficios.com>
538 * infrun.c (follow_exec): Call target_follow_fork when
539 follow-exec-mode is same.
540 * target.h (target_follow_fork): Improve doc.
542 2021-05-13 Simon Marchi <simon.marchi@polymtl.ca>
544 * cli/cli-decode.h (struct cmd_list_element) <pre_show_hook>:
546 * cli/cli-setshow.c (do_show_command): Adjust.
548 2021-05-13 Luis Machado <luis.machado@linaro.org>
550 * arch/aarch64-mte-linux.c (aarch64_mte_get_tag_granules): Don't
551 include the last address in the range.
553 2021-05-12 Simon Marchi <simon.marchi@polymtl.ca>
555 * python/python-internal.h (gdbpy_parse_command_name): Return
556 gdb::unique_xmalloc_ptr.
557 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
558 (cmdpy_init): Adjust.
559 * python/py-param.c (parmpy_init): Adjust.
560 (add_setshow_generic): Take gdb::unique_xmalloc_ptr, release it
563 2021-05-12 George Barrett <bob@bob131.so>
565 * NEWS (Guile API): Note the addition of the new procedure.
566 * guile/scm-value.c (gdbscm_value_const_value): Add
567 implementation of value-const-value procedure.
568 (value_functions): Add value-const-value procedure.
570 2021-05-12 George Barrett <bob@bob131.so>
572 * NEWS (Guile API): Note the addition of new procedures.
573 * guile/scm-value.c (gdbscm_reference_value): Add helper function
574 for reference value creation.
575 (gdbscm_value_reference_value): Add implementation of
576 value-reference-value procedure.
577 (gdbscm_value_rvalue_reference_value): Add implementation of
578 value-rvalue-reference-value procedure.
579 (value_functions): Add value-reference-value procedure. Add
580 value-rvalue-reference-value procedure.
582 2021-05-12 George Barrett <bob@bob131.so>
584 * guile/scm-type.c (type_integer_constants): Add binding for
585 TYPE_CODE_RVALUE_REF.
586 * guile/scm-value.c (gdbscm_value_referenced_value): Handle
587 dereferencing of rvalue references.
588 * NEWS (Guile API): Note improvements in rvalue reference support.
590 2021-05-12 Markus Metzger <markus.t.metzger@intel.com>
592 * btrace.c (handle_pt_insn_events): Ignore status update enable
595 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
597 * arm-tdep.c (arm_record_data_proc_misc_ld_str): Fix
600 2021-05-11 Simon Marchi <simon.marchi@polymtl.ca>
602 * cli/cli-decode.h (struct cmd_list_element): Fix indentation.
604 2021-05-10 Lancelot Six <lsix@lancelotsix.com>
607 * contrib/gdb-add-index.sh: Fix when called with a symlink as an
610 2021-05-10 Simon Marchi <simon.marchi@polymtl.ca>
612 * nat/linux-waitpid.c (status_to_str): Show signal name.
614 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
616 * python/py-breakpoint.c (pybp_debug): New static global.
617 (show_pybp_debug): New function.
618 (pybp_debug_printf): Define.
619 (PYBP_SCOPED_DEBUG_ENTER_EXIT): Define.
620 (gdbpy_breakpoint_created): Add some debugging.
621 (gdbpy_breakpoint_deleted): Likewise.
622 (gdbpy_breakpoint_modified): Likewise.
623 (_initialize_py_breakpoint): New function.
625 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
627 * python/py-unwind.c (pyuw_debug): Convert to bool.
628 (show_pyuw_debug): New function.
629 (pyuw_debug_printf): Define.
630 (PYUW_SCOPED_DEBUG_ENTER_EXIT): Define.
631 (pyuw_this_id): Convert to new debug print macros.
632 (pyuw_prev_register): Likewise.
633 (pyuw_sniffer): Likewise.
634 (pyuw_dealloc_cache): Likewise.
635 (_initialize_py_unwind): Update now pyuw_debug is a bool, and add
636 show function when registering.
638 2021-05-09 Andrew Burgess <andrew.burgess@embecosm.com>
640 * dummy-frame.c (fprint_dummy_frames): Convert use of
641 fprint_frame_id to use frame_id::to_string.
642 * frame.c (fprint_field): Delete.
643 (fprint_frame_id): Moved to...
644 (frame_id::to_string): ...this, rewritten to return a string.
645 (fprint_frame): Convert use of fprint_frame_id to use
647 (compute_frame_id): Likewise.
648 (frame_id_p): Likewise.
649 (frame_id_eq): Likewise.
650 (frame_id_inner): Likewise.
651 * frame.h (struct frame_id) <to_string>: New member function.
652 (fprint_frame_id): Delete declaration.
653 * guile/scm-frame.c (frscm_print_frame_smob): Convert use of
654 fprint_frame_id to use frame_id::to_string.
655 * python/py-frame.c (frame_object_to_frame_info): Likewise.
656 * python/py-unwind.c (unwind_infopy_str): Likewise.
657 (pyuw_this_id): Likewise.
659 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
661 * nat/linux-waitpid.c (status_to_str): Return std::string.
662 * nat/linux-waitpid.h (status_to_str): Likewise.
663 * linux-nat.c (linux_nat_post_attach_wait): Adjust.
664 (linux_nat_target::attach): Adjust.
665 (linux_handle_extended_wait): Adjust.
667 (stop_wait_callback): Adjust.
668 (linux_nat_filter_event): Adjust.
669 (linux_nat_wait_1): Adjust.
670 * nat/linux-waitpid.c (status_to_str): Adjust.
671 * nat/linux-waitpid.h (status_to_str): Adjust.
673 2021-05-08 Simon Marchi <simon.marchi@polymtl.ca>
675 * infrun.h (infrun_debug_printf): Add missing space.
677 2021-05-08 Pedro Alves <pedro@palves.net>
679 * linux-nat.c (linux_nat_target::supports_disable_randomization):
680 Remove references to HAVE_PERSONALITY.
681 * nat/linux-personality.c: Remove references to HAVE_PERSONALITY.
682 (maybe_disable_address_space_randomization)
683 (~maybe_disable_address_space_randomizatio): Remove references to
685 * config.in, configure: Regenerate.
687 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
689 * cli/cli-cmds.c: Add 'gdbsupport/gdb_tilde_expand.h'
691 (source_script_with_search): Perform tilde expansion.
693 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
695 * target-descriptions.c (struct target_desc_info) <filename>:
697 (copy_inferior_target_desc_info): Adjust.
698 (target_desc_info_free): Adjust.
699 (target_find_description): Adjust.
700 (set_tdesc_filename_cmd): Adjust.
701 (show_tdesc_filename_cmd): Adjust.
702 (unset_tdesc_filename_cmd): Adjust.
703 (maint_print_c_tdesc_cmd): Adjust.
705 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
707 * target-descriptions.c (struct target_desc_info): Initialize
709 (get_tdesc_info): Use new.
710 (target_desc_info_free): Use delete.
712 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
714 * target-descriptions.c (struct target_desc_info) <fetched>:
716 (target_find_description): Adjust.
717 (target_clear_description): Adjust.
719 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
721 * target-descriptions.c (struct target_desc_info) <tdesc>:
723 (target_desc_fetched): Remove.
724 (current_target_desc): Remove.
725 (target_description_filename): Remove.
726 (target_find_description): Adjust.
727 (target_clear_description): Adjust.
728 (target_current_description): Adjust.
729 (set_tdesc_filename_cmd): Adjust.
730 (show_tdesc_filename_cmd): Adjust.
731 (unset_tdesc_filename_cmd): Adjust.
732 (maint_print_c_tdesc_cmd): Adjust.
733 (maint_print_xml_tdesc_cmd): Adjust.
735 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
737 * infcmd.c (notice_new_inferior): Change parameter type.
738 * inferior.h (notice_new_inferior): Change parameter type.
739 * remote.c (remote_notice_new_inferior): Change parameter type to
740 bool. Also update type of local variable to bool.
741 (remote_target::update_thread_list): Change type of local variable
743 (remote_target::process_stop_reply): Pass bool instead of int to
744 remote_notice_new_inferior.
746 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
748 * target.c (target_stack::unpush): Call target_ops::find_beneath
749 to get the target beneath `t`.
751 2021-05-07 Simon Marchi <simon.marchi@efficios.com>
753 * target.c (target_close): Check in all inferiors that the
754 target is not pushed.
756 2021-05-07 Aaron Merey <amerey@redhat.com>
758 * debuginfod-support.c (debuginfod_init): Remove.
759 (get_debuginfod_client): New function.
761 2021-05-07 Tom Tromey <tom@tromey.com>
763 * breakpoint.c (ambiguous_names_p): Use htab_eq_string.
764 * utils.c (streq_hash): Remove.
765 * utils.h (streq_hash): Don't declare.
766 * completer.c (completion_tracker::discard_completions): Update
768 * ada-lang.c (_initialize_ada_language): Use htab_eq_string.
770 2021-05-07 Simon Marchi <simon.marchi@polymtl.ca>
772 * Re-format all Python files using black.
774 2021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
776 * guile/guile-internal.h (gdbscm_safe_source_script): Change
777 function return type.
778 * guile/guile.c (gdbscm_source_script): Update to handle change in
779 gdbscm_safe_source_script.
780 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
781 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
784 2021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
786 * inferior.h (class inferior) <args>: Change type to
788 * inferior.c (inferior::~inferior): Don't free args.
789 * infcmd.c (get_inferior_args): Adjust.
790 (set_inferior_args): Adjust.
792 2021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
794 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
795 breakpoint locations when the breakpoint actually has a location.
797 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
799 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
800 * mi/mi-cmds.c: Change the binding of "-break-condition" to
801 mi_cmd_break_condition.
802 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
803 * breakpoint.h (set_breakpoint_condition): Declare a new
805 * breakpoint.c (set_breakpoint_condition): New overloaded function
806 extracted out from ...
807 (condition_command): ... this.
808 * NEWS: Mention the change.
810 2021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
812 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
813 '--force-condition' flag to force the condition in the
814 '-break-insert' and '-dprintf-insert' commands.
815 * NEWS: Mention the change.
817 2021-05-04 Tom de Vries <tdevries@suse.de>
820 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
823 2021-04-30 Tom Tromey <tom@tromey.com>
825 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
826 (add_signatured_type_cu_to_table): Remove.
827 (create_debug_type_hash_table): Assume dwo_file is non-null.
828 (create_debug_types_hash_table): Update comment.
829 (create_all_type_units): Remove.
830 (sort_tu_by_abbrev_offset): Update comment.
831 (build_type_psymtabs): Rename from build_type_psymtabs_1.
832 (build_type_psymtabs): Remove.
833 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
835 (read_comp_units_from_section): Add types_htab, section_kind
837 (create_all_comp_units): Read type units.
839 2021-04-30 Tom Tromey <tom@tromey.com>
841 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
842 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
843 <get_cu>: Now inline.
844 <all_type_units>: Remove.
845 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
846 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
847 (dwarf2_per_bfd::get_tu): Remove.
848 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
849 (create_signatured_type_table_from_index)
850 (create_signatured_type_table_from_debug_names)
851 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
852 (dwarf2_base_index_functions::expand_all_symtabs)
853 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
854 (dwarf2_base_index_functions::map_symbol_filenames)
855 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
856 (add_signatured_type_cu_to_table, create_all_type_units)
857 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
858 (create_all_comp_units): Update.
859 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
860 (write_debug_names): Update.
862 2021-04-30 Tom Tromey <tom@tromey.com>
864 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
865 allocate_signatured_type>: Change return type.
866 <all_comp_units, all_type_units>: Hold unique pointers.
867 (struct dwarf2_per_cu_data): Add constructor and initializers.
868 (struct signatured_type): Derive from dwarf2_per_cu_data.
869 * dwarf2/read.c (type_unit_group): Derive from
871 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
872 (dwarf2_per_bfd::get_tu)
873 (dwarf2_per_bfd::allocate_signatured_type)
874 (dwarf2_per_bfd::allocate_signatured_type)
875 (create_cu_from_index_list, create_cus_from_index_list)
876 (create_signatured_type_table_from_index)
877 (create_signatured_type_table_from_debug_names)
878 (create_addrmap_from_aranges)
879 (dwarf2_base_index_functions::find_last_source_symtab)
880 (dw_expand_symtabs_matching_file_matcher)
881 (dwarf2_gdb_index::expand_symtabs_matching)
882 (dwarf2_base_index_functions::map_symbol_filenames)
883 (create_cus_from_debug_names_list)
884 (dw2_debug_names_iterator::next)
885 (dwarf2_debug_names_index::expand_symtabs_matching)
886 (create_debug_type_hash_table, add_type_unit)
887 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
889 (allocate_type_unit_groups_table): Use delete.
890 (create_type_unit_group): Change return type. Use new.
891 (get_type_unit_group, build_type_psymtabs_1)
892 (build_type_psymtab_dependencies)
893 (process_skeletonless_type_unit, set_partial_user)
894 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
895 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
896 (read_signatured_type): Update.
897 (dwarf2_find_containing_comp_unit): Change type of
900 (dwarf2_per_bfd::allocate_per_cu)
901 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
903 (add_signatured_type_cu_to_table): Update.
904 * dwarf2/index-write.c (write_one_signatured_type)
905 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
906 (write_debug_names): Update.
908 2021-04-30 Tom Tromey <tromey@adacore.com>
910 * nat/windows-nat.h (get_image_name): Don't declare.
911 * nat/windows-nat.c (get_image_name): Now static.
913 2021-04-30 Tom Tromey <tromey@adacore.com>
915 * windows-nat.c (windows_nat::handle_load_dll): Update.
916 (windows_nat_target::get_windows_debug_event): Call
918 (windows_add_all_dlls, windows_add_dll): Move to
920 * nat/windows-nat.h (handle_load_dll): Change parameters.
921 (dll_loaded_event, windows_add_all_dlls): Declare.
922 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
924 (dll_loaded_event): New function.
926 2021-04-30 Tom Tromey <tromey@adacore.com>
928 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
929 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
931 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
932 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
934 2021-04-30 Tom Tromey <tromey@adacore.com>
936 * windows-nat.c: Move code to nat/windows-nat.[ch].
937 (_initialize_windows_nat): Call initialize_loadable.
938 * nat/windows-nat.h (AdjustTokenPrivileges)
939 (DebugActiveProcessStop, DebugBreakProcess)
940 (DebugSetProcessKillOnExit, EnumProcessModules)
941 (EnumProcessModulesEx, GetModuleInformation)
942 (GetModuleFileNameExA, GetModuleFileNameExW)
943 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
944 (GetCurrentConsoleFont, Wow64SuspendThread)
945 (Wow64GetThreadContext, Wow64SetThreadContext)
946 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
947 (AdjustTokenPrivileges_ftype)
948 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
949 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
950 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
951 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
952 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
953 (GetConsoleFontSize_ftype)
954 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
955 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
956 (Wow64GetThreadSelectorEntry_ftype): Likewise.
957 (initialize_loadable): Declare.
958 * nat/windows-nat.c (AdjustTokenPrivileges)
959 (DebugActiveProcessStop, DebugBreakProcess)
960 (DebugSetProcessKillOnExit, EnumProcessModules)
961 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
962 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
963 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
964 (Wow64GetThreadContext, Wow64SetThreadContext)
965 (Wow64GetThreadSelectorEntry): Define.
966 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
968 (initialize_loadable): Likewise, and rename.
970 2021-04-30 Tom Tromey <tromey@adacore.com>
972 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
973 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
974 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
975 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
976 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
977 (bad): New template functions.
978 (_initialize_loadable): Update.
980 2021-04-30 Tom Tromey <tromey@adacore.com>
982 * ada-lang.c (ada_index_type): Use ada_check_typedef.
984 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
986 * auto-load.h: Split namespace declaration.
988 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
990 * infrun.c (save_waitstatus): Move variables to inner scope.
992 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
994 * NEWS: Fix typo and stray full stop.
996 2021-04-28 Tom Tromey <tromey@adacore.com>
998 * ada-exp.y (primary): Use new type for null pointer.
999 * ada-lang.c (ada_type_match): Remove "may_deref"
1000 parameter. Handle null pointer.
1001 (ada_args_match): Update.
1002 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
1003 Handle null pointer.
1005 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1007 * NEWS: Mention new commands.
1008 * python/python.c (python_ignore_environment): New static global.
1009 (show_python_ignore_environment): New function.
1010 (set_python_ignore_environment): New function.
1011 (python_dont_write_bytecode): New static global.
1012 (show_python_dont_write_bytecode): New function.
1013 (set_python_dont_write_bytecode): New function.
1014 (_initialize_python): Register new commands.
1016 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1018 * extension-priv.h (struct extension_language_ops): Rename
1019 'finish_initialization' to 'initialize'.
1020 * extension.c (finish_ext_lang_initialization): Renamed to...
1021 (ext_lang_initialization): ...this, update comment, and updated
1022 the calls to reflect the change in struct extension_language_ops.
1023 * extension.h (finish_ext_lang_initialization): Renamed to...
1024 (ext_lang_initialization): ...this.
1025 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
1026 (gdbscm_initialize): ...this, update comment at definition.
1027 (guile_extension_ops): Update.
1028 * main.c (captured_main_1): Update call to
1029 finish_ext_lang_initialization.
1030 * python/python.c (gdbpy_finish_initialization): Rename to...
1031 (gdbpy_initialize): ...this, update comment at definition, and
1032 update call to do_finish_initialization.
1033 (python_extension_ops): Update.
1034 (do_finish_initialization): Rename to...
1035 (do_initialize): ...this, and update comment.
1037 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1039 * main.c (captured_main_1): Add a call to
1040 finish_ext_lang_initialization.
1041 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
1043 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1045 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
1046 (gdbscm_finish_initialization): Add code moved from
1048 (_initialize_guile): Move code to gdbscm_finish_initialization.
1049 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
1050 _initialize_scm_arch.
1051 (_initialize_scm_arch): New function.
1052 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
1053 into _initialize_scm_block.
1054 (_initialize_scm_block): New function.
1055 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
1056 into _initialize_scm_frame.
1057 (_initialize_scm_frame): New function.
1058 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
1059 into _initialize_scm_objfile.
1060 (_initialize_scm_objfile): New function.
1061 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
1062 code into _initialize_scm_progspace.
1063 (_initialize_scm_progspace): New function.
1064 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
1065 into _initialize_scm_symbol.
1066 (_initialize_scm_symbol): New function.
1067 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
1068 into _initialize_scm_symtab.
1069 (_initialize_scm_symtab): New function.
1070 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
1071 _initialize_scm_type.
1072 (_initialize_scm_type): New function.
1074 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1076 * python/py-arch.c (_initialize_py_arch): New function.
1077 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
1078 * python/py-block.c (_initialize_py_block): New function.
1079 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
1080 * python/py-inferior.c (_initialize_py_inferior): New function.
1081 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
1082 * python/py-objfile.c (_initialize_py_objfile): New function.
1083 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
1084 * python/py-progspace.c (_initialize_py_progspace): New function.
1085 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
1086 * python/py-registers.c (_initialize_py_registers): New function.
1087 (gdbpy_initialize_registers): Move code to
1088 _initialize_py_registers.
1089 * python/py-symbol.c (_initialize_py_symbol): New function.
1090 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
1091 * python/py-symtab.c (_initialize_py_symtab): New function.
1092 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
1093 * python/py-type.c (_initialize_py_type): New function.
1094 (gdbpy_initialize_types): Move code to _initialize_py_type.
1095 * python/py-unwind.c (_initialize_py_unwind): New function.
1096 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
1097 * python/python.c (_initialize_python): Move call to
1098 do_start_initialization to gdbpy_finish_initialization.
1099 (gdbpy_finish_initialization): Add call to
1100 do_start_initialization.
1102 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1104 * extension.c (struct scoped_default_signal): New struct.
1105 (scoped_default_sigint): New typedef.
1106 (finish_ext_lang_initialization): Make use of
1107 scoped_default_sigint.
1109 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1111 * main.c (captured_main_1): Don't pass argument to gdb_init.
1112 * top.c (gdb_init): Remove unused argument, and add header
1114 * top.h (gdb_init): Remove argument.
1116 2021-04-27 Luis Machado <luis.machado@linaro.org>
1118 * psymtab.c (psymbol_functions::dump): Output newline.
1120 * symmisc.c (dump_objfile): Likewise.
1122 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1123 Simon Marchi <simon.marchi@polymtl.ca>
1125 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
1126 when attaching the 'auto_load_new_objfile' observer, so
1127 other observers can specify it as a dependency.
1128 * gdb/auto-load.h (struct token): Declare
1129 'auto_load_new_objfile_observer_token' as token to be used
1130 for the 'auto_load_new_objfile' observer.
1131 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
1132 'python_new_objfile' observer depend on 'auto_load_new_objfile'
1133 observer, so it gets notified after the latter.
1135 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
1136 Simon Marchi <simon.marchi@polymtl.ca>
1138 * unittests/observable-selftests.c (dependency_test_counters):
1140 (observer_token0, observer_token1, observer_token2,
1141 observer_token3, observer_token4, observer_token5): New.
1142 (struct dependency_observer_data): New struct.
1143 (observer_dependency_test_callback): New function.
1144 (test_observers): New.
1145 (run_dependency_test): New function.
1146 (test_dependency): New.
1147 (_initialize_observer_selftest): Register dependency test.
1149 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
1152 * cli/cli-dump.c (dump_binary_file): Check result of
1155 2021-04-25 Sergei Trofimovich <siarheit@google.com>
1157 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
1158 by passing `process_stratum_target*` parameter.
1160 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1163 * typeprint.h (struct type_print_options): Add print_in_hex
1165 (struct print_offset_data): Add print_in_hex flag, add a
1166 constructor accepting a type_print_options* argument.
1167 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
1168 default value for print_in_hex.
1169 (print_offset_data::indentation): Allow more horizontal space.
1170 (print_offset_data::print_offset_data): Add ctor.
1171 (print_offset_data::maybe_print_hole, print_offset_data::update):
1172 Handle the print_in_hex flag.
1173 (whatis_exp): Handle 'x' and 'd' flags.
1174 (print_offsets_and_sizes_in_hex): Declare.
1175 (set_print_offsets_and_sizes_in_hex): Create.
1176 (show_print_offsets_and_sizes_in_hex): Create.
1177 (_initialize_typeprint): Update help message for the ptype
1178 command, register the 'set print type hex' and 'show print type
1180 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
1181 (c_type_print_base): Construct the print_offset_data
1182 object using the type_print_optons parameter.
1183 * rust-lang.c (rust_language::print_type): Construct the
1184 print_offset_data object using the type_print_optons parameter.
1185 * NEWS: Mention the new flags of the ptype command.
1187 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
1189 * typeprint.h (struct type_print_options): Move before
1192 2021-04-25 Joel Brobecker <brobecker@adacore.com>
1196 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
1198 * observable.c (observer_debug): Change to bool.
1200 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1202 * dwarf2/read.c: Add 'unordered_set' include.
1203 (dwarf2_base_index_functions::map_symbol_filenames): Replace
1204 'visited' hash table with 'qfn_cache' unordered_set. Remove use
1205 of per_Bfd->filenames_cache cache, and use function local
1206 filenames_cache instead. Reindent.
1207 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
1209 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1211 * breakpoint.c (iterate_over_bp_locations): Change callback to
1212 function view, remove data parameter.
1213 * breakpoint.h (iterate_over_bp_locations): Likewise.
1214 * record-full.c (record_full_sync_record_breakpoints): Remove
1217 2021-04-22 Tom Tromey <tom@tromey.com>
1219 * c-typeprint.c (c_type_print_base_struct_union): Use
1220 print_spaces_filtered_with_print_options.
1222 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1225 * python/py-type.c (typy_range): Check that bounds are constant
1226 before accessing them as such.
1227 * guile/scm-type.c (gdbscm_type_range): Likewise.
1229 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1231 * Makefile.in (COMMON_SFILES): Remove continuations.c.
1232 * inferior.c (inferior::add_continuation): New method, adapted
1233 from 'add_inferior_continuation'.
1234 (inferior::do_all_continuations): New method, adapted from
1235 'do_all_inferior_continuations'.
1236 (inferior::~inferior): Clear the list of continuations directly.
1237 * inferior.h (class inferior) <continuations>: Rename into...
1238 <m_continuations>: ...this and make private.
1239 * continuations.c: Remove.
1240 * continuations.h: Remove.
1241 * event-top.c: Don't include "continuations.h".
1243 Update the users below.
1244 * inf-loop.c (inferior_event_handler)
1245 * infcmd.c (attach_command)
1246 (notice_new_inferior): Update.
1248 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1250 * inferior.h (class inferior) <continuations>: Change the type
1251 to be an std::list of std::function's.
1252 Update the references and uses below.
1253 * continuations.c (struct continuation): Delete.
1254 (make_continuation): Delete.
1255 (do_my_continuations_1): Delete.
1256 (do_my_continuations): Delete.
1257 (discard_my_continuations_1): Delete.
1258 (discard_my_continuations): Delete.
1259 (add_inferior_continuation): Update.
1260 (do_all_inferior_continuations): Update.
1261 (discard_all_inferior_continuations): Update.
1262 * continuations.h (add_inferior_continuation): Update to take
1263 an std::function as the parameter.
1264 * infcmd.c (struct attach_command_continuation_args): Delete.
1265 (attach_command_continuation): Delete.
1266 (attach_command_continuation_free_args): Delete.
1267 (attach_command): Update.
1268 (notice_new_inferior): Update.
1270 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1272 * continuations.h: Update the general comment.
1273 * inferior.h (class inferior) <continuations>: Update the comment.
1274 * interps.c: Do not include "continuations.h".
1276 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1278 * continuations.h (do_all_inferior_continuations): Remove the 'err'
1279 parameter. Update the references below.
1280 * continuations.c (do_my_continuations_1)
1281 (do_my_continuations)
1282 (do_all_inferior_continuations): Update.
1283 * inf-loop.c (inferior_event_handler): Update.
1284 * infcmd.c (attach_command_continuation): Update.
1286 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1288 * infcmd.c (attach_post_wait): Update the function comment.
1290 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1292 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
1293 Update the references below.
1294 (struct attach_command_continuation_args)
1295 (attach_command_continuation)
1296 (attach_command_continuation_free_args)
1298 (notice_new_inferior): Update to remove the reference to 'args'.
1300 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
1301 Tom de Vries <tdevries@suse.de>
1304 * remote.c (remote_target_is_non_stop_p): New function.
1305 * remote.h (remote_target_is_non_stop_p): Declare.
1306 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
1307 to check non-stopness using notif_state->remote rather current target.
1309 2021-04-22 Tom Tromey <tom@tromey.com>
1311 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
1312 (struct typed_val_int) <val>: Now ULONGEST.
1313 (rust_parser::parse_array_type): Remove negative check.
1314 (rust_lex_int_test): Change 'value' to ULONGEST.
1316 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
1318 * arch-utils.c (default_addressable_memory_unit_size): Return a
1319 value based on bfd's bits per byte.
1321 2021-04-21 Tom Tromey <tom@tromey.com>
1323 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
1325 (struct dwarf2_per_cu_data): Rearrange.
1326 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
1328 (struct comp_unit_head): Rearrange.
1329 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
1331 2021-04-21 Tom de Vries <tdevries@suse.de>
1334 * configure.ac: Remove --without-included-regex/--with-included-regex.
1335 * config.in: Regenerate.
1336 * configure: Regenerate.
1337 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
1339 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1341 * breakpoint.h (create_breakpoint): Add a new parameter,
1343 * breakpoint.c (create_breakpoint): Use the 'force_condition'
1344 argument when 'parse_extra' is false to check if the condition
1345 is invalid at all of the breakpoint locations.
1346 Update the users below.
1352 (create_tracepoint_from_upload): Update.
1353 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
1354 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
1355 * python/py-breakpoint.c (bppy_init): Update.
1356 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
1358 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1360 * breakpoint.c (print_one_breakpoint_location): Display "N" for
1361 disabled-by-condition locations on MI-like output.
1362 (breakpoint_1): Do not display the disabled-by-condition footnote
1363 if the output is MI-like.
1365 2021-04-21 Frederic Cambus <fred@statdns.com>
1367 * syscalls/update-netbsd.sh: Fix script name display in usage, and
1368 update year range in generated copyright notices.
1370 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1372 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
1373 qualifier_seq_noopt.
1375 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
1377 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
1379 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
1381 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
1382 (producer_is_icc): Replace use of std::regex with gdb's
1385 2021-04-17 Tom Tromey <tom@tromey.com>
1388 * dwarf2/read.c (class offset_view): New.
1389 (struct symbol_table_slot): Remove.
1390 (struct mapped_index) <symbol_table, constant_pool>: Change type.
1391 <symbol_name_index, symbol_vec_index>: New methods.
1392 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
1394 (read_gdb_index_from_buffer): Update.
1395 (struct dw2_symtab_iterator) <vec>: Change type.
1396 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
1397 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
1398 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
1399 <append_array, append_offset>: New methods.
1400 (write_hash_table, add_address_entry, write_gdbindex_1)
1401 (write_debug_names): Update.
1402 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
1404 2021-04-17 Tom Tromey <tom@tromey.com>
1406 * dwarf2/index-write.c (write_psymtabs_to_index): Check
1409 2021-04-17 Tom Tromey <tom@tromey.com>
1411 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
1412 from map_matching_symbols. Change parameters.
1413 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
1414 Rename from map_matching_symbols. Change parameters.
1415 * dwarf2/read.c (struct dwarf2_gdb_index)
1416 <expand_matching_symbols>: Rename from map_matching_symbols.
1418 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
1419 Rename from map_matching_symbols. Change parameters.
1420 (dwarf2_gdb_index::expand_matching_symbols): Rename from
1421 dw2_map_matching_symbols. Change parameters.
1422 (dwarf2_gdb_index::expand_matching_symbols): Remove old
1424 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
1425 map_matching_symbols. Change parameters.
1426 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
1427 from map_matching_symbols. Change parameters.
1428 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
1429 map_matching_symbols. Change parameters.
1430 * ada-lang.c (map_matching_symbols): New function.
1431 (add_nonlocal_symbols): Update.
1433 2021-04-17 Tom Tromey <tom@tromey.com>
1435 * quick-symbol.h (struct quick_symbol_functions)
1436 <expand_symtabs_with_fullname>: Remove.
1437 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
1439 * psympriv.h (struct psymbol_functions)
1440 <expand_symtabs_with_fullname>: Remove.
1441 * dwarf2/read.c (struct dwarf2_base_index_functions)
1442 <expand_symtabs_with_fullname>: Remove.
1443 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1445 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
1447 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
1450 2021-04-17 Tom Tromey <tom@tromey.com>
1452 * symfile-debug.c (objfile::expand_symtabs_for_function):
1454 * quick-symbol.h (struct quick_symbol_functions)
1455 <expand_symtabs_for_function>: Remove.
1456 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
1458 * psympriv.h (struct psymbol_functions)
1459 <expand_symtabs_for_function>: Remove.
1460 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
1462 * dwarf2/read.c (struct dwarf2_gdb_index)
1463 <expand_symtabs_for_function>: Remove.
1464 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
1466 (find_slot_in_mapped_hash): Remove.
1467 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
1468 (dw2_symtab_iter_init): Remove one overload.
1469 (dwarf2_gdb_index::expand_symtabs_for_function)
1470 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
1472 2021-04-17 Tom Tromey <tom@tromey.com>
1474 * symfile-debug.c (objfile::map_symtabs_matching_filename):
1476 * quick-symbol.h (struct quick_symbol_functions)
1477 <map_symtabs_matching_filename>: Remove.
1478 * psymtab.c (partial_map_expand_apply)
1479 (psymbol_functions::map_symtabs_matching_filename): Remove.
1480 * psympriv.h (struct psymbol_functions)
1481 <map_symtabs_matching_filename>: Remove.
1482 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
1484 * dwarf2/read.c (struct dwarf2_base_index_functions)
1485 <map_symtabs_matching_filename>: Remove.
1486 (dw2_map_expand_apply)
1487 (dwarf2_base_index_functions::map_symtabs_matching_filename):
1490 2021-04-17 Tom Tromey <tom@tromey.com>
1492 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
1493 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
1495 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
1496 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
1497 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
1498 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
1500 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
1501 (dwarf2_gdb_index::lookup_symbol)
1502 (dwarf2_debug_names_index::lookup_symbol): Remove.
1504 2021-04-17 Tom Tromey <tom@tromey.com>
1506 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
1507 * symmisc.c (maintenance_expand_symtabs): Update.
1508 * symfile.c (expand_symtabs_matching): Update.
1509 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
1511 * quick-symbol.h (struct quick_symbol_functions)
1512 <expand_symtabs_matching>: Add 'domain' parameter.
1513 * psymtab.c (recursively_search_psymtabs)
1514 (psymbol_functions::expand_symtabs_matching): Add 'domain'
1516 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1517 Add 'domain' parameter.
1518 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1520 * linespec.c (iterate_over_all_matching_symtabs): Update.
1521 * dwarf2/read.c (struct dwarf2_gdb_index)
1522 <expand_symtabs_matching>: Add 'domain' parameter.
1523 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1525 (dw2_expand_symtabs_matching)
1526 (dwarf2_gdb_index::expand_symtabs_matching)
1527 (dw2_debug_names_iterator)
1528 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
1531 2021-04-17 Tom Tromey <tom@tromey.com>
1533 * symtab.c (global_symbol_searcher::expand_symtabs)
1534 (default_collect_symbol_completion_matches_break_on): Update.
1535 * symmisc.c (maintenance_expand_symtabs): Update.
1536 * symfile.h (expand_symtabs_matching): Add search_flags
1538 * symfile.c (expand_symtabs_matching): Add search_flags
1540 * symfile-debug.c (objfile::expand_symtabs_matching): Add
1541 search_flags parameter.
1542 * quick-symbol.h (struct quick_symbol_functions)
1543 <expand_symtabs_matching>: Add search_flags parameter.
1544 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
1545 * psymtab.c (recursively_search_psymtabs)
1546 (psymbol_functions::expand_symtabs_matching): Add search_flags
1548 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
1549 Add search_flags parameter.
1550 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
1551 search_flags parameter.
1552 * linespec.c (iterate_over_all_matching_symtabs): Update.
1553 * dwarf2/read.c (struct dwarf2_gdb_index)
1554 <expand_symtabs_matching>: Add search_flags parameter.
1555 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
1556 search_flags parameter.
1557 (dw2_map_matching_symbols): Update.
1558 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
1559 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
1561 (dw2_debug_names_iterator): Change block_index to search flags.
1562 <m_block_index>: Likewise.
1563 (dw2_debug_names_iterator::next)
1564 (dwarf2_debug_names_index::lookup_symbol)
1565 (dwarf2_debug_names_index::expand_symtabs_for_function)
1566 (dwarf2_debug_names_index::map_matching_symbols)
1567 (dwarf2_debug_names_index::map_matching_symbols): Update.
1568 (dwarf2_debug_names_index::expand_symtabs_matching): Add
1569 search_flags parameter.
1570 * ada-lang.c (ada_add_global_exceptions)
1571 (collect_symbol_completion_matches): Update.
1573 2021-04-17 Tom Tromey <tom@tromey.com>
1575 * symtab.c (default_collect_symbol_completion_matches_break_on):
1577 * symfile.h (expand_symtabs_matching): Return bool.
1578 * symfile.c (expand_symtabs_matching): Return bool.
1579 * symfile-debug.c (objfile::expand_symtabs_matching): Return
1581 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
1582 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
1584 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
1586 * psympriv.h (struct psymbol_functions)
1587 <expand_symtabs_matching>: Return bool.
1588 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
1590 * dwarf2/read.c (struct dwarf2_gdb_index)
1591 <expand_symtabs_matching>: Return bool.
1592 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
1594 (dw2_expand_symtabs_matching_symbol): Return bool.
1595 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
1596 (dw2_expand_symtabs_matching)
1597 (dwarf2_gdb_index::expand_symtabs_matching)
1598 (dwarf2_debug_names_index::expand_symtabs_matching)
1599 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
1601 2021-04-17 Tom Tromey <tom@tromey.com>
1603 * quick-symbol.h (enum block_search_flag_values): New.
1604 (block_search_flags): New enum flags type.
1606 2021-04-16 Tom Tromey <tom@tromey.com>
1608 * rust-parse.c: New file.
1609 * rust-exp.y: Remove.
1610 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
1611 (SFILES): Remove rust-exp.y.
1612 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
1614 2021-04-16 Luis Machado <luis.machado@linaro.org>
1616 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
1618 2021-04-15 John Baldwin <jhb@FreeBSD.org>
1620 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
1621 use throughout file.
1623 2021-04-15 Tom Tromey <tromey@adacore.com>
1625 * ada-valprint.c (ada_value_print_array): Handle optimized-out
1628 2021-04-15 Tom Tromey <tromey@adacore.com>
1630 * printcmd.c (print_variable_and_value): Use
1631 common_val_print_checked.
1633 2021-04-15 Tom Tromey <tromey@adacore.com>
1635 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
1636 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1638 * p-exp.y (variable): Update.
1639 * m2-exp.y (variable): Update.
1640 * go-exp.y (variable): Update.
1641 * expprint.c (dump_for_expression): New overload.
1642 * expop.h (check_objfile): New overload.
1643 (check_constant): New overload.
1644 (class var_value_operation): Use block_symbol.
1645 <get_symbol>: Rewrite.
1646 * eval.c (var_value_operation::evaluate)
1647 (var_value_operation::evaluate_funcall)
1648 (var_value_operation::evaluate_for_address)
1649 (var_value_operation::evaluate_for_address)
1650 (var_value_operation::evaluate_with_coercion)
1651 (var_value_operation::evaluate_for_sizeof)
1652 (var_value_operation::evaluate_for_cast): Update.
1653 * d-exp.y (PrimaryExpression): Update.
1654 * c-exp.y (variable): Update.
1655 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
1656 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1657 (ada_var_value_operation::evaluate)
1658 (ada_var_value_operation::resolve)
1659 (ada_funcall_operation::resolve): Update.
1660 * ada-exp.y (write_var_from_sym, write_object_renaming)
1661 (write_ambiguous_var, write_var_or_type, write_name_assoc)
1662 (maybe_overload): Update.
1663 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
1665 2021-04-15 Tom Tromey <tom@tromey.com>
1666 Andrew Burgess <andrew.burgess@embecosm.com>
1669 * main.c (captured_main_1): Call check_quiet_mode.
1670 * top.c (startup_quiet): New global.
1671 (check_quiet_mode): New function.
1672 (show_startup_quiet): New function.
1673 (init_main): Register new command.
1674 * top.h (check_quiet_mode): Declare.
1676 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1679 * NEWS: Mention new early init files and command line options.
1680 * config.in: Regenerate.
1681 * configure: Regenerate.
1682 * configure.ac: Define GDBEARLYINIT.
1683 * main.c (get_earlyinit_files): New function.
1684 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
1685 CMDARG_EARLYINIT_COMMAND.
1686 (captured_main_1): Add support for new command line flags, and for
1687 processing startup files.
1688 (print_gdb_help): Include startup files in the output.
1690 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
1692 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
1693 (relocate_file_path_maybe_in_datadir): ...this.
1694 (class gdb_initfile_finder): New class.
1695 (get_init_files): Now uses gdb_initfile_finder.
1696 (print_gdb_help): Print 'None found' when there are no init files.
1698 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1700 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
1701 corresponding child of the abstract DIE when iterating the
1702 children of the concrete DIE.
1704 2021-04-13 Tom de Vries <tdevries@suse.de>
1706 * ui-style.c (read_semi_number, extended_color): Change idx parameter
1709 2021-04-13 Luis Machado <luis.machado@linaro.org>
1711 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
1714 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1716 * rs6000-tdep.c: Add support for single-stepping of
1717 prefixed instructions.
1719 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
1722 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
1723 handle the addpcis/lnia instruction.
1725 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
1727 * MAINTAINERS (Write After Approval): Add myself.
1729 2021-4-12 Carl Love <cel@us.ibm.com>
1731 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
1732 (rs6000_builtin_type_vec128): Add append_composite_type_field for
1735 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
1737 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
1738 * nat/windows-nat.h: Likewise.
1740 2021-04-10 Eli Zaretskii <eliz@gnu.org>
1742 * windows-nat.c (windows_nat::handle_load_dll): Call
1743 windows_add_dll if get_image_name failed to glean the name of the
1744 DLL by using the lpImageName pointer.
1745 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
1746 (windows_add_dll): Now does what windows_add_all_dlls did before,
1747 but also accepts an argument LOAD_ADDR, which, if non-NULL,
1748 specifies the address where the DLL was loaded into the inferior,
1749 and looks for the single DLL loaded at that address.
1751 2021-04-09 Luis Machado <luis.machado@linaro.org>
1753 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
1755 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
1757 * darwin-nat.c (darwin_nat_target::resume): Remove status
1760 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1762 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
1763 prologue end for Intel compilers.
1764 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1765 * producer.c (producer_is_icc_ge_19): New function.
1766 * producer.h (producer_is_icc_ge_19): New declaration.
1768 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1770 * producer.c: (producer_is_icc): Update for new version scheme.
1771 (producer_parsing_tests): Update names and expected results.
1772 * producer.h: (producer_is_icc): Update comment accordingly.
1774 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1776 * target.h (struct target_ops) <follow_fork>: Return void.
1777 (target_follow_fork): Likewise.
1778 * target.c (default_follow_fork): Likewise.
1779 (target_follow_fork): Likewise.
1780 * infrun.c (follow_fork_inferior): Adjust.
1781 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1782 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1783 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1784 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1785 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1786 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1787 * remote.c (class remote_target) <follow_fork>: Likewise.
1788 (remote_target::follow_fork): Likewise.
1789 * target-delegates.c: Re-generate.
1791 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
1793 * ctfread.c (fetch_tid_type): New function, use throughout file.
1794 (read_forward_type): New function.
1795 (read_type_record): Call read_forward_type.
1797 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1799 * f-exp.h (class fortran_structop_operation): New class.
1800 * f-exp.y (exp): Create fortran_structop_operation instead of the
1801 generic structop_operation.
1802 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1803 expression as EVAL_NORMAL if the result type was dynamic so we can
1804 extract the actual array bounds.
1805 (fortran_structop_operation::evaluate): New function.
1807 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1809 * eval.c (evaluate_subexp_standard): Remove
1810 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1813 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1815 * valops.c (value_cast): Call value_deeply_equal before performing
1818 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1820 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1823 2021-04-07 Caroline Tice <cmtice@google.com>
1825 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1826 the search paths used resolve relative location of .dwo file.
1828 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1830 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1832 (dwarf2_section_info::get_file_name): Add an assert.
1833 (dwarf2_section_info::read_string): Display a minimal, sane error
1834 when the dwarf2_section_info is not associated with a bfd section.
1836 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1838 * top.c (staged_gdb_datadir): Update comment.
1839 (set_gdb_datadir): Copy the value of gdb_datadir back into
1841 (init_main): Initialise staged_gdb_datadir.
1843 2021-04-06 Tom de Vries <tdevries@suse.de>
1845 PR breakpoints/25884
1846 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1849 2021-04-06 Tom de Vries <tdevries@suse.de>
1852 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1855 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1857 * avr-tdep.c (avr_frame_unwind_cache): Use
1858 trad_frame_saved_reg::is_addr.
1860 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1862 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1865 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1867 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1868 objfile parameter for objfile_per_bfd_storage, adjust callers.
1869 (struct standard_psymtab) <standard_psymtab>: Likewise.
1870 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1871 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1872 * ctfread.c (struct ctf_psymtab): Likewise.
1873 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1874 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1875 (dwarf2_create_include_psymtab): Likewise.
1876 * objfiles.h (struct objfile_per_bfd_storage)
1877 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1878 <get_bfd>: New method.
1880 * objfiles.c (get_objfile_bfd_data): Adjust.
1882 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1884 * psymtab.c (partial_symtab::partial_symtab): Change
1885 last_objfile_name to be an std::string.
1886 * symfile.c (allocate_symtab): Likewise.
1888 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1890 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1892 (struct objfile) <intern>: Use
1893 objfile::objfile_per_bfd_storage::intern.
1895 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1897 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1898 with type::is_flag_enum.
1900 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1902 * gdbtypes.h (struct type) <is_flag_enum,
1903 set_is_flag_enum>: New methods.
1904 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1905 write call sites to use type::set_is_flag_enum.
1907 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1909 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1910 with type::is_declared_class.
1912 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
1914 * gdbtypes.h (struct type) <is_declared_class,
1915 set_is_declared_class>: New methods.
1916 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1917 write call sites to use type::set_is_declared_class.
1919 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
1921 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1922 to avoid deprecation warnings.
1924 2021-04-01 Martin Liska <mliska@suse.cz>
1926 * cp-name-parser.y: Use startswith instead of strncmp.
1927 * m2-exp.y: Likewise.
1928 * macroexp.c (substitute_args): Likewise.
1929 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1930 * rust-exp.y: Likewise.
1932 2021-03-31 Tom Tromey <tom@tromey.com>
1934 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1935 with dw2_map_matching_symbols.
1936 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1937 dw2_expand_symtabs_matching.
1939 2021-03-31 Tom Tromey <tromey@adacore.com>
1941 * dwarf2/stringify.h: Fix typo.
1943 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1946 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1947 with objfiles using READNOW.
1949 2021-03-29 Tom Tromey <tromey@adacore.com>
1951 * top.c (check_frame_language_change): Update.
1952 * language.c (language_info): Remove parameter.
1953 * language.h (language_info): Remove parameter.
1955 2021-03-29 Luis Machado <luis.machado@linaro.org>
1957 * compile/compile.c (get_args): Don't add empty argv entries.
1959 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1962 * procfs.c (procfs_target::attach): Define inf.
1964 (procfs_target::create_inferior): Likewise.
1966 2021-03-28 Tom Tromey <tom@tromey.com>
1968 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1969 (elf_symfile_read): Simplify.
1970 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1971 (make_lazy_dwarf_reader): New function.
1972 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1973 (dwarf2_initialize_objfile): Return void. Remove index_kind
1974 parameter. Push on 'qf' list.
1975 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1976 type. Remove 'index_kind' parameter.
1977 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1979 2021-03-27 Tom Tromey <tom@tromey.com>
1981 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1983 2021-03-27 Tom Tromey <tom@tromey.com>
1985 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1987 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1989 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1992 2021-03-26 Tom Tromey <tom@tromey.com>
1994 * symtab.c (struct output_source_filename_data): Add 'output'
1995 method and operator().
1996 (output_source_filename_data::output): Rename from
1997 output_source_filename.
1998 (output_partial_symbol_filename): Remove.
1999 (info_sources_command): Update.
2000 (struct add_partial_filename_data): Add operator().
2001 (add_partial_filename_data::operator()): Rename from
2002 maybe_add_partial_symtab_filename.
2003 (make_source_files_completion_list): Update.
2004 * symfile.c (quick_symbol_functions): Update.
2005 * symfile-debug.c (objfile::map_symbol_filenames): Update.
2006 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
2007 'need_fullname'. Remove 'data' parameter.
2008 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
2009 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
2010 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
2011 Change type of 'fun' and 'need_fullname'. Remove 'data'
2013 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
2014 of 'fun' and 'need_fullname'. Remove 'data' parameter.
2015 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
2017 (mi_cmd_file_list_exec_source_files): Update.
2019 (dwarf2_base_index_functions::map_symbol_filenames): Update.
2021 2021-03-26 Tom Tromey <tom@tromey.com>
2023 * ada-lang.c (struct match_data): Add operator().
2024 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
2025 (callback): Remove 'callback'.
2027 2021-03-26 Tom Tromey <tom@tromey.com>
2029 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
2030 call make_ignore_params once.
2032 2021-03-26 Tom Tromey <tom@tromey.com>
2034 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
2037 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2038 Pedro Alves <pedro@palves.net>
2040 * async-event.c: Include "infrun.h".
2041 (async_event_handler_marked): New.
2042 * async-event.h (async_event_handler_marked): Declare.
2043 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
2044 inferior before calling target method. Don't commit-resumed if
2045 target_has_pending_events is true.
2046 * remote.c (remote_target::has_pending_events): New.
2047 * target-delegates.c: Regenerate.
2048 * target.c (target_has_pending_events): New.
2049 * target.h (target_ops::has_pending_events): New target method.
2050 (target_has_pending_events): New.
2052 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
2053 Pedro Alves <pedro@palves.net>
2055 * infcmd.c (run_command_1, attach_command, detach_command)
2056 (interrupt_target_1): Use scoped_disable_commit_resumed.
2057 * infrun.c (do_target_resume): Remove
2058 target_commit_resume call.
2059 (commit_resume_all_targets): Remove.
2060 (maybe_set_commit_resumed_all_targets): New.
2061 (maybe_call_commit_resumed_all_targets): New.
2062 (enable_commit_resumed): New.
2063 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
2064 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
2065 (scoped_disable_commit_resumed::reset)
2066 (scoped_disable_commit_resumed::reset_and_commit)
2067 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
2068 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
2070 (proceed): Use scoped_disable_commit_resumed and
2071 maybe_call_commit_resumed_all_targets.
2072 (fetch_inferior_event): Use scoped_disable_commit_resumed.
2073 * infrun.h (struct scoped_disable_commit_resumed): New.
2074 (maybe_call_commit_resumed_all_process_targets): New.
2075 (struct scoped_enable_commit_resumed): New.
2076 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
2077 * process-stratum-target.h (class process_stratum_target):
2078 <commit_resumed_state>: New.
2079 * record-full.c (record_full_wait_1): Change commit_resumed_state
2080 around calling commit_resumed.
2081 * remote.c (class remote_target) <commit_resume>: Rename to...
2082 <commit_resumed>: ... this.
2083 (struct stop_reply): Move up.
2084 (remote_target::commit_resume): Rename to...
2085 (remote_target::commit_resumed): ... this. Check if there is any
2086 thread pending vCont resume.
2087 (remote_target::remote_stop_ns): Generate stop replies for resumed
2088 but pending vCont threads.
2089 (remote_target::wait_ns): Add gdb_assert.
2090 * target-delegates.c: Regenerate.
2091 * target.c (target_wait, target_resume): Assert that the current
2092 process_stratum target isn't in commit-resumed state.
2093 (defer_target_commit_resume): Remove.
2094 (target_commit_resume): Remove.
2095 (target_commit_resumed): New.
2096 (make_scoped_defer_target_commit_resume): Remove.
2097 (target_stop): Assert that the current process_stratum target
2098 isn't in commit-resumed state.
2099 * target.h (struct target_ops) <commit_resume>: Rename to ...
2100 <commit_resumed>: ... this.
2101 (target_commit_resume): Remove.
2102 (target_commit_resumed): New.
2103 (make_scoped_defer_target_commit_resume): Remove.
2104 * top.c (wait_sync_command_done): Use
2105 scoped_enable_commit_resumed.
2107 2021-03-26 Pedro Alves <pedro@palves.net>
2109 * target.c (target_always_non_stop_p): Also check whether the
2112 2021-03-26 Tom Tromey <tom@tromey.com>
2114 * dwarf2/read.c (dwarf2_read_debug_names)
2115 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
2116 (dw2_debug_names_iterator::next, create_type_unit_group):
2119 2021-03-25 Pedro Alves <pedro@palves.net>
2121 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
2122 around setting the breakpoint.
2124 2021-03-25 Pedro Alves <pedro@palves.net>
2127 (remote_target::check_pending_events_prevent_wildcard_vcont):
2128 Check whether the event's ptid is not null_ptid before looking up
2129 the corresponding inferior.
2131 2021-03-24 Changbin Du <changbin.du@gmail.com>
2133 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
2136 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2138 * target.h (current_top_target): Remove, make callers use the
2139 current inferior instead.
2140 * target.c (current_top_target): Remove.
2142 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2144 * target.h (target_shortname): Change to function declaration.
2145 (target_longname): Likewise.
2146 (target_attach_no_wait): Likewise.
2147 (target_post_attach): Likewise.
2148 (target_prepare_to_store): Likewise.
2149 (target_supports_enable_disable_tracepoint): Likewise.
2150 (target_supports_string_tracing): Likewise.
2151 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
2152 (target_supports_dumpcore): Likewise.
2153 (target_dumpcore): Likewise.
2154 (target_can_run_breakpoint_commands): Likewise.
2155 (target_files_info): Likewise.
2156 (target_post_startup_inferior): Likewise.
2157 (target_insert_fork_catchpoint): Likewise.
2158 (target_remove_fork_catchpoint): Likewise.
2159 (target_insert_vfork_catchpoint): Likewise.
2160 (target_remove_vfork_catchpoint): Likewise.
2161 (target_insert_exec_catchpoint): Likewise.
2162 (target_remove_exec_catchpoint): Likewise.
2163 (target_set_syscall_catchpoint): Likewise.
2164 (target_rcmd): Likewise.
2165 (target_can_lock_scheduler): Likewise.
2166 (target_can_async_p): Likewise.
2167 (target_is_async_p): Likewise.
2168 (target_execution_direction): Likewise.
2169 (target_extra_thread_info): Likewise.
2170 (target_pid_to_exec_file): Likewise.
2171 (target_thread_architecture): Likewise.
2172 (target_find_memory_regions): Likewise.
2173 (target_make_corefile_notes): Likewise.
2174 (target_get_bookmark): Likewise.
2175 (target_goto_bookmark): Likewise.
2176 (target_stopped_by_watchpoint): Likewise.
2177 (target_stopped_by_sw_breakpoint): Likewise.
2178 (target_supports_stopped_by_sw_breakpoint): Likewise.
2179 (target_stopped_by_hw_breakpoint): Likewise.
2180 (target_supports_stopped_by_hw_breakpoint): Likewise.
2181 (target_have_steppable_watchpoint): Likewise.
2182 (target_can_use_hardware_watchpoint): Likewise.
2183 (target_region_ok_for_hw_watchpoint): Likewise.
2184 (target_can_do_single_step): Likewise.
2185 (target_insert_watchpoint): Likewise.
2186 (target_remove_watchpoint): Likewise.
2187 (target_insert_hw_breakpoint): Likewise.
2188 (target_remove_hw_breakpoint): Likewise.
2189 (target_can_accel_watchpoint_condition): Likewise.
2190 (target_can_execute_reverse): Likewise.
2191 (target_get_ada_task_ptid): Likewise.
2192 (target_filesystem_is_local): Likewise.
2193 (target_trace_init): Likewise.
2194 (target_download_tracepoint): Likewise.
2195 (target_can_download_tracepoint): Likewise.
2196 (target_download_trace_state_variable): Likewise.
2197 (target_enable_tracepoint): Likewise.
2198 (target_disable_tracepoint): Likewise.
2199 (target_trace_start): Likewise.
2200 (target_trace_set_readonly_regions): Likewise.
2201 (target_get_trace_status): Likewise.
2202 (target_get_tracepoint_status): Likewise.
2203 (target_trace_stop): Likewise.
2204 (target_trace_find): Likewise.
2205 (target_get_trace_state_variable_value): Likewise.
2206 (target_save_trace_data): Likewise.
2207 (target_upload_tracepoints): Likewise.
2208 (target_upload_trace_state_variables): Likewise.
2209 (target_get_raw_trace_data): Likewise.
2210 (target_get_min_fast_tracepoint_insn_len): Likewise.
2211 (target_set_disconnected_tracing): Likewise.
2212 (target_set_circular_trace_buffer): Likewise.
2213 (target_set_trace_buffer_size): Likewise.
2214 (target_set_trace_notes): Likewise.
2215 (target_get_tib_address): Likewise.
2216 (target_set_permissions): Likewise.
2217 (target_static_tracepoint_marker_at): Likewise.
2218 (target_static_tracepoint_markers_by_strid): Likewise.
2219 (target_traceframe_info): Likewise.
2220 (target_use_agent): Likewise.
2221 (target_can_use_agent): Likewise.
2222 (target_augmented_libraries_svr4_read): Likewise.
2223 (target_log_command): Likewise.
2224 * target.c (target_shortname): New.
2225 (target_longname): New.
2226 (target_attach_no_wait): New.
2227 (target_post_attach): New.
2228 (target_prepare_to_store): New.
2229 (target_supports_enable_disable_tracepoint): New.
2230 (target_supports_string_tracing): New.
2231 (target_supports_evaluation_of_breakpoint_conditions): New.
2232 (target_supports_dumpcore): New.
2233 (target_dumpcore): New.
2234 (target_can_run_breakpoint_commands): New.
2235 (target_files_info): New.
2236 (target_post_startup_inferior): New.
2237 (target_insert_fork_catchpoint): New.
2238 (target_remove_fork_catchpoint): New.
2239 (target_insert_vfork_catchpoint): New.
2240 (target_remove_vfork_catchpoint): New.
2241 (target_insert_exec_catchpoint): New.
2242 (target_remove_exec_catchpoint): New.
2243 (target_set_syscall_catchpoint): New.
2245 (target_can_lock_scheduler): New.
2246 (target_can_async_p): New.
2247 (target_is_async_p): New.
2248 (target_execution_direction): New.
2249 (target_extra_thread_info): New.
2250 (target_pid_to_exec_file): New.
2251 (target_thread_architecture): New.
2252 (target_find_memory_regions): New.
2253 (target_make_corefile_notes): New.
2254 (target_get_bookmark): New.
2255 (target_goto_bookmark): New.
2256 (target_stopped_by_watchpoint): New.
2257 (target_stopped_by_sw_breakpoint): New.
2258 (target_supports_stopped_by_sw_breakpoint): New.
2259 (target_stopped_by_hw_breakpoint): New.
2260 (target_supports_stopped_by_hw_breakpoint): New.
2261 (target_have_steppable_watchpoint): New.
2262 (target_can_use_hardware_watchpoint): New.
2263 (target_region_ok_for_hw_watchpoint): New.
2264 (target_can_do_single_step): New.
2265 (target_insert_watchpoint): New.
2266 (target_remove_watchpoint): New.
2267 (target_insert_hw_breakpoint): New.
2268 (target_remove_hw_breakpoint): New.
2269 (target_can_accel_watchpoint_condition): New.
2270 (target_can_execute_reverse): New.
2271 (target_get_ada_task_ptid): New.
2272 (target_filesystem_is_local): New.
2273 (target_trace_init): New.
2274 (target_download_tracepoint): New.
2275 (target_can_download_tracepoint): New.
2276 (target_download_trace_state_variable): New.
2277 (target_enable_tracepoint): New.
2278 (target_disable_tracepoint): New.
2279 (target_trace_start): New.
2280 (target_trace_set_readonly_regions): New.
2281 (target_get_trace_status): New.
2282 (target_get_tracepoint_status): New.
2283 (target_trace_stop): New.
2284 (target_trace_find): New.
2285 (target_get_trace_state_variable_value): New.
2286 (target_save_trace_data): New.
2287 (target_upload_tracepoints): New.
2288 (target_upload_trace_state_variables): New.
2289 (target_get_raw_trace_data): New.
2290 (target_get_min_fast_tracepoint_insn_len): New.
2291 (target_set_disconnected_tracing): New.
2292 (target_set_circular_trace_buffer): New.
2293 (target_set_trace_buffer_size): New.
2294 (target_set_trace_notes): New.
2295 (target_get_tib_address): New.
2296 (target_set_permissions): New.
2297 (target_static_tracepoint_marker_at): New.
2298 (target_static_tracepoint_markers_by_strid): New.
2299 (target_traceframe_info): New.
2300 (target_use_agent): New.
2301 (target_can_use_agent): New.
2302 (target_augmented_libraries_svr4_read): New.
2303 (target_log_command): New.
2304 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
2305 * infrun.c (set_schedlock_func): Adjust.
2306 * mi/mi-main.c (exec_reverse_continue): Adjust.
2307 * reverse.c (exec_reverse_once): Adjust.
2308 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
2309 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
2310 * remote-sim.c (gdbsim_target::detach): Adjust.
2311 (gdbsim_target::files_info): Adjust.
2313 2021-03-24 Tom Tromey <tom@tromey.com>
2315 * dwarf2/read.c (dw2_map_matching_symbols): Update.
2316 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
2317 (check_match, dw2_expand_symtabs_matching)
2318 (dwarf2_debug_names_index::map_matching_symbols)
2319 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
2321 2021-03-24 Keith Seitz <keiths@redhat.com>
2323 * compile/compile-cplus-types.c
2324 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
2327 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
2329 * gdbarch.sh (gdbarch_data_registry): Make static.
2330 * gdbarch.c: Re-generate.
2332 2021-03-24 Luis Machado <luis.machado@linaro.org>
2334 * NEWS: Mention memory tagging changes.
2336 2021-03-24 Luis Machado <luis.machado@linaro.org>
2338 * printcmd.c (decode_format): Handle the 'm' modifier.
2339 (do_examine): Display allocation tags when required/supported.
2340 (should_validate_memtags): New function.
2341 (print_command_1): Display memory tag mismatches.
2342 * valprint.c (show_memory_tag_violations): New function.
2343 (value_print_option_defs): Add new option "memory-tag-violations".
2344 (user_print_options) <memory_tag_violations>: Initialize to 1.
2345 * valprint.h (struct format_data) <print_tags>: New field.
2346 (value_print_options) <memory_tag_violations>: New field.
2348 2021-03-24 Luis Machado <luis.machado@linaro.org>
2350 * printcmd.c: Include gdbsupport/rsp-low.h.
2351 (memory_tag_list): New static global.
2352 (process_print_command_args): Factored out of
2354 (print_command_1): Use process_print_command_args.
2355 (show_addr_not_tagged, show_memory_tagging_unsupported)
2356 (memory_tag_command, memory_tag_print_tag_command)
2357 (memory_tag_print_logical_tag_command)
2358 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
2359 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
2360 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
2362 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
2364 2021-03-24 Luis Machado <luis.machado@linaro.org>
2366 * aarch64-linux-tdep.c
2367 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
2368 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
2370 2021-03-24 Luis Machado <luis.machado@linaro.org>
2372 * aarch64-linux-tdep.c
2373 (aarch64_linux_report_signal_info): New function.
2374 (aarch64_linux_init_abi): Register
2375 aarch64_linux_report_signal_info as the report_signal_info hook.
2376 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
2377 (SEGV_MTESERR): Define.
2379 2021-03-24 Luis Machado <luis.machado@linaro.org>
2381 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
2382 (aarch64_linux_ltag_tests): New function.
2383 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
2385 2021-03-24 Luis Machado <luis.machado@linaro.org>
2387 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
2388 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
2389 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
2390 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
2392 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
2393 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
2394 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
2395 (aarch64_linux_get_ltag): New functions.
2396 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
2397 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
2398 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
2399 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
2401 2021-03-24 Luis Machado <luis.machado@linaro.org>
2403 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
2405 (struct smaps_data): New struct.
2406 (decode_vmflags): Handle the 'mt' flag.
2407 (parse_smaps_data): New function, refactored from
2408 linux_find_memory_regions_full.
2409 (linux_address_in_memtag_page): New function.
2410 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
2411 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
2413 2021-03-24 Luis Machado <luis.machado@linaro.org>
2415 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
2416 instead of char arrays.
2418 2021-03-24 Luis Machado <luis.machado@linaro.org>
2420 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
2421 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
2422 nat/aarch64-mte-linux-ptrace.h.
2423 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
2424 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
2426 <fetch_memtags>: New method override.
2427 <store_memtags>: New method override.
2428 (aarch64_linux_nat_target::supports_memory_tagging): New method.
2429 (aarch64_linux_nat_target::fetch_memtags): New method.
2430 (aarch64_linux_nat_target::store_memtags): New method.
2431 * arch/aarch64-mte-linux.c: New file.
2432 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
2433 (AARCH64_MTE_GRANULE_SIZE): Define.
2434 (aarch64_memtag_type): New enum.
2435 (aarch64_mte_get_tag_granules): New prototype.
2436 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
2437 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
2438 * nat/aarch64-mte-linux-ptrace.c: New file.
2439 * nat/aarch64-mte-linux-ptrace.h: New file.
2441 2021-03-24 Luis Machado <luis.machado@linaro.org>
2443 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
2444 * nat/aarch64-mte-linux-ptrace.h: New file.
2446 2021-03-24 Luis Machado <luis.machado@linaro.org>
2448 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
2449 (store_mteregs_to_thread): New function.
2450 (aarch64_linux_nat_target::fetch_registers): Update to call
2451 fetch_mteregs_from_thread.
2452 (aarch64_linux_nat_target::store_registers): Update to call
2453 store_mteregs_to_thread.
2454 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
2455 (aarch64_cannot_store_register): Handle MTE registers.
2456 (aarch64_gdbarch_init): Initialize and setup MTE registers.
2457 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
2458 <has_mte>: New method.
2459 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
2461 2021-03-24 Luis Machado <luis.machado@linaro.org>
2463 * aarch64-linux-nat.c
2464 (aarch64_linux_nat_target::read_description): Take MTE flag into
2466 Slight refactor to hwcap flag checking.
2467 * aarch64-linux-tdep.c
2468 (aarch64_linux_core_read_description): Likewise.
2469 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
2471 (aarch64_read_description): Add mte_p parameter and update to use it.
2472 Update the documentation.
2473 (aarch64_gdbarch_init): Update call to aarch64_read_description.
2474 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
2475 * arch/aarch64.c: Include ../features/aarch64-mte.c.
2476 (aarch64_create_target_description): Add mte_p parameter and update
2478 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
2480 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
2481 * features/aarch64-mte.c: New file, generated.
2482 * features/aarch64-mte.xml: New file.
2484 2021-03-24 Luis Machado <luis.machado@linaro.org>
2486 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
2487 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
2488 * aarch64-linux-tdep.c: Likewise
2489 * arch/aarch64-mte-linux.h: New file.
2491 2021-03-24 Luis Machado <luis.machado@linaro.org>
2493 * remote: Include gdbsupport/selftest.h.
2494 (test_memory_tagging_functions): New function.
2495 (_initialize_remote): Register test_memory_tagging_functions.
2497 2021-03-24 Luis Machado <luis.machado@linaro.org>
2499 * remote.c (PACKET_memory_tagging_feature): New enum.
2500 (remote_memory_tagging_p): New function.
2501 (remote_protocol_features): New "memory-tagging" entry.
2502 (remote_target::remote_query_supported): Handle memory tagging
2504 (remote_target::supports_memory_tagging): Implement.
2505 (create_fetch_memtags_request, parse_fetch_memtags_reply)
2506 (create_store_memtags_request): New functions.
2507 (remote_target::fetch_memtags): Implement.
2508 (remote_target::store_memtags): Implement.
2509 (_initialize_remote): Add new "memory-tagging-feature"
2512 2021-03-24 Luis Machado <luis.machado@linaro.org>
2514 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
2515 (default_memtag_matches_p, default_set_memtags)
2516 (default_get_memtag): New functions.
2517 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
2518 (default_memtag_matches_p, default_set_memtags)
2519 (default_get_memtag): New prototypes.
2520 * gdbarch.c: Regenerate.
2521 * gdbarch.h: Regenerate.
2522 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
2523 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
2524 (enum memtag_type): New enum.
2526 2021-03-24 Luis Machado <luis.machado@linaro.org>
2528 * remote.c (remote_target) <supports_memory_tagging>: New method
2530 <fetch_memtags>: New method override.
2531 <store_memtags>: New method override.
2532 (remote_target::supports_memory_tagging): New method.
2533 (remote_target::fetch_memtags): New method.
2534 (remote_target::store_memtags): New method.
2535 * target-delegates.c: Regenerate.
2536 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
2538 <fetch_memtags>: New virtual method.
2539 <store_memtags>: New virtual method.
2540 (target_supports_memory_tagging): Define.
2541 (target_fetch_memtags): Define.
2542 (target_store_memtags): Define.
2543 * target-debug.h (target_debug_print_size_t)
2544 (target_debug_print_const_gdb_byte_vector_r)
2545 (target_debug_print_gdb_byte_vector_r): New functions.
2547 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2549 * target.h (target_longname): Remove.
2551 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2553 * target.h (target_is_pushed): Remove, update callers to use
2554 inferior::target_is_pushed instead.
2555 * target.c (target_is_pushed): Remove.
2557 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2559 * target.h (push_target): Remove, update callers to use
2560 inferior::push_target.
2561 * target.c (push_target): Remove.
2562 * inferior.h (class inferior) <push_target>: New overload.
2564 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
2566 * target.h (unpush_target): Remove, update all callers
2567 to use `inferior::unpush_target` instead.
2568 (struct target_unpusher) <operator()>: Just declare.
2569 * target.c (unpush_target): Remove.
2570 (target_unpusher::operator()): New.
2572 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2574 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
2576 (process_full_comp_unit): Validate the top-level tag before
2577 processing the first DIE.
2578 (read_func_scope): Ensure we have a valid builder.
2580 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
2582 * objc-lang.c (objc_demangle): Renamed to
2583 objc_language::demangle_symbol, and moved later in the file.
2584 (objc_language::sniff_from_mangled_name): Call demangle_symbol
2586 (objc_language::demangle_symbol): Defined outside of class
2587 declaration. The definition is the old objc_demangle with NULL
2588 changed to nullptr, and if conditions relating to nullptr pointers
2589 or null character checks made explicit.
2590 * objc-lang.h (objc_demangle): Delete declaration.
2592 2021-03-22 Martin Liska <mliska@suse.cz>
2594 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
2595 (_initialize_arm_tdep): Likewise.
2597 2021-03-20 Tom Tromey <tom@tromey.com>
2599 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
2600 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2601 * psymtab.h (make_psymbol_functions): Don't declare.
2602 * psymtab.c (make_psymbol_functions): Remove.
2603 (maintenance_print_psymbols): Update.
2604 * psympriv.h (struct psymbol_functions): Add no-argument
2606 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
2607 <partial_symtabs>: Remove.
2608 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
2609 * elfread.c (read_partial_symbols): Update.
2610 (elf_symfile_read): Remove check for existing partial symbols.
2612 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
2614 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
2616 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
2618 * dbxread.c (dbx_symfile_read): Create partial symtabs.
2619 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
2621 2021-03-20 Tom Tromey <tom@tromey.com>
2623 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2624 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2625 * symfile-debug.c (objfile::has_partial_symbols)
2626 (objfile::find_last_source_symtab)
2627 (objfile::forget_cached_source_info)
2628 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2629 (objfile::print_stats, objfile::dump)
2630 (objfile::expand_symtabs_for_function)
2631 (objfile::expand_all_symtabs)
2632 (objfile::expand_symtabs_with_fullname)
2633 (objfile::map_matching_symbols)
2634 (objfile::expand_symtabs_matching)
2635 (objfile::find_pc_sect_compunit_symtab)
2636 (objfile::map_symbol_filenames)
2637 (objfile::find_compunit_symtab_by_address)
2638 (objfile::lookup_global_symbol_language)
2639 (objfile::require_partial_symbols): Update.
2640 * psymtab.c (maintenance_print_psymbols)
2641 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2642 * objfiles.h (struct objfile) <qf>: Now a forward_list.
2643 * objfiles.c (objfile_relocate1): Update.
2644 * elfread.c (elf_symfile_read): Update.
2646 2021-03-20 Tom Tromey <tom@tromey.com>
2648 * objfiles.h (struct objfile) <psymtabs>: Remove method.
2650 2021-03-20 Tom Tromey <tom@tromey.com>
2652 * psymtab.c (psymbol_functions::count_psyms): Rename.
2653 (psymbol_functions::print_stats): Update.
2654 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
2657 2021-03-20 Tom Tromey <tom@tromey.com>
2659 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
2660 (psymbol_functions::find_pc_sect_psymtab): Rename.
2661 (psymbol_functions::find_pc_sect_compunit_symtab)
2662 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
2663 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
2665 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
2667 2021-03-20 Tom Tromey <tom@tromey.com>
2669 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
2670 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
2671 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
2673 (add_psymbol_to_bcache): Remove.
2674 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
2675 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
2677 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
2678 <add_psymbol>: Likewise.
2679 (standard_psymtab, legacy_psymtab): Likewise.
2680 * mdebugread.c (parse_partial_symbols): Update.
2681 (handle_psymbol_enumerators): Add partial_symtabs parameter.
2682 (handle_psymbol_enumerators): Update.
2683 (new_psymtab): Add partial_symtabs parameter.
2684 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
2685 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
2687 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
2688 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
2690 * dbxread.c (read_dbx_symtab): Update.
2691 (start_psymtab): Add partial_symtabs parameter.
2692 (dbx_end_psymtab): Update.
2693 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
2694 (ctf_psymtab): Add partial_symtabs parameter.
2695 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
2697 (scan_partial_symbols): Add partial_symtabs parameter.
2698 (scan_partial_symbols, elfctf_build_psymtabs)
2699 (ctf_psymtab_add_enums): Update.
2701 2021-03-20 Tom Tromey <tom@tromey.com>
2703 * symfile.c (read_symbols): Use objfile method.
2704 * symfile-debug.c (objfile::require_partial_symbols): New method.
2705 * psymtab.h (require_partial_symbols): Don't declare.
2706 * psymtab.c (require_partial_symbols): Use objfile method. Now
2708 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
2709 (psymbol_functions::lookup_symbol)
2710 (psymbol_functions::lookup_global_symbol_language)
2711 (psymbol_functions::find_last_source_symtab)
2712 (psymbol_functions::forget_cached_source_info)
2713 (psymbol_functions::print_stats)
2714 (psymbol_functions::expand_symtabs_for_function)
2715 (psymbol_functions::expand_all_symtabs)
2716 (psymbol_functions::expand_symtabs_with_fullname)
2717 (psymbol_functions::map_symbol_filenames)
2718 (psymbol_functions::map_matching_symbols)
2719 (psymbol_functions::expand_symtabs_matching)
2720 (psymbol_functions::find_compunit_symtab_by_address)
2721 (maintenance_print_psymbols, maintenance_info_psymtabs)
2722 (maintenance_check_psymtabs): Update.
2723 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
2726 2021-03-20 Tom Tromey <tom@tromey.com>
2728 * xcoffread.c (xcoff_sym_fns): Update.
2729 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
2730 * symfile-debug.c (objfile::has_partial_symbols): Use
2731 can_lazily_read_symbols.
2732 (debug_sym_read_psymbols): Remove.
2733 (debug_sym_fns, install_symfile_debug_logging): Update.
2734 * quick-symbol.h (struct quick_symbol_functions)
2735 <can_lazily_read_symbols, read_partial_symbols>: New methods.
2736 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
2737 * mipsread.c (ecoff_sym_fns): Update.
2738 * machoread.c (macho_sym_fns): Update.
2739 * elfread.c (struct lazy_dwarf_reader): New.
2740 (elf_symfile_read): Update.
2741 (read_psyms): Now a method of lazy_dwarf_reader.
2742 (elf_sym_fns): Update.
2743 (elf_sym_fns_lazy_psyms): Remove.
2744 * dbxread.c (aout_sym_fns): Update.
2745 * coffread.c (coff_sym_fns): Update.
2747 2021-03-20 Tom Tromey <tom@tromey.com>
2749 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
2750 (reread_symbols): Move reset_psymtabs call later.
2751 * objfiles.c (objfile::objfile): Don't initialize
2754 2021-03-20 Tom Tromey <tom@tromey.com>
2756 * dwarf2/read.c (dwarf2_build_psymtabs): Call
2757 set_partial_symtabs.
2758 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2759 * psymtab.h (make_psymbol_functions): Add partial_symtabs
2761 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
2763 (psymbol_functions::find_pc_sect_compunit_symtab)
2764 (psymbol_functions::print_stats, psymbol_functions::dump)
2765 (psymbol_functions::has_symbols): Update.
2766 (make_psymbol_functions, dump_psymtab_addrmap): Add
2767 partial_symtabs parameter.
2768 (maintenance_print_psymbols): Update.
2769 (psymbol_functions::expand_symtabs_matching): Update.
2770 * psympriv.h (struct psymbol_functions): Add constructor.
2771 <m_partial_symtabs>: New member.
2772 <set_partial_symtabs>: New method.
2774 2021-03-20 Tom Tromey <tom@tromey.com>
2776 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2778 (process_psymtab_comp_unit_reader)
2779 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2780 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2781 Reference psymtabs via per_bfd.
2783 2021-03-20 Tom Tromey <tom@tromey.com>
2785 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2787 (add_address_entry): Remove objfile parameter.
2788 (add_address_entry_worker): Update.
2789 (write_address_map): Replace objfile parameter with per_bfd.
2790 (write_gdbindex, write_psymtabs_to_index): Update.
2792 2021-03-20 Tom Tromey <tom@tromey.com>
2794 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2795 print_bcache parameter.
2796 * symfile-debug.c (objfile::print_stats): Add print_bcache
2798 * quick-symbol.h (struct quick_symbol_functions)
2799 <print_stats>: Add print_bcache parameter.
2800 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2802 (print_objfile_statistics): Move psymtab code to psymtab.c.
2803 * psymtab.c (count_psyms): Move from symmisc.c.
2804 (psymbol_functions::print_stats): Print partial symbol and bcache
2805 statistics. Add print_bcache parameter.
2806 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2807 (struct objfile) <print_stats>: Add print_bcache parameter.
2808 * maint.c (maintenance_print_statistics): Update.
2810 2021-03-20 Tom Tromey <tom@tromey.com>
2812 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2814 * dwarf2/read.c (create_addrmap_from_index)
2815 (create_addrmap_from_aranges): Set per_bfd addrmap.
2816 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2817 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2819 (dwarf2_read_debug_names): Don't set partial_symtabs.
2820 (dwarf2_initialize_objfile): Likewise.
2822 2021-03-20 Tom Tromey <tom@tromey.com>
2824 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2827 2021-03-20 Tom Tromey <tom@tromey.com>
2829 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2830 (~psymtab_discarder, keep): Update.
2831 <m_objfile>: Remove.
2832 <m_partial_symtabs>: New member.
2833 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2835 2021-03-20 Tom Tromey <tom@tromey.com>
2837 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2838 (xcoff_end_psymtab): Update.
2839 (scan_xcoff_symtab): Add partial_symtabs parameter.
2840 (xcoff_initial_scan): Update.
2841 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2842 * mdebugread.c (mdebug_build_psymtabs): Update.
2843 (parse_partial_symbols): Add partial_symtabs parameter.
2844 * dbxread.c (dbx_symfile_read): Update.
2845 (read_dbx_symtab): Add partial_symtabs parameter.
2846 (read_dbx_symtab): Update.
2847 (dbx_end_psymtab): Add partial_symtabs parameter.
2849 2021-03-20 Tom Tromey <tom@tromey.com>
2851 * quick-symbol.h (struct quick_symbol_functions)
2852 <relocated>: New method.
2853 * psymtab.h (struct psymbol_functions) <relocated>: New
2855 <fill_psymbol_map>: Declare method.
2856 <m_psymbol_map>: New member.
2857 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2858 (psymbol_functions::find_compunit_symtab_by_address): Update.
2859 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2860 (struct objfile) <psymbol_map>: Remove.
2861 * objfiles.c (objfile_relocate1): Update.
2863 2021-03-20 Tom Tromey <tom@tromey.com>
2865 * psympriv.h (struct psymbol_functions): New.
2866 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2867 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2868 (objfile::lookup_global_symbol_language): Update.
2869 * quick-symbol.h (struct quick_symbol_functions): Convert function
2870 pointers to methods. Add virtual destructor.
2871 (quick_symbol_functions_up): New typedef.
2872 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2873 (dwarf2_debug_names_functions): Don't declare.
2874 (make_psymbol_functions): Declare.
2875 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2876 (psymbol_functions::find_pc_sect_compunit_symtab)
2877 (psymbol_functions::lookup_symbol)
2878 (psymbol_functions::lookup_global_symbol_language)
2879 (psymbol_functions::find_last_source_symtab)
2880 (psymbol_functions::forget_cached_source_info)
2881 (psymbol_functions::print_stats, psymbol_functions::dump)
2882 (psymbol_functions::expand_symtabs_for_function)
2883 (psymbol_functions::expand_all_symtabs)
2884 (psymbol_functions::expand_symtabs_with_fullname)
2885 (psymbol_functions::map_symbol_filenames)
2886 (psymbol_functions::map_matching_symbols)
2887 (psymbol_functions::expand_symtabs_matching)
2888 (psymbol_functions::has_symbols)
2889 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2890 (psym_functions): Remove.
2891 (make_psymbol_functions): New function.
2892 * objfiles.h (struct objfile) <qf>: Change type.
2893 * elfread.c (elf_symfile_read): Update.
2894 * dwarf2/read.c (struct dwarf2_base_index_functions)
2895 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2896 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2897 (dwarf2_base_index_functions::find_last_source_symtab)
2898 (dwarf2_base_index_functions::forget_cached_source_info)
2899 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2900 (dwarf2_gdb_index::lookup_symbol)
2901 (dwarf2_base_index_functions::print_stats)
2902 (dwarf2_gdb_index::dump)
2903 (dwarf2_gdb_index::expand_symtabs_for_function)
2904 (dwarf2_base_index_functions::expand_all_symtabs)
2905 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2907 (dwarf2_gdb_index::map_matching_symbols): New method.
2908 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2909 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2910 (dwarf2_base_index_functions::map_symbol_filenames)
2911 (dwarf2_base_index_functions::has_symbols): Rename.
2912 (dwarf2_gdb_index_functions): Remove.
2913 (dwarf2_debug_names_index::lookup_symbol)
2914 (dwarf2_debug_names_index::dump)
2915 (dwarf2_debug_names_index::expand_symtabs_for_function)
2916 (dwarf2_debug_names_index::map_matching_symbols)
2917 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2918 (dwarf2_debug_names_functions): Remove.
2919 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2922 2021-03-20 Tom Tromey <tom@tromey.com>
2924 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2926 * xcoffread.c (xcoff_sym_fns): Update.
2927 * symfile.h (struct sym_fns) <qf>: Remove.
2928 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2929 * symfile-debug.c (objfile::has_partial_symbols)
2930 (objfile::find_last_source_symtab)
2931 (objfile::forget_cached_source_info)
2932 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2933 (objfile::print_stats, objfile::dump)
2934 (objfile::expand_symtabs_for_function)
2935 (objfile::expand_all_symtabs)
2936 (objfile::expand_symtabs_with_fullname)
2937 (objfile::map_matching_symbols)
2938 (objfile::expand_symtabs_matching)
2939 (objfile::find_pc_sect_compunit_symtab)
2940 (objfile::map_symbol_filenames)
2941 (objfile::find_compunit_symtab_by_address)
2942 (objfile::lookup_global_symbol_language, debug_sym_fns)
2943 (install_symfile_debug_logging): Update.
2944 * objfiles.h (struct objfile) <qf>: New member.
2945 * mipsread.c (ecoff_sym_fns): Update.
2946 * machoread.c (macho_sym_fns): Update.
2947 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2949 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2950 * dbxread.c (aout_sym_fns): Update.
2951 * coffread.c (coff_sym_fns): Update.
2953 2021-03-20 Tom Tromey <tom@tromey.com>
2955 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2956 (expand_symtabs_file_matcher_ftype)
2957 (expand_symtabs_symbol_matcher_ftype)
2958 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2959 Move to quick-symbol.h.
2960 * quick-symbol.h: New file.
2962 2021-03-20 Tom Tromey <tom@tromey.com>
2964 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2965 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2966 (basic_lookup_transparent_type_quick)
2967 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2968 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2970 * symmisc.c (print_objfile_statistics, dump_objfile)
2971 (maintenance_expand_symtabs): Update.
2972 * symfile.c (symbol_file_add_with_addrs)
2973 (expand_symtabs_matching, map_symbol_filenames): Update.
2974 * symfile-debug.c (objfile::has_partial_symbols)
2975 (objfile::find_last_source_symtab)
2976 (objfile::forget_cached_source_info)
2977 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2978 (objfile::print_stats, objfile::dump)
2979 (objfile::expand_symtabs_for_function)
2980 (objfile::expand_all_symtabs)
2981 (objfile::expand_symtabs_with_fullname)
2982 (objfile::map_matching_symbols)
2983 (objfile::expand_symtabs_matching)
2984 (objfile::find_pc_sect_compunit_symtab)
2985 (objfile::map_symbol_filenames)
2986 (objfile::find_compunit_symtab_by_address)
2987 (objfile::lookup_global_symbol_language): New methods.
2988 (debug_sym_quick_functions): Remove.
2989 (debug_sym_fns, install_symfile_debug_logging): Update.
2990 * source.c (forget_cached_source_info_for_objfile)
2991 (select_source_symtab): Update.
2992 * objfiles.h (struct objfile): Add methods corresponding to
2993 quick_symbol_functions.
2994 * objfiles.c (objfile::has_partial_symbols): Move to
2996 * linespec.c (iterate_over_all_matching_symtabs): Update.
2997 * cp-support.c (add_symbol_overload_list_qualified): Update.
2998 * ada-lang.c (add_nonlocal_symbols): Update.
3000 2021-03-20 Tom Tromey <tom@tromey.com>
3002 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
3003 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
3005 * symfile-debug.c (debug_qf_has_symbols): Return bool.
3006 * psymtab.c (psym_has_symbols): Return bool.
3007 * objfiles.c (objfile::has_partial_symbols): Return bool.
3008 * dwarf2/read.c (dw2_has_symbols): Return bool.
3010 2021-03-20 Tom Tromey <tom@tromey.com>
3012 * symfile.c (read_symbols): Update.
3013 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
3014 (objfile_has_partial_symbols): Don't declare.
3015 * objfiles.c (objfile::has_partial_symbols): Rename from
3016 objfile_has_partial_symbols.
3017 (objfile_has_symbols, have_partial_symbols): Update.
3018 * elfread.c (elf_symfile_read): Update.
3019 * dwarf2/read.c (dwarf2_has_info): Update.
3020 * coffread.c (coff_symfile_read): Update.
3022 2021-03-20 Tom Tromey <tom@tromey.com>
3024 * coffread.c: Include dwarf2/public.h.
3025 * dwarf2/frame.c: Include dwarf2/public.h.
3026 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
3027 * dwarf2/public.h: New file.
3028 * dwarf2/read.c: Include dwarf2/public.h.
3029 * elfread.c: Include dwarf2/public.h.
3030 * machoread.c: Include dwarf2/public.h.
3031 * symfile.h (dwarf2_has_info, enum dw_index_kind)
3032 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
3033 (dwarf2_build_frame_info): Move to dwarf2/public.h.
3034 * xcoffread.c: Include dwarf2/public.h.
3036 2021-03-20 Tom Tromey <tom@tromey.com>
3038 * symfile.h (enum dwarf2_section_enum)
3039 (dwarf2_get_section_info): Move to dwarf2/read.h.
3040 * dwarf2/read.h (enum dwarf2_section_enum)
3041 (dwarf2_get_section_info): Move from symfile.h.
3043 2021-03-19 Pedro Alves <pedro@palves.net>
3045 * thread.c (any_thread_of_inferior): Check if there's a selected
3046 thread before calling inferior_thread().
3048 2021-03-18 Tom Tromey <tromey@adacore.com>
3050 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
3052 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
3053 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
3055 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3057 * python/py-param.c (get_set_value): Update header comment.
3059 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
3061 * infrun.c (check_multi_target_resumption): Remove argument to
3062 all_non_exited_inferiors.
3064 2021-03-16 Christian Biesinger <cbiesinger@google.com>
3066 * windows-nat.c (windows_init_thread_list): Add message to
3069 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
3071 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
3072 well as PyLong_Check for Python 2.
3074 2021-03-15 Tom Tromey <tromey@adacore.com>
3077 * rust-exp.y (maker_map): Use gdb::hash_enum.
3078 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
3080 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3082 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
3085 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
3087 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
3088 parameter, adjust caller.
3090 2021-03-15 Tom Tromey <tromey@adacore.com>
3092 * ada-exp.y (simple_exp): Always push a result for unary '+'.
3094 2021-03-15 Tom Tromey <tromey@adacore.com>
3096 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
3097 ada_ensure_varsize_limit.
3099 2021-03-15 Tom Tromey <tromey@adacore.com>
3101 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
3103 * ada-exp.y (maybe_overload): New function.
3104 (ada_wrap_overload): New function.
3105 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
3106 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
3107 (or_else_exp, xor_exp, primary): Update.
3109 2021-03-15 Tom Tromey <tromey@adacore.com>
3112 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
3113 call for tagged type.
3115 2021-03-15 Tom Tromey <tromey@adacore.com>
3117 * ada-exp.y (exp1): Handle resolution of the right hand side of an
3120 2021-03-15 Tom Tromey <tromey@adacore.com>
3122 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
3124 (ada_assign_operation::evaluate): Update.
3125 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
3128 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
3130 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
3132 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
3134 * python/python.c (gdbpy_source_objfile_script): Use
3135 make_scoped_restore to restore gdbpy_current_objfile.
3136 (gdbpy_execute_objfile_script): Likewise.
3138 2021-03-14 Tom Tromey <tom@tromey.com>
3140 * dwarf2/read.c (read_attribute_value): Use cu_header
3143 2021-03-14 Tom Tromey <tom@tromey.com>
3145 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
3146 (peek_die_abbrev): Use reader.abfd.
3148 2021-03-14 Tom Tromey <tom@tromey.com>
3150 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
3153 2021-03-13 Tom Tromey <tom@tromey.com>
3155 * dwarf2/read.c (struct partial_die_info): Update.
3156 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
3157 (load_partial_dies, partial_die_info::partial_die_info): Update.
3158 * dwarf2/abbrev.h (lookup_abbrev): Constify.
3160 2021-03-13 Tom Tromey <tom@tromey.com>
3162 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
3164 2021-03-12 Christian Biesinger <cbiesinger@google.com>
3167 * cp-support.c: Use scoped_segv_handler_restore.
3168 * event-top.c (thread_local_segv_handler): Made static.
3169 (scoped_segv_handler_restore::scoped_segv_handler_restore):
3171 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
3173 * event-top.h (class scoped_segv_handler_restore): New class.
3174 (thread_local_segv_handler): Removed.
3176 2021-03-10 Tom Tromey <tromey@adacore.com>
3178 * parser-defs.h (parser_state): Change completion to bool.
3179 <parse_completion>: Likewise.
3180 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3181 (ada_resolve_variable, ada_resolve_function): Update.
3182 * ada-lang.c (ada_find_operator_symbol): Change
3183 parse_completion to bool.
3184 (ada_resolve_funcall, ada_resolve_variable)
3185 (ada_resolve_function): Likewise.
3187 2021-03-09 Tom Tromey <tromey@adacore.com>
3189 * eval.c (operation::evaluate_funcall): Use function formal
3190 parameter types when evaluating.
3192 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3194 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
3195 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
3196 and owner to m_owner.
3198 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
3200 * f-exp.h (eval_op_f_loc): Declare.
3201 (expr::fortran_loc_operation): New typedef.
3202 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
3204 (f77_keywords): Add LOC keyword.
3205 * f-lang.c (eval_op_f_loc): New function.
3206 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
3208 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3210 * f-exp.h (eval_op_f_array_shape): Declare.
3211 (fortran_array_shape_operation): New type.
3212 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
3214 (f77_keywords): Add "shape" keyword.
3215 * f-lang.c (fortran_array_shape): New function.
3216 (eval_op_f_array_shape): New function.
3217 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
3219 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3221 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
3223 (expr::fortran_array_size_1arg): New type.
3224 (expr::fortran_array_size_2arg): Likewise.
3225 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
3226 UNOP_OR_BINOP_INTRINSIC.
3227 (f77_keywords): Add "size" keyword.
3228 * f-lang.c (fortran_array_size): New function.
3229 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
3230 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
3232 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3234 * f-exp.h (eval_op_f_rank): Declare.
3235 (expr::fortran_rank_operation): New typedef.
3236 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
3238 (f77_keywords): Add "rank" keyword.
3239 * f-lang.c (eval_op_f_rank): New function.
3240 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
3242 2021-03-08 Tom Tromey <tom@tromey.com>
3244 * printcmd.c (set_command): Remove null check.
3245 * value.c (init_if_undefined_command): Remove null check.
3247 2021-03-08 Tom Tromey <tom@tromey.com>
3249 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
3251 * p-exp.y (variable): Update.
3252 * go-exp.y (variable): Update.
3253 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
3254 Remove overload for objfile.
3255 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
3257 (check_objfile): Likewise.
3258 (dump_for_expression): Likewise. Remove overload for objfile.
3259 (class var_msym_value_operation): Use bound_minimal_symbol.
3260 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
3262 (var_msym_value_operation::evaluate_for_address)
3263 (var_msym_value_operation::evaluate_for_sizeof)
3264 (var_msym_value_operation::evaluate_for_cast): Update.
3265 * d-exp.y (PrimaryExpression): Update.
3266 * c-exp.y (variable): Update.
3267 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
3268 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3270 * ada-exp.y (write_var_or_type): Update.
3272 2021-03-08 Tom Tromey <tom@tromey.com>
3274 * parser-defs.h (exp_uses_objfile): Return bool.
3275 * parse.c (exp_uses_objfile): Return bool.
3277 2021-03-08 Tom Tromey <tom@tromey.com>
3279 * value.h (eval_skip_value): Don't declare.
3280 * opencl-lang.c (eval_opencl_assign): Update.
3281 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
3282 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3283 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
3284 * expression.h (enum noside) <EVAL_SKIP>: Remove.
3285 * expop.h (typeof_operation::evaluate)
3286 (decltype_operation::evaluate, unop_addr_operation::evaluate)
3287 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
3288 (cxx_cast_operation::evaluate): Update.
3289 * eval.c (eval_skip_value): Remove.
3290 (eval_op_scope, eval_op_var_entry_value)
3291 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
3292 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
3293 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
3294 (eval_op_binary, eval_op_subscript, eval_op_equal)
3295 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
3296 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
3297 (eval_op_complement, eval_op_lognot, eval_op_ind)
3298 (eval_op_memval, eval_op_preinc, eval_op_predec)
3299 (eval_op_postinc, eval_op_postdec, eval_op_type)
3300 (eval_binop_assign_modify, eval_op_objc_msgcall)
3301 (eval_multi_subscript, logical_and_operation::evaluate)
3302 (logical_or_operation::evaluate, array_operation::evaluate)
3303 (operation::evaluate_for_cast)
3304 (var_msym_value_operation::evaluate_for_cast)
3305 (var_value_operation::evaluate_for_cast): Update.
3306 * c-lang.c (c_string_operation::evaluate): Update.
3307 * c-exp.h (objc_nsstring_operation::evaluate)
3308 (objc_selector_operation::evaluate): Update.
3309 * ada-lang.c (ada_assign_operation::evaluate)
3310 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
3311 (ada_atr_size): Update.
3313 2021-03-08 Tom Tromey <tom@tromey.com>
3315 * eval.c: Merge "namespace" scopes.
3317 2021-03-08 Tom Tromey <tom@tromey.com>
3319 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
3321 * parse.c (expr_builder::expr_builder, expr_builder::release):
3324 2021-03-08 Tom Tromey <tom@tromey.com>
3326 * parse.c (expression::expression, expression::~expression):
3328 * expression.h (struct expression): Inline constructor. Remove
3331 2021-03-08 Tom Tromey <tom@tromey.com>
3333 * std-operator.def (BINOP_END): Remove.
3334 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
3335 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
3336 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
3337 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
3338 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
3341 2021-03-08 Tom Tromey <tom@tromey.com>
3343 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
3345 2021-03-08 Tom Tromey <tom@tromey.com>
3347 * std-operator.def (OP_EXTENDED0): Remove.
3349 2021-03-08 Tom Tromey <tom@tromey.com>
3351 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
3352 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
3355 2021-03-08 Tom Tromey <tom@tromey.com>
3357 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
3358 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
3360 2021-03-08 Tom Tromey <tom@tromey.com>
3362 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
3363 * ada-lang.c (ada_binop_minmax): Update.
3364 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3365 Use BINOP_MIN and BINOP_MAX.
3367 2021-03-08 Tom Tromey <tom@tromey.com>
3369 * value.h (evaluate_subexp_with_coercion): Don't declare.
3370 * parse.c (exp_descriptor_standard): Remove.
3371 (expr_builder::expr_builder, expr_builder::release): Update.
3372 (expression::expression): Remove size_t parameter.
3373 (expression::~expression): Simplify.
3374 (expression::resize): Remove.
3375 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
3376 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
3377 (write_exp_elt_longcst, write_exp_elt_floatcst)
3378 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
3379 (write_exp_string_vector, write_exp_bitstring): Remove.
3380 * p-lang.h (class pascal_language) <opcode_print_table,
3381 op_print_tab>: Remove.
3382 * p-lang.c (pascal_language::op_print_tab): Remove.
3383 * opencl-lang.c (class opencl_language) <opcode_print_table>:
3385 * objc-lang.c (objc_op_print_tab): Remove.
3386 (class objc_language) <opcode_print_table>: Remove.
3387 * m2-lang.h (class m2_language) <opcode_print_table,
3388 op_print_tab>: Remove.
3389 * m2-lang.c (m2_language::op_print_tab): Remove.
3390 * language.h (struct language_defn) <post_parser, expression_ops,
3391 opcode_print_table>: Remove.
3392 * language.c (language_defn::expression_ops)
3393 (auto_or_unknown_language::opcode_print_table): Remove.
3394 * go-lang.h (class go_language) <opcode_print_table,
3395 op_print_tab>: Remove.
3396 * go-lang.c (go_language::op_print_tab): Remove.
3397 * f-lang.h (class f_language) <opcode_print_table>: Remove
3398 <op_print_tab>: Remove.
3399 * f-lang.c (f_language::op_print_tab): Remove.
3400 * expression.h (union exp_element): Remove.
3401 (struct expression): Remove size_t parameter from constructor.
3403 <first_opcode>: Update.
3404 <nelts, elts>: Remove.
3405 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
3406 (evaluate_subexp_standard, print_expression, op_string)
3407 (dump_raw_expression): Don't declare.
3408 * expprint.c (print_expression, print_subexp)
3409 (print_subexp_funcall, print_subexp_standard, op_string)
3410 (dump_raw_expression, dump_subexp, dump_subexp_body)
3411 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
3412 (dump_prefix_expression): Update.
3413 * eval.c (evaluate_subexp): Remove.
3414 (evaluate_expression, evaluate_type): Update.
3415 (evaluate_subexpression_type): Remove.
3416 (fetch_subexp_value): Remove "pc" parameter. Update.
3417 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
3418 (evaluate_subexp_standard, evaluate_subexp_for_address)
3419 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
3420 (evaluate_subexp_for_cast): Remove.
3421 (parse_and_eval_type): Update.
3422 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3423 * d-lang.c (d_op_print_tab): Remove.
3424 (class d_language) <opcode_print_table>: Remove.
3425 * c-lang.h (c_op_print_tab): Don't declare.
3426 * c-lang.c (c_op_print_tab): Remove.
3427 (class c_language, class cplus_language, class asm_language, class
3428 minimal_language) <opcode_print_table>: Remove.
3429 * breakpoint.c (update_watchpoint, watchpoint_check)
3430 (watchpoint_exp_is_const, watch_command_1): Update.
3431 * ax-gdb.h (union exp_element): Don't declare.
3432 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
3433 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
3434 (gen_expr_binop_rest): Remove.
3435 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
3436 * ada-lang.c (ada_op_print_tab): Remove.
3437 (class ada_language) <post_parser, opcode_print_table>: Remove.
3439 2021-03-08 Tom Tromey <tom@tromey.com>
3441 * go-lang.c (go_language::expression_ops): Don't declare.
3442 * go-lang.h (class go_language) <expression_ops>: Remove.
3443 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
3445 (class opencl_language) <expression_ops>: Remove.
3446 * d-lang.c (class d_language) <expression_ops>: Remove.
3447 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
3448 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
3449 (class c_language, class cplus_language, class asm_language)
3450 (class minimal_language) <expression_ops>: Remove.
3452 2021-03-08 Tom Tromey <tom@tromey.com>
3454 * ada-lang.c (resolve_subexp, replace_operator_with_call)
3455 (evaluate_subexp_type, assign_aggregate)
3456 (aggregate_assign_positional, aggregate_assign_from_choices)
3457 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
3458 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
3459 (ada_operator_check, ada_forward_operator_length)
3460 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
3462 (post_parser): Update.
3463 (class ada_language) <expresssion_ops>: Remove.
3465 2021-03-08 Tom Tromey <tom@tromey.com>
3467 * m2-lang.h (class m2_language) <expresssion_ops,
3468 exp_descriptor_modula2>: Remove.
3469 * m2-lang.c (evaluate_subexp_modula2)
3470 (m2_language::exp_descriptor_modula2): Remove.
3472 2021-03-08 Tom Tromey <tom@tromey.com>
3474 * f-lang.h (class f_language) <expresssion_ops>: Remove.
3475 <exp_descriptor_tab>: Remove.
3476 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
3477 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
3478 (print_subexp_f, dump_subexp_body_f, operator_check_f)
3479 (f_language::exp_descriptor_tab, fortran_prepare_argument):
3482 2021-03-08 Tom Tromey <tom@tromey.com>
3484 * rust-lang.h (class rust_language) <expression_ops,
3485 exp_descriptor_tab>: Remove.
3486 * rust-lang.c (rust_evaluate_funcall): Remove.
3487 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
3489 (rust_evaluate_subexp): Remove.
3490 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
3491 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
3492 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
3494 2021-03-08 Tom Tromey <tom@tromey.com>
3496 * ada-exp.y: Create operations.
3497 (empty_stoken): Remove.
3498 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
3499 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
3500 (components): New global.
3501 (push_component, choice_component, pop_component, pop_components):
3503 (associations): New global
3504 (push_association, pop_association, pop_associations): New
3506 (ada_parse): Update.
3507 (write_var_from_sym, write_int): Create operations.
3508 (write_exp_op_with_string): Remove.
3509 (write_object_renaming, write_selectors, write_ambiguous_var)
3510 (write_var_or_type, write_name_assoc): Create operations.
3511 * ada-lang.h (ada_index_type): Declare.
3512 * ada-lang.c (ada_index_type): No longer static.
3514 2021-03-08 Tom Tromey <tom@tromey.com>
3516 * f-exp.y: Create operations.
3517 (f_language::parser): Update.
3519 2021-03-08 Tom Tromey <tom@tromey.com>
3521 * m2-exp.y: Create operations.
3522 (m2_language::parser): Update.
3524 2021-03-08 Tom Tromey <tom@tromey.com>
3526 * p-exp.y: Create operations.
3527 (pascal_language::parser): Update.
3529 2021-03-08 Tom Tromey <tom@tromey.com>
3531 * d-exp.y: Create operations.
3534 2021-03-08 Tom Tromey <tom@tromey.com>
3536 * go-exp.y: Create operations.
3537 (go_language::parser): Update.
3539 2021-03-08 Tom Tromey <tom@tromey.com>
3541 * objc-lang.c (end_msglist): Create operations.
3542 * c-exp.y: Change parser to create operations.
3543 (write_destructor_name): Remove.
3546 2021-03-08 Tom Tromey <tom@tromey.com>
3548 * rust-exp.y: Create operations.
3549 (rust_parser::convert_params_to_expression): Change return type.
3550 (binop_maker_ftype): New typedef.
3551 (maker_map): New global.
3552 (rust_parser::convert_ast_to_expression): Change return type.
3553 (rust_language::parser): Update.
3554 (_initialize_rust_exp): Initialize maker_map.
3556 2021-03-08 Tom Tromey <tom@tromey.com>
3558 * stap-probe.c (binop_maker_ftype): New typedef.
3559 (stap_maker_map): New global.
3560 (stap_make_binop): New function.
3561 (stap_parse_register_operand): Return operation_up.
3562 (stap_parse_single_operand, stap_parse_argument_conditionally)
3563 (stap_parse_argument_1): Likewise.
3564 (stap_parse_argument): Create operations.
3565 (stap_probe::parse_arguments): Update.
3566 (_initialize_stap_probe): Initialize stap_maker_map.
3567 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
3569 * i386-tdep.h (i386_stap_parse_special_token): Change return
3571 * i386-tdep.c (i386_stap_parse_special_token_triplet)
3572 (i386_stap_parse_special_token_three_arg_disp)
3573 (i386_stap_parse_special_token): Change return type.
3574 * gdbarch.sh (stap_parse_special_token): Change return type.
3575 * gdbarch.c: Rebuild.
3576 * gdbarch.h: Rebuild.
3577 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
3579 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
3582 2021-03-08 Tom Tromey <tom@tromey.com>
3584 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
3585 * gdbarch.h: Rebuild.
3586 * gdbarch.c: Rebuild.
3587 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
3588 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
3590 (amd64_dtrace_parse_probe_argument): Update.
3592 2021-03-08 Tom Tromey <tom@tromey.com>
3594 * parser-defs.h (struct parser_state) <push, push_new,
3595 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
3596 wrap2>: New methods.
3597 <m_operations>: New member.
3598 * parse.c (parser_state::push_c_string)
3599 (parser_state::push_symbol, parser_state::push_dollar): New
3602 2021-03-08 Tom Tromey <tom@tromey.com>
3604 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
3606 (struct parser_state) <mark_struct_expression>: New method.
3607 * parse.c (parser_state::mark_struct_expression): Update assert.
3608 (parser_state::mark_struct_expression): New method.
3609 (parser_state::mark_completion_tag): Update assert.
3610 (parse_expression_for_completion): Handle expout_last_op.
3612 2021-03-08 Tom Tromey <tom@tromey.com>
3614 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
3616 * value.h (fetch_subexp_value): Add "op" parameter.
3617 * value.c (init_if_undefined_command): Update.
3618 * tracepoint.c (validate_actionline, encode_actions_1): Update.
3619 * stap-probe.c (stap_probe::compile_to_ax): Update.
3620 * printcmd.c (set_command): Update.
3621 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
3623 * parser-defs.h (struct expr_builder) <set_operation>: New
3625 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
3626 * expression.h (struct expression) <first_opcode>: Update.
3628 * expprint.c (dump_raw_expression, dump_prefix_expression):
3630 * expop.h (class var_value_operation) <get_symbol>: New method.
3631 (class register_operation) <get_name>: New method.
3632 (class equal_operation): No longer a typedef, now a subclass.
3633 (class unop_memval_operation) <get_type>: New method.
3634 (class assign_operation) <get_lhs>: New method.
3635 (class unop_cast_operation) <get_type>: New method.
3636 * eval.c (evaluate_expression, evaluate_type)
3637 (evaluate_subexpression_type): Update.
3638 (fetch_subexp_value): Add "op" parameter.
3639 (parse_and_eval_type): Update.
3640 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
3641 * breakpoint.c (update_watchpoint, watchpoint_check)
3642 (watchpoint_exp_is_const, watch_command_1): Update.
3643 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
3646 2021-03-08 Tom Tromey <tom@tromey.com>
3648 * ada-lang.c (ada_value_binop): Do not use op_string.
3650 2021-03-08 Tom Tromey <tom@tromey.com>
3652 * expprint.c (dump_for_expression): New overload.
3653 * expop.h (check_objfile, dump_for_expression): Declare new
3655 * ada-lang.c (check_objfile): New overload.
3656 (assign_component, ada_aggregate_component::uses_objfile)
3657 (ada_aggregate_component::dump, ada_aggregate_component::assign)
3658 (ada_aggregate_component::assign_aggregate)
3659 (ada_positional_component::uses_objfile)
3660 (ada_positional_component::dump, ada_positional_component::assign)
3661 (ada_discrete_range_association::uses_objfile)
3662 (ada_discrete_range_association::dump)
3663 (ada_discrete_range_association::assign)
3664 (ada_name_association::uses_objfile, ada_name_association::dump)
3665 (ada_name_association::assign)
3666 (ada_choices_component::uses_objfile, ada_choices_component::dump)
3667 (ada_choices_component::assign)
3668 (ada_others_component::uses_objfile, ada_others_component::dump)
3669 (ada_others_component::assign, ada_assign_operation::evaluate):
3671 * ada-exp.h (ada_string_operation) <get_name>: New method.
3672 (class ada_assign_operation): New.
3673 (class ada_component): New.
3674 (ada_component_up): New typedef.
3675 (class ada_aggregate_operation, class ada_aggregate_component)
3676 (class ada_positional_component, class ada_others_component)
3677 (class ada_association): New.
3678 (ada_association_up): New typedef.
3679 (class ada_choices_component)
3680 (class ada_discrete_range_association)
3681 (class ada_name_association): New.
3683 2021-03-08 Tom Tromey <tom@tromey.com>
3685 * ada-lang.c (ada_var_value_operation::resolve)
3686 (ada_funcall_operation::resolve)
3687 (ada_ternop_slice_operation::resolve): New methods.
3688 * ada-exp.h (struct ada_resolvable): New.
3689 (class ada_var_value_operation): Derive from ada_resolvable.
3690 <get_block, resolve>: New methods.
3691 (class ada_funcall_operation): Derive from ada_resolvable.
3692 <resolve>: New method.
3693 (class ada_ternop_slice_operation): Derive from ada_resolvable.
3694 <resolve>: New method.
3696 2021-03-08 Tom Tromey <tom@tromey.com>
3698 * ada-lang.c (ada_funcall_operation::evaluate): New method.
3699 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
3701 (class ada_funcall_operation): New.
3703 2021-03-08 Tom Tromey <tom@tromey.com>
3705 * ada-lang.c (ada_structop_operation::evaluate): New method.
3706 * ada-exp.h (class ada_structop_operation): New.
3708 2021-03-08 Tom Tromey <tom@tromey.com>
3710 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
3711 * ada-exp.h (class ada_unop_ind_operation): New.
3713 2021-03-08 Tom Tromey <tom@tromey.com>
3715 * ada-lang.c (ada_binop_exp): No longer static.
3716 * ada-exp.h (ada_binop_exp_operation): New typedef.
3718 2021-03-08 Tom Tromey <tom@tromey.com>
3720 * ada-lang.c (ada_val_atr): No longer static.
3721 (ada_atr_val_operation::evaluate): New method.
3722 * ada-exp.h (class ada_atr_val_operation): New.
3724 2021-03-08 Tom Tromey <tom@tromey.com>
3726 * ada-lang.c (ada_pos_atr): No longer static.
3727 * ada-exp.h (ada_pos_operation): New typedef.
3729 2021-03-08 Tom Tromey <tom@tromey.com>
3731 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
3733 (ada_evaluate_subexp): Use it.
3735 2021-03-08 Tom Tromey <tom@tromey.com>
3737 * ada-lang.c (ada_binop_minmax): No longer static.
3738 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
3741 2021-03-08 Tom Tromey <tom@tromey.com>
3743 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
3745 * ada-exp.h (class ada_var_msym_value_operation): New.
3747 2021-03-08 Tom Tromey <tom@tromey.com>
3749 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
3750 (ada_var_value_operation::evaluate): New methods.
3751 * ada-exp.h (class ada_var_value_operation): New.
3753 2021-03-08 Tom Tromey <tom@tromey.com>
3755 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
3756 * ada-exp.h (class ada_unop_atr_operation): New.
3758 2021-03-08 Tom Tromey <tom@tromey.com>
3760 * ada-lang.c (ada_binop_in_bounds): No longer static.
3761 * ada-exp.h (class ada_binop_in_bounds_operation): New.
3763 2021-03-08 Tom Tromey <tom@tromey.com>
3765 * ada-lang.c (ada_ternop_slice): No longer static.
3766 * ada-exp.h (class ada_ternop_slice_operation): New.
3768 2021-03-08 Tom Tromey <tom@tromey.com>
3770 * ada-exp.h (ada_bitwise_operation): New template class.
3771 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3772 (ada_bitwise_xor_operation): New typedefs.
3774 2021-03-08 Tom Tromey <tom@tromey.com>
3776 * ada-lang.c (ada_equal_binop): No longer static.
3777 * ada-exp.h (class ada_binop_equal_operation): New.
3779 2021-03-08 Tom Tromey <tom@tromey.com>
3781 * ada-lang.c (ada_mult_binop): No longer static.
3782 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3783 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3785 2021-03-08 Tom Tromey <tom@tromey.com>
3787 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3788 * ada-exp.h (class ada_binop_addsub_operation): New.
3790 2021-03-08 Tom Tromey <tom@tromey.com>
3792 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3793 (ada_resolve_variable): Declare.
3794 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3795 (ada_resolve_variable): New functions.
3796 (resolve_subexp): Update.
3798 2021-03-08 Tom Tromey <tom@tromey.com>
3800 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3802 * c-exp.h (class opencl_ternop_cond_operation): New.
3804 2021-03-08 Tom Tromey <tom@tromey.com>
3806 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3808 * c-exp.h (class opencl_logical_binop_operation): New.
3810 2021-03-08 Tom Tromey <tom@tromey.com>
3812 * opencl-lang.c (opencl_structop_operation::evaluate): New
3814 * c-exp.h (class opencl_structop_operation): New.
3816 2021-03-08 Tom Tromey <tom@tromey.com>
3818 * opencl-lang.c (opencl_logical_not): No longer static. Change
3820 (evaluate_subexp_opencl): Update.
3821 * c-exp.h (opencl_notequal_operation): New typedef.
3823 2021-03-08 Tom Tromey <tom@tromey.com>
3825 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3826 static. Change parameters.
3827 (eval_opencl_assign): No longer static. Add "op" parameter.
3828 (evaluate_subexp_opencl): Update.
3829 * c-exp.h (opencl_binop_operation): New template class.
3830 (opencl_assign_operation, opencl_equal_operation)
3831 (opencl_notequal_operation, opencl_less_operation)
3832 (opencl_gtr_operation, opencl_geq_operation)
3833 (opencl_leq_operation): New typedefs.
3835 2021-03-08 Tom Tromey <tom@tromey.com>
3837 * opencl-lang.c (opencl_value_cast): No longer static.
3838 * c-exp.h (opencl_cast_type_operation): New typedef.
3840 2021-03-08 Tom Tromey <tom@tromey.com>
3842 * f-exp.h (eval_op_f_allocated): Declare.
3843 (fortran_allocated_operation): New typedef.
3844 * f-lang.c (eval_op_f_allocated): No longer static.
3846 2021-03-08 Tom Tromey <tom@tromey.com>
3848 * f-lang.c (eval_op_f_associated): New functions.
3849 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3852 2021-03-08 Tom Tromey <tom@tromey.com>
3854 * f-lang.c (fortran_bound_1arg::evaluate)
3855 (fortran_bound_2arg::evaluate): New methods.
3856 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3859 2021-03-08 Tom Tromey <tom@tromey.com>
3861 * expop.h (class unop_addr_operation) <get_expression>: New
3863 * f-lang.c (fortran_undetermined::value_subarray)
3864 (fortran_undetermined::evaluate): New methods.
3865 (fortran_prepare_argument): New overload.
3866 * f-exp.h (class fortran_range_operation)
3867 (class fortran_undetermined): New classes.
3869 2021-03-08 Tom Tromey <tom@tromey.com>
3871 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3872 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3875 2021-03-08 Tom Tromey <tom@tromey.com>
3877 * expression.h (class operation) <evaluate_funcall>: New methods.
3878 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3879 (class var_value_operation) <evaluate_funcall>: New method.
3880 (class structop_base_operation) <evaluate_funcall>: New method.
3881 (class var_msym_value_operation) <evaluate_funcall>: New method.
3882 (class structop_member_base): New class.
3883 (class structop_member_operation): Derive from
3884 structop_member_base.
3885 (class structop_mptr_operation): Derive from
3886 structop_member_base.
3887 (class funcall_operation): New class.
3888 * eval.c (operation::evaluate_funcall)
3889 (var_value_operation::evaluate_funcall)
3890 (scope_operation::evaluate_funcall)
3891 (structop_member_base::evaluate_funcall)
3892 (structop_base_operation::evaluate_funcall): New methods.
3894 2021-03-08 Tom Tromey <tom@tromey.com>
3896 * expop.h (class array_operation): New.
3897 * eval.c (array_operation::evaluate_struct_tuple)
3898 (array_operation::evaluate): New methods.
3900 2021-03-08 Tom Tromey <tom@tromey.com>
3902 * expop.h (class adl_func_operation): New.
3903 * eval.c (adl_func_operation::evaluate): New method.
3905 2021-03-08 Tom Tromey <tom@tromey.com>
3907 * ada-lang.c (ada_unop_in_range): No longer static.
3908 * ada-exp.h (class ada_unop_range_operation): New.
3910 2021-03-08 Tom Tromey <tom@tromey.com>
3912 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3914 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3915 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3917 2021-03-08 Tom Tromey <tom@tromey.com>
3919 * expop.h (class logical_and_operation)
3920 (class logical_or_operation): New.
3921 * eval.c (logical_and_operation::evaluate)
3922 (logical_or_operation::evaluate): New methods.
3923 * ax-gdb.c (logical_and_operation::do_generate_ax)
3924 (logical_or_operation::do_generate_ax): New methods.
3926 2021-03-08 Tom Tromey <tom@tromey.com>
3928 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3930 * m2-exp.h: New file.
3932 2021-03-08 Tom Tromey <tom@tromey.com>
3934 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3935 * rust-exp.h (class rust_aggregate_operation): New.
3937 2021-03-08 Tom Tromey <tom@tromey.com>
3939 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3941 * rust-exp.h (class rust_struct_anon): New.
3942 (class rust_structop): New.
3944 2021-03-08 Tom Tromey <tom@tromey.com>
3946 * rust-lang.c (rust_range): No longer static.
3947 * rust-exp.h (class rust_range_operation): New.
3949 2021-03-08 Tom Tromey <tom@tromey.com>
3951 * rust-lang.c (rust_subscript): No longer static.
3952 * rust-exp.h (class rust_subscript_operation): New.
3954 2021-03-08 Tom Tromey <tom@tromey.com>
3956 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3958 (rust_evaluate_subexp): Update.
3959 * rust-exp.h (class rust_unop_ind_operation): New.
3961 2021-03-08 Tom Tromey <tom@tromey.com>
3963 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3964 longer static. Add "opcode" parameter.
3965 (rust_evaluate_subexp): Update.
3966 * rust-exp.h: New file.
3968 2021-03-08 Tom Tromey <tom@tromey.com>
3970 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3971 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3972 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3973 (evaluate_subexp_f): Update.
3974 * f-exp.h: New file.
3976 2021-03-08 Tom Tromey <tom@tromey.com>
3978 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3979 * ada-exp.h (class ada_ternop_range_operation): New.
3981 2021-03-08 Tom Tromey <tom@tromey.com>
3983 * ada-lang.c (ada_qual_operation::evaluate): New method.
3984 * ada-exp.h (class ada_qual_operation): New.
3986 2021-03-08 Tom Tromey <tom@tromey.com>
3988 * ada-lang.c (ada_string_operation::evaluate): New method.
3989 * ada-exp.h (class ada_string_operation): New.
3991 2021-03-08 Tom Tromey <tom@tromey.com>
3993 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3994 * ada-exp.h: New file.
3996 2021-03-08 Tom Tromey <tom@tromey.com>
3998 * expop.h (class multi_subscript_operation): New.
3999 * eval.c (multi_subscript_operation::evaluate): New method.
4001 2021-03-08 Tom Tromey <tom@tromey.com>
4003 * eval.c (objc_msgcall_operation::evaluate): New method.
4004 * c-exp.h (class objc_msgcall_operation): New.
4006 2021-03-08 Tom Tromey <tom@tromey.com>
4008 * expop.h (class var_value_operation): New.
4009 * eval.c (var_value_operation::evaluate)
4010 (var_value_operation::evaluate_for_address)
4011 (var_value_operation::evaluate_with_coercion)
4012 (var_value_operation::evaluate_for_sizeof)
4013 (var_value_operation::evaluate_for_cast): New methods.
4014 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
4016 2021-03-08 Tom Tromey <tom@tromey.com>
4018 * expop.h (cxx_cast_ftype): New typedef.
4019 (cxx_cast_operation): New template.
4020 (dynamic_cast_operation, reinterpret_cast_operation): New
4023 2021-03-08 Tom Tromey <tom@tromey.com>
4025 * expop.h (class unop_cast_type_operation): New.
4026 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
4029 2021-03-08 Tom Tromey <tom@tromey.com>
4031 * expop.h (class unop_cast_operation): New.
4032 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
4034 2021-03-08 Tom Tromey <tom@tromey.com>
4036 * expop.h (class assign_modify_operation): New.
4037 * eval.c (eval_binop_assign_modify): No longer static.
4038 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
4040 2021-03-08 Tom Tromey <tom@tromey.com>
4042 * expop.h (class assign_operation): New.
4043 * ax-gdb.c (assign_operation::do_generate_ax): New method.
4045 2021-03-08 Tom Tromey <tom@tromey.com>
4047 * expop.h (class type_instance_operation): New.
4048 * eval.c (type_instance_operation::evaluate): New method.
4050 2021-03-08 Tom Tromey <tom@tromey.com>
4052 * expop.h (class op_this_operation): New.
4053 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
4055 2021-03-08 Tom Tromey <tom@tromey.com>
4057 * expop.h (class unop_memval_operation)
4058 (class unop_memval_type_operation): New.
4059 * eval.c (eval_op_memval): No longer static.
4060 (unop_memval_operation::evaluate_for_address)
4061 (unop_memval_type_operation::evaluate_for_address)
4062 (unop_memval_operation::evaluate_for_sizeof)
4063 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
4064 * ax-gdb.c (unop_memval_operation::do_generate_ax)
4065 (unop_memval_type_operation::do_generate_ax): New methods.
4067 2021-03-08 Tom Tromey <tom@tromey.com>
4069 * expop.h (class unop_alignof_operation): New.
4070 * eval.c (eval_op_alignof): No longer static.
4072 2021-03-08 Tom Tromey <tom@tromey.com>
4074 * expop.h (class unop_sizeof_operation): New.
4075 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
4077 2021-03-08 Tom Tromey <tom@tromey.com>
4079 * expop.h (class unop_addr_operation): New.
4080 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
4082 2021-03-08 Tom Tromey <tom@tromey.com>
4084 * expop.h (class typeid_operation): New.
4086 2021-03-08 Tom Tromey <tom@tromey.com>
4088 * expop.h (class decltype_operation): New.
4090 2021-03-08 Tom Tromey <tom@tromey.com>
4092 * expop.h (class typeof_operation): New.
4094 2021-03-08 Tom Tromey <tom@tromey.com>
4096 * expop.h (class type_operation): New.
4097 * eval.c (eval_op_type): No longer static.
4099 2021-03-08 Tom Tromey <tom@tromey.com>
4101 * expop.h (class unop_ind_base_operation)
4102 (class unop_ind_operation): New.
4103 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
4104 (unop_ind_base_operation::evaluate_for_address)
4105 (unop_ind_base_operation::evaluate_for_sizeof): New method.
4106 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
4108 2021-03-08 Tom Tromey <tom@tromey.com>
4110 * expop.h (unop_incr_operation): New template.
4111 (preinc_operation, predec_operation, postinc_operation)
4112 (postdec_operation): New typedefs.
4113 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
4114 (eval_op_postdec): No longer static.
4116 2021-03-08 Tom Tromey <tom@tromey.com>
4118 * expop.h (unary_ftype): New typedef.
4119 (unop_operation, usual_ax_binop_operation): New templates.
4120 (unary_plus_operation, unary_neg_operation)
4121 (unary_complement_operation, unary_logical_not_operation): New
4123 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
4124 (eval_op_lognot): No longer static.
4125 * ax-gdb.c (gen_expr_unop): New function.
4127 2021-03-08 Tom Tromey <tom@tromey.com>
4129 * ax-gdb.c (comma_operation::do_generate_ax): New method.
4131 2021-03-08 Tom Tromey <tom@tromey.com>
4133 * expop.h (class repeat_operation): New.
4134 * eval.c (eval_op_repeat): No longer static. Remove "op"
4136 (evaluate_subexp_standard): Update.
4137 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
4139 2021-03-08 Tom Tromey <tom@tromey.com>
4141 * expop.h (class comparison_operation): New.
4142 (equal_operation, notequal_operation, less_operation)
4143 (gtr_operation, geq_operation, leq_operation): New typedefs.
4144 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
4145 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
4147 2021-03-08 Tom Tromey <tom@tromey.com>
4149 * expop.h (class subscript_operation): New.
4150 * eval.c (eval_op_subscript): No longer static.
4152 2021-03-08 Tom Tromey <tom@tromey.com>
4154 * expop.h (class binop_operation, class usual_ax_binop_operation):
4156 (exp_operation, intdiv_operation, mod_operation, mul_operation)
4157 (div_operation, rem_operation, lsh_operation, rsh_operation)
4158 (bitwise_and_operation, bitwise_ior_operation)
4159 (bitwise_xor_operation): New typedefs.
4160 * eval.c (eval_op_binary): No longer static.
4162 2021-03-08 Tom Tromey <tom@tromey.com>
4164 * expop.h (class sub_operation): New.
4165 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
4166 (evaluate_subexp_standard): Update.
4168 2021-03-08 Tom Tromey <tom@tromey.com>
4170 * expop.h (class add_operation): New.
4171 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
4172 (evaluate_subexp_standard): Update.
4174 2021-03-08 Tom Tromey <tom@tromey.com>
4176 * expop.h (class concat_operation): New.
4177 * eval.c (eval_op_concat): No longer static. Remove "op"
4179 (evaluate_subexp_standard): Update.
4181 2021-03-08 Tom Tromey <tom@tromey.com>
4183 * expop.h (class structop_member_operation)
4184 (class structop_mptr_operation): New.
4185 * eval.c (eval_op_member): No longer static.
4187 2021-03-08 Tom Tromey <tom@tromey.com>
4189 * expop.h (class structop_ptr_operation): New.
4190 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
4193 2021-03-08 Tom Tromey <tom@tromey.com>
4195 * expop.h (class structop_base_operation)
4196 (class structop_operation): New.
4197 * eval.c (eval_op_structop_struct): No longer static.
4199 2021-03-08 Tom Tromey <tom@tromey.com>
4201 * expop.h (class complex_operation): New.
4203 2021-03-08 Tom Tromey <tom@tromey.com>
4205 * eval.c (eval_op_objc_selector): No longer static.
4206 * c-exp.h (class objc_selector_operation): New.
4208 2021-03-08 Tom Tromey <tom@tromey.com>
4210 * eval.c: Include c-exp.h.
4211 * c-exp.h (class objc_nsstring_operation): New.
4213 2021-03-08 Tom Tromey <tom@tromey.com>
4215 * c-lang.c (c_string_operation::evaluate): New method.
4216 * c-exp.h: New file.
4218 2021-03-08 Tom Tromey <tom@tromey.com>
4220 * expop.h (class ternop_cond_operation): New.
4221 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
4223 2021-03-08 Tom Tromey <tom@tromey.com>
4225 * expop.h (class ternop_slice_operation): New.
4226 * eval.c (eval_op_ternop): No longer static.
4228 2021-03-08 Tom Tromey <tom@tromey.com>
4230 * expop.h (class string_operation): New.
4231 * eval.c (eval_op_string): No longer static.
4233 2021-03-08 Tom Tromey <tom@tromey.com>
4235 * expop.h (class internalvar_operation): New.
4236 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
4238 2021-03-08 Tom Tromey <tom@tromey.com>
4240 * expop.h (class bool_operation): New.
4242 2021-03-08 Tom Tromey <tom@tromey.com>
4244 * expop.h (class register_operation): New.
4245 * eval.c (eval_op_register): No longer static.
4246 * ax-gdb.c (register_operation::do_generate_ax): New method.
4248 2021-03-08 Tom Tromey <tom@tromey.com>
4250 * expop.h (class last_operation): New.
4252 2021-03-08 Tom Tromey <tom@tromey.com>
4254 * expop.h (class func_static_var_operation): New.
4255 * eval.c (eval_op_func_static_var): No longer static.
4257 2021-03-08 Tom Tromey <tom@tromey.com>
4259 * expop.h (class var_entry_value_operation): New.
4260 * eval.c (eval_op_var_entry_value): No longer static.
4262 2021-03-08 Tom Tromey <tom@tromey.com>
4264 * expression.h (class operation) <set_outermost>: New method.
4265 * expop.h (class var_msym_value_operation): New.
4266 * eval.c (eval_op_var_msym_value): No longer static.
4267 (var_msym_value_operation::evaluate_for_address)
4268 (var_msym_value_operation::evaluate_for_sizeof)
4269 (var_msym_value_operation::evaluate_for_cast): New methods.
4270 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
4273 2021-03-08 Tom Tromey <tom@tromey.com>
4275 * expop.h (class long_const_operation): New.
4276 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
4278 2021-03-08 Tom Tromey <tom@tromey.com>
4280 * expop.h (class scope_operation): New.
4281 * eval.c (eval_op_scope): No longer static.
4282 (scope_operation::evaluate_for_address): New method.
4283 * ax-gdb.c (scope_operation::do_generate_ax): New method.
4285 2021-03-08 Tom Tromey <tom@tromey.com>
4287 * expprint.c (float_const_operation::dump): New method.
4288 * expop.h (float_data): New typedef.
4289 (class float_const_operation): New.
4291 2021-03-08 Tom Tromey <tom@tromey.com>
4293 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
4294 * ax-gdb.c (gen_expr_binop): New function.
4295 (gen_expr_structop): Likewise.
4297 2021-03-08 Tom Tromey <tom@tromey.com>
4299 * expprint.c (expr::dump_for_expression): New functions.
4300 * expop.h (dump_for_expression): New overloads.
4301 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
4304 2021-03-08 Tom Tromey <tom@tromey.com>
4306 * expression.h (expr::operation): New class.
4307 (expr::make_operation): New function.
4308 (expr::operation_up): New typedef.
4309 * expop.h: New file.
4310 * eval.c (operation::evaluate_for_cast)
4311 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
4313 * ax-gdb.c (operation::generate_ax): New method.
4315 2021-03-08 Tom Tromey <tom@tromey.com>
4317 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
4318 (gen_expr_binop_rest): New overload.
4320 2021-03-08 Tom Tromey <tom@tromey.com>
4322 * eval.c (eval_multi_subscript): New function.
4323 (evaluate_subexp_standard): Use it.
4325 2021-03-08 Tom Tromey <tom@tromey.com>
4327 * ada-lang.c (ada_binop_exp): New function.
4328 (ada_evaluate_subexp): Use it.
4330 2021-03-08 Tom Tromey <tom@tromey.com>
4332 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
4334 (ada_evaluate_subexp): Use it.
4336 2021-03-08 Tom Tromey <tom@tromey.com>
4338 * ada-lang.c (ada_binop_minmax): New function.
4339 (ada_evaluate_subexp): Use it.
4341 2021-03-08 Tom Tromey <tom@tromey.com>
4343 * ada-lang.c (ada_unop_atr): New function.
4344 (ada_evaluate_subexp): Use it.
4346 2021-03-08 Tom Tromey <tom@tromey.com>
4348 * ada-lang.c (ada_binop_in_bounds): New function.
4349 (ada_evaluate_subexp): Use it.
4351 2021-03-08 Tom Tromey <tom@tromey.com>
4353 * ada-lang.c (ada_ternop_slice): New function.
4354 (ada_evaluate_subexp): Use it.
4356 2021-03-08 Tom Tromey <tom@tromey.com>
4358 * ada-lang.c (ada_equal_binop): New function.
4359 (ada_evaluate_subexp): Use it.
4361 2021-03-08 Tom Tromey <tom@tromey.com>
4363 * ada-lang.c (ada_mult_binop): New function.
4364 (ada_evaluate_subexp): Use it.
4366 2021-03-08 Tom Tromey <tom@tromey.com>
4368 * ada-lang.c (ada_abs): New function.
4369 (ada_evaluate_subexp): Use it.
4371 2021-03-08 Tom Tromey <tom@tromey.com>
4373 * ada-lang.c (ada_atr_size): New function.
4374 (ada_evaluate_subexp): Use it.
4376 2021-03-08 Tom Tromey <tom@tromey.com>
4378 * ada-lang.c (ada_atr_tag): New function.
4379 (ada_evaluate_subexp): Use it.
4381 2021-03-08 Tom Tromey <tom@tromey.com>
4383 * ada-lang.c (ada_unop_in_range): New function.
4384 (ada_evaluate_subexp): Use it.
4386 2021-03-08 Tom Tromey <tom@tromey.com>
4388 * ada-lang.c (ada_unop_neg): New function.
4389 (ada_evaluate_subexp): Use it.
4391 2021-03-08 Tom Tromey <tom@tromey.com>
4393 * ada-lang.c (eval_ternop_in_range): New function.
4394 (ada_evaluate_subexp): Use it.
4396 2021-03-08 Tom Tromey <tom@tromey.com>
4398 * opencl-lang.c (eval_opencl_assign): New function.
4399 (evaluate_subexp_opencl): Use it.
4401 2021-03-08 Tom Tromey <tom@tromey.com>
4403 * eval.c (eval_op_objc_msgcall): New function.
4404 (evaluate_subexp_standard): Use it.
4406 2021-03-08 Tom Tromey <tom@tromey.com>
4408 * eval.c (eval_binop_assign_modify): New function.
4409 (evaluate_subexp_standard): Use it.
4411 2021-03-08 Tom Tromey <tom@tromey.com>
4413 * m2-lang.c (eval_op_m2_subscript): New function.
4414 (evaluate_subexp_modula2): Use it.
4416 2021-03-08 Tom Tromey <tom@tromey.com>
4418 * m2-lang.c (eval_op_m2_high): New function.
4419 (evaluate_subexp_modula2): Use it.
4421 2021-03-08 Tom Tromey <tom@tromey.com>
4423 * eval.c (evaluate_subexp_for_address_base): New function.
4424 (evaluate_subexp_for_address): Use it.
4425 (evaluate_subexp_for_sizeof_base): New function.
4426 (evaluate_subexp_for_sizeof): Use it.
4428 2021-03-08 Tom Tromey <tom@tromey.com>
4430 * rust-lang.c (eval_op_rust_structop): New function.
4431 (rust_evaluate_subexp): Use it.
4433 2021-03-08 Tom Tromey <tom@tromey.com>
4435 * rust-lang.c (eval_op_rust_struct_anon): New function.
4436 (rust_evaluate_subexp): Use it.
4438 2021-03-08 Tom Tromey <tom@tromey.com>
4440 * rust-lang.c (eval_op_rust_array): New function.
4441 (rust_evaluate_subexp): Use it.
4443 2021-03-08 Tom Tromey <tom@tromey.com>
4445 * rust-lang.c (eval_op_rust_complement): New function.
4446 (rust_evaluate_subexp): Use it.
4448 2021-03-08 Tom Tromey <tom@tromey.com>
4450 * rust-lang.c (eval_op_rust_ind): New function.
4451 (rust_evaluate_subexp): Use it.
4453 2021-03-08 Tom Tromey <tom@tromey.com>
4455 * rust-lang.c (rust_subscript): Change parameters.
4456 (rust_evaluate_subexp): Update.
4458 2021-03-08 Tom Tromey <tom@tromey.com>
4460 * rust-lang.c (rust_range): Change parameters.
4461 (rust_evaluate_subexp): Update.
4463 2021-03-08 Tom Tromey <tom@tromey.com>
4465 * f-lang.c (eval_op_f_allocated): New function.
4466 (evaluate_subexp_f): Use it.
4468 2021-03-08 Tom Tromey <tom@tromey.com>
4470 * f-lang.c (fortran_require_array): New function.
4471 (evaluate_subexp_f): Use it.
4473 2021-03-08 Tom Tromey <tom@tromey.com>
4475 * f-lang.c (eval_op_f_kind): New function.
4476 (evaluate_subexp_f): Use it.
4478 2021-03-08 Tom Tromey <tom@tromey.com>
4480 * f-lang.c (eval_op_f_cmplx): New function.
4481 (evaluate_subexp_f): Use it.
4483 2021-03-08 Tom Tromey <tom@tromey.com>
4485 * f-lang.c (eval_op_f_modulo): New function.
4486 (evaluate_subexp_f): Use it.
4488 2021-03-08 Tom Tromey <tom@tromey.com>
4490 * f-lang.c (eval_op_f_floor): New function.
4491 (evaluate_subexp_f): Use it.
4493 2021-03-08 Tom Tromey <tom@tromey.com>
4495 * f-lang.c (eval_op_f_ceil): New function.
4496 (evaluate_subexp_f): Use it.
4498 2021-03-08 Tom Tromey <tom@tromey.com>
4500 * f-lang.c (eval_op_f_mod): New function.
4501 (evaluate_subexp_f): Use it.
4503 2021-03-08 Tom Tromey <tom@tromey.com>
4505 * f-lang.c (eval_op_f_abs): New function.
4506 (evaluate_subexp_f): Use it.
4508 2021-03-08 Tom Tromey <tom@tromey.com>
4510 * eval.c (eval_op_type): New function.
4511 (evaluate_subexp_standard): Use it.
4513 2021-03-08 Tom Tromey <tom@tromey.com>
4515 * eval.c (eval_op_postdec): New function.
4516 (evaluate_subexp_standard): Use it.
4518 2021-03-08 Tom Tromey <tom@tromey.com>
4520 * eval.c (eval_op_postinc): New function.
4521 (evaluate_subexp_standard): Use it.
4523 2021-03-08 Tom Tromey <tom@tromey.com>
4525 * eval.c (eval_op_predec): New file.
4526 (evaluate_subexp_standard): Use it.
4528 2021-03-08 Tom Tromey <tom@tromey.com>
4530 * eval.c (eval_op_preinc): New function.
4531 (evaluate_subexp_standard): Use it.
4533 2021-03-08 Tom Tromey <tom@tromey.com>
4535 * eval.c (eval_op_memval): New function.
4536 (evaluate_subexp_standard): Use it.
4538 2021-03-08 Tom Tromey <tom@tromey.com>
4540 * eval.c (eval_op_alignof): New function.
4541 (evaluate_subexp_standard): Use it.
4543 2021-03-08 Tom Tromey <tom@tromey.com>
4545 * eval.c (eval_op_ind): New function.
4546 (evaluate_subexp_standard): Use it.
4548 2021-03-08 Tom Tromey <tom@tromey.com>
4550 * eval.c (eval_op_lognot): New function.
4551 (evaluate_subexp_standard): Use it.
4553 2021-03-08 Tom Tromey <tom@tromey.com>
4555 * eval.c (eval_op_complement): New function.
4556 (evaluate_subexp_standard): Use it.
4558 2021-03-08 Tom Tromey <tom@tromey.com>
4560 * eval.c (eval_op_neg): New function.
4561 (evaluate_subexp_standard): Use it.
4563 2021-03-08 Tom Tromey <tom@tromey.com>
4565 * eval.c (eval_op_plus): New function.
4566 (evaluate_subexp_standard): Use it.
4568 2021-03-08 Tom Tromey <tom@tromey.com>
4570 * eval.c (eval_op_repeat): New function.
4571 (evaluate_subexp_standard): Use it.
4573 2021-03-08 Tom Tromey <tom@tromey.com>
4575 * eval.c (eval_op_leq): New function.
4576 (evaluate_subexp_standard): Use it.
4578 2021-03-08 Tom Tromey <tom@tromey.com>
4580 * eval.c (eval_op_geq): New function.
4581 (evaluate_subexp_standard): Use it.
4583 2021-03-08 Tom Tromey <tom@tromey.com>
4585 * eval.c (eval_op_gtr): New function.
4586 (evaluate_subexp_standard): Use it.
4588 2021-03-08 Tom Tromey <tom@tromey.com>
4590 * eval.c (eval_op_less): New function.
4591 (evaluate_subexp_standard): Use it.
4593 2021-03-08 Tom Tromey <tom@tromey.com>
4595 * eval.c (eval_op_notequal): New function.
4596 (evaluate_subexp_standard): Use it.
4598 2021-03-08 Tom Tromey <tom@tromey.com>
4600 * eval.c (eval_op_equal): New function.
4601 (evaluate_subexp_standard): Use it.
4603 2021-03-08 Tom Tromey <tom@tromey.com>
4605 * eval.c (eval_op_subscript): New function.
4606 (evaluate_subexp_standard): Use it.
4608 2021-03-08 Tom Tromey <tom@tromey.com>
4610 * eval.c (eval_op_binary): New function.
4611 (evaluate_subexp_standard): Use it.
4613 2021-03-08 Tom Tromey <tom@tromey.com>
4615 * eval.c (eval_op_sub): New function.
4616 (evaluate_subexp_standard): Use it.
4618 2021-03-08 Tom Tromey <tom@tromey.com>
4620 * eval.c (eval_op_add): New function.
4621 (evaluate_subexp_standard): Use it.
4623 2021-03-08 Tom Tromey <tom@tromey.com>
4625 * eval.c (eval_op_member): New function.
4626 (evaluate_subexp_standard): Use it.
4628 2021-03-08 Tom Tromey <tom@tromey.com>
4630 * eval.c (eval_op_structop_ptr): New function.
4631 (evaluate_subexp_standard): Use it.
4633 2021-03-08 Tom Tromey <tom@tromey.com>
4635 * eval.c (eval_op_structop_struct): New function.
4636 (evaluate_subexp_standard): Use it.
4638 2021-03-08 Tom Tromey <tom@tromey.com>
4640 * eval.c (eval_op_ternop): New function.
4641 (evaluate_subexp_standard): Use it.
4643 2021-03-08 Tom Tromey <tom@tromey.com>
4645 * eval.c (eval_op_concat): New function.
4646 (evaluate_subexp_standard): Use it.
4648 2021-03-08 Tom Tromey <tom@tromey.com>
4650 * eval.c (eval_op_objc_selector): New function.
4651 (evaluate_subexp_standard): Use it.
4653 2021-03-08 Tom Tromey <tom@tromey.com>
4655 * eval.c (eval_op_string): New function.
4656 (evaluate_subexp_standard): Use it.
4658 2021-03-08 Tom Tromey <tom@tromey.com>
4660 * eval.c (eval_op_register): New function.
4661 (evaluate_subexp_standard): Use it.
4663 2021-03-08 Tom Tromey <tom@tromey.com>
4665 * eval.c (eval_op_func_static_var): New function.
4666 (evaluate_subexp_standard): Use it.
4668 2021-03-08 Tom Tromey <tom@tromey.com>
4670 * eval.c (eval_op_var_msym_value): New function.
4671 (evaluate_subexp_standard): Use it.
4673 2021-03-08 Tom Tromey <tom@tromey.com>
4675 * eval.c (eval_op_var_entry_value): New function.
4676 (evaluate_subexp_standard): Use it.
4678 2021-03-08 Tom Tromey <tom@tromey.com>
4680 * eval.c (eval_op_scope): New function.
4681 (evaluate_subexp_standard): Use it.
4683 2021-03-06 Chernov Sergey <klen_s@mail.ru>
4686 * ada-lang.c (ada_fold_name): Use gdb::to_string.
4688 2021-03-06 Tom Tromey <tom@tromey.com>
4690 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
4691 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
4692 * dwarf2/read.c (dwarf2_elf_names): No longer static.
4693 (locate_dwz_sections, dwz_search_other_debugdirs)
4694 (dwarf2_get_dwz_file): Move to dwz.c.
4695 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
4697 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
4698 (dwarf2_get_dwz_file): Move from read.c.
4700 2021-03-06 Tom Tromey <tom@tromey.com>
4702 * debuginfod-support.h: Include scoped_fd.h.
4704 2021-03-06 Tom Tromey <tom@tromey.com>
4706 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
4707 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
4708 (get_abbrev_section_for_cu, read_attribute_value)
4709 (get_debug_line_section): Update.
4710 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4712 2021-03-06 Tom Tromey <tom@tromey.com>
4714 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
4716 * dwarf2/read.c (section_is_p): Remove.
4717 (dwarf2_per_bfd::locate_sections)
4718 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
4719 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
4720 (dwarf2_locate_common_dwp_sections)
4721 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
4724 2021-03-06 Tom Tromey <tom@tromey.com>
4726 * xcoffread.c: Include sect-names.h.
4727 * symfile.h (struct dwarf2_section_names, struct
4728 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
4729 * dwarf2/sect-names.h: New file, from symfile.h.
4730 * dwarf2/read.c: Include sect-names.h.
4732 2021-03-06 Tom Tromey <tom@tromey.com>
4734 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
4735 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
4736 (abbrev_table::read): Update.
4737 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
4738 (struct abbrev_info): Reformat.
4739 <attrs>: Now an array.
4740 (struct abbrev_table) <alloc_abbrev>: Remove.
4742 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4744 * ctfread.c (ctf_psymtab_add_enums): New function.
4745 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
4747 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
4749 * ctfread.c (read_func_kind_type): Set up function arguments.
4751 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4752 Andrew Burgess <andrew.burgess@embecosm.com>
4754 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
4756 (riscv_csrset): New static global.
4757 (riscv_update_csrmap): New function.
4758 (riscv_iterate_over_regset_sections): Process CSRs.
4760 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4762 * riscv-tdep.c (riscv_feature_name_csr): Define.
4763 (riscv_feature_name_cpu): Define.
4764 (riscv_feature_name_fpu): Define.
4765 (riscv_feature_name_virtual): Define.
4766 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4767 (riscv_freg_feature): Use riscv_feature_name_fpu.
4768 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4769 (riscv_csr_feature): Use riscv_feature_name_csr.
4770 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4772 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4773 Craig Blackmore <craig.blackmore@embecosm.com>
4775 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4776 (ALLDEPFILES): Add riscv-none-tdep.c.
4777 * configure: Regenerate.
4778 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4780 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4781 * elf-none-tdep.c: New file.
4782 * elf-none-tdep.h: New file.
4783 * riscv-none-tdep.c: New file.
4785 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4786 Andrew Burgess <andrew.burgess@embecosm.com>
4788 * corelow.c: Add 'xml-tdesc.h' include.
4789 (core_target::read_description): Load the target description from
4790 the core file when possible.
4791 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4793 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4794 (gcore_elf_make_tdesc_note): New function.
4795 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4796 * linux-tdep.c (linux_make_corefile_notes): Add target description
4799 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4801 * Makefile.in (SFILES): Add gcore-elf.c.
4802 (HFILES_NO_SRCDIR): Add gcore-elf.h
4803 * configure: Regenerate.
4804 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4806 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4807 (struct fbsd_collect_regset_section_cb_data): Delete.
4808 (fbsd_collect_regset_section_cb): Delete.
4809 (fbsd_collect_thread_registers): Delete.
4810 (struct fbsd_corefile_thread_data): Delete.
4811 (fbsd_corefile_thread): Delete.
4812 (fbsd_make_corefile_notes): Call
4813 gcore_elf_build_thread_register_notes instead of the now deleted
4815 * gcore-elf.c: New file, the content was moved here from
4816 linux-tdep.c, functions were renamed and given minor cleanup.
4817 * gcore-elf.h: New file.
4818 * gcore.c (gcore_find_signalled_thread): Moved here from
4819 linux-tdep.c and given a new name. Minor cleanups.
4820 * gcore.h (gcore_find_signalled_thread): Declare.
4821 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4822 (struct linux_collect_regset_section_cb_data): Delete.
4823 (linux_collect_regset_section_cb): Delete.
4824 (linux_collect_thread_registers): Delete.
4825 (linux_corefile_thread): Call
4826 gcore_elf_build_thread_register_notes.
4827 (find_signalled_thread): Delete.
4828 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4830 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4833 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4834 process_stratum_target parameter,
4835 sparc_store_inferior_registers): update callers.
4836 * sparc-nat.c (sparc_fetch_inferior_registers,
4837 sparc_store_inferior_registers): Add process_stratum_target
4838 parameter. Switch current thread before calling
4839 sparc_supply_gregset / sparc_collect_rwindow.
4840 (sparc_store_inferior_registers): Likewise.
4841 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4842 (sparc32obsd_collect_uthread): Likewise.
4843 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4845 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4846 sparc64obsd_supply_uthread): Add assertion.
4848 2021-03-04 Tom Tromey <tromey@adacore.com>
4850 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4851 (aux_add_nonlocal_symbols): Update.
4852 (ada_add_block_symbols): Change "found_sym" to bool.
4854 2021-03-03 Tom Tromey <tromey@adacore.com>
4856 * ada-lang.c (ada_resolve_function): Update comment.
4857 (is_nonfunction, add_symbols_from_enclosing_procs)
4858 (remove_extra_symbols): Likewise.
4859 (struct match_data): Add constructor, initializers.
4860 (add_nonlocal_symbols): Remove memset.
4861 (aux_add_nonlocal_symbols): Update comment.
4862 (ada_add_block_renamings, add_nonlocal_symbols)
4863 (ada_add_all_symbols): Likewise.
4864 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4866 2021-03-02 Tom Tromey <tromey@adacore.com>
4868 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4869 (cast_to_gnat_encoded_fixed_point_type): Remove.
4870 (ada_value_cast, ada_evaluate_subexp): Update.
4871 (gnat_encoded_fixed_point_type_info)
4872 (ada_is_gnat_encoded_fixed_point_type)
4873 (gnat_encoded_fixed_point_delta)
4874 (gnat_encoded_fixed_point_scaling_factor): Remove.
4875 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4876 (gnat_encoded_fixed_point_delta)
4877 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4878 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4879 (ada_print_type): Update.
4880 * ada-valprint.c (ada_value_print_num): Update.
4881 * dwarf2/read.c (ada_get_gnat_encoded_number)
4882 (ada_get_gnat_encoded_ratio): New functions.
4883 (finish_fixed_point_type): Use them. Add parameters.
4884 (GNAT_FIXED_POINT_SUFFIX): New define.
4885 (gnat_encoded_fixed_point_type_info): New function.
4886 (read_base_type): Handle gnat encodings.
4888 2021-03-02 Tom Tromey <tromey@adacore.com>
4890 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4891 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4893 (GROW_VECT): Remove.
4894 (grow_vect): Remove.
4896 2021-03-02 Tom Tromey <tromey@adacore.com>
4898 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4899 * ada-lang.c (resolve_subexp): Update.
4900 (ada_resolve_function): Accept a vector.
4901 (is_nonfunction, add_defn_to_vec)
4902 (add_symbols_from_enclosing_procs): Likewise.
4903 (num_defns_collected, defns_collected): Remove.
4904 (remove_extra_symbols): Return a vector.
4905 (remove_irrelevant_renamings): Return void.
4906 (ada_add_local_symbols): Accept a vector.
4907 (struct match_data) <obstackp>: Remove.
4908 <resultp>: New member.
4909 (aux_add_nonlocal_symbols): Update.
4910 (ada_add_block_renamings, add_nonlocal_symbols)
4911 (ada_add_all_symbols): Accept a vector.
4912 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4914 (ada_lookup_symbol): Update.
4915 (ada_add_block_symbols): Accept a vector.
4916 (get_var_value, iterate_over_symbols): Update.
4917 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4920 2021-03-02 Tom Tromey <tromey@adacore.com>
4922 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4924 2021-03-02 Tom Tromey <tromey@adacore.com>
4926 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4929 (ada_pspace_data): Remove destructor.
4930 <sym_cache>: Now a unique_ptr.
4931 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4932 (ada_get_symbol_cache): Use 'new'.
4933 (ada_clear_symbol_cache): Rewrite.
4935 2021-03-02 Tom Tromey <tromey@adacore.com>
4937 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4940 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4943 * source.c (add_path): Skip empty dirnames.
4945 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4947 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4948 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4950 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4953 * target.c (target_mourn_inferior): Only compare pids in
4954 target_mourn_inferior.
4956 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4959 * remote.c (remote_target::start_remote): Ensure the single
4960 thread, automatically added for remote targets without the
4961 concept of threading, is initially in set to the "resumed"
4963 * remote.c (remote_target::add_current_inferior_and_thread):
4964 Add return value - return the main thread.
4966 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4968 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4969 (mi_tsv_created): Likewise.
4970 (mi_tsv_deleted): Likewise.
4972 2021-02-25 Tom de Vries <tdevries@suse.de>
4975 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4976 section_kind for &dwo_file->sections.info.
4978 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4981 * f-lang.c (fortran_argument_convert): Delete declaration.
4982 (fortran_prepare_argument): New function.
4983 (evaluate_subexp_f): Move logic to new function
4984 fortran_prepare_argument.
4986 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4988 * f-exp.y (f77_keywords): Add 'associated'.
4989 * f-lang.c (fortran_associated): New function.
4990 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4991 (operator_length_f): Likewise.
4992 (print_unop_or_binop_subexp_f): New function.
4993 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4994 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4995 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4996 (operator_check_f): Likewise.
4997 * std-operator.def: Add FORTRAN_ASSOCIATED.
4999 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
5001 * f-exp.y (fortran_operators): Add ".xor.".
5003 2021-02-24 Tom de Vries <tdevries@suse.de>
5006 * dwarf2/attribute.c (attribute::form_is_signed): New function
5008 * dwarf2/attribute.h (attribute::as_signed): ... here.
5009 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
5010 (attribute::form_is_signed): Declare.
5011 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
5012 for DW_AT_decl_file.
5014 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5016 * nat/aarch64-linux-hw-point.c: Add comment regarding include
5017 order for <sys/ptrace.h> and <asm/ptrace.h>.
5019 2021-02-24 Kevin Buettner <kevinb@redhat.com>
5021 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
5024 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5026 * exec.c (set_section_command): Move variable declarations into
5027 the function body, and use std::string instead of a fixed size
5030 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5032 * exec.c (exec_target::get_section_table): Delete member function.
5033 (section_table_read_available_memory): Use current_top_target, not
5034 just the exec_ops target.
5035 * target-delegates.c: Regenerate.
5036 * target.c (default_get_section_table): New function.
5037 * target.h (target_ops::get_section_table): Change default
5038 behaviour to call default_get_section_table.
5039 (default_get_section_table): Declare.
5041 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5043 * exec.c (exec_target::close): Call new clear_target_sections
5045 (program_space::add_target_sections): Update name of member
5047 (program_space::add_target_sections): Update name of member
5049 (program_space::remove_target_sections): Likewise.
5050 (exec_one_fork): Use new target_sections member function.
5051 (exec_target::get_section_table): Likewise.
5052 (exec_target::files_info): Likewise.
5053 (set_section_command): Likewise.
5054 (exec_set_section_address): Likewise.
5055 (exec_target::has_memory): Use new target_sections member
5057 * progspace.h (program_space::clear_target_sections): New member
5059 (program_space::target_sections): Rename member variable to
5060 m_target_sections, replace with a new member function.
5061 (program_space::m_target_sections): New member variable.
5062 * solib-dsbt.c (scan_dyntag): Use new member function.
5063 * solib-svr4.c (scan_dyntag): Likewise.
5065 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5067 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
5069 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
5070 (section_table_read_available_memory): Make local const.
5071 (exec_target::xfer_partial): Make local const.
5072 (print_section_info): Make parameter const.
5073 * gdb/exec.h (print_section_info): Likewise.
5074 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
5076 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
5078 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
5080 * gdb/s390-tdep.c (s390_load): Likewise.
5081 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
5082 * gdb/solib-svr4.c (scan_dyntag): Likewise.
5083 * gdb/target-debug.h (target_debug_print_target_section_table_p):
5085 (target_debug_print_const_target_section_table_p): ...this.
5086 * gdb/target-delegates.c: Regenerate.
5087 * gdb/target.c (target_get_section_table): Make return type const.
5088 (target_section_by_addr): Likewise. Also make some locals const.
5089 (memory_xfer_partial_1): Make some locals const.
5090 * gdb/target.h (struct target_ops) <get_section_table>: Make
5092 (target_section_by_addr): Likewise.
5093 (target_get_section_table): Likewise.
5095 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5097 * NEWS: Mention new 'maint info target-sections' command.
5098 * maint.c (maintenance_info_target_sections): New function.
5099 (_initialize_maint_cmds): Register new command.
5101 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5103 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
5104 (riscv_features_from_bfd): ...this. Change parameter type to
5105 'bfd*', and update as required.
5106 (riscv_find_default_target_description): Update call to
5107 riscv_features_from_bfd. Select a default xlen based on
5109 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
5111 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
5113 * eval.c (evaluate_subexp_standard): Call value_ind for points to
5114 dynamic types in UNOP_IND.
5116 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5119 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
5121 (~dwarf2_queue_guard): Clear queue.
5122 (queue_comp_unit): Assert that queue is
5124 (process_queue): Adjust.
5125 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
5127 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5130 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
5131 to decide whether or not to enqueue it for expansion.
5132 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
5133 after calling maybe_queue_comp_unit.
5135 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
5137 * linux-nat.c (linux_nat_filter_event): Return void.
5139 2021-02-22 Tom Tromey <tromey@adacore.com>
5141 * solib-svr4.c (enable_break): Update.
5142 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
5144 (target_bfd_reopen): Change parameter type.
5145 * bfd-target.h (target_bfd_reopen): Change parameter type.
5147 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5149 * thread.c (add_thread_silent): Add assert.
5150 (find_thread_ptid): Add assert.
5152 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
5155 * inf-ptrace.c (struct target_unpusher): Move to target.h.
5156 (target_unpush_up): Likewise.
5157 * procfs.c (procfs_target::attach): Push target early. Use
5158 target_unpush_up to unpush target in case of error.
5159 * target.h (struct target_unpusher): Move here.
5160 (target_unpush_up): Likewise.
5162 2021-02-19 Kevin Buettner <kevinb@redhat.com>
5164 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
5165 (which in turn includes <gnulib/config.h>) before include
5168 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
5171 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
5172 (decode_j_type_insn): Likewise.
5173 (decode_cj_type_insn): Likewise.
5174 (decode_b_type_insn): Likewise.
5177 2021-02-18 Tom Tromey <tom@tromey.com>
5179 * expression.h (struct expression) <evaluate>: Declare method.
5180 * eval.c (evaluate_subexp): Simplify.
5181 (expression::evaluate): New method.
5182 (evaluate_expression, evaluate_type): Use expression::evaluate.
5184 2021-02-17 Kevin Buettner <kevinb@redhat.com>
5186 * ada-lang.c (ada_fold_name): Check for non-empty string prior
5188 (ada_lookup_name_info): Likewise.
5190 2021-02-13 Mike Frysinger <vapier@gentoo.org>
5192 * aclocal.m4: Regenerate.
5194 2021-02-12 Tom de Vries <tdevries@suse.de>
5197 * linux-nat.c (lin_thread_get_thread_signals): Remove.
5198 (lin_thread_signals): New static var.
5199 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5201 * linux-nat.h (lin_thread_get_thread_signals): Remove.
5202 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
5204 * linux-thread-db.c (check_thread_signals): Use
5205 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
5207 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
5209 * f-exp.y (f77_keywords): Add allocated.
5210 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
5211 (operator_length_f): Likewise.
5212 (print_subexp_f): Likewise.
5213 (dump_subexp_body_f): Likewise.
5214 (operator_check_f): Likewise.
5215 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
5217 2021-02-11 Tom de Vries <tdevries@suse.de>
5220 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
5221 Return true for DW_FORM_strx.
5223 2021-02-11 Tom Tromey <tromey@adacore.com>
5226 * parse.c (write_exp_symbol_reference): Write sym.block.
5228 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5230 * NEWS: Mention changes to 'maint info sections'.
5231 * maint.c (match_substring): Return a bool, fix whitespace issue.
5232 (struct single_bfd_flag_info): New struct.
5233 (bfd_flag_info): New static global.
5234 (match_bfd_flags): Return a bool, use bfd_flag_info.
5235 (print_bfd_flags): Use bfd_flag_info.
5236 (maint_print_section_info): Delete trailing whitespace.
5237 (struct maint_info_sections_opts): New struct.
5238 (maint_info_sections_option_defs): New static global.
5239 (maint_info_sections_completer): New function.
5240 (maintenance_info_sections): Use option parsing mechanism.
5241 (_initialize_maint_cmds): Update command help text for 'maint info
5242 sections' and register a command completer.
5244 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5246 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
5247 functionality merged into...
5248 (maint_print_all_sections): ...this new function.
5249 (maintenance_info_sections): Make use of maint_print_all_sections,
5250 allow all objects to be printed even where there's no executable.
5252 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
5254 * breakpoint.c (resolve_sal_pc): Make use of
5255 bound_minimal_symbol::obj_section.
5256 * maint.c (maintenance_translate_address): Likewise.
5257 * minsyms.c (minimal_symbol_upper_bound): Likewise.
5258 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
5260 * printcmd.c (info_address_command): Make use of
5261 bound_minimal_symbol::obj_section.
5263 2021-02-11 Alan Modra <amodra@gmail.com>
5265 * arm-symbian-tdep.c: Delete.
5266 * NEWS: Mention arm-symbian removal.
5267 * Makefile.in: Remove arm-symbian-tdep entries.
5268 * configure.tgt: Remove arm*-*-symbianelf*.
5269 * doc/gdb.texinfo: Remove mention of SymbianOS.
5270 * osabi.c (gdb_osabi_names): Remove "Symbian".
5271 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
5272 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
5273 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
5275 * testsuite/gdb.base/dup-sect.exp: Likewise.
5276 * testsuite/gdb.base/long_long.exp: Likewise.
5277 * testsuite/gdb.base/solib-weak.exp: Likewise.
5278 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
5279 * testsuite/gdb.python/py-section-script.exp: Likewise.
5280 * testsuite/lib/dwarf.exp: Likewise.
5281 * testsuite/lib/gdb.exp: Likewise.
5283 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5285 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
5286 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
5287 (one_or_two_args): New pattern.
5288 (f77_keywords): Add lbound and ubound.
5289 * f-lang.c (fortran_bounds_all_dims): New function.
5290 (fortran_bounds_for_dimension): New function.
5291 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
5292 (operator_length_f): Likewise.
5293 (print_subexp_f): Likewise.
5294 (dump_subexp_body_f): Likewise.
5295 (operator_check_f): Likewise.
5296 * std-operator.def (FORTRAN_LBOUND): Define.
5297 (FORTRAN_UBOUND): Define.
5299 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5301 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
5302 and set_section_index member functions where appropriate.
5303 * coffread.c (coff_symtab_read): Likewise.
5304 (process_coff_symbol): Likewise.
5305 * ctfread.c (set_symbol_address): Likewise.
5306 * dwarf2/read.c (add_partial_symbol): Likewise.
5307 (var_decode_location): Likewise.
5308 * language.c: Likewise.
5309 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
5310 (compact_minimal_symbols): Likewise.
5311 (minimal_symbol_upper_bound): Likewise.
5312 * objfiles.c (relocate_one_symbol): Likewise.
5313 * psympriv.h (partial_symbol::obj_section): Likewise.
5314 (partial_symbol::address): Likewise.
5315 * psymtab.c (partial_symtab::add_psymbol): Likewise.
5316 * stabsread.c (scan_file_globals): Likewise.
5317 * symmisc.c (dump_msymbols): Likewise.
5318 * symtab.c (general_symbol_info::obj_section): Likewise.
5319 (fixup_section): Likewise.
5320 (get_msymbol_address): Likewise.
5321 * symtab.h (general_symbol_info::section): Rename to...
5322 (general_symbol_info::m_section): ...this.
5323 (general_symbol_info::set_section_index): New member function.
5324 (general_symbol_info::section_index): Likewise.
5325 (SYMBOL_SECTION): Delete.
5326 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
5327 set_section_index member functions where appropriate.
5328 (MSYMBOL_SECTION): Delete.
5329 (symbol::symbol): Update to initialize 'm_section'.
5330 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
5331 (process_xcoff_symbol): Likewise.
5333 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
5335 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
5336 MSYMBOL_OBJ_SECTION.
5337 * findvar.c (language_defn::read_var_value): Likewise.
5338 * infcmd.c (jump_command): Likewise.
5339 * linespec.c (minsym_found): Likewise.
5340 * maint.c (maintenance_translate_address): Likewise.
5341 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
5342 (minimal_symbol_upper_bound): Likewise.
5343 * parse.c (find_minsym_type_and_address): Likewise.
5344 (operator_check_standard): Likewise.
5345 * printcmd.c (info_address_command): Likewise.
5346 * symmisc.c (dump_msymbols): Likewise.
5347 (print_symbol): Likewise.
5348 * symtab.c (general_symbol_info::obj_section): Define new
5350 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
5351 (find_pc_sect_compunit_symtab): Likewise.
5352 (find_function_start_sal): Likewise.
5353 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
5354 MSYMBOL_OBJ_SECTION.
5355 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
5357 (SYMBOL_OBJ_SECTION): Delete.
5358 (MSYMBOL_OBJ_SECTION): Delete.
5360 2021-02-09 Tom Tromey <tom@tromey.com>
5362 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
5364 2021-02-09 Tom de Vries <tdevries@suse.de>
5367 * dwarf2/read.c (read_array_type): Return NULL when not being able to
5368 construct an array type. Add assert to ensure that element_type is
5371 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
5373 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
5374 (gcore_collect_regset_section_cb): Delete.
5375 (gcore_collect_thread_registers): Delete.
5376 (gcore_build_thread_register_notes): Delete.
5377 (gcore_find_signalled_thread): Delete.
5378 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
5379 'gdbarch' and 'thread_info' declarations.
5380 (gcore_build_thread_register_notes): Delete declaration.
5381 (gcore_find_signalled_thread): Likewise.
5382 * fbsd-tdep.c: Remove 'gcore.h' include.
5383 (struct fbsd_collect_regset_section_cb_data): New struct.
5384 (fbsd_collect_regset_section_cb): New function.
5385 (fbsd_collect_thread_registers): New function.
5386 (struct fbsd_corefile_thread_data): New struct.
5387 (fbsd_corefile_thread): New function.
5388 (fbsd_make_corefile_notes): Call FreeBSD specific code.
5389 * linux-tdep.c: Remove 'gcore.h' include.
5390 (struct linux_collect_regset_section_cb_data): New struct.
5391 (linux_collect_regset_section_cb): New function.
5392 (linux_collect_thread_registers): New function.
5393 (linux_corefile_thread): Call Linux specific code.
5394 (find_signalled_thread): New function.
5395 (linux_make_corefile_notes): Call find_signalled_thread.
5397 2021-02-09 Tom Tromey <tromey@adacore.com>
5399 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
5401 * value.c (value_contents_copy_raw): Now static.
5402 * value.h (value_contents_copy_raw): Don't declare.
5404 2021-02-09 Tom Tromey <tromey@adacore.com>
5406 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
5409 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
5412 * arc-linux-tdep.c (handle_atomic_sequence): New.
5413 (arc_linux_software_single_step): Call handle_atomic_sequence().
5415 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5417 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
5419 (REQUIRE_WINDOW): Call is_valid member function.
5420 (REQUIRE_WINDOW_FOR_SETTER): New define.
5421 (gdbpy_tui_is_valid): Call is_valid member function.
5422 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
5423 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
5425 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
5426 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
5429 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5431 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
5432 for the title is not nullptr.
5434 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5436 * tui-layout.c (saved_tui_windows): Delete.
5437 (tui_apply_current_layout): Don't make use of saved_tui_windows,
5438 call new get_windows member function instead.
5439 (tui_get_window_by_name): Check in tui_windows.
5440 (tui_layout_window::apply): Don't add to tui_windows.
5441 * tui-layout.h (tui_layout_base::get_windows): New member function.
5442 (tui_layout_window::get_windows): Likewise.
5443 (tui_layout_split::get_windows): Likewise.
5445 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5447 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
5448 of the window objects.
5450 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5452 * python/python.c (gdbpy_print_stack): Reformat an error message.
5454 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
5456 * tui/tui-interp.c (tui_command_line_handler): New function.
5457 (tui_interp::resume): Register tui_command_line_handler as the
5459 * tui/tui-io.c (tui_inject_newline_into_command_window): New
5461 (tui_getc_1): Delete handling of '\n' and '\r'.
5462 * tui-io.h (tui_inject_newline_into_command_window): Declare.
5464 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5466 * tui/tui-regs.c (tui_data_window::display_registers_from):
5467 Mark invisible register sub windows.
5468 (tui_data_window::check_register_values): Ignore invisible
5469 register sub windows.
5471 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5473 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
5474 n_spaces with a negative value.
5476 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5478 * tui/tui-regs.c (tui_data_window::display_registers_from):
5479 Add refresh_window call.
5481 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
5483 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
5485 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
5487 * symmisc.c (std_in, std_out, std_err): Remove.
5488 (_initialize_symmisc): Don't set std_in, std_out and std_err.
5490 2021-02-05 Tom de Vries <tdevries@suse.de>
5492 PR breakpoints/27330
5493 * breakpoint.c (create_exception_master_breakpoint): Handle case that
5494 glibc object file has debug info.
5496 2021-02-05 Tom de Vries <tdevries@suse.de>
5499 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
5501 2021-02-05 Tom de Vries <tdevries@suse.de>
5503 PR breakpoints/27313
5504 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
5507 2021-02-05 Tom Tromey <tom@tromey.com>
5509 * compile/compile-c-support.c (get_compile_context)
5510 (c_get_compile_context, cplus_get_compile_context): Change return
5512 * language.c (language_defn::get_compile_instance): New method.
5513 * language.h (language_defn::get_compile_instance): Change return
5514 type. No longer inline.
5515 * c-lang.c (c_language::get_compile_instance): Change return type.
5516 (cplus_language::get_compile_instance): Change return type.
5517 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
5519 * compile/compile.c (compile_to_object): Update.
5521 2021-02-05 Tom Tromey <tom@tromey.com>
5523 * parser-defs.h (write_exp_symbol_reference): Declare.
5524 * parse.c (write_exp_symbol_reference): New function.
5525 * p-exp.y (variable): Use write_exp_symbol_reference.
5526 * m2-exp.y (variable): Use write_exp_symbol_reference.
5527 * f-exp.y (variable): Use write_exp_symbol_reference.
5528 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
5529 * c-exp.y (variable): Use write_exp_symbol_reference.
5531 2021-02-05 Tom de Vries <tdevries@suse.de>
5534 * valarith.c (complex_binop): Throw an error if complex type can't
5537 2021-02-05 Tom de Vries <tdevries@suse.de>
5540 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
5543 2021-02-05 Tom de Vries <tdevries@suse.de>
5545 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
5547 2021-02-04 Mike Frysinger <vapier@gentoo.org>
5549 * configure.tgt (riscv*-*-*): Set gdb_sim.
5551 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
5553 * target.c (target_is_non_stop_p): Return bool.
5554 * target.h (target_is_non_stop_p): Return bool.
5556 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5558 * record-full.c (record_full_async_inferior_event_handler):
5559 Don't clear async event handler.
5560 (record_full_base_target::wait): Clear async event handler at
5563 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5565 * record-btrace.c (record_btrace_handle_async_inferior_event):
5566 Don't clear async event handler.
5567 (record_btrace_target::wait): Clear async event handler at
5570 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5572 * remote.c (remote_target::wait): Clear async event handler at
5573 beginning, mark if needed at the end.
5574 (remote_async_inferior_event_handler): Don't set or clear async
5577 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
5579 * async-event.h (async_event_handler_func): Add documentation.
5580 * async-event.c (check_async_event_handlers): Don't clear
5581 async_event_handler ready flag.
5582 * infrun.c (infrun_async_inferior_event_handler): Clear ready
5584 * record-btrace.c (record_btrace_handle_async_inferior_event):
5586 * record-full.c (record_full_async_inferior_event_handler):
5588 * remote-notif.c (remote_async_get_pending_events_handler):
5590 * remote.c (remote_async_inferior_event_handler): Likewise.
5592 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
5594 * infrun.c (handle_inferior_event): Move stop_soon variable to
5597 2021-02-03 Pedro Alves <pedro@palves.net>
5599 * infcmd.c (detach_command): Hold strong reference to target, and
5600 if all-stop on entry, restart threads on exit.
5601 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
5602 (restart_stepped_thread): ... this new function. Also handle
5604 (restart_after_all_stop_detach): New function.
5605 * infrun.h (restart_after_all_stop_detach): Declare.
5607 2021-02-03 Pedro Alves <pedro@palves.net>
5609 * infrun.c (struct step_over_info): Initialize fields.
5610 (prepare_for_detach): Handle ongoing in-line step over.
5612 2021-02-03 Pedro Alves <pedro@palves.net>
5614 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
5616 * remote.c (remote_target::remote_detach_1): ... and here ...
5617 * target.c (target_detach): ... instead of here.
5618 * target.h (target_ops::detach): Add comment.
5620 2021-02-03 Pedro Alves <pedro@palves.net>
5622 * infrun.c (struct wait_one_event): Move higher up.
5623 (prepare_for_detach): Abort in-progress displaced steps instead of
5624 letting them complete.
5625 (handle_one): If the inferior is detaching, don't add the thread
5626 back to the global step-over chain.
5627 (restart_threads): Don't restart threads if detaching.
5628 (handle_signal_stop): Remove inferior::detaching reference.
5630 2021-02-03 Pedro Alves <pedro@palves.net>
5632 * infrun.c (prepare_for_detach): Don't release scoped_restore
5635 2021-02-03 Pedro Alves <pedro@palves.net>
5637 * infrun.c (handle_one): New function, factored out from ...
5638 (stop_all_threads): ... here.
5640 2021-02-03 Pedro Alves <pedro@palves.net>
5642 * remote.c (remote_notif_stop_ack): Don't error out on
5643 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
5644 (remote_target::discard_pending_stop_replies): Don't delete
5645 in-flight notification; instead, clear its contents.
5647 2021-02-03 Pedro Alves <pedro@palves.net>
5649 * remote.c (extended_remote_target::attach): Set target async in
5650 the target-non-stop path too.
5652 2021-02-03 Pedro Alves <pedro@palves.net>
5655 * infrun.c (handle_signal_stop): Move main context_switch call
5656 earlier, before STOP_QUIETLY_NO_SIGSTOP.
5658 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
5660 * NEWS (Changed commands): Add entry for the behavior change of
5661 the inferior command.
5662 * inferior.c (inferior_command): When no argument is given to the
5663 inferior command, display info about the currently selected
5666 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5668 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
5670 (read_attribute_reprocess): Adjust.
5672 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5674 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
5675 <gnu_ranges_base>: ... this...
5676 <rnglists_base>: ... and this.
5677 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
5678 <gnu_ranges_base>: ... this...
5679 <rnglists_base>: ... and this.
5680 (read_cutu_die_from_dwo): Adjust
5681 (dwarf2_get_pc_bounds): Adjust
5682 (dwarf2_record_block_ranges): Adjust.
5683 (read_full_die_1): Adjust
5684 (partial_die_info::read): Adjust.
5685 (read_rnglist_index): Adjust.
5687 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5690 * dwarf2/read.c (read_loclists_rnglists_header): Add
5691 header_offset parameter and use it.
5692 (read_loclist_index): Read header of the current contribution,
5693 not the one at the beginning of the section.
5694 (read_rnglist_index): Likewise.
5696 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5699 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
5700 requires_reprocessing flag.
5701 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
5703 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
5704 and DW_FORM_loclistx.
5705 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
5706 instead of set_address for DW_FORM_loclistx and
5709 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5711 * dwarf2/read.c (read_loclist_index): Remove bound check for
5713 (read_rnglist_index): Likewise.
5715 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5717 * dwarf2/read.c (read_loclist_index): Add bound check for the end
5720 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5722 * dwarf2/read.c (read_rnglist_index): Fix bound check.
5724 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
5726 * dwarf2/read.c (read_loclist_index): Change complaints into
5729 2021-02-02 Tom de Vries <tdevries@suse.de>
5732 * dwarf2/index-write.c (write_one_signatured_type): Skip if
5735 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
5737 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
5738 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
5739 here from linux-tdep.c and given a new name. Minor cleanups.
5740 (gcore_collect_regset_section_cb): Likewise.
5741 (gcore_collect_thread_registers): Likewise.
5742 (gcore_build_thread_register_notes): Likewise.
5743 (gcore_find_signalled_thread): Likewise.
5744 * gcore.h (gcore_build_thread_register_notes): Declare.
5745 (gcore_find_signalled_thread): Declare.
5746 * fbsd-tdep.c: Add 'gcore.h' include.
5747 (struct fbsd_collect_regset_section_cb_data): Delete.
5748 (fbsd_collect_regset_section_cb): Delete.
5749 (fbsd_collect_thread_registers): Delete.
5750 (struct fbsd_corefile_thread_data): Delete.
5751 (fbsd_corefile_thread): Delete.
5752 (fbsd_make_corefile_notes): Call
5753 gcore_build_thread_register_notes instead of the now deleted
5755 * linux-tdep.c: Add 'gcore.h' include.
5756 (struct linux_collect_regset_section_cb_data): Delete.
5757 (linux_collect_regset_section_cb): Delete.
5758 (linux_collect_thread_registers): Delete.
5759 (linux_corefile_thread): Call
5760 gcore_build_thread_register_notes.
5761 (find_signalled_thread): Delete.
5762 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
5764 2021-01-29 Tom de Vries <tdevries@suse.de>
5766 PR breakpoints/26063
5767 * infrun.c (process_event_stop_test): Reset
5768 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5771 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5773 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5774 assert. Extend the header comment.
5776 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5778 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5779 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5780 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5781 (tui_locator_win_info_ptr): Delete declaration.
5782 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5783 (tui_disasm_window::set_contents): Fetch state from tui_location
5785 (tui_get_begin_asm_address): Likewise.
5786 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5788 (get_locator_window): Delete.
5789 (initialize_known_windows): Treat locator window just like all the
5791 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5792 (tui_source_window::set_contents): Fetch state from tui_location
5794 (tui_source_window::showing_source_p): Likewise.
5795 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5797 (tui_locator_win_info_ptr): Delete.
5798 (tui_locator_window::make_status_line): Fetch state from
5799 tui_location global.
5800 (tui_locator_window::rerender): Remove check of 'handle',
5801 reindent function body.
5802 (tui_locator_window::set_locator_fullname): Delete.
5803 (tui_locator_window::set_locator_info): Delete.
5804 (tui_update_locator_fullname): Delete.
5805 (tui_show_frame_info): Likewise.
5806 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5807 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5808 tui/tui-location.h and renamed to
5809 tui_location_tracker::set_location.
5810 (tui_locator_window::set_locator_fullname): Moved to
5811 tui/tui-location.h and renamed to
5812 tui_location_tracker::set_fullname.
5813 (tui_locator_window::full_name): Delete.
5814 (tui_locator_window::proc_name): Delete.
5815 (tui_locator_window::line_no): Delete.
5816 (tui_locator_window::addr): Delete.
5817 (tui_locator_window::gdbarch): Delete.
5818 (tui_update_locator_fullname): Delete declaration.
5819 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5821 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5822 (tui_display_main): Call function on tui_location directly.
5823 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5824 * tui/tui-location.c: New file.
5825 * tui/tui-location.h: New file.
5827 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5829 * gdbtypes.h (get_type_arch): Rename to...
5830 (struct type) <arch>: ... this, update all users.
5832 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5834 * gdbtypes.h (struct type) <arch>: Rename to...
5835 <arch_owner>: ... this, update all users.
5836 <objfile>: Rename to...
5837 <objfile_owner>: ... this, update all users.
5839 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5841 * gdbcmd.h (execute_command_to_string): Update comment.
5842 * top.c (execute_command_to_string): Update header comment.
5844 2021-01-28 Tom de Vries <tdevries@suse.de>
5846 PR breakpoints/27205
5847 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5848 (create_longjmp_master_breakpoint_names): New function, factored out
5850 (create_longjmp_master_breakpoint): ... here. Only try to install
5851 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5852 breakpoint in libc.so failed.
5854 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5857 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5858 unique_ptr is released when the wrapped pointer is kept for later
5861 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5863 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5864 BLR and BR instructions.
5865 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5866 (enum aarch64_masks): New.
5868 2021-01-26 Tom Tromey <tromey@adacore.com>
5870 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5871 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5872 (windows_init_thread_list, windows_nat::handle_load_dll)
5873 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5874 (windows_nat_target::resume)
5875 (windows_nat_target::get_windows_debug_event)
5876 (windows_nat_target::interrupt, windows_xfer_memory)
5877 (windows_nat_target::close): Update.
5878 * nat/windows-nat.c (DEBUG_EVENTS): Use
5879 debug_prefixed_printf_cond.
5880 (matching_pending_stop, fetch_pending_stop)
5881 (continue_last_debug_event): Update.
5883 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5885 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5886 elfcore_write_file_note.
5888 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
5890 * arc-tdep.c (arc_add_reggroups): New function.
5891 (arc_gdbarch_init): Call arc_add_reggroups.
5893 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
5895 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5897 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5898 Simon Marchi <simon.marchi@polymtl.ca>
5899 Tom de Vries <tdevries@suse.de>
5901 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5904 2021-01-25 Tom Tromey <tromey@adacore.com>
5906 * dwarf2/read.c (get_mpz): New function.
5907 (get_dwarf2_rational_constant): Use it.
5909 2021-01-25 Tom Tromey <tromey@adacore.com>
5911 * ada-lang.c (resolve_subexp): Handle array context.
5913 2021-01-23 Tom Tromey <tom@tromey.com>
5916 * compile/compile-loc2c.c (note_register): New function.
5917 (pushf_register_address, pushf_register): Use it.
5919 2021-01-23 Tom Tromey <tom@tromey.com>
5921 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5922 Change type of "registers_used".
5923 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5924 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5925 (locexpr_generate_c_location, loclist_generate_c_location): Change
5926 type of "registers_used".
5927 * compile/compile.h (compile_dwarf_expr_to_c)
5928 (compile_dwarf_bounds_to_c): Update.
5929 * compile/compile-loc2c.c (pushf_register_address)
5930 (pushf_register, do_compile_dwarf_expr_to_c)
5931 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5932 of "registers_used".
5933 * compile/compile-c.h (generate_c_for_variable_locations):
5935 * compile/compile-c-symbols.c (generate_vla_size)
5936 (generate_c_for_for_one_variable): Change type of
5938 (generate_c_for_variable_locations): Return std::vector.
5939 * compile/compile-c-support.c (generate_register_struct): Change
5940 type of "registers_used".
5943 2021-01-23 Tom Tromey <tom@tromey.com>
5945 * compile/compile-internal.h (class compile_instance)
5946 <set_arguments>: Change return type.
5947 * compile/compile.c (compile_to_object): Remove call to reset.
5948 (compile_instance::set_arguments): Change return type.
5950 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5952 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5953 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5955 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5957 * Makefile.in (SELFTESTS_SRCS): Add
5958 unittests/gdb_tilde_expand-selftests.c.
5959 * unittests/gdb_tilde_expand-selftests.c: New file.
5961 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5964 * NEWS: Mention new command.
5965 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5966 (version_style): Define.
5967 (cli_style_option::cli_style_option): Add intensity parameter, and
5969 (_initialize_cli_style): Register version style set/show commands.
5970 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5971 (version_style): Declare.
5972 * top.c (print_gdb_version): Use version_stype, and styled_string
5973 to print the GDB version string.
5975 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5977 * utils.c (emit_style_escape): Only emit an escape sequence if the
5978 requested style is different than the current applied style.
5979 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5980 current applied_style.
5981 (fputs_styled): Remove is_default check.
5982 (fputs_styled_unfiltered): Likewise.
5983 (vfprintf_styled_no_gdbfmt): Likewise.
5985 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5987 * remote.h (remote_debug_printf): New.
5988 (remote_debug_printf_nofunc): New.
5989 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5990 * remote.c: Use above macros throughout file.
5992 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5994 * remote.h (remote_debug): Change to bool.
5995 * remote.c (remote_debug): Change to bool.
5996 (_initialize_remote): Adjust.
5998 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6000 * target.h (remote_debug): Move to...
6001 * remote.h (remote_debug): ... here.
6002 * top.c (remote_debug): Move to...
6003 * remote.c (remote_debug): ... here.
6004 * remote-sim.c: Include remote.h.
6006 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6008 * cli/cli-cmds.c (show_remote_debug): Remove.
6009 (show_remote_timeout): Remove.
6010 (_initialize_cli_cmds): Don't register commands.
6011 * remote.c (show_remote_debug): Move here.
6012 (show_remote_timeout): Move here.
6013 (_initialize_remote): Register commands.
6015 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6017 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
6018 type::objfile method instead.
6020 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
6022 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
6023 use the type::is_objfile_owned method.
6025 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
6027 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
6028 (TYPE_OWNER): Remove.
6029 (TYPE_OBJFILE): Adjust.
6030 (struct main_type) <flag_objfile_owned>: Rename to...
6031 <m_flag_objfile_owned>: ... this.
6032 <owner>: Rename to...
6033 <m_owner>: ... this.
6034 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
6036 (TYPE_ALLOC): Adjust.
6037 * gdbtypes.c (alloc_type): Adjust.
6038 (alloc_type_arch): Adjust.
6039 (alloc_type_copy): Adjust.
6040 (get_type_arch): Adjust.
6041 (smash_type): Adjust.
6042 (lookup_array_range_type): Adjust.
6043 (recursive_dump_type): Adjust.
6044 (copy_type_recursive): Adjust.
6045 * compile/compile-c-types.c (convert_func): Adjust.
6046 (convert_type_basic): Adjust.
6047 * compile/compile-cplus-types.c (compile_cplus_convert_func):
6050 (language_arch_info::type_and_symbol::alloc_type_symbol):
6053 2021-01-21 Luis Machado <luis.machado@linaro.org>
6055 * coffread.c (enter_linenos): Passing string to complaint.
6056 * valops.c (value_assign): Make array view.
6058 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6060 * auto-load.h (debug_auto_load): Move here.
6061 (auto_load_debug_printf): New.
6062 * auto-load.c: Use auto_load_debug_printf.
6063 (debug_auto_load): Move to header.
6064 * linux-thread-db.c (try_thread_db_load): Use
6065 auto_load_debug_printf.
6066 * main.c (captured_main_1): Likewise.
6068 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6070 * f-valprint.c (f77_array_offset_tbl): Remove.
6072 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6074 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
6076 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6078 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
6081 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
6084 * python/py-breakpoint.c (bppy_get_location): Handle
6085 bp_hardware_breakpoint.
6086 (bppy_init): Likewise.
6087 (gdbpy_breakpoint_created): Likewise.
6089 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
6091 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
6093 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6095 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
6096 (_initialize_gdb_bfd): Adjust.
6098 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6101 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
6103 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6105 * dwarf2/read.c (follow_die_offset): Add logging.
6106 (dwarf2_per_objfile::age_comp_units): Add logging.
6108 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
6110 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
6111 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
6112 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
6113 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
6114 * arm-tdep.c (struct frame_unwind): Make static.
6115 * auto-load.c (auto_load_safe_path_vec): Make static.
6116 * csky-tdep.c (csky_stub_unwind): Make static.
6117 * gdbarch.c (gdbarch_data_registry): Make static.
6118 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
6119 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
6120 * i386-tdep.c (i386_frame_setup_skip_insns,
6121 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
6123 * infrun.c (observer_mode): Make static.
6124 * linux-nat.c (sigchld_action): Make static.
6125 * linux-thread-db.c (thread_db_list): Make static.
6126 * maint-test-options.c (maintenance_test_options_list):
6127 * mep-tdep.c (mep_csr_registers): Make static.
6128 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
6129 (stats): Make static.
6130 * nat/linux-osdata.c (struct osdata_type): Make static.
6131 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
6132 * progspace.c (last_program_space_num): Make static.
6133 * python/py-param.c (struct parm_constant): Remove struct type
6135 (parm_constants): Make static.
6136 * python/py-record-btrace.c (btpy_list_methods): Make static.
6137 * python/py-record.c (recpy_gap_type): Make static.
6138 * record.c (record_goto_cmdlist): Make static.
6139 * regcache.c (regcache_descr_handle): Make static.
6140 * registry.h (DEFINE_REGISTRY): Make definition static.
6141 * symmisc.c (std_in, std_out, std_err): Make static.
6142 * top.c (previous_saved_command_line): Make static.
6143 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
6145 * unittests/command-def-selftests.c (nr_duplicates,
6146 nr_invalid_prefixcmd, lists): Make static.
6147 * unittests/observable-selftests.c (test_notification): Make
6149 * unittests/optional/assignment/1.cc (counter): Make static.
6150 * unittests/optional/assignment/2.cc (counter): Make static.
6151 * unittests/optional/assignment/3.cc (counter): Make static.
6152 * unittests/optional/assignment/4.cc (counter): Make static.
6153 * unittests/optional/assignment/5.cc (counter): Make static.
6154 * unittests/optional/assignment/6.cc (counter): Make static.
6156 2021-01-20 Joel Sherrill <joel@rtems.org>
6159 * remote.c (struct remote_thread_info) <resume_state>: Rename
6161 <get_resume_state>: ... this.
6162 (remote_target::resume): Adjust.
6163 (remote_target::commit_resume): Adjust.
6164 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
6166 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
6167 Tom Tromey <tom@tromey.com>
6169 * stap-probe.c (stap_parse_single_operand): Handle '!'
6171 (stap_parse_argument_conditionally): Likewise.
6172 Skip spaces after processing open-parenthesis sub-expression.
6173 (stap_parse_argument_1): Skip spaces after call to
6174 stap_parse_argument_conditionally.
6175 Handle case when right-side expression is a parenthesized
6177 Skip spaces after call to stap_parse_argument_1.
6179 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
6181 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
6183 2021-01-19 Luis Machado <luis.machado@linaro.org>
6185 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
6186 memory and save data.
6187 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
6188 (trad_frame_set_unknown, trad_frame_set_value_bytes)
6189 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6190 (trad_frame_value_bytes_p): Remove.
6191 (trad_frame_reset_saved_regs): Adjust documentation.
6192 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
6193 constructor and reset the state of the registers.
6194 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
6195 (trad_frame_value_bytes_p, trad_frame_set_value)
6196 (trad_frame_set_realreg, trad_frame_set_addr)
6197 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
6198 (trad_frame_set_reg_realreg): Update to call member function.
6199 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
6200 (trad_frame_get_prev_register): Likewise.
6202 * aarch64-tdep.c (aarch64_analyze_prologue)
6203 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
6204 (aarch64_prologue_prev_register): Update to use member functions.
6205 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
6206 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
6207 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
6208 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
6209 (arm_make_epilogue_frame_cache): Likewise.
6210 * avr-tdep.c (avr_frame_unwind_cache)
6211 (avr_frame_prev_register): Likewise.
6212 * cris-tdep.c (cris_scan_prologue): Likewise.
6213 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
6214 * frv-tdep.c (frv_analyze_prologue): Likewise.
6215 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
6216 * lm32-tdep.c (lm32_frame_cache): Likewise.
6217 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
6218 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
6219 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
6220 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
6221 (reset_saved_regs): Adjust to set realreg.
6222 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
6223 call member functions.
6224 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
6225 * s390-tdep.c (s390_prologue_frame_unwind_cache)
6226 (s390_backchain_frame_unwind_cache): Likewise.
6227 * score-tdep.c (score7_analyze_prologue)
6228 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
6229 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
6230 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
6231 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
6232 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
6233 * tilegx-tdep.c (tilegx_analyze_prologue)
6234 (tilegx_frame_cache): Likewise.
6235 * v850-tdep.c (v850_frame_cache): Likewise.
6236 * vax-tdep.c (vax_frame_cache): Likewise.
6238 2021-01-19 Luis Machado <luis.machado@linaro.org>
6240 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
6242 (put_frame_register_bytes): Likewise.
6243 Adjust documentation.
6244 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
6245 (safe_frame_unwind_memory): Likewise.
6246 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
6247 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
6249 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
6250 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
6251 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
6252 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
6253 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
6254 * dwarf2/loc.c (rw_pieced_value): Likewise.
6255 * hppa-tdep.c (hppa_frame_cache): Likewise.
6256 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
6257 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
6258 * i386-linux-tdep.c (i386_linux_sigtramp_start)
6259 (i386_linux_rt_sigtramp_start): Likewise.
6260 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
6261 * i386-tdep.c (i386_register_to_value): Likewise.
6262 * i387-tdep.c (i387_register_to_value): Likewise.
6263 * ia64-tdep.c (ia64_register_to_value): Likewise.
6264 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
6265 (m32r_linux_rt_sigtramp_start): Likewise.
6266 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
6267 * m68k-tdep.c (m68k_register_to_value): Likewise.
6268 * mips-tdep.c (mips_register_to_value)
6269 (mips_value_to_register): Likewise.
6270 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
6271 (ppcfbsd_sigtramp_frame_cache): Likewise.
6272 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
6273 (ppcobsd_sigtramp_frame_cache): Likewise.
6274 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
6275 (rs6000_register_to_value): Likewise.
6276 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
6277 * tramp-frame.c (tramp_frame_start): Likewise.
6278 * valops.c (value_assign): Likewise.
6280 2021-01-19 Luis Machado <luis.machado@linaro.org>
6282 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
6284 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
6285 instead of buffer and size.
6286 (trad_frame_set_reg_value_bytes): Likewise.
6287 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
6288 (trad_frame_set_value_bytes): Likewise.
6290 2021-01-18 Mike Frysinger <vapier@gentoo.org>
6292 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
6294 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
6296 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
6297 (riscv_fbsd_gregset): Use riscv_supply_regset.
6298 (riscv_fbsd_fpregset): Likewise.
6299 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
6300 (riscv_linux_fregset): Likewise.
6301 * riscv-tdep.c (riscv_supply_regset): Define new function.
6302 * riscv-tdep.h (riscv_supply_regset): Declare new function.
6304 2021-01-18 Tom de Vries <tdevries@suse.de>
6307 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
6309 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
6312 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6314 * remote.c (class remote_target) <remote_hostio_send_command,
6315 remote_hostio_parse_result>: Constify parameter.
6316 (remote_hostio_parse_result): Likewise.
6317 (remote_target::remote_hostio_send_command): Adjust.
6318 (remote_target::remote_hostio_pread_vFile): Adjust.
6319 (remote_target::fileio_readlink): Adjust.
6320 (remote_target::fileio_fstat): Adjust.
6322 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6324 * remote.c (remote_target::start_remote): Move wait_status to
6327 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6329 * remote.c (class remote_target):
6330 <add_current_inferior_and_thread>: Constify parameter.
6331 (stop_reply_extract_thread): Likewise.
6332 (remote_target::get_current_thread): Likewise.
6333 (remote_target::add_current_inferior_and_thread): Likewise.
6335 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
6337 * remote.c (class remote_target)
6338 <remote_unpack_thread_info_response,
6339 parse_threadlist_response>: Constify parameter and/or return
6340 value and or local variable.
6341 (stub_unpack_int): Likewise.
6342 (unpack_nibble): Likewise.
6343 (unpack_byte): Likewise.
6344 (unpack_int): Likewise.
6345 (unpack_string): Likewise.
6346 (unpack_threadid): Likewise.
6347 (remote_target::remote_unpack_thread_info_response): Likewise.
6348 (remote_target::parse_threadlist_response): Likewise.
6350 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
6352 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
6354 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
6356 * MAINTAINERS (Write After Approval): Add myself.
6358 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6360 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
6361 because is_trivially_default_constructible was first implemented with
6364 2021-01-14 Tom de Vries <tdevries@suse.de>
6366 PR breakpoints/27151
6367 * objfiles.h (in_plt_section): Handle .plt.sec.
6369 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
6373 (remote_target::select_thread_for_ambiguous_stop_reply): New
6375 (remote_target::process_stop_reply): Call
6376 select_thread_for_ambiguous_stop_reply.
6378 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6380 * record-btrace.c (class record_btrace_target): Remove.
6381 (record_btrace_target::commit_resume): Remove.
6382 * record-full.c (class record_full_target): Remove.
6383 (record_full_target::commit_resume): Remove.
6385 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
6387 * remote.c (enum class resume_state): New.
6388 (struct resumed_pending_vcont_info): New.
6389 (struct remote_thread_info) <resume_state, set_not_resumed,
6390 set_resumed_pending_vcont, resumed_pending_vcont_info,
6391 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
6393 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
6394 (remote_target::remote_add_thread): Adjust.
6395 (remote_target::process_initial_stop_replies): Adjust.
6396 (remote_target::resume): Adjust.
6397 (remote_target::commit_resume): Rely on state in
6398 remote_thread_info and not on tp->executing.
6399 (remote_target::process_stop_reply): Adjust.
6401 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6403 * arc-tdep.h (arc_debug_printf): New.
6404 * arc-tdep.c: Use arc_debug_printf.
6405 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
6406 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
6407 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
6409 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6411 * arc-tdep.h (arc_debug): Change type to bool.
6412 * arc-tdep.c (arc_debug): Change type to bool.
6413 (arc_analyze_prologue): Adjust.
6414 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
6415 * arc-linux-nat.c (ps_get_thread_area): Adjust.
6417 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6419 * auto-load.c (auto_load_objfile_script_1): Use bool.
6420 (execute_script_contents): Use bool.
6422 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6424 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
6426 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
6428 * extension-priv.h (struct extension_language_script_ops)
6429 <auto_load_enabled>: Return bool.
6430 * extension.h (ext_lang_auto_load_enabled): Return bool, move
6432 * extension.c (ext_lang_auto_load_enabled): Return bool, move
6434 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
6436 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
6437 move comment to header.
6438 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
6440 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
6441 move comment to header.
6443 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6445 * auto-load.h (file_is_auto_load_safe): Change return type to
6446 bool, move comment here.
6447 * auto-load.c (file_is_auto_load_safe): Change return type and
6448 advice_printed to bool. Move comment to header.
6450 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
6452 * jit.c (jit_debug_printf): New, use throughout file.
6454 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6456 * infrun.c (normal_stop): Fix indentation.
6458 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6460 * top.h (readnow_symbol_files, readnever_symbol_files): Move
6462 * symfile.h: ... here.
6463 * symfile.c: Update doc.
6465 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6467 * target.h (baud_rate, serial_parity): Move declarations...
6468 * serial.h: ... here.
6469 * main.c: Include serial.h.
6470 * serial.c (baud_rate, serial_parity): Update doc.
6472 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
6474 * top.c (pre_init_ui_hook): Remove.
6476 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
6478 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
6479 (aarch64_vnv_type): Add "bf" type in h field of v registers.
6480 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
6481 * features/aarch64-fpu.xml: Add bfloat16 type.
6483 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6485 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
6487 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
6489 * f-exp.y (dot_ops): Rename to...
6490 (fortran_operators): ...this. Add a header comment. Add symbol
6492 (yylex): Update to use fortran_operators not dot_ops. Remove
6493 special handling for '**', this is now included in
6496 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6498 * arch/aarch64-insn.h (aarch64_debug_printf): New.
6499 * arch/aarch64-insn.c: Use aarch64_debug_printf.
6500 * aarch64-tdep.c: Use aarch64_debug_printf.
6502 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6504 * solib-aix.c (solib_aix_debug_printf): New, use throughout
6507 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
6509 * jit.c (jit_debug): Change type to bool.
6510 (_initialize_jit): Adjust.
6512 2021-01-09 Tom Tromey <tom@tromey.com>
6515 * compile/compile.c (compile_to_object): Avoid crash when
6516 osabi_triplet_regexp returns NULL.
6518 2021-01-09 Tom Tromey <tom@tromey.com>
6520 * tracepoint.h (class collection_list) <append_exp>: Take a
6522 * tracepoint.c (collection_list::append_exp): Take a std::string.
6523 (encode_actions_1): Update.
6525 2021-01-08 Tom Tromey <tromey@adacore.com>
6527 * parse.c (parse_expression): Add void_context_p parameter. Use
6528 parse_exp_in_context.
6529 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
6531 (print_command, call_command): Update.
6532 * expression.h (parse_expression): Add void_context_p parameter.
6534 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6536 * value.c (set_value_component_location): Adjust the VALUE_LVAL
6537 for internalvar components that have a dynamic location.
6539 2021-01-08 Tom de Vries <tdevries@suse.de>
6542 * breakpoint.c (create_exception_master_breakpoint_probe)
6543 (create_exception_master_breakpoint_hook): Factor out
6545 (create_exception_master_breakpoint): ... here. Only try to install
6546 the master exception breakpoint in objfile.debug using the
6547 _Unwind_DebugHook method, if the install using probes in objfile
6550 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6552 * f-lang.c (fortran_value_subarray): Call value_from_component.
6554 2021-01-07 Mike Frysinger <vapier@gentoo.org>
6556 * remote-sim.c: Include memory-map.h.
6557 (gdbsim_target): Define memory_map override.
6558 (gdbsim_target::memory_map): Define.
6560 2021-01-07 Tom Tromey <tromey@adacore.com>
6562 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
6564 2021-01-07 Tom Tromey <tromey@adacore.com>
6566 * ada-lang.c (add_component_interval): Start loop using vector's
6569 2021-01-06 Tom Tromey <tromey@adacore.com>
6571 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
6573 * valarith.c (fixed_point_binop): Handle multiplication
6574 and division specially.
6575 * valops.c (value_to_gdb_mpq): New function.
6576 (value_cast_to_fixed_point): Use it.
6578 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6580 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6581 Call wnoutrefresh instead of tui_win_info::refresh_window.
6583 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6585 * tui/tui-source.c (tui_source_window::show_line_number):
6586 Redraw second space after line number.
6588 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
6591 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
6592 Fix source pad size in prefresh.
6593 (tui_source_window_base::show_source_content): Grow source pad
6596 2021-01-04 Mike Frysinger <vapier@gentoo.org>
6598 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
6599 (bfin_frame_align): Use align_down.
6601 2021-01-04 Tom de Vries <tdevries@suse.de>
6603 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
6604 terminators that do not terminate anything.
6606 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6608 * debug.c (debug_print_depth): New.
6609 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
6610 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
6611 * infrun.c (start_step_over): Use
6612 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6613 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
6614 INFRUN_SCOPED_DEBUG_START_END.
6615 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
6617 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6619 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
6621 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
6623 * utils.c (vfprintf_unfiltered): Print timestamp only when
6624 previous debug output ended with a newline.
6626 2021-01-04 Luis Machado <luis.machado@linaro.org>
6628 Update all users of trad_frame_saved_reg to use the new member
6631 Remote all struct keywords from declarations of trad_frame_saved_reg
6632 types, except on forward declarations.
6634 * aarch64-tdep.c: Update.
6635 * alpha-mdebug-tdep.c: Update.
6636 * alpha-tdep.c: Update.
6637 * arc-tdep.c: Update.
6638 * arm-tdep.c: Update.
6639 * avr-tdep.c: Update.
6640 * cris-tdep.c: Update.
6641 * csky-tdep.c: Update.
6642 * frv-tdep.c: Update.
6643 * hppa-linux-tdep.c: Update.
6644 * hppa-tdep.c: Update.
6645 * hppa-tdep.h: Update.
6646 * lm32-tdep.c: Update.
6647 * m32r-linux-tdep.c: Update.
6648 * m32r-tdep.c: Update.
6649 * m68hc11-tdep.c: Update.
6650 * mips-tdep.c: Update.
6651 * moxie-tdep.c: Update.
6652 * riscv-tdep.c: Update.
6653 * rs6000-tdep.c: Update.
6654 * s390-linux-tdep.c: Update.
6655 * s390-tdep.c: Update.
6656 * score-tdep.c: Update.
6657 * sparc-netbsd-tdep.c: Update.
6658 * sparc-sol2-tdep.c: Update.
6659 * sparc64-fbsd-tdep.c: Update.
6660 * sparc64-netbsd-tdep.c: Update.
6661 * sparc64-obsd-tdep.c: Update.
6662 * sparc64-sol2-tdep.c: Update.
6663 * tilegx-tdep.c: Update.
6664 * v850-tdep.c: Update.
6665 * vax-tdep.c: Update.
6667 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
6668 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
6670 * trad-frame.c: Update.
6671 Remove TF_REG_* enum.
6672 (trad_frame_alloc_saved_regs): Add a static assertion to check for
6673 a trivially-constructible struct.
6674 (trad_frame_reset_saved_regs): Adjust to use member function.
6675 (trad_frame_value_p): Likewise.
6676 (trad_frame_addr_p): Likewise.
6677 (trad_frame_realreg_p): Likewise.
6678 (trad_frame_value_bytes_p): Likewise.
6679 (trad_frame_set_value): Likewise.
6680 (trad_frame_set_realreg): Likewise.
6681 (trad_frame_set_addr): Likewise.
6682 (trad_frame_set_unknown): Likewise.
6683 (trad_frame_set_value_bytes): Likewise.
6684 (trad_frame_get_prev_register): Likewise.
6685 * trad-frame.h: Update.
6686 (trad_frame_saved_reg_kind): New enum.
6687 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
6688 <m_kind, m_reg>: New member fields.
6689 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
6690 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
6691 <is_addr, is_unknown, is_value_bytes>: New member functions.
6693 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
6695 * target-float.c: Fix typos.
6697 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
6699 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
6701 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6703 * gdbarch.sh: Update copyright year range.
6705 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6707 Update copyright year range in copyright header of all GDB files.
6709 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6711 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
6712 to the list of directories to update.
6714 2021-01-01 Joel Brobecker <brobecker@adacore.com>
6716 * top.c (print_gdb_version): Update copyright year.
6718 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
6720 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
6722 For older changes see ChangeLog-2020.
6728 version-control: never