1 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
3 * target.h (current_top_target): Remove, make callers use the
4 current inferior instead.
5 * target.c (current_top_target): Remove.
7 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9 * target.h (target_shortname): Change to function declaration.
10 (target_longname): Likewise.
11 (target_attach_no_wait): Likewise.
12 (target_post_attach): Likewise.
13 (target_prepare_to_store): Likewise.
14 (target_supports_enable_disable_tracepoint): Likewise.
15 (target_supports_string_tracing): Likewise.
16 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
17 (target_supports_dumpcore): Likewise.
18 (target_dumpcore): Likewise.
19 (target_can_run_breakpoint_commands): Likewise.
20 (target_files_info): Likewise.
21 (target_post_startup_inferior): Likewise.
22 (target_insert_fork_catchpoint): Likewise.
23 (target_remove_fork_catchpoint): Likewise.
24 (target_insert_vfork_catchpoint): Likewise.
25 (target_remove_vfork_catchpoint): Likewise.
26 (target_insert_exec_catchpoint): Likewise.
27 (target_remove_exec_catchpoint): Likewise.
28 (target_set_syscall_catchpoint): Likewise.
29 (target_rcmd): Likewise.
30 (target_can_lock_scheduler): Likewise.
31 (target_can_async_p): Likewise.
32 (target_is_async_p): Likewise.
33 (target_execution_direction): Likewise.
34 (target_extra_thread_info): Likewise.
35 (target_pid_to_exec_file): Likewise.
36 (target_thread_architecture): Likewise.
37 (target_find_memory_regions): Likewise.
38 (target_make_corefile_notes): Likewise.
39 (target_get_bookmark): Likewise.
40 (target_goto_bookmark): Likewise.
41 (target_stopped_by_watchpoint): Likewise.
42 (target_stopped_by_sw_breakpoint): Likewise.
43 (target_supports_stopped_by_sw_breakpoint): Likewise.
44 (target_stopped_by_hw_breakpoint): Likewise.
45 (target_supports_stopped_by_hw_breakpoint): Likewise.
46 (target_have_steppable_watchpoint): Likewise.
47 (target_can_use_hardware_watchpoint): Likewise.
48 (target_region_ok_for_hw_watchpoint): Likewise.
49 (target_can_do_single_step): Likewise.
50 (target_insert_watchpoint): Likewise.
51 (target_remove_watchpoint): Likewise.
52 (target_insert_hw_breakpoint): Likewise.
53 (target_remove_hw_breakpoint): Likewise.
54 (target_can_accel_watchpoint_condition): Likewise.
55 (target_can_execute_reverse): Likewise.
56 (target_get_ada_task_ptid): Likewise.
57 (target_filesystem_is_local): Likewise.
58 (target_trace_init): Likewise.
59 (target_download_tracepoint): Likewise.
60 (target_can_download_tracepoint): Likewise.
61 (target_download_trace_state_variable): Likewise.
62 (target_enable_tracepoint): Likewise.
63 (target_disable_tracepoint): Likewise.
64 (target_trace_start): Likewise.
65 (target_trace_set_readonly_regions): Likewise.
66 (target_get_trace_status): Likewise.
67 (target_get_tracepoint_status): Likewise.
68 (target_trace_stop): Likewise.
69 (target_trace_find): Likewise.
70 (target_get_trace_state_variable_value): Likewise.
71 (target_save_trace_data): Likewise.
72 (target_upload_tracepoints): Likewise.
73 (target_upload_trace_state_variables): Likewise.
74 (target_get_raw_trace_data): Likewise.
75 (target_get_min_fast_tracepoint_insn_len): Likewise.
76 (target_set_disconnected_tracing): Likewise.
77 (target_set_circular_trace_buffer): Likewise.
78 (target_set_trace_buffer_size): Likewise.
79 (target_set_trace_notes): Likewise.
80 (target_get_tib_address): Likewise.
81 (target_set_permissions): Likewise.
82 (target_static_tracepoint_marker_at): Likewise.
83 (target_static_tracepoint_markers_by_strid): Likewise.
84 (target_traceframe_info): Likewise.
85 (target_use_agent): Likewise.
86 (target_can_use_agent): Likewise.
87 (target_augmented_libraries_svr4_read): Likewise.
88 (target_log_command): Likewise.
89 * target.c (target_shortname): New.
90 (target_longname): New.
91 (target_attach_no_wait): New.
92 (target_post_attach): New.
93 (target_prepare_to_store): New.
94 (target_supports_enable_disable_tracepoint): New.
95 (target_supports_string_tracing): New.
96 (target_supports_evaluation_of_breakpoint_conditions): New.
97 (target_supports_dumpcore): New.
98 (target_dumpcore): New.
99 (target_can_run_breakpoint_commands): New.
100 (target_files_info): New.
101 (target_post_startup_inferior): New.
102 (target_insert_fork_catchpoint): New.
103 (target_remove_fork_catchpoint): New.
104 (target_insert_vfork_catchpoint): New.
105 (target_remove_vfork_catchpoint): New.
106 (target_insert_exec_catchpoint): New.
107 (target_remove_exec_catchpoint): New.
108 (target_set_syscall_catchpoint): New.
110 (target_can_lock_scheduler): New.
111 (target_can_async_p): New.
112 (target_is_async_p): New.
113 (target_execution_direction): New.
114 (target_extra_thread_info): New.
115 (target_pid_to_exec_file): New.
116 (target_thread_architecture): New.
117 (target_find_memory_regions): New.
118 (target_make_corefile_notes): New.
119 (target_get_bookmark): New.
120 (target_goto_bookmark): New.
121 (target_stopped_by_watchpoint): New.
122 (target_stopped_by_sw_breakpoint): New.
123 (target_supports_stopped_by_sw_breakpoint): New.
124 (target_stopped_by_hw_breakpoint): New.
125 (target_supports_stopped_by_hw_breakpoint): New.
126 (target_have_steppable_watchpoint): New.
127 (target_can_use_hardware_watchpoint): New.
128 (target_region_ok_for_hw_watchpoint): New.
129 (target_can_do_single_step): New.
130 (target_insert_watchpoint): New.
131 (target_remove_watchpoint): New.
132 (target_insert_hw_breakpoint): New.
133 (target_remove_hw_breakpoint): New.
134 (target_can_accel_watchpoint_condition): New.
135 (target_can_execute_reverse): New.
136 (target_get_ada_task_ptid): New.
137 (target_filesystem_is_local): New.
138 (target_trace_init): New.
139 (target_download_tracepoint): New.
140 (target_can_download_tracepoint): New.
141 (target_download_trace_state_variable): New.
142 (target_enable_tracepoint): New.
143 (target_disable_tracepoint): New.
144 (target_trace_start): New.
145 (target_trace_set_readonly_regions): New.
146 (target_get_trace_status): New.
147 (target_get_tracepoint_status): New.
148 (target_trace_stop): New.
149 (target_trace_find): New.
150 (target_get_trace_state_variable_value): New.
151 (target_save_trace_data): New.
152 (target_upload_tracepoints): New.
153 (target_upload_trace_state_variables): New.
154 (target_get_raw_trace_data): New.
155 (target_get_min_fast_tracepoint_insn_len): New.
156 (target_set_disconnected_tracing): New.
157 (target_set_circular_trace_buffer): New.
158 (target_set_trace_buffer_size): New.
159 (target_set_trace_notes): New.
160 (target_get_tib_address): New.
161 (target_set_permissions): New.
162 (target_static_tracepoint_marker_at): New.
163 (target_static_tracepoint_markers_by_strid): New.
164 (target_traceframe_info): New.
165 (target_use_agent): New.
166 (target_can_use_agent): New.
167 (target_augmented_libraries_svr4_read): New.
168 (target_log_command): New.
169 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
170 * infrun.c (set_schedlock_func): Adjust.
171 * mi/mi-main.c (exec_reverse_continue): Adjust.
172 * reverse.c (exec_reverse_once): Adjust.
173 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
174 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
175 * remote-sim.c (gdbsim_target::detach): Adjust.
176 (gdbsim_target::files_info): Adjust.
178 2021-03-24 Tom Tromey <tom@tromey.com>
180 * dwarf2/read.c (dw2_map_matching_symbols): Update.
181 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
182 (check_match, dw2_expand_symtabs_matching)
183 (dwarf2_debug_names_index::map_matching_symbols)
184 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
186 2021-03-24 Keith Seitz <keiths@redhat.com>
188 * compile/compile-cplus-types.c
189 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
192 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
194 * gdbarch.sh (gdbarch_data_registry): Make static.
195 * gdbarch.c: Re-generate.
197 2021-03-24 Luis Machado <luis.machado@linaro.org>
199 * NEWS: Mention memory tagging changes.
201 2021-03-24 Luis Machado <luis.machado@linaro.org>
203 * printcmd.c (decode_format): Handle the 'm' modifier.
204 (do_examine): Display allocation tags when required/supported.
205 (should_validate_memtags): New function.
206 (print_command_1): Display memory tag mismatches.
207 * valprint.c (show_memory_tag_violations): New function.
208 (value_print_option_defs): Add new option "memory-tag-violations".
209 (user_print_options) <memory_tag_violations>: Initialize to 1.
210 * valprint.h (struct format_data) <print_tags>: New field.
211 (value_print_options) <memory_tag_violations>: New field.
213 2021-03-24 Luis Machado <luis.machado@linaro.org>
215 * printcmd.c: Include gdbsupport/rsp-low.h.
216 (memory_tag_list): New static global.
217 (process_print_command_args): Factored out of
219 (print_command_1): Use process_print_command_args.
220 (show_addr_not_tagged, show_memory_tagging_unsupported)
221 (memory_tag_command, memory_tag_print_tag_command)
222 (memory_tag_print_logical_tag_command)
223 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
224 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
225 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
227 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
229 2021-03-24 Luis Machado <luis.machado@linaro.org>
231 * aarch64-linux-tdep.c
232 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
233 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
235 2021-03-24 Luis Machado <luis.machado@linaro.org>
237 * aarch64-linux-tdep.c
238 (aarch64_linux_report_signal_info): New function.
239 (aarch64_linux_init_abi): Register
240 aarch64_linux_report_signal_info as the report_signal_info hook.
241 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
242 (SEGV_MTESERR): Define.
244 2021-03-24 Luis Machado <luis.machado@linaro.org>
246 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
247 (aarch64_linux_ltag_tests): New function.
248 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
250 2021-03-24 Luis Machado <luis.machado@linaro.org>
252 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
253 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
254 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
255 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
257 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
258 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
259 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
260 (aarch64_linux_get_ltag): New functions.
261 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
262 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
263 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
264 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
266 2021-03-24 Luis Machado <luis.machado@linaro.org>
268 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
270 (struct smaps_data): New struct.
271 (decode_vmflags): Handle the 'mt' flag.
272 (parse_smaps_data): New function, refactored from
273 linux_find_memory_regions_full.
274 (linux_address_in_memtag_page): New function.
275 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
276 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
278 2021-03-24 Luis Machado <luis.machado@linaro.org>
280 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
281 instead of char arrays.
283 2021-03-24 Luis Machado <luis.machado@linaro.org>
285 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
286 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
287 nat/aarch64-mte-linux-ptrace.h.
288 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
289 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
291 <fetch_memtags>: New method override.
292 <store_memtags>: New method override.
293 (aarch64_linux_nat_target::supports_memory_tagging): New method.
294 (aarch64_linux_nat_target::fetch_memtags): New method.
295 (aarch64_linux_nat_target::store_memtags): New method.
296 * arch/aarch64-mte-linux.c: New file.
297 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
298 (AARCH64_MTE_GRANULE_SIZE): Define.
299 (aarch64_memtag_type): New enum.
300 (aarch64_mte_get_tag_granules): New prototype.
301 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
302 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
303 * nat/aarch64-mte-linux-ptrace.c: New file.
304 * nat/aarch64-mte-linux-ptrace.h: New file.
306 2021-03-24 Luis Machado <luis.machado@linaro.org>
308 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
309 * nat/aarch64-mte-linux-ptrace.h: New file.
311 2021-03-24 Luis Machado <luis.machado@linaro.org>
313 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
314 (store_mteregs_to_thread): New function.
315 (aarch64_linux_nat_target::fetch_registers): Update to call
316 fetch_mteregs_from_thread.
317 (aarch64_linux_nat_target::store_registers): Update to call
318 store_mteregs_to_thread.
319 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
320 (aarch64_cannot_store_register): Handle MTE registers.
321 (aarch64_gdbarch_init): Initialize and setup MTE registers.
322 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
323 <has_mte>: New method.
324 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
326 2021-03-24 Luis Machado <luis.machado@linaro.org>
328 * aarch64-linux-nat.c
329 (aarch64_linux_nat_target::read_description): Take MTE flag into
331 Slight refactor to hwcap flag checking.
332 * aarch64-linux-tdep.c
333 (aarch64_linux_core_read_description): Likewise.
334 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
336 (aarch64_read_description): Add mte_p parameter and update to use it.
337 Update the documentation.
338 (aarch64_gdbarch_init): Update call to aarch64_read_description.
339 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
340 * arch/aarch64.c: Include ../features/aarch64-mte.c.
341 (aarch64_create_target_description): Add mte_p parameter and update
343 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
345 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
346 * features/aarch64-mte.c: New file, generated.
347 * features/aarch64-mte.xml: New file.
349 2021-03-24 Luis Machado <luis.machado@linaro.org>
351 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
352 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
353 * aarch64-linux-tdep.c: Likewise
354 * arch/aarch64-mte-linux.h: New file.
356 2021-03-24 Luis Machado <luis.machado@linaro.org>
358 * remote: Include gdbsupport/selftest.h.
359 (test_memory_tagging_functions): New function.
360 (_initialize_remote): Register test_memory_tagging_functions.
362 2021-03-24 Luis Machado <luis.machado@linaro.org>
364 * remote.c (PACKET_memory_tagging_feature): New enum.
365 (remote_memory_tagging_p): New function.
366 (remote_protocol_features): New "memory-tagging" entry.
367 (remote_target::remote_query_supported): Handle memory tagging
369 (remote_target::supports_memory_tagging): Implement.
370 (create_fetch_memtags_request, parse_fetch_memtags_reply)
371 (create_store_memtags_request): New functions.
372 (remote_target::fetch_memtags): Implement.
373 (remote_target::store_memtags): Implement.
374 (_initialize_remote): Add new "memory-tagging-feature"
377 2021-03-24 Luis Machado <luis.machado@linaro.org>
379 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
380 (default_memtag_matches_p, default_set_memtags)
381 (default_get_memtag): New functions.
382 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
383 (default_memtag_matches_p, default_set_memtags)
384 (default_get_memtag): New prototypes.
385 * gdbarch.c: Regenerate.
386 * gdbarch.h: Regenerate.
387 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
388 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
389 (enum memtag_type): New enum.
391 2021-03-24 Luis Machado <luis.machado@linaro.org>
393 * remote.c (remote_target) <supports_memory_tagging>: New method
395 <fetch_memtags>: New method override.
396 <store_memtags>: New method override.
397 (remote_target::supports_memory_tagging): New method.
398 (remote_target::fetch_memtags): New method.
399 (remote_target::store_memtags): New method.
400 * target-delegates.c: Regenerate.
401 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
403 <fetch_memtags>: New virtual method.
404 <store_memtags>: New virtual method.
405 (target_supports_memory_tagging): Define.
406 (target_fetch_memtags): Define.
407 (target_store_memtags): Define.
408 * target-debug.h (target_debug_print_size_t)
409 (target_debug_print_const_gdb_byte_vector_r)
410 (target_debug_print_gdb_byte_vector_r): New functions.
412 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
414 * target.h (target_longname): Remove.
416 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
418 * target.h (target_is_pushed): Remove, update callers to use
419 inferior::target_is_pushed instead.
420 * target.c (target_is_pushed): Remove.
422 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
424 * target.h (push_target): Remove, update callers to use
425 inferior::push_target.
426 * target.c (push_target): Remove.
427 * inferior.h (class inferior) <push_target>: New overload.
429 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
431 * target.h (unpush_target): Remove, update all callers
432 to use `inferior::unpush_target` instead.
433 (struct target_unpusher) <operator()>: Just declare.
434 * target.c (unpush_target): Remove.
435 (target_unpusher::operator()): New.
437 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
439 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
441 (process_full_comp_unit): Validate the top-level tag before
442 processing the first DIE.
443 (read_func_scope): Ensure we have a valid builder.
445 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
447 * objc-lang.c (objc_demangle): Renamed to
448 objc_language::demangle_symbol, and moved later in the file.
449 (objc_language::sniff_from_mangled_name): Call demangle_symbol
451 (objc_language::demangle_symbol): Defined outside of class
452 declaration. The definition is the old objc_demangle with NULL
453 changed to nullptr, and if conditions relating to nullptr pointers
454 or null character checks made explicit.
455 * objc-lang.h (objc_demangle): Delete declaration.
457 2021-03-22 Martin Liska <mliska@suse.cz>
459 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
460 (_initialize_arm_tdep): Likewise.
462 2021-03-20 Tom Tromey <tom@tromey.com>
464 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
465 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
466 * psymtab.h (make_psymbol_functions): Don't declare.
467 * psymtab.c (make_psymbol_functions): Remove.
468 (maintenance_print_psymbols): Update.
469 * psympriv.h (struct psymbol_functions): Add no-argument
471 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
472 <partial_symtabs>: Remove.
473 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
474 * elfread.c (read_partial_symbols): Update.
475 (elf_symfile_read): Remove check for existing partial symbols.
477 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
479 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
481 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
483 * dbxread.c (dbx_symfile_read): Create partial symtabs.
484 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
486 2021-03-20 Tom Tromey <tom@tromey.com>
488 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
489 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
490 * symfile-debug.c (objfile::has_partial_symbols)
491 (objfile::find_last_source_symtab)
492 (objfile::forget_cached_source_info)
493 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
494 (objfile::print_stats, objfile::dump)
495 (objfile::expand_symtabs_for_function)
496 (objfile::expand_all_symtabs)
497 (objfile::expand_symtabs_with_fullname)
498 (objfile::map_matching_symbols)
499 (objfile::expand_symtabs_matching)
500 (objfile::find_pc_sect_compunit_symtab)
501 (objfile::map_symbol_filenames)
502 (objfile::find_compunit_symtab_by_address)
503 (objfile::lookup_global_symbol_language)
504 (objfile::require_partial_symbols): Update.
505 * psymtab.c (maintenance_print_psymbols)
506 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
507 * objfiles.h (struct objfile) <qf>: Now a forward_list.
508 * objfiles.c (objfile_relocate1): Update.
509 * elfread.c (elf_symfile_read): Update.
511 2021-03-20 Tom Tromey <tom@tromey.com>
513 * objfiles.h (struct objfile) <psymtabs>: Remove method.
515 2021-03-20 Tom Tromey <tom@tromey.com>
517 * psymtab.c (psymbol_functions::count_psyms): Rename.
518 (psymbol_functions::print_stats): Update.
519 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
522 2021-03-20 Tom Tromey <tom@tromey.com>
524 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
525 (psymbol_functions::find_pc_sect_psymtab): Rename.
526 (psymbol_functions::find_pc_sect_compunit_symtab)
527 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
528 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
530 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
532 2021-03-20 Tom Tromey <tom@tromey.com>
534 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
535 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
536 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
538 (add_psymbol_to_bcache): Remove.
539 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
540 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
542 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
543 <add_psymbol>: Likewise.
544 (standard_psymtab, legacy_psymtab): Likewise.
545 * mdebugread.c (parse_partial_symbols): Update.
546 (handle_psymbol_enumerators): Add partial_symtabs parameter.
547 (handle_psymbol_enumerators): Update.
548 (new_psymtab): Add partial_symtabs parameter.
549 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
550 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
552 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
553 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
555 * dbxread.c (read_dbx_symtab): Update.
556 (start_psymtab): Add partial_symtabs parameter.
557 (dbx_end_psymtab): Update.
558 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
559 (ctf_psymtab): Add partial_symtabs parameter.
560 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
562 (scan_partial_symbols): Add partial_symtabs parameter.
563 (scan_partial_symbols, elfctf_build_psymtabs)
564 (ctf_psymtab_add_enums): Update.
566 2021-03-20 Tom Tromey <tom@tromey.com>
568 * symfile.c (read_symbols): Use objfile method.
569 * symfile-debug.c (objfile::require_partial_symbols): New method.
570 * psymtab.h (require_partial_symbols): Don't declare.
571 * psymtab.c (require_partial_symbols): Use objfile method. Now
573 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
574 (psymbol_functions::lookup_symbol)
575 (psymbol_functions::lookup_global_symbol_language)
576 (psymbol_functions::find_last_source_symtab)
577 (psymbol_functions::forget_cached_source_info)
578 (psymbol_functions::print_stats)
579 (psymbol_functions::expand_symtabs_for_function)
580 (psymbol_functions::expand_all_symtabs)
581 (psymbol_functions::expand_symtabs_with_fullname)
582 (psymbol_functions::map_symbol_filenames)
583 (psymbol_functions::map_matching_symbols)
584 (psymbol_functions::expand_symtabs_matching)
585 (psymbol_functions::find_compunit_symtab_by_address)
586 (maintenance_print_psymbols, maintenance_info_psymtabs)
587 (maintenance_check_psymtabs): Update.
588 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
591 2021-03-20 Tom Tromey <tom@tromey.com>
593 * xcoffread.c (xcoff_sym_fns): Update.
594 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
595 * symfile-debug.c (objfile::has_partial_symbols): Use
596 can_lazily_read_symbols.
597 (debug_sym_read_psymbols): Remove.
598 (debug_sym_fns, install_symfile_debug_logging): Update.
599 * quick-symbol.h (struct quick_symbol_functions)
600 <can_lazily_read_symbols, read_partial_symbols>: New methods.
601 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
602 * mipsread.c (ecoff_sym_fns): Update.
603 * machoread.c (macho_sym_fns): Update.
604 * elfread.c (struct lazy_dwarf_reader): New.
605 (elf_symfile_read): Update.
606 (read_psyms): Now a method of lazy_dwarf_reader.
607 (elf_sym_fns): Update.
608 (elf_sym_fns_lazy_psyms): Remove.
609 * dbxread.c (aout_sym_fns): Update.
610 * coffread.c (coff_sym_fns): Update.
612 2021-03-20 Tom Tromey <tom@tromey.com>
614 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
615 (reread_symbols): Move reset_psymtabs call later.
616 * objfiles.c (objfile::objfile): Don't initialize
619 2021-03-20 Tom Tromey <tom@tromey.com>
621 * dwarf2/read.c (dwarf2_build_psymtabs): Call
623 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
624 * psymtab.h (make_psymbol_functions): Add partial_symtabs
626 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
628 (psymbol_functions::find_pc_sect_compunit_symtab)
629 (psymbol_functions::print_stats, psymbol_functions::dump)
630 (psymbol_functions::has_symbols): Update.
631 (make_psymbol_functions, dump_psymtab_addrmap): Add
632 partial_symtabs parameter.
633 (maintenance_print_psymbols): Update.
634 (psymbol_functions::expand_symtabs_matching): Update.
635 * psympriv.h (struct psymbol_functions): Add constructor.
636 <m_partial_symtabs>: New member.
637 <set_partial_symtabs>: New method.
639 2021-03-20 Tom Tromey <tom@tromey.com>
641 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
643 (process_psymtab_comp_unit_reader)
644 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
645 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
646 Reference psymtabs via per_bfd.
648 2021-03-20 Tom Tromey <tom@tromey.com>
650 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
652 (add_address_entry): Remove objfile parameter.
653 (add_address_entry_worker): Update.
654 (write_address_map): Replace objfile parameter with per_bfd.
655 (write_gdbindex, write_psymtabs_to_index): Update.
657 2021-03-20 Tom Tromey <tom@tromey.com>
659 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
660 print_bcache parameter.
661 * symfile-debug.c (objfile::print_stats): Add print_bcache
663 * quick-symbol.h (struct quick_symbol_functions)
664 <print_stats>: Add print_bcache parameter.
665 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
667 (print_objfile_statistics): Move psymtab code to psymtab.c.
668 * psymtab.c (count_psyms): Move from symmisc.c.
669 (psymbol_functions::print_stats): Print partial symbol and bcache
670 statistics. Add print_bcache parameter.
671 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
672 (struct objfile) <print_stats>: Add print_bcache parameter.
673 * maint.c (maintenance_print_statistics): Update.
675 2021-03-20 Tom Tromey <tom@tromey.com>
677 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
679 * dwarf2/read.c (create_addrmap_from_index)
680 (create_addrmap_from_aranges): Set per_bfd addrmap.
681 (dwarf2_read_gdb_index): Don't set partial_symtabs.
682 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
684 (dwarf2_read_debug_names): Don't set partial_symtabs.
685 (dwarf2_initialize_objfile): Likewise.
687 2021-03-20 Tom Tromey <tom@tromey.com>
689 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
692 2021-03-20 Tom Tromey <tom@tromey.com>
694 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
695 (~psymtab_discarder, keep): Update.
697 <m_partial_symtabs>: New member.
698 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
700 2021-03-20 Tom Tromey <tom@tromey.com>
702 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
703 (xcoff_end_psymtab): Update.
704 (scan_xcoff_symtab): Add partial_symtabs parameter.
705 (xcoff_initial_scan): Update.
706 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
707 * mdebugread.c (mdebug_build_psymtabs): Update.
708 (parse_partial_symbols): Add partial_symtabs parameter.
709 * dbxread.c (dbx_symfile_read): Update.
710 (read_dbx_symtab): Add partial_symtabs parameter.
711 (read_dbx_symtab): Update.
712 (dbx_end_psymtab): Add partial_symtabs parameter.
714 2021-03-20 Tom Tromey <tom@tromey.com>
716 * quick-symbol.h (struct quick_symbol_functions)
717 <relocated>: New method.
718 * psymtab.h (struct psymbol_functions) <relocated>: New
720 <fill_psymbol_map>: Declare method.
721 <m_psymbol_map>: New member.
722 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
723 (psymbol_functions::find_compunit_symtab_by_address): Update.
724 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
725 (struct objfile) <psymbol_map>: Remove.
726 * objfiles.c (objfile_relocate1): Update.
728 2021-03-20 Tom Tromey <tom@tromey.com>
730 * psympriv.h (struct psymbol_functions): New.
731 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
732 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
733 (objfile::lookup_global_symbol_language): Update.
734 * quick-symbol.h (struct quick_symbol_functions): Convert function
735 pointers to methods. Add virtual destructor.
736 (quick_symbol_functions_up): New typedef.
737 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
738 (dwarf2_debug_names_functions): Don't declare.
739 (make_psymbol_functions): Declare.
740 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
741 (psymbol_functions::find_pc_sect_compunit_symtab)
742 (psymbol_functions::lookup_symbol)
743 (psymbol_functions::lookup_global_symbol_language)
744 (psymbol_functions::find_last_source_symtab)
745 (psymbol_functions::forget_cached_source_info)
746 (psymbol_functions::print_stats, psymbol_functions::dump)
747 (psymbol_functions::expand_symtabs_for_function)
748 (psymbol_functions::expand_all_symtabs)
749 (psymbol_functions::expand_symtabs_with_fullname)
750 (psymbol_functions::map_symbol_filenames)
751 (psymbol_functions::map_matching_symbols)
752 (psymbol_functions::expand_symtabs_matching)
753 (psymbol_functions::has_symbols)
754 (psymbol_functions::find_compunit_symtab_by_address): Rename.
755 (psym_functions): Remove.
756 (make_psymbol_functions): New function.
757 * objfiles.h (struct objfile) <qf>: Change type.
758 * elfread.c (elf_symfile_read): Update.
759 * dwarf2/read.c (struct dwarf2_base_index_functions)
760 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
761 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
762 (dwarf2_base_index_functions::find_last_source_symtab)
763 (dwarf2_base_index_functions::forget_cached_source_info)
764 (dwarf2_base_index_functions::map_symtabs_matching_filename)
765 (dwarf2_gdb_index::lookup_symbol)
766 (dwarf2_base_index_functions::print_stats)
767 (dwarf2_gdb_index::dump)
768 (dwarf2_gdb_index::expand_symtabs_for_function)
769 (dwarf2_base_index_functions::expand_all_symtabs)
770 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
772 (dwarf2_gdb_index::map_matching_symbols): New method.
773 (dwarf2_gdb_index::expand_symtabs_matching): New method.
774 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
775 (dwarf2_base_index_functions::map_symbol_filenames)
776 (dwarf2_base_index_functions::has_symbols): Rename.
777 (dwarf2_gdb_index_functions): Remove.
778 (dwarf2_debug_names_index::lookup_symbol)
779 (dwarf2_debug_names_index::dump)
780 (dwarf2_debug_names_index::expand_symtabs_for_function)
781 (dwarf2_debug_names_index::map_matching_symbols)
782 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
783 (dwarf2_debug_names_functions): Remove.
784 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
787 2021-03-20 Tom Tromey <tom@tromey.com>
789 * psymtab.c (require_partial_symbols): Check that 'sf' is not
791 * xcoffread.c (xcoff_sym_fns): Update.
792 * symfile.h (struct sym_fns) <qf>: Remove.
793 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
794 * symfile-debug.c (objfile::has_partial_symbols)
795 (objfile::find_last_source_symtab)
796 (objfile::forget_cached_source_info)
797 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
798 (objfile::print_stats, objfile::dump)
799 (objfile::expand_symtabs_for_function)
800 (objfile::expand_all_symtabs)
801 (objfile::expand_symtabs_with_fullname)
802 (objfile::map_matching_symbols)
803 (objfile::expand_symtabs_matching)
804 (objfile::find_pc_sect_compunit_symtab)
805 (objfile::map_symbol_filenames)
806 (objfile::find_compunit_symtab_by_address)
807 (objfile::lookup_global_symbol_language, debug_sym_fns)
808 (install_symfile_debug_logging): Update.
809 * objfiles.h (struct objfile) <qf>: New member.
810 * mipsread.c (ecoff_sym_fns): Update.
811 * machoread.c (macho_sym_fns): Update.
812 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
814 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
815 * dbxread.c (aout_sym_fns): Update.
816 * coffread.c (coff_sym_fns): Update.
818 2021-03-20 Tom Tromey <tom@tromey.com>
820 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
821 (expand_symtabs_file_matcher_ftype)
822 (expand_symtabs_symbol_matcher_ftype)
823 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
824 Move to quick-symbol.h.
825 * quick-symbol.h: New file.
827 2021-03-20 Tom Tromey <tom@tromey.com>
829 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
830 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
831 (basic_lookup_transparent_type_quick)
832 (find_pc_sect_compunit_symtab, find_symbol_at_address)
833 (find_line_symtab, global_symbol_searcher::expand_symtabs):
835 * symmisc.c (print_objfile_statistics, dump_objfile)
836 (maintenance_expand_symtabs): Update.
837 * symfile.c (symbol_file_add_with_addrs)
838 (expand_symtabs_matching, map_symbol_filenames): Update.
839 * symfile-debug.c (objfile::has_partial_symbols)
840 (objfile::find_last_source_symtab)
841 (objfile::forget_cached_source_info)
842 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
843 (objfile::print_stats, objfile::dump)
844 (objfile::expand_symtabs_for_function)
845 (objfile::expand_all_symtabs)
846 (objfile::expand_symtabs_with_fullname)
847 (objfile::map_matching_symbols)
848 (objfile::expand_symtabs_matching)
849 (objfile::find_pc_sect_compunit_symtab)
850 (objfile::map_symbol_filenames)
851 (objfile::find_compunit_symtab_by_address)
852 (objfile::lookup_global_symbol_language): New methods.
853 (debug_sym_quick_functions): Remove.
854 (debug_sym_fns, install_symfile_debug_logging): Update.
855 * source.c (forget_cached_source_info_for_objfile)
856 (select_source_symtab): Update.
857 * objfiles.h (struct objfile): Add methods corresponding to
858 quick_symbol_functions.
859 * objfiles.c (objfile::has_partial_symbols): Move to
861 * linespec.c (iterate_over_all_matching_symtabs): Update.
862 * cp-support.c (add_symbol_overload_list_qualified): Update.
863 * ada-lang.c (add_nonlocal_symbols): Update.
865 2021-03-20 Tom Tromey <tom@tromey.com>
867 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
868 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
870 * symfile-debug.c (debug_qf_has_symbols): Return bool.
871 * psymtab.c (psym_has_symbols): Return bool.
872 * objfiles.c (objfile::has_partial_symbols): Return bool.
873 * dwarf2/read.c (dw2_has_symbols): Return bool.
875 2021-03-20 Tom Tromey <tom@tromey.com>
877 * symfile.c (read_symbols): Update.
878 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
879 (objfile_has_partial_symbols): Don't declare.
880 * objfiles.c (objfile::has_partial_symbols): Rename from
881 objfile_has_partial_symbols.
882 (objfile_has_symbols, have_partial_symbols): Update.
883 * elfread.c (elf_symfile_read): Update.
884 * dwarf2/read.c (dwarf2_has_info): Update.
885 * coffread.c (coff_symfile_read): Update.
887 2021-03-20 Tom Tromey <tom@tromey.com>
889 * coffread.c: Include dwarf2/public.h.
890 * dwarf2/frame.c: Include dwarf2/public.h.
891 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
892 * dwarf2/public.h: New file.
893 * dwarf2/read.c: Include dwarf2/public.h.
894 * elfread.c: Include dwarf2/public.h.
895 * machoread.c: Include dwarf2/public.h.
896 * symfile.h (dwarf2_has_info, enum dw_index_kind)
897 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
898 (dwarf2_build_frame_info): Move to dwarf2/public.h.
899 * xcoffread.c: Include dwarf2/public.h.
901 2021-03-20 Tom Tromey <tom@tromey.com>
903 * symfile.h (enum dwarf2_section_enum)
904 (dwarf2_get_section_info): Move to dwarf2/read.h.
905 * dwarf2/read.h (enum dwarf2_section_enum)
906 (dwarf2_get_section_info): Move from symfile.h.
908 2021-03-19 Pedro Alves <pedro@palves.net>
910 * thread.c (any_thread_of_inferior): Check if there's a selected
911 thread before calling inferior_thread().
913 2021-03-18 Tom Tromey <tromey@adacore.com>
915 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
917 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
918 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
920 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
922 * python/py-param.c (get_set_value): Update header comment.
924 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
926 * infrun.c (check_multi_target_resumption): Remove argument to
927 all_non_exited_inferiors.
929 2021-03-16 Christian Biesinger <cbiesinger@google.com>
931 * windows-nat.c (windows_init_thread_list): Add message to
934 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
936 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
937 well as PyLong_Check for Python 2.
939 2021-03-15 Tom Tromey <tromey@adacore.com>
942 * rust-exp.y (maker_map): Use gdb::hash_enum.
943 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
945 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
947 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
950 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
952 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
953 parameter, adjust caller.
955 2021-03-15 Tom Tromey <tromey@adacore.com>
957 * ada-exp.y (simple_exp): Always push a result for unary '+'.
959 2021-03-15 Tom Tromey <tromey@adacore.com>
961 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
962 ada_ensure_varsize_limit.
964 2021-03-15 Tom Tromey <tromey@adacore.com>
966 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
968 * ada-exp.y (maybe_overload): New function.
969 (ada_wrap_overload): New function.
970 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
971 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
972 (or_else_exp, xor_exp, primary): Update.
974 2021-03-15 Tom Tromey <tromey@adacore.com>
977 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
978 call for tagged type.
980 2021-03-15 Tom Tromey <tromey@adacore.com>
982 * ada-exp.y (exp1): Handle resolution of the right hand side of an
985 2021-03-15 Tom Tromey <tromey@adacore.com>
987 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
989 (ada_assign_operation::evaluate): Update.
990 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
993 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
995 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
997 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
999 * python/python.c (gdbpy_source_objfile_script): Use
1000 make_scoped_restore to restore gdbpy_current_objfile.
1001 (gdbpy_execute_objfile_script): Likewise.
1003 2021-03-14 Tom Tromey <tom@tromey.com>
1005 * dwarf2/read.c (read_attribute_value): Use cu_header
1008 2021-03-14 Tom Tromey <tom@tromey.com>
1010 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
1011 (peek_die_abbrev): Use reader.abfd.
1013 2021-03-14 Tom Tromey <tom@tromey.com>
1015 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
1018 2021-03-13 Tom Tromey <tom@tromey.com>
1020 * dwarf2/read.c (struct partial_die_info): Update.
1021 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
1022 (load_partial_dies, partial_die_info::partial_die_info): Update.
1023 * dwarf2/abbrev.h (lookup_abbrev): Constify.
1025 2021-03-13 Tom Tromey <tom@tromey.com>
1027 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
1029 2021-03-12 Christian Biesinger <cbiesinger@google.com>
1032 * cp-support.c: Use scoped_segv_handler_restore.
1033 * event-top.c (thread_local_segv_handler): Made static.
1034 (scoped_segv_handler_restore::scoped_segv_handler_restore):
1036 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
1038 * event-top.h (class scoped_segv_handler_restore): New class.
1039 (thread_local_segv_handler): Removed.
1041 2021-03-10 Tom Tromey <tromey@adacore.com>
1043 * parser-defs.h (parser_state): Change completion to bool.
1044 <parse_completion>: Likewise.
1045 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1046 (ada_resolve_variable, ada_resolve_function): Update.
1047 * ada-lang.c (ada_find_operator_symbol): Change
1048 parse_completion to bool.
1049 (ada_resolve_funcall, ada_resolve_variable)
1050 (ada_resolve_function): Likewise.
1052 2021-03-09 Tom Tromey <tromey@adacore.com>
1054 * eval.c (operation::evaluate_funcall): Use function formal
1055 parameter types when evaluating.
1057 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1059 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
1060 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
1061 and owner to m_owner.
1063 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
1065 * f-exp.h (eval_op_f_loc): Declare.
1066 (expr::fortran_loc_operation): New typedef.
1067 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
1069 (f77_keywords): Add LOC keyword.
1070 * f-lang.c (eval_op_f_loc): New function.
1071 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
1073 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1075 * f-exp.h (eval_op_f_array_shape): Declare.
1076 (fortran_array_shape_operation): New type.
1077 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
1079 (f77_keywords): Add "shape" keyword.
1080 * f-lang.c (fortran_array_shape): New function.
1081 (eval_op_f_array_shape): New function.
1082 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
1084 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1086 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
1088 (expr::fortran_array_size_1arg): New type.
1089 (expr::fortran_array_size_2arg): Likewise.
1090 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
1091 UNOP_OR_BINOP_INTRINSIC.
1092 (f77_keywords): Add "size" keyword.
1093 * f-lang.c (fortran_array_size): New function.
1094 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
1095 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
1097 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
1099 * f-exp.h (eval_op_f_rank): Declare.
1100 (expr::fortran_rank_operation): New typedef.
1101 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
1103 (f77_keywords): Add "rank" keyword.
1104 * f-lang.c (eval_op_f_rank): New function.
1105 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
1107 2021-03-08 Tom Tromey <tom@tromey.com>
1109 * printcmd.c (set_command): Remove null check.
1110 * value.c (init_if_undefined_command): Remove null check.
1112 2021-03-08 Tom Tromey <tom@tromey.com>
1114 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
1116 * p-exp.y (variable): Update.
1117 * go-exp.y (variable): Update.
1118 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
1119 Remove overload for objfile.
1120 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
1122 (check_objfile): Likewise.
1123 (dump_for_expression): Likewise. Remove overload for objfile.
1124 (class var_msym_value_operation): Use bound_minimal_symbol.
1125 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
1127 (var_msym_value_operation::evaluate_for_address)
1128 (var_msym_value_operation::evaluate_for_sizeof)
1129 (var_msym_value_operation::evaluate_for_cast): Update.
1130 * d-exp.y (PrimaryExpression): Update.
1131 * c-exp.y (variable): Update.
1132 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
1133 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1135 * ada-exp.y (write_var_or_type): Update.
1137 2021-03-08 Tom Tromey <tom@tromey.com>
1139 * parser-defs.h (exp_uses_objfile): Return bool.
1140 * parse.c (exp_uses_objfile): Return bool.
1142 2021-03-08 Tom Tromey <tom@tromey.com>
1144 * value.h (eval_skip_value): Don't declare.
1145 * opencl-lang.c (eval_opencl_assign): Update.
1146 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
1147 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1148 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
1149 * expression.h (enum noside) <EVAL_SKIP>: Remove.
1150 * expop.h (typeof_operation::evaluate)
1151 (decltype_operation::evaluate, unop_addr_operation::evaluate)
1152 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
1153 (cxx_cast_operation::evaluate): Update.
1154 * eval.c (eval_skip_value): Remove.
1155 (eval_op_scope, eval_op_var_entry_value)
1156 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
1157 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
1158 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
1159 (eval_op_binary, eval_op_subscript, eval_op_equal)
1160 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
1161 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
1162 (eval_op_complement, eval_op_lognot, eval_op_ind)
1163 (eval_op_memval, eval_op_preinc, eval_op_predec)
1164 (eval_op_postinc, eval_op_postdec, eval_op_type)
1165 (eval_binop_assign_modify, eval_op_objc_msgcall)
1166 (eval_multi_subscript, logical_and_operation::evaluate)
1167 (logical_or_operation::evaluate, array_operation::evaluate)
1168 (operation::evaluate_for_cast)
1169 (var_msym_value_operation::evaluate_for_cast)
1170 (var_value_operation::evaluate_for_cast): Update.
1171 * c-lang.c (c_string_operation::evaluate): Update.
1172 * c-exp.h (objc_nsstring_operation::evaluate)
1173 (objc_selector_operation::evaluate): Update.
1174 * ada-lang.c (ada_assign_operation::evaluate)
1175 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
1176 (ada_atr_size): Update.
1178 2021-03-08 Tom Tromey <tom@tromey.com>
1180 * eval.c: Merge "namespace" scopes.
1182 2021-03-08 Tom Tromey <tom@tromey.com>
1184 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
1186 * parse.c (expr_builder::expr_builder, expr_builder::release):
1189 2021-03-08 Tom Tromey <tom@tromey.com>
1191 * parse.c (expression::expression, expression::~expression):
1193 * expression.h (struct expression): Inline constructor. Remove
1196 2021-03-08 Tom Tromey <tom@tromey.com>
1198 * std-operator.def (BINOP_END): Remove.
1199 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
1200 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
1201 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
1202 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
1203 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
1206 2021-03-08 Tom Tromey <tom@tromey.com>
1208 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
1210 2021-03-08 Tom Tromey <tom@tromey.com>
1212 * std-operator.def (OP_EXTENDED0): Remove.
1214 2021-03-08 Tom Tromey <tom@tromey.com>
1216 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
1217 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
1220 2021-03-08 Tom Tromey <tom@tromey.com>
1222 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
1223 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
1225 2021-03-08 Tom Tromey <tom@tromey.com>
1227 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
1228 * ada-lang.c (ada_binop_minmax): Update.
1229 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1230 Use BINOP_MIN and BINOP_MAX.
1232 2021-03-08 Tom Tromey <tom@tromey.com>
1234 * value.h (evaluate_subexp_with_coercion): Don't declare.
1235 * parse.c (exp_descriptor_standard): Remove.
1236 (expr_builder::expr_builder, expr_builder::release): Update.
1237 (expression::expression): Remove size_t parameter.
1238 (expression::~expression): Simplify.
1239 (expression::resize): Remove.
1240 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
1241 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
1242 (write_exp_elt_longcst, write_exp_elt_floatcst)
1243 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
1244 (write_exp_string_vector, write_exp_bitstring): Remove.
1245 * p-lang.h (class pascal_language) <opcode_print_table,
1246 op_print_tab>: Remove.
1247 * p-lang.c (pascal_language::op_print_tab): Remove.
1248 * opencl-lang.c (class opencl_language) <opcode_print_table>:
1250 * objc-lang.c (objc_op_print_tab): Remove.
1251 (class objc_language) <opcode_print_table>: Remove.
1252 * m2-lang.h (class m2_language) <opcode_print_table,
1253 op_print_tab>: Remove.
1254 * m2-lang.c (m2_language::op_print_tab): Remove.
1255 * language.h (struct language_defn) <post_parser, expression_ops,
1256 opcode_print_table>: Remove.
1257 * language.c (language_defn::expression_ops)
1258 (auto_or_unknown_language::opcode_print_table): Remove.
1259 * go-lang.h (class go_language) <opcode_print_table,
1260 op_print_tab>: Remove.
1261 * go-lang.c (go_language::op_print_tab): Remove.
1262 * f-lang.h (class f_language) <opcode_print_table>: Remove
1263 <op_print_tab>: Remove.
1264 * f-lang.c (f_language::op_print_tab): Remove.
1265 * expression.h (union exp_element): Remove.
1266 (struct expression): Remove size_t parameter from constructor.
1268 <first_opcode>: Update.
1269 <nelts, elts>: Remove.
1270 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
1271 (evaluate_subexp_standard, print_expression, op_string)
1272 (dump_raw_expression): Don't declare.
1273 * expprint.c (print_expression, print_subexp)
1274 (print_subexp_funcall, print_subexp_standard, op_string)
1275 (dump_raw_expression, dump_subexp, dump_subexp_body)
1276 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
1277 (dump_prefix_expression): Update.
1278 * eval.c (evaluate_subexp): Remove.
1279 (evaluate_expression, evaluate_type): Update.
1280 (evaluate_subexpression_type): Remove.
1281 (fetch_subexp_value): Remove "pc" parameter. Update.
1282 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
1283 (evaluate_subexp_standard, evaluate_subexp_for_address)
1284 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
1285 (evaluate_subexp_for_cast): Remove.
1286 (parse_and_eval_type): Update.
1287 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1288 * d-lang.c (d_op_print_tab): Remove.
1289 (class d_language) <opcode_print_table>: Remove.
1290 * c-lang.h (c_op_print_tab): Don't declare.
1291 * c-lang.c (c_op_print_tab): Remove.
1292 (class c_language, class cplus_language, class asm_language, class
1293 minimal_language) <opcode_print_table>: Remove.
1294 * breakpoint.c (update_watchpoint, watchpoint_check)
1295 (watchpoint_exp_is_const, watch_command_1): Update.
1296 * ax-gdb.h (union exp_element): Don't declare.
1297 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
1298 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
1299 (gen_expr_binop_rest): Remove.
1300 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
1301 * ada-lang.c (ada_op_print_tab): Remove.
1302 (class ada_language) <post_parser, opcode_print_table>: Remove.
1304 2021-03-08 Tom Tromey <tom@tromey.com>
1306 * go-lang.c (go_language::expression_ops): Don't declare.
1307 * go-lang.h (class go_language) <expression_ops>: Remove.
1308 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
1310 (class opencl_language) <expression_ops>: Remove.
1311 * d-lang.c (class d_language) <expression_ops>: Remove.
1312 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
1313 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
1314 (class c_language, class cplus_language, class asm_language)
1315 (class minimal_language) <expression_ops>: Remove.
1317 2021-03-08 Tom Tromey <tom@tromey.com>
1319 * ada-lang.c (resolve_subexp, replace_operator_with_call)
1320 (evaluate_subexp_type, assign_aggregate)
1321 (aggregate_assign_positional, aggregate_assign_from_choices)
1322 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
1323 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
1324 (ada_operator_check, ada_forward_operator_length)
1325 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
1327 (post_parser): Update.
1328 (class ada_language) <expresssion_ops>: Remove.
1330 2021-03-08 Tom Tromey <tom@tromey.com>
1332 * m2-lang.h (class m2_language) <expresssion_ops,
1333 exp_descriptor_modula2>: Remove.
1334 * m2-lang.c (evaluate_subexp_modula2)
1335 (m2_language::exp_descriptor_modula2): Remove.
1337 2021-03-08 Tom Tromey <tom@tromey.com>
1339 * f-lang.h (class f_language) <expresssion_ops>: Remove.
1340 <exp_descriptor_tab>: Remove.
1341 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
1342 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
1343 (print_subexp_f, dump_subexp_body_f, operator_check_f)
1344 (f_language::exp_descriptor_tab, fortran_prepare_argument):
1347 2021-03-08 Tom Tromey <tom@tromey.com>
1349 * rust-lang.h (class rust_language) <expression_ops,
1350 exp_descriptor_tab>: Remove.
1351 * rust-lang.c (rust_evaluate_funcall): Remove.
1352 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
1354 (rust_evaluate_subexp): Remove.
1355 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
1356 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
1357 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
1359 2021-03-08 Tom Tromey <tom@tromey.com>
1361 * ada-exp.y: Create operations.
1362 (empty_stoken): Remove.
1363 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
1364 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
1365 (components): New global.
1366 (push_component, choice_component, pop_component, pop_components):
1368 (associations): New global
1369 (push_association, pop_association, pop_associations): New
1371 (ada_parse): Update.
1372 (write_var_from_sym, write_int): Create operations.
1373 (write_exp_op_with_string): Remove.
1374 (write_object_renaming, write_selectors, write_ambiguous_var)
1375 (write_var_or_type, write_name_assoc): Create operations.
1376 * ada-lang.h (ada_index_type): Declare.
1377 * ada-lang.c (ada_index_type): No longer static.
1379 2021-03-08 Tom Tromey <tom@tromey.com>
1381 * f-exp.y: Create operations.
1382 (f_language::parser): Update.
1384 2021-03-08 Tom Tromey <tom@tromey.com>
1386 * m2-exp.y: Create operations.
1387 (m2_language::parser): Update.
1389 2021-03-08 Tom Tromey <tom@tromey.com>
1391 * p-exp.y: Create operations.
1392 (pascal_language::parser): Update.
1394 2021-03-08 Tom Tromey <tom@tromey.com>
1396 * d-exp.y: Create operations.
1399 2021-03-08 Tom Tromey <tom@tromey.com>
1401 * go-exp.y: Create operations.
1402 (go_language::parser): Update.
1404 2021-03-08 Tom Tromey <tom@tromey.com>
1406 * objc-lang.c (end_msglist): Create operations.
1407 * c-exp.y: Change parser to create operations.
1408 (write_destructor_name): Remove.
1411 2021-03-08 Tom Tromey <tom@tromey.com>
1413 * rust-exp.y: Create operations.
1414 (rust_parser::convert_params_to_expression): Change return type.
1415 (binop_maker_ftype): New typedef.
1416 (maker_map): New global.
1417 (rust_parser::convert_ast_to_expression): Change return type.
1418 (rust_language::parser): Update.
1419 (_initialize_rust_exp): Initialize maker_map.
1421 2021-03-08 Tom Tromey <tom@tromey.com>
1423 * stap-probe.c (binop_maker_ftype): New typedef.
1424 (stap_maker_map): New global.
1425 (stap_make_binop): New function.
1426 (stap_parse_register_operand): Return operation_up.
1427 (stap_parse_single_operand, stap_parse_argument_conditionally)
1428 (stap_parse_argument_1): Likewise.
1429 (stap_parse_argument): Create operations.
1430 (stap_probe::parse_arguments): Update.
1431 (_initialize_stap_probe): Initialize stap_maker_map.
1432 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
1434 * i386-tdep.h (i386_stap_parse_special_token): Change return
1436 * i386-tdep.c (i386_stap_parse_special_token_triplet)
1437 (i386_stap_parse_special_token_three_arg_disp)
1438 (i386_stap_parse_special_token): Change return type.
1439 * gdbarch.sh (stap_parse_special_token): Change return type.
1440 * gdbarch.c: Rebuild.
1441 * gdbarch.h: Rebuild.
1442 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
1444 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
1447 2021-03-08 Tom Tromey <tom@tromey.com>
1449 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
1450 * gdbarch.h: Rebuild.
1451 * gdbarch.c: Rebuild.
1452 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
1453 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
1455 (amd64_dtrace_parse_probe_argument): Update.
1457 2021-03-08 Tom Tromey <tom@tromey.com>
1459 * parser-defs.h (struct parser_state) <push, push_new,
1460 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
1461 wrap2>: New methods.
1462 <m_operations>: New member.
1463 * parse.c (parser_state::push_c_string)
1464 (parser_state::push_symbol, parser_state::push_dollar): New
1467 2021-03-08 Tom Tromey <tom@tromey.com>
1469 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
1471 (struct parser_state) <mark_struct_expression>: New method.
1472 * parse.c (parser_state::mark_struct_expression): Update assert.
1473 (parser_state::mark_struct_expression): New method.
1474 (parser_state::mark_completion_tag): Update assert.
1475 (parse_expression_for_completion): Handle expout_last_op.
1477 2021-03-08 Tom Tromey <tom@tromey.com>
1479 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
1481 * value.h (fetch_subexp_value): Add "op" parameter.
1482 * value.c (init_if_undefined_command): Update.
1483 * tracepoint.c (validate_actionline, encode_actions_1): Update.
1484 * stap-probe.c (stap_probe::compile_to_ax): Update.
1485 * printcmd.c (set_command): Update.
1486 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
1488 * parser-defs.h (struct expr_builder) <set_operation>: New
1490 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
1491 * expression.h (struct expression) <first_opcode>: Update.
1493 * expprint.c (dump_raw_expression, dump_prefix_expression):
1495 * expop.h (class var_value_operation) <get_symbol>: New method.
1496 (class register_operation) <get_name>: New method.
1497 (class equal_operation): No longer a typedef, now a subclass.
1498 (class unop_memval_operation) <get_type>: New method.
1499 (class assign_operation) <get_lhs>: New method.
1500 (class unop_cast_operation) <get_type>: New method.
1501 * eval.c (evaluate_expression, evaluate_type)
1502 (evaluate_subexpression_type): Update.
1503 (fetch_subexp_value): Add "op" parameter.
1504 (parse_and_eval_type): Update.
1505 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
1506 * breakpoint.c (update_watchpoint, watchpoint_check)
1507 (watchpoint_exp_is_const, watch_command_1): Update.
1508 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
1511 2021-03-08 Tom Tromey <tom@tromey.com>
1513 * ada-lang.c (ada_value_binop): Do not use op_string.
1515 2021-03-08 Tom Tromey <tom@tromey.com>
1517 * expprint.c (dump_for_expression): New overload.
1518 * expop.h (check_objfile, dump_for_expression): Declare new
1520 * ada-lang.c (check_objfile): New overload.
1521 (assign_component, ada_aggregate_component::uses_objfile)
1522 (ada_aggregate_component::dump, ada_aggregate_component::assign)
1523 (ada_aggregate_component::assign_aggregate)
1524 (ada_positional_component::uses_objfile)
1525 (ada_positional_component::dump, ada_positional_component::assign)
1526 (ada_discrete_range_association::uses_objfile)
1527 (ada_discrete_range_association::dump)
1528 (ada_discrete_range_association::assign)
1529 (ada_name_association::uses_objfile, ada_name_association::dump)
1530 (ada_name_association::assign)
1531 (ada_choices_component::uses_objfile, ada_choices_component::dump)
1532 (ada_choices_component::assign)
1533 (ada_others_component::uses_objfile, ada_others_component::dump)
1534 (ada_others_component::assign, ada_assign_operation::evaluate):
1536 * ada-exp.h (ada_string_operation) <get_name>: New method.
1537 (class ada_assign_operation): New.
1538 (class ada_component): New.
1539 (ada_component_up): New typedef.
1540 (class ada_aggregate_operation, class ada_aggregate_component)
1541 (class ada_positional_component, class ada_others_component)
1542 (class ada_association): New.
1543 (ada_association_up): New typedef.
1544 (class ada_choices_component)
1545 (class ada_discrete_range_association)
1546 (class ada_name_association): New.
1548 2021-03-08 Tom Tromey <tom@tromey.com>
1550 * ada-lang.c (ada_var_value_operation::resolve)
1551 (ada_funcall_operation::resolve)
1552 (ada_ternop_slice_operation::resolve): New methods.
1553 * ada-exp.h (struct ada_resolvable): New.
1554 (class ada_var_value_operation): Derive from ada_resolvable.
1555 <get_block, resolve>: New methods.
1556 (class ada_funcall_operation): Derive from ada_resolvable.
1557 <resolve>: New method.
1558 (class ada_ternop_slice_operation): Derive from ada_resolvable.
1559 <resolve>: New method.
1561 2021-03-08 Tom Tromey <tom@tromey.com>
1563 * ada-lang.c (ada_funcall_operation::evaluate): New method.
1564 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
1566 (class ada_funcall_operation): New.
1568 2021-03-08 Tom Tromey <tom@tromey.com>
1570 * ada-lang.c (ada_structop_operation::evaluate): New method.
1571 * ada-exp.h (class ada_structop_operation): New.
1573 2021-03-08 Tom Tromey <tom@tromey.com>
1575 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
1576 * ada-exp.h (class ada_unop_ind_operation): New.
1578 2021-03-08 Tom Tromey <tom@tromey.com>
1580 * ada-lang.c (ada_binop_exp): No longer static.
1581 * ada-exp.h (ada_binop_exp_operation): New typedef.
1583 2021-03-08 Tom Tromey <tom@tromey.com>
1585 * ada-lang.c (ada_val_atr): No longer static.
1586 (ada_atr_val_operation::evaluate): New method.
1587 * ada-exp.h (class ada_atr_val_operation): New.
1589 2021-03-08 Tom Tromey <tom@tromey.com>
1591 * ada-lang.c (ada_pos_atr): No longer static.
1592 * ada-exp.h (ada_pos_operation): New typedef.
1594 2021-03-08 Tom Tromey <tom@tromey.com>
1596 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
1598 (ada_evaluate_subexp): Use it.
1600 2021-03-08 Tom Tromey <tom@tromey.com>
1602 * ada-lang.c (ada_binop_minmax): No longer static.
1603 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
1606 2021-03-08 Tom Tromey <tom@tromey.com>
1608 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
1610 * ada-exp.h (class ada_var_msym_value_operation): New.
1612 2021-03-08 Tom Tromey <tom@tromey.com>
1614 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
1615 (ada_var_value_operation::evaluate): New methods.
1616 * ada-exp.h (class ada_var_value_operation): New.
1618 2021-03-08 Tom Tromey <tom@tromey.com>
1620 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
1621 * ada-exp.h (class ada_unop_atr_operation): New.
1623 2021-03-08 Tom Tromey <tom@tromey.com>
1625 * ada-lang.c (ada_binop_in_bounds): No longer static.
1626 * ada-exp.h (class ada_binop_in_bounds_operation): New.
1628 2021-03-08 Tom Tromey <tom@tromey.com>
1630 * ada-lang.c (ada_ternop_slice): No longer static.
1631 * ada-exp.h (class ada_ternop_slice_operation): New.
1633 2021-03-08 Tom Tromey <tom@tromey.com>
1635 * ada-exp.h (ada_bitwise_operation): New template class.
1636 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
1637 (ada_bitwise_xor_operation): New typedefs.
1639 2021-03-08 Tom Tromey <tom@tromey.com>
1641 * ada-lang.c (ada_equal_binop): No longer static.
1642 * ada-exp.h (class ada_binop_equal_operation): New.
1644 2021-03-08 Tom Tromey <tom@tromey.com>
1646 * ada-lang.c (ada_mult_binop): No longer static.
1647 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
1648 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
1650 2021-03-08 Tom Tromey <tom@tromey.com>
1652 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
1653 * ada-exp.h (class ada_binop_addsub_operation): New.
1655 2021-03-08 Tom Tromey <tom@tromey.com>
1657 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
1658 (ada_resolve_variable): Declare.
1659 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
1660 (ada_resolve_variable): New functions.
1661 (resolve_subexp): Update.
1663 2021-03-08 Tom Tromey <tom@tromey.com>
1665 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
1667 * c-exp.h (class opencl_ternop_cond_operation): New.
1669 2021-03-08 Tom Tromey <tom@tromey.com>
1671 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
1673 * c-exp.h (class opencl_logical_binop_operation): New.
1675 2021-03-08 Tom Tromey <tom@tromey.com>
1677 * opencl-lang.c (opencl_structop_operation::evaluate): New
1679 * c-exp.h (class opencl_structop_operation): New.
1681 2021-03-08 Tom Tromey <tom@tromey.com>
1683 * opencl-lang.c (opencl_logical_not): No longer static. Change
1685 (evaluate_subexp_opencl): Update.
1686 * c-exp.h (opencl_notequal_operation): New typedef.
1688 2021-03-08 Tom Tromey <tom@tromey.com>
1690 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
1691 static. Change parameters.
1692 (eval_opencl_assign): No longer static. Add "op" parameter.
1693 (evaluate_subexp_opencl): Update.
1694 * c-exp.h (opencl_binop_operation): New template class.
1695 (opencl_assign_operation, opencl_equal_operation)
1696 (opencl_notequal_operation, opencl_less_operation)
1697 (opencl_gtr_operation, opencl_geq_operation)
1698 (opencl_leq_operation): New typedefs.
1700 2021-03-08 Tom Tromey <tom@tromey.com>
1702 * opencl-lang.c (opencl_value_cast): No longer static.
1703 * c-exp.h (opencl_cast_type_operation): New typedef.
1705 2021-03-08 Tom Tromey <tom@tromey.com>
1707 * f-exp.h (eval_op_f_allocated): Declare.
1708 (fortran_allocated_operation): New typedef.
1709 * f-lang.c (eval_op_f_allocated): No longer static.
1711 2021-03-08 Tom Tromey <tom@tromey.com>
1713 * f-lang.c (eval_op_f_associated): New functions.
1714 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
1717 2021-03-08 Tom Tromey <tom@tromey.com>
1719 * f-lang.c (fortran_bound_1arg::evaluate)
1720 (fortran_bound_2arg::evaluate): New methods.
1721 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
1724 2021-03-08 Tom Tromey <tom@tromey.com>
1726 * expop.h (class unop_addr_operation) <get_expression>: New
1728 * f-lang.c (fortran_undetermined::value_subarray)
1729 (fortran_undetermined::evaluate): New methods.
1730 (fortran_prepare_argument): New overload.
1731 * f-exp.h (class fortran_range_operation)
1732 (class fortran_undetermined): New classes.
1734 2021-03-08 Tom Tromey <tom@tromey.com>
1736 * rust-lang.c (rust_structop::evaluate_funcall): New method.
1737 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
1740 2021-03-08 Tom Tromey <tom@tromey.com>
1742 * expression.h (class operation) <evaluate_funcall>: New methods.
1743 * expop.h (class scope_operation) <evaluate_funcall>: New method.
1744 (class var_value_operation) <evaluate_funcall>: New method.
1745 (class structop_base_operation) <evaluate_funcall>: New method.
1746 (class var_msym_value_operation) <evaluate_funcall>: New method.
1747 (class structop_member_base): New class.
1748 (class structop_member_operation): Derive from
1749 structop_member_base.
1750 (class structop_mptr_operation): Derive from
1751 structop_member_base.
1752 (class funcall_operation): New class.
1753 * eval.c (operation::evaluate_funcall)
1754 (var_value_operation::evaluate_funcall)
1755 (scope_operation::evaluate_funcall)
1756 (structop_member_base::evaluate_funcall)
1757 (structop_base_operation::evaluate_funcall): New methods.
1759 2021-03-08 Tom Tromey <tom@tromey.com>
1761 * expop.h (class array_operation): New.
1762 * eval.c (array_operation::evaluate_struct_tuple)
1763 (array_operation::evaluate): New methods.
1765 2021-03-08 Tom Tromey <tom@tromey.com>
1767 * expop.h (class adl_func_operation): New.
1768 * eval.c (adl_func_operation::evaluate): New method.
1770 2021-03-08 Tom Tromey <tom@tromey.com>
1772 * ada-lang.c (ada_unop_in_range): No longer static.
1773 * ada-exp.h (class ada_unop_range_operation): New.
1775 2021-03-08 Tom Tromey <tom@tromey.com>
1777 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
1779 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
1780 (ada_atr_size_operation, ada_abs_operation): New typedefs.
1782 2021-03-08 Tom Tromey <tom@tromey.com>
1784 * expop.h (class logical_and_operation)
1785 (class logical_or_operation): New.
1786 * eval.c (logical_and_operation::evaluate)
1787 (logical_or_operation::evaluate): New methods.
1788 * ax-gdb.c (logical_and_operation::do_generate_ax)
1789 (logical_or_operation::do_generate_ax): New methods.
1791 2021-03-08 Tom Tromey <tom@tromey.com>
1793 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
1795 * m2-exp.h: New file.
1797 2021-03-08 Tom Tromey <tom@tromey.com>
1799 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
1800 * rust-exp.h (class rust_aggregate_operation): New.
1802 2021-03-08 Tom Tromey <tom@tromey.com>
1804 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
1806 * rust-exp.h (class rust_struct_anon): New.
1807 (class rust_structop): New.
1809 2021-03-08 Tom Tromey <tom@tromey.com>
1811 * rust-lang.c (rust_range): No longer static.
1812 * rust-exp.h (class rust_range_operation): New.
1814 2021-03-08 Tom Tromey <tom@tromey.com>
1816 * rust-lang.c (rust_subscript): No longer static.
1817 * rust-exp.h (class rust_subscript_operation): New.
1819 2021-03-08 Tom Tromey <tom@tromey.com>
1821 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
1823 (rust_evaluate_subexp): Update.
1824 * rust-exp.h (class rust_unop_ind_operation): New.
1826 2021-03-08 Tom Tromey <tom@tromey.com>
1828 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
1829 longer static. Add "opcode" parameter.
1830 (rust_evaluate_subexp): Update.
1831 * rust-exp.h: New file.
1833 2021-03-08 Tom Tromey <tom@tromey.com>
1835 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
1836 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
1837 (eval_op_f_kind): No longer static. Add "opcode" parameter.
1838 (evaluate_subexp_f): Update.
1839 * f-exp.h: New file.
1841 2021-03-08 Tom Tromey <tom@tromey.com>
1843 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
1844 * ada-exp.h (class ada_ternop_range_operation): New.
1846 2021-03-08 Tom Tromey <tom@tromey.com>
1848 * ada-lang.c (ada_qual_operation::evaluate): New method.
1849 * ada-exp.h (class ada_qual_operation): New.
1851 2021-03-08 Tom Tromey <tom@tromey.com>
1853 * ada-lang.c (ada_string_operation::evaluate): New method.
1854 * ada-exp.h (class ada_string_operation): New.
1856 2021-03-08 Tom Tromey <tom@tromey.com>
1858 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
1859 * ada-exp.h: New file.
1861 2021-03-08 Tom Tromey <tom@tromey.com>
1863 * expop.h (class multi_subscript_operation): New.
1864 * eval.c (multi_subscript_operation::evaluate): New method.
1866 2021-03-08 Tom Tromey <tom@tromey.com>
1868 * eval.c (objc_msgcall_operation::evaluate): New method.
1869 * c-exp.h (class objc_msgcall_operation): New.
1871 2021-03-08 Tom Tromey <tom@tromey.com>
1873 * expop.h (class var_value_operation): New.
1874 * eval.c (var_value_operation::evaluate)
1875 (var_value_operation::evaluate_for_address)
1876 (var_value_operation::evaluate_with_coercion)
1877 (var_value_operation::evaluate_for_sizeof)
1878 (var_value_operation::evaluate_for_cast): New methods.
1879 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
1881 2021-03-08 Tom Tromey <tom@tromey.com>
1883 * expop.h (cxx_cast_ftype): New typedef.
1884 (cxx_cast_operation): New template.
1885 (dynamic_cast_operation, reinterpret_cast_operation): New
1888 2021-03-08 Tom Tromey <tom@tromey.com>
1890 * expop.h (class unop_cast_type_operation): New.
1891 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
1894 2021-03-08 Tom Tromey <tom@tromey.com>
1896 * expop.h (class unop_cast_operation): New.
1897 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
1899 2021-03-08 Tom Tromey <tom@tromey.com>
1901 * expop.h (class assign_modify_operation): New.
1902 * eval.c (eval_binop_assign_modify): No longer static.
1903 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1905 2021-03-08 Tom Tromey <tom@tromey.com>
1907 * expop.h (class assign_operation): New.
1908 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1910 2021-03-08 Tom Tromey <tom@tromey.com>
1912 * expop.h (class type_instance_operation): New.
1913 * eval.c (type_instance_operation::evaluate): New method.
1915 2021-03-08 Tom Tromey <tom@tromey.com>
1917 * expop.h (class op_this_operation): New.
1918 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1920 2021-03-08 Tom Tromey <tom@tromey.com>
1922 * expop.h (class unop_memval_operation)
1923 (class unop_memval_type_operation): New.
1924 * eval.c (eval_op_memval): No longer static.
1925 (unop_memval_operation::evaluate_for_address)
1926 (unop_memval_type_operation::evaluate_for_address)
1927 (unop_memval_operation::evaluate_for_sizeof)
1928 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1929 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1930 (unop_memval_type_operation::do_generate_ax): New methods.
1932 2021-03-08 Tom Tromey <tom@tromey.com>
1934 * expop.h (class unop_alignof_operation): New.
1935 * eval.c (eval_op_alignof): No longer static.
1937 2021-03-08 Tom Tromey <tom@tromey.com>
1939 * expop.h (class unop_sizeof_operation): New.
1940 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1942 2021-03-08 Tom Tromey <tom@tromey.com>
1944 * expop.h (class unop_addr_operation): New.
1945 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1947 2021-03-08 Tom Tromey <tom@tromey.com>
1949 * expop.h (class typeid_operation): New.
1951 2021-03-08 Tom Tromey <tom@tromey.com>
1953 * expop.h (class decltype_operation): New.
1955 2021-03-08 Tom Tromey <tom@tromey.com>
1957 * expop.h (class typeof_operation): New.
1959 2021-03-08 Tom Tromey <tom@tromey.com>
1961 * expop.h (class type_operation): New.
1962 * eval.c (eval_op_type): No longer static.
1964 2021-03-08 Tom Tromey <tom@tromey.com>
1966 * expop.h (class unop_ind_base_operation)
1967 (class unop_ind_operation): New.
1968 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1969 (unop_ind_base_operation::evaluate_for_address)
1970 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1971 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1973 2021-03-08 Tom Tromey <tom@tromey.com>
1975 * expop.h (unop_incr_operation): New template.
1976 (preinc_operation, predec_operation, postinc_operation)
1977 (postdec_operation): New typedefs.
1978 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1979 (eval_op_postdec): No longer static.
1981 2021-03-08 Tom Tromey <tom@tromey.com>
1983 * expop.h (unary_ftype): New typedef.
1984 (unop_operation, usual_ax_binop_operation): New templates.
1985 (unary_plus_operation, unary_neg_operation)
1986 (unary_complement_operation, unary_logical_not_operation): New
1988 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1989 (eval_op_lognot): No longer static.
1990 * ax-gdb.c (gen_expr_unop): New function.
1992 2021-03-08 Tom Tromey <tom@tromey.com>
1994 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1996 2021-03-08 Tom Tromey <tom@tromey.com>
1998 * expop.h (class repeat_operation): New.
1999 * eval.c (eval_op_repeat): No longer static. Remove "op"
2001 (evaluate_subexp_standard): Update.
2002 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
2004 2021-03-08 Tom Tromey <tom@tromey.com>
2006 * expop.h (class comparison_operation): New.
2007 (equal_operation, notequal_operation, less_operation)
2008 (gtr_operation, geq_operation, leq_operation): New typedefs.
2009 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
2010 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
2012 2021-03-08 Tom Tromey <tom@tromey.com>
2014 * expop.h (class subscript_operation): New.
2015 * eval.c (eval_op_subscript): No longer static.
2017 2021-03-08 Tom Tromey <tom@tromey.com>
2019 * expop.h (class binop_operation, class usual_ax_binop_operation):
2021 (exp_operation, intdiv_operation, mod_operation, mul_operation)
2022 (div_operation, rem_operation, lsh_operation, rsh_operation)
2023 (bitwise_and_operation, bitwise_ior_operation)
2024 (bitwise_xor_operation): New typedefs.
2025 * eval.c (eval_op_binary): No longer static.
2027 2021-03-08 Tom Tromey <tom@tromey.com>
2029 * expop.h (class sub_operation): New.
2030 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
2031 (evaluate_subexp_standard): Update.
2033 2021-03-08 Tom Tromey <tom@tromey.com>
2035 * expop.h (class add_operation): New.
2036 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
2037 (evaluate_subexp_standard): Update.
2039 2021-03-08 Tom Tromey <tom@tromey.com>
2041 * expop.h (class concat_operation): New.
2042 * eval.c (eval_op_concat): No longer static. Remove "op"
2044 (evaluate_subexp_standard): Update.
2046 2021-03-08 Tom Tromey <tom@tromey.com>
2048 * expop.h (class structop_member_operation)
2049 (class structop_mptr_operation): New.
2050 * eval.c (eval_op_member): No longer static.
2052 2021-03-08 Tom Tromey <tom@tromey.com>
2054 * expop.h (class structop_ptr_operation): New.
2055 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
2058 2021-03-08 Tom Tromey <tom@tromey.com>
2060 * expop.h (class structop_base_operation)
2061 (class structop_operation): New.
2062 * eval.c (eval_op_structop_struct): No longer static.
2064 2021-03-08 Tom Tromey <tom@tromey.com>
2066 * expop.h (class complex_operation): New.
2068 2021-03-08 Tom Tromey <tom@tromey.com>
2070 * eval.c (eval_op_objc_selector): No longer static.
2071 * c-exp.h (class objc_selector_operation): New.
2073 2021-03-08 Tom Tromey <tom@tromey.com>
2075 * eval.c: Include c-exp.h.
2076 * c-exp.h (class objc_nsstring_operation): New.
2078 2021-03-08 Tom Tromey <tom@tromey.com>
2080 * c-lang.c (c_string_operation::evaluate): New method.
2081 * c-exp.h: New file.
2083 2021-03-08 Tom Tromey <tom@tromey.com>
2085 * expop.h (class ternop_cond_operation): New.
2086 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
2088 2021-03-08 Tom Tromey <tom@tromey.com>
2090 * expop.h (class ternop_slice_operation): New.
2091 * eval.c (eval_op_ternop): No longer static.
2093 2021-03-08 Tom Tromey <tom@tromey.com>
2095 * expop.h (class string_operation): New.
2096 * eval.c (eval_op_string): No longer static.
2098 2021-03-08 Tom Tromey <tom@tromey.com>
2100 * expop.h (class internalvar_operation): New.
2101 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
2103 2021-03-08 Tom Tromey <tom@tromey.com>
2105 * expop.h (class bool_operation): New.
2107 2021-03-08 Tom Tromey <tom@tromey.com>
2109 * expop.h (class register_operation): New.
2110 * eval.c (eval_op_register): No longer static.
2111 * ax-gdb.c (register_operation::do_generate_ax): New method.
2113 2021-03-08 Tom Tromey <tom@tromey.com>
2115 * expop.h (class last_operation): New.
2117 2021-03-08 Tom Tromey <tom@tromey.com>
2119 * expop.h (class func_static_var_operation): New.
2120 * eval.c (eval_op_func_static_var): No longer static.
2122 2021-03-08 Tom Tromey <tom@tromey.com>
2124 * expop.h (class var_entry_value_operation): New.
2125 * eval.c (eval_op_var_entry_value): No longer static.
2127 2021-03-08 Tom Tromey <tom@tromey.com>
2129 * expression.h (class operation) <set_outermost>: New method.
2130 * expop.h (class var_msym_value_operation): New.
2131 * eval.c (eval_op_var_msym_value): No longer static.
2132 (var_msym_value_operation::evaluate_for_address)
2133 (var_msym_value_operation::evaluate_for_sizeof)
2134 (var_msym_value_operation::evaluate_for_cast): New methods.
2135 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
2138 2021-03-08 Tom Tromey <tom@tromey.com>
2140 * expop.h (class long_const_operation): New.
2141 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
2143 2021-03-08 Tom Tromey <tom@tromey.com>
2145 * expop.h (class scope_operation): New.
2146 * eval.c (eval_op_scope): No longer static.
2147 (scope_operation::evaluate_for_address): New method.
2148 * ax-gdb.c (scope_operation::do_generate_ax): New method.
2150 2021-03-08 Tom Tromey <tom@tromey.com>
2152 * expprint.c (float_const_operation::dump): New method.
2153 * expop.h (float_data): New typedef.
2154 (class float_const_operation): New.
2156 2021-03-08 Tom Tromey <tom@tromey.com>
2158 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
2159 * ax-gdb.c (gen_expr_binop): New function.
2160 (gen_expr_structop): Likewise.
2162 2021-03-08 Tom Tromey <tom@tromey.com>
2164 * expprint.c (expr::dump_for_expression): New functions.
2165 * expop.h (dump_for_expression): New overloads.
2166 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
2169 2021-03-08 Tom Tromey <tom@tromey.com>
2171 * expression.h (expr::operation): New class.
2172 (expr::make_operation): New function.
2173 (expr::operation_up): New typedef.
2174 * expop.h: New file.
2175 * eval.c (operation::evaluate_for_cast)
2176 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
2178 * ax-gdb.c (operation::generate_ax): New method.
2180 2021-03-08 Tom Tromey <tom@tromey.com>
2182 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
2183 (gen_expr_binop_rest): New overload.
2185 2021-03-08 Tom Tromey <tom@tromey.com>
2187 * eval.c (eval_multi_subscript): New function.
2188 (evaluate_subexp_standard): Use it.
2190 2021-03-08 Tom Tromey <tom@tromey.com>
2192 * ada-lang.c (ada_binop_exp): New function.
2193 (ada_evaluate_subexp): Use it.
2195 2021-03-08 Tom Tromey <tom@tromey.com>
2197 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
2199 (ada_evaluate_subexp): Use it.
2201 2021-03-08 Tom Tromey <tom@tromey.com>
2203 * ada-lang.c (ada_binop_minmax): New function.
2204 (ada_evaluate_subexp): Use it.
2206 2021-03-08 Tom Tromey <tom@tromey.com>
2208 * ada-lang.c (ada_unop_atr): New function.
2209 (ada_evaluate_subexp): Use it.
2211 2021-03-08 Tom Tromey <tom@tromey.com>
2213 * ada-lang.c (ada_binop_in_bounds): New function.
2214 (ada_evaluate_subexp): Use it.
2216 2021-03-08 Tom Tromey <tom@tromey.com>
2218 * ada-lang.c (ada_ternop_slice): New function.
2219 (ada_evaluate_subexp): Use it.
2221 2021-03-08 Tom Tromey <tom@tromey.com>
2223 * ada-lang.c (ada_equal_binop): New function.
2224 (ada_evaluate_subexp): Use it.
2226 2021-03-08 Tom Tromey <tom@tromey.com>
2228 * ada-lang.c (ada_mult_binop): New function.
2229 (ada_evaluate_subexp): Use it.
2231 2021-03-08 Tom Tromey <tom@tromey.com>
2233 * ada-lang.c (ada_abs): New function.
2234 (ada_evaluate_subexp): Use it.
2236 2021-03-08 Tom Tromey <tom@tromey.com>
2238 * ada-lang.c (ada_atr_size): New function.
2239 (ada_evaluate_subexp): Use it.
2241 2021-03-08 Tom Tromey <tom@tromey.com>
2243 * ada-lang.c (ada_atr_tag): New function.
2244 (ada_evaluate_subexp): Use it.
2246 2021-03-08 Tom Tromey <tom@tromey.com>
2248 * ada-lang.c (ada_unop_in_range): New function.
2249 (ada_evaluate_subexp): Use it.
2251 2021-03-08 Tom Tromey <tom@tromey.com>
2253 * ada-lang.c (ada_unop_neg): New function.
2254 (ada_evaluate_subexp): Use it.
2256 2021-03-08 Tom Tromey <tom@tromey.com>
2258 * ada-lang.c (eval_ternop_in_range): New function.
2259 (ada_evaluate_subexp): Use it.
2261 2021-03-08 Tom Tromey <tom@tromey.com>
2263 * opencl-lang.c (eval_opencl_assign): New function.
2264 (evaluate_subexp_opencl): Use it.
2266 2021-03-08 Tom Tromey <tom@tromey.com>
2268 * eval.c (eval_op_objc_msgcall): New function.
2269 (evaluate_subexp_standard): Use it.
2271 2021-03-08 Tom Tromey <tom@tromey.com>
2273 * eval.c (eval_binop_assign_modify): New function.
2274 (evaluate_subexp_standard): Use it.
2276 2021-03-08 Tom Tromey <tom@tromey.com>
2278 * m2-lang.c (eval_op_m2_subscript): New function.
2279 (evaluate_subexp_modula2): Use it.
2281 2021-03-08 Tom Tromey <tom@tromey.com>
2283 * m2-lang.c (eval_op_m2_high): New function.
2284 (evaluate_subexp_modula2): Use it.
2286 2021-03-08 Tom Tromey <tom@tromey.com>
2288 * eval.c (evaluate_subexp_for_address_base): New function.
2289 (evaluate_subexp_for_address): Use it.
2290 (evaluate_subexp_for_sizeof_base): New function.
2291 (evaluate_subexp_for_sizeof): Use it.
2293 2021-03-08 Tom Tromey <tom@tromey.com>
2295 * rust-lang.c (eval_op_rust_structop): New function.
2296 (rust_evaluate_subexp): Use it.
2298 2021-03-08 Tom Tromey <tom@tromey.com>
2300 * rust-lang.c (eval_op_rust_struct_anon): New function.
2301 (rust_evaluate_subexp): Use it.
2303 2021-03-08 Tom Tromey <tom@tromey.com>
2305 * rust-lang.c (eval_op_rust_array): New function.
2306 (rust_evaluate_subexp): Use it.
2308 2021-03-08 Tom Tromey <tom@tromey.com>
2310 * rust-lang.c (eval_op_rust_complement): New function.
2311 (rust_evaluate_subexp): Use it.
2313 2021-03-08 Tom Tromey <tom@tromey.com>
2315 * rust-lang.c (eval_op_rust_ind): New function.
2316 (rust_evaluate_subexp): Use it.
2318 2021-03-08 Tom Tromey <tom@tromey.com>
2320 * rust-lang.c (rust_subscript): Change parameters.
2321 (rust_evaluate_subexp): Update.
2323 2021-03-08 Tom Tromey <tom@tromey.com>
2325 * rust-lang.c (rust_range): Change parameters.
2326 (rust_evaluate_subexp): Update.
2328 2021-03-08 Tom Tromey <tom@tromey.com>
2330 * f-lang.c (eval_op_f_allocated): New function.
2331 (evaluate_subexp_f): Use it.
2333 2021-03-08 Tom Tromey <tom@tromey.com>
2335 * f-lang.c (fortran_require_array): New function.
2336 (evaluate_subexp_f): Use it.
2338 2021-03-08 Tom Tromey <tom@tromey.com>
2340 * f-lang.c (eval_op_f_kind): New function.
2341 (evaluate_subexp_f): Use it.
2343 2021-03-08 Tom Tromey <tom@tromey.com>
2345 * f-lang.c (eval_op_f_cmplx): New function.
2346 (evaluate_subexp_f): Use it.
2348 2021-03-08 Tom Tromey <tom@tromey.com>
2350 * f-lang.c (eval_op_f_modulo): New function.
2351 (evaluate_subexp_f): Use it.
2353 2021-03-08 Tom Tromey <tom@tromey.com>
2355 * f-lang.c (eval_op_f_floor): New function.
2356 (evaluate_subexp_f): Use it.
2358 2021-03-08 Tom Tromey <tom@tromey.com>
2360 * f-lang.c (eval_op_f_ceil): New function.
2361 (evaluate_subexp_f): Use it.
2363 2021-03-08 Tom Tromey <tom@tromey.com>
2365 * f-lang.c (eval_op_f_mod): New function.
2366 (evaluate_subexp_f): Use it.
2368 2021-03-08 Tom Tromey <tom@tromey.com>
2370 * f-lang.c (eval_op_f_abs): New function.
2371 (evaluate_subexp_f): Use it.
2373 2021-03-08 Tom Tromey <tom@tromey.com>
2375 * eval.c (eval_op_type): New function.
2376 (evaluate_subexp_standard): Use it.
2378 2021-03-08 Tom Tromey <tom@tromey.com>
2380 * eval.c (eval_op_postdec): New function.
2381 (evaluate_subexp_standard): Use it.
2383 2021-03-08 Tom Tromey <tom@tromey.com>
2385 * eval.c (eval_op_postinc): New function.
2386 (evaluate_subexp_standard): Use it.
2388 2021-03-08 Tom Tromey <tom@tromey.com>
2390 * eval.c (eval_op_predec): New file.
2391 (evaluate_subexp_standard): Use it.
2393 2021-03-08 Tom Tromey <tom@tromey.com>
2395 * eval.c (eval_op_preinc): New function.
2396 (evaluate_subexp_standard): Use it.
2398 2021-03-08 Tom Tromey <tom@tromey.com>
2400 * eval.c (eval_op_memval): New function.
2401 (evaluate_subexp_standard): Use it.
2403 2021-03-08 Tom Tromey <tom@tromey.com>
2405 * eval.c (eval_op_alignof): New function.
2406 (evaluate_subexp_standard): Use it.
2408 2021-03-08 Tom Tromey <tom@tromey.com>
2410 * eval.c (eval_op_ind): New function.
2411 (evaluate_subexp_standard): Use it.
2413 2021-03-08 Tom Tromey <tom@tromey.com>
2415 * eval.c (eval_op_lognot): New function.
2416 (evaluate_subexp_standard): Use it.
2418 2021-03-08 Tom Tromey <tom@tromey.com>
2420 * eval.c (eval_op_complement): New function.
2421 (evaluate_subexp_standard): Use it.
2423 2021-03-08 Tom Tromey <tom@tromey.com>
2425 * eval.c (eval_op_neg): New function.
2426 (evaluate_subexp_standard): Use it.
2428 2021-03-08 Tom Tromey <tom@tromey.com>
2430 * eval.c (eval_op_plus): New function.
2431 (evaluate_subexp_standard): Use it.
2433 2021-03-08 Tom Tromey <tom@tromey.com>
2435 * eval.c (eval_op_repeat): New function.
2436 (evaluate_subexp_standard): Use it.
2438 2021-03-08 Tom Tromey <tom@tromey.com>
2440 * eval.c (eval_op_leq): New function.
2441 (evaluate_subexp_standard): Use it.
2443 2021-03-08 Tom Tromey <tom@tromey.com>
2445 * eval.c (eval_op_geq): New function.
2446 (evaluate_subexp_standard): Use it.
2448 2021-03-08 Tom Tromey <tom@tromey.com>
2450 * eval.c (eval_op_gtr): New function.
2451 (evaluate_subexp_standard): Use it.
2453 2021-03-08 Tom Tromey <tom@tromey.com>
2455 * eval.c (eval_op_less): New function.
2456 (evaluate_subexp_standard): Use it.
2458 2021-03-08 Tom Tromey <tom@tromey.com>
2460 * eval.c (eval_op_notequal): New function.
2461 (evaluate_subexp_standard): Use it.
2463 2021-03-08 Tom Tromey <tom@tromey.com>
2465 * eval.c (eval_op_equal): New function.
2466 (evaluate_subexp_standard): Use it.
2468 2021-03-08 Tom Tromey <tom@tromey.com>
2470 * eval.c (eval_op_subscript): New function.
2471 (evaluate_subexp_standard): Use it.
2473 2021-03-08 Tom Tromey <tom@tromey.com>
2475 * eval.c (eval_op_binary): New function.
2476 (evaluate_subexp_standard): Use it.
2478 2021-03-08 Tom Tromey <tom@tromey.com>
2480 * eval.c (eval_op_sub): New function.
2481 (evaluate_subexp_standard): Use it.
2483 2021-03-08 Tom Tromey <tom@tromey.com>
2485 * eval.c (eval_op_add): New function.
2486 (evaluate_subexp_standard): Use it.
2488 2021-03-08 Tom Tromey <tom@tromey.com>
2490 * eval.c (eval_op_member): New function.
2491 (evaluate_subexp_standard): Use it.
2493 2021-03-08 Tom Tromey <tom@tromey.com>
2495 * eval.c (eval_op_structop_ptr): New function.
2496 (evaluate_subexp_standard): Use it.
2498 2021-03-08 Tom Tromey <tom@tromey.com>
2500 * eval.c (eval_op_structop_struct): New function.
2501 (evaluate_subexp_standard): Use it.
2503 2021-03-08 Tom Tromey <tom@tromey.com>
2505 * eval.c (eval_op_ternop): New function.
2506 (evaluate_subexp_standard): Use it.
2508 2021-03-08 Tom Tromey <tom@tromey.com>
2510 * eval.c (eval_op_concat): New function.
2511 (evaluate_subexp_standard): Use it.
2513 2021-03-08 Tom Tromey <tom@tromey.com>
2515 * eval.c (eval_op_objc_selector): New function.
2516 (evaluate_subexp_standard): Use it.
2518 2021-03-08 Tom Tromey <tom@tromey.com>
2520 * eval.c (eval_op_string): New function.
2521 (evaluate_subexp_standard): Use it.
2523 2021-03-08 Tom Tromey <tom@tromey.com>
2525 * eval.c (eval_op_register): New function.
2526 (evaluate_subexp_standard): Use it.
2528 2021-03-08 Tom Tromey <tom@tromey.com>
2530 * eval.c (eval_op_func_static_var): New function.
2531 (evaluate_subexp_standard): Use it.
2533 2021-03-08 Tom Tromey <tom@tromey.com>
2535 * eval.c (eval_op_var_msym_value): New function.
2536 (evaluate_subexp_standard): Use it.
2538 2021-03-08 Tom Tromey <tom@tromey.com>
2540 * eval.c (eval_op_var_entry_value): New function.
2541 (evaluate_subexp_standard): Use it.
2543 2021-03-08 Tom Tromey <tom@tromey.com>
2545 * eval.c (eval_op_scope): New function.
2546 (evaluate_subexp_standard): Use it.
2548 2021-03-06 Chernov Sergey <klen_s@mail.ru>
2551 * ada-lang.c (ada_fold_name): Use gdb::to_string.
2553 2021-03-06 Tom Tromey <tom@tromey.com>
2555 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
2556 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
2557 * dwarf2/read.c (dwarf2_elf_names): No longer static.
2558 (locate_dwz_sections, dwz_search_other_debugdirs)
2559 (dwarf2_get_dwz_file): Move to dwz.c.
2560 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
2562 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
2563 (dwarf2_get_dwz_file): Move from read.c.
2565 2021-03-06 Tom Tromey <tom@tromey.com>
2567 * debuginfod-support.h: Include scoped_fd.h.
2569 2021-03-06 Tom Tromey <tom@tromey.com>
2571 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
2572 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
2573 (get_abbrev_section_for_cu, read_attribute_value)
2574 (get_debug_line_section): Update.
2575 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
2577 2021-03-06 Tom Tromey <tom@tromey.com>
2579 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
2581 * dwarf2/read.c (section_is_p): Remove.
2582 (dwarf2_per_bfd::locate_sections)
2583 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
2584 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
2585 (dwarf2_locate_common_dwp_sections)
2586 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
2589 2021-03-06 Tom Tromey <tom@tromey.com>
2591 * xcoffread.c: Include sect-names.h.
2592 * symfile.h (struct dwarf2_section_names, struct
2593 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
2594 * dwarf2/sect-names.h: New file, from symfile.h.
2595 * dwarf2/read.c: Include sect-names.h.
2597 2021-03-06 Tom Tromey <tom@tromey.com>
2599 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
2600 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
2601 (abbrev_table::read): Update.
2602 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
2603 (struct abbrev_info): Reformat.
2604 <attrs>: Now an array.
2605 (struct abbrev_table) <alloc_abbrev>: Remove.
2607 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2609 * ctfread.c (ctf_psymtab_add_enums): New function.
2610 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
2612 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
2614 * ctfread.c (read_func_kind_type): Set up function arguments.
2616 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2617 Andrew Burgess <andrew.burgess@embecosm.com>
2619 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
2621 (riscv_csrset): New static global.
2622 (riscv_update_csrmap): New function.
2623 (riscv_iterate_over_regset_sections): Process CSRs.
2625 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2627 * riscv-tdep.c (riscv_feature_name_csr): Define.
2628 (riscv_feature_name_cpu): Define.
2629 (riscv_feature_name_fpu): Define.
2630 (riscv_feature_name_virtual): Define.
2631 (riscv_xreg_feature): Use riscv_feature_name_cpu.
2632 (riscv_freg_feature): Use riscv_feature_name_fpu.
2633 (riscv_virtual_feature): Use riscv_feature_name_virtual.
2634 (riscv_csr_feature): Use riscv_feature_name_csr.
2635 * riscv-tdep.h (riscv_feature_name_csr): Declare.
2637 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2638 Craig Blackmore <craig.blackmore@embecosm.com>
2640 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
2641 (ALLDEPFILES): Add riscv-none-tdep.c.
2642 * configure: Regenerate.
2643 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
2645 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
2646 * elf-none-tdep.c: New file.
2647 * elf-none-tdep.h: New file.
2648 * riscv-none-tdep.c: New file.
2650 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
2651 Andrew Burgess <andrew.burgess@embecosm.com>
2653 * corelow.c: Add 'xml-tdesc.h' include.
2654 (core_target::read_description): Load the target description from
2655 the core file when possible.
2656 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
2658 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
2659 (gcore_elf_make_tdesc_note): New function.
2660 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
2661 * linux-tdep.c (linux_make_corefile_notes): Add target description
2664 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
2666 * Makefile.in (SFILES): Add gcore-elf.c.
2667 (HFILES_NO_SRCDIR): Add gcore-elf.h
2668 * configure: Regenerate.
2669 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
2671 * fbsd-tdep.c: Add 'gcore-elf.h' include.
2672 (struct fbsd_collect_regset_section_cb_data): Delete.
2673 (fbsd_collect_regset_section_cb): Delete.
2674 (fbsd_collect_thread_registers): Delete.
2675 (struct fbsd_corefile_thread_data): Delete.
2676 (fbsd_corefile_thread): Delete.
2677 (fbsd_make_corefile_notes): Call
2678 gcore_elf_build_thread_register_notes instead of the now deleted
2680 * gcore-elf.c: New file, the content was moved here from
2681 linux-tdep.c, functions were renamed and given minor cleanup.
2682 * gcore-elf.h: New file.
2683 * gcore.c (gcore_find_signalled_thread): Moved here from
2684 linux-tdep.c and given a new name. Minor cleanups.
2685 * gcore.h (gcore_find_signalled_thread): Declare.
2686 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
2687 (struct linux_collect_regset_section_cb_data): Delete.
2688 (linux_collect_regset_section_cb): Delete.
2689 (linux_collect_thread_registers): Delete.
2690 (linux_corefile_thread): Call
2691 gcore_elf_build_thread_register_notes.
2692 (find_signalled_thread): Delete.
2693 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2695 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
2698 * sparc-nat.h (sparc_fetch_inferior_registers): Add
2699 process_stratum_target parameter,
2700 sparc_store_inferior_registers): update callers.
2701 * sparc-nat.c (sparc_fetch_inferior_registers,
2702 sparc_store_inferior_registers): Add process_stratum_target
2703 parameter. Switch current thread before calling
2704 sparc_supply_gregset / sparc_collect_rwindow.
2705 (sparc_store_inferior_registers): Likewise.
2706 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
2707 (sparc32obsd_collect_uthread): Likewise.
2708 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
2710 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
2711 sparc64obsd_supply_uthread): Add assertion.
2713 2021-03-04 Tom Tromey <tromey@adacore.com>
2715 * ada-lang.c (struct match_data) <found_sym>: Now bool.
2716 (aux_add_nonlocal_symbols): Update.
2717 (ada_add_block_symbols): Change "found_sym" to bool.
2719 2021-03-03 Tom Tromey <tromey@adacore.com>
2721 * ada-lang.c (ada_resolve_function): Update comment.
2722 (is_nonfunction, add_symbols_from_enclosing_procs)
2723 (remove_extra_symbols): Likewise.
2724 (struct match_data): Add constructor, initializers.
2725 (add_nonlocal_symbols): Remove memset.
2726 (aux_add_nonlocal_symbols): Update comment.
2727 (ada_add_block_renamings, add_nonlocal_symbols)
2728 (ada_add_all_symbols): Likewise.
2729 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
2731 2021-03-02 Tom Tromey <tromey@adacore.com>
2733 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
2734 (cast_to_gnat_encoded_fixed_point_type): Remove.
2735 (ada_value_cast, ada_evaluate_subexp): Update.
2736 (gnat_encoded_fixed_point_type_info)
2737 (ada_is_gnat_encoded_fixed_point_type)
2738 (gnat_encoded_fixed_point_delta)
2739 (gnat_encoded_fixed_point_scaling_factor): Remove.
2740 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
2741 (gnat_encoded_fixed_point_delta)
2742 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
2743 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
2744 (ada_print_type): Update.
2745 * ada-valprint.c (ada_value_print_num): Update.
2746 * dwarf2/read.c (ada_get_gnat_encoded_number)
2747 (ada_get_gnat_encoded_ratio): New functions.
2748 (finish_fixed_point_type): Use them. Add parameters.
2749 (GNAT_FIXED_POINT_SUFFIX): New define.
2750 (gnat_encoded_fixed_point_type_info): New function.
2751 (read_base_type): Handle gnat encodings.
2753 2021-03-02 Tom Tromey <tromey@adacore.com>
2755 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
2756 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
2758 (GROW_VECT): Remove.
2759 (grow_vect): Remove.
2761 2021-03-02 Tom Tromey <tromey@adacore.com>
2763 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
2764 * ada-lang.c (resolve_subexp): Update.
2765 (ada_resolve_function): Accept a vector.
2766 (is_nonfunction, add_defn_to_vec)
2767 (add_symbols_from_enclosing_procs): Likewise.
2768 (num_defns_collected, defns_collected): Remove.
2769 (remove_extra_symbols): Return a vector.
2770 (remove_irrelevant_renamings): Return void.
2771 (ada_add_local_symbols): Accept a vector.
2772 (struct match_data) <obstackp>: Remove.
2773 <resultp>: New member.
2774 (aux_add_nonlocal_symbols): Update.
2775 (ada_add_block_renamings, add_nonlocal_symbols)
2776 (ada_add_all_symbols): Accept a vector.
2777 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
2779 (ada_lookup_symbol): Update.
2780 (ada_add_block_symbols): Accept a vector.
2781 (get_var_value, iterate_over_symbols): Update.
2782 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
2785 2021-03-02 Tom Tromey <tromey@adacore.com>
2787 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
2789 2021-03-02 Tom Tromey <tromey@adacore.com>
2791 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
2794 (ada_pspace_data): Remove destructor.
2795 <sym_cache>: Now a unique_ptr.
2796 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
2797 (ada_get_symbol_cache): Use 'new'.
2798 (ada_clear_symbol_cache): Rewrite.
2800 2021-03-02 Tom Tromey <tromey@adacore.com>
2802 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
2805 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
2808 * source.c (add_path): Skip empty dirnames.
2810 2021-02-25 Kevin Buettner <kevinb@redhat.com>
2812 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
2813 include order for <sys/ptrace.h> and <asm/ptrace.h>.
2815 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
2818 * target.c (target_mourn_inferior): Only compare pids in
2819 target_mourn_inferior.
2821 2021-02-25 Jan Matyas <jmatyas@codasip.com>
2824 * remote.c (remote_target::start_remote): Ensure the single
2825 thread, automatically added for remote targets without the
2826 concept of threading, is initially in set to the "resumed"
2828 * remote.c (remote_target::add_current_inferior_and_thread):
2829 Add return value - return the main thread.
2831 2021-02-25 Jan Vrany <jan.vrany@labware.com>
2833 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
2834 (mi_tsv_created): Likewise.
2835 (mi_tsv_deleted): Likewise.
2837 2021-02-25 Tom de Vries <tdevries@suse.de>
2840 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
2841 section_kind for &dwo_file->sections.info.
2843 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2846 * f-lang.c (fortran_argument_convert): Delete declaration.
2847 (fortran_prepare_argument): New function.
2848 (evaluate_subexp_f): Move logic to new function
2849 fortran_prepare_argument.
2851 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2853 * f-exp.y (f77_keywords): Add 'associated'.
2854 * f-lang.c (fortran_associated): New function.
2855 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
2856 (operator_length_f): Likewise.
2857 (print_unop_or_binop_subexp_f): New function.
2858 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
2859 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
2860 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
2861 (operator_check_f): Likewise.
2862 * std-operator.def: Add FORTRAN_ASSOCIATED.
2864 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
2866 * f-exp.y (fortran_operators): Add ".xor.".
2868 2021-02-24 Tom de Vries <tdevries@suse.de>
2871 * dwarf2/attribute.c (attribute::form_is_signed): New function
2873 * dwarf2/attribute.h (attribute::as_signed): ... here.
2874 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
2875 (attribute::form_is_signed): Declare.
2876 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
2877 for DW_AT_decl_file.
2879 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2881 * nat/aarch64-linux-hw-point.c: Add comment regarding include
2882 order for <sys/ptrace.h> and <asm/ptrace.h>.
2884 2021-02-24 Kevin Buettner <kevinb@redhat.com>
2886 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
2889 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2891 * exec.c (set_section_command): Move variable declarations into
2892 the function body, and use std::string instead of a fixed size
2895 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2897 * exec.c (exec_target::get_section_table): Delete member function.
2898 (section_table_read_available_memory): Use current_top_target, not
2899 just the exec_ops target.
2900 * target-delegates.c: Regenerate.
2901 * target.c (default_get_section_table): New function.
2902 * target.h (target_ops::get_section_table): Change default
2903 behaviour to call default_get_section_table.
2904 (default_get_section_table): Declare.
2906 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2908 * exec.c (exec_target::close): Call new clear_target_sections
2910 (program_space::add_target_sections): Update name of member
2912 (program_space::add_target_sections): Update name of member
2914 (program_space::remove_target_sections): Likewise.
2915 (exec_one_fork): Use new target_sections member function.
2916 (exec_target::get_section_table): Likewise.
2917 (exec_target::files_info): Likewise.
2918 (set_section_command): Likewise.
2919 (exec_set_section_address): Likewise.
2920 (exec_target::has_memory): Use new target_sections member
2922 * progspace.h (program_space::clear_target_sections): New member
2924 (program_space::target_sections): Rename member variable to
2925 m_target_sections, replace with a new member function.
2926 (program_space::m_target_sections): New member variable.
2927 * solib-dsbt.c (scan_dyntag): Use new member function.
2928 * solib-svr4.c (scan_dyntag): Likewise.
2930 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2932 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2934 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2935 (section_table_read_available_memory): Make local const.
2936 (exec_target::xfer_partial): Make local const.
2937 (print_section_info): Make parameter const.
2938 * gdb/exec.h (print_section_info): Likewise.
2939 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2941 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2943 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2945 * gdb/s390-tdep.c (s390_load): Likewise.
2946 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2947 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2948 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2950 (target_debug_print_const_target_section_table_p): ...this.
2951 * gdb/target-delegates.c: Regenerate.
2952 * gdb/target.c (target_get_section_table): Make return type const.
2953 (target_section_by_addr): Likewise. Also make some locals const.
2954 (memory_xfer_partial_1): Make some locals const.
2955 * gdb/target.h (struct target_ops) <get_section_table>: Make
2957 (target_section_by_addr): Likewise.
2958 (target_get_section_table): Likewise.
2960 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2962 * NEWS: Mention new 'maint info target-sections' command.
2963 * maint.c (maintenance_info_target_sections): New function.
2964 (_initialize_maint_cmds): Register new command.
2966 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2968 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2969 (riscv_features_from_bfd): ...this. Change parameter type to
2970 'bfd*', and update as required.
2971 (riscv_find_default_target_description): Update call to
2972 riscv_features_from_bfd. Select a default xlen based on
2974 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2976 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2978 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2979 dynamic types in UNOP_IND.
2981 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2984 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2986 (~dwarf2_queue_guard): Clear queue.
2987 (queue_comp_unit): Assert that queue is
2989 (process_queue): Adjust.
2990 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2992 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2995 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2996 to decide whether or not to enqueue it for expansion.
2997 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2998 after calling maybe_queue_comp_unit.
3000 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
3002 * linux-nat.c (linux_nat_filter_event): Return void.
3004 2021-02-22 Tom Tromey <tromey@adacore.com>
3006 * solib-svr4.c (enable_break): Update.
3007 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
3009 (target_bfd_reopen): Change parameter type.
3010 * bfd-target.h (target_bfd_reopen): Change parameter type.
3012 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3014 * thread.c (add_thread_silent): Add assert.
3015 (find_thread_ptid): Add assert.
3017 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
3020 * inf-ptrace.c (struct target_unpusher): Move to target.h.
3021 (target_unpush_up): Likewise.
3022 * procfs.c (procfs_target::attach): Push target early. Use
3023 target_unpush_up to unpush target in case of error.
3024 * target.h (struct target_unpusher): Move here.
3025 (target_unpush_up): Likewise.
3027 2021-02-19 Kevin Buettner <kevinb@redhat.com>
3029 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
3030 (which in turn includes <gnulib/config.h>) before include
3033 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
3036 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
3037 (decode_j_type_insn): Likewise.
3038 (decode_cj_type_insn): Likewise.
3039 (decode_b_type_insn): Likewise.
3042 2021-02-18 Tom Tromey <tom@tromey.com>
3044 * expression.h (struct expression) <evaluate>: Declare method.
3045 * eval.c (evaluate_subexp): Simplify.
3046 (expression::evaluate): New method.
3047 (evaluate_expression, evaluate_type): Use expression::evaluate.
3049 2021-02-17 Kevin Buettner <kevinb@redhat.com>
3051 * ada-lang.c (ada_fold_name): Check for non-empty string prior
3053 (ada_lookup_name_info): Likewise.
3055 2021-02-13 Mike Frysinger <vapier@gentoo.org>
3057 * aclocal.m4: Regenerate.
3059 2021-02-12 Tom de Vries <tdevries@suse.de>
3062 * linux-nat.c (lin_thread_get_thread_signals): Remove.
3063 (lin_thread_signals): New static var.
3064 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3066 * linux-nat.h (lin_thread_get_thread_signals): Remove.
3067 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
3069 * linux-thread-db.c (check_thread_signals): Use
3070 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
3072 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
3074 * f-exp.y (f77_keywords): Add allocated.
3075 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
3076 (operator_length_f): Likewise.
3077 (print_subexp_f): Likewise.
3078 (dump_subexp_body_f): Likewise.
3079 (operator_check_f): Likewise.
3080 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
3082 2021-02-11 Tom de Vries <tdevries@suse.de>
3085 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
3086 Return true for DW_FORM_strx.
3088 2021-02-11 Tom Tromey <tromey@adacore.com>
3091 * parse.c (write_exp_symbol_reference): Write sym.block.
3093 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3095 * NEWS: Mention changes to 'maint info sections'.
3096 * maint.c (match_substring): Return a bool, fix whitespace issue.
3097 (struct single_bfd_flag_info): New struct.
3098 (bfd_flag_info): New static global.
3099 (match_bfd_flags): Return a bool, use bfd_flag_info.
3100 (print_bfd_flags): Use bfd_flag_info.
3101 (maint_print_section_info): Delete trailing whitespace.
3102 (struct maint_info_sections_opts): New struct.
3103 (maint_info_sections_option_defs): New static global.
3104 (maint_info_sections_completer): New function.
3105 (maintenance_info_sections): Use option parsing mechanism.
3106 (_initialize_maint_cmds): Update command help text for 'maint info
3107 sections' and register a command completer.
3109 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3111 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
3112 functionality merged into...
3113 (maint_print_all_sections): ...this new function.
3114 (maintenance_info_sections): Make use of maint_print_all_sections,
3115 allow all objects to be printed even where there's no executable.
3117 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
3119 * breakpoint.c (resolve_sal_pc): Make use of
3120 bound_minimal_symbol::obj_section.
3121 * maint.c (maintenance_translate_address): Likewise.
3122 * minsyms.c (minimal_symbol_upper_bound): Likewise.
3123 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
3125 * printcmd.c (info_address_command): Make use of
3126 bound_minimal_symbol::obj_section.
3128 2021-02-11 Alan Modra <amodra@gmail.com>
3130 * arm-symbian-tdep.c: Delete.
3131 * NEWS: Mention arm-symbian removal.
3132 * Makefile.in: Remove arm-symbian-tdep entries.
3133 * configure.tgt: Remove arm*-*-symbianelf*.
3134 * doc/gdb.texinfo: Remove mention of SymbianOS.
3135 * osabi.c (gdb_osabi_names): Remove "Symbian".
3136 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
3137 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
3138 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
3140 * testsuite/gdb.base/dup-sect.exp: Likewise.
3141 * testsuite/gdb.base/long_long.exp: Likewise.
3142 * testsuite/gdb.base/solib-weak.exp: Likewise.
3143 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
3144 * testsuite/gdb.python/py-section-script.exp: Likewise.
3145 * testsuite/lib/dwarf.exp: Likewise.
3146 * testsuite/lib/gdb.exp: Likewise.
3148 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3150 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
3151 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
3152 (one_or_two_args): New pattern.
3153 (f77_keywords): Add lbound and ubound.
3154 * f-lang.c (fortran_bounds_all_dims): New function.
3155 (fortran_bounds_for_dimension): New function.
3156 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
3157 (operator_length_f): Likewise.
3158 (print_subexp_f): Likewise.
3159 (dump_subexp_body_f): Likewise.
3160 (operator_check_f): Likewise.
3161 * std-operator.def (FORTRAN_LBOUND): Define.
3162 (FORTRAN_UBOUND): Define.
3164 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3166 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
3167 and set_section_index member functions where appropriate.
3168 * coffread.c (coff_symtab_read): Likewise.
3169 (process_coff_symbol): Likewise.
3170 * ctfread.c (set_symbol_address): Likewise.
3171 * dwarf2/read.c (add_partial_symbol): Likewise.
3172 (var_decode_location): Likewise.
3173 * language.c: Likewise.
3174 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
3175 (compact_minimal_symbols): Likewise.
3176 (minimal_symbol_upper_bound): Likewise.
3177 * objfiles.c (relocate_one_symbol): Likewise.
3178 * psympriv.h (partial_symbol::obj_section): Likewise.
3179 (partial_symbol::address): Likewise.
3180 * psymtab.c (partial_symtab::add_psymbol): Likewise.
3181 * stabsread.c (scan_file_globals): Likewise.
3182 * symmisc.c (dump_msymbols): Likewise.
3183 * symtab.c (general_symbol_info::obj_section): Likewise.
3184 (fixup_section): Likewise.
3185 (get_msymbol_address): Likewise.
3186 * symtab.h (general_symbol_info::section): Rename to...
3187 (general_symbol_info::m_section): ...this.
3188 (general_symbol_info::set_section_index): New member function.
3189 (general_symbol_info::section_index): Likewise.
3190 (SYMBOL_SECTION): Delete.
3191 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
3192 set_section_index member functions where appropriate.
3193 (MSYMBOL_SECTION): Delete.
3194 (symbol::symbol): Update to initialize 'm_section'.
3195 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
3196 (process_xcoff_symbol): Likewise.
3198 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
3200 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
3201 MSYMBOL_OBJ_SECTION.
3202 * findvar.c (language_defn::read_var_value): Likewise.
3203 * infcmd.c (jump_command): Likewise.
3204 * linespec.c (minsym_found): Likewise.
3205 * maint.c (maintenance_translate_address): Likewise.
3206 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
3207 (minimal_symbol_upper_bound): Likewise.
3208 * parse.c (find_minsym_type_and_address): Likewise.
3209 (operator_check_standard): Likewise.
3210 * printcmd.c (info_address_command): Likewise.
3211 * symmisc.c (dump_msymbols): Likewise.
3212 (print_symbol): Likewise.
3213 * symtab.c (general_symbol_info::obj_section): Define new
3215 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
3216 (find_pc_sect_compunit_symtab): Likewise.
3217 (find_function_start_sal): Likewise.
3218 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
3219 MSYMBOL_OBJ_SECTION.
3220 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
3222 (SYMBOL_OBJ_SECTION): Delete.
3223 (MSYMBOL_OBJ_SECTION): Delete.
3225 2021-02-09 Tom Tromey <tom@tromey.com>
3227 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
3229 2021-02-09 Tom de Vries <tdevries@suse.de>
3232 * dwarf2/read.c (read_array_type): Return NULL when not being able to
3233 construct an array type. Add assert to ensure that element_type is
3236 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
3238 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
3239 (gcore_collect_regset_section_cb): Delete.
3240 (gcore_collect_thread_registers): Delete.
3241 (gcore_build_thread_register_notes): Delete.
3242 (gcore_find_signalled_thread): Delete.
3243 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
3244 'gdbarch' and 'thread_info' declarations.
3245 (gcore_build_thread_register_notes): Delete declaration.
3246 (gcore_find_signalled_thread): Likewise.
3247 * fbsd-tdep.c: Remove 'gcore.h' include.
3248 (struct fbsd_collect_regset_section_cb_data): New struct.
3249 (fbsd_collect_regset_section_cb): New function.
3250 (fbsd_collect_thread_registers): New function.
3251 (struct fbsd_corefile_thread_data): New struct.
3252 (fbsd_corefile_thread): New function.
3253 (fbsd_make_corefile_notes): Call FreeBSD specific code.
3254 * linux-tdep.c: Remove 'gcore.h' include.
3255 (struct linux_collect_regset_section_cb_data): New struct.
3256 (linux_collect_regset_section_cb): New function.
3257 (linux_collect_thread_registers): New function.
3258 (linux_corefile_thread): Call Linux specific code.
3259 (find_signalled_thread): New function.
3260 (linux_make_corefile_notes): Call find_signalled_thread.
3262 2021-02-09 Tom Tromey <tromey@adacore.com>
3264 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
3266 * value.c (value_contents_copy_raw): Now static.
3267 * value.h (value_contents_copy_raw): Don't declare.
3269 2021-02-09 Tom Tromey <tromey@adacore.com>
3271 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
3274 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
3277 * arc-linux-tdep.c (handle_atomic_sequence): New.
3278 (arc_linux_software_single_step): Call handle_atomic_sequence().
3280 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3282 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
3284 (REQUIRE_WINDOW): Call is_valid member function.
3285 (REQUIRE_WINDOW_FOR_SETTER): New define.
3286 (gdbpy_tui_is_valid): Call is_valid member function.
3287 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
3288 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
3290 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
3291 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
3294 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3296 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
3297 for the title is not nullptr.
3299 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3301 * tui-layout.c (saved_tui_windows): Delete.
3302 (tui_apply_current_layout): Don't make use of saved_tui_windows,
3303 call new get_windows member function instead.
3304 (tui_get_window_by_name): Check in tui_windows.
3305 (tui_layout_window::apply): Don't add to tui_windows.
3306 * tui-layout.h (tui_layout_base::get_windows): New member function.
3307 (tui_layout_window::get_windows): Likewise.
3308 (tui_layout_split::get_windows): Likewise.
3310 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3312 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
3313 of the window objects.
3315 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3317 * python/python.c (gdbpy_print_stack): Reformat an error message.
3319 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
3321 * tui/tui-interp.c (tui_command_line_handler): New function.
3322 (tui_interp::resume): Register tui_command_line_handler as the
3324 * tui/tui-io.c (tui_inject_newline_into_command_window): New
3326 (tui_getc_1): Delete handling of '\n' and '\r'.
3327 * tui-io.h (tui_inject_newline_into_command_window): Declare.
3329 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3331 * tui/tui-regs.c (tui_data_window::display_registers_from):
3332 Mark invisible register sub windows.
3333 (tui_data_window::check_register_values): Ignore invisible
3334 register sub windows.
3336 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3338 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
3339 n_spaces with a negative value.
3341 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3343 * tui/tui-regs.c (tui_data_window::display_registers_from):
3344 Add refresh_window call.
3346 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
3348 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
3350 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
3352 * symmisc.c (std_in, std_out, std_err): Remove.
3353 (_initialize_symmisc): Don't set std_in, std_out and std_err.
3355 2021-02-05 Tom de Vries <tdevries@suse.de>
3357 PR breakpoints/27330
3358 * breakpoint.c (create_exception_master_breakpoint): Handle case that
3359 glibc object file has debug info.
3361 2021-02-05 Tom de Vries <tdevries@suse.de>
3364 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
3366 2021-02-05 Tom de Vries <tdevries@suse.de>
3368 PR breakpoints/27313
3369 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
3372 2021-02-05 Tom Tromey <tom@tromey.com>
3374 * compile/compile-c-support.c (get_compile_context)
3375 (c_get_compile_context, cplus_get_compile_context): Change return
3377 * language.c (language_defn::get_compile_instance): New method.
3378 * language.h (language_defn::get_compile_instance): Change return
3379 type. No longer inline.
3380 * c-lang.c (c_language::get_compile_instance): Change return type.
3381 (cplus_language::get_compile_instance): Change return type.
3382 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
3384 * compile/compile.c (compile_to_object): Update.
3386 2021-02-05 Tom Tromey <tom@tromey.com>
3388 * parser-defs.h (write_exp_symbol_reference): Declare.
3389 * parse.c (write_exp_symbol_reference): New function.
3390 * p-exp.y (variable): Use write_exp_symbol_reference.
3391 * m2-exp.y (variable): Use write_exp_symbol_reference.
3392 * f-exp.y (variable): Use write_exp_symbol_reference.
3393 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
3394 * c-exp.y (variable): Use write_exp_symbol_reference.
3396 2021-02-05 Tom de Vries <tdevries@suse.de>
3399 * valarith.c (complex_binop): Throw an error if complex type can't
3402 2021-02-05 Tom de Vries <tdevries@suse.de>
3405 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
3408 2021-02-05 Tom de Vries <tdevries@suse.de>
3410 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
3412 2021-02-04 Mike Frysinger <vapier@gentoo.org>
3414 * configure.tgt (riscv*-*-*): Set gdb_sim.
3416 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
3418 * target.c (target_is_non_stop_p): Return bool.
3419 * target.h (target_is_non_stop_p): Return bool.
3421 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3423 * record-full.c (record_full_async_inferior_event_handler):
3424 Don't clear async event handler.
3425 (record_full_base_target::wait): Clear async event handler at
3428 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3430 * record-btrace.c (record_btrace_handle_async_inferior_event):
3431 Don't clear async event handler.
3432 (record_btrace_target::wait): Clear async event handler at
3435 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3437 * remote.c (remote_target::wait): Clear async event handler at
3438 beginning, mark if needed at the end.
3439 (remote_async_inferior_event_handler): Don't set or clear async
3442 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
3444 * async-event.h (async_event_handler_func): Add documentation.
3445 * async-event.c (check_async_event_handlers): Don't clear
3446 async_event_handler ready flag.
3447 * infrun.c (infrun_async_inferior_event_handler): Clear ready
3449 * record-btrace.c (record_btrace_handle_async_inferior_event):
3451 * record-full.c (record_full_async_inferior_event_handler):
3453 * remote-notif.c (remote_async_get_pending_events_handler):
3455 * remote.c (remote_async_inferior_event_handler): Likewise.
3457 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
3459 * infrun.c (handle_inferior_event): Move stop_soon variable to
3462 2021-02-03 Pedro Alves <pedro@palves.net>
3464 * infcmd.c (detach_command): Hold strong reference to target, and
3465 if all-stop on entry, restart threads on exit.
3466 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
3467 (restart_stepped_thread): ... this new function. Also handle
3469 (restart_after_all_stop_detach): New function.
3470 * infrun.h (restart_after_all_stop_detach): Declare.
3472 2021-02-03 Pedro Alves <pedro@palves.net>
3474 * infrun.c (struct step_over_info): Initialize fields.
3475 (prepare_for_detach): Handle ongoing in-line step over.
3477 2021-02-03 Pedro Alves <pedro@palves.net>
3479 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
3481 * remote.c (remote_target::remote_detach_1): ... and here ...
3482 * target.c (target_detach): ... instead of here.
3483 * target.h (target_ops::detach): Add comment.
3485 2021-02-03 Pedro Alves <pedro@palves.net>
3487 * infrun.c (struct wait_one_event): Move higher up.
3488 (prepare_for_detach): Abort in-progress displaced steps instead of
3489 letting them complete.
3490 (handle_one): If the inferior is detaching, don't add the thread
3491 back to the global step-over chain.
3492 (restart_threads): Don't restart threads if detaching.
3493 (handle_signal_stop): Remove inferior::detaching reference.
3495 2021-02-03 Pedro Alves <pedro@palves.net>
3497 * infrun.c (prepare_for_detach): Don't release scoped_restore
3500 2021-02-03 Pedro Alves <pedro@palves.net>
3502 * infrun.c (handle_one): New function, factored out from ...
3503 (stop_all_threads): ... here.
3505 2021-02-03 Pedro Alves <pedro@palves.net>
3507 * remote.c (remote_notif_stop_ack): Don't error out on
3508 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
3509 (remote_target::discard_pending_stop_replies): Don't delete
3510 in-flight notification; instead, clear its contents.
3512 2021-02-03 Pedro Alves <pedro@palves.net>
3514 * remote.c (extended_remote_target::attach): Set target async in
3515 the target-non-stop path too.
3517 2021-02-03 Pedro Alves <pedro@palves.net>
3520 * infrun.c (handle_signal_stop): Move main context_switch call
3521 earlier, before STOP_QUIETLY_NO_SIGSTOP.
3523 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
3525 * NEWS (Changed commands): Add entry for the behavior change of
3526 the inferior command.
3527 * inferior.c (inferior_command): When no argument is given to the
3528 inferior command, display info about the currently selected
3531 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3533 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
3535 (read_attribute_reprocess): Adjust.
3537 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3539 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
3540 <gnu_ranges_base>: ... this...
3541 <rnglists_base>: ... and this.
3542 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
3543 <gnu_ranges_base>: ... this...
3544 <rnglists_base>: ... and this.
3545 (read_cutu_die_from_dwo): Adjust
3546 (dwarf2_get_pc_bounds): Adjust
3547 (dwarf2_record_block_ranges): Adjust.
3548 (read_full_die_1): Adjust
3549 (partial_die_info::read): Adjust.
3550 (read_rnglist_index): Adjust.
3552 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3555 * dwarf2/read.c (read_loclists_rnglists_header): Add
3556 header_offset parameter and use it.
3557 (read_loclist_index): Read header of the current contribution,
3558 not the one at the beginning of the section.
3559 (read_rnglist_index): Likewise.
3561 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3564 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
3565 requires_reprocessing flag.
3566 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
3568 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
3569 and DW_FORM_loclistx.
3570 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
3571 instead of set_address for DW_FORM_loclistx and
3574 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3576 * dwarf2/read.c (read_loclist_index): Remove bound check for
3578 (read_rnglist_index): Likewise.
3580 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3582 * dwarf2/read.c (read_loclist_index): Add bound check for the end
3585 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3587 * dwarf2/read.c (read_rnglist_index): Fix bound check.
3589 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
3591 * dwarf2/read.c (read_loclist_index): Change complaints into
3594 2021-02-02 Tom de Vries <tdevries@suse.de>
3597 * dwarf2/index-write.c (write_one_signatured_type): Skip if
3600 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
3602 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
3603 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
3604 here from linux-tdep.c and given a new name. Minor cleanups.
3605 (gcore_collect_regset_section_cb): Likewise.
3606 (gcore_collect_thread_registers): Likewise.
3607 (gcore_build_thread_register_notes): Likewise.
3608 (gcore_find_signalled_thread): Likewise.
3609 * gcore.h (gcore_build_thread_register_notes): Declare.
3610 (gcore_find_signalled_thread): Declare.
3611 * fbsd-tdep.c: Add 'gcore.h' include.
3612 (struct fbsd_collect_regset_section_cb_data): Delete.
3613 (fbsd_collect_regset_section_cb): Delete.
3614 (fbsd_collect_thread_registers): Delete.
3615 (struct fbsd_corefile_thread_data): Delete.
3616 (fbsd_corefile_thread): Delete.
3617 (fbsd_make_corefile_notes): Call
3618 gcore_build_thread_register_notes instead of the now deleted
3620 * linux-tdep.c: Add 'gcore.h' include.
3621 (struct linux_collect_regset_section_cb_data): Delete.
3622 (linux_collect_regset_section_cb): Delete.
3623 (linux_collect_thread_registers): Delete.
3624 (linux_corefile_thread): Call
3625 gcore_build_thread_register_notes.
3626 (find_signalled_thread): Delete.
3627 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3629 2021-01-29 Tom de Vries <tdevries@suse.de>
3631 PR breakpoints/26063
3632 * infrun.c (process_event_stop_test): Reset
3633 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
3636 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3638 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
3639 assert. Extend the header comment.
3641 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3643 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
3644 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
3645 * tui/tui-data.h (TUI_STATUS_WIN): Define.
3646 (tui_locator_win_info_ptr): Delete declaration.
3647 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
3648 (tui_disasm_window::set_contents): Fetch state from tui_location
3650 (tui_get_begin_asm_address): Likewise.
3651 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
3653 (get_locator_window): Delete.
3654 (initialize_known_windows): Treat locator window just like all the
3656 * tui/tui-source.c: Add 'tui/tui-location.h' include.
3657 (tui_source_window::set_contents): Fetch state from tui_location
3659 (tui_source_window::showing_source_p): Likewise.
3660 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
3662 (tui_locator_win_info_ptr): Delete.
3663 (tui_locator_window::make_status_line): Fetch state from
3664 tui_location global.
3665 (tui_locator_window::rerender): Remove check of 'handle',
3666 reindent function body.
3667 (tui_locator_window::set_locator_fullname): Delete.
3668 (tui_locator_window::set_locator_info): Delete.
3669 (tui_update_locator_fullname): Delete.
3670 (tui_show_frame_info): Likewise.
3671 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
3672 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
3673 tui/tui-location.h and renamed to
3674 tui_location_tracker::set_location.
3675 (tui_locator_window::set_locator_fullname): Moved to
3676 tui/tui-location.h and renamed to
3677 tui_location_tracker::set_fullname.
3678 (tui_locator_window::full_name): Delete.
3679 (tui_locator_window::proc_name): Delete.
3680 (tui_locator_window::line_no): Delete.
3681 (tui_locator_window::addr): Delete.
3682 (tui_locator_window::gdbarch): Delete.
3683 (tui_update_locator_fullname): Delete declaration.
3684 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
3686 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
3687 (tui_display_main): Call function on tui_location directly.
3688 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
3689 * tui/tui-location.c: New file.
3690 * tui/tui-location.h: New file.
3692 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3694 * gdbtypes.h (get_type_arch): Rename to...
3695 (struct type) <arch>: ... this, update all users.
3697 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
3699 * gdbtypes.h (struct type) <arch>: Rename to...
3700 <arch_owner>: ... this, update all users.
3701 <objfile>: Rename to...
3702 <objfile_owner>: ... this, update all users.
3704 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
3706 * gdbcmd.h (execute_command_to_string): Update comment.
3707 * top.c (execute_command_to_string): Update header comment.
3709 2021-01-28 Tom de Vries <tdevries@suse.de>
3711 PR breakpoints/27205
3712 * breakpoint.c (create_longjmp_master_breakpoint_probe)
3713 (create_longjmp_master_breakpoint_names): New function, factored out
3715 (create_longjmp_master_breakpoint): ... here. Only try to install
3716 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
3717 breakpoint in libc.so failed.
3719 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
3722 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
3723 unique_ptr is released when the wrapped pointer is kept for later
3726 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
3728 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
3729 BLR and BR instructions.
3730 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
3731 (enum aarch64_masks): New.
3733 2021-01-26 Tom Tromey <tromey@adacore.com>
3735 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
3736 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
3737 (windows_init_thread_list, windows_nat::handle_load_dll)
3738 (windows_nat::handle_unload_dll, windows_nat_target::resume)
3739 (windows_nat_target::resume)
3740 (windows_nat_target::get_windows_debug_event)
3741 (windows_nat_target::interrupt, windows_xfer_memory)
3742 (windows_nat_target::close): Update.
3743 * nat/windows-nat.c (DEBUG_EVENTS): Use
3744 debug_prefixed_printf_cond.
3745 (matching_pending_stop, fetch_pending_stop)
3746 (continue_last_debug_event): Update.
3748 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
3750 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
3751 elfcore_write_file_note.
3753 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
3755 * arc-tdep.c (arc_add_reggroups): New function.
3756 (arc_gdbarch_init): Call arc_add_reggroups.
3758 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
3760 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
3762 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
3763 Simon Marchi <simon.marchi@polymtl.ca>
3764 Tom de Vries <tdevries@suse.de>
3766 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
3769 2021-01-25 Tom Tromey <tromey@adacore.com>
3771 * dwarf2/read.c (get_mpz): New function.
3772 (get_dwarf2_rational_constant): Use it.
3774 2021-01-25 Tom Tromey <tromey@adacore.com>
3776 * ada-lang.c (resolve_subexp): Handle array context.
3778 2021-01-23 Tom Tromey <tom@tromey.com>
3781 * compile/compile-loc2c.c (note_register): New function.
3782 (pushf_register_address, pushf_register): Use it.
3784 2021-01-23 Tom Tromey <tom@tromey.com>
3786 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
3787 Change type of "registers_used".
3788 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
3789 * dwarf2/loc.c (dwarf2_compile_property_to_c)
3790 (locexpr_generate_c_location, loclist_generate_c_location): Change
3791 type of "registers_used".
3792 * compile/compile.h (compile_dwarf_expr_to_c)
3793 (compile_dwarf_bounds_to_c): Update.
3794 * compile/compile-loc2c.c (pushf_register_address)
3795 (pushf_register, do_compile_dwarf_expr_to_c)
3796 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
3797 of "registers_used".
3798 * compile/compile-c.h (generate_c_for_variable_locations):
3800 * compile/compile-c-symbols.c (generate_vla_size)
3801 (generate_c_for_for_one_variable): Change type of
3803 (generate_c_for_variable_locations): Return std::vector.
3804 * compile/compile-c-support.c (generate_register_struct): Change
3805 type of "registers_used".
3808 2021-01-23 Tom Tromey <tom@tromey.com>
3810 * compile/compile-internal.h (class compile_instance)
3811 <set_arguments>: Change return type.
3812 * compile/compile.c (compile_to_object): Remove call to reset.
3813 (compile_instance::set_arguments): Change return type.
3815 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
3817 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
3818 * gdbtypes.h (struct type) <set_owner>: Add asserts.
3820 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
3822 * Makefile.in (SELFTESTS_SRCS): Add
3823 unittests/gdb_tilde_expand-selftests.c.
3824 * unittests/gdb_tilde_expand-selftests.c: New file.
3826 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3829 * NEWS: Mention new command.
3830 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
3831 (version_style): Define.
3832 (cli_style_option::cli_style_option): Add intensity parameter, and
3834 (_initialize_cli_style): Register version style set/show commands.
3835 * cli/cli-style.h (cli_style_option): Add intensity parameter.
3836 (version_style): Declare.
3837 * top.c (print_gdb_version): Use version_stype, and styled_string
3838 to print the GDB version string.
3840 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
3842 * utils.c (emit_style_escape): Only emit an escape sequence if the
3843 requested style is different than the current applied style.
3844 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
3845 current applied_style.
3846 (fputs_styled): Remove is_default check.
3847 (fputs_styled_unfiltered): Likewise.
3848 (vfprintf_styled_no_gdbfmt): Likewise.
3850 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3852 * remote.h (remote_debug_printf): New.
3853 (remote_debug_printf_nofunc): New.
3854 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
3855 * remote.c: Use above macros throughout file.
3857 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3859 * remote.h (remote_debug): Change to bool.
3860 * remote.c (remote_debug): Change to bool.
3861 (_initialize_remote): Adjust.
3863 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3865 * target.h (remote_debug): Move to...
3866 * remote.h (remote_debug): ... here.
3867 * top.c (remote_debug): Move to...
3868 * remote.c (remote_debug): ... here.
3869 * remote-sim.c: Include remote.h.
3871 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3873 * cli/cli-cmds.c (show_remote_debug): Remove.
3874 (show_remote_timeout): Remove.
3875 (_initialize_cli_cmds): Don't register commands.
3876 * remote.c (show_remote_debug): Move here.
3877 (show_remote_timeout): Move here.
3878 (_initialize_remote): Register commands.
3880 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3882 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
3883 type::objfile method instead.
3885 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
3887 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
3888 use the type::is_objfile_owned method.
3890 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
3892 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
3893 (TYPE_OWNER): Remove.
3894 (TYPE_OBJFILE): Adjust.
3895 (struct main_type) <flag_objfile_owned>: Rename to...
3896 <m_flag_objfile_owned>: ... this.
3897 <owner>: Rename to...
3898 <m_owner>: ... this.
3899 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3901 (TYPE_ALLOC): Adjust.
3902 * gdbtypes.c (alloc_type): Adjust.
3903 (alloc_type_arch): Adjust.
3904 (alloc_type_copy): Adjust.
3905 (get_type_arch): Adjust.
3906 (smash_type): Adjust.
3907 (lookup_array_range_type): Adjust.
3908 (recursive_dump_type): Adjust.
3909 (copy_type_recursive): Adjust.
3910 * compile/compile-c-types.c (convert_func): Adjust.
3911 (convert_type_basic): Adjust.
3912 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3915 (language_arch_info::type_and_symbol::alloc_type_symbol):
3918 2021-01-21 Luis Machado <luis.machado@linaro.org>
3920 * coffread.c (enter_linenos): Passing string to complaint.
3921 * valops.c (value_assign): Make array view.
3923 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3925 * auto-load.h (debug_auto_load): Move here.
3926 (auto_load_debug_printf): New.
3927 * auto-load.c: Use auto_load_debug_printf.
3928 (debug_auto_load): Move to header.
3929 * linux-thread-db.c (try_thread_db_load): Use
3930 auto_load_debug_printf.
3931 * main.c (captured_main_1): Likewise.
3933 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3935 * f-valprint.c (f77_array_offset_tbl): Remove.
3937 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3939 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3941 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3943 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3946 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
3949 * python/py-breakpoint.c (bppy_get_location): Handle
3950 bp_hardware_breakpoint.
3951 (bppy_init): Likewise.
3952 (gdbpy_breakpoint_created): Likewise.
3954 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3956 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3958 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3960 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3961 (_initialize_gdb_bfd): Adjust.
3963 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3966 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3968 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3970 * dwarf2/read.c (follow_die_offset): Add logging.
3971 (dwarf2_per_objfile::age_comp_units): Add logging.
3973 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3975 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3976 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3977 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3978 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3979 * arm-tdep.c (struct frame_unwind): Make static.
3980 * auto-load.c (auto_load_safe_path_vec): Make static.
3981 * csky-tdep.c (csky_stub_unwind): Make static.
3982 * gdbarch.c (gdbarch_data_registry): Make static.
3983 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3984 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3985 * i386-tdep.c (i386_frame_setup_skip_insns,
3986 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3988 * infrun.c (observer_mode): Make static.
3989 * linux-nat.c (sigchld_action): Make static.
3990 * linux-thread-db.c (thread_db_list): Make static.
3991 * maint-test-options.c (maintenance_test_options_list):
3992 * mep-tdep.c (mep_csr_registers): Make static.
3993 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3994 (stats): Make static.
3995 * nat/linux-osdata.c (struct osdata_type): Make static.
3996 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3997 * progspace.c (last_program_space_num): Make static.
3998 * python/py-param.c (struct parm_constant): Remove struct type
4000 (parm_constants): Make static.
4001 * python/py-record-btrace.c (btpy_list_methods): Make static.
4002 * python/py-record.c (recpy_gap_type): Make static.
4003 * record.c (record_goto_cmdlist): Make static.
4004 * regcache.c (regcache_descr_handle): Make static.
4005 * registry.h (DEFINE_REGISTRY): Make definition static.
4006 * symmisc.c (std_in, std_out, std_err): Make static.
4007 * top.c (previous_saved_command_line): Make static.
4008 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
4010 * unittests/command-def-selftests.c (nr_duplicates,
4011 nr_invalid_prefixcmd, lists): Make static.
4012 * unittests/observable-selftests.c (test_notification): Make
4014 * unittests/optional/assignment/1.cc (counter): Make static.
4015 * unittests/optional/assignment/2.cc (counter): Make static.
4016 * unittests/optional/assignment/3.cc (counter): Make static.
4017 * unittests/optional/assignment/4.cc (counter): Make static.
4018 * unittests/optional/assignment/5.cc (counter): Make static.
4019 * unittests/optional/assignment/6.cc (counter): Make static.
4021 2021-01-20 Joel Sherrill <joel@rtems.org>
4024 * remote.c (struct remote_thread_info) <resume_state>: Rename
4026 <get_resume_state>: ... this.
4027 (remote_target::resume): Adjust.
4028 (remote_target::commit_resume): Adjust.
4029 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
4031 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
4032 Tom Tromey <tom@tromey.com>
4034 * stap-probe.c (stap_parse_single_operand): Handle '!'
4036 (stap_parse_argument_conditionally): Likewise.
4037 Skip spaces after processing open-parenthesis sub-expression.
4038 (stap_parse_argument_1): Skip spaces after call to
4039 stap_parse_argument_conditionally.
4040 Handle case when right-side expression is a parenthesized
4042 Skip spaces after call to stap_parse_argument_1.
4044 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
4046 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
4048 2021-01-19 Luis Machado <luis.machado@linaro.org>
4050 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
4051 memory and save data.
4052 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
4053 (trad_frame_set_unknown, trad_frame_set_value_bytes)
4054 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4055 (trad_frame_value_bytes_p): Remove.
4056 (trad_frame_reset_saved_regs): Adjust documentation.
4057 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
4058 constructor and reset the state of the registers.
4059 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
4060 (trad_frame_value_bytes_p, trad_frame_set_value)
4061 (trad_frame_set_realreg, trad_frame_set_addr)
4062 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
4063 (trad_frame_set_reg_realreg): Update to call member function.
4064 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
4065 (trad_frame_get_prev_register): Likewise.
4067 * aarch64-tdep.c (aarch64_analyze_prologue)
4068 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
4069 (aarch64_prologue_prev_register): Update to use member functions.
4070 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
4071 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
4072 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
4073 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
4074 (arm_make_epilogue_frame_cache): Likewise.
4075 * avr-tdep.c (avr_frame_unwind_cache)
4076 (avr_frame_prev_register): Likewise.
4077 * cris-tdep.c (cris_scan_prologue): Likewise.
4078 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
4079 * frv-tdep.c (frv_analyze_prologue): Likewise.
4080 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
4081 * lm32-tdep.c (lm32_frame_cache): Likewise.
4082 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
4083 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
4084 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
4085 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
4086 (reset_saved_regs): Adjust to set realreg.
4087 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
4088 call member functions.
4089 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
4090 * s390-tdep.c (s390_prologue_frame_unwind_cache)
4091 (s390_backchain_frame_unwind_cache): Likewise.
4092 * score-tdep.c (score7_analyze_prologue)
4093 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
4094 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
4095 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
4096 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
4097 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
4098 * tilegx-tdep.c (tilegx_analyze_prologue)
4099 (tilegx_frame_cache): Likewise.
4100 * v850-tdep.c (v850_frame_cache): Likewise.
4101 * vax-tdep.c (vax_frame_cache): Likewise.
4103 2021-01-19 Luis Machado <luis.machado@linaro.org>
4105 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
4107 (put_frame_register_bytes): Likewise.
4108 Adjust documentation.
4109 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
4110 (safe_frame_unwind_memory): Likewise.
4111 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
4112 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
4114 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
4115 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
4116 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
4117 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
4118 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
4119 * dwarf2/loc.c (rw_pieced_value): Likewise.
4120 * hppa-tdep.c (hppa_frame_cache): Likewise.
4121 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
4122 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
4123 * i386-linux-tdep.c (i386_linux_sigtramp_start)
4124 (i386_linux_rt_sigtramp_start): Likewise.
4125 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
4126 * i386-tdep.c (i386_register_to_value): Likewise.
4127 * i387-tdep.c (i387_register_to_value): Likewise.
4128 * ia64-tdep.c (ia64_register_to_value): Likewise.
4129 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
4130 (m32r_linux_rt_sigtramp_start): Likewise.
4131 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
4132 * m68k-tdep.c (m68k_register_to_value): Likewise.
4133 * mips-tdep.c (mips_register_to_value)
4134 (mips_value_to_register): Likewise.
4135 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
4136 (ppcfbsd_sigtramp_frame_cache): Likewise.
4137 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
4138 (ppcobsd_sigtramp_frame_cache): Likewise.
4139 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
4140 (rs6000_register_to_value): Likewise.
4141 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4142 * tramp-frame.c (tramp_frame_start): Likewise.
4143 * valops.c (value_assign): Likewise.
4145 2021-01-19 Luis Machado <luis.machado@linaro.org>
4147 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
4149 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
4150 instead of buffer and size.
4151 (trad_frame_set_reg_value_bytes): Likewise.
4152 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
4153 (trad_frame_set_value_bytes): Likewise.
4155 2021-01-18 Mike Frysinger <vapier@gentoo.org>
4157 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
4159 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
4161 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
4162 (riscv_fbsd_gregset): Use riscv_supply_regset.
4163 (riscv_fbsd_fpregset): Likewise.
4164 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
4165 (riscv_linux_fregset): Likewise.
4166 * riscv-tdep.c (riscv_supply_regset): Define new function.
4167 * riscv-tdep.h (riscv_supply_regset): Declare new function.
4169 2021-01-18 Tom de Vries <tdevries@suse.de>
4172 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
4174 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
4177 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4179 * remote.c (class remote_target) <remote_hostio_send_command,
4180 remote_hostio_parse_result>: Constify parameter.
4181 (remote_hostio_parse_result): Likewise.
4182 (remote_target::remote_hostio_send_command): Adjust.
4183 (remote_target::remote_hostio_pread_vFile): Adjust.
4184 (remote_target::fileio_readlink): Adjust.
4185 (remote_target::fileio_fstat): Adjust.
4187 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4189 * remote.c (remote_target::start_remote): Move wait_status to
4192 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4194 * remote.c (class remote_target):
4195 <add_current_inferior_and_thread>: Constify parameter.
4196 (stop_reply_extract_thread): Likewise.
4197 (remote_target::get_current_thread): Likewise.
4198 (remote_target::add_current_inferior_and_thread): Likewise.
4200 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
4202 * remote.c (class remote_target)
4203 <remote_unpack_thread_info_response,
4204 parse_threadlist_response>: Constify parameter and/or return
4205 value and or local variable.
4206 (stub_unpack_int): Likewise.
4207 (unpack_nibble): Likewise.
4208 (unpack_byte): Likewise.
4209 (unpack_int): Likewise.
4210 (unpack_string): Likewise.
4211 (unpack_threadid): Likewise.
4212 (remote_target::remote_unpack_thread_info_response): Likewise.
4213 (remote_target::parse_threadlist_response): Likewise.
4215 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
4217 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
4219 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
4221 * MAINTAINERS (Write After Approval): Add myself.
4223 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
4225 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
4226 because is_trivially_default_constructible was first implemented with
4229 2021-01-14 Tom de Vries <tdevries@suse.de>
4231 PR breakpoints/27151
4232 * objfiles.h (in_plt_section): Handle .plt.sec.
4234 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
4238 (remote_target::select_thread_for_ambiguous_stop_reply): New
4240 (remote_target::process_stop_reply): Call
4241 select_thread_for_ambiguous_stop_reply.
4243 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4245 * record-btrace.c (class record_btrace_target): Remove.
4246 (record_btrace_target::commit_resume): Remove.
4247 * record-full.c (class record_full_target): Remove.
4248 (record_full_target::commit_resume): Remove.
4250 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
4252 * remote.c (enum class resume_state): New.
4253 (struct resumed_pending_vcont_info): New.
4254 (struct remote_thread_info) <resume_state, set_not_resumed,
4255 set_resumed_pending_vcont, resumed_pending_vcont_info,
4256 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
4258 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
4259 (remote_target::remote_add_thread): Adjust.
4260 (remote_target::process_initial_stop_replies): Adjust.
4261 (remote_target::resume): Adjust.
4262 (remote_target::commit_resume): Rely on state in
4263 remote_thread_info and not on tp->executing.
4264 (remote_target::process_stop_reply): Adjust.
4266 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4268 * arc-tdep.h (arc_debug_printf): New.
4269 * arc-tdep.c: Use arc_debug_printf.
4270 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
4271 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
4272 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
4274 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4276 * arc-tdep.h (arc_debug): Change type to bool.
4277 * arc-tdep.c (arc_debug): Change type to bool.
4278 (arc_analyze_prologue): Adjust.
4279 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
4280 * arc-linux-nat.c (ps_get_thread_area): Adjust.
4282 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4284 * auto-load.c (auto_load_objfile_script_1): Use bool.
4285 (execute_script_contents): Use bool.
4287 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4289 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
4291 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
4293 * extension-priv.h (struct extension_language_script_ops)
4294 <auto_load_enabled>: Return bool.
4295 * extension.h (ext_lang_auto_load_enabled): Return bool, move
4297 * extension.c (ext_lang_auto_load_enabled): Return bool, move
4299 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
4301 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
4302 move comment to header.
4303 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
4305 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
4306 move comment to header.
4308 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4310 * auto-load.h (file_is_auto_load_safe): Change return type to
4311 bool, move comment here.
4312 * auto-load.c (file_is_auto_load_safe): Change return type and
4313 advice_printed to bool. Move comment to header.
4315 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
4317 * jit.c (jit_debug_printf): New, use throughout file.
4319 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4321 * infrun.c (normal_stop): Fix indentation.
4323 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4325 * top.h (readnow_symbol_files, readnever_symbol_files): Move
4327 * symfile.h: ... here.
4328 * symfile.c: Update doc.
4330 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4332 * target.h (baud_rate, serial_parity): Move declarations...
4333 * serial.h: ... here.
4334 * main.c: Include serial.h.
4335 * serial.c (baud_rate, serial_parity): Update doc.
4337 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
4339 * top.c (pre_init_ui_hook): Remove.
4341 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
4343 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
4344 (aarch64_vnv_type): Add "bf" type in h field of v registers.
4345 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
4346 * features/aarch64-fpu.xml: Add bfloat16 type.
4348 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4350 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
4352 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
4354 * f-exp.y (dot_ops): Rename to...
4355 (fortran_operators): ...this. Add a header comment. Add symbol
4357 (yylex): Update to use fortran_operators not dot_ops. Remove
4358 special handling for '**', this is now included in
4361 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4363 * arch/aarch64-insn.h (aarch64_debug_printf): New.
4364 * arch/aarch64-insn.c: Use aarch64_debug_printf.
4365 * aarch64-tdep.c: Use aarch64_debug_printf.
4367 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4369 * solib-aix.c (solib_aix_debug_printf): New, use throughout
4372 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
4374 * jit.c (jit_debug): Change type to bool.
4375 (_initialize_jit): Adjust.
4377 2021-01-09 Tom Tromey <tom@tromey.com>
4380 * compile/compile.c (compile_to_object): Avoid crash when
4381 osabi_triplet_regexp returns NULL.
4383 2021-01-09 Tom Tromey <tom@tromey.com>
4385 * tracepoint.h (class collection_list) <append_exp>: Take a
4387 * tracepoint.c (collection_list::append_exp): Take a std::string.
4388 (encode_actions_1): Update.
4390 2021-01-08 Tom Tromey <tromey@adacore.com>
4392 * parse.c (parse_expression): Add void_context_p parameter. Use
4393 parse_exp_in_context.
4394 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
4396 (print_command, call_command): Update.
4397 * expression.h (parse_expression): Add void_context_p parameter.
4399 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4401 * value.c (set_value_component_location): Adjust the VALUE_LVAL
4402 for internalvar components that have a dynamic location.
4404 2021-01-08 Tom de Vries <tdevries@suse.de>
4407 * breakpoint.c (create_exception_master_breakpoint_probe)
4408 (create_exception_master_breakpoint_hook): Factor out
4410 (create_exception_master_breakpoint): ... here. Only try to install
4411 the master exception breakpoint in objfile.debug using the
4412 _Unwind_DebugHook method, if the install using probes in objfile
4415 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
4417 * f-lang.c (fortran_value_subarray): Call value_from_component.
4419 2021-01-07 Mike Frysinger <vapier@gentoo.org>
4421 * remote-sim.c: Include memory-map.h.
4422 (gdbsim_target): Define memory_map override.
4423 (gdbsim_target::memory_map): Define.
4425 2021-01-07 Tom Tromey <tromey@adacore.com>
4427 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
4429 2021-01-07 Tom Tromey <tromey@adacore.com>
4431 * ada-lang.c (add_component_interval): Start loop using vector's
4434 2021-01-06 Tom Tromey <tromey@adacore.com>
4436 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
4438 * valarith.c (fixed_point_binop): Handle multiplication
4439 and division specially.
4440 * valops.c (value_to_gdb_mpq): New function.
4441 (value_cast_to_fixed_point): Use it.
4443 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4445 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4446 Call wnoutrefresh instead of tui_win_info::refresh_window.
4448 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4450 * tui/tui-source.c (tui_source_window::show_line_number):
4451 Redraw second space after line number.
4453 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
4456 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
4457 Fix source pad size in prefresh.
4458 (tui_source_window_base::show_source_content): Grow source pad
4461 2021-01-04 Mike Frysinger <vapier@gentoo.org>
4463 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
4464 (bfin_frame_align): Use align_down.
4466 2021-01-04 Tom de Vries <tdevries@suse.de>
4468 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
4469 terminators that do not terminate anything.
4471 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4473 * debug.c (debug_print_depth): New.
4474 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
4475 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
4476 * infrun.c (start_step_over): Use
4477 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4478 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
4479 INFRUN_SCOPED_DEBUG_START_END.
4480 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
4482 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4484 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
4486 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
4488 * utils.c (vfprintf_unfiltered): Print timestamp only when
4489 previous debug output ended with a newline.
4491 2021-01-04 Luis Machado <luis.machado@linaro.org>
4493 Update all users of trad_frame_saved_reg to use the new member
4496 Remote all struct keywords from declarations of trad_frame_saved_reg
4497 types, except on forward declarations.
4499 * aarch64-tdep.c: Update.
4500 * alpha-mdebug-tdep.c: Update.
4501 * alpha-tdep.c: Update.
4502 * arc-tdep.c: Update.
4503 * arm-tdep.c: Update.
4504 * avr-tdep.c: Update.
4505 * cris-tdep.c: Update.
4506 * csky-tdep.c: Update.
4507 * frv-tdep.c: Update.
4508 * hppa-linux-tdep.c: Update.
4509 * hppa-tdep.c: Update.
4510 * hppa-tdep.h: Update.
4511 * lm32-tdep.c: Update.
4512 * m32r-linux-tdep.c: Update.
4513 * m32r-tdep.c: Update.
4514 * m68hc11-tdep.c: Update.
4515 * mips-tdep.c: Update.
4516 * moxie-tdep.c: Update.
4517 * riscv-tdep.c: Update.
4518 * rs6000-tdep.c: Update.
4519 * s390-linux-tdep.c: Update.
4520 * s390-tdep.c: Update.
4521 * score-tdep.c: Update.
4522 * sparc-netbsd-tdep.c: Update.
4523 * sparc-sol2-tdep.c: Update.
4524 * sparc64-fbsd-tdep.c: Update.
4525 * sparc64-netbsd-tdep.c: Update.
4526 * sparc64-obsd-tdep.c: Update.
4527 * sparc64-sol2-tdep.c: Update.
4528 * tilegx-tdep.c: Update.
4529 * v850-tdep.c: Update.
4530 * vax-tdep.c: Update.
4532 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
4533 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
4535 * trad-frame.c: Update.
4536 Remove TF_REG_* enum.
4537 (trad_frame_alloc_saved_regs): Add a static assertion to check for
4538 a trivially-constructible struct.
4539 (trad_frame_reset_saved_regs): Adjust to use member function.
4540 (trad_frame_value_p): Likewise.
4541 (trad_frame_addr_p): Likewise.
4542 (trad_frame_realreg_p): Likewise.
4543 (trad_frame_value_bytes_p): Likewise.
4544 (trad_frame_set_value): Likewise.
4545 (trad_frame_set_realreg): Likewise.
4546 (trad_frame_set_addr): Likewise.
4547 (trad_frame_set_unknown): Likewise.
4548 (trad_frame_set_value_bytes): Likewise.
4549 (trad_frame_get_prev_register): Likewise.
4550 * trad-frame.h: Update.
4551 (trad_frame_saved_reg_kind): New enum.
4552 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
4553 <m_kind, m_reg>: New member fields.
4554 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
4555 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
4556 <is_addr, is_unknown, is_value_bytes>: New member functions.
4558 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
4560 * target-float.c: Fix typos.
4562 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
4564 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
4566 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4568 * gdbarch.sh: Update copyright year range.
4570 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4572 Update copyright year range in copyright header of all GDB files.
4574 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4576 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
4577 to the list of directories to update.
4579 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4581 * top.c (print_gdb_version): Update copyright year.
4583 2021-01-01 Joel Brobecker <brobecker@adacore.com>
4585 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
4587 For older changes see ChangeLog-2020.
4593 version-control: never