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