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