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