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