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