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