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