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