]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb-add-index.sh: Remove use of non posix 'local'
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
2
3 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
4 rid of 'local'.
5
6 2021-03-26 Tom Tromey <tom@tromey.com>
7
8 * symtab.c (struct output_source_filename_data): Add 'output'
9 method and operator().
10 (output_source_filename_data::output): Rename from
11 output_source_filename.
12 (output_partial_symbol_filename): Remove.
13 (info_sources_command): Update.
14 (struct add_partial_filename_data): Add operator().
15 (add_partial_filename_data::operator()): Rename from
16 maybe_add_partial_symtab_filename.
17 (make_source_files_completion_list): Update.
18 * symfile.c (quick_symbol_functions): Update.
19 * symfile-debug.c (objfile::map_symbol_filenames): Update.
20 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
21 'need_fullname'. Remove 'data' parameter.
22 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
23 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
24 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
25 Change type of 'fun' and 'need_fullname'. Remove 'data'
26 parameter.
27 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
28 of 'fun' and 'need_fullname'. Remove 'data' parameter.
29 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
30 parameter.
31 (mi_cmd_file_list_exec_source_files): Update.
32 * dwarf2/read.c
33 (dwarf2_base_index_functions::map_symbol_filenames): Update.
34
35 2021-03-26 Tom Tromey <tom@tromey.com>
36
37 * ada-lang.c (struct match_data): Add operator().
38 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
39 (callback): Remove 'callback'.
40
41 2021-03-26 Tom Tromey <tom@tromey.com>
42
43 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
44 call make_ignore_params once.
45
46 2021-03-26 Tom Tromey <tom@tromey.com>
47
48 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
49 "user" check.
50
51 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
52 Pedro Alves <pedro@palves.net>
53
54 * async-event.c: Include "infrun.h".
55 (async_event_handler_marked): New.
56 * async-event.h (async_event_handler_marked): Declare.
57 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
58 inferior before calling target method. Don't commit-resumed if
59 target_has_pending_events is true.
60 * remote.c (remote_target::has_pending_events): New.
61 * target-delegates.c: Regenerate.
62 * target.c (target_has_pending_events): New.
63 * target.h (target_ops::has_pending_events): New target method.
64 (target_has_pending_events): New.
65
66 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
67 Pedro Alves <pedro@palves.net>
68
69 * infcmd.c (run_command_1, attach_command, detach_command)
70 (interrupt_target_1): Use scoped_disable_commit_resumed.
71 * infrun.c (do_target_resume): Remove
72 target_commit_resume call.
73 (commit_resume_all_targets): Remove.
74 (maybe_set_commit_resumed_all_targets): New.
75 (maybe_call_commit_resumed_all_targets): New.
76 (enable_commit_resumed): New.
77 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
78 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
79 (scoped_disable_commit_resumed::reset)
80 (scoped_disable_commit_resumed::reset_and_commit)
81 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
82 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
83 New.
84 (proceed): Use scoped_disable_commit_resumed and
85 maybe_call_commit_resumed_all_targets.
86 (fetch_inferior_event): Use scoped_disable_commit_resumed.
87 * infrun.h (struct scoped_disable_commit_resumed): New.
88 (maybe_call_commit_resumed_all_process_targets): New.
89 (struct scoped_enable_commit_resumed): New.
90 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
91 * process-stratum-target.h (class process_stratum_target):
92 <commit_resumed_state>: New.
93 * record-full.c (record_full_wait_1): Change commit_resumed_state
94 around calling commit_resumed.
95 * remote.c (class remote_target) <commit_resume>: Rename to...
96 <commit_resumed>: ... this.
97 (struct stop_reply): Move up.
98 (remote_target::commit_resume): Rename to...
99 (remote_target::commit_resumed): ... this. Check if there is any
100 thread pending vCont resume.
101 (remote_target::remote_stop_ns): Generate stop replies for resumed
102 but pending vCont threads.
103 (remote_target::wait_ns): Add gdb_assert.
104 * target-delegates.c: Regenerate.
105 * target.c (target_wait, target_resume): Assert that the current
106 process_stratum target isn't in commit-resumed state.
107 (defer_target_commit_resume): Remove.
108 (target_commit_resume): Remove.
109 (target_commit_resumed): New.
110 (make_scoped_defer_target_commit_resume): Remove.
111 (target_stop): Assert that the current process_stratum target
112 isn't in commit-resumed state.
113 * target.h (struct target_ops) <commit_resume>: Rename to ...
114 <commit_resumed>: ... this.
115 (target_commit_resume): Remove.
116 (target_commit_resumed): New.
117 (make_scoped_defer_target_commit_resume): Remove.
118 * top.c (wait_sync_command_done): Use
119 scoped_enable_commit_resumed.
120
121 2021-03-26 Pedro Alves <pedro@palves.net>
122
123 * target.c (target_always_non_stop_p): Also check whether the
124 target can async.
125
126 2021-03-26 Tom Tromey <tom@tromey.com>
127
128 * dwarf2/read.c (dwarf2_read_debug_names)
129 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
130 (dw2_debug_names_iterator::next, create_type_unit_group):
131 Simplify.
132
133 2021-03-25 Pedro Alves <pedro@palves.net>
134
135 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
136 around setting the breakpoint.
137
138 2021-03-25 Pedro Alves <pedro@palves.net>
139
140 * remote.c
141 (remote_target::check_pending_events_prevent_wildcard_vcont):
142 Check whether the event's ptid is not null_ptid before looking up
143 the corresponding inferior.
144
145 2021-03-24 Changbin Du <changbin.du@gmail.com>
146
147 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
148 read_code.
149
150 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
151
152 * target.h (current_top_target): Remove, make callers use the
153 current inferior instead.
154 * target.c (current_top_target): Remove.
155
156 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
157
158 * target.h (target_shortname): Change to function declaration.
159 (target_longname): Likewise.
160 (target_attach_no_wait): Likewise.
161 (target_post_attach): Likewise.
162 (target_prepare_to_store): Likewise.
163 (target_supports_enable_disable_tracepoint): Likewise.
164 (target_supports_string_tracing): Likewise.
165 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
166 (target_supports_dumpcore): Likewise.
167 (target_dumpcore): Likewise.
168 (target_can_run_breakpoint_commands): Likewise.
169 (target_files_info): Likewise.
170 (target_post_startup_inferior): Likewise.
171 (target_insert_fork_catchpoint): Likewise.
172 (target_remove_fork_catchpoint): Likewise.
173 (target_insert_vfork_catchpoint): Likewise.
174 (target_remove_vfork_catchpoint): Likewise.
175 (target_insert_exec_catchpoint): Likewise.
176 (target_remove_exec_catchpoint): Likewise.
177 (target_set_syscall_catchpoint): Likewise.
178 (target_rcmd): Likewise.
179 (target_can_lock_scheduler): Likewise.
180 (target_can_async_p): Likewise.
181 (target_is_async_p): Likewise.
182 (target_execution_direction): Likewise.
183 (target_extra_thread_info): Likewise.
184 (target_pid_to_exec_file): Likewise.
185 (target_thread_architecture): Likewise.
186 (target_find_memory_regions): Likewise.
187 (target_make_corefile_notes): Likewise.
188 (target_get_bookmark): Likewise.
189 (target_goto_bookmark): Likewise.
190 (target_stopped_by_watchpoint): Likewise.
191 (target_stopped_by_sw_breakpoint): Likewise.
192 (target_supports_stopped_by_sw_breakpoint): Likewise.
193 (target_stopped_by_hw_breakpoint): Likewise.
194 (target_supports_stopped_by_hw_breakpoint): Likewise.
195 (target_have_steppable_watchpoint): Likewise.
196 (target_can_use_hardware_watchpoint): Likewise.
197 (target_region_ok_for_hw_watchpoint): Likewise.
198 (target_can_do_single_step): Likewise.
199 (target_insert_watchpoint): Likewise.
200 (target_remove_watchpoint): Likewise.
201 (target_insert_hw_breakpoint): Likewise.
202 (target_remove_hw_breakpoint): Likewise.
203 (target_can_accel_watchpoint_condition): Likewise.
204 (target_can_execute_reverse): Likewise.
205 (target_get_ada_task_ptid): Likewise.
206 (target_filesystem_is_local): Likewise.
207 (target_trace_init): Likewise.
208 (target_download_tracepoint): Likewise.
209 (target_can_download_tracepoint): Likewise.
210 (target_download_trace_state_variable): Likewise.
211 (target_enable_tracepoint): Likewise.
212 (target_disable_tracepoint): Likewise.
213 (target_trace_start): Likewise.
214 (target_trace_set_readonly_regions): Likewise.
215 (target_get_trace_status): Likewise.
216 (target_get_tracepoint_status): Likewise.
217 (target_trace_stop): Likewise.
218 (target_trace_find): Likewise.
219 (target_get_trace_state_variable_value): Likewise.
220 (target_save_trace_data): Likewise.
221 (target_upload_tracepoints): Likewise.
222 (target_upload_trace_state_variables): Likewise.
223 (target_get_raw_trace_data): Likewise.
224 (target_get_min_fast_tracepoint_insn_len): Likewise.
225 (target_set_disconnected_tracing): Likewise.
226 (target_set_circular_trace_buffer): Likewise.
227 (target_set_trace_buffer_size): Likewise.
228 (target_set_trace_notes): Likewise.
229 (target_get_tib_address): Likewise.
230 (target_set_permissions): Likewise.
231 (target_static_tracepoint_marker_at): Likewise.
232 (target_static_tracepoint_markers_by_strid): Likewise.
233 (target_traceframe_info): Likewise.
234 (target_use_agent): Likewise.
235 (target_can_use_agent): Likewise.
236 (target_augmented_libraries_svr4_read): Likewise.
237 (target_log_command): Likewise.
238 * target.c (target_shortname): New.
239 (target_longname): New.
240 (target_attach_no_wait): New.
241 (target_post_attach): New.
242 (target_prepare_to_store): New.
243 (target_supports_enable_disable_tracepoint): New.
244 (target_supports_string_tracing): New.
245 (target_supports_evaluation_of_breakpoint_conditions): New.
246 (target_supports_dumpcore): New.
247 (target_dumpcore): New.
248 (target_can_run_breakpoint_commands): New.
249 (target_files_info): New.
250 (target_post_startup_inferior): New.
251 (target_insert_fork_catchpoint): New.
252 (target_remove_fork_catchpoint): New.
253 (target_insert_vfork_catchpoint): New.
254 (target_remove_vfork_catchpoint): New.
255 (target_insert_exec_catchpoint): New.
256 (target_remove_exec_catchpoint): New.
257 (target_set_syscall_catchpoint): New.
258 (target_rcmd): New.
259 (target_can_lock_scheduler): New.
260 (target_can_async_p): New.
261 (target_is_async_p): New.
262 (target_execution_direction): New.
263 (target_extra_thread_info): New.
264 (target_pid_to_exec_file): New.
265 (target_thread_architecture): New.
266 (target_find_memory_regions): New.
267 (target_make_corefile_notes): New.
268 (target_get_bookmark): New.
269 (target_goto_bookmark): New.
270 (target_stopped_by_watchpoint): New.
271 (target_stopped_by_sw_breakpoint): New.
272 (target_supports_stopped_by_sw_breakpoint): New.
273 (target_stopped_by_hw_breakpoint): New.
274 (target_supports_stopped_by_hw_breakpoint): New.
275 (target_have_steppable_watchpoint): New.
276 (target_can_use_hardware_watchpoint): New.
277 (target_region_ok_for_hw_watchpoint): New.
278 (target_can_do_single_step): New.
279 (target_insert_watchpoint): New.
280 (target_remove_watchpoint): New.
281 (target_insert_hw_breakpoint): New.
282 (target_remove_hw_breakpoint): New.
283 (target_can_accel_watchpoint_condition): New.
284 (target_can_execute_reverse): New.
285 (target_get_ada_task_ptid): New.
286 (target_filesystem_is_local): New.
287 (target_trace_init): New.
288 (target_download_tracepoint): New.
289 (target_can_download_tracepoint): New.
290 (target_download_trace_state_variable): New.
291 (target_enable_tracepoint): New.
292 (target_disable_tracepoint): New.
293 (target_trace_start): New.
294 (target_trace_set_readonly_regions): New.
295 (target_get_trace_status): New.
296 (target_get_tracepoint_status): New.
297 (target_trace_stop): New.
298 (target_trace_find): New.
299 (target_get_trace_state_variable_value): New.
300 (target_save_trace_data): New.
301 (target_upload_tracepoints): New.
302 (target_upload_trace_state_variables): New.
303 (target_get_raw_trace_data): New.
304 (target_get_min_fast_tracepoint_insn_len): New.
305 (target_set_disconnected_tracing): New.
306 (target_set_circular_trace_buffer): New.
307 (target_set_trace_buffer_size): New.
308 (target_set_trace_notes): New.
309 (target_get_tib_address): New.
310 (target_set_permissions): New.
311 (target_static_tracepoint_marker_at): New.
312 (target_static_tracepoint_markers_by_strid): New.
313 (target_traceframe_info): New.
314 (target_use_agent): New.
315 (target_can_use_agent): New.
316 (target_augmented_libraries_svr4_read): New.
317 (target_log_command): New.
318 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
319 * infrun.c (set_schedlock_func): Adjust.
320 * mi/mi-main.c (exec_reverse_continue): Adjust.
321 * reverse.c (exec_reverse_once): Adjust.
322 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
323 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
324 * remote-sim.c (gdbsim_target::detach): Adjust.
325 (gdbsim_target::files_info): Adjust.
326
327 2021-03-24 Tom Tromey <tom@tromey.com>
328
329 * dwarf2/read.c (dw2_map_matching_symbols): Update.
330 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
331 (check_match, dw2_expand_symtabs_matching)
332 (dwarf2_debug_names_index::map_matching_symbols)
333 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
334
335 2021-03-24 Keith Seitz <keiths@redhat.com>
336
337 * compile/compile-cplus-types.c
338 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
339 thinko.
340
341 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
342
343 * gdbarch.sh (gdbarch_data_registry): Make static.
344 * gdbarch.c: Re-generate.
345
346 2021-03-24 Luis Machado <luis.machado@linaro.org>
347
348 * NEWS: Mention memory tagging changes.
349
350 2021-03-24 Luis Machado <luis.machado@linaro.org>
351
352 * printcmd.c (decode_format): Handle the 'm' modifier.
353 (do_examine): Display allocation tags when required/supported.
354 (should_validate_memtags): New function.
355 (print_command_1): Display memory tag mismatches.
356 * valprint.c (show_memory_tag_violations): New function.
357 (value_print_option_defs): Add new option "memory-tag-violations".
358 (user_print_options) <memory_tag_violations>: Initialize to 1.
359 * valprint.h (struct format_data) <print_tags>: New field.
360 (value_print_options) <memory_tag_violations>: New field.
361
362 2021-03-24 Luis Machado <luis.machado@linaro.org>
363
364 * printcmd.c: Include gdbsupport/rsp-low.h.
365 (memory_tag_list): New static global.
366 (process_print_command_args): Factored out of
367 print_command_1.
368 (print_command_1): Use process_print_command_args.
369 (show_addr_not_tagged, show_memory_tagging_unsupported)
370 (memory_tag_command, memory_tag_print_tag_command)
371 (memory_tag_print_logical_tag_command)
372 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
373 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
374 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
375 functions.
376 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
377
378 2021-03-24 Luis Machado <luis.machado@linaro.org>
379
380 * aarch64-linux-tdep.c
381 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
382 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
383
384 2021-03-24 Luis Machado <luis.machado@linaro.org>
385
386 * aarch64-linux-tdep.c
387 (aarch64_linux_report_signal_info): New function.
388 (aarch64_linux_init_abi): Register
389 aarch64_linux_report_signal_info as the report_signal_info hook.
390 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
391 (SEGV_MTESERR): Define.
392
393 2021-03-24 Luis Machado <luis.machado@linaro.org>
394
395 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
396 (aarch64_linux_ltag_tests): New function.
397 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
398
399 2021-03-24 Luis Machado <luis.machado@linaro.org>
400
401 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
402 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
403 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
404 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
405 functions.
406 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
407 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
408 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
409 (aarch64_linux_get_ltag): New functions.
410 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
411 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
412 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
413 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
414
415 2021-03-24 Luis Machado <luis.machado@linaro.org>
416
417 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
418 bit.
419 (struct smaps_data): New struct.
420 (decode_vmflags): Handle the 'mt' flag.
421 (parse_smaps_data): New function, refactored from
422 linux_find_memory_regions_full.
423 (linux_address_in_memtag_page): New function.
424 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
425 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
426
427 2021-03-24 Luis Machado <luis.machado@linaro.org>
428
429 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
430 instead of char arrays.
431
432 2021-03-24 Luis Machado <luis.machado@linaro.org>
433
434 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
435 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
436 nat/aarch64-mte-linux-ptrace.h.
437 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
438 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
439 override.
440 <fetch_memtags>: New method override.
441 <store_memtags>: New method override.
442 (aarch64_linux_nat_target::supports_memory_tagging): New method.
443 (aarch64_linux_nat_target::fetch_memtags): New method.
444 (aarch64_linux_nat_target::store_memtags): New method.
445 * arch/aarch64-mte-linux.c: New file.
446 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
447 (AARCH64_MTE_GRANULE_SIZE): Define.
448 (aarch64_memtag_type): New enum.
449 (aarch64_mte_get_tag_granules): New prototype.
450 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
451 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
452 * nat/aarch64-mte-linux-ptrace.c: New file.
453 * nat/aarch64-mte-linux-ptrace.h: New file.
454
455 2021-03-24 Luis Machado <luis.machado@linaro.org>
456
457 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
458 * nat/aarch64-mte-linux-ptrace.h: New file.
459
460 2021-03-24 Luis Machado <luis.machado@linaro.org>
461
462 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
463 (store_mteregs_to_thread): New function.
464 (aarch64_linux_nat_target::fetch_registers): Update to call
465 fetch_mteregs_from_thread.
466 (aarch64_linux_nat_target::store_registers): Update to call
467 store_mteregs_to_thread.
468 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
469 (aarch64_cannot_store_register): Handle MTE registers.
470 (aarch64_gdbarch_init): Initialize and setup MTE registers.
471 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
472 <has_mte>: New method.
473 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
474
475 2021-03-24 Luis Machado <luis.machado@linaro.org>
476
477 * aarch64-linux-nat.c
478 (aarch64_linux_nat_target::read_description): Take MTE flag into
479 account.
480 Slight refactor to hwcap flag checking.
481 * aarch64-linux-tdep.c
482 (aarch64_linux_core_read_description): Likewise.
483 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
484 MTE.
485 (aarch64_read_description): Add mte_p parameter and update to use it.
486 Update the documentation.
487 (aarch64_gdbarch_init): Update call to aarch64_read_description.
488 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
489 * arch/aarch64.c: Include ../features/aarch64-mte.c.
490 (aarch64_create_target_description): Add mte_p parameter and update
491 the code to use it.
492 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
493 parameter.
494 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
495 * features/aarch64-mte.c: New file, generated.
496 * features/aarch64-mte.xml: New file.
497
498 2021-03-24 Luis Machado <luis.machado@linaro.org>
499
500 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
501 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
502 * aarch64-linux-tdep.c: Likewise
503 * arch/aarch64-mte-linux.h: New file.
504
505 2021-03-24 Luis Machado <luis.machado@linaro.org>
506
507 * remote: Include gdbsupport/selftest.h.
508 (test_memory_tagging_functions): New function.
509 (_initialize_remote): Register test_memory_tagging_functions.
510
511 2021-03-24 Luis Machado <luis.machado@linaro.org>
512
513 * remote.c (PACKET_memory_tagging_feature): New enum.
514 (remote_memory_tagging_p): New function.
515 (remote_protocol_features): New "memory-tagging" entry.
516 (remote_target::remote_query_supported): Handle memory tagging
517 support.
518 (remote_target::supports_memory_tagging): Implement.
519 (create_fetch_memtags_request, parse_fetch_memtags_reply)
520 (create_store_memtags_request): New functions.
521 (remote_target::fetch_memtags): Implement.
522 (remote_target::store_memtags): Implement.
523 (_initialize_remote): Add new "memory-tagging-feature"
524 config command.
525
526 2021-03-24 Luis Machado <luis.machado@linaro.org>
527
528 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
529 (default_memtag_matches_p, default_set_memtags)
530 (default_get_memtag): New functions.
531 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
532 (default_memtag_matches_p, default_set_memtags)
533 (default_get_memtag): New prototypes.
534 * gdbarch.c: Regenerate.
535 * gdbarch.h: Regenerate.
536 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
537 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
538 (enum memtag_type): New enum.
539
540 2021-03-24 Luis Machado <luis.machado@linaro.org>
541
542 * remote.c (remote_target) <supports_memory_tagging>: New method
543 override.
544 <fetch_memtags>: New method override.
545 <store_memtags>: New method override.
546 (remote_target::supports_memory_tagging): New method.
547 (remote_target::fetch_memtags): New method.
548 (remote_target::store_memtags): New method.
549 * target-delegates.c: Regenerate.
550 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
551 method.
552 <fetch_memtags>: New virtual method.
553 <store_memtags>: New virtual method.
554 (target_supports_memory_tagging): Define.
555 (target_fetch_memtags): Define.
556 (target_store_memtags): Define.
557 * target-debug.h (target_debug_print_size_t)
558 (target_debug_print_const_gdb_byte_vector_r)
559 (target_debug_print_gdb_byte_vector_r): New functions.
560
561 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * target.h (target_longname): Remove.
564
565 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
566
567 * target.h (target_is_pushed): Remove, update callers to use
568 inferior::target_is_pushed instead.
569 * target.c (target_is_pushed): Remove.
570
571 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
572
573 * target.h (push_target): Remove, update callers to use
574 inferior::push_target.
575 * target.c (push_target): Remove.
576 * inferior.h (class inferior) <push_target>: New overload.
577
578 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
579
580 * target.h (unpush_target): Remove, update all callers
581 to use `inferior::unpush_target` instead.
582 (struct target_unpusher) <operator()>: Just declare.
583 * target.c (unpush_target): Remove.
584 (target_unpusher::operator()): New.
585
586 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
587
588 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
589 error.
590 (process_full_comp_unit): Validate the top-level tag before
591 processing the first DIE.
592 (read_func_scope): Ensure we have a valid builder.
593
594 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
595
596 * objc-lang.c (objc_demangle): Renamed to
597 objc_language::demangle_symbol, and moved later in the file.
598 (objc_language::sniff_from_mangled_name): Call demangle_symbol
599 member function.
600 (objc_language::demangle_symbol): Defined outside of class
601 declaration. The definition is the old objc_demangle with NULL
602 changed to nullptr, and if conditions relating to nullptr pointers
603 or null character checks made explicit.
604 * objc-lang.h (objc_demangle): Delete declaration.
605
606 2021-03-22 Martin Liska <mliska@suse.cz>
607
608 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
609 (_initialize_arm_tdep): Likewise.
610
611 2021-03-20 Tom Tromey <tom@tromey.com>
612
613 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
614 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
615 * psymtab.h (make_psymbol_functions): Don't declare.
616 * psymtab.c (make_psymbol_functions): Remove.
617 (maintenance_print_psymbols): Update.
618 * psympriv.h (struct psymbol_functions): Add no-argument
619 constructor.
620 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
621 <partial_symtabs>: Remove.
622 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
623 * elfread.c (read_partial_symbols): Update.
624 (elf_symfile_read): Remove check for existing partial symbols.
625 Don't clear "qf".
626 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
627 partial symbols.
628 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
629 partial symtabs.
630 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
631 parameter.
632 * dbxread.c (dbx_symfile_read): Create partial symtabs.
633 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
634
635 2021-03-20 Tom Tromey <tom@tromey.com>
636
637 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
638 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
639 * symfile-debug.c (objfile::has_partial_symbols)
640 (objfile::find_last_source_symtab)
641 (objfile::forget_cached_source_info)
642 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
643 (objfile::print_stats, objfile::dump)
644 (objfile::expand_symtabs_for_function)
645 (objfile::expand_all_symtabs)
646 (objfile::expand_symtabs_with_fullname)
647 (objfile::map_matching_symbols)
648 (objfile::expand_symtabs_matching)
649 (objfile::find_pc_sect_compunit_symtab)
650 (objfile::map_symbol_filenames)
651 (objfile::find_compunit_symtab_by_address)
652 (objfile::lookup_global_symbol_language)
653 (objfile::require_partial_symbols): Update.
654 * psymtab.c (maintenance_print_psymbols)
655 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
656 * objfiles.h (struct objfile) <qf>: Now a forward_list.
657 * objfiles.c (objfile_relocate1): Update.
658 * elfread.c (elf_symfile_read): Update.
659
660 2021-03-20 Tom Tromey <tom@tromey.com>
661
662 * objfiles.h (struct objfile) <psymtabs>: Remove method.
663
664 2021-03-20 Tom Tromey <tom@tromey.com>
665
666 * psymtab.c (psymbol_functions::count_psyms): Rename.
667 (psymbol_functions::print_stats): Update.
668 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
669 method.
670
671 2021-03-20 Tom Tromey <tom@tromey.com>
672
673 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
674 (psymbol_functions::find_pc_sect_psymtab): Rename.
675 (psymbol_functions::find_pc_sect_compunit_symtab)
676 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
677 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
678 Declare new method.
679 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
680
681 2021-03-20 Tom Tromey <tom@tromey.com>
682
683 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
684 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
685 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
686 parameter.
687 (add_psymbol_to_bcache): Remove.
688 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
689 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
690 Likewise.
691 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
692 <add_psymbol>: Likewise.
693 (standard_psymtab, legacy_psymtab): Likewise.
694 * mdebugread.c (parse_partial_symbols): Update.
695 (handle_psymbol_enumerators): Add partial_symtabs parameter.
696 (handle_psymbol_enumerators): Update.
697 (new_psymtab): Add partial_symtabs parameter.
698 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
699 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
700 parameter.
701 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
702 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
703 Update.
704 * dbxread.c (read_dbx_symtab): Update.
705 (start_psymtab): Add partial_symtabs parameter.
706 (dbx_end_psymtab): Update.
707 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
708 (ctf_psymtab): Add partial_symtabs parameter.
709 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
710 Update.
711 (scan_partial_symbols): Add partial_symtabs parameter.
712 (scan_partial_symbols, elfctf_build_psymtabs)
713 (ctf_psymtab_add_enums): Update.
714
715 2021-03-20 Tom Tromey <tom@tromey.com>
716
717 * symfile.c (read_symbols): Use objfile method.
718 * symfile-debug.c (objfile::require_partial_symbols): New method.
719 * psymtab.h (require_partial_symbols): Don't declare.
720 * psymtab.c (require_partial_symbols): Use objfile method. Now
721 static.
722 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
723 (psymbol_functions::lookup_symbol)
724 (psymbol_functions::lookup_global_symbol_language)
725 (psymbol_functions::find_last_source_symtab)
726 (psymbol_functions::forget_cached_source_info)
727 (psymbol_functions::print_stats)
728 (psymbol_functions::expand_symtabs_for_function)
729 (psymbol_functions::expand_all_symtabs)
730 (psymbol_functions::expand_symtabs_with_fullname)
731 (psymbol_functions::map_symbol_filenames)
732 (psymbol_functions::map_matching_symbols)
733 (psymbol_functions::expand_symtabs_matching)
734 (psymbol_functions::find_compunit_symtab_by_address)
735 (maintenance_print_psymbols, maintenance_info_psymtabs)
736 (maintenance_check_psymtabs): Update.
737 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
738 new method.
739
740 2021-03-20 Tom Tromey <tom@tromey.com>
741
742 * xcoffread.c (xcoff_sym_fns): Update.
743 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
744 * symfile-debug.c (objfile::has_partial_symbols): Use
745 can_lazily_read_symbols.
746 (debug_sym_read_psymbols): Remove.
747 (debug_sym_fns, install_symfile_debug_logging): Update.
748 * quick-symbol.h (struct quick_symbol_functions)
749 <can_lazily_read_symbols, read_partial_symbols>: New methods.
750 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
751 * mipsread.c (ecoff_sym_fns): Update.
752 * machoread.c (macho_sym_fns): Update.
753 * elfread.c (struct lazy_dwarf_reader): New.
754 (elf_symfile_read): Update.
755 (read_psyms): Now a method of lazy_dwarf_reader.
756 (elf_sym_fns): Update.
757 (elf_sym_fns_lazy_psyms): Remove.
758 * dbxread.c (aout_sym_fns): Update.
759 * coffread.c (coff_sym_fns): Update.
760
761 2021-03-20 Tom Tromey <tom@tromey.com>
762
763 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
764 (reread_symbols): Move reset_psymtabs call later.
765 * objfiles.c (objfile::objfile): Don't initialize
766 partial_symtabs.
767
768 2021-03-20 Tom Tromey <tom@tromey.com>
769
770 * dwarf2/read.c (dwarf2_build_psymtabs): Call
771 set_partial_symtabs.
772 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
773 * psymtab.h (make_psymbol_functions): Add partial_symtabs
774 parameter.
775 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
776 parameter.
777 (psymbol_functions::find_pc_sect_compunit_symtab)
778 (psymbol_functions::print_stats, psymbol_functions::dump)
779 (psymbol_functions::has_symbols): Update.
780 (make_psymbol_functions, dump_psymtab_addrmap): Add
781 partial_symtabs parameter.
782 (maintenance_print_psymbols): Update.
783 (psymbol_functions::expand_symtabs_matching): Update.
784 * psympriv.h (struct psymbol_functions): Add constructor.
785 <m_partial_symtabs>: New member.
786 <set_partial_symtabs>: New method.
787
788 2021-03-20 Tom Tromey <tom@tromey.com>
789
790 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
791 parameter.
792 (process_psymtab_comp_unit_reader)
793 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
794 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
795 Reference psymtabs via per_bfd.
796
797 2021-03-20 Tom Tromey <tom@tromey.com>
798
799 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
800 Remove.
801 (add_address_entry): Remove objfile parameter.
802 (add_address_entry_worker): Update.
803 (write_address_map): Replace objfile parameter with per_bfd.
804 (write_gdbindex, write_psymtabs_to_index): Update.
805
806 2021-03-20 Tom Tromey <tom@tromey.com>
807
808 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
809 print_bcache parameter.
810 * symfile-debug.c (objfile::print_stats): Add print_bcache
811 parameter.
812 * quick-symbol.h (struct quick_symbol_functions)
813 <print_stats>: Add print_bcache parameter.
814 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
815 code to psymtab.c.
816 (print_objfile_statistics): Move psymtab code to psymtab.c.
817 * psymtab.c (count_psyms): Move from symmisc.c.
818 (psymbol_functions::print_stats): Print partial symbol and bcache
819 statistics. Add print_bcache parameter.
820 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
821 (struct objfile) <print_stats>: Add print_bcache parameter.
822 * maint.c (maintenance_print_statistics): Update.
823
824 2021-03-20 Tom Tromey <tom@tromey.com>
825
826 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
827 member.
828 * dwarf2/read.c (create_addrmap_from_index)
829 (create_addrmap_from_aranges): Set per_bfd addrmap.
830 (dwarf2_read_gdb_index): Don't set partial_symtabs.
831 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
832 per_bfd addrmap.
833 (dwarf2_read_debug_names): Don't set partial_symtabs.
834 (dwarf2_initialize_objfile): Likewise.
835
836 2021-03-20 Tom Tromey <tom@tromey.com>
837
838 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
839 earlier.
840
841 2021-03-20 Tom Tromey <tom@tromey.com>
842
843 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
844 (~psymtab_discarder, keep): Update.
845 <m_objfile>: Remove.
846 <m_partial_symtabs>: New member.
847 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
848
849 2021-03-20 Tom Tromey <tom@tromey.com>
850
851 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
852 (xcoff_end_psymtab): Update.
853 (scan_xcoff_symtab): Add partial_symtabs parameter.
854 (xcoff_initial_scan): Update.
855 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
856 * mdebugread.c (mdebug_build_psymtabs): Update.
857 (parse_partial_symbols): Add partial_symtabs parameter.
858 * dbxread.c (dbx_symfile_read): Update.
859 (read_dbx_symtab): Add partial_symtabs parameter.
860 (read_dbx_symtab): Update.
861 (dbx_end_psymtab): Add partial_symtabs parameter.
862
863 2021-03-20 Tom Tromey <tom@tromey.com>
864
865 * quick-symbol.h (struct quick_symbol_functions)
866 <relocated>: New method.
867 * psymtab.h (struct psymbol_functions) <relocated>: New
868 method.
869 <fill_psymbol_map>: Declare method.
870 <m_psymbol_map>: New member.
871 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
872 (psymbol_functions::find_compunit_symtab_by_address): Update.
873 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
874 (struct objfile) <psymbol_map>: Remove.
875 * objfiles.c (objfile_relocate1): Update.
876
877 2021-03-20 Tom Tromey <tom@tromey.com>
878
879 * psympriv.h (struct psymbol_functions): New.
880 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
881 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
882 (objfile::lookup_global_symbol_language): Update.
883 * quick-symbol.h (struct quick_symbol_functions): Convert function
884 pointers to methods. Add virtual destructor.
885 (quick_symbol_functions_up): New typedef.
886 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
887 (dwarf2_debug_names_functions): Don't declare.
888 (make_psymbol_functions): Declare.
889 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
890 (psymbol_functions::find_pc_sect_compunit_symtab)
891 (psymbol_functions::lookup_symbol)
892 (psymbol_functions::lookup_global_symbol_language)
893 (psymbol_functions::find_last_source_symtab)
894 (psymbol_functions::forget_cached_source_info)
895 (psymbol_functions::print_stats, psymbol_functions::dump)
896 (psymbol_functions::expand_symtabs_for_function)
897 (psymbol_functions::expand_all_symtabs)
898 (psymbol_functions::expand_symtabs_with_fullname)
899 (psymbol_functions::map_symbol_filenames)
900 (psymbol_functions::map_matching_symbols)
901 (psymbol_functions::expand_symtabs_matching)
902 (psymbol_functions::has_symbols)
903 (psymbol_functions::find_compunit_symtab_by_address): Rename.
904 (psym_functions): Remove.
905 (make_psymbol_functions): New function.
906 * objfiles.h (struct objfile) <qf>: Change type.
907 * elfread.c (elf_symfile_read): Update.
908 * dwarf2/read.c (struct dwarf2_base_index_functions)
909 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
910 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
911 (dwarf2_base_index_functions::find_last_source_symtab)
912 (dwarf2_base_index_functions::forget_cached_source_info)
913 (dwarf2_base_index_functions::map_symtabs_matching_filename)
914 (dwarf2_gdb_index::lookup_symbol)
915 (dwarf2_base_index_functions::print_stats)
916 (dwarf2_gdb_index::dump)
917 (dwarf2_gdb_index::expand_symtabs_for_function)
918 (dwarf2_base_index_functions::expand_all_symtabs)
919 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
920 Rename.
921 (dwarf2_gdb_index::map_matching_symbols): New method.
922 (dwarf2_gdb_index::expand_symtabs_matching): New method.
923 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
924 (dwarf2_base_index_functions::map_symbol_filenames)
925 (dwarf2_base_index_functions::has_symbols): Rename.
926 (dwarf2_gdb_index_functions): Remove.
927 (dwarf2_debug_names_index::lookup_symbol)
928 (dwarf2_debug_names_index::dump)
929 (dwarf2_debug_names_index::expand_symtabs_for_function)
930 (dwarf2_debug_names_index::map_matching_symbols)
931 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
932 (dwarf2_debug_names_functions): Remove.
933 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
934 Declare.
935
936 2021-03-20 Tom Tromey <tom@tromey.com>
937
938 * psymtab.c (require_partial_symbols): Check that 'sf' is not
939 null.
940 * xcoffread.c (xcoff_sym_fns): Update.
941 * symfile.h (struct sym_fns) <qf>: Remove.
942 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
943 * symfile-debug.c (objfile::has_partial_symbols)
944 (objfile::find_last_source_symtab)
945 (objfile::forget_cached_source_info)
946 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
947 (objfile::print_stats, objfile::dump)
948 (objfile::expand_symtabs_for_function)
949 (objfile::expand_all_symtabs)
950 (objfile::expand_symtabs_with_fullname)
951 (objfile::map_matching_symbols)
952 (objfile::expand_symtabs_matching)
953 (objfile::find_pc_sect_compunit_symtab)
954 (objfile::map_symbol_filenames)
955 (objfile::find_compunit_symtab_by_address)
956 (objfile::lookup_global_symbol_language, debug_sym_fns)
957 (install_symfile_debug_logging): Update.
958 * objfiles.h (struct objfile) <qf>: New member.
959 * mipsread.c (ecoff_sym_fns): Update.
960 * machoread.c (macho_sym_fns): Update.
961 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
962 Don't declare.
963 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
964 * dbxread.c (aout_sym_fns): Update.
965 * coffread.c (coff_sym_fns): Update.
966
967 2021-03-20 Tom Tromey <tom@tromey.com>
968
969 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
970 (expand_symtabs_file_matcher_ftype)
971 (expand_symtabs_symbol_matcher_ftype)
972 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
973 Move to quick-symbol.h.
974 * quick-symbol.h: New file.
975
976 2021-03-20 Tom Tromey <tom@tromey.com>
977
978 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
979 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
980 (basic_lookup_transparent_type_quick)
981 (find_pc_sect_compunit_symtab, find_symbol_at_address)
982 (find_line_symtab, global_symbol_searcher::expand_symtabs):
983 Update.
984 * symmisc.c (print_objfile_statistics, dump_objfile)
985 (maintenance_expand_symtabs): Update.
986 * symfile.c (symbol_file_add_with_addrs)
987 (expand_symtabs_matching, map_symbol_filenames): Update.
988 * symfile-debug.c (objfile::has_partial_symbols)
989 (objfile::find_last_source_symtab)
990 (objfile::forget_cached_source_info)
991 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
992 (objfile::print_stats, objfile::dump)
993 (objfile::expand_symtabs_for_function)
994 (objfile::expand_all_symtabs)
995 (objfile::expand_symtabs_with_fullname)
996 (objfile::map_matching_symbols)
997 (objfile::expand_symtabs_matching)
998 (objfile::find_pc_sect_compunit_symtab)
999 (objfile::map_symbol_filenames)
1000 (objfile::find_compunit_symtab_by_address)
1001 (objfile::lookup_global_symbol_language): New methods.
1002 (debug_sym_quick_functions): Remove.
1003 (debug_sym_fns, install_symfile_debug_logging): Update.
1004 * source.c (forget_cached_source_info_for_objfile)
1005 (select_source_symtab): Update.
1006 * objfiles.h (struct objfile): Add methods corresponding to
1007 quick_symbol_functions.
1008 * objfiles.c (objfile::has_partial_symbols): Move to
1009 symfile-debug.c.
1010 * linespec.c (iterate_over_all_matching_symtabs): Update.
1011 * cp-support.c (add_symbol_overload_list_qualified): Update.
1012 * ada-lang.c (add_nonlocal_symbols): Update.
1013
1014 2021-03-20 Tom Tromey <tom@tromey.com>
1015
1016 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
1017 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
1018 bool.
1019 * symfile-debug.c (debug_qf_has_symbols): Return bool.
1020 * psymtab.c (psym_has_symbols): Return bool.
1021 * objfiles.c (objfile::has_partial_symbols): Return bool.
1022 * dwarf2/read.c (dw2_has_symbols): Return bool.
1023
1024 2021-03-20 Tom Tromey <tom@tromey.com>
1025
1026 * symfile.c (read_symbols): Update.
1027 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
1028 (objfile_has_partial_symbols): Don't declare.
1029 * objfiles.c (objfile::has_partial_symbols): Rename from
1030 objfile_has_partial_symbols.
1031 (objfile_has_symbols, have_partial_symbols): Update.
1032 * elfread.c (elf_symfile_read): Update.
1033 * dwarf2/read.c (dwarf2_has_info): Update.
1034 * coffread.c (coff_symfile_read): Update.
1035
1036 2021-03-20 Tom Tromey <tom@tromey.com>
1037
1038 * coffread.c: Include dwarf2/public.h.
1039 * dwarf2/frame.c: Include dwarf2/public.h.
1040 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
1041 * dwarf2/public.h: New file.
1042 * dwarf2/read.c: Include dwarf2/public.h.
1043 * elfread.c: Include dwarf2/public.h.
1044 * machoread.c: Include dwarf2/public.h.
1045 * symfile.h (dwarf2_has_info, enum dw_index_kind)
1046 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
1047 (dwarf2_build_frame_info): Move to dwarf2/public.h.
1048 * xcoffread.c: Include dwarf2/public.h.
1049
1050 2021-03-20 Tom Tromey <tom@tromey.com>
1051
1052 * symfile.h (enum dwarf2_section_enum)
1053 (dwarf2_get_section_info): Move to dwarf2/read.h.
1054 * dwarf2/read.h (enum dwarf2_section_enum)
1055 (dwarf2_get_section_info): Move from symfile.h.
1056
1057 2021-03-19 Pedro Alves <pedro@palves.net>
1058
1059 * thread.c (any_thread_of_inferior): Check if there's a selected
1060 thread before calling inferior_thread().
1061
1062 2021-03-18 Tom Tromey <tromey@adacore.com>
1063
1064 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
1065 get_DW_UT_name.
1066 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
1067 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
1068
1069 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
1070
1071 * python/py-param.c (get_set_value): Update header comment.
1072
1073 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 * infrun.c (check_multi_target_resumption): Remove argument to
1076 all_non_exited_inferiors.
1077
1078 2021-03-16 Christian Biesinger <cbiesinger@google.com>
1079
1080 * windows-nat.c (windows_init_thread_list): Add message to
1081 debug log.
1082
1083 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
1084
1085 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
1086 well as PyLong_Check for Python 2.
1087
1088 2021-03-15 Tom Tromey <tromey@adacore.com>
1089
1090 PR build/27579:
1091 * rust-exp.y (maker_map): Use gdb::hash_enum.
1092 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
1093
1094 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1095
1096 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
1097 end of debug print.
1098
1099 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
1100
1101 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
1102 parameter, adjust caller.
1103
1104 2021-03-15 Tom Tromey <tromey@adacore.com>
1105
1106 * ada-exp.y (simple_exp): Always push a result for unary '+'.
1107
1108 2021-03-15 Tom Tromey <tromey@adacore.com>
1109
1110 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
1111 ada_ensure_varsize_limit.
1112
1113 2021-03-15 Tom Tromey <tromey@adacore.com>
1114
1115 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
1116 fixed-point.
1117 * ada-exp.y (maybe_overload): New function.
1118 (ada_wrap_overload): New function.
1119 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
1120 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
1121 (or_else_exp, xor_exp, primary): Update.
1122
1123 2021-03-15 Tom Tromey <tromey@adacore.com>
1124
1125 PR ada/27545:
1126 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
1127 call for tagged type.
1128
1129 2021-03-15 Tom Tromey <tromey@adacore.com>
1130
1131 * ada-exp.y (exp1): Handle resolution of the right hand side of an
1132 assignment.
1133
1134 2021-03-15 Tom Tromey <tromey@adacore.com>
1135
1136 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
1137 container.
1138 (ada_assign_operation::evaluate): Update.
1139 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
1140 Change return type.
1141
1142 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
1143
1144 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
1145
1146 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * python/python.c (gdbpy_source_objfile_script): Use
1149 make_scoped_restore to restore gdbpy_current_objfile.
1150 (gdbpy_execute_objfile_script): Likewise.
1151
1152 2021-03-14 Tom Tromey <tom@tromey.com>
1153
1154 * dwarf2/read.c (read_attribute_value): Use cu_header
1155 consistently.
1156
1157 2021-03-14 Tom Tromey <tom@tromey.com>
1158
1159 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1160 (peek_die_abbrev): Use reader.abfd.
1161
1162 2021-03-14 Tom Tromey <tom@tromey.com>
1163
1164 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1165 m_header_read_in.
1166
1167 2021-03-13 Tom Tromey <tom@tromey.com>
1168
1169 * dwarf2/read.c (struct partial_die_info): Update.
1170 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1171 (load_partial_dies, partial_die_info::partial_die_info): Update.
1172 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1173
1174 2021-03-13 Tom Tromey <tom@tromey.com>
1175
1176 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1177
1178 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1179
1180 PR threads/27239
1181 * cp-support.c: Use scoped_segv_handler_restore.
1182 * event-top.c (thread_local_segv_handler): Made static.
1183 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1184 New function.
1185 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1186 function.
1187 * event-top.h (class scoped_segv_handler_restore): New class.
1188 (thread_local_segv_handler): Removed.
1189
1190 2021-03-10 Tom Tromey <tromey@adacore.com>
1191
1192 * parser-defs.h (parser_state): Change completion to bool.
1193 <parse_completion>: Likewise.
1194 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1195 (ada_resolve_variable, ada_resolve_function): Update.
1196 * ada-lang.c (ada_find_operator_symbol): Change
1197 parse_completion to bool.
1198 (ada_resolve_funcall, ada_resolve_variable)
1199 (ada_resolve_function): Likewise.
1200
1201 2021-03-09 Tom Tromey <tromey@adacore.com>
1202
1203 * eval.c (operation::evaluate_funcall): Use function formal
1204 parameter types when evaluating.
1205
1206 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1207
1208 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1209 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1210 and owner to m_owner.
1211
1212 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1213
1214 * f-exp.h (eval_op_f_loc): Declare.
1215 (expr::fortran_loc_operation): New typedef.
1216 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1217 UNOP_INTRINSIC.
1218 (f77_keywords): Add LOC keyword.
1219 * f-lang.c (eval_op_f_loc): New function.
1220 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1221
1222 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * f-exp.h (eval_op_f_array_shape): Declare.
1225 (fortran_array_shape_operation): New type.
1226 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1227 UNOP_INTRINSIC.
1228 (f77_keywords): Add "shape" keyword.
1229 * f-lang.c (fortran_array_shape): New function.
1230 (eval_op_f_array_shape): New function.
1231 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1232
1233 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1236 of this function.
1237 (expr::fortran_array_size_1arg): New type.
1238 (expr::fortran_array_size_2arg): Likewise.
1239 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1240 UNOP_OR_BINOP_INTRINSIC.
1241 (f77_keywords): Add "size" keyword.
1242 * f-lang.c (fortran_array_size): New function.
1243 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1244 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1245
1246 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * f-exp.h (eval_op_f_rank): Declare.
1249 (expr::fortran_rank_operation): New typedef.
1250 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1251 UNOP_INTRINSIC.
1252 (f77_keywords): Add "rank" keyword.
1253 * f-lang.c (eval_op_f_rank): New function.
1254 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1255
1256 2021-03-08 Tom Tromey <tom@tromey.com>
1257
1258 * printcmd.c (set_command): Remove null check.
1259 * value.c (init_if_undefined_command): Remove null check.
1260
1261 2021-03-08 Tom Tromey <tom@tromey.com>
1262
1263 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1264 Update.
1265 * p-exp.y (variable): Update.
1266 * go-exp.y (variable): Update.
1267 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1268 Remove overload for objfile.
1269 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1270 parameter.
1271 (check_objfile): Likewise.
1272 (dump_for_expression): Likewise. Remove overload for objfile.
1273 (class var_msym_value_operation): Use bound_minimal_symbol.
1274 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1275 parameter.
1276 (var_msym_value_operation::evaluate_for_address)
1277 (var_msym_value_operation::evaluate_for_sizeof)
1278 (var_msym_value_operation::evaluate_for_cast): Update.
1279 * d-exp.y (PrimaryExpression): Update.
1280 * c-exp.y (variable): Update.
1281 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1282 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1283 Update.
1284 * ada-exp.y (write_var_or_type): Update.
1285
1286 2021-03-08 Tom Tromey <tom@tromey.com>
1287
1288 * parser-defs.h (exp_uses_objfile): Return bool.
1289 * parse.c (exp_uses_objfile): Return bool.
1290
1291 2021-03-08 Tom Tromey <tom@tromey.com>
1292
1293 * value.h (eval_skip_value): Don't declare.
1294 * opencl-lang.c (eval_opencl_assign): Update.
1295 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1296 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1297 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1298 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1299 * expop.h (typeof_operation::evaluate)
1300 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1301 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1302 (cxx_cast_operation::evaluate): Update.
1303 * eval.c (eval_skip_value): Remove.
1304 (eval_op_scope, eval_op_var_entry_value)
1305 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1306 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1307 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1308 (eval_op_binary, eval_op_subscript, eval_op_equal)
1309 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1310 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1311 (eval_op_complement, eval_op_lognot, eval_op_ind)
1312 (eval_op_memval, eval_op_preinc, eval_op_predec)
1313 (eval_op_postinc, eval_op_postdec, eval_op_type)
1314 (eval_binop_assign_modify, eval_op_objc_msgcall)
1315 (eval_multi_subscript, logical_and_operation::evaluate)
1316 (logical_or_operation::evaluate, array_operation::evaluate)
1317 (operation::evaluate_for_cast)
1318 (var_msym_value_operation::evaluate_for_cast)
1319 (var_value_operation::evaluate_for_cast): Update.
1320 * c-lang.c (c_string_operation::evaluate): Update.
1321 * c-exp.h (objc_nsstring_operation::evaluate)
1322 (objc_selector_operation::evaluate): Update.
1323 * ada-lang.c (ada_assign_operation::evaluate)
1324 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1325 (ada_atr_size): Update.
1326
1327 2021-03-08 Tom Tromey <tom@tromey.com>
1328
1329 * eval.c: Merge "namespace" scopes.
1330
1331 2021-03-08 Tom Tromey <tom@tromey.com>
1332
1333 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1334 <release>: Inline.
1335 * parse.c (expr_builder::expr_builder, expr_builder::release):
1336 Remove.
1337
1338 2021-03-08 Tom Tromey <tom@tromey.com>
1339
1340 * parse.c (expression::expression, expression::~expression):
1341 Remove.
1342 * expression.h (struct expression): Inline constructor. Remove
1343 destructor.
1344
1345 2021-03-08 Tom Tromey <tom@tromey.com>
1346
1347 * std-operator.def (BINOP_END): Remove.
1348 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1349 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1350 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1351 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1352 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1353 BINOP_END.
1354
1355 2021-03-08 Tom Tromey <tom@tromey.com>
1356
1357 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1358
1359 2021-03-08 Tom Tromey <tom@tromey.com>
1360
1361 * std-operator.def (OP_EXTENDED0): Remove.
1362
1363 2021-03-08 Tom Tromey <tom@tromey.com>
1364
1365 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1366 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1367 Remove.
1368
1369 2021-03-08 Tom Tromey <tom@tromey.com>
1370
1371 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1372 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1373
1374 2021-03-08 Tom Tromey <tom@tromey.com>
1375
1376 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1377 * ada-lang.c (ada_binop_minmax): Update.
1378 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1379 Use BINOP_MIN and BINOP_MAX.
1380
1381 2021-03-08 Tom Tromey <tom@tromey.com>
1382
1383 * value.h (evaluate_subexp_with_coercion): Don't declare.
1384 * parse.c (exp_descriptor_standard): Remove.
1385 (expr_builder::expr_builder, expr_builder::release): Update.
1386 (expression::expression): Remove size_t parameter.
1387 (expression::~expression): Simplify.
1388 (expression::resize): Remove.
1389 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1390 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1391 (write_exp_elt_longcst, write_exp_elt_floatcst)
1392 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1393 (write_exp_string_vector, write_exp_bitstring): Remove.
1394 * p-lang.h (class pascal_language) <opcode_print_table,
1395 op_print_tab>: Remove.
1396 * p-lang.c (pascal_language::op_print_tab): Remove.
1397 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1398 Remove.
1399 * objc-lang.c (objc_op_print_tab): Remove.
1400 (class objc_language) <opcode_print_table>: Remove.
1401 * m2-lang.h (class m2_language) <opcode_print_table,
1402 op_print_tab>: Remove.
1403 * m2-lang.c (m2_language::op_print_tab): Remove.
1404 * language.h (struct language_defn) <post_parser, expression_ops,
1405 opcode_print_table>: Remove.
1406 * language.c (language_defn::expression_ops)
1407 (auto_or_unknown_language::opcode_print_table): Remove.
1408 * go-lang.h (class go_language) <opcode_print_table,
1409 op_print_tab>: Remove.
1410 * go-lang.c (go_language::op_print_tab): Remove.
1411 * f-lang.h (class f_language) <opcode_print_table>: Remove
1412 <op_print_tab>: Remove.
1413 * f-lang.c (f_language::op_print_tab): Remove.
1414 * expression.h (union exp_element): Remove.
1415 (struct expression): Remove size_t parameter from constructor.
1416 <resize>: Remove.
1417 <first_opcode>: Update.
1418 <nelts, elts>: Remove.
1419 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1420 (evaluate_subexp_standard, print_expression, op_string)
1421 (dump_raw_expression): Don't declare.
1422 * expprint.c (print_expression, print_subexp)
1423 (print_subexp_funcall, print_subexp_standard, op_string)
1424 (dump_raw_expression, dump_subexp, dump_subexp_body)
1425 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1426 (dump_prefix_expression): Update.
1427 * eval.c (evaluate_subexp): Remove.
1428 (evaluate_expression, evaluate_type): Update.
1429 (evaluate_subexpression_type): Remove.
1430 (fetch_subexp_value): Remove "pc" parameter. Update.
1431 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1432 (evaluate_subexp_standard, evaluate_subexp_for_address)
1433 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1434 (evaluate_subexp_for_cast): Remove.
1435 (parse_and_eval_type): Update.
1436 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1437 * d-lang.c (d_op_print_tab): Remove.
1438 (class d_language) <opcode_print_table>: Remove.
1439 * c-lang.h (c_op_print_tab): Don't declare.
1440 * c-lang.c (c_op_print_tab): Remove.
1441 (class c_language, class cplus_language, class asm_language, class
1442 minimal_language) <opcode_print_table>: Remove.
1443 * breakpoint.c (update_watchpoint, watchpoint_check)
1444 (watchpoint_exp_is_const, watch_command_1): Update.
1445 * ax-gdb.h (union exp_element): Don't declare.
1446 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1447 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1448 (gen_expr_binop_rest): Remove.
1449 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1450 * ada-lang.c (ada_op_print_tab): Remove.
1451 (class ada_language) <post_parser, opcode_print_table>: Remove.
1452
1453 2021-03-08 Tom Tromey <tom@tromey.com>
1454
1455 * go-lang.c (go_language::expression_ops): Don't declare.
1456 * go-lang.h (class go_language) <expression_ops>: Remove.
1457 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1458 Remove.
1459 (class opencl_language) <expression_ops>: Remove.
1460 * d-lang.c (class d_language) <expression_ops>: Remove.
1461 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1462 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1463 (class c_language, class cplus_language, class asm_language)
1464 (class minimal_language) <expression_ops>: Remove.
1465
1466 2021-03-08 Tom Tromey <tom@tromey.com>
1467
1468 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1469 (evaluate_subexp_type, assign_aggregate)
1470 (aggregate_assign_positional, aggregate_assign_from_choices)
1471 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1472 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1473 (ada_operator_check, ada_forward_operator_length)
1474 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1475 Remove.
1476 (post_parser): Update.
1477 (class ada_language) <expresssion_ops>: Remove.
1478
1479 2021-03-08 Tom Tromey <tom@tromey.com>
1480
1481 * m2-lang.h (class m2_language) <expresssion_ops,
1482 exp_descriptor_modula2>: Remove.
1483 * m2-lang.c (evaluate_subexp_modula2)
1484 (m2_language::exp_descriptor_modula2): Remove.
1485
1486 2021-03-08 Tom Tromey <tom@tromey.com>
1487
1488 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1489 <exp_descriptor_tab>: Remove.
1490 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1491 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1492 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1493 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1494 Remove.
1495
1496 2021-03-08 Tom Tromey <tom@tromey.com>
1497
1498 * rust-lang.h (class rust_language) <expression_ops,
1499 exp_descriptor_tab>: Remove.
1500 * rust-lang.c (rust_evaluate_funcall): Remove.
1501 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1502 EVAL_SKIP.
1503 (rust_evaluate_subexp): Remove.
1504 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1505 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1506 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1507
1508 2021-03-08 Tom Tromey <tom@tromey.com>
1509
1510 * ada-exp.y: Create operations.
1511 (empty_stoken): Remove.
1512 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1513 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1514 (components): New global.
1515 (push_component, choice_component, pop_component, pop_components):
1516 New functions.
1517 (associations): New global
1518 (push_association, pop_association, pop_associations): New
1519 functions.
1520 (ada_parse): Update.
1521 (write_var_from_sym, write_int): Create operations.
1522 (write_exp_op_with_string): Remove.
1523 (write_object_renaming, write_selectors, write_ambiguous_var)
1524 (write_var_or_type, write_name_assoc): Create operations.
1525 * ada-lang.h (ada_index_type): Declare.
1526 * ada-lang.c (ada_index_type): No longer static.
1527
1528 2021-03-08 Tom Tromey <tom@tromey.com>
1529
1530 * f-exp.y: Create operations.
1531 (f_language::parser): Update.
1532
1533 2021-03-08 Tom Tromey <tom@tromey.com>
1534
1535 * m2-exp.y: Create operations.
1536 (m2_language::parser): Update.
1537
1538 2021-03-08 Tom Tromey <tom@tromey.com>
1539
1540 * p-exp.y: Create operations.
1541 (pascal_language::parser): Update.
1542
1543 2021-03-08 Tom Tromey <tom@tromey.com>
1544
1545 * d-exp.y: Create operations.
1546 (d_parse): Update.
1547
1548 2021-03-08 Tom Tromey <tom@tromey.com>
1549
1550 * go-exp.y: Create operations.
1551 (go_language::parser): Update.
1552
1553 2021-03-08 Tom Tromey <tom@tromey.com>
1554
1555 * objc-lang.c (end_msglist): Create operations.
1556 * c-exp.y: Change parser to create operations.
1557 (write_destructor_name): Remove.
1558 (c_parse): Update.
1559
1560 2021-03-08 Tom Tromey <tom@tromey.com>
1561
1562 * rust-exp.y: Create operations.
1563 (rust_parser::convert_params_to_expression): Change return type.
1564 (binop_maker_ftype): New typedef.
1565 (maker_map): New global.
1566 (rust_parser::convert_ast_to_expression): Change return type.
1567 (rust_language::parser): Update.
1568 (_initialize_rust_exp): Initialize maker_map.
1569
1570 2021-03-08 Tom Tromey <tom@tromey.com>
1571
1572 * stap-probe.c (binop_maker_ftype): New typedef.
1573 (stap_maker_map): New global.
1574 (stap_make_binop): New function.
1575 (stap_parse_register_operand): Return operation_up.
1576 (stap_parse_single_operand, stap_parse_argument_conditionally)
1577 (stap_parse_argument_1): Likewise.
1578 (stap_parse_argument): Create operations.
1579 (stap_probe::parse_arguments): Update.
1580 (_initialize_stap_probe): Initialize stap_maker_map.
1581 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1582 type.
1583 * i386-tdep.h (i386_stap_parse_special_token): Change return
1584 type.
1585 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1586 (i386_stap_parse_special_token_three_arg_disp)
1587 (i386_stap_parse_special_token): Change return type.
1588 * gdbarch.sh (stap_parse_special_token): Change return type.
1589 * gdbarch.c: Rebuild.
1590 * gdbarch.h: Rebuild.
1591 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1592 type.
1593 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1594 return type.
1595
1596 2021-03-08 Tom Tromey <tom@tromey.com>
1597
1598 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1599 * gdbarch.h: Rebuild.
1600 * gdbarch.c: Rebuild.
1601 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1602 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1603 return type.
1604 (amd64_dtrace_parse_probe_argument): Update.
1605
1606 2021-03-08 Tom Tromey <tom@tromey.com>
1607
1608 * parser-defs.h (struct parser_state) <push, push_new,
1609 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1610 wrap2>: New methods.
1611 <m_operations>: New member.
1612 * parse.c (parser_state::push_c_string)
1613 (parser_state::push_symbol, parser_state::push_dollar): New
1614 methods.
1615
1616 2021-03-08 Tom Tromey <tom@tromey.com>
1617
1618 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1619 New member.
1620 (struct parser_state) <mark_struct_expression>: New method.
1621 * parse.c (parser_state::mark_struct_expression): Update assert.
1622 (parser_state::mark_struct_expression): New method.
1623 (parser_state::mark_completion_tag): Update assert.
1624 (parse_expression_for_completion): Handle expout_last_op.
1625
1626 2021-03-08 Tom Tromey <tom@tromey.com>
1627
1628 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1629 now in superclass.
1630 * value.h (fetch_subexp_value): Add "op" parameter.
1631 * value.c (init_if_undefined_command): Update.
1632 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1633 * stap-probe.c (stap_probe::compile_to_ax): Update.
1634 * printcmd.c (set_command): Update.
1635 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1636 Update.
1637 * parser-defs.h (struct expr_builder) <set_operation>: New
1638 method.
1639 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1640 * expression.h (struct expression) <first_opcode>: Update.
1641 <op>: New member.
1642 * expprint.c (dump_raw_expression, dump_prefix_expression):
1643 Update.
1644 * expop.h (class var_value_operation) <get_symbol>: New method.
1645 (class register_operation) <get_name>: New method.
1646 (class equal_operation): No longer a typedef, now a subclass.
1647 (class unop_memval_operation) <get_type>: New method.
1648 (class assign_operation) <get_lhs>: New method.
1649 (class unop_cast_operation) <get_type>: New method.
1650 * eval.c (evaluate_expression, evaluate_type)
1651 (evaluate_subexpression_type): Update.
1652 (fetch_subexp_value): Add "op" parameter.
1653 (parse_and_eval_type): Update.
1654 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1655 * breakpoint.c (update_watchpoint, watchpoint_check)
1656 (watchpoint_exp_is_const, watch_command_1): Update.
1657 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1658 Update.
1659
1660 2021-03-08 Tom Tromey <tom@tromey.com>
1661
1662 * ada-lang.c (ada_value_binop): Do not use op_string.
1663
1664 2021-03-08 Tom Tromey <tom@tromey.com>
1665
1666 * expprint.c (dump_for_expression): New overload.
1667 * expop.h (check_objfile, dump_for_expression): Declare new
1668 overloads.
1669 * ada-lang.c (check_objfile): New overload.
1670 (assign_component, ada_aggregate_component::uses_objfile)
1671 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1672 (ada_aggregate_component::assign_aggregate)
1673 (ada_positional_component::uses_objfile)
1674 (ada_positional_component::dump, ada_positional_component::assign)
1675 (ada_discrete_range_association::uses_objfile)
1676 (ada_discrete_range_association::dump)
1677 (ada_discrete_range_association::assign)
1678 (ada_name_association::uses_objfile, ada_name_association::dump)
1679 (ada_name_association::assign)
1680 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1681 (ada_choices_component::assign)
1682 (ada_others_component::uses_objfile, ada_others_component::dump)
1683 (ada_others_component::assign, ada_assign_operation::evaluate):
1684 New methods.
1685 * ada-exp.h (ada_string_operation) <get_name>: New method.
1686 (class ada_assign_operation): New.
1687 (class ada_component): New.
1688 (ada_component_up): New typedef.
1689 (class ada_aggregate_operation, class ada_aggregate_component)
1690 (class ada_positional_component, class ada_others_component)
1691 (class ada_association): New.
1692 (ada_association_up): New typedef.
1693 (class ada_choices_component)
1694 (class ada_discrete_range_association)
1695 (class ada_name_association): New.
1696
1697 2021-03-08 Tom Tromey <tom@tromey.com>
1698
1699 * ada-lang.c (ada_var_value_operation::resolve)
1700 (ada_funcall_operation::resolve)
1701 (ada_ternop_slice_operation::resolve): New methods.
1702 * ada-exp.h (struct ada_resolvable): New.
1703 (class ada_var_value_operation): Derive from ada_resolvable.
1704 <get_block, resolve>: New methods.
1705 (class ada_funcall_operation): Derive from ada_resolvable.
1706 <resolve>: New method.
1707 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1708 <resolve>: New method.
1709
1710 2021-03-08 Tom Tromey <tom@tromey.com>
1711
1712 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1713 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1714 method.
1715 (class ada_funcall_operation): New.
1716
1717 2021-03-08 Tom Tromey <tom@tromey.com>
1718
1719 * ada-lang.c (ada_structop_operation::evaluate): New method.
1720 * ada-exp.h (class ada_structop_operation): New.
1721
1722 2021-03-08 Tom Tromey <tom@tromey.com>
1723
1724 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1725 * ada-exp.h (class ada_unop_ind_operation): New.
1726
1727 2021-03-08 Tom Tromey <tom@tromey.com>
1728
1729 * ada-lang.c (ada_binop_exp): No longer static.
1730 * ada-exp.h (ada_binop_exp_operation): New typedef.
1731
1732 2021-03-08 Tom Tromey <tom@tromey.com>
1733
1734 * ada-lang.c (ada_val_atr): No longer static.
1735 (ada_atr_val_operation::evaluate): New method.
1736 * ada-exp.h (class ada_atr_val_operation): New.
1737
1738 2021-03-08 Tom Tromey <tom@tromey.com>
1739
1740 * ada-lang.c (ada_pos_atr): No longer static.
1741 * ada-exp.h (ada_pos_operation): New typedef.
1742
1743 2021-03-08 Tom Tromey <tom@tromey.com>
1744
1745 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1746 parameters.
1747 (ada_evaluate_subexp): Use it.
1748
1749 2021-03-08 Tom Tromey <tom@tromey.com>
1750
1751 * ada-lang.c (ada_binop_minmax): No longer static.
1752 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1753 New typedefs.
1754
1755 2021-03-08 Tom Tromey <tom@tromey.com>
1756
1757 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1758 New method.
1759 * ada-exp.h (class ada_var_msym_value_operation): New.
1760
1761 2021-03-08 Tom Tromey <tom@tromey.com>
1762
1763 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1764 (ada_var_value_operation::evaluate): New methods.
1765 * ada-exp.h (class ada_var_value_operation): New.
1766
1767 2021-03-08 Tom Tromey <tom@tromey.com>
1768
1769 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1770 * ada-exp.h (class ada_unop_atr_operation): New.
1771
1772 2021-03-08 Tom Tromey <tom@tromey.com>
1773
1774 * ada-lang.c (ada_binop_in_bounds): No longer static.
1775 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1776
1777 2021-03-08 Tom Tromey <tom@tromey.com>
1778
1779 * ada-lang.c (ada_ternop_slice): No longer static.
1780 * ada-exp.h (class ada_ternop_slice_operation): New.
1781
1782 2021-03-08 Tom Tromey <tom@tromey.com>
1783
1784 * ada-exp.h (ada_bitwise_operation): New template class.
1785 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1786 (ada_bitwise_xor_operation): New typedefs.
1787
1788 2021-03-08 Tom Tromey <tom@tromey.com>
1789
1790 * ada-lang.c (ada_equal_binop): No longer static.
1791 * ada-exp.h (class ada_binop_equal_operation): New.
1792
1793 2021-03-08 Tom Tromey <tom@tromey.com>
1794
1795 * ada-lang.c (ada_mult_binop): No longer static.
1796 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1797 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1798
1799 2021-03-08 Tom Tromey <tom@tromey.com>
1800
1801 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1802 * ada-exp.h (class ada_binop_addsub_operation): New.
1803
1804 2021-03-08 Tom Tromey <tom@tromey.com>
1805
1806 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1807 (ada_resolve_variable): Declare.
1808 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1809 (ada_resolve_variable): New functions.
1810 (resolve_subexp): Update.
1811
1812 2021-03-08 Tom Tromey <tom@tromey.com>
1813
1814 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1815 method.
1816 * c-exp.h (class opencl_ternop_cond_operation): New.
1817
1818 2021-03-08 Tom Tromey <tom@tromey.com>
1819
1820 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1821 method.
1822 * c-exp.h (class opencl_logical_binop_operation): New.
1823
1824 2021-03-08 Tom Tromey <tom@tromey.com>
1825
1826 * opencl-lang.c (opencl_structop_operation::evaluate): New
1827 method.
1828 * c-exp.h (class opencl_structop_operation): New.
1829
1830 2021-03-08 Tom Tromey <tom@tromey.com>
1831
1832 * opencl-lang.c (opencl_logical_not): No longer static. Change
1833 parameters.
1834 (evaluate_subexp_opencl): Update.
1835 * c-exp.h (opencl_notequal_operation): New typedef.
1836
1837 2021-03-08 Tom Tromey <tom@tromey.com>
1838
1839 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1840 static. Change parameters.
1841 (eval_opencl_assign): No longer static. Add "op" parameter.
1842 (evaluate_subexp_opencl): Update.
1843 * c-exp.h (opencl_binop_operation): New template class.
1844 (opencl_assign_operation, opencl_equal_operation)
1845 (opencl_notequal_operation, opencl_less_operation)
1846 (opencl_gtr_operation, opencl_geq_operation)
1847 (opencl_leq_operation): New typedefs.
1848
1849 2021-03-08 Tom Tromey <tom@tromey.com>
1850
1851 * opencl-lang.c (opencl_value_cast): No longer static.
1852 * c-exp.h (opencl_cast_type_operation): New typedef.
1853
1854 2021-03-08 Tom Tromey <tom@tromey.com>
1855
1856 * f-exp.h (eval_op_f_allocated): Declare.
1857 (fortran_allocated_operation): New typedef.
1858 * f-lang.c (eval_op_f_allocated): No longer static.
1859
1860 2021-03-08 Tom Tromey <tom@tromey.com>
1861
1862 * f-lang.c (eval_op_f_associated): New functions.
1863 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1864 typedefs.
1865
1866 2021-03-08 Tom Tromey <tom@tromey.com>
1867
1868 * f-lang.c (fortran_bound_1arg::evaluate)
1869 (fortran_bound_2arg::evaluate): New methods.
1870 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1871 New.
1872
1873 2021-03-08 Tom Tromey <tom@tromey.com>
1874
1875 * expop.h (class unop_addr_operation) <get_expression>: New
1876 method.
1877 * f-lang.c (fortran_undetermined::value_subarray)
1878 (fortran_undetermined::evaluate): New methods.
1879 (fortran_prepare_argument): New overload.
1880 * f-exp.h (class fortran_range_operation)
1881 (class fortran_undetermined): New classes.
1882
1883 2021-03-08 Tom Tromey <tom@tromey.com>
1884
1885 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1886 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1887 method.
1888
1889 2021-03-08 Tom Tromey <tom@tromey.com>
1890
1891 * expression.h (class operation) <evaluate_funcall>: New methods.
1892 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1893 (class var_value_operation) <evaluate_funcall>: New method.
1894 (class structop_base_operation) <evaluate_funcall>: New method.
1895 (class var_msym_value_operation) <evaluate_funcall>: New method.
1896 (class structop_member_base): New class.
1897 (class structop_member_operation): Derive from
1898 structop_member_base.
1899 (class structop_mptr_operation): Derive from
1900 structop_member_base.
1901 (class funcall_operation): New class.
1902 * eval.c (operation::evaluate_funcall)
1903 (var_value_operation::evaluate_funcall)
1904 (scope_operation::evaluate_funcall)
1905 (structop_member_base::evaluate_funcall)
1906 (structop_base_operation::evaluate_funcall): New methods.
1907
1908 2021-03-08 Tom Tromey <tom@tromey.com>
1909
1910 * expop.h (class array_operation): New.
1911 * eval.c (array_operation::evaluate_struct_tuple)
1912 (array_operation::evaluate): New methods.
1913
1914 2021-03-08 Tom Tromey <tom@tromey.com>
1915
1916 * expop.h (class adl_func_operation): New.
1917 * eval.c (adl_func_operation::evaluate): New method.
1918
1919 2021-03-08 Tom Tromey <tom@tromey.com>
1920
1921 * ada-lang.c (ada_unop_in_range): No longer static.
1922 * ada-exp.h (class ada_unop_range_operation): New.
1923
1924 2021-03-08 Tom Tromey <tom@tromey.com>
1925
1926 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1927 No longer static.
1928 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1929 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1930
1931 2021-03-08 Tom Tromey <tom@tromey.com>
1932
1933 * expop.h (class logical_and_operation)
1934 (class logical_or_operation): New.
1935 * eval.c (logical_and_operation::evaluate)
1936 (logical_or_operation::evaluate): New methods.
1937 * ax-gdb.c (logical_and_operation::do_generate_ax)
1938 (logical_or_operation::do_generate_ax): New methods.
1939
1940 2021-03-08 Tom Tromey <tom@tromey.com>
1941
1942 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1943 static.
1944 * m2-exp.h: New file.
1945
1946 2021-03-08 Tom Tromey <tom@tromey.com>
1947
1948 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1949 * rust-exp.h (class rust_aggregate_operation): New.
1950
1951 2021-03-08 Tom Tromey <tom@tromey.com>
1952
1953 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1954 No longer static.
1955 * rust-exp.h (class rust_struct_anon): New.
1956 (class rust_structop): New.
1957
1958 2021-03-08 Tom Tromey <tom@tromey.com>
1959
1960 * rust-lang.c (rust_range): No longer static.
1961 * rust-exp.h (class rust_range_operation): New.
1962
1963 2021-03-08 Tom Tromey <tom@tromey.com>
1964
1965 * rust-lang.c (rust_subscript): No longer static.
1966 * rust-exp.h (class rust_subscript_operation): New.
1967
1968 2021-03-08 Tom Tromey <tom@tromey.com>
1969
1970 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1971 parameter.
1972 (rust_evaluate_subexp): Update.
1973 * rust-exp.h (class rust_unop_ind_operation): New.
1974
1975 2021-03-08 Tom Tromey <tom@tromey.com>
1976
1977 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1978 longer static. Add "opcode" parameter.
1979 (rust_evaluate_subexp): Update.
1980 * rust-exp.h: New file.
1981
1982 2021-03-08 Tom Tromey <tom@tromey.com>
1983
1984 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1985 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1986 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1987 (evaluate_subexp_f): Update.
1988 * f-exp.h: New file.
1989
1990 2021-03-08 Tom Tromey <tom@tromey.com>
1991
1992 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1993 * ada-exp.h (class ada_ternop_range_operation): New.
1994
1995 2021-03-08 Tom Tromey <tom@tromey.com>
1996
1997 * ada-lang.c (ada_qual_operation::evaluate): New method.
1998 * ada-exp.h (class ada_qual_operation): New.
1999
2000 2021-03-08 Tom Tromey <tom@tromey.com>
2001
2002 * ada-lang.c (ada_string_operation::evaluate): New method.
2003 * ada-exp.h (class ada_string_operation): New.
2004
2005 2021-03-08 Tom Tromey <tom@tromey.com>
2006
2007 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
2008 * ada-exp.h: New file.
2009
2010 2021-03-08 Tom Tromey <tom@tromey.com>
2011
2012 * expop.h (class multi_subscript_operation): New.
2013 * eval.c (multi_subscript_operation::evaluate): New method.
2014
2015 2021-03-08 Tom Tromey <tom@tromey.com>
2016
2017 * eval.c (objc_msgcall_operation::evaluate): New method.
2018 * c-exp.h (class objc_msgcall_operation): New.
2019
2020 2021-03-08 Tom Tromey <tom@tromey.com>
2021
2022 * expop.h (class var_value_operation): New.
2023 * eval.c (var_value_operation::evaluate)
2024 (var_value_operation::evaluate_for_address)
2025 (var_value_operation::evaluate_with_coercion)
2026 (var_value_operation::evaluate_for_sizeof)
2027 (var_value_operation::evaluate_for_cast): New methods.
2028 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
2029
2030 2021-03-08 Tom Tromey <tom@tromey.com>
2031
2032 * expop.h (cxx_cast_ftype): New typedef.
2033 (cxx_cast_operation): New template.
2034 (dynamic_cast_operation, reinterpret_cast_operation): New
2035 typedefs.
2036
2037 2021-03-08 Tom Tromey <tom@tromey.com>
2038
2039 * expop.h (class unop_cast_type_operation): New.
2040 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
2041 method.
2042
2043 2021-03-08 Tom Tromey <tom@tromey.com>
2044
2045 * expop.h (class unop_cast_operation): New.
2046 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
2047
2048 2021-03-08 Tom Tromey <tom@tromey.com>
2049
2050 * expop.h (class assign_modify_operation): New.
2051 * eval.c (eval_binop_assign_modify): No longer static.
2052 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
2053
2054 2021-03-08 Tom Tromey <tom@tromey.com>
2055
2056 * expop.h (class assign_operation): New.
2057 * ax-gdb.c (assign_operation::do_generate_ax): New method.
2058
2059 2021-03-08 Tom Tromey <tom@tromey.com>
2060
2061 * expop.h (class type_instance_operation): New.
2062 * eval.c (type_instance_operation::evaluate): New method.
2063
2064 2021-03-08 Tom Tromey <tom@tromey.com>
2065
2066 * expop.h (class op_this_operation): New.
2067 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
2068
2069 2021-03-08 Tom Tromey <tom@tromey.com>
2070
2071 * expop.h (class unop_memval_operation)
2072 (class unop_memval_type_operation): New.
2073 * eval.c (eval_op_memval): No longer static.
2074 (unop_memval_operation::evaluate_for_address)
2075 (unop_memval_type_operation::evaluate_for_address)
2076 (unop_memval_operation::evaluate_for_sizeof)
2077 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
2078 * ax-gdb.c (unop_memval_operation::do_generate_ax)
2079 (unop_memval_type_operation::do_generate_ax): New methods.
2080
2081 2021-03-08 Tom Tromey <tom@tromey.com>
2082
2083 * expop.h (class unop_alignof_operation): New.
2084 * eval.c (eval_op_alignof): No longer static.
2085
2086 2021-03-08 Tom Tromey <tom@tromey.com>
2087
2088 * expop.h (class unop_sizeof_operation): New.
2089 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
2090
2091 2021-03-08 Tom Tromey <tom@tromey.com>
2092
2093 * expop.h (class unop_addr_operation): New.
2094 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
2095
2096 2021-03-08 Tom Tromey <tom@tromey.com>
2097
2098 * expop.h (class typeid_operation): New.
2099
2100 2021-03-08 Tom Tromey <tom@tromey.com>
2101
2102 * expop.h (class decltype_operation): New.
2103
2104 2021-03-08 Tom Tromey <tom@tromey.com>
2105
2106 * expop.h (class typeof_operation): New.
2107
2108 2021-03-08 Tom Tromey <tom@tromey.com>
2109
2110 * expop.h (class type_operation): New.
2111 * eval.c (eval_op_type): No longer static.
2112
2113 2021-03-08 Tom Tromey <tom@tromey.com>
2114
2115 * expop.h (class unop_ind_base_operation)
2116 (class unop_ind_operation): New.
2117 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
2118 (unop_ind_base_operation::evaluate_for_address)
2119 (unop_ind_base_operation::evaluate_for_sizeof): New method.
2120 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
2121
2122 2021-03-08 Tom Tromey <tom@tromey.com>
2123
2124 * expop.h (unop_incr_operation): New template.
2125 (preinc_operation, predec_operation, postinc_operation)
2126 (postdec_operation): New typedefs.
2127 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
2128 (eval_op_postdec): No longer static.
2129
2130 2021-03-08 Tom Tromey <tom@tromey.com>
2131
2132 * expop.h (unary_ftype): New typedef.
2133 (unop_operation, usual_ax_binop_operation): New templates.
2134 (unary_plus_operation, unary_neg_operation)
2135 (unary_complement_operation, unary_logical_not_operation): New
2136 typedefs.
2137 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
2138 (eval_op_lognot): No longer static.
2139 * ax-gdb.c (gen_expr_unop): New function.
2140
2141 2021-03-08 Tom Tromey <tom@tromey.com>
2142
2143 * ax-gdb.c (comma_operation::do_generate_ax): New method.
2144
2145 2021-03-08 Tom Tromey <tom@tromey.com>
2146
2147 * expop.h (class repeat_operation): New.
2148 * eval.c (eval_op_repeat): No longer static. Remove "op"
2149 parameter.
2150 (evaluate_subexp_standard): Update.
2151 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2152
2153 2021-03-08 Tom Tromey <tom@tromey.com>
2154
2155 * expop.h (class comparison_operation): New.
2156 (equal_operation, notequal_operation, less_operation)
2157 (gtr_operation, geq_operation, leq_operation): New typedefs.
2158 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2159 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2160
2161 2021-03-08 Tom Tromey <tom@tromey.com>
2162
2163 * expop.h (class subscript_operation): New.
2164 * eval.c (eval_op_subscript): No longer static.
2165
2166 2021-03-08 Tom Tromey <tom@tromey.com>
2167
2168 * expop.h (class binop_operation, class usual_ax_binop_operation):
2169 New.
2170 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2171 (div_operation, rem_operation, lsh_operation, rsh_operation)
2172 (bitwise_and_operation, bitwise_ior_operation)
2173 (bitwise_xor_operation): New typedefs.
2174 * eval.c (eval_op_binary): No longer static.
2175
2176 2021-03-08 Tom Tromey <tom@tromey.com>
2177
2178 * expop.h (class sub_operation): New.
2179 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2180 (evaluate_subexp_standard): Update.
2181
2182 2021-03-08 Tom Tromey <tom@tromey.com>
2183
2184 * expop.h (class add_operation): New.
2185 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2186 (evaluate_subexp_standard): Update.
2187
2188 2021-03-08 Tom Tromey <tom@tromey.com>
2189
2190 * expop.h (class concat_operation): New.
2191 * eval.c (eval_op_concat): No longer static. Remove "op"
2192 parameter.
2193 (evaluate_subexp_standard): Update.
2194
2195 2021-03-08 Tom Tromey <tom@tromey.com>
2196
2197 * expop.h (class structop_member_operation)
2198 (class structop_mptr_operation): New.
2199 * eval.c (eval_op_member): No longer static.
2200
2201 2021-03-08 Tom Tromey <tom@tromey.com>
2202
2203 * expop.h (class structop_ptr_operation): New.
2204 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2205 parameter.
2206
2207 2021-03-08 Tom Tromey <tom@tromey.com>
2208
2209 * expop.h (class structop_base_operation)
2210 (class structop_operation): New.
2211 * eval.c (eval_op_structop_struct): No longer static.
2212
2213 2021-03-08 Tom Tromey <tom@tromey.com>
2214
2215 * expop.h (class complex_operation): New.
2216
2217 2021-03-08 Tom Tromey <tom@tromey.com>
2218
2219 * eval.c (eval_op_objc_selector): No longer static.
2220 * c-exp.h (class objc_selector_operation): New.
2221
2222 2021-03-08 Tom Tromey <tom@tromey.com>
2223
2224 * eval.c: Include c-exp.h.
2225 * c-exp.h (class objc_nsstring_operation): New.
2226
2227 2021-03-08 Tom Tromey <tom@tromey.com>
2228
2229 * c-lang.c (c_string_operation::evaluate): New method.
2230 * c-exp.h: New file.
2231
2232 2021-03-08 Tom Tromey <tom@tromey.com>
2233
2234 * expop.h (class ternop_cond_operation): New.
2235 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2236
2237 2021-03-08 Tom Tromey <tom@tromey.com>
2238
2239 * expop.h (class ternop_slice_operation): New.
2240 * eval.c (eval_op_ternop): No longer static.
2241
2242 2021-03-08 Tom Tromey <tom@tromey.com>
2243
2244 * expop.h (class string_operation): New.
2245 * eval.c (eval_op_string): No longer static.
2246
2247 2021-03-08 Tom Tromey <tom@tromey.com>
2248
2249 * expop.h (class internalvar_operation): New.
2250 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2251
2252 2021-03-08 Tom Tromey <tom@tromey.com>
2253
2254 * expop.h (class bool_operation): New.
2255
2256 2021-03-08 Tom Tromey <tom@tromey.com>
2257
2258 * expop.h (class register_operation): New.
2259 * eval.c (eval_op_register): No longer static.
2260 * ax-gdb.c (register_operation::do_generate_ax): New method.
2261
2262 2021-03-08 Tom Tromey <tom@tromey.com>
2263
2264 * expop.h (class last_operation): New.
2265
2266 2021-03-08 Tom Tromey <tom@tromey.com>
2267
2268 * expop.h (class func_static_var_operation): New.
2269 * eval.c (eval_op_func_static_var): No longer static.
2270
2271 2021-03-08 Tom Tromey <tom@tromey.com>
2272
2273 * expop.h (class var_entry_value_operation): New.
2274 * eval.c (eval_op_var_entry_value): No longer static.
2275
2276 2021-03-08 Tom Tromey <tom@tromey.com>
2277
2278 * expression.h (class operation) <set_outermost>: New method.
2279 * expop.h (class var_msym_value_operation): New.
2280 * eval.c (eval_op_var_msym_value): No longer static.
2281 (var_msym_value_operation::evaluate_for_address)
2282 (var_msym_value_operation::evaluate_for_sizeof)
2283 (var_msym_value_operation::evaluate_for_cast): New methods.
2284 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2285 method.
2286
2287 2021-03-08 Tom Tromey <tom@tromey.com>
2288
2289 * expop.h (class long_const_operation): New.
2290 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2291
2292 2021-03-08 Tom Tromey <tom@tromey.com>
2293
2294 * expop.h (class scope_operation): New.
2295 * eval.c (eval_op_scope): No longer static.
2296 (scope_operation::evaluate_for_address): New method.
2297 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2298
2299 2021-03-08 Tom Tromey <tom@tromey.com>
2300
2301 * expprint.c (float_const_operation::dump): New method.
2302 * expop.h (float_data): New typedef.
2303 (class float_const_operation): New.
2304
2305 2021-03-08 Tom Tromey <tom@tromey.com>
2306
2307 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2308 * ax-gdb.c (gen_expr_binop): New function.
2309 (gen_expr_structop): Likewise.
2310
2311 2021-03-08 Tom Tromey <tom@tromey.com>
2312
2313 * expprint.c (expr::dump_for_expression): New functions.
2314 * expop.h (dump_for_expression): New overloads.
2315 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2316 Update.
2317
2318 2021-03-08 Tom Tromey <tom@tromey.com>
2319
2320 * expression.h (expr::operation): New class.
2321 (expr::make_operation): New function.
2322 (expr::operation_up): New typedef.
2323 * expop.h: New file.
2324 * eval.c (operation::evaluate_for_cast)
2325 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2326 New methods.
2327 * ax-gdb.c (operation::generate_ax): New method.
2328
2329 2021-03-08 Tom Tromey <tom@tromey.com>
2330
2331 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2332 (gen_expr_binop_rest): New overload.
2333
2334 2021-03-08 Tom Tromey <tom@tromey.com>
2335
2336 * eval.c (eval_multi_subscript): New function.
2337 (evaluate_subexp_standard): Use it.
2338
2339 2021-03-08 Tom Tromey <tom@tromey.com>
2340
2341 * ada-lang.c (ada_binop_exp): New function.
2342 (ada_evaluate_subexp): Use it.
2343
2344 2021-03-08 Tom Tromey <tom@tromey.com>
2345
2346 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2347 parameters.
2348 (ada_evaluate_subexp): Use it.
2349
2350 2021-03-08 Tom Tromey <tom@tromey.com>
2351
2352 * ada-lang.c (ada_binop_minmax): New function.
2353 (ada_evaluate_subexp): Use it.
2354
2355 2021-03-08 Tom Tromey <tom@tromey.com>
2356
2357 * ada-lang.c (ada_unop_atr): New function.
2358 (ada_evaluate_subexp): Use it.
2359
2360 2021-03-08 Tom Tromey <tom@tromey.com>
2361
2362 * ada-lang.c (ada_binop_in_bounds): New function.
2363 (ada_evaluate_subexp): Use it.
2364
2365 2021-03-08 Tom Tromey <tom@tromey.com>
2366
2367 * ada-lang.c (ada_ternop_slice): New function.
2368 (ada_evaluate_subexp): Use it.
2369
2370 2021-03-08 Tom Tromey <tom@tromey.com>
2371
2372 * ada-lang.c (ada_equal_binop): New function.
2373 (ada_evaluate_subexp): Use it.
2374
2375 2021-03-08 Tom Tromey <tom@tromey.com>
2376
2377 * ada-lang.c (ada_mult_binop): New function.
2378 (ada_evaluate_subexp): Use it.
2379
2380 2021-03-08 Tom Tromey <tom@tromey.com>
2381
2382 * ada-lang.c (ada_abs): New function.
2383 (ada_evaluate_subexp): Use it.
2384
2385 2021-03-08 Tom Tromey <tom@tromey.com>
2386
2387 * ada-lang.c (ada_atr_size): New function.
2388 (ada_evaluate_subexp): Use it.
2389
2390 2021-03-08 Tom Tromey <tom@tromey.com>
2391
2392 * ada-lang.c (ada_atr_tag): New function.
2393 (ada_evaluate_subexp): Use it.
2394
2395 2021-03-08 Tom Tromey <tom@tromey.com>
2396
2397 * ada-lang.c (ada_unop_in_range): New function.
2398 (ada_evaluate_subexp): Use it.
2399
2400 2021-03-08 Tom Tromey <tom@tromey.com>
2401
2402 * ada-lang.c (ada_unop_neg): New function.
2403 (ada_evaluate_subexp): Use it.
2404
2405 2021-03-08 Tom Tromey <tom@tromey.com>
2406
2407 * ada-lang.c (eval_ternop_in_range): New function.
2408 (ada_evaluate_subexp): Use it.
2409
2410 2021-03-08 Tom Tromey <tom@tromey.com>
2411
2412 * opencl-lang.c (eval_opencl_assign): New function.
2413 (evaluate_subexp_opencl): Use it.
2414
2415 2021-03-08 Tom Tromey <tom@tromey.com>
2416
2417 * eval.c (eval_op_objc_msgcall): New function.
2418 (evaluate_subexp_standard): Use it.
2419
2420 2021-03-08 Tom Tromey <tom@tromey.com>
2421
2422 * eval.c (eval_binop_assign_modify): New function.
2423 (evaluate_subexp_standard): Use it.
2424
2425 2021-03-08 Tom Tromey <tom@tromey.com>
2426
2427 * m2-lang.c (eval_op_m2_subscript): New function.
2428 (evaluate_subexp_modula2): Use it.
2429
2430 2021-03-08 Tom Tromey <tom@tromey.com>
2431
2432 * m2-lang.c (eval_op_m2_high): New function.
2433 (evaluate_subexp_modula2): Use it.
2434
2435 2021-03-08 Tom Tromey <tom@tromey.com>
2436
2437 * eval.c (evaluate_subexp_for_address_base): New function.
2438 (evaluate_subexp_for_address): Use it.
2439 (evaluate_subexp_for_sizeof_base): New function.
2440 (evaluate_subexp_for_sizeof): Use it.
2441
2442 2021-03-08 Tom Tromey <tom@tromey.com>
2443
2444 * rust-lang.c (eval_op_rust_structop): New function.
2445 (rust_evaluate_subexp): Use it.
2446
2447 2021-03-08 Tom Tromey <tom@tromey.com>
2448
2449 * rust-lang.c (eval_op_rust_struct_anon): New function.
2450 (rust_evaluate_subexp): Use it.
2451
2452 2021-03-08 Tom Tromey <tom@tromey.com>
2453
2454 * rust-lang.c (eval_op_rust_array): New function.
2455 (rust_evaluate_subexp): Use it.
2456
2457 2021-03-08 Tom Tromey <tom@tromey.com>
2458
2459 * rust-lang.c (eval_op_rust_complement): New function.
2460 (rust_evaluate_subexp): Use it.
2461
2462 2021-03-08 Tom Tromey <tom@tromey.com>
2463
2464 * rust-lang.c (eval_op_rust_ind): New function.
2465 (rust_evaluate_subexp): Use it.
2466
2467 2021-03-08 Tom Tromey <tom@tromey.com>
2468
2469 * rust-lang.c (rust_subscript): Change parameters.
2470 (rust_evaluate_subexp): Update.
2471
2472 2021-03-08 Tom Tromey <tom@tromey.com>
2473
2474 * rust-lang.c (rust_range): Change parameters.
2475 (rust_evaluate_subexp): Update.
2476
2477 2021-03-08 Tom Tromey <tom@tromey.com>
2478
2479 * f-lang.c (eval_op_f_allocated): New function.
2480 (evaluate_subexp_f): Use it.
2481
2482 2021-03-08 Tom Tromey <tom@tromey.com>
2483
2484 * f-lang.c (fortran_require_array): New function.
2485 (evaluate_subexp_f): Use it.
2486
2487 2021-03-08 Tom Tromey <tom@tromey.com>
2488
2489 * f-lang.c (eval_op_f_kind): New function.
2490 (evaluate_subexp_f): Use it.
2491
2492 2021-03-08 Tom Tromey <tom@tromey.com>
2493
2494 * f-lang.c (eval_op_f_cmplx): New function.
2495 (evaluate_subexp_f): Use it.
2496
2497 2021-03-08 Tom Tromey <tom@tromey.com>
2498
2499 * f-lang.c (eval_op_f_modulo): New function.
2500 (evaluate_subexp_f): Use it.
2501
2502 2021-03-08 Tom Tromey <tom@tromey.com>
2503
2504 * f-lang.c (eval_op_f_floor): New function.
2505 (evaluate_subexp_f): Use it.
2506
2507 2021-03-08 Tom Tromey <tom@tromey.com>
2508
2509 * f-lang.c (eval_op_f_ceil): New function.
2510 (evaluate_subexp_f): Use it.
2511
2512 2021-03-08 Tom Tromey <tom@tromey.com>
2513
2514 * f-lang.c (eval_op_f_mod): New function.
2515 (evaluate_subexp_f): Use it.
2516
2517 2021-03-08 Tom Tromey <tom@tromey.com>
2518
2519 * f-lang.c (eval_op_f_abs): New function.
2520 (evaluate_subexp_f): Use it.
2521
2522 2021-03-08 Tom Tromey <tom@tromey.com>
2523
2524 * eval.c (eval_op_type): New function.
2525 (evaluate_subexp_standard): Use it.
2526
2527 2021-03-08 Tom Tromey <tom@tromey.com>
2528
2529 * eval.c (eval_op_postdec): New function.
2530 (evaluate_subexp_standard): Use it.
2531
2532 2021-03-08 Tom Tromey <tom@tromey.com>
2533
2534 * eval.c (eval_op_postinc): New function.
2535 (evaluate_subexp_standard): Use it.
2536
2537 2021-03-08 Tom Tromey <tom@tromey.com>
2538
2539 * eval.c (eval_op_predec): New file.
2540 (evaluate_subexp_standard): Use it.
2541
2542 2021-03-08 Tom Tromey <tom@tromey.com>
2543
2544 * eval.c (eval_op_preinc): New function.
2545 (evaluate_subexp_standard): Use it.
2546
2547 2021-03-08 Tom Tromey <tom@tromey.com>
2548
2549 * eval.c (eval_op_memval): New function.
2550 (evaluate_subexp_standard): Use it.
2551
2552 2021-03-08 Tom Tromey <tom@tromey.com>
2553
2554 * eval.c (eval_op_alignof): New function.
2555 (evaluate_subexp_standard): Use it.
2556
2557 2021-03-08 Tom Tromey <tom@tromey.com>
2558
2559 * eval.c (eval_op_ind): New function.
2560 (evaluate_subexp_standard): Use it.
2561
2562 2021-03-08 Tom Tromey <tom@tromey.com>
2563
2564 * eval.c (eval_op_lognot): New function.
2565 (evaluate_subexp_standard): Use it.
2566
2567 2021-03-08 Tom Tromey <tom@tromey.com>
2568
2569 * eval.c (eval_op_complement): New function.
2570 (evaluate_subexp_standard): Use it.
2571
2572 2021-03-08 Tom Tromey <tom@tromey.com>
2573
2574 * eval.c (eval_op_neg): New function.
2575 (evaluate_subexp_standard): Use it.
2576
2577 2021-03-08 Tom Tromey <tom@tromey.com>
2578
2579 * eval.c (eval_op_plus): New function.
2580 (evaluate_subexp_standard): Use it.
2581
2582 2021-03-08 Tom Tromey <tom@tromey.com>
2583
2584 * eval.c (eval_op_repeat): New function.
2585 (evaluate_subexp_standard): Use it.
2586
2587 2021-03-08 Tom Tromey <tom@tromey.com>
2588
2589 * eval.c (eval_op_leq): New function.
2590 (evaluate_subexp_standard): Use it.
2591
2592 2021-03-08 Tom Tromey <tom@tromey.com>
2593
2594 * eval.c (eval_op_geq): New function.
2595 (evaluate_subexp_standard): Use it.
2596
2597 2021-03-08 Tom Tromey <tom@tromey.com>
2598
2599 * eval.c (eval_op_gtr): New function.
2600 (evaluate_subexp_standard): Use it.
2601
2602 2021-03-08 Tom Tromey <tom@tromey.com>
2603
2604 * eval.c (eval_op_less): New function.
2605 (evaluate_subexp_standard): Use it.
2606
2607 2021-03-08 Tom Tromey <tom@tromey.com>
2608
2609 * eval.c (eval_op_notequal): New function.
2610 (evaluate_subexp_standard): Use it.
2611
2612 2021-03-08 Tom Tromey <tom@tromey.com>
2613
2614 * eval.c (eval_op_equal): New function.
2615 (evaluate_subexp_standard): Use it.
2616
2617 2021-03-08 Tom Tromey <tom@tromey.com>
2618
2619 * eval.c (eval_op_subscript): New function.
2620 (evaluate_subexp_standard): Use it.
2621
2622 2021-03-08 Tom Tromey <tom@tromey.com>
2623
2624 * eval.c (eval_op_binary): New function.
2625 (evaluate_subexp_standard): Use it.
2626
2627 2021-03-08 Tom Tromey <tom@tromey.com>
2628
2629 * eval.c (eval_op_sub): New function.
2630 (evaluate_subexp_standard): Use it.
2631
2632 2021-03-08 Tom Tromey <tom@tromey.com>
2633
2634 * eval.c (eval_op_add): New function.
2635 (evaluate_subexp_standard): Use it.
2636
2637 2021-03-08 Tom Tromey <tom@tromey.com>
2638
2639 * eval.c (eval_op_member): New function.
2640 (evaluate_subexp_standard): Use it.
2641
2642 2021-03-08 Tom Tromey <tom@tromey.com>
2643
2644 * eval.c (eval_op_structop_ptr): New function.
2645 (evaluate_subexp_standard): Use it.
2646
2647 2021-03-08 Tom Tromey <tom@tromey.com>
2648
2649 * eval.c (eval_op_structop_struct): New function.
2650 (evaluate_subexp_standard): Use it.
2651
2652 2021-03-08 Tom Tromey <tom@tromey.com>
2653
2654 * eval.c (eval_op_ternop): New function.
2655 (evaluate_subexp_standard): Use it.
2656
2657 2021-03-08 Tom Tromey <tom@tromey.com>
2658
2659 * eval.c (eval_op_concat): New function.
2660 (evaluate_subexp_standard): Use it.
2661
2662 2021-03-08 Tom Tromey <tom@tromey.com>
2663
2664 * eval.c (eval_op_objc_selector): New function.
2665 (evaluate_subexp_standard): Use it.
2666
2667 2021-03-08 Tom Tromey <tom@tromey.com>
2668
2669 * eval.c (eval_op_string): New function.
2670 (evaluate_subexp_standard): Use it.
2671
2672 2021-03-08 Tom Tromey <tom@tromey.com>
2673
2674 * eval.c (eval_op_register): New function.
2675 (evaluate_subexp_standard): Use it.
2676
2677 2021-03-08 Tom Tromey <tom@tromey.com>
2678
2679 * eval.c (eval_op_func_static_var): New function.
2680 (evaluate_subexp_standard): Use it.
2681
2682 2021-03-08 Tom Tromey <tom@tromey.com>
2683
2684 * eval.c (eval_op_var_msym_value): New function.
2685 (evaluate_subexp_standard): Use it.
2686
2687 2021-03-08 Tom Tromey <tom@tromey.com>
2688
2689 * eval.c (eval_op_var_entry_value): New function.
2690 (evaluate_subexp_standard): Use it.
2691
2692 2021-03-08 Tom Tromey <tom@tromey.com>
2693
2694 * eval.c (eval_op_scope): New function.
2695 (evaluate_subexp_standard): Use it.
2696
2697 2021-03-06 Chernov Sergey <klen_s@mail.ru>
2698
2699 PR gdb/27528:
2700 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2701
2702 2021-03-06 Tom Tromey <tom@tromey.com>
2703
2704 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2705 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2706 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2707 (locate_dwz_sections, dwz_search_other_debugdirs)
2708 (dwarf2_get_dwz_file): Move to dwz.c.
2709 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2710 read.h.
2711 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2712 (dwarf2_get_dwz_file): Move from read.c.
2713
2714 2021-03-06 Tom Tromey <tom@tromey.com>
2715
2716 * debuginfod-support.h: Include scoped_fd.h.
2717
2718 2021-03-06 Tom Tromey <tom@tromey.com>
2719
2720 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2721 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2722 (get_abbrev_section_for_cu, read_attribute_value)
2723 (get_debug_line_section): Update.
2724 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2725
2726 2021-03-06 Tom Tromey <tom@tromey.com>
2727
2728 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2729 method.
2730 * dwarf2/read.c (section_is_p): Remove.
2731 (dwarf2_per_bfd::locate_sections)
2732 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2733 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2734 (dwarf2_locate_common_dwp_sections)
2735 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2736 Update.
2737
2738 2021-03-06 Tom Tromey <tom@tromey.com>
2739
2740 * xcoffread.c: Include sect-names.h.
2741 * symfile.h (struct dwarf2_section_names, struct
2742 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2743 * dwarf2/sect-names.h: New file, from symfile.h.
2744 * dwarf2/read.c: Include sect-names.h.
2745
2746 2021-03-06 Tom Tromey <tom@tromey.com>
2747
2748 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2749 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2750 (abbrev_table::read): Update.
2751 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2752 (struct abbrev_info): Reformat.
2753 <attrs>: Now an array.
2754 (struct abbrev_table) <alloc_abbrev>: Remove.
2755
2756 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2757
2758 * ctfread.c (ctf_psymtab_add_enums): New function.
2759 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2760
2761 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2762
2763 * ctfread.c (read_func_kind_type): Set up function arguments.
2764
2765 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2766 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2769 includes.
2770 (riscv_csrset): New static global.
2771 (riscv_update_csrmap): New function.
2772 (riscv_iterate_over_regset_sections): Process CSRs.
2773
2774 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2775
2776 * riscv-tdep.c (riscv_feature_name_csr): Define.
2777 (riscv_feature_name_cpu): Define.
2778 (riscv_feature_name_fpu): Define.
2779 (riscv_feature_name_virtual): Define.
2780 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2781 (riscv_freg_feature): Use riscv_feature_name_fpu.
2782 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2783 (riscv_csr_feature): Use riscv_feature_name_csr.
2784 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2785
2786 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2787 Craig Blackmore <craig.blackmore@embecosm.com>
2788
2789 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2790 (ALLDEPFILES): Add riscv-none-tdep.c.
2791 * configure: Regenerate.
2792 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2793 support.
2794 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2795 * elf-none-tdep.c: New file.
2796 * elf-none-tdep.h: New file.
2797 * riscv-none-tdep.c: New file.
2798
2799 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2800 Andrew Burgess <andrew.burgess@embecosm.com>
2801
2802 * corelow.c: Add 'xml-tdesc.h' include.
2803 (core_target::read_description): Load the target description from
2804 the core file when possible.
2805 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2806 note.
2807 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2808 (gcore_elf_make_tdesc_note): New function.
2809 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2810 * linux-tdep.c (linux_make_corefile_notes): Add target description
2811 note.
2812
2813 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2814
2815 * Makefile.in (SFILES): Add gcore-elf.c.
2816 (HFILES_NO_SRCDIR): Add gcore-elf.h
2817 * configure: Regenerate.
2818 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2819 support.
2820 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2821 (struct fbsd_collect_regset_section_cb_data): Delete.
2822 (fbsd_collect_regset_section_cb): Delete.
2823 (fbsd_collect_thread_registers): Delete.
2824 (struct fbsd_corefile_thread_data): Delete.
2825 (fbsd_corefile_thread): Delete.
2826 (fbsd_make_corefile_notes): Call
2827 gcore_elf_build_thread_register_notes instead of the now deleted
2828 FreeBSD code.
2829 * gcore-elf.c: New file, the content was moved here from
2830 linux-tdep.c, functions were renamed and given minor cleanup.
2831 * gcore-elf.h: New file.
2832 * gcore.c (gcore_find_signalled_thread): Moved here from
2833 linux-tdep.c and given a new name. Minor cleanups.
2834 * gcore.h (gcore_find_signalled_thread): Declare.
2835 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2836 (struct linux_collect_regset_section_cb_data): Delete.
2837 (linux_collect_regset_section_cb): Delete.
2838 (linux_collect_thread_registers): Delete.
2839 (linux_corefile_thread): Call
2840 gcore_elf_build_thread_register_notes.
2841 (find_signalled_thread): Delete.
2842 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2843
2844 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2845
2846 PR gdb/27147
2847 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2848 process_stratum_target parameter,
2849 sparc_store_inferior_registers): update callers.
2850 * sparc-nat.c (sparc_fetch_inferior_registers,
2851 sparc_store_inferior_registers): Add process_stratum_target
2852 parameter. Switch current thread before calling
2853 sparc_supply_gregset / sparc_collect_rwindow.
2854 (sparc_store_inferior_registers): Likewise.
2855 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2856 (sparc32obsd_collect_uthread): Likewise.
2857 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2858 Add assertion.
2859 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2860 sparc64obsd_supply_uthread): Add assertion.
2861
2862 2021-03-04 Tom Tromey <tromey@adacore.com>
2863
2864 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2865 (aux_add_nonlocal_symbols): Update.
2866 (ada_add_block_symbols): Change "found_sym" to bool.
2867
2868 2021-03-03 Tom Tromey <tromey@adacore.com>
2869
2870 * ada-lang.c (ada_resolve_function): Update comment.
2871 (is_nonfunction, add_symbols_from_enclosing_procs)
2872 (remove_extra_symbols): Likewise.
2873 (struct match_data): Add constructor, initializers.
2874 (add_nonlocal_symbols): Remove memset.
2875 (aux_add_nonlocal_symbols): Update comment.
2876 (ada_add_block_renamings, add_nonlocal_symbols)
2877 (ada_add_all_symbols): Likewise.
2878 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2879
2880 2021-03-02 Tom Tromey <tromey@adacore.com>
2881
2882 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2883 (cast_to_gnat_encoded_fixed_point_type): Remove.
2884 (ada_value_cast, ada_evaluate_subexp): Update.
2885 (gnat_encoded_fixed_point_type_info)
2886 (ada_is_gnat_encoded_fixed_point_type)
2887 (gnat_encoded_fixed_point_delta)
2888 (gnat_encoded_fixed_point_scaling_factor): Remove.
2889 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2890 (gnat_encoded_fixed_point_delta)
2891 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2892 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2893 (ada_print_type): Update.
2894 * ada-valprint.c (ada_value_print_num): Update.
2895 * dwarf2/read.c (ada_get_gnat_encoded_number)
2896 (ada_get_gnat_encoded_ratio): New functions.
2897 (finish_fixed_point_type): Use them. Add parameters.
2898 (GNAT_FIXED_POINT_SUFFIX): New define.
2899 (gnat_encoded_fixed_point_type_info): New function.
2900 (read_base_type): Handle gnat encodings.
2901
2902 2021-03-02 Tom Tromey <tromey@adacore.com>
2903
2904 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2905 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2906 std::string.
2907 (GROW_VECT): Remove.
2908 (grow_vect): Remove.
2909
2910 2021-03-02 Tom Tromey <tromey@adacore.com>
2911
2912 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2913 * ada-lang.c (resolve_subexp): Update.
2914 (ada_resolve_function): Accept a vector.
2915 (is_nonfunction, add_defn_to_vec)
2916 (add_symbols_from_enclosing_procs): Likewise.
2917 (num_defns_collected, defns_collected): Remove.
2918 (remove_extra_symbols): Return a vector.
2919 (remove_irrelevant_renamings): Return void.
2920 (ada_add_local_symbols): Accept a vector.
2921 (struct match_data) <obstackp>: Remove.
2922 <resultp>: New member.
2923 (aux_add_nonlocal_symbols): Update.
2924 (ada_add_block_renamings, add_nonlocal_symbols)
2925 (ada_add_all_symbols): Accept a vector.
2926 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2927 vector.
2928 (ada_lookup_symbol): Update.
2929 (ada_add_block_symbols): Accept a vector.
2930 (get_var_value, iterate_over_symbols): Update.
2931 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2932 Update.
2933
2934 2021-03-02 Tom Tromey <tromey@adacore.com>
2935
2936 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2937
2938 2021-03-02 Tom Tromey <tromey@adacore.com>
2939
2940 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2941 auto_obstack.
2942 <root>: Initialize.
2943 (ada_pspace_data): Remove destructor.
2944 <sym_cache>: Now a unique_ptr.
2945 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2946 (ada_get_symbol_cache): Use 'new'.
2947 (ada_clear_symbol_cache): Rewrite.
2948
2949 2021-03-02 Tom Tromey <tromey@adacore.com>
2950
2951 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2952 is null.
2953
2954 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
2955
2956 PR gdb/27393
2957 * source.c (add_path): Skip empty dirnames.
2958
2959 2021-02-25 Kevin Buettner <kevinb@redhat.com>
2960
2961 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2962 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2963
2964 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 PR gdb/26861
2967 * target.c (target_mourn_inferior): Only compare pids in
2968 target_mourn_inferior.
2969
2970 2021-02-25 Jan Matyas <jmatyas@codasip.com>
2971
2972 PR gdb/26819
2973 * remote.c (remote_target::start_remote): Ensure the single
2974 thread, automatically added for remote targets without the
2975 concept of threading, is initially in set to the "resumed"
2976 state.
2977 * remote.c (remote_target::add_current_inferior_and_thread):
2978 Add return value - return the main thread.
2979
2980 2021-02-25 Jan Vrany <jan.vrany@labware.com>
2981
2982 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2983 (mi_tsv_created): Likewise.
2984 (mi_tsv_deleted): Likewise.
2985
2986 2021-02-25 Tom de Vries <tdevries@suse.de>
2987
2988 PR symtab/27354
2989 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2990 section_kind for &dwo_file->sections.info.
2991
2992 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2993
2994 PR fortran/26155
2995 * f-lang.c (fortran_argument_convert): Delete declaration.
2996 (fortran_prepare_argument): New function.
2997 (evaluate_subexp_f): Move logic to new function
2998 fortran_prepare_argument.
2999
3000 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3001
3002 * f-exp.y (f77_keywords): Add 'associated'.
3003 * f-lang.c (fortran_associated): New function.
3004 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
3005 (operator_length_f): Likewise.
3006 (print_unop_or_binop_subexp_f): New function.
3007 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
3008 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
3009 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
3010 (operator_check_f): Likewise.
3011 * std-operator.def: Add FORTRAN_ASSOCIATED.
3012
3013 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
3014
3015 * f-exp.y (fortran_operators): Add ".xor.".
3016
3017 2021-02-24 Tom de Vries <tdevries@suse.de>
3018
3019 PR symtab/27336
3020 * dwarf2/attribute.c (attribute::form_is_signed): New function
3021 factored out of ...
3022 * dwarf2/attribute.h (attribute::as_signed): ... here.
3023 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
3024 (attribute::form_is_signed): Declare.
3025 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
3026 for DW_AT_decl_file.
3027
3028 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3029
3030 * nat/aarch64-linux-hw-point.c: Add comment regarding include
3031 order for <sys/ptrace.h> and <asm/ptrace.h>.
3032
3033 2021-02-24 Kevin Buettner <kevinb@redhat.com>
3034
3035 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
3036 <sys/ptrace.h>.
3037
3038 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3039
3040 * exec.c (set_section_command): Move variable declarations into
3041 the function body, and use std::string instead of a fixed size
3042 buffer.
3043
3044 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * exec.c (exec_target::get_section_table): Delete member function.
3047 (section_table_read_available_memory): Use current_top_target, not
3048 just the exec_ops target.
3049 * target-delegates.c: Regenerate.
3050 * target.c (default_get_section_table): New function.
3051 * target.h (target_ops::get_section_table): Change default
3052 behaviour to call default_get_section_table.
3053 (default_get_section_table): Declare.
3054
3055 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3056
3057 * exec.c (exec_target::close): Call new clear_target_sections
3058 function.
3059 (program_space::add_target_sections): Update name of member
3060 variable.
3061 (program_space::add_target_sections): Update name of member
3062 variable.
3063 (program_space::remove_target_sections): Likewise.
3064 (exec_one_fork): Use new target_sections member function.
3065 (exec_target::get_section_table): Likewise.
3066 (exec_target::files_info): Likewise.
3067 (set_section_command): Likewise.
3068 (exec_set_section_address): Likewise.
3069 (exec_target::has_memory): Use new target_sections member
3070 function.
3071 * progspace.h (program_space::clear_target_sections): New member
3072 function.
3073 (program_space::target_sections): Rename member variable to
3074 m_target_sections, replace with a new member function.
3075 (program_space::m_target_sections): New member variable.
3076 * solib-dsbt.c (scan_dyntag): Use new member function.
3077 * solib-svr4.c (scan_dyntag): Likewise.
3078
3079 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3080
3081 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
3082 return type const.
3083 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
3084 (section_table_read_available_memory): Make local const.
3085 (exec_target::xfer_partial): Make local const.
3086 (print_section_info): Make parameter const.
3087 * gdb/exec.h (print_section_info): Likewise.
3088 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
3089 const.
3090 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
3091 Likewise.
3092 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
3093 Likewise.
3094 * gdb/s390-tdep.c (s390_load): Likewise.
3095 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
3096 * gdb/solib-svr4.c (scan_dyntag): Likewise.
3097 * gdb/target-debug.h (target_debug_print_target_section_table_p):
3098 Rename to...
3099 (target_debug_print_const_target_section_table_p): ...this.
3100 * gdb/target-delegates.c: Regenerate.
3101 * gdb/target.c (target_get_section_table): Make return type const.
3102 (target_section_by_addr): Likewise. Also make some locals const.
3103 (memory_xfer_partial_1): Make some locals const.
3104 * gdb/target.h (struct target_ops) <get_section_table>: Make
3105 return type const.
3106 (target_section_by_addr): Likewise.
3107 (target_get_section_table): Likewise.
3108
3109 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3110
3111 * NEWS: Mention new 'maint info target-sections' command.
3112 * maint.c (maintenance_info_target_sections): New function.
3113 (_initialize_maint_cmds): Register new command.
3114
3115 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3116
3117 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
3118 (riscv_features_from_bfd): ...this. Change parameter type to
3119 'bfd*', and update as required.
3120 (riscv_find_default_target_description): Update call to
3121 riscv_features_from_bfd. Select a default xlen based on
3122 info.bfd_arch_info.
3123 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
3124
3125 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * eval.c (evaluate_subexp_standard): Call value_ind for points to
3128 dynamic types in UNOP_IND.
3129
3130 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3131
3132 PR gdb/26828
3133 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
3134 Instantiate queue.
3135 (~dwarf2_queue_guard): Clear queue.
3136 (queue_comp_unit): Assert that queue is
3137 instantiated.
3138 (process_queue): Adjust.
3139 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
3140
3141 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3142
3143 PR gdb/26828
3144 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
3145 to decide whether or not to enqueue it for expansion.
3146 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
3147 after calling maybe_queue_comp_unit.
3148
3149 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3150
3151 * linux-nat.c (linux_nat_filter_event): Return void.
3152
3153 2021-02-22 Tom Tromey <tromey@adacore.com>
3154
3155 * solib-svr4.c (enable_break): Update.
3156 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3157 type.
3158 (target_bfd_reopen): Change parameter type.
3159 * bfd-target.h (target_bfd_reopen): Change parameter type.
3160
3161 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3162
3163 * thread.c (add_thread_silent): Add assert.
3164 (find_thread_ptid): Add assert.
3165
3166 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3167
3168 PR gdb/27435
3169 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3170 (target_unpush_up): Likewise.
3171 * procfs.c (procfs_target::attach): Push target early. Use
3172 target_unpush_up to unpush target in case of error.
3173 * target.h (struct target_unpusher): Move here.
3174 (target_unpush_up): Likewise.
3175
3176 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3177
3178 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3179 (which in turn includes <gnulib/config.h>) before include
3180 of <signal.h>.
3181
3182 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3183
3184 PR 27158
3185 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3186 (decode_j_type_insn): Likewise.
3187 (decode_cj_type_insn): Likewise.
3188 (decode_b_type_insn): Likewise.
3189 (decode): Likewise.
3190
3191 2021-02-18 Tom Tromey <tom@tromey.com>
3192
3193 * expression.h (struct expression) <evaluate>: Declare method.
3194 * eval.c (evaluate_subexp): Simplify.
3195 (expression::evaluate): New method.
3196 (evaluate_expression, evaluate_type): Use expression::evaluate.
3197
3198 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3199
3200 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3201 to accessing it.
3202 (ada_lookup_name_info): Likewise.
3203
3204 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3205
3206 * aclocal.m4: Regenerate.
3207
3208 2021-02-12 Tom de Vries <tdevries@suse.de>
3209
3210 PR threads/26228
3211 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3212 (lin_thread_signals): New static var.
3213 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3214 New function.
3215 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3216 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3217 Declare.
3218 * linux-thread-db.c (check_thread_signals): Use
3219 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3220
3221 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * f-exp.y (f77_keywords): Add allocated.
3224 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3225 (operator_length_f): Likewise.
3226 (print_subexp_f): Likewise.
3227 (dump_subexp_body_f): Likewise.
3228 (operator_check_f): Likewise.
3229 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3230
3231 2021-02-11 Tom de Vries <tdevries@suse.de>
3232
3233 PR symtab/27353
3234 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3235 Return true for DW_FORM_strx.
3236
3237 2021-02-11 Tom Tromey <tromey@adacore.com>
3238
3239 PR gdb/27383:
3240 * parse.c (write_exp_symbol_reference): Write sym.block.
3241
3242 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3243
3244 * NEWS: Mention changes to 'maint info sections'.
3245 * maint.c (match_substring): Return a bool, fix whitespace issue.
3246 (struct single_bfd_flag_info): New struct.
3247 (bfd_flag_info): New static global.
3248 (match_bfd_flags): Return a bool, use bfd_flag_info.
3249 (print_bfd_flags): Use bfd_flag_info.
3250 (maint_print_section_info): Delete trailing whitespace.
3251 (struct maint_info_sections_opts): New struct.
3252 (maint_info_sections_option_defs): New static global.
3253 (maint_info_sections_completer): New function.
3254 (maintenance_info_sections): Use option parsing mechanism.
3255 (_initialize_maint_cmds): Update command help text for 'maint info
3256 sections' and register a command completer.
3257
3258 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3259
3260 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3261 functionality merged into...
3262 (maint_print_all_sections): ...this new function.
3263 (maintenance_info_sections): Make use of maint_print_all_sections,
3264 allow all objects to be printed even where there's no executable.
3265
3266 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3267
3268 * breakpoint.c (resolve_sal_pc): Make use of
3269 bound_minimal_symbol::obj_section.
3270 * maint.c (maintenance_translate_address): Likewise.
3271 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3272 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3273 member function.
3274 * printcmd.c (info_address_command): Make use of
3275 bound_minimal_symbol::obj_section.
3276
3277 2021-02-11 Alan Modra <amodra@gmail.com>
3278
3279 * arm-symbian-tdep.c: Delete.
3280 * NEWS: Mention arm-symbian removal.
3281 * Makefile.in: Remove arm-symbian-tdep entries.
3282 * configure.tgt: Remove arm*-*-symbianelf*.
3283 * doc/gdb.texinfo: Remove mention of SymbianOS.
3284 * osabi.c (gdb_osabi_names): Remove "Symbian".
3285 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3286 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3287 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3288 handling.
3289 * testsuite/gdb.base/dup-sect.exp: Likewise.
3290 * testsuite/gdb.base/long_long.exp: Likewise.
3291 * testsuite/gdb.base/solib-weak.exp: Likewise.
3292 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3293 * testsuite/gdb.python/py-section-script.exp: Likewise.
3294 * testsuite/lib/dwarf.exp: Likewise.
3295 * testsuite/lib/gdb.exp: Likewise.
3296
3297 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3298
3299 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3300 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3301 (one_or_two_args): New pattern.
3302 (f77_keywords): Add lbound and ubound.
3303 * f-lang.c (fortran_bounds_all_dims): New function.
3304 (fortran_bounds_for_dimension): New function.
3305 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3306 (operator_length_f): Likewise.
3307 (print_subexp_f): Likewise.
3308 (dump_subexp_body_f): Likewise.
3309 (operator_check_f): Likewise.
3310 * std-operator.def (FORTRAN_LBOUND): Define.
3311 (FORTRAN_UBOUND): Define.
3312
3313 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3314
3315 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3316 and set_section_index member functions where appropriate.
3317 * coffread.c (coff_symtab_read): Likewise.
3318 (process_coff_symbol): Likewise.
3319 * ctfread.c (set_symbol_address): Likewise.
3320 * dwarf2/read.c (add_partial_symbol): Likewise.
3321 (var_decode_location): Likewise.
3322 * language.c: Likewise.
3323 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3324 (compact_minimal_symbols): Likewise.
3325 (minimal_symbol_upper_bound): Likewise.
3326 * objfiles.c (relocate_one_symbol): Likewise.
3327 * psympriv.h (partial_symbol::obj_section): Likewise.
3328 (partial_symbol::address): Likewise.
3329 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3330 * stabsread.c (scan_file_globals): Likewise.
3331 * symmisc.c (dump_msymbols): Likewise.
3332 * symtab.c (general_symbol_info::obj_section): Likewise.
3333 (fixup_section): Likewise.
3334 (get_msymbol_address): Likewise.
3335 * symtab.h (general_symbol_info::section): Rename to...
3336 (general_symbol_info::m_section): ...this.
3337 (general_symbol_info::set_section_index): New member function.
3338 (general_symbol_info::section_index): Likewise.
3339 (SYMBOL_SECTION): Delete.
3340 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3341 set_section_index member functions where appropriate.
3342 (MSYMBOL_SECTION): Delete.
3343 (symbol::symbol): Update to initialize 'm_section'.
3344 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3345 (process_xcoff_symbol): Likewise.
3346
3347 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3348
3349 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3350 MSYMBOL_OBJ_SECTION.
3351 * findvar.c (language_defn::read_var_value): Likewise.
3352 * infcmd.c (jump_command): Likewise.
3353 * linespec.c (minsym_found): Likewise.
3354 * maint.c (maintenance_translate_address): Likewise.
3355 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3356 (minimal_symbol_upper_bound): Likewise.
3357 * parse.c (find_minsym_type_and_address): Likewise.
3358 (operator_check_standard): Likewise.
3359 * printcmd.c (info_address_command): Likewise.
3360 * symmisc.c (dump_msymbols): Likewise.
3361 (print_symbol): Likewise.
3362 * symtab.c (general_symbol_info::obj_section): Define new
3363 function.
3364 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3365 (find_pc_sect_compunit_symtab): Likewise.
3366 (find_function_start_sal): Likewise.
3367 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3368 MSYMBOL_OBJ_SECTION.
3369 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3370 function.
3371 (SYMBOL_OBJ_SECTION): Delete.
3372 (MSYMBOL_OBJ_SECTION): Delete.
3373
3374 2021-02-09 Tom Tromey <tom@tromey.com>
3375
3376 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3377
3378 2021-02-09 Tom de Vries <tdevries@suse.de>
3379
3380 PR symtab/27341
3381 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3382 construct an array type. Add assert to ensure that element_type is
3383 not being modified.
3384
3385 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3388 (gcore_collect_regset_section_cb): Delete.
3389 (gcore_collect_thread_registers): Delete.
3390 (gcore_build_thread_register_notes): Delete.
3391 (gcore_find_signalled_thread): Delete.
3392 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3393 'gdbarch' and 'thread_info' declarations.
3394 (gcore_build_thread_register_notes): Delete declaration.
3395 (gcore_find_signalled_thread): Likewise.
3396 * fbsd-tdep.c: Remove 'gcore.h' include.
3397 (struct fbsd_collect_regset_section_cb_data): New struct.
3398 (fbsd_collect_regset_section_cb): New function.
3399 (fbsd_collect_thread_registers): New function.
3400 (struct fbsd_corefile_thread_data): New struct.
3401 (fbsd_corefile_thread): New function.
3402 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3403 * linux-tdep.c: Remove 'gcore.h' include.
3404 (struct linux_collect_regset_section_cb_data): New struct.
3405 (linux_collect_regset_section_cb): New function.
3406 (linux_collect_thread_registers): New function.
3407 (linux_corefile_thread): Call Linux specific code.
3408 (find_signalled_thread): New function.
3409 (linux_make_corefile_notes): Call find_signalled_thread.
3410
3411 2021-02-09 Tom Tromey <tromey@adacore.com>
3412
3413 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3414 not_lval value.
3415 * value.c (value_contents_copy_raw): Now static.
3416 * value.h (value_contents_copy_raw): Don't declare.
3417
3418 2021-02-09 Tom Tromey <tromey@adacore.com>
3419
3420 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3421 fields.
3422
3423 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
3424
3425 PR tdep/27369
3426 * arc-linux-tdep.c (handle_atomic_sequence): New.
3427 (arc_linux_software_single_step): Call handle_atomic_sequence().
3428
3429 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3430
3431 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3432 function.
3433 (REQUIRE_WINDOW): Call is_valid member function.
3434 (REQUIRE_WINDOW_FOR_SETTER): New define.
3435 (gdbpy_tui_is_valid): Call is_valid member function.
3436 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3437 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3438 tui_active too.
3439 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3440 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3441 the function.
3442
3443 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3444
3445 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3446 for the title is not nullptr.
3447
3448 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * tui-layout.c (saved_tui_windows): Delete.
3451 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3452 call new get_windows member function instead.
3453 (tui_get_window_by_name): Check in tui_windows.
3454 (tui_layout_window::apply): Don't add to tui_windows.
3455 * tui-layout.h (tui_layout_base::get_windows): New member function.
3456 (tui_layout_window::get_windows): Likewise.
3457 (tui_layout_split::get_windows): Likewise.
3458
3459 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3460
3461 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3462 of the window objects.
3463
3464 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * python/python.c (gdbpy_print_stack): Reformat an error message.
3467
3468 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3469
3470 * tui/tui-interp.c (tui_command_line_handler): New function.
3471 (tui_interp::resume): Register tui_command_line_handler as the
3472 input_handler.
3473 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3474 function.
3475 (tui_getc_1): Delete handling of '\n' and '\r'.
3476 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3477
3478 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3479
3480 * tui/tui-regs.c (tui_data_window::display_registers_from):
3481 Mark invisible register sub windows.
3482 (tui_data_window::check_register_values): Ignore invisible
3483 register sub windows.
3484
3485 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3486
3487 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3488 n_spaces with a negative value.
3489
3490 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3491
3492 * tui/tui-regs.c (tui_data_window::display_registers_from):
3493 Add refresh_window call.
3494
3495 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3496
3497 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3498
3499 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * symmisc.c (std_in, std_out, std_err): Remove.
3502 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3503
3504 2021-02-05 Tom de Vries <tdevries@suse.de>
3505
3506 PR breakpoints/27330
3507 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3508 glibc object file has debug info.
3509
3510 2021-02-05 Tom de Vries <tdevries@suse.de>
3511
3512 PR symtab/27333
3513 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3514
3515 2021-02-05 Tom de Vries <tdevries@suse.de>
3516
3517 PR breakpoints/27313
3518 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3519 syscall numbers.
3520
3521 2021-02-05 Tom Tromey <tom@tromey.com>
3522
3523 * compile/compile-c-support.c (get_compile_context)
3524 (c_get_compile_context, cplus_get_compile_context): Change return
3525 type.
3526 * language.c (language_defn::get_compile_instance): New method.
3527 * language.h (language_defn::get_compile_instance): Change return
3528 type. No longer inline.
3529 * c-lang.c (c_language::get_compile_instance): Change return type.
3530 (cplus_language::get_compile_instance): Change return type.
3531 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3532 Change return type.
3533 * compile/compile.c (compile_to_object): Update.
3534
3535 2021-02-05 Tom Tromey <tom@tromey.com>
3536
3537 * parser-defs.h (write_exp_symbol_reference): Declare.
3538 * parse.c (write_exp_symbol_reference): New function.
3539 * p-exp.y (variable): Use write_exp_symbol_reference.
3540 * m2-exp.y (variable): Use write_exp_symbol_reference.
3541 * f-exp.y (variable): Use write_exp_symbol_reference.
3542 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3543 * c-exp.y (variable): Use write_exp_symbol_reference.
3544
3545 2021-02-05 Tom de Vries <tdevries@suse.de>
3546
3547 PR exp/27265
3548 * valarith.c (complex_binop): Throw an error if complex type can't
3549 be created.
3550
3551 2021-02-05 Tom de Vries <tdevries@suse.de>
3552
3553 PR symtab/27307
3554 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3555 return.
3556
3557 2021-02-05 Tom de Vries <tdevries@suse.de>
3558
3559 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3560
3561 2021-02-04 Mike Frysinger <vapier@gentoo.org>
3562
3563 * configure.tgt (riscv*-*-*): Set gdb_sim.
3564
3565 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3566
3567 * target.c (target_is_non_stop_p): Return bool.
3568 * target.h (target_is_non_stop_p): Return bool.
3569
3570 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * record-full.c (record_full_async_inferior_event_handler):
3573 Don't clear async event handler.
3574 (record_full_base_target::wait): Clear async event handler at
3575 beginning.
3576
3577 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3578
3579 * record-btrace.c (record_btrace_handle_async_inferior_event):
3580 Don't clear async event handler.
3581 (record_btrace_target::wait): Clear async event handler at
3582 beginning.
3583
3584 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * remote.c (remote_target::wait): Clear async event handler at
3587 beginning, mark if needed at the end.
3588 (remote_async_inferior_event_handler): Don't set or clear async
3589 event handler.
3590
3591 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3592
3593 * async-event.h (async_event_handler_func): Add documentation.
3594 * async-event.c (check_async_event_handlers): Don't clear
3595 async_event_handler ready flag.
3596 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3597 flag.
3598 * record-btrace.c (record_btrace_handle_async_inferior_event):
3599 Likewise.
3600 * record-full.c (record_full_async_inferior_event_handler):
3601 Likewise.
3602 * remote-notif.c (remote_async_get_pending_events_handler):
3603 Likewise.
3604 * remote.c (remote_async_inferior_event_handler): Likewise.
3605
3606 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3607
3608 * infrun.c (handle_inferior_event): Move stop_soon variable to
3609 inner scope.
3610
3611 2021-02-03 Pedro Alves <pedro@palves.net>
3612
3613 * infcmd.c (detach_command): Hold strong reference to target, and
3614 if all-stop on entry, restart threads on exit.
3615 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3616 (restart_stepped_thread): ... this new function. Also handle
3617 trap_expected.
3618 (restart_after_all_stop_detach): New function.
3619 * infrun.h (restart_after_all_stop_detach): Declare.
3620
3621 2021-02-03 Pedro Alves <pedro@palves.net>
3622
3623 * infrun.c (struct step_over_info): Initialize fields.
3624 (prepare_for_detach): Handle ongoing in-line step over.
3625
3626 2021-02-03 Pedro Alves <pedro@palves.net>
3627
3628 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3629 here...
3630 * remote.c (remote_target::remote_detach_1): ... and here ...
3631 * target.c (target_detach): ... instead of here.
3632 * target.h (target_ops::detach): Add comment.
3633
3634 2021-02-03 Pedro Alves <pedro@palves.net>
3635
3636 * infrun.c (struct wait_one_event): Move higher up.
3637 (prepare_for_detach): Abort in-progress displaced steps instead of
3638 letting them complete.
3639 (handle_one): If the inferior is detaching, don't add the thread
3640 back to the global step-over chain.
3641 (restart_threads): Don't restart threads if detaching.
3642 (handle_signal_stop): Remove inferior::detaching reference.
3643
3644 2021-02-03 Pedro Alves <pedro@palves.net>
3645
3646 * infrun.c (prepare_for_detach): Don't release scoped_restore
3647 before returning.
3648
3649 2021-02-03 Pedro Alves <pedro@palves.net>
3650
3651 * infrun.c (handle_one): New function, factored out from ...
3652 (stop_all_threads): ... here.
3653
3654 2021-02-03 Pedro Alves <pedro@palves.net>
3655
3656 * remote.c (remote_notif_stop_ack): Don't error out on
3657 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3658 (remote_target::discard_pending_stop_replies): Don't delete
3659 in-flight notification; instead, clear its contents.
3660
3661 2021-02-03 Pedro Alves <pedro@palves.net>
3662
3663 * remote.c (extended_remote_target::attach): Set target async in
3664 the target-non-stop path too.
3665
3666 2021-02-03 Pedro Alves <pedro@palves.net>
3667
3668 PR gdb/27055
3669 * infrun.c (handle_signal_stop): Move main context_switch call
3670 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3671
3672 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3673
3674 * NEWS (Changed commands): Add entry for the behavior change of
3675 the inferior command.
3676 * inferior.c (inferior_command): When no argument is given to the
3677 inferior command, display info about the currently selected
3678 inferior.
3679
3680 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3681
3682 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3683 a sect_offset.
3684 (read_attribute_reprocess): Adjust.
3685
3686 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3687
3688 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3689 <gnu_ranges_base>: ... this...
3690 <rnglists_base>: ... and this.
3691 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3692 <gnu_ranges_base>: ... this...
3693 <rnglists_base>: ... and this.
3694 (read_cutu_die_from_dwo): Adjust
3695 (dwarf2_get_pc_bounds): Adjust
3696 (dwarf2_record_block_ranges): Adjust.
3697 (read_full_die_1): Adjust
3698 (partial_die_info::read): Adjust.
3699 (read_rnglist_index): Adjust.
3700
3701 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3702
3703 PR gdb/26813
3704 * dwarf2/read.c (read_loclists_rnglists_header): Add
3705 header_offset parameter and use it.
3706 (read_loclist_index): Read header of the current contribution,
3707 not the one at the beginning of the section.
3708 (read_rnglist_index): Likewise.
3709
3710 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3711
3712 PR gdb/26813
3713 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3714 requires_reprocessing flag.
3715 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3716 DW_FORM_loclistx.
3717 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3718 and DW_FORM_loclistx.
3719 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3720 instead of set_address for DW_FORM_loclistx and
3721 DW_FORM_rnglistx.
3722
3723 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3724
3725 * dwarf2/read.c (read_loclist_index): Remove bound check for
3726 start of offset.
3727 (read_rnglist_index): Likewise.
3728
3729 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3730
3731 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3732 of the offset.
3733
3734 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3735
3736 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3737
3738 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * dwarf2/read.c (read_loclist_index): Change complaints into
3741 errors.
3742
3743 2021-02-02 Tom de Vries <tdevries@suse.de>
3744
3745 PR symtab/24620
3746 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3747 psymtab == nullptr.
3748
3749 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3750
3751 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3752 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3753 here from linux-tdep.c and given a new name. Minor cleanups.
3754 (gcore_collect_regset_section_cb): Likewise.
3755 (gcore_collect_thread_registers): Likewise.
3756 (gcore_build_thread_register_notes): Likewise.
3757 (gcore_find_signalled_thread): Likewise.
3758 * gcore.h (gcore_build_thread_register_notes): Declare.
3759 (gcore_find_signalled_thread): Declare.
3760 * fbsd-tdep.c: Add 'gcore.h' include.
3761 (struct fbsd_collect_regset_section_cb_data): Delete.
3762 (fbsd_collect_regset_section_cb): Delete.
3763 (fbsd_collect_thread_registers): Delete.
3764 (struct fbsd_corefile_thread_data): Delete.
3765 (fbsd_corefile_thread): Delete.
3766 (fbsd_make_corefile_notes): Call
3767 gcore_build_thread_register_notes instead of the now deleted
3768 FreeBSD code.
3769 * linux-tdep.c: Add 'gcore.h' include.
3770 (struct linux_collect_regset_section_cb_data): Delete.
3771 (linux_collect_regset_section_cb): Delete.
3772 (linux_collect_thread_registers): Delete.
3773 (linux_corefile_thread): Call
3774 gcore_build_thread_register_notes.
3775 (find_signalled_thread): Delete.
3776 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3777
3778 2021-01-29 Tom de Vries <tdevries@suse.de>
3779
3780 PR breakpoints/26063
3781 * infrun.c (process_event_stop_test): Reset
3782 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3783 changed.
3784
3785 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3788 assert. Extend the header comment.
3789
3790 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3791
3792 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3793 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3794 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3795 (tui_locator_win_info_ptr): Delete declaration.
3796 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3797 (tui_disasm_window::set_contents): Fetch state from tui_location
3798 global.
3799 (tui_get_begin_asm_address): Likewise.
3800 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3801 for locator window.
3802 (get_locator_window): Delete.
3803 (initialize_known_windows): Treat locator window just like all the
3804 rest.
3805 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3806 (tui_source_window::set_contents): Fetch state from tui_location
3807 global.
3808 (tui_source_window::showing_source_p): Likewise.
3809 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3810 (_locator): Delete.
3811 (tui_locator_win_info_ptr): Delete.
3812 (tui_locator_window::make_status_line): Fetch state from
3813 tui_location global.
3814 (tui_locator_window::rerender): Remove check of 'handle',
3815 reindent function body.
3816 (tui_locator_window::set_locator_fullname): Delete.
3817 (tui_locator_window::set_locator_info): Delete.
3818 (tui_update_locator_fullname): Delete.
3819 (tui_show_frame_info): Likewise.
3820 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3821 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3822 tui/tui-location.h and renamed to
3823 tui_location_tracker::set_location.
3824 (tui_locator_window::set_locator_fullname): Moved to
3825 tui/tui-location.h and renamed to
3826 tui_location_tracker::set_fullname.
3827 (tui_locator_window::full_name): Delete.
3828 (tui_locator_window::proc_name): Delete.
3829 (tui_locator_window::line_no): Delete.
3830 (tui_locator_window::addr): Delete.
3831 (tui_locator_window::gdbarch): Delete.
3832 (tui_update_locator_fullname): Delete declaration.
3833 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3834 for locator window.
3835 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3836 (tui_display_main): Call function on tui_location directly.
3837 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3838 * tui/tui-location.c: New file.
3839 * tui/tui-location.h: New file.
3840
3841 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3842
3843 * gdbtypes.h (get_type_arch): Rename to...
3844 (struct type) <arch>: ... this, update all users.
3845
3846 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3847
3848 * gdbtypes.h (struct type) <arch>: Rename to...
3849 <arch_owner>: ... this, update all users.
3850 <objfile>: Rename to...
3851 <objfile_owner>: ... this, update all users.
3852
3853 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3854
3855 * gdbcmd.h (execute_command_to_string): Update comment.
3856 * top.c (execute_command_to_string): Update header comment.
3857
3858 2021-01-28 Tom de Vries <tdevries@suse.de>
3859
3860 PR breakpoints/27205
3861 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3862 (create_longjmp_master_breakpoint_names): New function, factored out
3863 of ...
3864 (create_longjmp_master_breakpoint): ... here. Only try to install
3865 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3866 breakpoint in libc.so failed.
3867
3868 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3869
3870 PR gdb/27133
3871 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3872 unique_ptr is released when the wrapped pointer is kept for later
3873 use.
3874
3875 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3876
3877 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3878 BLR and BR instructions.
3879 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3880 (enum aarch64_masks): New.
3881
3882 2021-01-26 Tom Tromey <tromey@adacore.com>
3883
3884 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3885 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3886 (windows_init_thread_list, windows_nat::handle_load_dll)
3887 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3888 (windows_nat_target::resume)
3889 (windows_nat_target::get_windows_debug_event)
3890 (windows_nat_target::interrupt, windows_xfer_memory)
3891 (windows_nat_target::close): Update.
3892 * nat/windows-nat.c (DEBUG_EVENTS): Use
3893 debug_prefixed_printf_cond.
3894 (matching_pending_stop, fetch_pending_stop)
3895 (continue_last_debug_event): Update.
3896
3897 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3898
3899 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3900 elfcore_write_file_note.
3901
3902 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
3903
3904 * arc-tdep.c (arc_add_reggroups): New function.
3905 (arc_gdbarch_init): Call arc_add_reggroups.
3906
3907 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
3908
3909 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3910
3911 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3912 Simon Marchi <simon.marchi@polymtl.ca>
3913 Tom de Vries <tdevries@suse.de>
3914
3915 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3916 DW_AT_ranges.
3917
3918 2021-01-25 Tom Tromey <tromey@adacore.com>
3919
3920 * dwarf2/read.c (get_mpz): New function.
3921 (get_dwarf2_rational_constant): Use it.
3922
3923 2021-01-25 Tom Tromey <tromey@adacore.com>
3924
3925 * ada-lang.c (resolve_subexp): Handle array context.
3926
3927 2021-01-23 Tom Tromey <tom@tromey.com>
3928
3929 PR compile/25575
3930 * compile/compile-loc2c.c (note_register): New function.
3931 (pushf_register_address, pushf_register): Use it.
3932
3933 2021-01-23 Tom Tromey <tom@tromey.com>
3934
3935 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3936 Change type of "registers_used".
3937 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3938 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3939 (locexpr_generate_c_location, loclist_generate_c_location): Change
3940 type of "registers_used".
3941 * compile/compile.h (compile_dwarf_expr_to_c)
3942 (compile_dwarf_bounds_to_c): Update.
3943 * compile/compile-loc2c.c (pushf_register_address)
3944 (pushf_register, do_compile_dwarf_expr_to_c)
3945 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3946 of "registers_used".
3947 * compile/compile-c.h (generate_c_for_variable_locations):
3948 Update.
3949 * compile/compile-c-symbols.c (generate_vla_size)
3950 (generate_c_for_for_one_variable): Change type of
3951 "registers_used".
3952 (generate_c_for_variable_locations): Return std::vector.
3953 * compile/compile-c-support.c (generate_register_struct): Change
3954 type of "registers_used".
3955 (compute): Update.
3956
3957 2021-01-23 Tom Tromey <tom@tromey.com>
3958
3959 * compile/compile-internal.h (class compile_instance)
3960 <set_arguments>: Change return type.
3961 * compile/compile.c (compile_to_object): Remove call to reset.
3962 (compile_instance::set_arguments): Change return type.
3963
3964 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3965
3966 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3967 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3968
3969 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3970
3971 * Makefile.in (SELFTESTS_SRCS): Add
3972 unittests/gdb_tilde_expand-selftests.c.
3973 * unittests/gdb_tilde_expand-selftests.c: New file.
3974
3975 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3976
3977 PR cli/25956
3978 * NEWS: Mention new command.
3979 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3980 (version_style): Define.
3981 (cli_style_option::cli_style_option): Add intensity parameter, and
3982 use as appropriate.
3983 (_initialize_cli_style): Register version style set/show commands.
3984 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3985 (version_style): Declare.
3986 * top.c (print_gdb_version): Use version_stype, and styled_string
3987 to print the GDB version string.
3988
3989 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * utils.c (emit_style_escape): Only emit an escape sequence if the
3992 requested style is different than the current applied style.
3993 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3994 current applied_style.
3995 (fputs_styled): Remove is_default check.
3996 (fputs_styled_unfiltered): Likewise.
3997 (vfprintf_styled_no_gdbfmt): Likewise.
3998
3999 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * remote.h (remote_debug_printf): New.
4002 (remote_debug_printf_nofunc): New.
4003 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
4004 * remote.c: Use above macros throughout file.
4005
4006 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4007
4008 * remote.h (remote_debug): Change to bool.
4009 * remote.c (remote_debug): Change to bool.
4010 (_initialize_remote): Adjust.
4011
4012 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4013
4014 * target.h (remote_debug): Move to...
4015 * remote.h (remote_debug): ... here.
4016 * top.c (remote_debug): Move to...
4017 * remote.c (remote_debug): ... here.
4018 * remote-sim.c: Include remote.h.
4019
4020 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4021
4022 * cli/cli-cmds.c (show_remote_debug): Remove.
4023 (show_remote_timeout): Remove.
4024 (_initialize_cli_cmds): Don't register commands.
4025 * remote.c (show_remote_debug): Move here.
4026 (show_remote_timeout): Move here.
4027 (_initialize_remote): Register commands.
4028
4029 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4030
4031 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
4032 type::objfile method instead.
4033
4034 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
4035
4036 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
4037 use the type::is_objfile_owned method.
4038
4039 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
4042 (TYPE_OWNER): Remove.
4043 (TYPE_OBJFILE): Adjust.
4044 (struct main_type) <flag_objfile_owned>: Rename to...
4045 <m_flag_objfile_owned>: ... this.
4046 <owner>: Rename to...
4047 <m_owner>: ... this.
4048 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
4049 methods.
4050 (TYPE_ALLOC): Adjust.
4051 * gdbtypes.c (alloc_type): Adjust.
4052 (alloc_type_arch): Adjust.
4053 (alloc_type_copy): Adjust.
4054 (get_type_arch): Adjust.
4055 (smash_type): Adjust.
4056 (lookup_array_range_type): Adjust.
4057 (recursive_dump_type): Adjust.
4058 (copy_type_recursive): Adjust.
4059 * compile/compile-c-types.c (convert_func): Adjust.
4060 (convert_type_basic): Adjust.
4061 * compile/compile-cplus-types.c (compile_cplus_convert_func):
4062 Adjust.
4063 * language.c
4064 (language_arch_info::type_and_symbol::alloc_type_symbol):
4065 Adjust.
4066
4067 2021-01-21 Luis Machado <luis.machado@linaro.org>
4068
4069 * coffread.c (enter_linenos): Passing string to complaint.
4070 * valops.c (value_assign): Make array view.
4071
4072 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4073
4074 * auto-load.h (debug_auto_load): Move here.
4075 (auto_load_debug_printf): New.
4076 * auto-load.c: Use auto_load_debug_printf.
4077 (debug_auto_load): Move to header.
4078 * linux-thread-db.c (try_thread_db_load): Use
4079 auto_load_debug_printf.
4080 * main.c (captured_main_1): Likewise.
4081
4082 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * f-valprint.c (f77_array_offset_tbl): Remove.
4085
4086 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4087
4088 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
4089
4090 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4091
4092 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
4093 of gdb_select.
4094
4095 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
4096
4097 PR python/19151
4098 * python/py-breakpoint.c (bppy_get_location): Handle
4099 bp_hardware_breakpoint.
4100 (bppy_init): Likewise.
4101 (gdbpy_breakpoint_created): Likewise.
4102
4103 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
4104
4105 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
4106
4107 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4108
4109 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
4110 (_initialize_gdb_bfd): Adjust.
4111
4112 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4113
4114 PR gdb/26828
4115 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
4116
4117 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4118
4119 * dwarf2/read.c (follow_die_offset): Add logging.
4120 (dwarf2_per_objfile::age_comp_units): Add logging.
4121
4122 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
4125 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
4126 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
4127 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
4128 * arm-tdep.c (struct frame_unwind): Make static.
4129 * auto-load.c (auto_load_safe_path_vec): Make static.
4130 * csky-tdep.c (csky_stub_unwind): Make static.
4131 * gdbarch.c (gdbarch_data_registry): Make static.
4132 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
4133 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
4134 * i386-tdep.c (i386_frame_setup_skip_insns,
4135 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
4136 Make static.
4137 * infrun.c (observer_mode): Make static.
4138 * linux-nat.c (sigchld_action): Make static.
4139 * linux-thread-db.c (thread_db_list): Make static.
4140 * maint-test-options.c (maintenance_test_options_list):
4141 * mep-tdep.c (mep_csr_registers): Make static.
4142 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
4143 (stats): Make static.
4144 * nat/linux-osdata.c (struct osdata_type): Make static.
4145 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
4146 * progspace.c (last_program_space_num): Make static.
4147 * python/py-param.c (struct parm_constant): Remove struct type
4148 name.
4149 (parm_constants): Make static.
4150 * python/py-record-btrace.c (btpy_list_methods): Make static.
4151 * python/py-record.c (recpy_gap_type): Make static.
4152 * record.c (record_goto_cmdlist): Make static.
4153 * regcache.c (regcache_descr_handle): Make static.
4154 * registry.h (DEFINE_REGISTRY): Make definition static.
4155 * symmisc.c (std_in, std_out, std_err): Make static.
4156 * top.c (previous_saved_command_line): Make static.
4157 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4158 static.
4159 * unittests/command-def-selftests.c (nr_duplicates,
4160 nr_invalid_prefixcmd, lists): Make static.
4161 * unittests/observable-selftests.c (test_notification): Make
4162 static.
4163 * unittests/optional/assignment/1.cc (counter): Make static.
4164 * unittests/optional/assignment/2.cc (counter): Make static.
4165 * unittests/optional/assignment/3.cc (counter): Make static.
4166 * unittests/optional/assignment/4.cc (counter): Make static.
4167 * unittests/optional/assignment/5.cc (counter): Make static.
4168 * unittests/optional/assignment/6.cc (counter): Make static.
4169
4170 2021-01-20 Joel Sherrill <joel@rtems.org>
4171
4172 PR gdb/27219
4173 * remote.c (struct remote_thread_info) <resume_state>: Rename
4174 to...
4175 <get_resume_state>: ... this.
4176 (remote_target::resume): Adjust.
4177 (remote_target::commit_resume): Adjust.
4178 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4179
4180 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4181 Tom Tromey <tom@tromey.com>
4182
4183 * stap-probe.c (stap_parse_single_operand): Handle '!'
4184 operator.
4185 (stap_parse_argument_conditionally): Likewise.
4186 Skip spaces after processing open-parenthesis sub-expression.
4187 (stap_parse_argument_1): Skip spaces after call to
4188 stap_parse_argument_conditionally.
4189 Handle case when right-side expression is a parenthesized
4190 sub-expression.
4191 Skip spaces after call to stap_parse_argument_1.
4192
4193 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4194
4195 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4196
4197 2021-01-19 Luis Machado <luis.machado@linaro.org>
4198
4199 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4200 memory and save data.
4201 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4202 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4203 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4204 (trad_frame_value_bytes_p): Remove.
4205 (trad_frame_reset_saved_regs): Adjust documentation.
4206 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4207 constructor and reset the state of the registers.
4208 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4209 (trad_frame_value_bytes_p, trad_frame_set_value)
4210 (trad_frame_set_realreg, trad_frame_set_addr)
4211 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4212 (trad_frame_set_reg_realreg): Update to call member function.
4213 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4214 (trad_frame_get_prev_register): Likewise.
4215
4216 * aarch64-tdep.c (aarch64_analyze_prologue)
4217 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4218 (aarch64_prologue_prev_register): Update to use member functions.
4219 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4220 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4221 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4222 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4223 (arm_make_epilogue_frame_cache): Likewise.
4224 * avr-tdep.c (avr_frame_unwind_cache)
4225 (avr_frame_prev_register): Likewise.
4226 * cris-tdep.c (cris_scan_prologue): Likewise.
4227 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4228 * frv-tdep.c (frv_analyze_prologue): Likewise.
4229 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4230 * lm32-tdep.c (lm32_frame_cache): Likewise.
4231 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4232 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4233 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4234 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4235 (reset_saved_regs): Adjust to set realreg.
4236 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4237 call member functions.
4238 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4239 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4240 (s390_backchain_frame_unwind_cache): Likewise.
4241 * score-tdep.c (score7_analyze_prologue)
4242 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4243 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4244 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4245 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4246 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4247 * tilegx-tdep.c (tilegx_analyze_prologue)
4248 (tilegx_frame_cache): Likewise.
4249 * v850-tdep.c (v850_frame_cache): Likewise.
4250 * vax-tdep.c (vax_frame_cache): Likewise.
4251
4252 2021-01-19 Luis Machado <luis.machado@linaro.org>
4253
4254 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4255 of buffer + length.
4256 (put_frame_register_bytes): Likewise.
4257 Adjust documentation.
4258 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4259 (safe_frame_unwind_memory): Likewise.
4260 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4261 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4262 gdb::array_view.
4263 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4264 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4265 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4266 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4267 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4268 * dwarf2/loc.c (rw_pieced_value): Likewise.
4269 * hppa-tdep.c (hppa_frame_cache): Likewise.
4270 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4271 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4272 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4273 (i386_linux_rt_sigtramp_start): Likewise.
4274 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4275 * i386-tdep.c (i386_register_to_value): Likewise.
4276 * i387-tdep.c (i387_register_to_value): Likewise.
4277 * ia64-tdep.c (ia64_register_to_value): Likewise.
4278 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4279 (m32r_linux_rt_sigtramp_start): Likewise.
4280 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4281 * m68k-tdep.c (m68k_register_to_value): Likewise.
4282 * mips-tdep.c (mips_register_to_value)
4283 (mips_value_to_register): Likewise.
4284 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4285 (ppcfbsd_sigtramp_frame_cache): Likewise.
4286 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4287 (ppcobsd_sigtramp_frame_cache): Likewise.
4288 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4289 (rs6000_register_to_value): Likewise.
4290 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4291 * tramp-frame.c (tramp_frame_start): Likewise.
4292 * valops.c (value_assign): Likewise.
4293
4294 2021-01-19 Luis Machado <luis.machado@linaro.org>
4295
4296 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4297 array_view.
4298 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4299 instead of buffer and size.
4300 (trad_frame_set_reg_value_bytes): Likewise.
4301 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4302 (trad_frame_set_value_bytes): Likewise.
4303
4304 2021-01-18 Mike Frysinger <vapier@gentoo.org>
4305
4306 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4307
4308 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4309
4310 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4311 (riscv_fbsd_gregset): Use riscv_supply_regset.
4312 (riscv_fbsd_fpregset): Likewise.
4313 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4314 (riscv_linux_fregset): Likewise.
4315 * riscv-tdep.c (riscv_supply_regset): Define new function.
4316 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4317
4318 2021-01-18 Tom de Vries <tdevries@suse.de>
4319
4320 PR tdep/27172
4321 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4322 New macro.
4323 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4324 for SEGV_BNDERR.
4325
4326 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4327
4328 * remote.c (class remote_target) <remote_hostio_send_command,
4329 remote_hostio_parse_result>: Constify parameter.
4330 (remote_hostio_parse_result): Likewise.
4331 (remote_target::remote_hostio_send_command): Adjust.
4332 (remote_target::remote_hostio_pread_vFile): Adjust.
4333 (remote_target::fileio_readlink): Adjust.
4334 (remote_target::fileio_fstat): Adjust.
4335
4336 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4337
4338 * remote.c (remote_target::start_remote): Move wait_status to
4339 narrower scope.
4340
4341 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4342
4343 * remote.c (class remote_target):
4344 <add_current_inferior_and_thread>: Constify parameter.
4345 (stop_reply_extract_thread): Likewise.
4346 (remote_target::get_current_thread): Likewise.
4347 (remote_target::add_current_inferior_and_thread): Likewise.
4348
4349 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4350
4351 * remote.c (class remote_target)
4352 <remote_unpack_thread_info_response,
4353 parse_threadlist_response>: Constify parameter and/or return
4354 value and or local variable.
4355 (stub_unpack_int): Likewise.
4356 (unpack_nibble): Likewise.
4357 (unpack_byte): Likewise.
4358 (unpack_int): Likewise.
4359 (unpack_string): Likewise.
4360 (unpack_threadid): Likewise.
4361 (remote_target::remote_unpack_thread_info_response): Likewise.
4362 (remote_target::parse_threadlist_response): Likewise.
4363
4364 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4367
4368 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
4369
4370 * MAINTAINERS (Write After Approval): Add myself.
4371
4372 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4373
4374 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4375 because is_trivially_default_constructible was first implemented with
4376 gcc-5.
4377
4378 2021-01-14 Tom de Vries <tdevries@suse.de>
4379
4380 PR breakpoints/27151
4381 * objfiles.h (in_plt_section): Handle .plt.sec.
4382
4383 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4384
4385 PR gdb/26819
4386 * remote.c
4387 (remote_target::select_thread_for_ambiguous_stop_reply): New
4388 member function.
4389 (remote_target::process_stop_reply): Call
4390 select_thread_for_ambiguous_stop_reply.
4391
4392 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4393
4394 * record-btrace.c (class record_btrace_target): Remove.
4395 (record_btrace_target::commit_resume): Remove.
4396 * record-full.c (class record_full_target): Remove.
4397 (record_full_target::commit_resume): Remove.
4398
4399 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4400
4401 * remote.c (enum class resume_state): New.
4402 (struct resumed_pending_vcont_info): New.
4403 (struct remote_thread_info) <resume_state, set_not_resumed,
4404 set_resumed_pending_vcont, resumed_pending_vcont_info,
4405 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4406 New.
4407 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4408 (remote_target::remote_add_thread): Adjust.
4409 (remote_target::process_initial_stop_replies): Adjust.
4410 (remote_target::resume): Adjust.
4411 (remote_target::commit_resume): Rely on state in
4412 remote_thread_info and not on tp->executing.
4413 (remote_target::process_stop_reply): Adjust.
4414
4415 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4416
4417 * arc-tdep.h (arc_debug_printf): New.
4418 * arc-tdep.c: Use arc_debug_printf.
4419 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4420 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4421 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4422
4423 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4424
4425 * arc-tdep.h (arc_debug): Change type to bool.
4426 * arc-tdep.c (arc_debug): Change type to bool.
4427 (arc_analyze_prologue): Adjust.
4428 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4429 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4430
4431 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4432
4433 * auto-load.c (auto_load_objfile_script_1): Use bool.
4434 (execute_script_contents): Use bool.
4435
4436 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4437
4438 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4439 comment here.
4440 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4441 comment to header.
4442 * extension-priv.h (struct extension_language_script_ops)
4443 <auto_load_enabled>: Return bool.
4444 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4445 comment here.
4446 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4447 comment to header.
4448 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4449 move comment here.
4450 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4451 move comment to header.
4452 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4453 move comment here.
4454 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4455 move comment to header.
4456
4457 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4458
4459 * auto-load.h (file_is_auto_load_safe): Change return type to
4460 bool, move comment here.
4461 * auto-load.c (file_is_auto_load_safe): Change return type and
4462 advice_printed to bool. Move comment to header.
4463
4464 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * jit.c (jit_debug_printf): New, use throughout file.
4467
4468 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4469
4470 * infrun.c (normal_stop): Fix indentation.
4471
4472 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4473
4474 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4475 declarations to ...
4476 * symfile.h: ... here.
4477 * symfile.c: Update doc.
4478
4479 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4480
4481 * target.h (baud_rate, serial_parity): Move declarations...
4482 * serial.h: ... here.
4483 * main.c: Include serial.h.
4484 * serial.c (baud_rate, serial_parity): Update doc.
4485
4486 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4487
4488 * top.c (pre_init_ui_hook): Remove.
4489
4490 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4491
4492 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4493 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4494 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4495 * features/aarch64-fpu.xml: Add bfloat16 type.
4496
4497 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4498
4499 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4500
4501 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * f-exp.y (dot_ops): Rename to...
4504 (fortran_operators): ...this. Add a header comment. Add symbol
4505 based operators.
4506 (yylex): Update to use fortran_operators not dot_ops. Remove
4507 special handling for '**', this is now included in
4508 fortran_operators.
4509
4510 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4511
4512 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4513 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4514 * aarch64-tdep.c: Use aarch64_debug_printf.
4515
4516 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4517
4518 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4519 file.
4520
4521 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4522
4523 * jit.c (jit_debug): Change type to bool.
4524 (_initialize_jit): Adjust.
4525
4526 2021-01-09 Tom Tromey <tom@tromey.com>
4527
4528 PR compile/23672
4529 * compile/compile.c (compile_to_object): Avoid crash when
4530 osabi_triplet_regexp returns NULL.
4531
4532 2021-01-09 Tom Tromey <tom@tromey.com>
4533
4534 * tracepoint.h (class collection_list) <append_exp>: Take a
4535 std::string.
4536 * tracepoint.c (collection_list::append_exp): Take a std::string.
4537 (encode_actions_1): Update.
4538
4539 2021-01-08 Tom Tromey <tromey@adacore.com>
4540
4541 * parse.c (parse_expression): Add void_context_p parameter. Use
4542 parse_exp_in_context.
4543 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4544 parse_expression.
4545 (print_command, call_command): Update.
4546 * expression.h (parse_expression): Add void_context_p parameter.
4547
4548 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4549
4550 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4551 for internalvar components that have a dynamic location.
4552
4553 2021-01-08 Tom de Vries <tdevries@suse.de>
4554
4555 PR gdb/26881
4556 * breakpoint.c (create_exception_master_breakpoint_probe)
4557 (create_exception_master_breakpoint_hook): Factor out
4558 of ...
4559 (create_exception_master_breakpoint): ... here. Only try to install
4560 the master exception breakpoint in objfile.debug using the
4561 _Unwind_DebugHook method, if the install using probes in objfile
4562 failed.
4563
4564 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4565
4566 * f-lang.c (fortran_value_subarray): Call value_from_component.
4567
4568 2021-01-07 Mike Frysinger <vapier@gentoo.org>
4569
4570 * remote-sim.c: Include memory-map.h.
4571 (gdbsim_target): Define memory_map override.
4572 (gdbsim_target::memory_map): Define.
4573
4574 2021-01-07 Tom Tromey <tromey@adacore.com>
4575
4576 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4577
4578 2021-01-07 Tom Tromey <tromey@adacore.com>
4579
4580 * ada-lang.c (add_component_interval): Start loop using vector's
4581 updated size.
4582
4583 2021-01-06 Tom Tromey <tromey@adacore.com>
4584
4585 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4586 Do not cast result.
4587 * valarith.c (fixed_point_binop): Handle multiplication
4588 and division specially.
4589 * valops.c (value_to_gdb_mpq): New function.
4590 (value_cast_to_fixed_point): Use it.
4591
4592 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4593
4594 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4595 Call wnoutrefresh instead of tui_win_info::refresh_window.
4596
4597 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4598
4599 * tui/tui-source.c (tui_source_window::show_line_number):
4600 Redraw second space after line number.
4601
4602 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4603
4604 PR tui/26927
4605 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4606 Fix source pad size in prefresh.
4607 (tui_source_window_base::show_source_content): Grow source pad
4608 if necessary.
4609
4610 2021-01-04 Mike Frysinger <vapier@gentoo.org>
4611
4612 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4613 (bfin_frame_align): Use align_down.
4614
4615 2021-01-04 Tom de Vries <tdevries@suse.de>
4616
4617 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4618 terminators that do not terminate anything.
4619
4620 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4621
4622 * debug.c (debug_print_depth): New.
4623 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4624 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4625 * infrun.c (start_step_over): Use
4626 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4627 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4628 INFRUN_SCOPED_DEBUG_START_END.
4629 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4630
4631 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4632
4633 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4634
4635 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * utils.c (vfprintf_unfiltered): Print timestamp only when
4638 previous debug output ended with a newline.
4639
4640 2021-01-04 Luis Machado <luis.machado@linaro.org>
4641
4642 Update all users of trad_frame_saved_reg to use the new member
4643 functions.
4644
4645 Remote all struct keywords from declarations of trad_frame_saved_reg
4646 types, except on forward declarations.
4647
4648 * aarch64-tdep.c: Update.
4649 * alpha-mdebug-tdep.c: Update.
4650 * alpha-tdep.c: Update.
4651 * arc-tdep.c: Update.
4652 * arm-tdep.c: Update.
4653 * avr-tdep.c: Update.
4654 * cris-tdep.c: Update.
4655 * csky-tdep.c: Update.
4656 * frv-tdep.c: Update.
4657 * hppa-linux-tdep.c: Update.
4658 * hppa-tdep.c: Update.
4659 * hppa-tdep.h: Update.
4660 * lm32-tdep.c: Update.
4661 * m32r-linux-tdep.c: Update.
4662 * m32r-tdep.c: Update.
4663 * m68hc11-tdep.c: Update.
4664 * mips-tdep.c: Update.
4665 * moxie-tdep.c: Update.
4666 * riscv-tdep.c: Update.
4667 * rs6000-tdep.c: Update.
4668 * s390-linux-tdep.c: Update.
4669 * s390-tdep.c: Update.
4670 * score-tdep.c: Update.
4671 * sparc-netbsd-tdep.c: Update.
4672 * sparc-sol2-tdep.c: Update.
4673 * sparc64-fbsd-tdep.c: Update.
4674 * sparc64-netbsd-tdep.c: Update.
4675 * sparc64-obsd-tdep.c: Update.
4676 * sparc64-sol2-tdep.c: Update.
4677 * tilegx-tdep.c: Update.
4678 * v850-tdep.c: Update.
4679 * vax-tdep.c: Update.
4680
4681 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4682 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4683
4684 * trad-frame.c: Update.
4685 Remove TF_REG_* enum.
4686 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4687 a trivially-constructible struct.
4688 (trad_frame_reset_saved_regs): Adjust to use member function.
4689 (trad_frame_value_p): Likewise.
4690 (trad_frame_addr_p): Likewise.
4691 (trad_frame_realreg_p): Likewise.
4692 (trad_frame_value_bytes_p): Likewise.
4693 (trad_frame_set_value): Likewise.
4694 (trad_frame_set_realreg): Likewise.
4695 (trad_frame_set_addr): Likewise.
4696 (trad_frame_set_unknown): Likewise.
4697 (trad_frame_set_value_bytes): Likewise.
4698 (trad_frame_get_prev_register): Likewise.
4699 * trad-frame.h: Update.
4700 (trad_frame_saved_reg_kind): New enum.
4701 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4702 <m_kind, m_reg>: New member fields.
4703 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4704 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4705 <is_addr, is_unknown, is_value_bytes>: New member functions.
4706
4707 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4708
4709 * target-float.c: Fix typos.
4710
4711 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
4712
4713 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4714
4715 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4716
4717 * gdbarch.sh: Update copyright year range.
4718
4719 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4720
4721 Update copyright year range in copyright header of all GDB files.
4722
4723 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4724
4725 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4726 to the list of directories to update.
4727
4728 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4729
4730 * top.c (print_gdb_version): Update copyright year.
4731
4732 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4733
4734 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
4735
4736 For older changes see ChangeLog-2020.
4737 \f
4738 Local Variables:
4739 mode: change-log
4740 left-margin: 8
4741 fill-column: 74
4742 version-control: never
4743 coding: utf-8
4744 End: