3 * gdbtypes.h (struct type) <is_flag_enum,
4 set_is_flag_enum>: New methods.
5 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
6 write call sites to use type::set_is_flag_enum.
10 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
11 with type::is_declared_class.
15 * gdbtypes.h (struct type) <is_declared_class,
16 set_is_declared_class>: New methods.
17 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
18 write call sites to use type::set_is_declared_class.
22 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
23 to avoid deprecation warnings.
27 * cp-name-parser.y: Use startswith instead of strncmp.
29 * macroexp.c (substitute_args): Likewise.
30 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
31 * rust-exp.y: Likewise.
35 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
36 with dw2_map_matching_symbols.
37 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
38 dw2_expand_symtabs_matching.
42 * dwarf2/stringify.h: Fix typo.
47 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
48 with objfiles using READNOW.
52 * top.c (check_frame_language_change): Update.
53 * language.c (language_info): Remove parameter.
54 * language.h (language_info): Remove parameter.
58 * compile/compile.c (get_args): Don't add empty argv entries.
63 * procfs.c (procfs_target::attach): Define inf.
65 (procfs_target::create_inferior): Likewise.
69 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
70 (elf_symfile_read): Simplify.
71 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
72 (make_lazy_dwarf_reader): New function.
73 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
74 (dwarf2_initialize_objfile): Return void. Remove index_kind
75 parameter. Push on 'qf' list.
76 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
77 type. Remove 'index_kind' parameter.
78 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
82 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
86 * elfread.c (elf_symfile_read): Don't clear 'qf'.
90 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
95 * symtab.c (struct output_source_filename_data): Add 'output'
96 method and operator().
97 (output_source_filename_data::output): Rename from
98 output_source_filename.
99 (output_partial_symbol_filename): Remove.
100 (info_sources_command): Update.
101 (struct add_partial_filename_data): Add operator().
102 (add_partial_filename_data::operator()): Rename from
103 maybe_add_partial_symtab_filename.
104 (make_source_files_completion_list): Update.
105 * symfile.c (quick_symbol_functions): Update.
106 * symfile-debug.c (objfile::map_symbol_filenames): Update.
107 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
108 'need_fullname'. Remove 'data' parameter.
109 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
110 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
111 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
112 Change type of 'fun' and 'need_fullname'. Remove 'data'
114 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
115 of 'fun' and 'need_fullname'. Remove 'data' parameter.
116 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
118 (mi_cmd_file_list_exec_source_files): Update.
120 (dwarf2_base_index_functions::map_symbol_filenames): Update.
124 * ada-lang.c (struct match_data): Add operator().
125 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
126 (callback): Remove 'callback'.
130 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
131 call make_ignore_params once.
135 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
141 * async-event.c: Include "infrun.h".
142 (async_event_handler_marked): New.
143 * async-event.h (async_event_handler_marked): Declare.
144 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
145 inferior before calling target method. Don't commit-resumed if
146 target_has_pending_events is true.
147 * remote.c (remote_target::has_pending_events): New.
148 * target-delegates.c: Regenerate.
149 * target.c (target_has_pending_events): New.
150 * target.h (target_ops::has_pending_events): New target method.
151 (target_has_pending_events): New.
156 * infcmd.c (run_command_1, attach_command, detach_command)
157 (interrupt_target_1): Use scoped_disable_commit_resumed.
158 * infrun.c (do_target_resume): Remove
159 target_commit_resume call.
160 (commit_resume_all_targets): Remove.
161 (maybe_set_commit_resumed_all_targets): New.
162 (maybe_call_commit_resumed_all_targets): New.
163 (enable_commit_resumed): New.
164 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
165 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
166 (scoped_disable_commit_resumed::reset)
167 (scoped_disable_commit_resumed::reset_and_commit)
168 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
169 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
171 (proceed): Use scoped_disable_commit_resumed and
172 maybe_call_commit_resumed_all_targets.
173 (fetch_inferior_event): Use scoped_disable_commit_resumed.
174 * infrun.h (struct scoped_disable_commit_resumed): New.
175 (maybe_call_commit_resumed_all_process_targets): New.
176 (struct scoped_enable_commit_resumed): New.
177 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
178 * process-stratum-target.h (class process_stratum_target):
179 <commit_resumed_state>: New.
180 * record-full.c (record_full_wait_1): Change commit_resumed_state
181 around calling commit_resumed.
182 * remote.c (class remote_target) <commit_resume>: Rename to...
183 <commit_resumed>: ... this.
184 (struct stop_reply): Move up.
185 (remote_target::commit_resume): Rename to...
186 (remote_target::commit_resumed): ... this. Check if there is any
187 thread pending vCont resume.
188 (remote_target::remote_stop_ns): Generate stop replies for resumed
189 but pending vCont threads.
190 (remote_target::wait_ns): Add gdb_assert.
191 * target-delegates.c: Regenerate.
192 * target.c (target_wait, target_resume): Assert that the current
193 process_stratum target isn't in commit-resumed state.
194 (defer_target_commit_resume): Remove.
195 (target_commit_resume): Remove.
196 (target_commit_resumed): New.
197 (make_scoped_defer_target_commit_resume): Remove.
198 (target_stop): Assert that the current process_stratum target
199 isn't in commit-resumed state.
200 * target.h (struct target_ops) <commit_resume>: Rename to ...
201 <commit_resumed>: ... this.
202 (target_commit_resume): Remove.
203 (target_commit_resumed): New.
204 (make_scoped_defer_target_commit_resume): Remove.
205 * top.c (wait_sync_command_done): Use
206 scoped_enable_commit_resumed.
210 * target.c (target_always_non_stop_p): Also check whether the
215 * dwarf2/read.c (dwarf2_read_debug_names)
216 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
217 (dw2_debug_names_iterator::next, create_type_unit_group):
222 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
223 around setting the breakpoint.
228 (remote_target::check_pending_events_prevent_wildcard_vcont):
229 Check whether the event's ptid is not null_ptid before looking up
230 the corresponding inferior.
234 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
239 * target.h (current_top_target): Remove, make callers use the
240 current inferior instead.
241 * target.c (current_top_target): Remove.
245 * target.h (target_shortname): Change to function declaration.
246 (target_longname): Likewise.
247 (target_attach_no_wait): Likewise.
248 (target_post_attach): Likewise.
249 (target_prepare_to_store): Likewise.
250 (target_supports_enable_disable_tracepoint): Likewise.
251 (target_supports_string_tracing): Likewise.
252 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
253 (target_supports_dumpcore): Likewise.
254 (target_dumpcore): Likewise.
255 (target_can_run_breakpoint_commands): Likewise.
256 (target_files_info): Likewise.
257 (target_post_startup_inferior): Likewise.
258 (target_insert_fork_catchpoint): Likewise.
259 (target_remove_fork_catchpoint): Likewise.
260 (target_insert_vfork_catchpoint): Likewise.
261 (target_remove_vfork_catchpoint): Likewise.
262 (target_insert_exec_catchpoint): Likewise.
263 (target_remove_exec_catchpoint): Likewise.
264 (target_set_syscall_catchpoint): Likewise.
265 (target_rcmd): Likewise.
266 (target_can_lock_scheduler): Likewise.
267 (target_can_async_p): Likewise.
268 (target_is_async_p): Likewise.
269 (target_execution_direction): Likewise.
270 (target_extra_thread_info): Likewise.
271 (target_pid_to_exec_file): Likewise.
272 (target_thread_architecture): Likewise.
273 (target_find_memory_regions): Likewise.
274 (target_make_corefile_notes): Likewise.
275 (target_get_bookmark): Likewise.
276 (target_goto_bookmark): Likewise.
277 (target_stopped_by_watchpoint): Likewise.
278 (target_stopped_by_sw_breakpoint): Likewise.
279 (target_supports_stopped_by_sw_breakpoint): Likewise.
280 (target_stopped_by_hw_breakpoint): Likewise.
281 (target_supports_stopped_by_hw_breakpoint): Likewise.
282 (target_have_steppable_watchpoint): Likewise.
283 (target_can_use_hardware_watchpoint): Likewise.
284 (target_region_ok_for_hw_watchpoint): Likewise.
285 (target_can_do_single_step): Likewise.
286 (target_insert_watchpoint): Likewise.
287 (target_remove_watchpoint): Likewise.
288 (target_insert_hw_breakpoint): Likewise.
289 (target_remove_hw_breakpoint): Likewise.
290 (target_can_accel_watchpoint_condition): Likewise.
291 (target_can_execute_reverse): Likewise.
292 (target_get_ada_task_ptid): Likewise.
293 (target_filesystem_is_local): Likewise.
294 (target_trace_init): Likewise.
295 (target_download_tracepoint): Likewise.
296 (target_can_download_tracepoint): Likewise.
297 (target_download_trace_state_variable): Likewise.
298 (target_enable_tracepoint): Likewise.
299 (target_disable_tracepoint): Likewise.
300 (target_trace_start): Likewise.
301 (target_trace_set_readonly_regions): Likewise.
302 (target_get_trace_status): Likewise.
303 (target_get_tracepoint_status): Likewise.
304 (target_trace_stop): Likewise.
305 (target_trace_find): Likewise.
306 (target_get_trace_state_variable_value): Likewise.
307 (target_save_trace_data): Likewise.
308 (target_upload_tracepoints): Likewise.
309 (target_upload_trace_state_variables): Likewise.
310 (target_get_raw_trace_data): Likewise.
311 (target_get_min_fast_tracepoint_insn_len): Likewise.
312 (target_set_disconnected_tracing): Likewise.
313 (target_set_circular_trace_buffer): Likewise.
314 (target_set_trace_buffer_size): Likewise.
315 (target_set_trace_notes): Likewise.
316 (target_get_tib_address): Likewise.
317 (target_set_permissions): Likewise.
318 (target_static_tracepoint_marker_at): Likewise.
319 (target_static_tracepoint_markers_by_strid): Likewise.
320 (target_traceframe_info): Likewise.
321 (target_use_agent): Likewise.
322 (target_can_use_agent): Likewise.
323 (target_augmented_libraries_svr4_read): Likewise.
324 (target_log_command): Likewise.
325 * target.c (target_shortname): New.
326 (target_longname): New.
327 (target_attach_no_wait): New.
328 (target_post_attach): New.
329 (target_prepare_to_store): New.
330 (target_supports_enable_disable_tracepoint): New.
331 (target_supports_string_tracing): New.
332 (target_supports_evaluation_of_breakpoint_conditions): New.
333 (target_supports_dumpcore): New.
334 (target_dumpcore): New.
335 (target_can_run_breakpoint_commands): New.
336 (target_files_info): New.
337 (target_post_startup_inferior): New.
338 (target_insert_fork_catchpoint): New.
339 (target_remove_fork_catchpoint): New.
340 (target_insert_vfork_catchpoint): New.
341 (target_remove_vfork_catchpoint): New.
342 (target_insert_exec_catchpoint): New.
343 (target_remove_exec_catchpoint): New.
344 (target_set_syscall_catchpoint): New.
346 (target_can_lock_scheduler): New.
347 (target_can_async_p): New.
348 (target_is_async_p): New.
349 (target_execution_direction): New.
350 (target_extra_thread_info): New.
351 (target_pid_to_exec_file): New.
352 (target_thread_architecture): New.
353 (target_find_memory_regions): New.
354 (target_make_corefile_notes): New.
355 (target_get_bookmark): New.
356 (target_goto_bookmark): New.
357 (target_stopped_by_watchpoint): New.
358 (target_stopped_by_sw_breakpoint): New.
359 (target_supports_stopped_by_sw_breakpoint): New.
360 (target_stopped_by_hw_breakpoint): New.
361 (target_supports_stopped_by_hw_breakpoint): New.
362 (target_have_steppable_watchpoint): New.
363 (target_can_use_hardware_watchpoint): New.
364 (target_region_ok_for_hw_watchpoint): New.
365 (target_can_do_single_step): New.
366 (target_insert_watchpoint): New.
367 (target_remove_watchpoint): New.
368 (target_insert_hw_breakpoint): New.
369 (target_remove_hw_breakpoint): New.
370 (target_can_accel_watchpoint_condition): New.
371 (target_can_execute_reverse): New.
372 (target_get_ada_task_ptid): New.
373 (target_filesystem_is_local): New.
374 (target_trace_init): New.
375 (target_download_tracepoint): New.
376 (target_can_download_tracepoint): New.
377 (target_download_trace_state_variable): New.
378 (target_enable_tracepoint): New.
379 (target_disable_tracepoint): New.
380 (target_trace_start): New.
381 (target_trace_set_readonly_regions): New.
382 (target_get_trace_status): New.
383 (target_get_tracepoint_status): New.
384 (target_trace_stop): New.
385 (target_trace_find): New.
386 (target_get_trace_state_variable_value): New.
387 (target_save_trace_data): New.
388 (target_upload_tracepoints): New.
389 (target_upload_trace_state_variables): New.
390 (target_get_raw_trace_data): New.
391 (target_get_min_fast_tracepoint_insn_len): New.
392 (target_set_disconnected_tracing): New.
393 (target_set_circular_trace_buffer): New.
394 (target_set_trace_buffer_size): New.
395 (target_set_trace_notes): New.
396 (target_get_tib_address): New.
397 (target_set_permissions): New.
398 (target_static_tracepoint_marker_at): New.
399 (target_static_tracepoint_markers_by_strid): New.
400 (target_traceframe_info): New.
401 (target_use_agent): New.
402 (target_can_use_agent): New.
403 (target_augmented_libraries_svr4_read): New.
404 (target_log_command): New.
405 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
406 * infrun.c (set_schedlock_func): Adjust.
407 * mi/mi-main.c (exec_reverse_continue): Adjust.
408 * reverse.c (exec_reverse_once): Adjust.
409 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
410 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
411 * remote-sim.c (gdbsim_target::detach): Adjust.
412 (gdbsim_target::files_info): Adjust.
416 * dwarf2/read.c (dw2_map_matching_symbols): Update.
417 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
418 (check_match, dw2_expand_symtabs_matching)
419 (dwarf2_debug_names_index::map_matching_symbols)
420 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
424 * compile/compile-cplus-types.c
425 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
430 * gdbarch.sh (gdbarch_data_registry): Make static.
431 * gdbarch.c: Re-generate.
435 * NEWS: Mention memory tagging changes.
439 * printcmd.c (decode_format): Handle the 'm' modifier.
440 (do_examine): Display allocation tags when required/supported.
441 (should_validate_memtags): New function.
442 (print_command_1): Display memory tag mismatches.
443 * valprint.c (show_memory_tag_violations): New function.
444 (value_print_option_defs): Add new option "memory-tag-violations".
445 (user_print_options) <memory_tag_violations>: Initialize to 1.
446 * valprint.h (struct format_data) <print_tags>: New field.
447 (value_print_options) <memory_tag_violations>: New field.
451 * printcmd.c: Include gdbsupport/rsp-low.h.
452 (memory_tag_list): New static global.
453 (process_print_command_args): Factored out of
455 (print_command_1): Use process_print_command_args.
456 (show_addr_not_tagged, show_memory_tagging_unsupported)
457 (memory_tag_command, memory_tag_print_tag_command)
458 (memory_tag_print_logical_tag_command)
459 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
460 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
461 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
463 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
467 * aarch64-linux-tdep.c
468 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
469 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
473 * aarch64-linux-tdep.c
474 (aarch64_linux_report_signal_info): New function.
475 (aarch64_linux_init_abi): Register
476 aarch64_linux_report_signal_info as the report_signal_info hook.
477 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
478 (SEGV_MTESERR): Define.
482 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
483 (aarch64_linux_ltag_tests): New function.
484 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
488 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
489 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
490 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
491 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
493 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
494 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
495 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
496 (aarch64_linux_get_ltag): New functions.
497 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
498 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
499 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
500 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
504 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
506 (struct smaps_data): New struct.
507 (decode_vmflags): Handle the 'mt' flag.
508 (parse_smaps_data): New function, refactored from
509 linux_find_memory_regions_full.
510 (linux_address_in_memtag_page): New function.
511 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
512 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
516 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
517 instead of char arrays.
521 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
522 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
523 nat/aarch64-mte-linux-ptrace.h.
524 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
525 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
527 <fetch_memtags>: New method override.
528 <store_memtags>: New method override.
529 (aarch64_linux_nat_target::supports_memory_tagging): New method.
530 (aarch64_linux_nat_target::fetch_memtags): New method.
531 (aarch64_linux_nat_target::store_memtags): New method.
532 * arch/aarch64-mte-linux.c: New file.
533 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
534 (AARCH64_MTE_GRANULE_SIZE): Define.
535 (aarch64_memtag_type): New enum.
536 (aarch64_mte_get_tag_granules): New prototype.
537 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
538 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
539 * nat/aarch64-mte-linux-ptrace.c: New file.
540 * nat/aarch64-mte-linux-ptrace.h: New file.
544 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
545 * nat/aarch64-mte-linux-ptrace.h: New file.
549 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
550 (store_mteregs_to_thread): New function.
551 (aarch64_linux_nat_target::fetch_registers): Update to call
552 fetch_mteregs_from_thread.
553 (aarch64_linux_nat_target::store_registers): Update to call
554 store_mteregs_to_thread.
555 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
556 (aarch64_cannot_store_register): Handle MTE registers.
557 (aarch64_gdbarch_init): Initialize and setup MTE registers.
558 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
559 <has_mte>: New method.
560 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
564 * aarch64-linux-nat.c
565 (aarch64_linux_nat_target::read_description): Take MTE flag into
567 Slight refactor to hwcap flag checking.
568 * aarch64-linux-tdep.c
569 (aarch64_linux_core_read_description): Likewise.
570 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
572 (aarch64_read_description): Add mte_p parameter and update to use it.
573 Update the documentation.
574 (aarch64_gdbarch_init): Update call to aarch64_read_description.
575 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
576 * arch/aarch64.c: Include ../features/aarch64-mte.c.
577 (aarch64_create_target_description): Add mte_p parameter and update
579 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
581 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
582 * features/aarch64-mte.c: New file, generated.
583 * features/aarch64-mte.xml: New file.
587 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
588 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
589 * aarch64-linux-tdep.c: Likewise
590 * arch/aarch64-mte-linux.h: New file.
594 * remote: Include gdbsupport/selftest.h.
595 (test_memory_tagging_functions): New function.
596 (_initialize_remote): Register test_memory_tagging_functions.
600 * remote.c (PACKET_memory_tagging_feature): New enum.
601 (remote_memory_tagging_p): New function.
602 (remote_protocol_features): New "memory-tagging" entry.
603 (remote_target::remote_query_supported): Handle memory tagging
605 (remote_target::supports_memory_tagging): Implement.
606 (create_fetch_memtags_request, parse_fetch_memtags_reply)
607 (create_store_memtags_request): New functions.
608 (remote_target::fetch_memtags): Implement.
609 (remote_target::store_memtags): Implement.
610 (_initialize_remote): Add new "memory-tagging-feature"
615 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
616 (default_memtag_matches_p, default_set_memtags)
617 (default_get_memtag): New functions.
618 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
619 (default_memtag_matches_p, default_set_memtags)
620 (default_get_memtag): New prototypes.
621 * gdbarch.c: Regenerate.
622 * gdbarch.h: Regenerate.
623 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
624 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
625 (enum memtag_type): New enum.
629 * remote.c (remote_target) <supports_memory_tagging>: New method
631 <fetch_memtags>: New method override.
632 <store_memtags>: New method override.
633 (remote_target::supports_memory_tagging): New method.
634 (remote_target::fetch_memtags): New method.
635 (remote_target::store_memtags): New method.
636 * target-delegates.c: Regenerate.
637 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
639 <fetch_memtags>: New virtual method.
640 <store_memtags>: New virtual method.
641 (target_supports_memory_tagging): Define.
642 (target_fetch_memtags): Define.
643 (target_store_memtags): Define.
644 * target-debug.h (target_debug_print_size_t)
645 (target_debug_print_const_gdb_byte_vector_r)
646 (target_debug_print_gdb_byte_vector_r): New functions.
650 * target.h (target_longname): Remove.
654 * target.h (target_is_pushed): Remove, update callers to use
655 inferior::target_is_pushed instead.
656 * target.c (target_is_pushed): Remove.
660 * target.h (push_target): Remove, update callers to use
661 inferior::push_target.
662 * target.c (push_target): Remove.
663 * inferior.h (class inferior) <push_target>: New overload.
667 * target.h (unpush_target): Remove, update all callers
668 to use `inferior::unpush_target` instead.
669 (struct target_unpusher) <operator()>: Just declare.
670 * target.c (unpush_target): Remove.
671 (target_unpusher::operator()): New.
675 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
677 (process_full_comp_unit): Validate the top-level tag before
678 processing the first DIE.
679 (read_func_scope): Ensure we have a valid builder.
683 * objc-lang.c (objc_demangle): Renamed to
684 objc_language::demangle_symbol, and moved later in the file.
685 (objc_language::sniff_from_mangled_name): Call demangle_symbol
687 (objc_language::demangle_symbol): Defined outside of class
688 declaration. The definition is the old objc_demangle with NULL
689 changed to nullptr, and if conditions relating to nullptr pointers
690 or null character checks made explicit.
691 * objc-lang.h (objc_demangle): Delete declaration.
695 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
696 (_initialize_arm_tdep): Likewise.
700 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
701 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
702 * psymtab.h (make_psymbol_functions): Don't declare.
703 * psymtab.c (make_psymbol_functions): Remove.
704 (maintenance_print_psymbols): Update.
705 * psympriv.h (struct psymbol_functions): Add no-argument
707 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
708 <partial_symtabs>: Remove.
709 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
710 * elfread.c (read_partial_symbols): Update.
711 (elf_symfile_read): Remove check for existing partial symbols.
713 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
715 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
717 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
719 * dbxread.c (dbx_symfile_read): Create partial symtabs.
720 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
724 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
725 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
726 * symfile-debug.c (objfile::has_partial_symbols)
727 (objfile::find_last_source_symtab)
728 (objfile::forget_cached_source_info)
729 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
730 (objfile::print_stats, objfile::dump)
731 (objfile::expand_symtabs_for_function)
732 (objfile::expand_all_symtabs)
733 (objfile::expand_symtabs_with_fullname)
734 (objfile::map_matching_symbols)
735 (objfile::expand_symtabs_matching)
736 (objfile::find_pc_sect_compunit_symtab)
737 (objfile::map_symbol_filenames)
738 (objfile::find_compunit_symtab_by_address)
739 (objfile::lookup_global_symbol_language)
740 (objfile::require_partial_symbols): Update.
741 * psymtab.c (maintenance_print_psymbols)
742 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
743 * objfiles.h (struct objfile) <qf>: Now a forward_list.
744 * objfiles.c (objfile_relocate1): Update.
745 * elfread.c (elf_symfile_read): Update.
749 * objfiles.h (struct objfile) <psymtabs>: Remove method.
753 * psymtab.c (psymbol_functions::count_psyms): Rename.
754 (psymbol_functions::print_stats): Update.
755 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
760 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
761 (psymbol_functions::find_pc_sect_psymtab): Rename.
762 (psymbol_functions::find_pc_sect_compunit_symtab)
763 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
764 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
766 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
770 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
771 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
772 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
774 (add_psymbol_to_bcache): Remove.
775 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
776 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
778 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
779 <add_psymbol>: Likewise.
780 (standard_psymtab, legacy_psymtab): Likewise.
781 * mdebugread.c (parse_partial_symbols): Update.
782 (handle_psymbol_enumerators): Add partial_symtabs parameter.
783 (handle_psymbol_enumerators): Update.
784 (new_psymtab): Add partial_symtabs parameter.
785 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
786 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
788 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
789 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
791 * dbxread.c (read_dbx_symtab): Update.
792 (start_psymtab): Add partial_symtabs parameter.
793 (dbx_end_psymtab): Update.
794 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
795 (ctf_psymtab): Add partial_symtabs parameter.
796 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
798 (scan_partial_symbols): Add partial_symtabs parameter.
799 (scan_partial_symbols, elfctf_build_psymtabs)
800 (ctf_psymtab_add_enums): Update.
804 * symfile.c (read_symbols): Use objfile method.
805 * symfile-debug.c (objfile::require_partial_symbols): New method.
806 * psymtab.h (require_partial_symbols): Don't declare.
807 * psymtab.c (require_partial_symbols): Use objfile method. Now
809 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
810 (psymbol_functions::lookup_symbol)
811 (psymbol_functions::lookup_global_symbol_language)
812 (psymbol_functions::find_last_source_symtab)
813 (psymbol_functions::forget_cached_source_info)
814 (psymbol_functions::print_stats)
815 (psymbol_functions::expand_symtabs_for_function)
816 (psymbol_functions::expand_all_symtabs)
817 (psymbol_functions::expand_symtabs_with_fullname)
818 (psymbol_functions::map_symbol_filenames)
819 (psymbol_functions::map_matching_symbols)
820 (psymbol_functions::expand_symtabs_matching)
821 (psymbol_functions::find_compunit_symtab_by_address)
822 (maintenance_print_psymbols, maintenance_info_psymtabs)
823 (maintenance_check_psymtabs): Update.
824 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
829 * xcoffread.c (xcoff_sym_fns): Update.
830 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
831 * symfile-debug.c (objfile::has_partial_symbols): Use
832 can_lazily_read_symbols.
833 (debug_sym_read_psymbols): Remove.
834 (debug_sym_fns, install_symfile_debug_logging): Update.
835 * quick-symbol.h (struct quick_symbol_functions)
836 <can_lazily_read_symbols, read_partial_symbols>: New methods.
837 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
838 * mipsread.c (ecoff_sym_fns): Update.
839 * machoread.c (macho_sym_fns): Update.
840 * elfread.c (struct lazy_dwarf_reader): New.
841 (elf_symfile_read): Update.
842 (read_psyms): Now a method of lazy_dwarf_reader.
843 (elf_sym_fns): Update.
844 (elf_sym_fns_lazy_psyms): Remove.
845 * dbxread.c (aout_sym_fns): Update.
846 * coffread.c (coff_sym_fns): Update.
850 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
851 (reread_symbols): Move reset_psymtabs call later.
852 * objfiles.c (objfile::objfile): Don't initialize
857 * dwarf2/read.c (dwarf2_build_psymtabs): Call
859 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
860 * psymtab.h (make_psymbol_functions): Add partial_symtabs
862 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
864 (psymbol_functions::find_pc_sect_compunit_symtab)
865 (psymbol_functions::print_stats, psymbol_functions::dump)
866 (psymbol_functions::has_symbols): Update.
867 (make_psymbol_functions, dump_psymtab_addrmap): Add
868 partial_symtabs parameter.
869 (maintenance_print_psymbols): Update.
870 (psymbol_functions::expand_symtabs_matching): Update.
871 * psympriv.h (struct psymbol_functions): Add constructor.
872 <m_partial_symtabs>: New member.
873 <set_partial_symtabs>: New method.
877 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
879 (process_psymtab_comp_unit_reader)
880 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
881 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
882 Reference psymtabs via per_bfd.
886 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
888 (add_address_entry): Remove objfile parameter.
889 (add_address_entry_worker): Update.
890 (write_address_map): Replace objfile parameter with per_bfd.
891 (write_gdbindex, write_psymtabs_to_index): Update.
895 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
896 print_bcache parameter.
897 * symfile-debug.c (objfile::print_stats): Add print_bcache
899 * quick-symbol.h (struct quick_symbol_functions)
900 <print_stats>: Add print_bcache parameter.
901 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
903 (print_objfile_statistics): Move psymtab code to psymtab.c.
904 * psymtab.c (count_psyms): Move from symmisc.c.
905 (psymbol_functions::print_stats): Print partial symbol and bcache
906 statistics. Add print_bcache parameter.
907 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
908 (struct objfile) <print_stats>: Add print_bcache parameter.
909 * maint.c (maintenance_print_statistics): Update.
913 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
915 * dwarf2/read.c (create_addrmap_from_index)
916 (create_addrmap_from_aranges): Set per_bfd addrmap.
917 (dwarf2_read_gdb_index): Don't set partial_symtabs.
918 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
920 (dwarf2_read_debug_names): Don't set partial_symtabs.
921 (dwarf2_initialize_objfile): Likewise.
925 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
930 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
931 (~psymtab_discarder, keep): Update.
933 <m_partial_symtabs>: New member.
934 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
938 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
939 (xcoff_end_psymtab): Update.
940 (scan_xcoff_symtab): Add partial_symtabs parameter.
941 (xcoff_initial_scan): Update.
942 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
943 * mdebugread.c (mdebug_build_psymtabs): Update.
944 (parse_partial_symbols): Add partial_symtabs parameter.
945 * dbxread.c (dbx_symfile_read): Update.
946 (read_dbx_symtab): Add partial_symtabs parameter.
947 (read_dbx_symtab): Update.
948 (dbx_end_psymtab): Add partial_symtabs parameter.
952 * quick-symbol.h (struct quick_symbol_functions)
953 <relocated>: New method.
954 * psymtab.h (struct psymbol_functions) <relocated>: New
956 <fill_psymbol_map>: Declare method.
957 <m_psymbol_map>: New member.
958 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
959 (psymbol_functions::find_compunit_symtab_by_address): Update.
960 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
961 (struct objfile) <psymbol_map>: Remove.
962 * objfiles.c (objfile_relocate1): Update.
966 * psympriv.h (struct psymbol_functions): New.
967 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
968 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
969 (objfile::lookup_global_symbol_language): Update.
970 * quick-symbol.h (struct quick_symbol_functions): Convert function
971 pointers to methods. Add virtual destructor.
972 (quick_symbol_functions_up): New typedef.
973 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
974 (dwarf2_debug_names_functions): Don't declare.
975 (make_psymbol_functions): Declare.
976 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
977 (psymbol_functions::find_pc_sect_compunit_symtab)
978 (psymbol_functions::lookup_symbol)
979 (psymbol_functions::lookup_global_symbol_language)
980 (psymbol_functions::find_last_source_symtab)
981 (psymbol_functions::forget_cached_source_info)
982 (psymbol_functions::print_stats, psymbol_functions::dump)
983 (psymbol_functions::expand_symtabs_for_function)
984 (psymbol_functions::expand_all_symtabs)
985 (psymbol_functions::expand_symtabs_with_fullname)
986 (psymbol_functions::map_symbol_filenames)
987 (psymbol_functions::map_matching_symbols)
988 (psymbol_functions::expand_symtabs_matching)
989 (psymbol_functions::has_symbols)
990 (psymbol_functions::find_compunit_symtab_by_address): Rename.
991 (psym_functions): Remove.
992 (make_psymbol_functions): New function.
993 * objfiles.h (struct objfile) <qf>: Change type.
994 * elfread.c (elf_symfile_read): Update.
995 * dwarf2/read.c (struct dwarf2_base_index_functions)
996 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
997 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
998 (dwarf2_base_index_functions::find_last_source_symtab)
999 (dwarf2_base_index_functions::forget_cached_source_info)
1000 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1001 (dwarf2_gdb_index::lookup_symbol)
1002 (dwarf2_base_index_functions::print_stats)
1003 (dwarf2_gdb_index::dump)
1004 (dwarf2_gdb_index::expand_symtabs_for_function)
1005 (dwarf2_base_index_functions::expand_all_symtabs)
1006 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1008 (dwarf2_gdb_index::map_matching_symbols): New method.
1009 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1010 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1011 (dwarf2_base_index_functions::map_symbol_filenames)
1012 (dwarf2_base_index_functions::has_symbols): Rename.
1013 (dwarf2_gdb_index_functions): Remove.
1014 (dwarf2_debug_names_index::lookup_symbol)
1015 (dwarf2_debug_names_index::dump)
1016 (dwarf2_debug_names_index::expand_symtabs_for_function)
1017 (dwarf2_debug_names_index::map_matching_symbols)
1018 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1019 (dwarf2_debug_names_functions): Remove.
1020 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1025 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1027 * xcoffread.c (xcoff_sym_fns): Update.
1028 * symfile.h (struct sym_fns) <qf>: Remove.
1029 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1030 * symfile-debug.c (objfile::has_partial_symbols)
1031 (objfile::find_last_source_symtab)
1032 (objfile::forget_cached_source_info)
1033 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1034 (objfile::print_stats, objfile::dump)
1035 (objfile::expand_symtabs_for_function)
1036 (objfile::expand_all_symtabs)
1037 (objfile::expand_symtabs_with_fullname)
1038 (objfile::map_matching_symbols)
1039 (objfile::expand_symtabs_matching)
1040 (objfile::find_pc_sect_compunit_symtab)
1041 (objfile::map_symbol_filenames)
1042 (objfile::find_compunit_symtab_by_address)
1043 (objfile::lookup_global_symbol_language, debug_sym_fns)
1044 (install_symfile_debug_logging): Update.
1045 * objfiles.h (struct objfile) <qf>: New member.
1046 * mipsread.c (ecoff_sym_fns): Update.
1047 * machoread.c (macho_sym_fns): Update.
1048 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
1050 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
1051 * dbxread.c (aout_sym_fns): Update.
1052 * coffread.c (coff_sym_fns): Update.
1056 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
1057 (expand_symtabs_file_matcher_ftype)
1058 (expand_symtabs_symbol_matcher_ftype)
1059 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
1060 Move to quick-symbol.h.
1061 * quick-symbol.h: New file.
1065 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
1066 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
1067 (basic_lookup_transparent_type_quick)
1068 (find_pc_sect_compunit_symtab, find_symbol_at_address)
1069 (find_line_symtab, global_symbol_searcher::expand_symtabs):
1071 * symmisc.c (print_objfile_statistics, dump_objfile)
1072 (maintenance_expand_symtabs): Update.
1073 * symfile.c (symbol_file_add_with_addrs)
1074 (expand_symtabs_matching, map_symbol_filenames): Update.
1075 * symfile-debug.c (objfile::has_partial_symbols)
1076 (objfile::find_last_source_symtab)
1077 (objfile::forget_cached_source_info)
1078 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1079 (objfile::print_stats, objfile::dump)
1080 (objfile::expand_symtabs_for_function)
1081 (objfile::expand_all_symtabs)
1082 (objfile::expand_symtabs_with_fullname)
1083 (objfile::map_matching_symbols)
1084 (objfile::expand_symtabs_matching)
1085 (objfile::find_pc_sect_compunit_symtab)
1086 (objfile::map_symbol_filenames)
1087 (objfile::find_compunit_symtab_by_address)
1088 (objfile::lookup_global_symbol_language): New methods.
1089 (debug_sym_quick_functions): Remove.
1090 (debug_sym_fns, install_symfile_debug_logging): Update.
1091 * source.c (forget_cached_source_info_for_objfile)
1092 (select_source_symtab): Update.
1093 * objfiles.h (struct objfile): Add methods corresponding to
1094 quick_symbol_functions.
1095 * objfiles.c (objfile::has_partial_symbols): Move to
1097 * linespec.c (iterate_over_all_matching_symtabs): Update.
1098 * cp-support.c (add_symbol_overload_list_qualified): Update.
1099 * ada-lang.c (add_nonlocal_symbols): Update.
1103 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1104 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1106 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1107 * psymtab.c (psym_has_symbols): Return bool.
1108 * objfiles.c (objfile::has_partial_symbols): Return bool.
1109 * dwarf2/read.c (dw2_has_symbols): Return bool.
1113 * symfile.c (read_symbols): Update.
1114 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1115 (objfile_has_partial_symbols): Don't declare.
1116 * objfiles.c (objfile::has_partial_symbols): Rename from
1117 objfile_has_partial_symbols.
1118 (objfile_has_symbols, have_partial_symbols): Update.
1119 * elfread.c (elf_symfile_read): Update.
1120 * dwarf2/read.c (dwarf2_has_info): Update.
1121 * coffread.c (coff_symfile_read): Update.
1125 * coffread.c: Include dwarf2/public.h.
1126 * dwarf2/frame.c: Include dwarf2/public.h.
1127 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1128 * dwarf2/public.h: New file.
1129 * dwarf2/read.c: Include dwarf2/public.h.
1130 * elfread.c: Include dwarf2/public.h.
1131 * machoread.c: Include dwarf2/public.h.
1132 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1133 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1134 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1135 * xcoffread.c: Include dwarf2/public.h.
1139 * symfile.h (enum dwarf2_section_enum)
1140 (dwarf2_get_section_info): Move to dwarf2/read.h.
1141 * dwarf2/read.h (enum dwarf2_section_enum)
1142 (dwarf2_get_section_info): Move from symfile.h.
1146 * thread.c (any_thread_of_inferior): Check if there's a selected
1147 thread before calling inferior_thread().
1151 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1153 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1154 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1158 * python/py-param.c (get_set_value): Update header comment.
1162 * infrun.c (check_multi_target_resumption): Remove argument to
1163 all_non_exited_inferiors.
1167 * windows-nat.c (windows_init_thread_list): Add message to
1172 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1173 well as PyLong_Check for Python 2.
1178 * rust-exp.y (maker_map): Use gdb::hash_enum.
1179 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1183 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1188 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1189 parameter, adjust caller.
1193 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1197 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1198 ada_ensure_varsize_limit.
1202 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1204 * ada-exp.y (maybe_overload): New function.
1205 (ada_wrap_overload): New function.
1206 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1207 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1208 (or_else_exp, xor_exp, primary): Update.
1213 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1214 call for tagged type.
1218 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1223 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1225 (ada_assign_operation::evaluate): Update.
1226 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1231 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1235 * python/python.c (gdbpy_source_objfile_script): Use
1236 make_scoped_restore to restore gdbpy_current_objfile.
1237 (gdbpy_execute_objfile_script): Likewise.
1241 * dwarf2/read.c (read_attribute_value): Use cu_header
1246 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1247 (peek_die_abbrev): Use reader.abfd.
1251 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1256 * dwarf2/read.c (struct partial_die_info): Update.
1257 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1258 (load_partial_dies, partial_die_info::partial_die_info): Update.
1259 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1263 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1268 * cp-support.c: Use scoped_segv_handler_restore.
1269 * event-top.c (thread_local_segv_handler): Made static.
1270 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1272 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1274 * event-top.h (class scoped_segv_handler_restore): New class.
1275 (thread_local_segv_handler): Removed.
1279 * parser-defs.h (parser_state): Change completion to bool.
1280 <parse_completion>: Likewise.
1281 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1282 (ada_resolve_variable, ada_resolve_function): Update.
1283 * ada-lang.c (ada_find_operator_symbol): Change
1284 parse_completion to bool.
1285 (ada_resolve_funcall, ada_resolve_variable)
1286 (ada_resolve_function): Likewise.
1290 * eval.c (operation::evaluate_funcall): Use function formal
1291 parameter types when evaluating.
1295 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1296 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1297 and owner to m_owner.
1301 * f-exp.h (eval_op_f_loc): Declare.
1302 (expr::fortran_loc_operation): New typedef.
1303 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1305 (f77_keywords): Add LOC keyword.
1306 * f-lang.c (eval_op_f_loc): New function.
1307 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1311 * f-exp.h (eval_op_f_array_shape): Declare.
1312 (fortran_array_shape_operation): New type.
1313 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1315 (f77_keywords): Add "shape" keyword.
1316 * f-lang.c (fortran_array_shape): New function.
1317 (eval_op_f_array_shape): New function.
1318 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1322 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1324 (expr::fortran_array_size_1arg): New type.
1325 (expr::fortran_array_size_2arg): Likewise.
1326 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1327 UNOP_OR_BINOP_INTRINSIC.
1328 (f77_keywords): Add "size" keyword.
1329 * f-lang.c (fortran_array_size): New function.
1330 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1331 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1335 * f-exp.h (eval_op_f_rank): Declare.
1336 (expr::fortran_rank_operation): New typedef.
1337 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1339 (f77_keywords): Add "rank" keyword.
1340 * f-lang.c (eval_op_f_rank): New function.
1341 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1345 * printcmd.c (set_command): Remove null check.
1346 * value.c (init_if_undefined_command): Remove null check.
1350 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1352 * p-exp.y (variable): Update.
1353 * go-exp.y (variable): Update.
1354 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1355 Remove overload for objfile.
1356 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1358 (check_objfile): Likewise.
1359 (dump_for_expression): Likewise. Remove overload for objfile.
1360 (class var_msym_value_operation): Use bound_minimal_symbol.
1361 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1363 (var_msym_value_operation::evaluate_for_address)
1364 (var_msym_value_operation::evaluate_for_sizeof)
1365 (var_msym_value_operation::evaluate_for_cast): Update.
1366 * d-exp.y (PrimaryExpression): Update.
1367 * c-exp.y (variable): Update.
1368 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1369 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1371 * ada-exp.y (write_var_or_type): Update.
1375 * parser-defs.h (exp_uses_objfile): Return bool.
1376 * parse.c (exp_uses_objfile): Return bool.
1380 * value.h (eval_skip_value): Don't declare.
1381 * opencl-lang.c (eval_opencl_assign): Update.
1382 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1383 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1384 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1385 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1386 * expop.h (typeof_operation::evaluate)
1387 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1388 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1389 (cxx_cast_operation::evaluate): Update.
1390 * eval.c (eval_skip_value): Remove.
1391 (eval_op_scope, eval_op_var_entry_value)
1392 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1393 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1394 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1395 (eval_op_binary, eval_op_subscript, eval_op_equal)
1396 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1397 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1398 (eval_op_complement, eval_op_lognot, eval_op_ind)
1399 (eval_op_memval, eval_op_preinc, eval_op_predec)
1400 (eval_op_postinc, eval_op_postdec, eval_op_type)
1401 (eval_binop_assign_modify, eval_op_objc_msgcall)
1402 (eval_multi_subscript, logical_and_operation::evaluate)
1403 (logical_or_operation::evaluate, array_operation::evaluate)
1404 (operation::evaluate_for_cast)
1405 (var_msym_value_operation::evaluate_for_cast)
1406 (var_value_operation::evaluate_for_cast): Update.
1407 * c-lang.c (c_string_operation::evaluate): Update.
1408 * c-exp.h (objc_nsstring_operation::evaluate)
1409 (objc_selector_operation::evaluate): Update.
1410 * ada-lang.c (ada_assign_operation::evaluate)
1411 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1412 (ada_atr_size): Update.
1416 * eval.c: Merge "namespace" scopes.
1420 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1422 * parse.c (expr_builder::expr_builder, expr_builder::release):
1427 * parse.c (expression::expression, expression::~expression):
1429 * expression.h (struct expression): Inline constructor. Remove
1434 * std-operator.def (BINOP_END): Remove.
1435 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1436 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1437 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1438 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1439 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1444 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1448 * std-operator.def (OP_EXTENDED0): Remove.
1452 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1453 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1458 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1459 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1463 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1464 * ada-lang.c (ada_binop_minmax): Update.
1465 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1466 Use BINOP_MIN and BINOP_MAX.
1470 * value.h (evaluate_subexp_with_coercion): Don't declare.
1471 * parse.c (exp_descriptor_standard): Remove.
1472 (expr_builder::expr_builder, expr_builder::release): Update.
1473 (expression::expression): Remove size_t parameter.
1474 (expression::~expression): Simplify.
1475 (expression::resize): Remove.
1476 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1477 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1478 (write_exp_elt_longcst, write_exp_elt_floatcst)
1479 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1480 (write_exp_string_vector, write_exp_bitstring): Remove.
1481 * p-lang.h (class pascal_language) <opcode_print_table,
1482 op_print_tab>: Remove.
1483 * p-lang.c (pascal_language::op_print_tab): Remove.
1484 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1486 * objc-lang.c (objc_op_print_tab): Remove.
1487 (class objc_language) <opcode_print_table>: Remove.
1488 * m2-lang.h (class m2_language) <opcode_print_table,
1489 op_print_tab>: Remove.
1490 * m2-lang.c (m2_language::op_print_tab): Remove.
1491 * language.h (struct language_defn) <post_parser, expression_ops,
1492 opcode_print_table>: Remove.
1493 * language.c (language_defn::expression_ops)
1494 (auto_or_unknown_language::opcode_print_table): Remove.
1495 * go-lang.h (class go_language) <opcode_print_table,
1496 op_print_tab>: Remove.
1497 * go-lang.c (go_language::op_print_tab): Remove.
1498 * f-lang.h (class f_language) <opcode_print_table>: Remove
1499 <op_print_tab>: Remove.
1500 * f-lang.c (f_language::op_print_tab): Remove.
1501 * expression.h (union exp_element): Remove.
1502 (struct expression): Remove size_t parameter from constructor.
1504 <first_opcode>: Update.
1505 <nelts, elts>: Remove.
1506 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1507 (evaluate_subexp_standard, print_expression, op_string)
1508 (dump_raw_expression): Don't declare.
1509 * expprint.c (print_expression, print_subexp)
1510 (print_subexp_funcall, print_subexp_standard, op_string)
1511 (dump_raw_expression, dump_subexp, dump_subexp_body)
1512 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1513 (dump_prefix_expression): Update.
1514 * eval.c (evaluate_subexp): Remove.
1515 (evaluate_expression, evaluate_type): Update.
1516 (evaluate_subexpression_type): Remove.
1517 (fetch_subexp_value): Remove "pc" parameter. Update.
1518 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1519 (evaluate_subexp_standard, evaluate_subexp_for_address)
1520 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1521 (evaluate_subexp_for_cast): Remove.
1522 (parse_and_eval_type): Update.
1523 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1524 * d-lang.c (d_op_print_tab): Remove.
1525 (class d_language) <opcode_print_table>: Remove.
1526 * c-lang.h (c_op_print_tab): Don't declare.
1527 * c-lang.c (c_op_print_tab): Remove.
1528 (class c_language, class cplus_language, class asm_language, class
1529 minimal_language) <opcode_print_table>: Remove.
1530 * breakpoint.c (update_watchpoint, watchpoint_check)
1531 (watchpoint_exp_is_const, watch_command_1): Update.
1532 * ax-gdb.h (union exp_element): Don't declare.
1533 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1534 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1535 (gen_expr_binop_rest): Remove.
1536 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1537 * ada-lang.c (ada_op_print_tab): Remove.
1538 (class ada_language) <post_parser, opcode_print_table>: Remove.
1542 * go-lang.c (go_language::expression_ops): Don't declare.
1543 * go-lang.h (class go_language) <expression_ops>: Remove.
1544 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1546 (class opencl_language) <expression_ops>: Remove.
1547 * d-lang.c (class d_language) <expression_ops>: Remove.
1548 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1549 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1550 (class c_language, class cplus_language, class asm_language)
1551 (class minimal_language) <expression_ops>: Remove.
1555 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1556 (evaluate_subexp_type, assign_aggregate)
1557 (aggregate_assign_positional, aggregate_assign_from_choices)
1558 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1559 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1560 (ada_operator_check, ada_forward_operator_length)
1561 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1563 (post_parser): Update.
1564 (class ada_language) <expresssion_ops>: Remove.
1568 * m2-lang.h (class m2_language) <expresssion_ops,
1569 exp_descriptor_modula2>: Remove.
1570 * m2-lang.c (evaluate_subexp_modula2)
1571 (m2_language::exp_descriptor_modula2): Remove.
1575 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1576 <exp_descriptor_tab>: Remove.
1577 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1578 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1579 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1580 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1585 * rust-lang.h (class rust_language) <expression_ops,
1586 exp_descriptor_tab>: Remove.
1587 * rust-lang.c (rust_evaluate_funcall): Remove.
1588 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1590 (rust_evaluate_subexp): Remove.
1591 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1592 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1593 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1597 * ada-exp.y: Create operations.
1598 (empty_stoken): Remove.
1599 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1600 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1601 (components): New global.
1602 (push_component, choice_component, pop_component, pop_components):
1604 (associations): New global
1605 (push_association, pop_association, pop_associations): New
1607 (ada_parse): Update.
1608 (write_var_from_sym, write_int): Create operations.
1609 (write_exp_op_with_string): Remove.
1610 (write_object_renaming, write_selectors, write_ambiguous_var)
1611 (write_var_or_type, write_name_assoc): Create operations.
1612 * ada-lang.h (ada_index_type): Declare.
1613 * ada-lang.c (ada_index_type): No longer static.
1617 * f-exp.y: Create operations.
1618 (f_language::parser): Update.
1622 * m2-exp.y: Create operations.
1623 (m2_language::parser): Update.
1627 * p-exp.y: Create operations.
1628 (pascal_language::parser): Update.
1632 * d-exp.y: Create operations.
1637 * go-exp.y: Create operations.
1638 (go_language::parser): Update.
1642 * objc-lang.c (end_msglist): Create operations.
1643 * c-exp.y: Change parser to create operations.
1644 (write_destructor_name): Remove.
1649 * rust-exp.y: Create operations.
1650 (rust_parser::convert_params_to_expression): Change return type.
1651 (binop_maker_ftype): New typedef.
1652 (maker_map): New global.
1653 (rust_parser::convert_ast_to_expression): Change return type.
1654 (rust_language::parser): Update.
1655 (_initialize_rust_exp): Initialize maker_map.
1659 * stap-probe.c (binop_maker_ftype): New typedef.
1660 (stap_maker_map): New global.
1661 (stap_make_binop): New function.
1662 (stap_parse_register_operand): Return operation_up.
1663 (stap_parse_single_operand, stap_parse_argument_conditionally)
1664 (stap_parse_argument_1): Likewise.
1665 (stap_parse_argument): Create operations.
1666 (stap_probe::parse_arguments): Update.
1667 (_initialize_stap_probe): Initialize stap_maker_map.
1668 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1670 * i386-tdep.h (i386_stap_parse_special_token): Change return
1672 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1673 (i386_stap_parse_special_token_three_arg_disp)
1674 (i386_stap_parse_special_token): Change return type.
1675 * gdbarch.sh (stap_parse_special_token): Change return type.
1676 * gdbarch.c: Rebuild.
1677 * gdbarch.h: Rebuild.
1678 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1680 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1685 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1686 * gdbarch.h: Rebuild.
1687 * gdbarch.c: Rebuild.
1688 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1689 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1691 (amd64_dtrace_parse_probe_argument): Update.
1695 * parser-defs.h (struct parser_state) <push, push_new,
1696 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1697 wrap2>: New methods.
1698 <m_operations>: New member.
1699 * parse.c (parser_state::push_c_string)
1700 (parser_state::push_symbol, parser_state::push_dollar): New
1705 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1707 (struct parser_state) <mark_struct_expression>: New method.
1708 * parse.c (parser_state::mark_struct_expression): Update assert.
1709 (parser_state::mark_struct_expression): New method.
1710 (parser_state::mark_completion_tag): Update assert.
1711 (parse_expression_for_completion): Handle expout_last_op.
1715 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1717 * value.h (fetch_subexp_value): Add "op" parameter.
1718 * value.c (init_if_undefined_command): Update.
1719 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1720 * stap-probe.c (stap_probe::compile_to_ax): Update.
1721 * printcmd.c (set_command): Update.
1722 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1724 * parser-defs.h (struct expr_builder) <set_operation>: New
1726 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1727 * expression.h (struct expression) <first_opcode>: Update.
1729 * expprint.c (dump_raw_expression, dump_prefix_expression):
1731 * expop.h (class var_value_operation) <get_symbol>: New method.
1732 (class register_operation) <get_name>: New method.
1733 (class equal_operation): No longer a typedef, now a subclass.
1734 (class unop_memval_operation) <get_type>: New method.
1735 (class assign_operation) <get_lhs>: New method.
1736 (class unop_cast_operation) <get_type>: New method.
1737 * eval.c (evaluate_expression, evaluate_type)
1738 (evaluate_subexpression_type): Update.
1739 (fetch_subexp_value): Add "op" parameter.
1740 (parse_and_eval_type): Update.
1741 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1742 * breakpoint.c (update_watchpoint, watchpoint_check)
1743 (watchpoint_exp_is_const, watch_command_1): Update.
1744 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1749 * ada-lang.c (ada_value_binop): Do not use op_string.
1753 * expprint.c (dump_for_expression): New overload.
1754 * expop.h (check_objfile, dump_for_expression): Declare new
1756 * ada-lang.c (check_objfile): New overload.
1757 (assign_component, ada_aggregate_component::uses_objfile)
1758 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1759 (ada_aggregate_component::assign_aggregate)
1760 (ada_positional_component::uses_objfile)
1761 (ada_positional_component::dump, ada_positional_component::assign)
1762 (ada_discrete_range_association::uses_objfile)
1763 (ada_discrete_range_association::dump)
1764 (ada_discrete_range_association::assign)
1765 (ada_name_association::uses_objfile, ada_name_association::dump)
1766 (ada_name_association::assign)
1767 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1768 (ada_choices_component::assign)
1769 (ada_others_component::uses_objfile, ada_others_component::dump)
1770 (ada_others_component::assign, ada_assign_operation::evaluate):
1772 * ada-exp.h (ada_string_operation) <get_name>: New method.
1773 (class ada_assign_operation): New.
1774 (class ada_component): New.
1775 (ada_component_up): New typedef.
1776 (class ada_aggregate_operation, class ada_aggregate_component)
1777 (class ada_positional_component, class ada_others_component)
1778 (class ada_association): New.
1779 (ada_association_up): New typedef.
1780 (class ada_choices_component)
1781 (class ada_discrete_range_association)
1782 (class ada_name_association): New.
1786 * ada-lang.c (ada_var_value_operation::resolve)
1787 (ada_funcall_operation::resolve)
1788 (ada_ternop_slice_operation::resolve): New methods.
1789 * ada-exp.h (struct ada_resolvable): New.
1790 (class ada_var_value_operation): Derive from ada_resolvable.
1791 <get_block, resolve>: New methods.
1792 (class ada_funcall_operation): Derive from ada_resolvable.
1793 <resolve>: New method.
1794 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1795 <resolve>: New method.
1799 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1800 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1802 (class ada_funcall_operation): New.
1806 * ada-lang.c (ada_structop_operation::evaluate): New method.
1807 * ada-exp.h (class ada_structop_operation): New.
1811 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1812 * ada-exp.h (class ada_unop_ind_operation): New.
1816 * ada-lang.c (ada_binop_exp): No longer static.
1817 * ada-exp.h (ada_binop_exp_operation): New typedef.
1821 * ada-lang.c (ada_val_atr): No longer static.
1822 (ada_atr_val_operation::evaluate): New method.
1823 * ada-exp.h (class ada_atr_val_operation): New.
1827 * ada-lang.c (ada_pos_atr): No longer static.
1828 * ada-exp.h (ada_pos_operation): New typedef.
1832 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1834 (ada_evaluate_subexp): Use it.
1838 * ada-lang.c (ada_binop_minmax): No longer static.
1839 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1844 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1846 * ada-exp.h (class ada_var_msym_value_operation): New.
1850 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1851 (ada_var_value_operation::evaluate): New methods.
1852 * ada-exp.h (class ada_var_value_operation): New.
1856 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1857 * ada-exp.h (class ada_unop_atr_operation): New.
1861 * ada-lang.c (ada_binop_in_bounds): No longer static.
1862 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1866 * ada-lang.c (ada_ternop_slice): No longer static.
1867 * ada-exp.h (class ada_ternop_slice_operation): New.
1871 * ada-exp.h (ada_bitwise_operation): New template class.
1872 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1873 (ada_bitwise_xor_operation): New typedefs.
1877 * ada-lang.c (ada_equal_binop): No longer static.
1878 * ada-exp.h (class ada_binop_equal_operation): New.
1882 * ada-lang.c (ada_mult_binop): No longer static.
1883 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1884 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1888 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1889 * ada-exp.h (class ada_binop_addsub_operation): New.
1893 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1894 (ada_resolve_variable): Declare.
1895 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1896 (ada_resolve_variable): New functions.
1897 (resolve_subexp): Update.
1901 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1903 * c-exp.h (class opencl_ternop_cond_operation): New.
1907 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1909 * c-exp.h (class opencl_logical_binop_operation): New.
1913 * opencl-lang.c (opencl_structop_operation::evaluate): New
1915 * c-exp.h (class opencl_structop_operation): New.
1919 * opencl-lang.c (opencl_logical_not): No longer static. Change
1921 (evaluate_subexp_opencl): Update.
1922 * c-exp.h (opencl_notequal_operation): New typedef.
1926 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1927 static. Change parameters.
1928 (eval_opencl_assign): No longer static. Add "op" parameter.
1929 (evaluate_subexp_opencl): Update.
1930 * c-exp.h (opencl_binop_operation): New template class.
1931 (opencl_assign_operation, opencl_equal_operation)
1932 (opencl_notequal_operation, opencl_less_operation)
1933 (opencl_gtr_operation, opencl_geq_operation)
1934 (opencl_leq_operation): New typedefs.
1938 * opencl-lang.c (opencl_value_cast): No longer static.
1939 * c-exp.h (opencl_cast_type_operation): New typedef.
1943 * f-exp.h (eval_op_f_allocated): Declare.
1944 (fortran_allocated_operation): New typedef.
1945 * f-lang.c (eval_op_f_allocated): No longer static.
1949 * f-lang.c (eval_op_f_associated): New functions.
1950 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1955 * f-lang.c (fortran_bound_1arg::evaluate)
1956 (fortran_bound_2arg::evaluate): New methods.
1957 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1962 * expop.h (class unop_addr_operation) <get_expression>: New
1964 * f-lang.c (fortran_undetermined::value_subarray)
1965 (fortran_undetermined::evaluate): New methods.
1966 (fortran_prepare_argument): New overload.
1967 * f-exp.h (class fortran_range_operation)
1968 (class fortran_undetermined): New classes.
1972 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1973 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1978 * expression.h (class operation) <evaluate_funcall>: New methods.
1979 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1980 (class var_value_operation) <evaluate_funcall>: New method.
1981 (class structop_base_operation) <evaluate_funcall>: New method.
1982 (class var_msym_value_operation) <evaluate_funcall>: New method.
1983 (class structop_member_base): New class.
1984 (class structop_member_operation): Derive from
1985 structop_member_base.
1986 (class structop_mptr_operation): Derive from
1987 structop_member_base.
1988 (class funcall_operation): New class.
1989 * eval.c (operation::evaluate_funcall)
1990 (var_value_operation::evaluate_funcall)
1991 (scope_operation::evaluate_funcall)
1992 (structop_member_base::evaluate_funcall)
1993 (structop_base_operation::evaluate_funcall): New methods.
1997 * expop.h (class array_operation): New.
1998 * eval.c (array_operation::evaluate_struct_tuple)
1999 (array_operation::evaluate): New methods.
2003 * expop.h (class adl_func_operation): New.
2004 * eval.c (adl_func_operation::evaluate): New method.
2008 * ada-lang.c (ada_unop_in_range): No longer static.
2009 * ada-exp.h (class ada_unop_range_operation): New.
2013 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2015 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2016 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2020 * expop.h (class logical_and_operation)
2021 (class logical_or_operation): New.
2022 * eval.c (logical_and_operation::evaluate)
2023 (logical_or_operation::evaluate): New methods.
2024 * ax-gdb.c (logical_and_operation::do_generate_ax)
2025 (logical_or_operation::do_generate_ax): New methods.
2029 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2031 * m2-exp.h: New file.
2035 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2036 * rust-exp.h (class rust_aggregate_operation): New.
2040 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2042 * rust-exp.h (class rust_struct_anon): New.
2043 (class rust_structop): New.
2047 * rust-lang.c (rust_range): No longer static.
2048 * rust-exp.h (class rust_range_operation): New.
2052 * rust-lang.c (rust_subscript): No longer static.
2053 * rust-exp.h (class rust_subscript_operation): New.
2057 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
2059 (rust_evaluate_subexp): Update.
2060 * rust-exp.h (class rust_unop_ind_operation): New.
2064 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
2065 longer static. Add "opcode" parameter.
2066 (rust_evaluate_subexp): Update.
2067 * rust-exp.h: New file.
2071 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2072 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
2073 (eval_op_f_kind): No longer static. Add "opcode" parameter.
2074 (evaluate_subexp_f): Update.
2075 * f-exp.h: New file.
2079 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2080 * ada-exp.h (class ada_ternop_range_operation): New.
2084 * ada-lang.c (ada_qual_operation::evaluate): New method.
2085 * ada-exp.h (class ada_qual_operation): New.
2089 * ada-lang.c (ada_string_operation::evaluate): New method.
2090 * ada-exp.h (class ada_string_operation): New.
2094 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2095 * ada-exp.h: New file.
2099 * expop.h (class multi_subscript_operation): New.
2100 * eval.c (multi_subscript_operation::evaluate): New method.
2104 * eval.c (objc_msgcall_operation::evaluate): New method.
2105 * c-exp.h (class objc_msgcall_operation): New.
2109 * expop.h (class var_value_operation): New.
2110 * eval.c (var_value_operation::evaluate)
2111 (var_value_operation::evaluate_for_address)
2112 (var_value_operation::evaluate_with_coercion)
2113 (var_value_operation::evaluate_for_sizeof)
2114 (var_value_operation::evaluate_for_cast): New methods.
2115 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2119 * expop.h (cxx_cast_ftype): New typedef.
2120 (cxx_cast_operation): New template.
2121 (dynamic_cast_operation, reinterpret_cast_operation): New
2126 * expop.h (class unop_cast_type_operation): New.
2127 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2132 * expop.h (class unop_cast_operation): New.
2133 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2137 * expop.h (class assign_modify_operation): New.
2138 * eval.c (eval_binop_assign_modify): No longer static.
2139 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2143 * expop.h (class assign_operation): New.
2144 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2148 * expop.h (class type_instance_operation): New.
2149 * eval.c (type_instance_operation::evaluate): New method.
2153 * expop.h (class op_this_operation): New.
2154 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2158 * expop.h (class unop_memval_operation)
2159 (class unop_memval_type_operation): New.
2160 * eval.c (eval_op_memval): No longer static.
2161 (unop_memval_operation::evaluate_for_address)
2162 (unop_memval_type_operation::evaluate_for_address)
2163 (unop_memval_operation::evaluate_for_sizeof)
2164 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2165 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2166 (unop_memval_type_operation::do_generate_ax): New methods.
2170 * expop.h (class unop_alignof_operation): New.
2171 * eval.c (eval_op_alignof): No longer static.
2175 * expop.h (class unop_sizeof_operation): New.
2176 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2180 * expop.h (class unop_addr_operation): New.
2181 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2185 * expop.h (class typeid_operation): New.
2189 * expop.h (class decltype_operation): New.
2193 * expop.h (class typeof_operation): New.
2197 * expop.h (class type_operation): New.
2198 * eval.c (eval_op_type): No longer static.
2202 * expop.h (class unop_ind_base_operation)
2203 (class unop_ind_operation): New.
2204 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2205 (unop_ind_base_operation::evaluate_for_address)
2206 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2207 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2211 * expop.h (unop_incr_operation): New template.
2212 (preinc_operation, predec_operation, postinc_operation)
2213 (postdec_operation): New typedefs.
2214 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2215 (eval_op_postdec): No longer static.
2219 * expop.h (unary_ftype): New typedef.
2220 (unop_operation, usual_ax_binop_operation): New templates.
2221 (unary_plus_operation, unary_neg_operation)
2222 (unary_complement_operation, unary_logical_not_operation): New
2224 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2225 (eval_op_lognot): No longer static.
2226 * ax-gdb.c (gen_expr_unop): New function.
2230 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2234 * expop.h (class repeat_operation): New.
2235 * eval.c (eval_op_repeat): No longer static. Remove "op"
2237 (evaluate_subexp_standard): Update.
2238 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2242 * expop.h (class comparison_operation): New.
2243 (equal_operation, notequal_operation, less_operation)
2244 (gtr_operation, geq_operation, leq_operation): New typedefs.
2245 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2246 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2250 * expop.h (class subscript_operation): New.
2251 * eval.c (eval_op_subscript): No longer static.
2255 * expop.h (class binop_operation, class usual_ax_binop_operation):
2257 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2258 (div_operation, rem_operation, lsh_operation, rsh_operation)
2259 (bitwise_and_operation, bitwise_ior_operation)
2260 (bitwise_xor_operation): New typedefs.
2261 * eval.c (eval_op_binary): No longer static.
2265 * expop.h (class sub_operation): New.
2266 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2267 (evaluate_subexp_standard): Update.
2271 * expop.h (class add_operation): New.
2272 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2273 (evaluate_subexp_standard): Update.
2277 * expop.h (class concat_operation): New.
2278 * eval.c (eval_op_concat): No longer static. Remove "op"
2280 (evaluate_subexp_standard): Update.
2284 * expop.h (class structop_member_operation)
2285 (class structop_mptr_operation): New.
2286 * eval.c (eval_op_member): No longer static.
2290 * expop.h (class structop_ptr_operation): New.
2291 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2296 * expop.h (class structop_base_operation)
2297 (class structop_operation): New.
2298 * eval.c (eval_op_structop_struct): No longer static.
2302 * expop.h (class complex_operation): New.
2306 * eval.c (eval_op_objc_selector): No longer static.
2307 * c-exp.h (class objc_selector_operation): New.
2311 * eval.c: Include c-exp.h.
2312 * c-exp.h (class objc_nsstring_operation): New.
2316 * c-lang.c (c_string_operation::evaluate): New method.
2317 * c-exp.h: New file.
2321 * expop.h (class ternop_cond_operation): New.
2322 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2326 * expop.h (class ternop_slice_operation): New.
2327 * eval.c (eval_op_ternop): No longer static.
2331 * expop.h (class string_operation): New.
2332 * eval.c (eval_op_string): No longer static.
2336 * expop.h (class internalvar_operation): New.
2337 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2341 * expop.h (class bool_operation): New.
2345 * expop.h (class register_operation): New.
2346 * eval.c (eval_op_register): No longer static.
2347 * ax-gdb.c (register_operation::do_generate_ax): New method.
2351 * expop.h (class last_operation): New.
2355 * expop.h (class func_static_var_operation): New.
2356 * eval.c (eval_op_func_static_var): No longer static.
2360 * expop.h (class var_entry_value_operation): New.
2361 * eval.c (eval_op_var_entry_value): No longer static.
2365 * expression.h (class operation) <set_outermost>: New method.
2366 * expop.h (class var_msym_value_operation): New.
2367 * eval.c (eval_op_var_msym_value): No longer static.
2368 (var_msym_value_operation::evaluate_for_address)
2369 (var_msym_value_operation::evaluate_for_sizeof)
2370 (var_msym_value_operation::evaluate_for_cast): New methods.
2371 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2376 * expop.h (class long_const_operation): New.
2377 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2381 * expop.h (class scope_operation): New.
2382 * eval.c (eval_op_scope): No longer static.
2383 (scope_operation::evaluate_for_address): New method.
2384 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2388 * expprint.c (float_const_operation::dump): New method.
2389 * expop.h (float_data): New typedef.
2390 (class float_const_operation): New.
2394 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2395 * ax-gdb.c (gen_expr_binop): New function.
2396 (gen_expr_structop): Likewise.
2400 * expprint.c (expr::dump_for_expression): New functions.
2401 * expop.h (dump_for_expression): New overloads.
2402 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2407 * expression.h (expr::operation): New class.
2408 (expr::make_operation): New function.
2409 (expr::operation_up): New typedef.
2410 * expop.h: New file.
2411 * eval.c (operation::evaluate_for_cast)
2412 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2414 * ax-gdb.c (operation::generate_ax): New method.
2418 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2419 (gen_expr_binop_rest): New overload.
2423 * eval.c (eval_multi_subscript): New function.
2424 (evaluate_subexp_standard): Use it.
2428 * ada-lang.c (ada_binop_exp): New function.
2429 (ada_evaluate_subexp): Use it.
2433 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2435 (ada_evaluate_subexp): Use it.
2439 * ada-lang.c (ada_binop_minmax): New function.
2440 (ada_evaluate_subexp): Use it.
2444 * ada-lang.c (ada_unop_atr): New function.
2445 (ada_evaluate_subexp): Use it.
2449 * ada-lang.c (ada_binop_in_bounds): New function.
2450 (ada_evaluate_subexp): Use it.
2454 * ada-lang.c (ada_ternop_slice): New function.
2455 (ada_evaluate_subexp): Use it.
2459 * ada-lang.c (ada_equal_binop): New function.
2460 (ada_evaluate_subexp): Use it.
2464 * ada-lang.c (ada_mult_binop): New function.
2465 (ada_evaluate_subexp): Use it.
2469 * ada-lang.c (ada_abs): New function.
2470 (ada_evaluate_subexp): Use it.
2474 * ada-lang.c (ada_atr_size): New function.
2475 (ada_evaluate_subexp): Use it.
2479 * ada-lang.c (ada_atr_tag): New function.
2480 (ada_evaluate_subexp): Use it.
2484 * ada-lang.c (ada_unop_in_range): New function.
2485 (ada_evaluate_subexp): Use it.
2489 * ada-lang.c (ada_unop_neg): New function.
2490 (ada_evaluate_subexp): Use it.
2494 * ada-lang.c (eval_ternop_in_range): New function.
2495 (ada_evaluate_subexp): Use it.
2499 * opencl-lang.c (eval_opencl_assign): New function.
2500 (evaluate_subexp_opencl): Use it.
2504 * eval.c (eval_op_objc_msgcall): New function.
2505 (evaluate_subexp_standard): Use it.
2509 * eval.c (eval_binop_assign_modify): New function.
2510 (evaluate_subexp_standard): Use it.
2514 * m2-lang.c (eval_op_m2_subscript): New function.
2515 (evaluate_subexp_modula2): Use it.
2519 * m2-lang.c (eval_op_m2_high): New function.
2520 (evaluate_subexp_modula2): Use it.
2524 * eval.c (evaluate_subexp_for_address_base): New function.
2525 (evaluate_subexp_for_address): Use it.
2526 (evaluate_subexp_for_sizeof_base): New function.
2527 (evaluate_subexp_for_sizeof): Use it.
2531 * rust-lang.c (eval_op_rust_structop): New function.
2532 (rust_evaluate_subexp): Use it.
2536 * rust-lang.c (eval_op_rust_struct_anon): New function.
2537 (rust_evaluate_subexp): Use it.
2541 * rust-lang.c (eval_op_rust_array): New function.
2542 (rust_evaluate_subexp): Use it.
2546 * rust-lang.c (eval_op_rust_complement): New function.
2547 (rust_evaluate_subexp): Use it.
2551 * rust-lang.c (eval_op_rust_ind): New function.
2552 (rust_evaluate_subexp): Use it.
2556 * rust-lang.c (rust_subscript): Change parameters.
2557 (rust_evaluate_subexp): Update.
2561 * rust-lang.c (rust_range): Change parameters.
2562 (rust_evaluate_subexp): Update.
2566 * f-lang.c (eval_op_f_allocated): New function.
2567 (evaluate_subexp_f): Use it.
2571 * f-lang.c (fortran_require_array): New function.
2572 (evaluate_subexp_f): Use it.
2576 * f-lang.c (eval_op_f_kind): New function.
2577 (evaluate_subexp_f): Use it.
2581 * f-lang.c (eval_op_f_cmplx): New function.
2582 (evaluate_subexp_f): Use it.
2586 * f-lang.c (eval_op_f_modulo): New function.
2587 (evaluate_subexp_f): Use it.
2591 * f-lang.c (eval_op_f_floor): New function.
2592 (evaluate_subexp_f): Use it.
2596 * f-lang.c (eval_op_f_ceil): New function.
2597 (evaluate_subexp_f): Use it.
2601 * f-lang.c (eval_op_f_mod): New function.
2602 (evaluate_subexp_f): Use it.
2606 * f-lang.c (eval_op_f_abs): New function.
2607 (evaluate_subexp_f): Use it.
2611 * eval.c (eval_op_type): New function.
2612 (evaluate_subexp_standard): Use it.
2616 * eval.c (eval_op_postdec): New function.
2617 (evaluate_subexp_standard): Use it.
2621 * eval.c (eval_op_postinc): New function.
2622 (evaluate_subexp_standard): Use it.
2626 * eval.c (eval_op_predec): New file.
2627 (evaluate_subexp_standard): Use it.
2631 * eval.c (eval_op_preinc): New function.
2632 (evaluate_subexp_standard): Use it.
2636 * eval.c (eval_op_memval): New function.
2637 (evaluate_subexp_standard): Use it.
2641 * eval.c (eval_op_alignof): New function.
2642 (evaluate_subexp_standard): Use it.
2646 * eval.c (eval_op_ind): New function.
2647 (evaluate_subexp_standard): Use it.
2651 * eval.c (eval_op_lognot): New function.
2652 (evaluate_subexp_standard): Use it.
2656 * eval.c (eval_op_complement): New function.
2657 (evaluate_subexp_standard): Use it.
2661 * eval.c (eval_op_neg): New function.
2662 (evaluate_subexp_standard): Use it.
2666 * eval.c (eval_op_plus): New function.
2667 (evaluate_subexp_standard): Use it.
2671 * eval.c (eval_op_repeat): New function.
2672 (evaluate_subexp_standard): Use it.
2676 * eval.c (eval_op_leq): New function.
2677 (evaluate_subexp_standard): Use it.
2681 * eval.c (eval_op_geq): New function.
2682 (evaluate_subexp_standard): Use it.
2686 * eval.c (eval_op_gtr): New function.
2687 (evaluate_subexp_standard): Use it.
2691 * eval.c (eval_op_less): New function.
2692 (evaluate_subexp_standard): Use it.
2696 * eval.c (eval_op_notequal): New function.
2697 (evaluate_subexp_standard): Use it.
2701 * eval.c (eval_op_equal): New function.
2702 (evaluate_subexp_standard): Use it.
2706 * eval.c (eval_op_subscript): New function.
2707 (evaluate_subexp_standard): Use it.
2711 * eval.c (eval_op_binary): New function.
2712 (evaluate_subexp_standard): Use it.
2716 * eval.c (eval_op_sub): New function.
2717 (evaluate_subexp_standard): Use it.
2721 * eval.c (eval_op_add): New function.
2722 (evaluate_subexp_standard): Use it.
2726 * eval.c (eval_op_member): New function.
2727 (evaluate_subexp_standard): Use it.
2731 * eval.c (eval_op_structop_ptr): New function.
2732 (evaluate_subexp_standard): Use it.
2736 * eval.c (eval_op_structop_struct): New function.
2737 (evaluate_subexp_standard): Use it.
2741 * eval.c (eval_op_ternop): New function.
2742 (evaluate_subexp_standard): Use it.
2746 * eval.c (eval_op_concat): New function.
2747 (evaluate_subexp_standard): Use it.
2751 * eval.c (eval_op_objc_selector): New function.
2752 (evaluate_subexp_standard): Use it.
2756 * eval.c (eval_op_string): New function.
2757 (evaluate_subexp_standard): Use it.
2761 * eval.c (eval_op_register): New function.
2762 (evaluate_subexp_standard): Use it.
2766 * eval.c (eval_op_func_static_var): New function.
2767 (evaluate_subexp_standard): Use it.
2771 * eval.c (eval_op_var_msym_value): New function.
2772 (evaluate_subexp_standard): Use it.
2776 * eval.c (eval_op_var_entry_value): New function.
2777 (evaluate_subexp_standard): Use it.
2781 * eval.c (eval_op_scope): New function.
2782 (evaluate_subexp_standard): Use it.
2787 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2791 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2792 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2793 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2794 (locate_dwz_sections, dwz_search_other_debugdirs)
2795 (dwarf2_get_dwz_file): Move to dwz.c.
2796 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2798 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2799 (dwarf2_get_dwz_file): Move from read.c.
2803 * debuginfod-support.h: Include scoped_fd.h.
2807 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2808 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2809 (get_abbrev_section_for_cu, read_attribute_value)
2810 (get_debug_line_section): Update.
2811 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2815 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2817 * dwarf2/read.c (section_is_p): Remove.
2818 (dwarf2_per_bfd::locate_sections)
2819 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2820 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2821 (dwarf2_locate_common_dwp_sections)
2822 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2827 * xcoffread.c: Include sect-names.h.
2828 * symfile.h (struct dwarf2_section_names, struct
2829 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2830 * dwarf2/sect-names.h: New file, from symfile.h.
2831 * dwarf2/read.c: Include sect-names.h.
2835 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2836 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2837 (abbrev_table::read): Update.
2838 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2839 (struct abbrev_info): Reformat.
2840 <attrs>: Now an array.
2841 (struct abbrev_table) <alloc_abbrev>: Remove.
2845 * ctfread.c (ctf_psymtab_add_enums): New function.
2846 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2850 * ctfread.c (read_func_kind_type): Set up function arguments.
2855 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2857 (riscv_csrset): New static global.
2858 (riscv_update_csrmap): New function.
2859 (riscv_iterate_over_regset_sections): Process CSRs.
2863 * riscv-tdep.c (riscv_feature_name_csr): Define.
2864 (riscv_feature_name_cpu): Define.
2865 (riscv_feature_name_fpu): Define.
2866 (riscv_feature_name_virtual): Define.
2867 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2868 (riscv_freg_feature): Use riscv_feature_name_fpu.
2869 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2870 (riscv_csr_feature): Use riscv_feature_name_csr.
2871 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2876 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2877 (ALLDEPFILES): Add riscv-none-tdep.c.
2878 * configure: Regenerate.
2879 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2881 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2882 * elf-none-tdep.c: New file.
2883 * elf-none-tdep.h: New file.
2884 * riscv-none-tdep.c: New file.
2889 * corelow.c: Add 'xml-tdesc.h' include.
2890 (core_target::read_description): Load the target description from
2891 the core file when possible.
2892 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2894 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2895 (gcore_elf_make_tdesc_note): New function.
2896 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2897 * linux-tdep.c (linux_make_corefile_notes): Add target description
2902 * Makefile.in (SFILES): Add gcore-elf.c.
2903 (HFILES_NO_SRCDIR): Add gcore-elf.h
2904 * configure: Regenerate.
2905 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2907 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2908 (struct fbsd_collect_regset_section_cb_data): Delete.
2909 (fbsd_collect_regset_section_cb): Delete.
2910 (fbsd_collect_thread_registers): Delete.
2911 (struct fbsd_corefile_thread_data): Delete.
2912 (fbsd_corefile_thread): Delete.
2913 (fbsd_make_corefile_notes): Call
2914 gcore_elf_build_thread_register_notes instead of the now deleted
2916 * gcore-elf.c: New file, the content was moved here from
2917 linux-tdep.c, functions were renamed and given minor cleanup.
2918 * gcore-elf.h: New file.
2919 * gcore.c (gcore_find_signalled_thread): Moved here from
2920 linux-tdep.c and given a new name. Minor cleanups.
2921 * gcore.h (gcore_find_signalled_thread): Declare.
2922 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2923 (struct linux_collect_regset_section_cb_data): Delete.
2924 (linux_collect_regset_section_cb): Delete.
2925 (linux_collect_thread_registers): Delete.
2926 (linux_corefile_thread): Call
2927 gcore_elf_build_thread_register_notes.
2928 (find_signalled_thread): Delete.
2929 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2934 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2935 process_stratum_target parameter,
2936 sparc_store_inferior_registers): update callers.
2937 * sparc-nat.c (sparc_fetch_inferior_registers,
2938 sparc_store_inferior_registers): Add process_stratum_target
2939 parameter. Switch current thread before calling
2940 sparc_supply_gregset / sparc_collect_rwindow.
2941 (sparc_store_inferior_registers): Likewise.
2942 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2943 (sparc32obsd_collect_uthread): Likewise.
2944 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2946 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2947 sparc64obsd_supply_uthread): Add assertion.
2951 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2952 (aux_add_nonlocal_symbols): Update.
2953 (ada_add_block_symbols): Change "found_sym" to bool.
2957 * ada-lang.c (ada_resolve_function): Update comment.
2958 (is_nonfunction, add_symbols_from_enclosing_procs)
2959 (remove_extra_symbols): Likewise.
2960 (struct match_data): Add constructor, initializers.
2961 (add_nonlocal_symbols): Remove memset.
2962 (aux_add_nonlocal_symbols): Update comment.
2963 (ada_add_block_renamings, add_nonlocal_symbols)
2964 (ada_add_all_symbols): Likewise.
2965 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2969 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2970 (cast_to_gnat_encoded_fixed_point_type): Remove.
2971 (ada_value_cast, ada_evaluate_subexp): Update.
2972 (gnat_encoded_fixed_point_type_info)
2973 (ada_is_gnat_encoded_fixed_point_type)
2974 (gnat_encoded_fixed_point_delta)
2975 (gnat_encoded_fixed_point_scaling_factor): Remove.
2976 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2977 (gnat_encoded_fixed_point_delta)
2978 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2979 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2980 (ada_print_type): Update.
2981 * ada-valprint.c (ada_value_print_num): Update.
2982 * dwarf2/read.c (ada_get_gnat_encoded_number)
2983 (ada_get_gnat_encoded_ratio): New functions.
2984 (finish_fixed_point_type): Use them. Add parameters.
2985 (GNAT_FIXED_POINT_SUFFIX): New define.
2986 (gnat_encoded_fixed_point_type_info): New function.
2987 (read_base_type): Handle gnat encodings.
2991 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2992 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2994 (GROW_VECT): Remove.
2995 (grow_vect): Remove.
2999 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3000 * ada-lang.c (resolve_subexp): Update.
3001 (ada_resolve_function): Accept a vector.
3002 (is_nonfunction, add_defn_to_vec)
3003 (add_symbols_from_enclosing_procs): Likewise.
3004 (num_defns_collected, defns_collected): Remove.
3005 (remove_extra_symbols): Return a vector.
3006 (remove_irrelevant_renamings): Return void.
3007 (ada_add_local_symbols): Accept a vector.
3008 (struct match_data) <obstackp>: Remove.
3009 <resultp>: New member.
3010 (aux_add_nonlocal_symbols): Update.
3011 (ada_add_block_renamings, add_nonlocal_symbols)
3012 (ada_add_all_symbols): Accept a vector.
3013 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3015 (ada_lookup_symbol): Update.
3016 (ada_add_block_symbols): Accept a vector.
3017 (get_var_value, iterate_over_symbols): Update.
3018 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3023 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3027 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3030 (ada_pspace_data): Remove destructor.
3031 <sym_cache>: Now a unique_ptr.
3032 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3033 (ada_get_symbol_cache): Use 'new'.
3034 (ada_clear_symbol_cache): Rewrite.
3038 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3044 * source.c (add_path): Skip empty dirnames.
3048 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3049 include order for <sys/ptrace.h> and <asm/ptrace.h>.
3054 * target.c (target_mourn_inferior): Only compare pids in
3055 target_mourn_inferior.
3060 * remote.c (remote_target::start_remote): Ensure the single
3061 thread, automatically added for remote targets without the
3062 concept of threading, is initially in set to the "resumed"
3064 * remote.c (remote_target::add_current_inferior_and_thread):
3065 Add return value - return the main thread.
3069 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3070 (mi_tsv_created): Likewise.
3071 (mi_tsv_deleted): Likewise.
3076 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3077 section_kind for &dwo_file->sections.info.
3082 * f-lang.c (fortran_argument_convert): Delete declaration.
3083 (fortran_prepare_argument): New function.
3084 (evaluate_subexp_f): Move logic to new function
3085 fortran_prepare_argument.
3089 * f-exp.y (f77_keywords): Add 'associated'.
3090 * f-lang.c (fortran_associated): New function.
3091 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3092 (operator_length_f): Likewise.
3093 (print_unop_or_binop_subexp_f): New function.
3094 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3095 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3096 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3097 (operator_check_f): Likewise.
3098 * std-operator.def: Add FORTRAN_ASSOCIATED.
3102 * f-exp.y (fortran_operators): Add ".xor.".
3107 * dwarf2/attribute.c (attribute::form_is_signed): New function
3109 * dwarf2/attribute.h (attribute::as_signed): ... here.
3110 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3111 (attribute::form_is_signed): Declare.
3112 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3113 for DW_AT_decl_file.
3117 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3118 order for <sys/ptrace.h> and <asm/ptrace.h>.
3122 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3127 * exec.c (set_section_command): Move variable declarations into
3128 the function body, and use std::string instead of a fixed size
3133 * exec.c (exec_target::get_section_table): Delete member function.
3134 (section_table_read_available_memory): Use current_top_target, not
3135 just the exec_ops target.
3136 * target-delegates.c: Regenerate.
3137 * target.c (default_get_section_table): New function.
3138 * target.h (target_ops::get_section_table): Change default
3139 behaviour to call default_get_section_table.
3140 (default_get_section_table): Declare.
3144 * exec.c (exec_target::close): Call new clear_target_sections
3146 (program_space::add_target_sections): Update name of member
3148 (program_space::add_target_sections): Update name of member
3150 (program_space::remove_target_sections): Likewise.
3151 (exec_one_fork): Use new target_sections member function.
3152 (exec_target::get_section_table): Likewise.
3153 (exec_target::files_info): Likewise.
3154 (set_section_command): Likewise.
3155 (exec_set_section_address): Likewise.
3156 (exec_target::has_memory): Use new target_sections member
3158 * progspace.h (program_space::clear_target_sections): New member
3160 (program_space::target_sections): Rename member variable to
3161 m_target_sections, replace with a new member function.
3162 (program_space::m_target_sections): New member variable.
3163 * solib-dsbt.c (scan_dyntag): Use new member function.
3164 * solib-svr4.c (scan_dyntag): Likewise.
3168 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3170 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3171 (section_table_read_available_memory): Make local const.
3172 (exec_target::xfer_partial): Make local const.
3173 (print_section_info): Make parameter const.
3174 * gdb/exec.h (print_section_info): Likewise.
3175 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3177 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3179 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3181 * gdb/s390-tdep.c (s390_load): Likewise.
3182 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3183 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3184 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3186 (target_debug_print_const_target_section_table_p): ...this.
3187 * gdb/target-delegates.c: Regenerate.
3188 * gdb/target.c (target_get_section_table): Make return type const.
3189 (target_section_by_addr): Likewise. Also make some locals const.
3190 (memory_xfer_partial_1): Make some locals const.
3191 * gdb/target.h (struct target_ops) <get_section_table>: Make
3193 (target_section_by_addr): Likewise.
3194 (target_get_section_table): Likewise.
3198 * NEWS: Mention new 'maint info target-sections' command.
3199 * maint.c (maintenance_info_target_sections): New function.
3200 (_initialize_maint_cmds): Register new command.
3204 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3205 (riscv_features_from_bfd): ...this. Change parameter type to
3206 'bfd*', and update as required.
3207 (riscv_find_default_target_description): Update call to
3208 riscv_features_from_bfd. Select a default xlen based on
3210 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3214 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3215 dynamic types in UNOP_IND.
3220 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3222 (~dwarf2_queue_guard): Clear queue.
3223 (queue_comp_unit): Assert that queue is
3225 (process_queue): Adjust.
3226 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3231 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3232 to decide whether or not to enqueue it for expansion.
3233 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3234 after calling maybe_queue_comp_unit.
3238 * linux-nat.c (linux_nat_filter_event): Return void.
3242 * solib-svr4.c (enable_break): Update.
3243 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3245 (target_bfd_reopen): Change parameter type.
3246 * bfd-target.h (target_bfd_reopen): Change parameter type.
3250 * thread.c (add_thread_silent): Add assert.
3251 (find_thread_ptid): Add assert.
3256 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3257 (target_unpush_up): Likewise.
3258 * procfs.c (procfs_target::attach): Push target early. Use
3259 target_unpush_up to unpush target in case of error.
3260 * target.h (struct target_unpusher): Move here.
3261 (target_unpush_up): Likewise.
3265 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3266 (which in turn includes <gnulib/config.h>) before include
3272 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3273 (decode_j_type_insn): Likewise.
3274 (decode_cj_type_insn): Likewise.
3275 (decode_b_type_insn): Likewise.
3280 * expression.h (struct expression) <evaluate>: Declare method.
3281 * eval.c (evaluate_subexp): Simplify.
3282 (expression::evaluate): New method.
3283 (evaluate_expression, evaluate_type): Use expression::evaluate.
3287 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3289 (ada_lookup_name_info): Likewise.
3293 * aclocal.m4: Regenerate.
3298 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3299 (lin_thread_signals): New static var.
3300 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3302 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3303 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3305 * linux-thread-db.c (check_thread_signals): Use
3306 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3310 * f-exp.y (f77_keywords): Add allocated.
3311 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3312 (operator_length_f): Likewise.
3313 (print_subexp_f): Likewise.
3314 (dump_subexp_body_f): Likewise.
3315 (operator_check_f): Likewise.
3316 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3321 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3322 Return true for DW_FORM_strx.
3327 * parse.c (write_exp_symbol_reference): Write sym.block.
3331 * NEWS: Mention changes to 'maint info sections'.
3332 * maint.c (match_substring): Return a bool, fix whitespace issue.
3333 (struct single_bfd_flag_info): New struct.
3334 (bfd_flag_info): New static global.
3335 (match_bfd_flags): Return a bool, use bfd_flag_info.
3336 (print_bfd_flags): Use bfd_flag_info.
3337 (maint_print_section_info): Delete trailing whitespace.
3338 (struct maint_info_sections_opts): New struct.
3339 (maint_info_sections_option_defs): New static global.
3340 (maint_info_sections_completer): New function.
3341 (maintenance_info_sections): Use option parsing mechanism.
3342 (_initialize_maint_cmds): Update command help text for 'maint info
3343 sections' and register a command completer.
3347 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3348 functionality merged into...
3349 (maint_print_all_sections): ...this new function.
3350 (maintenance_info_sections): Make use of maint_print_all_sections,
3351 allow all objects to be printed even where there's no executable.
3355 * breakpoint.c (resolve_sal_pc): Make use of
3356 bound_minimal_symbol::obj_section.
3357 * maint.c (maintenance_translate_address): Likewise.
3358 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3359 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3361 * printcmd.c (info_address_command): Make use of
3362 bound_minimal_symbol::obj_section.
3366 * arm-symbian-tdep.c: Delete.
3367 * NEWS: Mention arm-symbian removal.
3368 * Makefile.in: Remove arm-symbian-tdep entries.
3369 * configure.tgt: Remove arm*-*-symbianelf*.
3370 * doc/gdb.texinfo: Remove mention of SymbianOS.
3371 * osabi.c (gdb_osabi_names): Remove "Symbian".
3372 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3373 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3374 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3376 * testsuite/gdb.base/dup-sect.exp: Likewise.
3377 * testsuite/gdb.base/long_long.exp: Likewise.
3378 * testsuite/gdb.base/solib-weak.exp: Likewise.
3379 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3380 * testsuite/gdb.python/py-section-script.exp: Likewise.
3381 * testsuite/lib/dwarf.exp: Likewise.
3382 * testsuite/lib/gdb.exp: Likewise.
3386 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3387 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3388 (one_or_two_args): New pattern.
3389 (f77_keywords): Add lbound and ubound.
3390 * f-lang.c (fortran_bounds_all_dims): New function.
3391 (fortran_bounds_for_dimension): New function.
3392 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3393 (operator_length_f): Likewise.
3394 (print_subexp_f): Likewise.
3395 (dump_subexp_body_f): Likewise.
3396 (operator_check_f): Likewise.
3397 * std-operator.def (FORTRAN_LBOUND): Define.
3398 (FORTRAN_UBOUND): Define.
3402 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3403 and set_section_index member functions where appropriate.
3404 * coffread.c (coff_symtab_read): Likewise.
3405 (process_coff_symbol): Likewise.
3406 * ctfread.c (set_symbol_address): Likewise.
3407 * dwarf2/read.c (add_partial_symbol): Likewise.
3408 (var_decode_location): Likewise.
3409 * language.c: Likewise.
3410 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3411 (compact_minimal_symbols): Likewise.
3412 (minimal_symbol_upper_bound): Likewise.
3413 * objfiles.c (relocate_one_symbol): Likewise.
3414 * psympriv.h (partial_symbol::obj_section): Likewise.
3415 (partial_symbol::address): Likewise.
3416 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3417 * stabsread.c (scan_file_globals): Likewise.
3418 * symmisc.c (dump_msymbols): Likewise.
3419 * symtab.c (general_symbol_info::obj_section): Likewise.
3420 (fixup_section): Likewise.
3421 (get_msymbol_address): Likewise.
3422 * symtab.h (general_symbol_info::section): Rename to...
3423 (general_symbol_info::m_section): ...this.
3424 (general_symbol_info::set_section_index): New member function.
3425 (general_symbol_info::section_index): Likewise.
3426 (SYMBOL_SECTION): Delete.
3427 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3428 set_section_index member functions where appropriate.
3429 (MSYMBOL_SECTION): Delete.
3430 (symbol::symbol): Update to initialize 'm_section'.
3431 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3432 (process_xcoff_symbol): Likewise.
3436 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3437 MSYMBOL_OBJ_SECTION.
3438 * findvar.c (language_defn::read_var_value): Likewise.
3439 * infcmd.c (jump_command): Likewise.
3440 * linespec.c (minsym_found): Likewise.
3441 * maint.c (maintenance_translate_address): Likewise.
3442 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3443 (minimal_symbol_upper_bound): Likewise.
3444 * parse.c (find_minsym_type_and_address): Likewise.
3445 (operator_check_standard): Likewise.
3446 * printcmd.c (info_address_command): Likewise.
3447 * symmisc.c (dump_msymbols): Likewise.
3448 (print_symbol): Likewise.
3449 * symtab.c (general_symbol_info::obj_section): Define new
3451 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3452 (find_pc_sect_compunit_symtab): Likewise.
3453 (find_function_start_sal): Likewise.
3454 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3455 MSYMBOL_OBJ_SECTION.
3456 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3458 (SYMBOL_OBJ_SECTION): Delete.
3459 (MSYMBOL_OBJ_SECTION): Delete.
3463 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3468 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3469 construct an array type. Add assert to ensure that element_type is
3474 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3475 (gcore_collect_regset_section_cb): Delete.
3476 (gcore_collect_thread_registers): Delete.
3477 (gcore_build_thread_register_notes): Delete.
3478 (gcore_find_signalled_thread): Delete.
3479 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3480 'gdbarch' and 'thread_info' declarations.
3481 (gcore_build_thread_register_notes): Delete declaration.
3482 (gcore_find_signalled_thread): Likewise.
3483 * fbsd-tdep.c: Remove 'gcore.h' include.
3484 (struct fbsd_collect_regset_section_cb_data): New struct.
3485 (fbsd_collect_regset_section_cb): New function.
3486 (fbsd_collect_thread_registers): New function.
3487 (struct fbsd_corefile_thread_data): New struct.
3488 (fbsd_corefile_thread): New function.
3489 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3490 * linux-tdep.c: Remove 'gcore.h' include.
3491 (struct linux_collect_regset_section_cb_data): New struct.
3492 (linux_collect_regset_section_cb): New function.
3493 (linux_collect_thread_registers): New function.
3494 (linux_corefile_thread): Call Linux specific code.
3495 (find_signalled_thread): New function.
3496 (linux_make_corefile_notes): Call find_signalled_thread.
3500 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3502 * value.c (value_contents_copy_raw): Now static.
3503 * value.h (value_contents_copy_raw): Don't declare.
3507 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3513 * arc-linux-tdep.c (handle_atomic_sequence): New.
3514 (arc_linux_software_single_step): Call handle_atomic_sequence().
3518 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3520 (REQUIRE_WINDOW): Call is_valid member function.
3521 (REQUIRE_WINDOW_FOR_SETTER): New define.
3522 (gdbpy_tui_is_valid): Call is_valid member function.
3523 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3524 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3526 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3527 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3532 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3533 for the title is not nullptr.
3537 * tui-layout.c (saved_tui_windows): Delete.
3538 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3539 call new get_windows member function instead.
3540 (tui_get_window_by_name): Check in tui_windows.
3541 (tui_layout_window::apply): Don't add to tui_windows.
3542 * tui-layout.h (tui_layout_base::get_windows): New member function.
3543 (tui_layout_window::get_windows): Likewise.
3544 (tui_layout_split::get_windows): Likewise.
3548 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3549 of the window objects.
3553 * python/python.c (gdbpy_print_stack): Reformat an error message.
3557 * tui/tui-interp.c (tui_command_line_handler): New function.
3558 (tui_interp::resume): Register tui_command_line_handler as the
3560 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3562 (tui_getc_1): Delete handling of '\n' and '\r'.
3563 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3567 * tui/tui-regs.c (tui_data_window::display_registers_from):
3568 Mark invisible register sub windows.
3569 (tui_data_window::check_register_values): Ignore invisible
3570 register sub windows.
3574 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3575 n_spaces with a negative value.
3579 * tui/tui-regs.c (tui_data_window::display_registers_from):
3580 Add refresh_window call.
3584 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3588 * symmisc.c (std_in, std_out, std_err): Remove.
3589 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3593 PR breakpoints/27330
3594 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3595 glibc object file has debug info.
3600 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3604 PR breakpoints/27313
3605 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3610 * compile/compile-c-support.c (get_compile_context)
3611 (c_get_compile_context, cplus_get_compile_context): Change return
3613 * language.c (language_defn::get_compile_instance): New method.
3614 * language.h (language_defn::get_compile_instance): Change return
3615 type. No longer inline.
3616 * c-lang.c (c_language::get_compile_instance): Change return type.
3617 (cplus_language::get_compile_instance): Change return type.
3618 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3620 * compile/compile.c (compile_to_object): Update.
3624 * parser-defs.h (write_exp_symbol_reference): Declare.
3625 * parse.c (write_exp_symbol_reference): New function.
3626 * p-exp.y (variable): Use write_exp_symbol_reference.
3627 * m2-exp.y (variable): Use write_exp_symbol_reference.
3628 * f-exp.y (variable): Use write_exp_symbol_reference.
3629 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3630 * c-exp.y (variable): Use write_exp_symbol_reference.
3635 * valarith.c (complex_binop): Throw an error if complex type can't
3641 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3646 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3650 * configure.tgt (riscv*-*-*): Set gdb_sim.
3654 * target.c (target_is_non_stop_p): Return bool.
3655 * target.h (target_is_non_stop_p): Return bool.
3659 * record-full.c (record_full_async_inferior_event_handler):
3660 Don't clear async event handler.
3661 (record_full_base_target::wait): Clear async event handler at
3666 * record-btrace.c (record_btrace_handle_async_inferior_event):
3667 Don't clear async event handler.
3668 (record_btrace_target::wait): Clear async event handler at
3673 * remote.c (remote_target::wait): Clear async event handler at
3674 beginning, mark if needed at the end.
3675 (remote_async_inferior_event_handler): Don't set or clear async
3680 * async-event.h (async_event_handler_func): Add documentation.
3681 * async-event.c (check_async_event_handlers): Don't clear
3682 async_event_handler ready flag.
3683 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3685 * record-btrace.c (record_btrace_handle_async_inferior_event):
3687 * record-full.c (record_full_async_inferior_event_handler):
3689 * remote-notif.c (remote_async_get_pending_events_handler):
3691 * remote.c (remote_async_inferior_event_handler): Likewise.
3695 * infrun.c (handle_inferior_event): Move stop_soon variable to
3700 * infcmd.c (detach_command): Hold strong reference to target, and
3701 if all-stop on entry, restart threads on exit.
3702 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3703 (restart_stepped_thread): ... this new function. Also handle
3705 (restart_after_all_stop_detach): New function.
3706 * infrun.h (restart_after_all_stop_detach): Declare.
3710 * infrun.c (struct step_over_info): Initialize fields.
3711 (prepare_for_detach): Handle ongoing in-line step over.
3715 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3717 * remote.c (remote_target::remote_detach_1): ... and here ...
3718 * target.c (target_detach): ... instead of here.
3719 * target.h (target_ops::detach): Add comment.
3723 * infrun.c (struct wait_one_event): Move higher up.
3724 (prepare_for_detach): Abort in-progress displaced steps instead of
3725 letting them complete.
3726 (handle_one): If the inferior is detaching, don't add the thread
3727 back to the global step-over chain.
3728 (restart_threads): Don't restart threads if detaching.
3729 (handle_signal_stop): Remove inferior::detaching reference.
3733 * infrun.c (prepare_for_detach): Don't release scoped_restore
3738 * infrun.c (handle_one): New function, factored out from ...
3739 (stop_all_threads): ... here.
3743 * remote.c (remote_notif_stop_ack): Don't error out on
3744 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3745 (remote_target::discard_pending_stop_replies): Don't delete
3746 in-flight notification; instead, clear its contents.
3750 * remote.c (extended_remote_target::attach): Set target async in
3751 the target-non-stop path too.
3756 * infrun.c (handle_signal_stop): Move main context_switch call
3757 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3761 * NEWS (Changed commands): Add entry for the behavior change of
3762 the inferior command.
3763 * inferior.c (inferior_command): When no argument is given to the
3764 inferior command, display info about the currently selected
3769 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3771 (read_attribute_reprocess): Adjust.
3775 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3776 <gnu_ranges_base>: ... this...
3777 <rnglists_base>: ... and this.
3778 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3779 <gnu_ranges_base>: ... this...
3780 <rnglists_base>: ... and this.
3781 (read_cutu_die_from_dwo): Adjust
3782 (dwarf2_get_pc_bounds): Adjust
3783 (dwarf2_record_block_ranges): Adjust.
3784 (read_full_die_1): Adjust
3785 (partial_die_info::read): Adjust.
3786 (read_rnglist_index): Adjust.
3791 * dwarf2/read.c (read_loclists_rnglists_header): Add
3792 header_offset parameter and use it.
3793 (read_loclist_index): Read header of the current contribution,
3794 not the one at the beginning of the section.
3795 (read_rnglist_index): Likewise.
3800 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3801 requires_reprocessing flag.
3802 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3804 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3805 and DW_FORM_loclistx.
3806 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3807 instead of set_address for DW_FORM_loclistx and
3812 * dwarf2/read.c (read_loclist_index): Remove bound check for
3814 (read_rnglist_index): Likewise.
3818 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3823 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3827 * dwarf2/read.c (read_loclist_index): Change complaints into
3833 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3838 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3839 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3840 here from linux-tdep.c and given a new name. Minor cleanups.
3841 (gcore_collect_regset_section_cb): Likewise.
3842 (gcore_collect_thread_registers): Likewise.
3843 (gcore_build_thread_register_notes): Likewise.
3844 (gcore_find_signalled_thread): Likewise.
3845 * gcore.h (gcore_build_thread_register_notes): Declare.
3846 (gcore_find_signalled_thread): Declare.
3847 * fbsd-tdep.c: Add 'gcore.h' include.
3848 (struct fbsd_collect_regset_section_cb_data): Delete.
3849 (fbsd_collect_regset_section_cb): Delete.
3850 (fbsd_collect_thread_registers): Delete.
3851 (struct fbsd_corefile_thread_data): Delete.
3852 (fbsd_corefile_thread): Delete.
3853 (fbsd_make_corefile_notes): Call
3854 gcore_build_thread_register_notes instead of the now deleted
3856 * linux-tdep.c: Add 'gcore.h' include.
3857 (struct linux_collect_regset_section_cb_data): Delete.
3858 (linux_collect_regset_section_cb): Delete.
3859 (linux_collect_thread_registers): Delete.
3860 (linux_corefile_thread): Call
3861 gcore_build_thread_register_notes.
3862 (find_signalled_thread): Delete.
3863 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3867 PR breakpoints/26063
3868 * infrun.c (process_event_stop_test): Reset
3869 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3874 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3875 assert. Extend the header comment.
3879 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3880 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3881 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3882 (tui_locator_win_info_ptr): Delete declaration.
3883 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3884 (tui_disasm_window::set_contents): Fetch state from tui_location
3886 (tui_get_begin_asm_address): Likewise.
3887 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3889 (get_locator_window): Delete.
3890 (initialize_known_windows): Treat locator window just like all the
3892 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3893 (tui_source_window::set_contents): Fetch state from tui_location
3895 (tui_source_window::showing_source_p): Likewise.
3896 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3898 (tui_locator_win_info_ptr): Delete.
3899 (tui_locator_window::make_status_line): Fetch state from
3900 tui_location global.
3901 (tui_locator_window::rerender): Remove check of 'handle',
3902 reindent function body.
3903 (tui_locator_window::set_locator_fullname): Delete.
3904 (tui_locator_window::set_locator_info): Delete.
3905 (tui_update_locator_fullname): Delete.
3906 (tui_show_frame_info): Likewise.
3907 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3908 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3909 tui/tui-location.h and renamed to
3910 tui_location_tracker::set_location.
3911 (tui_locator_window::set_locator_fullname): Moved to
3912 tui/tui-location.h and renamed to
3913 tui_location_tracker::set_fullname.
3914 (tui_locator_window::full_name): Delete.
3915 (tui_locator_window::proc_name): Delete.
3916 (tui_locator_window::line_no): Delete.
3917 (tui_locator_window::addr): Delete.
3918 (tui_locator_window::gdbarch): Delete.
3919 (tui_update_locator_fullname): Delete declaration.
3920 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3922 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3923 (tui_display_main): Call function on tui_location directly.
3924 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3925 * tui/tui-location.c: New file.
3926 * tui/tui-location.h: New file.
3930 * gdbtypes.h (get_type_arch): Rename to...
3931 (struct type) <arch>: ... this, update all users.
3935 * gdbtypes.h (struct type) <arch>: Rename to...
3936 <arch_owner>: ... this, update all users.
3937 <objfile>: Rename to...
3938 <objfile_owner>: ... this, update all users.
3942 * gdbcmd.h (execute_command_to_string): Update comment.
3943 * top.c (execute_command_to_string): Update header comment.
3947 PR breakpoints/27205
3948 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3949 (create_longjmp_master_breakpoint_names): New function, factored out
3951 (create_longjmp_master_breakpoint): ... here. Only try to install
3952 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3953 breakpoint in libc.so failed.
3958 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3959 unique_ptr is released when the wrapped pointer is kept for later
3964 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3965 BLR and BR instructions.
3966 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3967 (enum aarch64_masks): New.
3971 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3972 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3973 (windows_init_thread_list, windows_nat::handle_load_dll)
3974 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3975 (windows_nat_target::resume)
3976 (windows_nat_target::get_windows_debug_event)
3977 (windows_nat_target::interrupt, windows_xfer_memory)
3978 (windows_nat_target::close): Update.
3979 * nat/windows-nat.c (DEBUG_EVENTS): Use
3980 debug_prefixed_printf_cond.
3981 (matching_pending_stop, fetch_pending_stop)
3982 (continue_last_debug_event): Update.
3986 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3987 elfcore_write_file_note.
3991 * arc-tdep.c (arc_add_reggroups): New function.
3992 (arc_gdbarch_init): Call arc_add_reggroups.
3996 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4002 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4007 * dwarf2/read.c (get_mpz): New function.
4008 (get_dwarf2_rational_constant): Use it.
4012 * ada-lang.c (resolve_subexp): Handle array context.
4017 * compile/compile-loc2c.c (note_register): New function.
4018 (pushf_register_address, pushf_register): Use it.
4022 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4023 Change type of "registers_used".
4024 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4025 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4026 (locexpr_generate_c_location, loclist_generate_c_location): Change
4027 type of "registers_used".
4028 * compile/compile.h (compile_dwarf_expr_to_c)
4029 (compile_dwarf_bounds_to_c): Update.
4030 * compile/compile-loc2c.c (pushf_register_address)
4031 (pushf_register, do_compile_dwarf_expr_to_c)
4032 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4033 of "registers_used".
4034 * compile/compile-c.h (generate_c_for_variable_locations):
4036 * compile/compile-c-symbols.c (generate_vla_size)
4037 (generate_c_for_for_one_variable): Change type of
4039 (generate_c_for_variable_locations): Return std::vector.
4040 * compile/compile-c-support.c (generate_register_struct): Change
4041 type of "registers_used".
4046 * compile/compile-internal.h (class compile_instance)
4047 <set_arguments>: Change return type.
4048 * compile/compile.c (compile_to_object): Remove call to reset.
4049 (compile_instance::set_arguments): Change return type.
4053 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4054 * gdbtypes.h (struct type) <set_owner>: Add asserts.
4058 * Makefile.in (SELFTESTS_SRCS): Add
4059 unittests/gdb_tilde_expand-selftests.c.
4060 * unittests/gdb_tilde_expand-selftests.c: New file.
4065 * NEWS: Mention new command.
4066 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
4067 (version_style): Define.
4068 (cli_style_option::cli_style_option): Add intensity parameter, and
4070 (_initialize_cli_style): Register version style set/show commands.
4071 * cli/cli-style.h (cli_style_option): Add intensity parameter.
4072 (version_style): Declare.
4073 * top.c (print_gdb_version): Use version_stype, and styled_string
4074 to print the GDB version string.
4078 * utils.c (emit_style_escape): Only emit an escape sequence if the
4079 requested style is different than the current applied style.
4080 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
4081 current applied_style.
4082 (fputs_styled): Remove is_default check.
4083 (fputs_styled_unfiltered): Likewise.
4084 (vfprintf_styled_no_gdbfmt): Likewise.
4088 * remote.h (remote_debug_printf): New.
4089 (remote_debug_printf_nofunc): New.
4090 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4091 * remote.c: Use above macros throughout file.
4095 * remote.h (remote_debug): Change to bool.
4096 * remote.c (remote_debug): Change to bool.
4097 (_initialize_remote): Adjust.
4101 * target.h (remote_debug): Move to...
4102 * remote.h (remote_debug): ... here.
4103 * top.c (remote_debug): Move to...
4104 * remote.c (remote_debug): ... here.
4105 * remote-sim.c: Include remote.h.
4109 * cli/cli-cmds.c (show_remote_debug): Remove.
4110 (show_remote_timeout): Remove.
4111 (_initialize_cli_cmds): Don't register commands.
4112 * remote.c (show_remote_debug): Move here.
4113 (show_remote_timeout): Move here.
4114 (_initialize_remote): Register commands.
4118 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4119 type::objfile method instead.
4123 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4124 use the type::is_objfile_owned method.
4128 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4129 (TYPE_OWNER): Remove.
4130 (TYPE_OBJFILE): Adjust.
4131 (struct main_type) <flag_objfile_owned>: Rename to...
4132 <m_flag_objfile_owned>: ... this.
4133 <owner>: Rename to...
4134 <m_owner>: ... this.
4135 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4137 (TYPE_ALLOC): Adjust.
4138 * gdbtypes.c (alloc_type): Adjust.
4139 (alloc_type_arch): Adjust.
4140 (alloc_type_copy): Adjust.
4141 (get_type_arch): Adjust.
4142 (smash_type): Adjust.
4143 (lookup_array_range_type): Adjust.
4144 (recursive_dump_type): Adjust.
4145 (copy_type_recursive): Adjust.
4146 * compile/compile-c-types.c (convert_func): Adjust.
4147 (convert_type_basic): Adjust.
4148 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4151 (language_arch_info::type_and_symbol::alloc_type_symbol):
4156 * coffread.c (enter_linenos): Passing string to complaint.
4157 * valops.c (value_assign): Make array view.
4161 * auto-load.h (debug_auto_load): Move here.
4162 (auto_load_debug_printf): New.
4163 * auto-load.c: Use auto_load_debug_printf.
4164 (debug_auto_load): Move to header.
4165 * linux-thread-db.c (try_thread_db_load): Use
4166 auto_load_debug_printf.
4167 * main.c (captured_main_1): Likewise.
4171 * f-valprint.c (f77_array_offset_tbl): Remove.
4175 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4179 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4185 * python/py-breakpoint.c (bppy_get_location): Handle
4186 bp_hardware_breakpoint.
4187 (bppy_init): Likewise.
4188 (gdbpy_breakpoint_created): Likewise.
4192 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4196 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4197 (_initialize_gdb_bfd): Adjust.
4202 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4206 * dwarf2/read.c (follow_die_offset): Add logging.
4207 (dwarf2_per_objfile::age_comp_units): Add logging.
4211 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4212 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4213 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4214 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4215 * arm-tdep.c (struct frame_unwind): Make static.
4216 * auto-load.c (auto_load_safe_path_vec): Make static.
4217 * csky-tdep.c (csky_stub_unwind): Make static.
4218 * gdbarch.c (gdbarch_data_registry): Make static.
4219 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4220 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4221 * i386-tdep.c (i386_frame_setup_skip_insns,
4222 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4224 * infrun.c (observer_mode): Make static.
4225 * linux-nat.c (sigchld_action): Make static.
4226 * linux-thread-db.c (thread_db_list): Make static.
4227 * maint-test-options.c (maintenance_test_options_list):
4228 * mep-tdep.c (mep_csr_registers): Make static.
4229 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4230 (stats): Make static.
4231 * nat/linux-osdata.c (struct osdata_type): Make static.
4232 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4233 * progspace.c (last_program_space_num): Make static.
4234 * python/py-param.c (struct parm_constant): Remove struct type
4236 (parm_constants): Make static.
4237 * python/py-record-btrace.c (btpy_list_methods): Make static.
4238 * python/py-record.c (recpy_gap_type): Make static.
4239 * record.c (record_goto_cmdlist): Make static.
4240 * regcache.c (regcache_descr_handle): Make static.
4241 * registry.h (DEFINE_REGISTRY): Make definition static.
4242 * symmisc.c (std_in, std_out, std_err): Make static.
4243 * top.c (previous_saved_command_line): Make static.
4244 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4246 * unittests/command-def-selftests.c (nr_duplicates,
4247 nr_invalid_prefixcmd, lists): Make static.
4248 * unittests/observable-selftests.c (test_notification): Make
4250 * unittests/optional/assignment/1.cc (counter): Make static.
4251 * unittests/optional/assignment/2.cc (counter): Make static.
4252 * unittests/optional/assignment/3.cc (counter): Make static.
4253 * unittests/optional/assignment/4.cc (counter): Make static.
4254 * unittests/optional/assignment/5.cc (counter): Make static.
4255 * unittests/optional/assignment/6.cc (counter): Make static.
4260 * remote.c (struct remote_thread_info) <resume_state>: Rename
4262 <get_resume_state>: ... this.
4263 (remote_target::resume): Adjust.
4264 (remote_target::commit_resume): Adjust.
4265 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4270 * stap-probe.c (stap_parse_single_operand): Handle '!'
4272 (stap_parse_argument_conditionally): Likewise.
4273 Skip spaces after processing open-parenthesis sub-expression.
4274 (stap_parse_argument_1): Skip spaces after call to
4275 stap_parse_argument_conditionally.
4276 Handle case when right-side expression is a parenthesized
4278 Skip spaces after call to stap_parse_argument_1.
4282 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4286 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4287 memory and save data.
4288 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4289 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4290 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4291 (trad_frame_value_bytes_p): Remove.
4292 (trad_frame_reset_saved_regs): Adjust documentation.
4293 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4294 constructor and reset the state of the registers.
4295 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4296 (trad_frame_value_bytes_p, trad_frame_set_value)
4297 (trad_frame_set_realreg, trad_frame_set_addr)
4298 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4299 (trad_frame_set_reg_realreg): Update to call member function.
4300 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4301 (trad_frame_get_prev_register): Likewise.
4303 * aarch64-tdep.c (aarch64_analyze_prologue)
4304 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4305 (aarch64_prologue_prev_register): Update to use member functions.
4306 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4307 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4308 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4309 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4310 (arm_make_epilogue_frame_cache): Likewise.
4311 * avr-tdep.c (avr_frame_unwind_cache)
4312 (avr_frame_prev_register): Likewise.
4313 * cris-tdep.c (cris_scan_prologue): Likewise.
4314 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4315 * frv-tdep.c (frv_analyze_prologue): Likewise.
4316 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4317 * lm32-tdep.c (lm32_frame_cache): Likewise.
4318 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4319 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4320 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4321 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4322 (reset_saved_regs): Adjust to set realreg.
4323 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4324 call member functions.
4325 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4326 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4327 (s390_backchain_frame_unwind_cache): Likewise.
4328 * score-tdep.c (score7_analyze_prologue)
4329 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4330 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4331 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4332 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4333 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4334 * tilegx-tdep.c (tilegx_analyze_prologue)
4335 (tilegx_frame_cache): Likewise.
4336 * v850-tdep.c (v850_frame_cache): Likewise.
4337 * vax-tdep.c (vax_frame_cache): Likewise.
4341 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4343 (put_frame_register_bytes): Likewise.
4344 Adjust documentation.
4345 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4346 (safe_frame_unwind_memory): Likewise.
4347 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4348 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4350 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4351 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4352 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4353 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4354 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4355 * dwarf2/loc.c (rw_pieced_value): Likewise.
4356 * hppa-tdep.c (hppa_frame_cache): Likewise.
4357 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4358 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4359 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4360 (i386_linux_rt_sigtramp_start): Likewise.
4361 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4362 * i386-tdep.c (i386_register_to_value): Likewise.
4363 * i387-tdep.c (i387_register_to_value): Likewise.
4364 * ia64-tdep.c (ia64_register_to_value): Likewise.
4365 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4366 (m32r_linux_rt_sigtramp_start): Likewise.
4367 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4368 * m68k-tdep.c (m68k_register_to_value): Likewise.
4369 * mips-tdep.c (mips_register_to_value)
4370 (mips_value_to_register): Likewise.
4371 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4372 (ppcfbsd_sigtramp_frame_cache): Likewise.
4373 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4374 (ppcobsd_sigtramp_frame_cache): Likewise.
4375 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4376 (rs6000_register_to_value): Likewise.
4377 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4378 * tramp-frame.c (tramp_frame_start): Likewise.
4379 * valops.c (value_assign): Likewise.
4383 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4385 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4386 instead of buffer and size.
4387 (trad_frame_set_reg_value_bytes): Likewise.
4388 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4389 (trad_frame_set_value_bytes): Likewise.
4393 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4397 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4398 (riscv_fbsd_gregset): Use riscv_supply_regset.
4399 (riscv_fbsd_fpregset): Likewise.
4400 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4401 (riscv_linux_fregset): Likewise.
4402 * riscv-tdep.c (riscv_supply_regset): Define new function.
4403 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4408 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4410 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4415 * remote.c (class remote_target) <remote_hostio_send_command,
4416 remote_hostio_parse_result>: Constify parameter.
4417 (remote_hostio_parse_result): Likewise.
4418 (remote_target::remote_hostio_send_command): Adjust.
4419 (remote_target::remote_hostio_pread_vFile): Adjust.
4420 (remote_target::fileio_readlink): Adjust.
4421 (remote_target::fileio_fstat): Adjust.
4425 * remote.c (remote_target::start_remote): Move wait_status to
4430 * remote.c (class remote_target):
4431 <add_current_inferior_and_thread>: Constify parameter.
4432 (stop_reply_extract_thread): Likewise.
4433 (remote_target::get_current_thread): Likewise.
4434 (remote_target::add_current_inferior_and_thread): Likewise.
4438 * remote.c (class remote_target)
4439 <remote_unpack_thread_info_response,
4440 parse_threadlist_response>: Constify parameter and/or return
4441 value and or local variable.
4442 (stub_unpack_int): Likewise.
4443 (unpack_nibble): Likewise.
4444 (unpack_byte): Likewise.
4445 (unpack_int): Likewise.
4446 (unpack_string): Likewise.
4447 (unpack_threadid): Likewise.
4448 (remote_target::remote_unpack_thread_info_response): Likewise.
4449 (remote_target::parse_threadlist_response): Likewise.
4453 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4457 * MAINTAINERS (Write After Approval): Add myself.
4461 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4462 because is_trivially_default_constructible was first implemented with
4467 PR breakpoints/27151
4468 * objfiles.h (in_plt_section): Handle .plt.sec.
4474 (remote_target::select_thread_for_ambiguous_stop_reply): New
4476 (remote_target::process_stop_reply): Call
4477 select_thread_for_ambiguous_stop_reply.
4481 * record-btrace.c (class record_btrace_target): Remove.
4482 (record_btrace_target::commit_resume): Remove.
4483 * record-full.c (class record_full_target): Remove.
4484 (record_full_target::commit_resume): Remove.
4488 * remote.c (enum class resume_state): New.
4489 (struct resumed_pending_vcont_info): New.
4490 (struct remote_thread_info) <resume_state, set_not_resumed,
4491 set_resumed_pending_vcont, resumed_pending_vcont_info,
4492 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4494 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4495 (remote_target::remote_add_thread): Adjust.
4496 (remote_target::process_initial_stop_replies): Adjust.
4497 (remote_target::resume): Adjust.
4498 (remote_target::commit_resume): Rely on state in
4499 remote_thread_info and not on tp->executing.
4500 (remote_target::process_stop_reply): Adjust.
4504 * arc-tdep.h (arc_debug_printf): New.
4505 * arc-tdep.c: Use arc_debug_printf.
4506 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4507 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4508 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4512 * arc-tdep.h (arc_debug): Change type to bool.
4513 * arc-tdep.c (arc_debug): Change type to bool.
4514 (arc_analyze_prologue): Adjust.
4515 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4516 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4520 * auto-load.c (auto_load_objfile_script_1): Use bool.
4521 (execute_script_contents): Use bool.
4525 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4527 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4529 * extension-priv.h (struct extension_language_script_ops)
4530 <auto_load_enabled>: Return bool.
4531 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4533 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4535 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4537 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4538 move comment to header.
4539 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4541 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4542 move comment to header.
4546 * auto-load.h (file_is_auto_load_safe): Change return type to
4547 bool, move comment here.
4548 * auto-load.c (file_is_auto_load_safe): Change return type and
4549 advice_printed to bool. Move comment to header.
4553 * jit.c (jit_debug_printf): New, use throughout file.
4557 * infrun.c (normal_stop): Fix indentation.
4561 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4563 * symfile.h: ... here.
4564 * symfile.c: Update doc.
4568 * target.h (baud_rate, serial_parity): Move declarations...
4569 * serial.h: ... here.
4570 * main.c: Include serial.h.
4571 * serial.c (baud_rate, serial_parity): Update doc.
4575 * top.c (pre_init_ui_hook): Remove.
4579 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4580 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4581 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4582 * features/aarch64-fpu.xml: Add bfloat16 type.
4586 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4590 * f-exp.y (dot_ops): Rename to...
4591 (fortran_operators): ...this. Add a header comment. Add symbol
4593 (yylex): Update to use fortran_operators not dot_ops. Remove
4594 special handling for '**', this is now included in
4599 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4600 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4601 * aarch64-tdep.c: Use aarch64_debug_printf.
4605 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4610 * jit.c (jit_debug): Change type to bool.
4611 (_initialize_jit): Adjust.
4616 * compile/compile.c (compile_to_object): Avoid crash when
4617 osabi_triplet_regexp returns NULL.
4621 * tracepoint.h (class collection_list) <append_exp>: Take a
4623 * tracepoint.c (collection_list::append_exp): Take a std::string.
4624 (encode_actions_1): Update.
4628 * parse.c (parse_expression): Add void_context_p parameter. Use
4629 parse_exp_in_context.
4630 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4632 (print_command, call_command): Update.
4633 * expression.h (parse_expression): Add void_context_p parameter.
4637 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4638 for internalvar components that have a dynamic location.
4643 * breakpoint.c (create_exception_master_breakpoint_probe)
4644 (create_exception_master_breakpoint_hook): Factor out
4646 (create_exception_master_breakpoint): ... here. Only try to install
4647 the master exception breakpoint in objfile.debug using the
4648 _Unwind_DebugHook method, if the install using probes in objfile
4653 * f-lang.c (fortran_value_subarray): Call value_from_component.
4657 * remote-sim.c: Include memory-map.h.
4658 (gdbsim_target): Define memory_map override.
4659 (gdbsim_target::memory_map): Define.
4663 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4667 * ada-lang.c (add_component_interval): Start loop using vector's
4672 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4674 * valarith.c (fixed_point_binop): Handle multiplication
4675 and division specially.
4676 * valops.c (value_to_gdb_mpq): New function.
4677 (value_cast_to_fixed_point): Use it.
4681 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4682 Call wnoutrefresh instead of tui_win_info::refresh_window.
4686 * tui/tui-source.c (tui_source_window::show_line_number):
4687 Redraw second space after line number.
4692 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4693 Fix source pad size in prefresh.
4694 (tui_source_window_base::show_source_content): Grow source pad
4699 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4700 (bfin_frame_align): Use align_down.
4704 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4705 terminators that do not terminate anything.
4709 * debug.c (debug_print_depth): New.
4710 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4711 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4712 * infrun.c (start_step_over): Use
4713 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4714 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4715 INFRUN_SCOPED_DEBUG_START_END.
4716 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4720 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4724 * utils.c (vfprintf_unfiltered): Print timestamp only when
4725 previous debug output ended with a newline.
4729 Update all users of trad_frame_saved_reg to use the new member
4732 Remote all struct keywords from declarations of trad_frame_saved_reg
4733 types, except on forward declarations.
4735 * aarch64-tdep.c: Update.
4736 * alpha-mdebug-tdep.c: Update.
4737 * alpha-tdep.c: Update.
4738 * arc-tdep.c: Update.
4739 * arm-tdep.c: Update.
4740 * avr-tdep.c: Update.
4741 * cris-tdep.c: Update.
4742 * csky-tdep.c: Update.
4743 * frv-tdep.c: Update.
4744 * hppa-linux-tdep.c: Update.
4745 * hppa-tdep.c: Update.
4746 * hppa-tdep.h: Update.
4747 * lm32-tdep.c: Update.
4748 * m32r-linux-tdep.c: Update.
4749 * m32r-tdep.c: Update.
4750 * m68hc11-tdep.c: Update.
4751 * mips-tdep.c: Update.
4752 * moxie-tdep.c: Update.
4753 * riscv-tdep.c: Update.
4754 * rs6000-tdep.c: Update.
4755 * s390-linux-tdep.c: Update.
4756 * s390-tdep.c: Update.
4757 * score-tdep.c: Update.
4758 * sparc-netbsd-tdep.c: Update.
4759 * sparc-sol2-tdep.c: Update.
4760 * sparc64-fbsd-tdep.c: Update.
4761 * sparc64-netbsd-tdep.c: Update.
4762 * sparc64-obsd-tdep.c: Update.
4763 * sparc64-sol2-tdep.c: Update.
4764 * tilegx-tdep.c: Update.
4765 * v850-tdep.c: Update.
4766 * vax-tdep.c: Update.
4768 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4769 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4771 * trad-frame.c: Update.
4772 Remove TF_REG_* enum.
4773 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4774 a trivially-constructible struct.
4775 (trad_frame_reset_saved_regs): Adjust to use member function.
4776 (trad_frame_value_p): Likewise.
4777 (trad_frame_addr_p): Likewise.
4778 (trad_frame_realreg_p): Likewise.
4779 (trad_frame_value_bytes_p): Likewise.
4780 (trad_frame_set_value): Likewise.
4781 (trad_frame_set_realreg): Likewise.
4782 (trad_frame_set_addr): Likewise.
4783 (trad_frame_set_unknown): Likewise.
4784 (trad_frame_set_value_bytes): Likewise.
4785 (trad_frame_get_prev_register): Likewise.
4786 * trad-frame.h: Update.
4787 (trad_frame_saved_reg_kind): New enum.
4788 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4789 <m_kind, m_reg>: New member fields.
4790 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4791 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4792 <is_addr, is_unknown, is_value_bytes>: New member functions.
4796 * target-float.c: Fix typos.
4800 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4804 * gdbarch.sh: Update copyright year range.
4808 Update copyright year range in copyright header of all GDB files.
4812 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4813 to the list of directories to update.
4817 * top.c (print_gdb_version): Update copyright year.
4821 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
4823 For older changes see ChangeLog-2020.
4829 version-control: never