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