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