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