]> Git Repo - binutils.git/blob - gdb/ChangeLog
1bd2f138ada4fb9a5ea25cde565359dcf4ebed56
[binutils.git] / gdb / ChangeLog
1 2021-04-01  Simon Marchi  <[email protected]>
2
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.
7
8 2021-04-01  Simon Marchi  <[email protected]>
9
10         * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
11         with type::is_declared_class.
12
13 2021-04-01  Simon Marchi  <[email protected]>
14
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.
19
20 2021-02-28  Boris Staletic  <[email protected]>
21
22         * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
23         to avoid deprecation warnings.
24
25 2021-04-01  Martin Liska  <[email protected]>
26
27         * cp-name-parser.y: Use startswith instead of strncmp.
28         * m2-exp.y: Likewise.
29         * macroexp.c (substitute_args): Likewise.
30         * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
31         * rust-exp.y: Likewise.
32
33 2021-03-31  Tom Tromey  <[email protected]>
34
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.
39
40 2021-03-31  Tom Tromey  <[email protected]>
41
42         * dwarf2/stringify.h: Fix typo.
43
44 2021-03-30  Simon Marchi  <[email protected]>
45
46         PR gdb/27541
47         * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
48         with objfiles using READNOW.
49
50 2021-03-29  Tom Tromey  <[email protected]>
51
52         * top.c (check_frame_language_change): Update.
53         * language.c (language_info): Remove parameter.
54         * language.h (language_info): Remove parameter.
55
56 2021-03-29  Luis Machado  <[email protected]>
57
58         * compile/compile.c (get_args): Don't add empty argv entries.
59
60 2021-03-29  Rainer Orth  <[email protected]>
61
62         gdb:
63         * procfs.c (procfs_target::attach): Define inf.
64         Use it.
65         (procfs_target::create_inferior): Likewise.
66
67 2021-03-28  Tom Tromey  <[email protected]>
68
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.
79
80 2021-03-27  Tom Tromey  <[email protected]>
81
82         * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
83
84 2021-03-27  Tom Tromey  <[email protected]>
85
86         * elfread.c (elf_symfile_read): Don't clear 'qf'.
87
88 2021-03-26  Lancelot Six  <[email protected]>
89
90         * contrib/gdb-add-index.sh: Avoid variable shadowing and get
91         rid of 'local'.
92
93 2021-03-26  Tom Tromey  <[email protected]>
94
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'
113         parameter.
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'
117         parameter.
118         (mi_cmd_file_list_exec_source_files): Update.
119         * dwarf2/read.c
120         (dwarf2_base_index_functions::map_symbol_filenames): Update.
121
122 2021-03-26  Tom Tromey  <[email protected]>
123
124         * ada-lang.c (struct match_data): Add operator().
125         (match_data::operator()): Rename from aux_add_nonlocal_symbols.
126         (callback): Remove 'callback'.
127
128 2021-03-26  Tom Tromey  <[email protected]>
129
130         * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
131         call make_ignore_params once.
132
133 2021-03-26  Tom Tromey  <[email protected]>
134
135         * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
136         "user" check.
137
138 2021-03-26  Simon Marchi  <[email protected]>
139             Pedro Alves  <[email protected]>
140
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.
152
153 2021-03-26  Simon Marchi  <[email protected]>
154             Pedro Alves  <[email protected]>
155
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):
170         New.
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.
207
208 2021-03-26  Pedro Alves  <[email protected]>
209
210         * target.c (target_always_non_stop_p): Also check whether the
211         target can async.
212
213 2021-03-26  Tom Tromey  <[email protected]>
214
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):
218         Simplify.
219
220 2021-03-25  Pedro Alves  <[email protected]>
221
222         * gdb.server/bkpt-other-inferior.exp: Only enable remote output
223         around setting the breakpoint.
224
225 2021-03-25  Pedro Alves  <[email protected]>
226
227         * remote.c
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.
231
232 2021-03-24  Changbin Du  <[email protected]>
233
234         * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
235         read_code.
236
237 2021-03-24  Simon Marchi  <[email protected]>
238
239         * target.h (current_top_target): Remove, make callers use the
240         current inferior instead.
241         * target.c (current_top_target): Remove.
242
243 2021-03-24  Simon Marchi  <[email protected]>
244
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.
345         (target_rcmd): 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.
413
414 2021-03-24  Tom Tromey  <[email protected]>
415
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.
421
422 2021-03-24  Keith Seitz  <[email protected]>
423
424         * compile/compile-cplus-types.c
425         (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
426         thinko.
427
428 2021-03-24  Simon Marchi  <[email protected]>
429
430         * gdbarch.sh (gdbarch_data_registry): Make static.
431         * gdbarch.c: Re-generate.
432
433 2021-03-24  Luis Machado  <[email protected]>
434
435         * NEWS: Mention memory tagging changes.
436
437 2021-03-24  Luis Machado  <[email protected]>
438
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.
448
449 2021-03-24  Luis Machado  <[email protected]>
450
451         * printcmd.c: Include gdbsupport/rsp-low.h.
452         (memory_tag_list): New static global.
453         (process_print_command_args): Factored out of
454         print_command_1.
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
462         functions.
463         (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
464
465 2021-03-24  Luis Machado  <[email protected]>
466
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.
470
471 2021-03-24  Luis Machado  <[email protected]>
472
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.
479
480 2021-03-24  Luis Machado  <[email protected]>
481
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.
485
486 2021-03-24  Luis Machado  <[email protected]>
487
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
492         functions.
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.
501
502 2021-03-24  Luis Machado  <[email protected]>
503
504         * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
505         bit.
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.
513
514 2021-03-24  Luis Machado  <[email protected]>
515
516         * linux-tdep.c (linux_find_memory_regions_full): Use std::string
517         instead of char arrays.
518
519 2021-03-24  Luis Machado  <[email protected]>
520
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
526         override.
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.
541
542 2021-03-24  Luis Machado  <[email protected]>
543
544         * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
545         * nat/aarch64-mte-linux-ptrace.h: New file.
546
547 2021-03-24  Luis Machado  <[email protected]>
548
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.
561
562 2021-03-24  Luis Machado  <[email protected]>
563
564         * aarch64-linux-nat.c
565         (aarch64_linux_nat_target::read_description): Take MTE flag into
566         account.
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
571         MTE.
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
578         the code to use it.
579         * arch/aarch64.h (aarch64_create_target_description): Add mte_p
580         parameter.
581         * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
582         * features/aarch64-mte.c: New file, generated.
583         * features/aarch64-mte.xml: New file.
584
585 2021-03-24  Luis Machado  <[email protected]>
586
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.
591
592 2021-03-24  Luis Machado  <[email protected]>
593
594         * remote: Include gdbsupport/selftest.h.
595         (test_memory_tagging_functions): New function.
596         (_initialize_remote): Register test_memory_tagging_functions.
597
598 2021-03-24  Luis Machado  <[email protected]>
599
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
604         support.
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"
611         config command.
612
613 2021-03-24  Luis Machado  <[email protected]>
614
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.
626
627 2021-03-24  Luis Machado  <[email protected]>
628
629         * remote.c (remote_target) <supports_memory_tagging>: New method
630         override.
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
638         method.
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.
647
648 2021-03-23  Simon Marchi  <[email protected]>
649
650         * target.h (target_longname): Remove.
651
652 2021-03-23  Simon Marchi  <[email protected]>
653
654         * target.h (target_is_pushed): Remove, update callers to use
655         inferior::target_is_pushed instead.
656         * target.c (target_is_pushed): Remove.
657
658 2021-03-23  Simon Marchi  <[email protected]>
659
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.
664
665 2021-03-23  Simon Marchi  <[email protected]>
666
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.
672
673 2021-03-22  Andrew Burgess  <[email protected]>
674
675         * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
676         error.
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.
680
681 2021-03-22  Andrew Burgess  <[email protected]>
682
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
686         member function.
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.
692
693 2021-03-22  Martin Liska  <[email protected]>
694
695         * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
696         (_initialize_arm_tdep): Likewise.
697
698 2021-03-20  Tom Tromey  <[email protected]>
699
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
706         constructor.
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.
712         Don't clear "qf".
713         * dwarf2/read.c (dwarf2_has_info): Remove check for existing
714         partial symbols.
715         (dwarf2_build_psymtabs): Add psymbol_functions parameter.  Create
716         partial symtabs.
717         * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
718         parameter.
719         * dbxread.c (dbx_symfile_read): Create partial symtabs.
720         * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
721
722 2021-03-20  Tom Tromey  <[email protected]>
723
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.
746
747 2021-03-20  Tom Tromey  <[email protected]>
748
749         * objfiles.h (struct objfile) <psymtabs>: Remove method.
750
751 2021-03-20  Tom Tromey  <[email protected]>
752
753         * psymtab.c (psymbol_functions::count_psyms): Rename.
754         (psymbol_functions::print_stats): Update.
755         * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
756         method.
757
758 2021-03-20  Tom Tromey  <[email protected]>
759
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>:
765         Declare new method.
766         <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
767
768 2021-03-20  Tom Tromey  <[email protected]>
769
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
773         parameter.
774         (add_psymbol_to_bcache): Remove.
775         (partial_symtab::add_psymbol): Add partial_symtabs parameter.
776         (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
777         Likewise.
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
787         parameter.
788         (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
789         (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
790         Update.
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):
797         Update.
798         (scan_partial_symbols): Add partial_symtabs parameter.
799         (scan_partial_symbols, elfctf_build_psymtabs)
800         (ctf_psymtab_add_enums): Update.
801
802 2021-03-20  Tom Tromey  <[email protected]>
803
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
808         static.
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
825         new method.
826
827 2021-03-20  Tom Tromey  <[email protected]>
828
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.
847
848 2021-03-20  Tom Tromey  <[email protected]>
849
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
853         partial_symtabs.
854
855 2021-03-20  Tom Tromey  <[email protected]>
856
857         * dwarf2/read.c (dwarf2_build_psymtabs): Call
858         set_partial_symtabs.
859         * symfile.c (syms_from_objfile_1, reread_symbols): Update.
860         * psymtab.h (make_psymbol_functions): Add partial_symtabs
861         parameter.
862         * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
863         parameter.
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.
874
875 2021-03-20  Tom Tromey  <[email protected]>
876
877         * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
878         parameter.
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.
883
884 2021-03-20  Tom Tromey  <[email protected]>
885
886         * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
887         Remove.
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.
892
893 2021-03-20  Tom Tromey  <[email protected]>
894
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
898         parameter.
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
902         code to psymtab.c.
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.
910
911 2021-03-20  Tom Tromey  <[email protected]>
912
913         * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
914         member.
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
919         per_bfd addrmap.
920         (dwarf2_read_debug_names): Don't set partial_symtabs.
921         (dwarf2_initialize_objfile): Likewise.
922
923 2021-03-20  Tom Tromey  <[email protected]>
924
925         * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
926         earlier.
927
928 2021-03-20  Tom Tromey  <[email protected]>
929
930         * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
931         (~psymtab_discarder, keep): Update.
932         <m_objfile>: Remove.
933         <m_partial_symtabs>: New member.
934         * dwarf2/read.c (dwarf2_build_psymtabs): Update.
935
936 2021-03-20  Tom Tromey  <[email protected]>
937
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.
949
950 2021-03-20  Tom Tromey  <[email protected]>
951
952         * quick-symbol.h (struct quick_symbol_functions)
953         <relocated>: New method.
954         * psymtab.h (struct psymbol_functions) <relocated>: New
955         method.
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.
963
964 2021-03-20  Tom Tromey  <[email protected]>
965
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):
1007         Rename.
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):
1021         Declare.
1022
1023 2021-03-20  Tom Tromey  <[email protected]>
1024
1025         * psymtab.c (require_partial_symbols): Check that 'sf' is not
1026         null.
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):
1049         Don't declare.
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.
1053
1054 2021-03-20  Tom Tromey  <[email protected]>
1055
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.
1062
1063 2021-03-20  Tom Tromey  <[email protected]>
1064
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):
1070         Update.
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
1096         symfile-debug.c.
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.
1100
1101 2021-03-20  Tom Tromey  <[email protected]>
1102
1103         * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1104         * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1105         bool.
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.
1110
1111 2021-03-20  Tom Tromey  <[email protected]>
1112
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.
1122
1123 2021-03-20  Tom Tromey  <[email protected]>
1124
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.
1136
1137 2021-03-20  Tom Tromey  <[email protected]>
1138
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.
1143
1144 2021-03-19  Pedro Alves  <[email protected]>
1145
1146         * thread.c (any_thread_of_inferior): Check if there's a selected
1147         thread before calling inferior_thread().
1148
1149 2021-03-18  Tom Tromey  <[email protected]>
1150
1151         * dwarf2/stringify.c (dwarf_unit_type_name): New function.  Use
1152         get_DW_UT_name.
1153         * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1154         * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1155
1156 2021-03-18  Andrew Burgess  <[email protected]>
1157
1158         * python/py-param.c (get_set_value): Update header comment.
1159
1160 2021-03-17  Simon Marchi  <[email protected]>
1161
1162         * infrun.c (check_multi_target_resumption): Remove argument to
1163         all_non_exited_inferiors.
1164
1165 2021-03-16  Christian Biesinger  <[email protected]>
1166
1167         * windows-nat.c (windows_init_thread_list): Add message to
1168         debug log.
1169
1170 2021-03-16  Andrew Burgess  <[email protected]>
1171
1172         * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1173         well as PyLong_Check for Python 2.
1174
1175 2021-03-15  Tom Tromey  <[email protected]>
1176
1177         PR build/27579:
1178         * rust-exp.y (maker_map): Use gdb::hash_enum.
1179         * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1180
1181 2021-03-15  Simon Marchi  <[email protected]>
1182
1183         * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1184         end of debug print.
1185
1186 2021-03-15  Simon Marchi  <[email protected]>
1187
1188         * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1189         parameter, adjust caller.
1190
1191 2021-03-15  Tom Tromey  <[email protected]>
1192
1193         * ada-exp.y (simple_exp): Always push a result for unary '+'.
1194
1195 2021-03-15  Tom Tromey  <[email protected]>
1196
1197         * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1198         ada_ensure_varsize_limit.
1199
1200 2021-03-15  Tom Tromey  <[email protected]>
1201
1202         * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1203         fixed-point.
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.
1209
1210 2021-03-15  Tom Tromey  <[email protected]>
1211
1212         PR ada/27545:
1213         * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1214         call for tagged type.
1215
1216 2021-03-15  Tom Tromey  <[email protected]>
1217
1218         * ada-exp.y (exp1): Handle resolution of the right hand side of an
1219         assignment.
1220
1221 2021-03-15  Tom Tromey  <[email protected]>
1222
1223         * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1224         container.
1225         (ada_assign_operation::evaluate): Update.
1226         * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1227         Change return type.
1228
1229 2021-03-15  Felix Willgerodt  <[email protected]>
1230
1231         * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1232
1233 2021-03-15  Andrew Burgess  <[email protected]>
1234
1235         * python/python.c (gdbpy_source_objfile_script): Use
1236         make_scoped_restore to restore gdbpy_current_objfile.
1237         (gdbpy_execute_objfile_script): Likewise.
1238
1239 2021-03-14  Tom Tromey  <[email protected]>
1240
1241         * dwarf2/read.c (read_attribute_value): Use cu_header
1242         consistently.
1243
1244 2021-03-14  Tom Tromey  <[email protected]>
1245
1246         * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1247         (peek_die_abbrev): Use reader.abfd.
1248
1249 2021-03-14  Tom Tromey  <[email protected]>
1250
1251         * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1252         m_header_read_in.
1253
1254 2021-03-13  Tom Tromey  <[email protected]>
1255
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.
1260
1261 2021-03-13  Tom Tromey  <[email protected]>
1262
1263         * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1264
1265 2021-03-12  Christian Biesinger  <[email protected]>
1266
1267         PR threads/27239
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):
1271         New function.
1272         (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1273         function.
1274         * event-top.h (class scoped_segv_handler_restore): New class.
1275         (thread_local_segv_handler): Removed.
1276
1277 2021-03-10  Tom Tromey  <[email protected]>
1278
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.
1287
1288 2021-03-09  Tom Tromey  <[email protected]>
1289
1290         * eval.c (operation::evaluate_funcall): Use function formal
1291         parameter types when evaluating.
1292
1293 2021-03-09  Andrew Burgess  <[email protected]>
1294
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.
1298
1299 2021-03-09  Felix Willgerodt  <[email protected]>
1300
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
1304         UNOP_INTRINSIC.
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.
1308
1309 2021-03-09  Andrew Burgess  <[email protected]>
1310
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
1314         UNOP_INTRINSIC.
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.
1319
1320 2021-03-09  Andrew Burgess  <[email protected]>
1321
1322         * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1323         of this function.
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.
1332
1333 2021-03-09  Andrew Burgess  <[email protected]>
1334
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
1338         UNOP_INTRINSIC.
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.
1342
1343 2021-03-08  Tom Tromey  <[email protected]>
1344
1345         * printcmd.c (set_command): Remove null check.
1346         * value.c (init_if_undefined_command): Remove null check.
1347
1348 2021-03-08  Tom Tromey  <[email protected]>
1349
1350         * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1351         Update.
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
1357         parameter.
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
1362         parameter.
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):
1370         Update.
1371         * ada-exp.y (write_var_or_type): Update.
1372
1373 2021-03-08  Tom Tromey  <[email protected]>
1374
1375         * parser-defs.h (exp_uses_objfile): Return bool.
1376         * parse.c (exp_uses_objfile): Return bool.
1377
1378 2021-03-08  Tom Tromey  <[email protected]>
1379
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.
1413
1414 2021-03-08  Tom Tromey  <[email protected]>
1415
1416         * eval.c: Merge "namespace" scopes.
1417
1418 2021-03-08  Tom Tromey  <[email protected]>
1419
1420         * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1421         <release>: Inline.
1422         * parse.c (expr_builder::expr_builder, expr_builder::release):
1423         Remove.
1424
1425 2021-03-08  Tom Tromey  <[email protected]>
1426
1427         * parse.c (expression::expression, expression::~expression):
1428         Remove.
1429         * expression.h (struct expression): Inline constructor.  Remove
1430         destructor.
1431
1432 2021-03-08  Tom Tromey  <[email protected]>
1433
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
1440         BINOP_END.
1441
1442 2021-03-08  Tom Tromey  <[email protected]>
1443
1444         * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1445
1446 2021-03-08  Tom Tromey  <[email protected]>
1447
1448         * std-operator.def (OP_EXTENDED0): Remove.
1449
1450 2021-03-08  Tom Tromey  <[email protected]>
1451
1452         * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1453         (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1454         Remove.
1455
1456 2021-03-08  Tom Tromey  <[email protected]>
1457
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.
1460
1461 2021-03-08  Tom Tromey  <[email protected]>
1462
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.
1467
1468 2021-03-08  Tom Tromey  <[email protected]>
1469
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>:
1485         Remove.
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.
1503         <resize>: Remove.
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.
1539
1540 2021-03-08  Tom Tromey  <[email protected]>
1541
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):
1545         Remove.
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.
1552
1553 2021-03-08  Tom Tromey  <[email protected]>
1554
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):
1562         Remove.
1563         (post_parser): Update.
1564         (class ada_language) <expresssion_ops>: Remove.
1565
1566 2021-03-08  Tom Tromey  <[email protected]>
1567
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.
1572
1573 2021-03-08  Tom Tromey  <[email protected]>
1574
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):
1581         Remove.
1582
1583 2021-03-08  Tom Tromey  <[email protected]>
1584
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
1589         EVAL_SKIP.
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.
1594
1595 2021-03-08  Tom Tromey  <[email protected]>
1596
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):
1603         New functions.
1604         (associations): New global
1605         (push_association, pop_association, pop_associations): New
1606         functions.
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.
1614
1615 2021-03-08  Tom Tromey  <[email protected]>
1616
1617         * f-exp.y: Create operations.
1618         (f_language::parser): Update.
1619
1620 2021-03-08  Tom Tromey  <[email protected]>
1621
1622         * m2-exp.y: Create operations.
1623         (m2_language::parser): Update.
1624
1625 2021-03-08  Tom Tromey  <[email protected]>
1626
1627         * p-exp.y: Create operations.
1628         (pascal_language::parser): Update.
1629
1630 2021-03-08  Tom Tromey  <[email protected]>
1631
1632         * d-exp.y: Create operations.
1633         (d_parse): Update.
1634
1635 2021-03-08  Tom Tromey  <[email protected]>
1636
1637         * go-exp.y: Create operations.
1638         (go_language::parser): Update.
1639
1640 2021-03-08  Tom Tromey  <[email protected]>
1641
1642         * objc-lang.c (end_msglist): Create operations.
1643         * c-exp.y: Change parser to create operations.
1644         (write_destructor_name): Remove.
1645         (c_parse): Update.
1646
1647 2021-03-08  Tom Tromey  <[email protected]>
1648
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.
1656
1657 2021-03-08  Tom Tromey  <[email protected]>
1658
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
1669         type.
1670         * i386-tdep.h (i386_stap_parse_special_token): Change return
1671         type.
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
1679         type.
1680         * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1681         return type.
1682
1683 2021-03-08  Tom Tromey  <[email protected]>
1684
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
1690         return type.
1691         (amd64_dtrace_parse_probe_argument): Update.
1692
1693 2021-03-08  Tom Tromey  <[email protected]>
1694
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
1701         methods.
1702
1703 2021-03-08  Tom Tromey  <[email protected]>
1704
1705         * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1706         New member.
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.
1712
1713 2021-03-08  Tom Tromey  <[email protected]>
1714
1715         * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1716         now in superclass.
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):
1723         Update.
1724         * parser-defs.h (struct expr_builder) <set_operation>: New
1725         method.
1726         * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1727         * expression.h (struct expression) <first_opcode>: Update.
1728         <op>: New member.
1729         * expprint.c (dump_raw_expression, dump_prefix_expression):
1730         Update.
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):
1745         Update.
1746
1747 2021-03-08  Tom Tromey  <[email protected]>
1748
1749         * ada-lang.c (ada_value_binop): Do not use op_string.
1750
1751 2021-03-08  Tom Tromey  <[email protected]>
1752
1753         * expprint.c (dump_for_expression): New overload.
1754         * expop.h (check_objfile, dump_for_expression): Declare new
1755         overloads.
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):
1771         New methods.
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.
1783
1784 2021-03-08  Tom Tromey  <[email protected]>
1785
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.
1796
1797 2021-03-08  Tom Tromey  <[email protected]>
1798
1799         * ada-lang.c (ada_funcall_operation::evaluate): New method.
1800         * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1801         method.
1802         (class ada_funcall_operation): New.
1803
1804 2021-03-08  Tom Tromey  <[email protected]>
1805
1806         * ada-lang.c (ada_structop_operation::evaluate): New method.
1807         * ada-exp.h (class ada_structop_operation): New.
1808
1809 2021-03-08  Tom Tromey  <[email protected]>
1810
1811         * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1812         * ada-exp.h (class ada_unop_ind_operation): New.
1813
1814 2021-03-08  Tom Tromey  <[email protected]>
1815
1816         * ada-lang.c (ada_binop_exp): No longer static.
1817         * ada-exp.h (ada_binop_exp_operation): New typedef.
1818
1819 2021-03-08  Tom Tromey  <[email protected]>
1820
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.
1824
1825 2021-03-08  Tom Tromey  <[email protected]>
1826
1827         * ada-lang.c (ada_pos_atr): No longer static.
1828         * ada-exp.h (ada_pos_operation): New typedef.
1829
1830 2021-03-08  Tom Tromey  <[email protected]>
1831
1832         * ada-lang.c (ada_pos_atr): Rename from value_pos_atr.  Change
1833         parameters.
1834         (ada_evaluate_subexp): Use it.
1835
1836 2021-03-08  Tom Tromey  <[email protected]>
1837
1838         * ada-lang.c (ada_binop_minmax): No longer static.
1839         * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1840         New typedefs.
1841
1842 2021-03-08  Tom Tromey  <[email protected]>
1843
1844         * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1845         New method.
1846         * ada-exp.h (class ada_var_msym_value_operation): New.
1847
1848 2021-03-08  Tom Tromey  <[email protected]>
1849
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.
1853
1854 2021-03-08  Tom Tromey  <[email protected]>
1855
1856         * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1857         * ada-exp.h (class ada_unop_atr_operation): New.
1858
1859 2021-03-08  Tom Tromey  <[email protected]>
1860
1861         * ada-lang.c (ada_binop_in_bounds): No longer static.
1862         * ada-exp.h (class ada_binop_in_bounds_operation): New.
1863
1864 2021-03-08  Tom Tromey  <[email protected]>
1865
1866         * ada-lang.c (ada_ternop_slice): No longer static.
1867         * ada-exp.h (class ada_ternop_slice_operation): New.
1868
1869 2021-03-08  Tom Tromey  <[email protected]>
1870
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.
1874
1875 2021-03-08  Tom Tromey  <[email protected]>
1876
1877         * ada-lang.c (ada_equal_binop): No longer static.
1878         * ada-exp.h (class ada_binop_equal_operation): New.
1879
1880 2021-03-08  Tom Tromey  <[email protected]>
1881
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.
1885
1886 2021-03-08  Tom Tromey  <[email protected]>
1887
1888         * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1889         * ada-exp.h (class ada_binop_addsub_operation): New.
1890
1891 2021-03-08  Tom Tromey  <[email protected]>
1892
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.
1898
1899 2021-03-08  Tom Tromey  <[email protected]>
1900
1901         * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1902         method.
1903         * c-exp.h (class opencl_ternop_cond_operation): New.
1904
1905 2021-03-08  Tom Tromey  <[email protected]>
1906
1907         * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1908         method.
1909         * c-exp.h (class opencl_logical_binop_operation): New.
1910
1911 2021-03-08  Tom Tromey  <[email protected]>
1912
1913         * opencl-lang.c (opencl_structop_operation::evaluate): New
1914         method.
1915         * c-exp.h (class opencl_structop_operation): New.
1916
1917 2021-03-08  Tom Tromey  <[email protected]>
1918
1919         * opencl-lang.c (opencl_logical_not): No longer static.  Change
1920         parameters.
1921         (evaluate_subexp_opencl): Update.
1922         * c-exp.h (opencl_notequal_operation): New typedef.
1923
1924 2021-03-08  Tom Tromey  <[email protected]>
1925
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.
1935
1936 2021-03-08  Tom Tromey  <[email protected]>
1937
1938         * opencl-lang.c (opencl_value_cast): No longer static.
1939         * c-exp.h (opencl_cast_type_operation): New typedef.
1940
1941 2021-03-08  Tom Tromey  <[email protected]>
1942
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.
1946
1947 2021-03-08  Tom Tromey  <[email protected]>
1948
1949         * f-lang.c (eval_op_f_associated): New functions.
1950         * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1951         typedefs.
1952
1953 2021-03-08  Tom Tromey  <[email protected]>
1954
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):
1958         New.
1959
1960 2021-03-08  Tom Tromey  <[email protected]>
1961
1962         * expop.h (class unop_addr_operation) <get_expression>: New
1963         method.
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.
1969
1970 2021-03-08  Tom Tromey  <[email protected]>
1971
1972         * rust-lang.c (rust_structop::evaluate_funcall): New method.
1973         * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1974         method.
1975
1976 2021-03-08  Tom Tromey  <[email protected]>
1977
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.
1994
1995 2021-03-08  Tom Tromey  <[email protected]>
1996
1997         * expop.h (class array_operation): New.
1998         * eval.c (array_operation::evaluate_struct_tuple)
1999         (array_operation::evaluate): New methods.
2000
2001 2021-03-08  Tom Tromey  <[email protected]>
2002
2003         * expop.h (class adl_func_operation): New.
2004         * eval.c (adl_func_operation::evaluate): New method.
2005
2006 2021-03-08  Tom Tromey  <[email protected]>
2007
2008         * ada-lang.c (ada_unop_in_range): No longer static.
2009         * ada-exp.h (class ada_unop_range_operation): New.
2010
2011 2021-03-08  Tom Tromey  <[email protected]>
2012
2013         * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2014         No longer static.
2015         * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2016         (ada_atr_size_operation, ada_abs_operation): New typedefs.
2017
2018 2021-03-08  Tom Tromey  <[email protected]>
2019
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.
2026
2027 2021-03-08  Tom Tromey  <[email protected]>
2028
2029         * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2030         static.
2031         * m2-exp.h: New file.
2032
2033 2021-03-08  Tom Tromey  <[email protected]>
2034
2035         * rust-lang.c (rust_aggregate_operation::evaluate): New method.
2036         * rust-exp.h (class rust_aggregate_operation): New.
2037
2038 2021-03-08  Tom Tromey  <[email protected]>
2039
2040         * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
2041         No longer static.
2042         * rust-exp.h (class rust_struct_anon): New.
2043         (class rust_structop): New.
2044
2045 2021-03-08  Tom Tromey  <[email protected]>
2046
2047         * rust-lang.c (rust_range): No longer static.
2048         * rust-exp.h (class rust_range_operation): New.
2049
2050 2021-03-08  Tom Tromey  <[email protected]>
2051
2052         * rust-lang.c (rust_subscript): No longer static.
2053         * rust-exp.h (class rust_subscript_operation): New.
2054
2055 2021-03-08  Tom Tromey  <[email protected]>
2056
2057         * rust-lang.c (eval_op_rust_ind): No longer static.  Add "opcode"
2058         parameter.
2059         (rust_evaluate_subexp): Update.
2060         * rust-exp.h (class rust_unop_ind_operation): New.
2061
2062 2021-03-08  Tom Tromey  <[email protected]>
2063
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.
2068
2069 2021-03-08  Tom Tromey  <[email protected]>
2070
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.
2076
2077 2021-03-08  Tom Tromey  <[email protected]>
2078
2079         * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
2080         * ada-exp.h (class ada_ternop_range_operation): New.
2081
2082 2021-03-08  Tom Tromey  <[email protected]>
2083
2084         * ada-lang.c (ada_qual_operation::evaluate): New method.
2085         * ada-exp.h (class ada_qual_operation): New.
2086
2087 2021-03-08  Tom Tromey  <[email protected]>
2088
2089         * ada-lang.c (ada_string_operation::evaluate): New method.
2090         * ada-exp.h (class ada_string_operation): New.
2091
2092 2021-03-08  Tom Tromey  <[email protected]>
2093
2094         * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2095         * ada-exp.h: New file.
2096
2097 2021-03-08  Tom Tromey  <[email protected]>
2098
2099         * expop.h (class multi_subscript_operation): New.
2100         * eval.c (multi_subscript_operation::evaluate): New method.
2101
2102 2021-03-08  Tom Tromey  <[email protected]>
2103
2104         * eval.c (objc_msgcall_operation::evaluate): New method.
2105         * c-exp.h (class objc_msgcall_operation): New.
2106
2107 2021-03-08  Tom Tromey  <[email protected]>
2108
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.
2116
2117 2021-03-08  Tom Tromey  <[email protected]>
2118
2119         * expop.h (cxx_cast_ftype): New typedef.
2120         (cxx_cast_operation): New template.
2121         (dynamic_cast_operation, reinterpret_cast_operation): New
2122         typedefs.
2123
2124 2021-03-08  Tom Tromey  <[email protected]>
2125
2126         * expop.h (class unop_cast_type_operation): New.
2127         * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2128         method.
2129
2130 2021-03-08  Tom Tromey  <[email protected]>
2131
2132         * expop.h (class unop_cast_operation): New.
2133         * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2134
2135 2021-03-08  Tom Tromey  <[email protected]>
2136
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.
2140
2141 2021-03-08  Tom Tromey  <[email protected]>
2142
2143         * expop.h (class assign_operation): New.
2144         * ax-gdb.c (assign_operation::do_generate_ax): New method.
2145
2146 2021-03-08  Tom Tromey  <[email protected]>
2147
2148         * expop.h (class type_instance_operation): New.
2149         * eval.c (type_instance_operation::evaluate): New method.
2150
2151 2021-03-08  Tom Tromey  <[email protected]>
2152
2153         * expop.h (class op_this_operation): New.
2154         * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2155
2156 2021-03-08  Tom Tromey  <[email protected]>
2157
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.
2167
2168 2021-03-08  Tom Tromey  <[email protected]>
2169
2170         * expop.h (class unop_alignof_operation): New.
2171         * eval.c (eval_op_alignof): No longer static.
2172
2173 2021-03-08  Tom Tromey  <[email protected]>
2174
2175         * expop.h (class unop_sizeof_operation): New.
2176         * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2177
2178 2021-03-08  Tom Tromey  <[email protected]>
2179
2180         * expop.h (class unop_addr_operation): New.
2181         * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2182
2183 2021-03-08  Tom Tromey  <[email protected]>
2184
2185         * expop.h (class typeid_operation): New.
2186
2187 2021-03-08  Tom Tromey  <[email protected]>
2188
2189         * expop.h (class decltype_operation): New.
2190
2191 2021-03-08  Tom Tromey  <[email protected]>
2192
2193         * expop.h (class typeof_operation): New.
2194
2195 2021-03-08  Tom Tromey  <[email protected]>
2196
2197         * expop.h (class type_operation): New.
2198         * eval.c (eval_op_type): No longer static.
2199
2200 2021-03-08  Tom Tromey  <[email protected]>
2201
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.
2208
2209 2021-03-08  Tom Tromey  <[email protected]>
2210
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.
2216
2217 2021-03-08  Tom Tromey  <[email protected]>
2218
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
2223         typedefs.
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.
2227
2228 2021-03-08  Tom Tromey  <[email protected]>
2229
2230         * ax-gdb.c (comma_operation::do_generate_ax): New method.
2231
2232 2021-03-08  Tom Tromey  <[email protected]>
2233
2234         * expop.h (class repeat_operation): New.
2235         * eval.c (eval_op_repeat): No longer static.  Remove "op"
2236         parameter.
2237         (evaluate_subexp_standard): Update.
2238         * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2239
2240 2021-03-08  Tom Tromey  <[email protected]>
2241
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.
2247
2248 2021-03-08  Tom Tromey  <[email protected]>
2249
2250         * expop.h (class subscript_operation): New.
2251         * eval.c (eval_op_subscript): No longer static.
2252
2253 2021-03-08  Tom Tromey  <[email protected]>
2254
2255         * expop.h (class binop_operation, class usual_ax_binop_operation):
2256         New.
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.
2262
2263 2021-03-08  Tom Tromey  <[email protected]>
2264
2265         * expop.h (class sub_operation): New.
2266         * eval.c (eval_op_sub): No longer static.  Remove "op" parameter.
2267         (evaluate_subexp_standard): Update.
2268
2269 2021-03-08  Tom Tromey  <[email protected]>
2270
2271         * expop.h (class add_operation): New.
2272         * eval.c (eval_op_add): No longer static.  Remove "op" parameter.
2273         (evaluate_subexp_standard): Update.
2274
2275 2021-03-08  Tom Tromey  <[email protected]>
2276
2277         * expop.h (class concat_operation): New.
2278         * eval.c (eval_op_concat): No longer static.  Remove "op"
2279         parameter.
2280         (evaluate_subexp_standard): Update.
2281
2282 2021-03-08  Tom Tromey  <[email protected]>
2283
2284         * expop.h (class structop_member_operation)
2285         (class structop_mptr_operation): New.
2286         * eval.c (eval_op_member): No longer static.
2287
2288 2021-03-08  Tom Tromey  <[email protected]>
2289
2290         * expop.h (class structop_ptr_operation): New.
2291         * eval.c (eval_op_structop_ptr): No longer static.  Remove "op"
2292         parameter.
2293
2294 2021-03-08  Tom Tromey  <[email protected]>
2295
2296         * expop.h (class structop_base_operation)
2297         (class structop_operation): New.
2298         * eval.c (eval_op_structop_struct): No longer static.
2299
2300 2021-03-08  Tom Tromey  <[email protected]>
2301
2302         * expop.h (class complex_operation): New.
2303
2304 2021-03-08  Tom Tromey  <[email protected]>
2305
2306         * eval.c (eval_op_objc_selector): No longer static.
2307         * c-exp.h (class objc_selector_operation): New.
2308
2309 2021-03-08  Tom Tromey  <[email protected]>
2310
2311         * eval.c: Include c-exp.h.
2312         * c-exp.h (class objc_nsstring_operation): New.
2313
2314 2021-03-08  Tom Tromey  <[email protected]>
2315
2316         * c-lang.c (c_string_operation::evaluate): New method.
2317         * c-exp.h: New file.
2318
2319 2021-03-08  Tom Tromey  <[email protected]>
2320
2321         * expop.h (class ternop_cond_operation): New.
2322         * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2323
2324 2021-03-08  Tom Tromey  <[email protected]>
2325
2326         * expop.h (class ternop_slice_operation): New.
2327         * eval.c (eval_op_ternop): No longer static.
2328
2329 2021-03-08  Tom Tromey  <[email protected]>
2330
2331         * expop.h (class string_operation): New.
2332         * eval.c (eval_op_string): No longer static.
2333
2334 2021-03-08  Tom Tromey  <[email protected]>
2335
2336         * expop.h (class internalvar_operation): New.
2337         * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2338
2339 2021-03-08  Tom Tromey  <[email protected]>
2340
2341         * expop.h (class bool_operation): New.
2342
2343 2021-03-08  Tom Tromey  <[email protected]>
2344
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.
2348
2349 2021-03-08  Tom Tromey  <[email protected]>
2350
2351         * expop.h (class last_operation): New.
2352
2353 2021-03-08  Tom Tromey  <[email protected]>
2354
2355         * expop.h (class func_static_var_operation): New.
2356         * eval.c (eval_op_func_static_var): No longer static.
2357
2358 2021-03-08  Tom Tromey  <[email protected]>
2359
2360         * expop.h (class var_entry_value_operation): New.
2361         * eval.c (eval_op_var_entry_value): No longer static.
2362
2363 2021-03-08  Tom Tromey  <[email protected]>
2364
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
2372         method.
2373
2374 2021-03-08  Tom Tromey  <[email protected]>
2375
2376         * expop.h (class long_const_operation): New.
2377         * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2378
2379 2021-03-08  Tom Tromey  <[email protected]>
2380
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.
2385
2386 2021-03-08  Tom Tromey  <[email protected]>
2387
2388         * expprint.c (float_const_operation::dump): New method.
2389         * expop.h (float_data): New typedef.
2390         (class float_const_operation): New.
2391
2392 2021-03-08  Tom Tromey  <[email protected]>
2393
2394         * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2395         * ax-gdb.c (gen_expr_binop): New function.
2396         (gen_expr_structop): Likewise.
2397
2398 2021-03-08  Tom Tromey  <[email protected]>
2399
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):
2403         Update.
2404
2405 2021-03-08  Tom Tromey  <[email protected]>
2406
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):
2413         New methods.
2414         * ax-gdb.c (operation::generate_ax): New method.
2415
2416 2021-03-08  Tom Tromey  <[email protected]>
2417
2418         * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2419         (gen_expr_binop_rest): New overload.
2420
2421 2021-03-08  Tom Tromey  <[email protected]>
2422
2423         * eval.c (eval_multi_subscript): New function.
2424         (evaluate_subexp_standard): Use it.
2425
2426 2021-03-08  Tom Tromey  <[email protected]>
2427
2428         * ada-lang.c (ada_binop_exp): New function.
2429         (ada_evaluate_subexp): Use it.
2430
2431 2021-03-08  Tom Tromey  <[email protected]>
2432
2433         * ada-lang.c (ada_val_atr): Rename from value_val_atr.  Change
2434         parameters.
2435         (ada_evaluate_subexp): Use it.
2436
2437 2021-03-08  Tom Tromey  <[email protected]>
2438
2439         * ada-lang.c (ada_binop_minmax): New function.
2440         (ada_evaluate_subexp): Use it.
2441
2442 2021-03-08  Tom Tromey  <[email protected]>
2443
2444         * ada-lang.c (ada_unop_atr): New function.
2445         (ada_evaluate_subexp): Use it.
2446
2447 2021-03-08  Tom Tromey  <[email protected]>
2448
2449         * ada-lang.c (ada_binop_in_bounds): New function.
2450         (ada_evaluate_subexp): Use it.
2451
2452 2021-03-08  Tom Tromey  <[email protected]>
2453
2454         * ada-lang.c (ada_ternop_slice): New function.
2455         (ada_evaluate_subexp): Use it.
2456
2457 2021-03-08  Tom Tromey  <[email protected]>
2458
2459         * ada-lang.c (ada_equal_binop): New function.
2460         (ada_evaluate_subexp): Use it.
2461
2462 2021-03-08  Tom Tromey  <[email protected]>
2463
2464         * ada-lang.c (ada_mult_binop): New function.
2465         (ada_evaluate_subexp): Use it.
2466
2467 2021-03-08  Tom Tromey  <[email protected]>
2468
2469         * ada-lang.c (ada_abs): New function.
2470         (ada_evaluate_subexp): Use it.
2471
2472 2021-03-08  Tom Tromey  <[email protected]>
2473
2474         * ada-lang.c (ada_atr_size): New function.
2475         (ada_evaluate_subexp): Use it.
2476
2477 2021-03-08  Tom Tromey  <[email protected]>
2478
2479         * ada-lang.c (ada_atr_tag): New function.
2480         (ada_evaluate_subexp): Use it.
2481
2482 2021-03-08  Tom Tromey  <[email protected]>
2483
2484         * ada-lang.c (ada_unop_in_range): New function.
2485         (ada_evaluate_subexp): Use it.
2486
2487 2021-03-08  Tom Tromey  <[email protected]>
2488
2489         * ada-lang.c (ada_unop_neg): New function.
2490         (ada_evaluate_subexp): Use it.
2491
2492 2021-03-08  Tom Tromey  <[email protected]>
2493
2494         * ada-lang.c (eval_ternop_in_range): New function.
2495         (ada_evaluate_subexp): Use it.
2496
2497 2021-03-08  Tom Tromey  <[email protected]>
2498
2499         * opencl-lang.c (eval_opencl_assign): New function.
2500         (evaluate_subexp_opencl): Use it.
2501
2502 2021-03-08  Tom Tromey  <[email protected]>
2503
2504         * eval.c (eval_op_objc_msgcall): New function.
2505         (evaluate_subexp_standard): Use it.
2506
2507 2021-03-08  Tom Tromey  <[email protected]>
2508
2509         * eval.c (eval_binop_assign_modify): New function.
2510         (evaluate_subexp_standard): Use it.
2511
2512 2021-03-08  Tom Tromey  <[email protected]>
2513
2514         * m2-lang.c (eval_op_m2_subscript): New function.
2515         (evaluate_subexp_modula2): Use it.
2516
2517 2021-03-08  Tom Tromey  <[email protected]>
2518
2519         * m2-lang.c (eval_op_m2_high): New function.
2520         (evaluate_subexp_modula2): Use it.
2521
2522 2021-03-08  Tom Tromey  <[email protected]>
2523
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.
2528
2529 2021-03-08  Tom Tromey  <[email protected]>
2530
2531         * rust-lang.c (eval_op_rust_structop): New function.
2532         (rust_evaluate_subexp): Use it.
2533
2534 2021-03-08  Tom Tromey  <[email protected]>
2535
2536         * rust-lang.c (eval_op_rust_struct_anon): New function.
2537         (rust_evaluate_subexp): Use it.
2538
2539 2021-03-08  Tom Tromey  <[email protected]>
2540
2541         * rust-lang.c (eval_op_rust_array): New function.
2542         (rust_evaluate_subexp): Use it.
2543
2544 2021-03-08  Tom Tromey  <[email protected]>
2545
2546         * rust-lang.c (eval_op_rust_complement): New function.
2547         (rust_evaluate_subexp): Use it.
2548
2549 2021-03-08  Tom Tromey  <[email protected]>
2550
2551         * rust-lang.c (eval_op_rust_ind): New function.
2552         (rust_evaluate_subexp): Use it.
2553
2554 2021-03-08  Tom Tromey  <[email protected]>
2555
2556         * rust-lang.c (rust_subscript): Change parameters.
2557         (rust_evaluate_subexp): Update.
2558
2559 2021-03-08  Tom Tromey  <[email protected]>
2560
2561         * rust-lang.c (rust_range): Change parameters.
2562         (rust_evaluate_subexp): Update.
2563
2564 2021-03-08  Tom Tromey  <[email protected]>
2565
2566         * f-lang.c (eval_op_f_allocated): New function.
2567         (evaluate_subexp_f): Use it.
2568
2569 2021-03-08  Tom Tromey  <[email protected]>
2570
2571         * f-lang.c (fortran_require_array): New function.
2572         (evaluate_subexp_f): Use it.
2573
2574 2021-03-08  Tom Tromey  <[email protected]>
2575
2576         * f-lang.c (eval_op_f_kind): New function.
2577         (evaluate_subexp_f): Use it.
2578
2579 2021-03-08  Tom Tromey  <[email protected]>
2580
2581         * f-lang.c (eval_op_f_cmplx): New function.
2582         (evaluate_subexp_f): Use it.
2583
2584 2021-03-08  Tom Tromey  <[email protected]>
2585
2586         * f-lang.c (eval_op_f_modulo): New function.
2587         (evaluate_subexp_f): Use it.
2588
2589 2021-03-08  Tom Tromey  <[email protected]>
2590
2591         * f-lang.c (eval_op_f_floor): New function.
2592         (evaluate_subexp_f): Use it.
2593
2594 2021-03-08  Tom Tromey  <[email protected]>
2595
2596         * f-lang.c (eval_op_f_ceil): New function.
2597         (evaluate_subexp_f): Use it.
2598
2599 2021-03-08  Tom Tromey  <[email protected]>
2600
2601         * f-lang.c (eval_op_f_mod): New function.
2602         (evaluate_subexp_f): Use it.
2603
2604 2021-03-08  Tom Tromey  <[email protected]>
2605
2606         * f-lang.c (eval_op_f_abs): New function.
2607         (evaluate_subexp_f): Use it.
2608
2609 2021-03-08  Tom Tromey  <[email protected]>
2610
2611         * eval.c (eval_op_type): New function.
2612         (evaluate_subexp_standard): Use it.
2613
2614 2021-03-08  Tom Tromey  <[email protected]>
2615
2616         * eval.c (eval_op_postdec): New function.
2617         (evaluate_subexp_standard): Use it.
2618
2619 2021-03-08  Tom Tromey  <[email protected]>
2620
2621         * eval.c (eval_op_postinc): New function.
2622         (evaluate_subexp_standard): Use it.
2623
2624 2021-03-08  Tom Tromey  <[email protected]>
2625
2626         * eval.c (eval_op_predec): New file.
2627         (evaluate_subexp_standard): Use it.
2628
2629 2021-03-08  Tom Tromey  <[email protected]>
2630
2631         * eval.c (eval_op_preinc): New function.
2632         (evaluate_subexp_standard): Use it.
2633
2634 2021-03-08  Tom Tromey  <[email protected]>
2635
2636         * eval.c (eval_op_memval): New function.
2637         (evaluate_subexp_standard): Use it.
2638
2639 2021-03-08  Tom Tromey  <[email protected]>
2640
2641         * eval.c (eval_op_alignof): New function.
2642         (evaluate_subexp_standard): Use it.
2643
2644 2021-03-08  Tom Tromey  <[email protected]>
2645
2646         * eval.c (eval_op_ind): New function.
2647         (evaluate_subexp_standard): Use it.
2648
2649 2021-03-08  Tom Tromey  <[email protected]>
2650
2651         * eval.c (eval_op_lognot): New function.
2652         (evaluate_subexp_standard): Use it.
2653
2654 2021-03-08  Tom Tromey  <[email protected]>
2655
2656         * eval.c (eval_op_complement): New function.
2657         (evaluate_subexp_standard): Use it.
2658
2659 2021-03-08  Tom Tromey  <[email protected]>
2660
2661         * eval.c (eval_op_neg): New function.
2662         (evaluate_subexp_standard): Use it.
2663
2664 2021-03-08  Tom Tromey  <[email protected]>
2665
2666         * eval.c (eval_op_plus): New function.
2667         (evaluate_subexp_standard): Use it.
2668
2669 2021-03-08  Tom Tromey  <[email protected]>
2670
2671         * eval.c (eval_op_repeat): New function.
2672         (evaluate_subexp_standard): Use it.
2673
2674 2021-03-08  Tom Tromey  <[email protected]>
2675
2676         * eval.c (eval_op_leq): New function.
2677         (evaluate_subexp_standard): Use it.
2678
2679 2021-03-08  Tom Tromey  <[email protected]>
2680
2681         * eval.c (eval_op_geq): New function.
2682         (evaluate_subexp_standard): Use it.
2683
2684 2021-03-08  Tom Tromey  <[email protected]>
2685
2686         * eval.c (eval_op_gtr): New function.
2687         (evaluate_subexp_standard): Use it.
2688
2689 2021-03-08  Tom Tromey  <[email protected]>
2690
2691         * eval.c (eval_op_less): New function.
2692         (evaluate_subexp_standard): Use it.
2693
2694 2021-03-08  Tom Tromey  <[email protected]>
2695
2696         * eval.c (eval_op_notequal): New function.
2697         (evaluate_subexp_standard): Use it.
2698
2699 2021-03-08  Tom Tromey  <[email protected]>
2700
2701         * eval.c (eval_op_equal): New function.
2702         (evaluate_subexp_standard): Use it.
2703
2704 2021-03-08  Tom Tromey  <[email protected]>
2705
2706         * eval.c (eval_op_subscript): New function.
2707         (evaluate_subexp_standard): Use it.
2708
2709 2021-03-08  Tom Tromey  <[email protected]>
2710
2711         * eval.c (eval_op_binary): New function.
2712         (evaluate_subexp_standard): Use it.
2713
2714 2021-03-08  Tom Tromey  <[email protected]>
2715
2716         * eval.c (eval_op_sub): New function.
2717         (evaluate_subexp_standard): Use it.
2718
2719 2021-03-08  Tom Tromey  <[email protected]>
2720
2721         * eval.c (eval_op_add): New function.
2722         (evaluate_subexp_standard): Use it.
2723
2724 2021-03-08  Tom Tromey  <[email protected]>
2725
2726         * eval.c (eval_op_member): New function.
2727         (evaluate_subexp_standard): Use it.
2728
2729 2021-03-08  Tom Tromey  <[email protected]>
2730
2731         * eval.c (eval_op_structop_ptr): New function.
2732         (evaluate_subexp_standard): Use it.
2733
2734 2021-03-08  Tom Tromey  <[email protected]>
2735
2736         * eval.c (eval_op_structop_struct): New function.
2737         (evaluate_subexp_standard): Use it.
2738
2739 2021-03-08  Tom Tromey  <[email protected]>
2740
2741         * eval.c (eval_op_ternop): New function.
2742         (evaluate_subexp_standard): Use it.
2743
2744 2021-03-08  Tom Tromey  <[email protected]>
2745
2746         * eval.c (eval_op_concat): New function.
2747         (evaluate_subexp_standard): Use it.
2748
2749 2021-03-08  Tom Tromey  <[email protected]>
2750
2751         * eval.c (eval_op_objc_selector): New function.
2752         (evaluate_subexp_standard): Use it.
2753
2754 2021-03-08  Tom Tromey  <[email protected]>
2755
2756         * eval.c (eval_op_string): New function.
2757         (evaluate_subexp_standard): Use it.
2758
2759 2021-03-08  Tom Tromey  <[email protected]>
2760
2761         * eval.c (eval_op_register): New function.
2762         (evaluate_subexp_standard): Use it.
2763
2764 2021-03-08  Tom Tromey  <[email protected]>
2765
2766         * eval.c (eval_op_func_static_var): New function.
2767         (evaluate_subexp_standard): Use it.
2768
2769 2021-03-08  Tom Tromey  <[email protected]>
2770
2771         * eval.c (eval_op_var_msym_value): New function.
2772         (evaluate_subexp_standard): Use it.
2773
2774 2021-03-08  Tom Tromey  <[email protected]>
2775
2776         * eval.c (eval_op_var_entry_value): New function.
2777         (evaluate_subexp_standard): Use it.
2778
2779 2021-03-08  Tom Tromey  <[email protected]>
2780
2781         * eval.c (eval_op_scope): New function.
2782         (evaluate_subexp_standard): Use it.
2783
2784 2021-03-06  Chernov Sergey  <[email protected]>
2785
2786         PR gdb/27528:
2787         * ada-lang.c (ada_fold_name): Use gdb::to_string.
2788
2789 2021-03-06  Tom Tromey  <[email protected]>
2790
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
2797         read.h.
2798         * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2799         (dwarf2_get_dwz_file): Move from read.c.
2800
2801 2021-03-06  Tom Tromey  <[email protected]>
2802
2803         * debuginfod-support.h: Include scoped_fd.h.
2804
2805 2021-03-06  Tom Tromey  <[email protected]>
2806
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.
2812
2813 2021-03-06  Tom Tromey  <[email protected]>
2814
2815         * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2816         method.
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):
2823         Update.
2824
2825 2021-03-06  Tom Tromey  <[email protected]>
2826
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.
2832
2833 2021-03-06  Tom Tromey  <[email protected]>
2834
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.
2842
2843 2021-03-06  Weimin Pan  <[email protected]>
2844
2845         * ctfread.c (ctf_psymtab_add_enums): New function.
2846         (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2847
2848 2021-03-06  Weimin Pan  <[email protected]>
2849
2850         * ctfread.c (read_func_kind_type): Set up function arguments.
2851
2852 2021-03-05  Craig Blackmore  <[email protected]>
2853             Andrew Burgess  <[email protected]>
2854
2855         * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2856         includes.
2857         (riscv_csrset): New static global.
2858         (riscv_update_csrmap): New function.
2859         (riscv_iterate_over_regset_sections): Process CSRs.
2860
2861 2021-03-05  Andrew Burgess  <[email protected]>
2862
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.
2872
2873 2021-03-05  Andrew Burgess  <[email protected]>
2874             Craig Blackmore  <[email protected]>
2875
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
2880         support.
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.
2885
2886 2021-03-05  Craig Blackmore  <[email protected]>
2887             Andrew Burgess  <[email protected]>
2888
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
2893         note.
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
2898         note.
2899
2900 2021-03-05  Andrew Burgess  <[email protected]>
2901
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
2906         support.
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
2915         FreeBSD code.
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.
2930
2931 2021-03-04  Simon Marchi  <[email protected]>
2932
2933         PR gdb/27147
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):
2945         Add assertion.
2946         * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2947         sparc64obsd_supply_uthread): Add assertion.
2948
2949 2021-03-04  Tom Tromey  <[email protected]>
2950
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.
2954
2955 2021-03-03  Tom Tromey  <[email protected]>
2956
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.
2966
2967 2021-03-02  Tom Tromey  <[email protected]>
2968
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.
2988
2989 2021-03-02  Tom Tromey  <[email protected]>
2990
2991         * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2992         (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2993         std::string.
2994         (GROW_VECT): Remove.
2995         (grow_vect): Remove.
2996
2997 2021-03-02  Tom Tromey  <[email protected]>
2998
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
3014         vector.
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):
3019         Update.
3020
3021 2021-03-02  Tom Tromey  <[email protected]>
3022
3023         * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3024
3025 2021-03-02  Tom Tromey  <[email protected]>
3026
3027         * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3028         auto_obstack.
3029         <root>: Initialize.
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.
3035
3036 2021-03-02  Tom Tromey  <[email protected]>
3037
3038         * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
3039         is null.
3040
3041 2021-02-27  Lancelot Six  <[email protected]>
3042
3043         PR gdb/27393
3044         * source.c (add_path): Skip empty dirnames.
3045
3046 2021-02-25  Kevin Buettner  <[email protected]>
3047
3048         * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
3049         include order for <sys/ptrace.h> and <asm/ptrace.h>.
3050
3051 2021-02-25  Simon Marchi  <[email protected]>
3052
3053         PR gdb/26861
3054         * target.c (target_mourn_inferior): Only compare pids in
3055         target_mourn_inferior.
3056
3057 2021-02-25  Jan Matyas  <[email protected]>
3058
3059         PR gdb/26819
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"
3063         state.
3064         * remote.c (remote_target::add_current_inferior_and_thread):
3065         Add return value - return the main thread.
3066
3067 2021-02-25  Jan Vrany  <[email protected]>
3068
3069         * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
3070         (mi_tsv_created): Likewise.
3071         (mi_tsv_deleted): Likewise.
3072
3073 2021-02-25  Tom de Vries  <[email protected]>
3074
3075         PR symtab/27354
3076         * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
3077         section_kind for &dwo_file->sections.info.
3078
3079 2021-02-25  Andrew Burgess  <[email protected]>
3080
3081         PR fortran/26155
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.
3086
3087 2021-02-25  Andrew Burgess  <[email protected]>
3088
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.
3099
3100 2021-02-25  Andrew Burgess  <[email protected]>
3101
3102         * f-exp.y (fortran_operators): Add ".xor.".
3103
3104 2021-02-24  Tom de Vries  <[email protected]>
3105
3106         PR symtab/27336
3107         * dwarf2/attribute.c (attribute::form_is_signed): New function
3108         factored out of ...
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.
3114
3115 2021-02-24  Kevin Buettner  <[email protected]>
3116
3117         * nat/aarch64-linux-hw-point.c: Add comment regarding include
3118         order for <sys/ptrace.h> and <asm/ptrace.h>.
3119
3120 2021-02-24  Kevin Buettner  <[email protected]>
3121
3122         * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3123         <sys/ptrace.h>.
3124
3125 2021-02-24  Andrew Burgess  <[email protected]>
3126
3127         * exec.c (set_section_command): Move variable declarations into
3128         the function body, and use std::string instead of a fixed size
3129         buffer.
3130
3131 2021-02-24  Andrew Burgess  <[email protected]>
3132
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.
3141
3142 2021-02-24  Andrew Burgess  <[email protected]>
3143
3144         * exec.c (exec_target::close): Call new clear_target_sections
3145         function.
3146         (program_space::add_target_sections): Update name of member
3147         variable.
3148         (program_space::add_target_sections): Update name of member
3149         variable.
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
3157         function.
3158         * progspace.h (program_space::clear_target_sections): New member
3159         function.
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.
3165
3166 2021-02-24  Andrew Burgess  <[email protected]>
3167
3168         * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3169         return type const.
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
3176         const.
3177         * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3178         Likewise.
3179         * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3180         Likewise.
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):
3185         Rename to...
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
3192         return type const.
3193         (target_section_by_addr): Likewise.
3194         (target_get_section_table): Likewise.
3195
3196 2021-02-24  Andrew Burgess  <[email protected]>
3197
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.
3201
3202 2021-02-24  Andrew Burgess  <[email protected]>
3203
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
3209         info.bfd_arch_info.
3210         (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3211
3212 2021-02-24  Andrew Burgess  <[email protected]>
3213
3214         * eval.c (evaluate_subexp_standard): Call value_ind for points to
3215         dynamic types in UNOP_IND.
3216
3217 2021-02-23  Simon Marchi  <[email protected]>
3218
3219         PR gdb/26828
3220         * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3221         Instantiate queue.
3222         (~dwarf2_queue_guard): Clear queue.
3223         (queue_comp_unit): Assert that queue is
3224         instantiated.
3225         (process_queue): Adjust.
3226         * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3227
3228 2021-02-23  Simon Marchi  <[email protected]>
3229
3230         PR gdb/26828
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.
3235
3236 2021-02-23  Simon Marchi  <[email protected]>
3237
3238         * linux-nat.c (linux_nat_filter_event): Return void.
3239
3240 2021-02-22  Tom Tromey  <[email protected]>
3241
3242         * solib-svr4.c (enable_break): Update.
3243         * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3244         type.
3245         (target_bfd_reopen): Change parameter type.
3246         * bfd-target.h (target_bfd_reopen): Change parameter type.
3247
3248 2021-02-22  Simon Marchi  <[email protected]>
3249
3250         * thread.c (add_thread_silent): Add assert.
3251         (find_thread_ptid): Add assert.
3252
3253 2021-02-22  Simon Marchi  <[email protected]>
3254
3255         PR gdb/27435
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.
3262
3263 2021-02-19  Kevin Buettner  <[email protected]>
3264
3265         * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3266         (which in turn includes <gnulib/config.h>) before include
3267         of <signal.h>.
3268
3269 2021-02-19  Nelson Chu  <[email protected]>
3270
3271         PR 27158
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.
3276         (decode): Likewise.
3277
3278 2021-02-18  Tom Tromey  <[email protected]>
3279
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.
3284
3285 2021-02-17  Kevin Buettner  <[email protected]>
3286
3287         * ada-lang.c (ada_fold_name): Check for non-empty string prior
3288         to accessing it.
3289         (ada_lookup_name_info): Likewise.
3290
3291 2021-02-13  Mike Frysinger  <[email protected]>
3292
3293         * aclocal.m4: Regenerate.
3294
3295 2021-02-12  Tom de Vries  <[email protected]>
3296
3297         PR threads/26228
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):
3301         New function.
3302         * linux-nat.h (lin_thread_get_thread_signals): Remove.
3303         (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3304         Declare.
3305         * linux-thread-db.c (check_thread_signals): Use
3306         lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3307
3308 2021-02-12  Andrew Burgess  <[email protected]>
3309
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.
3317
3318 2021-02-11  Tom de Vries  <[email protected]>
3319
3320         PR symtab/27353
3321         * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3322         Return true for DW_FORM_strx.
3323
3324 2021-02-11  Tom Tromey  <[email protected]>
3325
3326         PR gdb/27383:
3327         * parse.c (write_exp_symbol_reference): Write sym.block.
3328
3329 2021-02-11  Andrew Burgess  <[email protected]>
3330
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.
3344
3345 2021-02-11  Andrew Burgess  <[email protected]>
3346
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.
3352
3353 2021-02-11  Andrew Burgess  <[email protected]>
3354
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
3360         member function.
3361         * printcmd.c (info_address_command): Make use of
3362         bound_minimal_symbol::obj_section.
3363
3364 2021-02-11  Alan Modra  <[email protected]>
3365
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*
3375         handling.
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.
3383
3384 2021-02-10  Andrew Burgess  <[email protected]>
3385
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.
3399
3400 2021-02-10  Andrew Burgess  <[email protected]>
3401
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.
3433
3434 2021-02-10  Andrew Burgess  <[email protected]>
3435
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
3450         function.
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
3457         function.
3458         (SYMBOL_OBJ_SECTION): Delete.
3459         (MSYMBOL_OBJ_SECTION): Delete.
3460
3461 2021-02-09  Tom Tromey  <[email protected]>
3462
3463         * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3464
3465 2021-02-09  Tom de Vries  <[email protected]>
3466
3467         PR symtab/27341
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
3470         not being modified.
3471
3472 2021-02-09  Andrew Burgess  <[email protected]>
3473
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.
3497
3498 2021-02-09  Tom Tromey  <[email protected]>
3499
3500         * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3501         not_lval value.
3502         * value.c (value_contents_copy_raw): Now static.
3503         * value.h (value_contents_copy_raw): Don't declare.
3504
3505 2021-02-09  Tom Tromey  <[email protected]>
3506
3507         * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3508         fields.
3509
3510 2021-02-08  Shahab Vahedi  <[email protected]>
3511
3512         PR tdep/27369
3513         * arc-linux-tdep.c (handle_atomic_sequence): New.
3514         (arc_linux_software_single_step): Call handle_atomic_sequence().
3515
3516 2021-02-08  Andrew Burgess  <[email protected]>
3517
3518         * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3519         function.
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
3525         tui_active too.
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
3528         the function.
3529
3530 2021-02-08  Andrew Burgess  <[email protected]>
3531
3532         * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3533         for the title is not nullptr.
3534
3535 2021-02-08  Andrew Burgess  <[email protected]>
3536
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.
3545
3546 2021-02-08  Andrew Burgess  <[email protected]>
3547
3548         * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3549         of the window objects.
3550
3551 2021-02-08  Andrew Burgess  <[email protected]>
3552
3553         * python/python.c (gdbpy_print_stack): Reformat an error message.
3554
3555 2021-02-08  Andrew Burgess  <[email protected]>
3556
3557         * tui/tui-interp.c (tui_command_line_handler): New function.
3558         (tui_interp::resume): Register tui_command_line_handler as the
3559         input_handler.
3560         * tui/tui-io.c (tui_inject_newline_into_command_window): New
3561         function.
3562         (tui_getc_1): Delete handling of '\n' and '\r'.
3563         * tui-io.h (tui_inject_newline_into_command_window): Declare.
3564
3565 2021-02-07  Hannes Domani  <[email protected]>
3566
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.
3571
3572 2021-02-07  Hannes Domani  <[email protected]>
3573
3574         * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3575         n_spaces with a negative value.
3576
3577 2021-02-07  Hannes Domani  <[email protected]>
3578
3579         * tui/tui-regs.c (tui_data_window::display_registers_from):
3580         Add refresh_window call.
3581
3582 2021-02-07  Hannes Domani  <[email protected]>
3583
3584         * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3585
3586 2021-02-05  Simon Marchi  <[email protected]>
3587
3588         * symmisc.c (std_in, std_out, std_err): Remove.
3589         (_initialize_symmisc): Don't set std_in, std_out and std_err.
3590
3591 2021-02-05  Tom de Vries  <[email protected]>
3592
3593         PR breakpoints/27330
3594         * breakpoint.c (create_exception_master_breakpoint): Handle case that
3595         glibc object file has debug info.
3596
3597 2021-02-05  Tom de Vries  <[email protected]>
3598
3599         PR symtab/27333
3600         * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3601
3602 2021-02-05  Tom de Vries  <[email protected]>
3603
3604         PR breakpoints/27313
3605         * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3606         syscall numbers.
3607
3608 2021-02-05  Tom Tromey  <[email protected]>
3609
3610         * compile/compile-c-support.c (get_compile_context)
3611         (c_get_compile_context, cplus_get_compile_context): Change return
3612         type.
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):
3619         Change return type.
3620         * compile/compile.c (compile_to_object): Update.
3621
3622 2021-02-05  Tom Tromey  <[email protected]>
3623
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.
3631
3632 2021-02-05  Tom de Vries  <[email protected]>
3633
3634         PR exp/27265
3635         * valarith.c (complex_binop): Throw an error if complex type can't
3636         be created.
3637
3638 2021-02-05  Tom de Vries  <[email protected]>
3639
3640         PR symtab/27307
3641         * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3642         return.
3643
3644 2021-02-05  Tom de Vries  <[email protected]>
3645
3646         * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3647
3648 2021-02-04  Mike Frysinger  <[email protected]>
3649
3650         * configure.tgt (riscv*-*-*): Set gdb_sim.
3651
3652 2021-02-04  Simon Marchi  <[email protected]>
3653
3654         * target.c (target_is_non_stop_p): Return bool.
3655         * target.h (target_is_non_stop_p): Return bool.
3656
3657 2021-02-04  Simon Marchi  <[email protected]>
3658
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
3662         beginning.
3663
3664 2021-02-04  Simon Marchi  <[email protected]>
3665
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
3669         beginning.
3670
3671 2021-02-04  Simon Marchi  <[email protected]>
3672
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
3676         event handler.
3677
3678 2021-02-04  Simon Marchi  <[email protected]>
3679
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
3684         flag.
3685         * record-btrace.c (record_btrace_handle_async_inferior_event):
3686         Likewise.
3687         * record-full.c (record_full_async_inferior_event_handler):
3688         Likewise.
3689         * remote-notif.c (remote_async_get_pending_events_handler):
3690         Likewise.
3691         * remote.c (remote_async_inferior_event_handler): Likewise.
3692
3693 2021-02-03  Simon Marchi  <[email protected]>
3694
3695         * infrun.c (handle_inferior_event): Move stop_soon variable to
3696         inner scope.
3697
3698 2021-02-03  Pedro Alves  <[email protected]>
3699
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
3704         trap_expected.
3705         (restart_after_all_stop_detach): New function.
3706         * infrun.h (restart_after_all_stop_detach): Declare.
3707
3708 2021-02-03  Pedro Alves  <[email protected]>
3709
3710         * infrun.c (struct step_over_info): Initialize fields.
3711         (prepare_for_detach): Handle ongoing in-line step over.
3712
3713 2021-02-03  Pedro Alves  <[email protected]>
3714
3715         * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3716         here...
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.
3720
3721 2021-02-03  Pedro Alves  <[email protected]>
3722
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.
3730
3731 2021-02-03  Pedro Alves  <[email protected]>
3732
3733         * infrun.c (prepare_for_detach): Don't release scoped_restore
3734         before returning.
3735
3736 2021-02-03  Pedro Alves  <[email protected]>
3737
3738         * infrun.c (handle_one): New function, factored out from ...
3739         (stop_all_threads): ... here.
3740
3741 2021-02-03  Pedro Alves  <[email protected]>
3742
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.
3747
3748 2021-02-03  Pedro Alves  <[email protected]>
3749
3750         * remote.c (extended_remote_target::attach): Set target async in
3751         the target-non-stop path too.
3752
3753 2021-02-03  Pedro Alves  <[email protected]>
3754
3755         PR gdb/27055
3756         * infrun.c (handle_signal_stop): Move main context_switch call
3757         earlier, before STOP_QUIETLY_NO_SIGSTOP.
3758
3759 2021-02-02  Lancelot SIX  <[email protected]>
3760
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
3765         inferior.
3766
3767 2021-02-02  Simon Marchi  <[email protected]>
3768
3769         * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3770         a sect_offset.
3771         (read_attribute_reprocess): Adjust.
3772
3773 2021-02-02  Simon Marchi  <[email protected]>
3774
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.
3787
3788 2021-02-02  Simon Marchi  <[email protected]>
3789
3790         PR gdb/26813
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.
3796
3797 2021-02-02  Simon Marchi  <[email protected]>
3798
3799         PR gdb/26813
3800         * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3801         requires_reprocessing flag.
3802         * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3803         DW_FORM_loclistx.
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
3808         DW_FORM_rnglistx.
3809
3810 2021-02-02  Simon Marchi  <[email protected]>
3811
3812         * dwarf2/read.c (read_loclist_index): Remove bound check for
3813         start of offset.
3814         (read_rnglist_index): Likewise.
3815
3816 2021-02-02  Simon Marchi  <[email protected]>
3817
3818         * dwarf2/read.c (read_loclist_index): Add bound check for the end
3819         of the offset.
3820
3821 2021-02-02  Simon Marchi  <[email protected]>
3822
3823         * dwarf2/read.c (read_rnglist_index): Fix bound check.
3824
3825 2021-02-02  Simon Marchi  <[email protected]>
3826
3827         * dwarf2/read.c (read_loclist_index): Change complaints into
3828         errors.
3829
3830 2021-02-02  Tom de Vries  <[email protected]>
3831
3832         PR symtab/24620
3833         * dwarf2/index-write.c (write_one_signatured_type): Skip if
3834         psymtab == nullptr.
3835
3836 2021-02-01  Andrew Burgess  <[email protected]>
3837
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
3855         FreeBSD code.
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.
3864
3865 2021-01-29  Tom de Vries  <[email protected]>
3866
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
3870         changed.
3871
3872 2021-01-28  Andrew Burgess  <[email protected]>
3873
3874         * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3875         assert.  Extend the header comment.
3876
3877 2021-01-28  Andrew Burgess  <[email protected]>
3878
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
3885         global.
3886         (tui_get_begin_asm_address): Likewise.
3887         * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3888         for locator window.
3889         (get_locator_window): Delete.
3890         (initialize_known_windows): Treat locator window just like all the
3891         rest.
3892         * tui/tui-source.c: Add 'tui/tui-location.h' include.
3893         (tui_source_window::set_contents): Fetch state from tui_location
3894         global.
3895         (tui_source_window::showing_source_p): Likewise.
3896         * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3897         (_locator): Delete.
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
3921         for locator window.
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.
3927
3928 2021-01-28  Simon Marchi  <[email protected]>
3929
3930         * gdbtypes.h (get_type_arch): Rename to...
3931         (struct type) <arch>: ... this, update all users.
3932
3933 2021-01-28  Simon Marchi  <[email protected]>
3934
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.
3939
3940 2021-01-28  Andrew Burgess  <[email protected]>
3941
3942         * gdbcmd.h (execute_command_to_string): Update comment.
3943         * top.c (execute_command_to_string): Update header comment.
3944
3945 2021-01-28  Tom de Vries  <[email protected]>
3946
3947         PR breakpoints/27205
3948         * breakpoint.c (create_longjmp_master_breakpoint_probe)
3949         (create_longjmp_master_breakpoint_names): New function, factored out
3950         of ...
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.
3954
3955 2021-01-27  Lancelot SIX  <[email protected]>
3956
3957         PR gdb/27133
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
3960         use.
3961
3962 2021-01-27  Matthew Malcomson  <[email protected]>
3963
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.
3968
3969 2021-01-26  Tom Tromey  <[email protected]>
3970
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.
3983
3984 2020-12-17  Mihails Strasuns  <[email protected]>
3985
3986         * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3987         elfcore_write_file_note.
3988
3989 2021-01-26  Shahab Vahedi  <[email protected]>
3990
3991         * arc-tdep.c (arc_add_reggroups): New function.
3992         (arc_gdbarch_init): Call arc_add_reggroups.
3993
3994 2021-01-26  Anton Kolesov  <[email protected]>
3995
3996         * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3997
3998 2021-01-25  Bernd Edlinger  <[email protected]>
3999             Simon Marchi  <[email protected]>
4000             Tom de Vries  <[email protected]>
4001
4002         * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4003         DW_AT_ranges.
4004
4005 2021-01-25  Tom Tromey  <[email protected]>
4006
4007         * dwarf2/read.c (get_mpz): New function.
4008         (get_dwarf2_rational_constant): Use it.
4009
4010 2021-01-25  Tom Tromey  <[email protected]>
4011
4012         * ada-lang.c (resolve_subexp): Handle array context.
4013
4014 2021-01-23  Tom Tromey  <[email protected]>
4015
4016         PR compile/25575
4017         * compile/compile-loc2c.c (note_register): New function.
4018         (pushf_register_address, pushf_register): Use it.
4019
4020 2021-01-23  Tom Tromey  <[email protected]>
4021
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):
4035         Update.
4036         * compile/compile-c-symbols.c (generate_vla_size)
4037         (generate_c_for_for_one_variable): Change type of
4038         "registers_used".
4039         (generate_c_for_variable_locations): Return std::vector.
4040         * compile/compile-c-support.c (generate_register_struct): Change
4041         type of "registers_used".
4042         (compute): Update.
4043
4044 2021-01-23  Tom Tromey  <[email protected]>
4045
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.
4050
4051 2021-01-23  Simon Marchi  <[email protected]>
4052
4053         * gdbtypes.c (copy_type_recursive): Use get_type_arch.
4054         * gdbtypes.h (struct type) <set_owner>: Add asserts.
4055
4056 2021-01-23  Lancelot SIX  <[email protected]>
4057
4058         * Makefile.in (SELFTESTS_SRCS): Add
4059         unittests/gdb_tilde_expand-selftests.c.
4060         * unittests/gdb_tilde_expand-selftests.c: New file.
4061
4062 2021-01-22  Andrew Burgess  <[email protected]>
4063
4064         PR cli/25956
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
4069         use as appropriate.
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.
4075
4076 2021-01-22  Andrew Burgess  <[email protected]>
4077
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.
4085
4086 2021-01-22  Simon Marchi  <[email protected]>
4087
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.
4092
4093 2021-01-22  Simon Marchi  <[email protected]>
4094
4095         * remote.h (remote_debug): Change to bool.
4096         * remote.c (remote_debug): Change to bool.
4097         (_initialize_remote): Adjust.
4098
4099 2021-01-22  Simon Marchi  <[email protected]>
4100
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.
4106
4107 2021-01-22  Simon Marchi  <[email protected]>
4108
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.
4115
4116 2021-01-22  Simon Marchi  <[email protected]>
4117
4118         * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4119         type::objfile method instead.
4120
4121 2021-01-22  Simon Marchi  <[email protected]>
4122
4123         * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4124         use the type::is_objfile_owned method.
4125
4126 2021-01-22  Simon Marchi  <[email protected]>
4127
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
4136         methods.
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):
4149         Adjust.
4150         * language.c
4151         (language_arch_info::type_and_symbol::alloc_type_symbol):
4152         Adjust.
4153
4154 2021-01-21  Luis Machado  <[email protected]>
4155
4156         * coffread.c (enter_linenos): Passing string to complaint.
4157         * valops.c (value_assign): Make array view.
4158
4159 2021-01-21  Simon Marchi  <[email protected]>
4160
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.
4168
4169 2021-01-21  Simon Marchi  <[email protected]>
4170
4171         * f-valprint.c (f77_array_offset_tbl): Remove.
4172
4173 2021-01-21  Simon Marchi  <[email protected]>
4174
4175         * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4176
4177 2021-01-21  Simon Marchi  <[email protected]>
4178
4179         * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4180         of gdb_select.
4181
4182 2021-01-21  Hannes Domani  <[email protected]>
4183
4184         PR python/19151
4185         * python/py-breakpoint.c (bppy_get_location): Handle
4186         bp_hardware_breakpoint.
4187         (bppy_init): Likewise.
4188         (gdbpy_breakpoint_created): Likewise.
4189
4190 2021-01-21  Simon Marchi  <[email protected]>
4191
4192         * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4193
4194 2021-01-20  Simon Marchi  <[email protected]>
4195
4196         * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4197         (_initialize_gdb_bfd): Adjust.
4198
4199 2021-01-20  Simon Marchi  <[email protected]>
4200
4201         PR gdb/26828
4202         * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4203
4204 2021-01-20  Simon Marchi  <[email protected]>
4205
4206         * dwarf2/read.c (follow_die_offset): Add logging.
4207         (dwarf2_per_objfile::age_comp_units): Add logging.
4208
4209 2021-01-20  Simon Marchi  <[email protected]>
4210
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):
4223         Make static.
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
4235         name.
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
4245         static.
4246         * unittests/command-def-selftests.c (nr_duplicates,
4247         nr_invalid_prefixcmd, lists): Make static.
4248         * unittests/observable-selftests.c (test_notification): Make
4249         static.
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.
4256
4257 2021-01-20  Joel Sherrill  <[email protected]>
4258
4259         PR gdb/27219
4260         * remote.c (struct remote_thread_info) <resume_state>: Rename
4261         to...
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.
4266
4267 2021-01-20  Sergio Durigan Junior  <[email protected]>
4268             Tom Tromey <[email protected]>
4269
4270         * stap-probe.c (stap_parse_single_operand): Handle '!'
4271         operator.
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
4277         sub-expression.
4278         Skip spaces after call to stap_parse_argument_1.
4279
4280 2021-01-19  Lancelot SIX  <[email protected]>
4281
4282         * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4283
4284 2021-01-19  Luis Machado  <[email protected]>
4285
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.
4302
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.
4338
4339 2021-01-19  Luis Machado  <[email protected]>
4340
4341         * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4342         of buffer + length.
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
4349         gdb::array_view.
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.
4380
4381 2021-01-19  Luis Machado  <[email protected]>
4382
4383         * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4384         array_view.
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.
4390
4391 2021-01-18  Mike Frysinger  <[email protected]>
4392
4393         * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4394
4395 2021-01-18  Andrew Burgess  <[email protected]>
4396
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.
4404
4405 2021-01-18  Tom de Vries  <[email protected]>
4406
4407         PR tdep/27172
4408         * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4409         New macro.
4410         (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4411         for SEGV_BNDERR.
4412
4413 2021-01-18  Simon Marchi  <[email protected]>
4414
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.
4422
4423 2021-01-18  Simon Marchi  <[email protected]>
4424
4425         * remote.c (remote_target::start_remote): Move wait_status to
4426         narrower scope.
4427
4428 2021-01-18  Simon Marchi  <[email protected]>
4429
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.
4435
4436 2021-01-18  Simon Marchi  <[email protected]>
4437
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.
4450
4451 2021-01-15  Andrew Burgess  <[email protected]>
4452
4453         * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4454
4455 2021-01-14  Lancelot Six  <[email protected]>
4456
4457         * MAINTAINERS (Write After Approval): Add myself.
4458
4459 2021-01-14  Bernd Edlinger  <[email protected]>
4460
4461         * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4462         because is_trivially_default_constructible was first implemented with
4463         gcc-5.
4464
4465 2021-01-14  Tom de Vries  <[email protected]>
4466
4467         PR breakpoints/27151
4468         * objfiles.h (in_plt_section): Handle .plt.sec.
4469
4470 2021-01-13  Andrew Burgess  <[email protected]>
4471
4472         PR gdb/26819
4473         * remote.c
4474         (remote_target::select_thread_for_ambiguous_stop_reply): New
4475         member function.
4476         (remote_target::process_stop_reply): Call
4477         select_thread_for_ambiguous_stop_reply.
4478
4479 2021-01-13  Simon Marchi  <[email protected]>
4480
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.
4485
4486 2021-01-13  Simon Marchi  <[email protected]>
4487
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>:
4493         New.
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.
4501
4502 2021-01-13  Simon Marchi  <[email protected]>
4503
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.
4509
4510 2021-01-13  Simon Marchi  <[email protected]>
4511
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.
4517
4518 2021-01-13  Simon Marchi  <[email protected]>
4519
4520         * auto-load.c (auto_load_objfile_script_1): Use bool.
4521         (execute_script_contents): Use bool.
4522
4523 2021-01-13  Simon Marchi  <[email protected]>
4524
4525         * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4526         comment here.
4527         * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4528         comment to header.
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
4532         comment here.
4533         * extension.c (ext_lang_auto_load_enabled): Return bool, move
4534         comment to header.
4535         * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4536         move comment here.
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,
4540         move comment here.
4541         * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4542         move comment to header.
4543
4544 2021-01-13  Simon Marchi  <[email protected]>
4545
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.
4550
4551 2021-01-13  Simon Marchi  <[email protected]>
4552
4553         * jit.c (jit_debug_printf): New, use throughout file.
4554
4555 2021-01-12  Simon Marchi  <[email protected]>
4556
4557         * infrun.c (normal_stop): Fix indentation.
4558
4559 2021-01-12  Simon Marchi  <[email protected]>
4560
4561         * top.h (readnow_symbol_files, readnever_symbol_files): Move
4562         declarations to ...
4563         * symfile.h: ... here.
4564         * symfile.c: Update doc.
4565
4566 2021-01-12  Simon Marchi  <[email protected]>
4567
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.
4572
4573 2021-01-12  Simon Marchi  <[email protected]>
4574
4575         * top.c (pre_init_ui_hook): Remove.
4576
4577 2021-01-12  Srinath Parvathaneni  <[email protected]>
4578
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.
4583
4584 2021-01-12  Andrew Burgess  <[email protected]>
4585
4586         * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4587
4588 2021-01-12  Andrew Burgess  <[email protected]>
4589
4590         * f-exp.y (dot_ops): Rename to...
4591         (fortran_operators): ...this.  Add a header comment.  Add symbol
4592         based operators.
4593         (yylex): Update to use fortran_operators not dot_ops.  Remove
4594         special handling for '**', this is now included in
4595         fortran_operators.
4596
4597 2021-01-11  Simon Marchi  <[email protected]>
4598
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.
4602
4603 2021-01-11  Simon Marchi  <[email protected]>
4604
4605         * solib-aix.c (solib_aix_debug_printf): New, use throughout
4606         file.
4607
4608 2021-01-11  Simon Marchi  <[email protected]>
4609
4610         * jit.c (jit_debug): Change type to bool.
4611         (_initialize_jit): Adjust.
4612
4613 2021-01-09  Tom Tromey  <[email protected]>
4614
4615         PR compile/23672
4616         * compile/compile.c (compile_to_object): Avoid crash when
4617         osabi_triplet_regexp returns NULL.
4618
4619 2021-01-09  Tom Tromey  <[email protected]>
4620
4621         * tracepoint.h (class collection_list) <append_exp>: Take a
4622         std::string.
4623         * tracepoint.c (collection_list::append_exp): Take a std::string.
4624         (encode_actions_1): Update.
4625
4626 2021-01-08  Tom Tromey  <[email protected]>
4627
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
4631         parse_expression.
4632         (print_command, call_command): Update.
4633         * expression.h (parse_expression): Add void_context_p parameter.
4634
4635 2021-01-08  Andrew Burgess  <[email protected]>
4636
4637         * value.c (set_value_component_location): Adjust the VALUE_LVAL
4638         for internalvar components that have a dynamic location.
4639
4640 2021-01-08  Tom de Vries  <[email protected]>
4641
4642         PR gdb/26881
4643         * breakpoint.c (create_exception_master_breakpoint_probe)
4644         (create_exception_master_breakpoint_hook): Factor out
4645         of ...
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
4649         failed.
4650
4651 2021-01-08  Andrew Burgess  <[email protected]>
4652
4653         * f-lang.c (fortran_value_subarray): Call value_from_component.
4654
4655 2021-01-07  Mike Frysinger  <[email protected]>
4656
4657         * remote-sim.c: Include memory-map.h.
4658         (gdbsim_target): Define memory_map override.
4659         (gdbsim_target::memory_map): Define.
4660
4661 2021-01-07  Tom Tromey  <[email protected]>
4662
4663         * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4664
4665 2021-01-07  Tom Tromey  <[email protected]>
4666
4667         * ada-lang.c (add_component_interval): Start loop using vector's
4668         updated size.
4669
4670 2021-01-06  Tom Tromey  <[email protected]>
4671
4672         * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4673         Do not cast result.
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.
4678
4679 2021-01-05  Hannes Domani  <[email protected]>
4680
4681         * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4682         Call wnoutrefresh instead of tui_win_info::refresh_window.
4683
4684 2021-01-05  Hannes Domani  <[email protected]>
4685
4686         * tui/tui-source.c (tui_source_window::show_line_number):
4687         Redraw second space after line number.
4688
4689 2021-01-05  Hannes Domani  <[email protected]>
4690
4691         PR tui/26927
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
4695         if necessary.
4696
4697 2021-01-04  Mike Frysinger  <[email protected]>
4698
4699         * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4700         (bfin_frame_align): Use align_down.
4701
4702 2021-01-04  Tom de Vries  <[email protected]>
4703
4704         * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4705         terminators that do not terminate anything.
4706
4707 2021-01-04  Simon Marchi  <[email protected]>
4708
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.
4717
4718 2021-01-04  Simon Marchi  <[email protected]>
4719
4720         * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4721
4722 2021-01-04  Simon Marchi  <[email protected]>
4723
4724         * utils.c (vfprintf_unfiltered): Print timestamp only when
4725         previous debug output ended with a newline.
4726
4727 2021-01-04  Luis Machado  <[email protected]>
4728
4729         Update all users of trad_frame_saved_reg to use the new member
4730         functions.
4731
4732         Remote all struct keywords from declarations of trad_frame_saved_reg
4733         types, except on forward declarations.
4734
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.
4767
4768         * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4769         * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4770
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.
4793
4794 2021-01-02  Simon Marchi  <[email protected]>
4795
4796         * target-float.c: Fix typos.
4797
4798 2021-01-02  Hannes Domani  <[email protected]>
4799
4800         * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4801
4802 2021-01-01  Joel Brobecker  <[email protected]>
4803
4804         * gdbarch.sh: Update copyright year range.
4805
4806 2021-01-01  Joel Brobecker  <[email protected]>
4807
4808         Update copyright year range in copyright header of all GDB files.
4809
4810 2021-01-01  Joel Brobecker  <[email protected]>
4811
4812         * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4813         to the list of directories to update.
4814
4815 2021-01-01  Joel Brobecker  <[email protected]>
4816
4817         * top.c (print_gdb_version): Update copyright year.
4818
4819 2021-01-01  Joel Brobecker  <[email protected]>
4820
4821         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
4822
4823 For older changes see ChangeLog-2020.
4824 \f
4825 Local Variables:
4826 mode: change-log
4827 left-margin: 8
4828 fill-column: 74
4829 version-control: never
4830 coding: utf-8
4831 End:
This page took 0.291231 seconds and 2 git commands to generate.