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