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