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